weploy-translate
Version:
Translate your React.js or Next.js app with AI
2 lines • 193 kB
JavaScript
/*! For license information please see translate.js.LICENSE.txt */
(()=>{var t={863:(t,e,n)=>{function r(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===u(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw a}}}}function s(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var p=n(960),h=p.isBrowser,d=p.BRAND,g=n(724),y=n(434),m=n(494);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{activeLanguage:null,domainFromServer:null};h()&&(t.translationCache||(t.translationCache={}),t.currentPathname=t.location.pathname);var n="data-".concat(e.brand||d,"-key"),o=t.translationScriptTag.getAttribute(n),s=t.translationScriptTag.getAttribute("data-active-subdomain"),f=t.translationScriptTag.getAttribute("data-active-subdirectory");s&&(t.preventInitialTranslation=!0,t.activeSubdomain=s),f&&(t.preventInitialTranslation=!0,t.activeSubdirectory=f);var p=s||f,v=t.translationScriptTag.getAttribute("".concat("data-custom-links","-").concat(p)),b={};try{b=JSON.parse("[".concat(v.replaceAll("'",'"'),"]")).reduce((function(t,e){var n=l(e,2),r=n[0],o=n[1];return t[r]=o,t}),{}),function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=t.document.querySelectorAll("[src]"),a=t.document.querySelectorAll("[href]"),i=c(o);try{for(i.s();!(e=i.n()).done;){var u=e.value,l=u.getAttribute("src");if(n[l])u.setAttribute("src",n[l]);else{var s=new URL(l,t.location.origin);r==s.hostname.replace("www.","")&&u.setAttribute("src",s.href)}}}catch(t){i.e(t)}finally{i.f()}var f,p=c(a);try{for(p.s();!(f=p.n()).done;){var h=f.value,d=h.getAttribute("href");if(n[d])h.setAttribute("href",n[d]);else{var g=new URL(d,t.location.origin);r==g.hostname.replace("www.","")&&h.setAttribute("href",g.href)}}}catch(t){p.e(t)}finally{p.f()}}(t,b,e.domainFromServer)}catch(t){b={}}t.document.documentElement.setAttribute("translate","no");var w=t.document.createElement("meta");w.name="google",w.content="notranslate",t.document.head.appendChild(w);var D=/{{((?:[^}]|\\})*)}}/g,E=t.translationScriptTag.getAttribute("data-translation-mode")||"searchParams",x=t.translationScriptTag.getAttribute("data-lang-parameter")||"lang",A=t.location.search,C=new URLSearchParams(A),L=t.activeSubdomain||t.activeSubdirectory||e.activeLanguage||C.get(x);t.paramsLang=L;var S=C.get("globalseo_update_translation"),F=(t.translationScriptTag.getAttribute("data-original-language")||t.translationScriptTag.getAttribute("data-original-lanugage")||"").trim().toLowerCase(),O=(t.translationScriptTag.getAttribute("data-allowed-languages")||"").trim().toLowerCase().split(",").filter((function(t){return t&&t.trim()!=F})).map((function(t){return t.trim()})),T=t.globalseoActiveLang||L||F;"subdomain"!=E||t.isWorker||(T=t.globalseoActiveLang),"subdirectory"!=E||t.isWorker||(T=t.globalseoActiveLang),T&&t.document.documentElement.lang!=T&&(t.document.documentElement.lang=T);var j=(t.translationScriptTag.getAttribute("data-domain-source-prefix")||"").replace(/^\/+|\/+$/g,"");if((!s&&!f||t.isWorker)&&function(){var n=t.location.hostname.split(".").slice(1).join(".").replace("https://www.","https://").replace("http://www.","http://"),r=t.location.hostname;s&&(r=n),f&&e.domainFromServer&&(r=e.domainFromServer);var o=t.document.querySelector('link[rel="canonical"]');o&&o.remove();var a=t.document.createElement("link");if("searchParams"==E&&(a.href=L&&L!=F?"".concat(t.location.protocol,"//").concat(t.location.host).concat(t.location.pathname,"?").concat(x,"=").concat(L):"".concat(t.location.protocol,"//").concat(t.location.host).concat(t.location.pathname)),"subdomain"==E)if(T&&T!=F){var i=new URL(t.location.href);i.hostname="".concat(T,".").concat(r),i.pathname=m(t,j,i.pathname),a.href=i.href}else a.href="".concat(t.location.protocol,"//").concat(r).concat(t.location.pathname);if("subdirectory"==E)if(T&&T!=F){var u=new URL(t.location.href);u.hostname=r,u.pathname=m(t,j,u.pathname),a.href=u.href}else a.href="".concat(t.location.protocol,"//").concat(r).concat(t.location.pathname);a.setAttribute("rel","canonical"),t.document.head.appendChild(a);var l=t.document.createElement("link");l.setAttribute("rel","alternate"),l.setAttribute("hreflang",F);var p=new URL(t.location.href);p.pathname=m(t,j,p.pathname),p.pathname=p.pathname.replace("/".concat(f,"/"),"/"),p.pathname;var h=y(t,j,p.pathname),d="".concat(t.location.protocol,"//").concat(r).concat(h);l.href="subdirectory"==E?d:"".concat(t.location.protocol,"//").concat(r).concat(y(t,j,t.location.pathname)),t.document.head.appendChild(l);var g,v=c(O);try{for(v.s();!(g=v.n()).done;){var b=g.value,w=t.document.createElement("link"),D=new URL(t.location.href);if(D.searchParams.set(x,b),w.setAttribute("rel","alternate"),w.setAttribute("hreflang",b),"searchParams"==E&&(w.href="".concat(t.location.protocol,"//").concat(t.location.host).concat(t.location.pathname,"?").concat(x,"=").concat(b)),"subdomain"==E){var A=new URL(t.location.href);A.hostname=s?"".concat(b,".").concat(r):"".concat(b,".").concat(n),A.pathname=m(t,j,A.pathname),w.href=A.href}if("subdirectory"==E){D.searchParams.delete(x),D.pathname=m(t,j,D.pathname),D.pathname=D.pathname.replace("/".concat(f,"/"),"/");var C=D.pathname.split("/");b&&b!=F&&C.splice(1,0,b),D.pathname=C.join("/"),b==F&&(D.pathname="".concat(j).concat(D.pathname)),w.href=D.href}t.document.head.appendChild(w)}}catch(t){v.e(t)}finally{v.f()}}(),h()){if(!t.isWorker&&!t.activeSubdomain&&!t.activeSubdirectory)try{var N=(new Date).getTime(),k=t.localStorage.getItem("globalseoExpirationTimestamp"),P=Number(k);!isNaN(P)&&P<N&&(t.localStorage.removeItem("globalseoExpirationTimestamp"),t.localStorage.removeItem("translationCachePerPage"))}catch(t){console.log("Error checking expiration",t)}var B=t.navigator.userAgent;if(g(B))t.translationCache={};else{var _=t.localStorage.getItem("translationCachePerPage");try{var I=JSON.parse(_);I&&"object"===u(I)&&(t.translationCache=I);var G=document.getElementById("globalseo-translation-cache");if(G)try{var M=G.textContent,R=JSON.parse(M);t.translationCache=a(a({},t.translationCache),{},i({},t.location.pathname,a(a({},t.translationCache[t.location.pathname]),R[t.location.pathname])))}catch(t){}var U=t.translationScriptTag.getAttribute("data-translation-cache");if(U){var q=JSON.parse(U);t.translationCache=a(a({},t.translationCache),{},i({},t.location.pathname,a(a({},t.translationCache[t.location.pathname]),q[t.location.pathname])))}t.localStorage.setItem("translationCachePerPage",JSON.stringify(t.translationCache))}catch(t){console.log("Error parsing translation cache",t)}}}var z=t.translationScriptTag.getAttribute("data-custom-language-code"),W=z?z.split(",").reduce((function(t,e){var n=l(e.trim().split("="),2),r=n[0],o=n[1];return r&&o?(t[r]=o,t):t}),{}):{},V="true"==t.translationScriptTag.getAttribute("data-disable-auto-translate"),Y=t.translationScriptTag.getAttribute("data-use-browser-language"),H="false"!=Y&&0!=Y,K=(t.translationScriptTag.getAttribute("data-exclude-classes")||"").trim(),X=K.split(",").filter((function(t){return!!t})).map((function(t){return t.trim()})),$=K.split(" ").filter((function(t){return!!t})).map((function(t){return t.trim().replaceAll(",","")})),J=[].concat(r(X),r($)),Z=r(new Set(J)),Q=(t.translationScriptTag.getAttribute("data-exclude-ids")||"").trim(),tt=Q.split(",").filter((function(t){return!!t})).map((function(t){return t.trim()})),et=Q.split(" ").filter((function(t){return!!t})).map((function(t){return t.trim().replaceAll(",","")})),nt=[].concat(r(tt),r(et)),rt=r(new Set(nt)),ot=(t.translationScriptTag.getAttribute("data-exclude-paths")||"").trim(),at=ot.split(",").filter((function(t){return!!t})).map((function(t){return t.trim()})),it=ot.split(" ").filter((function(t){return!!t})).map((function(t){return t.trim().replaceAll(",","")})),ut=[].concat(r(at),r(it)),lt=r(new Set(ut)),ct=function(t){for(var e,n=[];null!==(e=D.exec(t));){var r=e[1].replace(/\\\\}/g,"}");r=r.replace(/\\\\{/g,"{"),n.push(r)}return n}((t.translationScriptTag.getAttribute("data-exclude-contents")||"").trim()),st=r(new Set(ct)),ft=t.translationScriptTag.getAttribute("data-timeout"),pt=isNaN(Number(ft))?0:Number(ft),ht="false"!=t.translationScriptTag.getAttribute("data-auto-create-selector"),dt="true"==t.translationScriptTag.getAttribute("data-translate-attributes"),gt="true"==S||"false"!=t.translationScriptTag.getAttribute("data-dynamic-translation"),yt=(t.translationScriptTag.getAttribute("data-translate-splitted-text"),"false"!=t.translationScriptTag.getAttribute("data-replace-links")),mt=t.translationScriptTag.getAttribute("data-debounce"),vt="true"==t.translationScriptTag.getAttribute("data-translate-form-placeholder"),bt="true"==t.translationScriptTag.getAttribute("data-translate-select-options"),wt=t.translationScriptTag.getAttribute("data-source-origin");return{useBrowserLanguage:!V&&H,createSelector:ht,excludeClasses:Z,excludeIds:rt,excludePaths:lt,excludeContents:st,originalLanguage:F,allowedLanguages:O,timeout:pt,customLanguageCode:W,translateAttributes:dt,dynamicTranslation:gt,translateSplittedText:!1,langParam:x,debounceDuration:mt,translateFormPlaceholder:vt,translateSelectOptions:bt,shouldReplaceLinks:yt,paramsLang:L,apiKey:o,translationMode:E,domainSourcePrefix:j,customLinks:b,sourceOrigin:wt}}},497:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){"use strict";o=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new N(r||[]);return i(a,"_invoke",{value:F(t,n,u)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",g="suspendedYield",y="executing",m="completed",v={};function b(){}function w(){}function D(){}var E={};f(E,l,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(k([])));A&&A!==n&&a.call(A,l)&&(E=A);var C=D.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,u,l){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==r(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,u,l)}),(function(t){n("throw",t,u,l)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}})}function F(e,n,r){var o=d;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=O(u,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?m:g,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=h(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=D,i(C,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:w,configurable:!0}),w.displayName=f(D,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,D):(t.__proto__=D,f(t,s,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},L(S.prototype),f(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new S(p(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(C),f(C,s,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=k,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){l=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function i(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}var s=n(960),f=s.isBrowser,p=s.getGlobalseoOptions,h=s.SPECIAL_API_KEYS,d=n(709).createLanguageSelect,g=n(373).getLanguageFromLocalStorage,y=n(25),m=n(878),v=n(863),b=n(704),w=n(106).renderSelectorState;function D(t,e){return E.apply(this,arguments)}function E(){var t;return t=o().mark((function t(e,n){var r,u,l,c=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>2&&void 0!==c[2]?c[2]:{},t.prev=1,null!=r&&r.originalLanguage||h.includes(n)){t.next=5;break}return console.error("GLOBALSEO: data-original-language is required, please add it to the script tag"),t.abrupt("return");case 5:if(u=null==r.debounceDuration?0:r.debounceDuration,y(e,n,r),!r.createSelector||!f()){t.next=10;break}return t.next=10,d(e,r);case 10:if(!f()||!e.document.querySelector("html.translated-ltr")&&!e.document.querySelector("html.translated-rtl")){t.next=12;break}return t.abrupt("return");case 12:return l=p(e).timeout,t.next=15,m(e,e.document.body,n,l,!0).then((function(){return e})).catch((function(t){console.log("getTranslations error",t),e.shouldConsoleglobalseoError&&console.error(t)})).finally((function(){if(f()&&!e.isDomListenerAdded){var t=e.document.body;new MutationObserver((function(t){var o=[],l=Array.from(e.document.querySelectorAll(".weploy-select")).filter((function(t){return!t.querySelector(".weploy-lang-selector-ready-icon")})),c=Array.from(e.document.querySelectorAll(".globalseo-select")).filter((function(t){return!t.querySelector(".globalseo-lang-selector-ready-icon")})),s=[].concat(i(l),i(c));s.forEach((function(t){var e=t.querySelector("details");e&&(e.classList.remove("globalseo-lang-selector-element"),e.classList.remove("weploy-lang-selector-element"))}));var f,p=a(t);try{var h=function(){var t=f.value;if("childList"===t.type){var e,n=function(){try{var e,n;return((null==t||null===(e=t.target)||void 0===e?void 0:e.className)||"").includes("globalseo-lang-selector-value")||((null==t||null===(n=t.target)||void 0===n?void 0:n.className)||"").includes("weploy-lang-selector-value")}catch(t){return!1}}(),r=a(t.addedNodes);try{for(r.s();!(e=r.n()).done;){var i=e.value;n||o.push(i)}}catch(t){r.e(t)}finally{r.f()}}};for(p.s();!(f=p.n()).done;)h()}catch(t){p.e(t)}finally{p.f()}s.length&&r.createSelector?d(e,r).then((function(){o.length&&m(e,e.document.body,n,u).catch(console.log)})):o.length&&m(e,e.document.body,n,u).catch(console.log)})).observe(t,{childList:!0,subtree:!0}),e.isDomListenerAdded=!0}}));case 15:return t.abrupt("return",t.sent);case 18:t.prev=18,t.t0=t.catch(1),console.log("getTranslations error 2",t.t0),e.shouldConsoleglobalseoError&&console.error(t.t0);case 22:case"end":return t.stop()}}),t,null,[[1,18]])})),E=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){c(a,r,o,i,u,"next",t)}function u(t){c(a,r,o,i,u,"throw",t)}i(void 0)}))},E.apply(this,arguments)}f()&&(window.globalseoUtils||(window.globalseoUtils={}),window.globalseoUtils.isBrowser=f,window.globalseoUtils.getTranslations=D,window.globalseoUtils.createLanguageSelect=d,window.globalseoUtils.getLanguageFromLocalStorage=g,window.globalseoUtils.setOptions=y,window.globalseoUtils.extractOptionsFromScript=v,window.globalseoUtils.replaceLinks=b,window.globalseoUtils.renderSelectorState=w),t.exports.isBrowser=f,t.exports.getTranslations=D,t.exports.createLanguageSelect=d,t.exports.getLanguageFromLocalStorage=g,t.exports.setOptions=y,t.exports.extractOptionsFromScript=v,t.exports.replaceLinks=b,t.exports.renderSelectorState=w},704:(t,e,n)=>{var r=n(494);t.exports=function(t,e){for(var n=e.langParam,o=e.lang,a=e.translationMode,i=e.prefix,u=e.sourceOriginHostname,l=e.sourceOrigin,c=t.document.querySelectorAll("a:not(.globalseo-ignore-link)"),s=t.location.hostname.split(".").slice(1).join("."),f=0;f<c.length;f++){var p=c[f];if(p.href){var h=new URL(p.href);if(i&&(h.pathname=r(t,i,h.pathname)),!(h.pathname==t.location.pathname&&h.href.includes("#"))){if(!p.href.startsWith("http")&&!p.href.startsWith("tel:")&&!p.href.startsWith("mailto:")){var d=new URL(l||t.location.href),g="".concat(d.protocol,"//").concat(d.hostname).concat(p.href);p.href=g}var y=p.hostname=="".concat(o,".").concat(s)||p.hostname=="www.".concat(s)||p.hostname==t.location.hostname,m="subdirectory"==a&&(p.hostname==u||p.hostname=="www.".concat(u));if(y||m)if("subdomain"==a){var v=new URL(p.href);v.hostname="".concat(o,".").concat(s),i&&(v.pathname=r(t,i,v.pathname)),p.href=v.href}else if("subdirectory"==a){var b=new URL(p.href);i&&(b.pathname=r(t,i,b.pathname)),b.hostname=t.location.hostname;var w=b.pathname.split("/");o&&w.splice(1,0,o),b.pathname=w.join("/"),o||(b.pathname="".concat(i).concat(b.pathname)),p.href=b.href}else if(p.pathname!=t.location.pathname){var D=new URL(p.href);D.searchParams.set(n,o),p.href=D.href}}}}}},622:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(){"use strict";n=function(){return r};var t,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new N(r||[]);return i(a,"_invoke",{value:F(t,n,u)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var d="suspendedStart",g="suspendedYield",y="executing",m="completed",v={};function b(){}function w(){}function D(){}var E={};f(E,l,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(k([])));A&&A!==o&&a.call(A,l)&&(E=A);var C=D.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,n){function r(o,i,u,l){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,l)}),(function(t){r("throw",t,u,l)})):n.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function F(e,n,r){var o=d;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=O(u,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?m:g,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=h(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[l];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function e(){for(;++o<n.length;)if(a.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(e(n)+" is not iterable")}return w.prototype=D,i(C,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:w,configurable:!0}),w.displayName=f(D,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,D):(t.__proto__=D,f(t,s,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},L(S.prototype),f(S.prototype,c,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new S(p(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(C),f(C,s,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=k,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},r}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){a(i,r,o,u,l,"next",t)}function l(t){a(i,r,o,u,l,"throw",t)}u(void 0)}))}}function u(t,e,n){if(t.compressToArrayBuffer)return t.compressToArrayBuffer(e);var r=(new t.TextEncoder).encode(e),o=new t.CompressionStream(n),a=o.writable.getWriter();return a.write(r),a.close(),new t.Response(o.readable).arrayBuffer()}function l(t,e,n){if(t.decompressArrayBuffer)return t.decompressArrayBuffer(e);var r=new t.DecompressionStream(n),o=r.writable.getWriter();return o.write(e),o.close(),new t.Response(r.readable).arrayBuffer().then((function(e){return(new t.TextDecoder).decode(e)}))}function c(){return(c=i(n().mark((function t(e,o,a){var i,l,c;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e.compressToString){t.next=5;break}return t.next=4,e.compressToString(o);case 4:return t.abrupt("return",t.sent);case 5:return t.next=7,u(e,o,a);case 7:return l=t.sent,c=btoa((i=e.String).fromCharCode.apply(i,r(new e.Uint8Array(l)))),t.abrupt("return",c);case 12:throw t.prev=12,t.t0=t.catch(0),console.error("Error compressing string:",t.t0),t.t0;case 16:case"end":return t.stop()}}),t,null,[[0,12]])})))).apply(this,arguments)}function s(t,e){for(var n=t.atob(e),r=n.length,o=new Uint8Array(r),a=0;a<r;a++)o[a]=n.charCodeAt(a);return o.buffer}function f(){return(f=i(n().mark((function t(e,r,o){var a,i;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e.decompressString){t.next=5;break}return t.next=4,e.decompressString(r);case 4:return t.abrupt("return",t.sent);case 5:return a=s(e,r),t.next=8,l(e,a,o);case 8:return i=t.sent,t.abrupt("return",i);case 12:throw t.prev=12,t.t0=t.catch(0),console.error("Error decompressing string:",t.t0),t.t0;case 16:case"end":return t.stop()}}),t,null,[[0,12]])})))).apply(this,arguments)}t.exports={compressToArrayBuffer:u,decompressArrayBuffer:l,compressToString:function(t,e,n){return c.apply(this,arguments)},decompressString:function(t,e,n){return f.apply(this,arguments)},isCompressionSupported:function(t){var e=t.CompressionStream&&t.DecompressionStream&&t.TextEncoder&&t.TextDecoder;return t.isWorker||!!e}}},960:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===r(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=n(724),l=!1,c="globalseo-untranslated";function s(t){var e;t.globalseoOptions||f(t,{});var n=null===(e=t.navigator)||void 0===e?void 0:e.userAgent;return!!n&&u(n)?(f(t,{useBrowserLanguage:!1,isRobot:!0}),t.globalseoOptions):t.globalseoOptions}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.globalseoOptions=a(a({},t.globalseoOptions||{}),e)}function p(t,e){var n=s(t);"subdomain"!=n.translationMode||t.isWorker?"subdirectory"!=n.translationMode?t.globalseoActiveLang=e:t.globalseoActiveLang=t.activeSubdirectory||n.originalLanguage:t.globalseoActiveLang=t.activeSubdomain||n.originalLanguage}function h(t,e){t.isTranslationInitialized=e}t.exports={isBrowser:function(){return"undefined"!=typeof window},getGlobalseoOptions:s,setGlobalseoOptions:f,getGlobalseoActiveLang:function(t){var e=s(t);return t.paramsLang&&"subdomain"!=e.translationMode&&"subdirectory"!=e.translationMode?t.paramsLang:(t.globalseoActiveLang||p(t,null),t.globalseoActiveLang)},setGlobalseoActiveLang:p,getIsTranslationInitialized:function(t){return t.isTranslationInitialized||h(t,null),t.isTranslationInitialized},setIsTranslationInitialized:h,shouldTranslateInlineText:function(t){var e=s(t);return(null==e?void 0:e.translateSplittedText)||l},isUntranslatedValue:function(t){return t.includes(c)||t.includes("weploy-untranslated")},API_URL:"https://api.globalseo.ai",CDN_URL:"",KV_URL:"https://cdn.globalseo.ai",USE_MERGE:l,CONTEXT_LIMIT:3,MAX_WORDS_LENGTH_FOR_CONTEXT:3,globalseoOptions:undefined,OLD_EXCLUDE_CLASS:"weploy-exclude",DEFAULT_UNTRANSLATED_VALUE:c,MERGE_PREFIX:"weploy-merge",BRAND:"globalseo",PREV_SCRIPT_VERSION:"2.2.45",SPECIAL_API_KEYS:["cb20c25d-2d15-46ab-aac2-de5aa6b0aeda"]}},101:(t,e,n)=>{var r=n(960).isBrowser;function o(t){return t.globalseoTimer||a(t,null),t.globalseoTimer}function a(t,e){t.globalseoTimer=e}t.exports={debounce:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;return r()?function(){for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];clearTimeout(o(t)),a(t,setTimeout((function(){e.apply(void 0,i)}),n))}:e()},getGlobalseoTimer:o,setGlobalseoTimer:a}},724:t=>{t.exports=function(t){return new RegExp([/bot/,/spider/,/crawl/,/APIs-Google/,/AdsBot/,/Googlebot/,/mediapartners/,/Google Favicon/,/FeedFetcher/,/Google-Read-Aloud/,/DuplexWeb-Google/,/googleweblight/,/bing/,/yandex/,/baidu/,/duckduck/,/yahoo/,/ecosia/,/ia_archiver/,/facebook/,/instagram/,/pinterest/,/reddit/,/slack/,/twitter/,/whatsapp/,/youtube/,/semrush/].map((function(t){return t.source})).join("|"),"i").test(t)||t.includes("Google")}},952:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){"use strict";o=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new N(r||[]);return i(a,"_invoke",{value:F(t,n,u)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",g="suspendedYield",y="executing",m="completed",v={};function b(){}function w(){}function D(){}var E={};f(E,l,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(k([])));A&&A!==n&&a.call(A,l)&&(E=A);var C=D.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,u,l){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==r(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,u,l)}),(function(t){n("throw",t,u,l)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}})}function F(e,n,r){var o=d;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=O(u,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?m:g,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=h(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=D,i(C,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:w,configurable:!0}),w.displayName=f(D,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,D):(t.__proto__=D,f(t,s,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},L(S.prototype),f(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new S(p(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(C),f(C,s,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=k,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function a(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}var l=n(622),c=(l.decompressArrayBuffer,l.isCompressionSupported,n(960)),s=(c.isBrowser,c.API_URL,c.getGlobalseoOptions),f=c.setGlobalseoActiveLang,p=c.setGlobalseoOptions,h=c.SPECIAL_API_KEYS;n(106).renderSelectorState;function d(){var t;return t=o().mark((function t(e,n){var r,i,u,l,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s(e),!((i=r.definedLanguages)&&Array.isArray(i)&&i.length)){t.next=4;break}return t.abrupt("return",i);case 4:if(!e.globalseoError){t.next=6;break}return t.abrupt("return",[]);case 6:if(h.includes(r.apiKey)){t.next=8;break}return t.abrupt("return",[]);case 8:return l=[(u={Id:142,name:"манжерок.рф",language:"ru",allowedLanguages:["en","zh"],flags:["🇷🇺","🇺🇸","🇨🇳"],labels:["Russian","English","Chinese"]}).language].concat(a(u.allowedLanguages)),c=l.map((function(t,e){var n,r;return{lang:t,flag:(null===(n=u.flags||[])||void 0===n?void 0:n[e])||t,label:(null===(r=u.labels||[])||void 0===r?void 0:r[e])||t}})),p(e,{definedLanguages:c}),f(e,c[0].lang),t.abrupt("return",c);case 14:case"end":return t.stop()}}),t)})),d=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){u(a,r,o,i,l,"next",t)}function l(t){u(a,r,o,i,l,"throw",t)}i(void 0)}))},d.apply(this,arguments)}t.exports={fetchLanguageList:function(t,e){return d.apply(this,arguments)}}},373:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){"use strict";o=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new N(r||[]);return i(a,"_invoke",{value:F(t,n,u)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",g="suspendedYield",y="executing",m="completed",v={};function b(){}function w(){}function D(){}var E={};f(E,l,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(k([])));A&&A!==n&&a.call(A,l)&&(E=A);var C=D.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,u,l){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==r(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,u,l)}),(function(t){n("throw",t,u,l)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function a(){return new e((function(e,o