locizify 10.0.1 → 10.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/locizify.js +88 -23
- package/locizify.min.js +50 -36
- package/package.json +3 -3
package/locizify.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var locizify=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=e=>typeof e==`string`,u=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},d=e=>e==null?``:String(e),f=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},p=/###/g,m=e=>e&&e.includes(`###`)?e.replace(p,`.`):e,h=e=>!e||l(e),g=(e,t,n)=>{let r=l(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(h(e))return{};let t=m(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return h(e)?{}:{obj:e,k:m(r[i])}},_=(e,t,n)=>{let{obj:r,k:i}=g(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=g(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=g(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},v=(e,t,n,r)=>{let{obj:i,k:a}=g(e,t,Object);i[a]=i[a]||[],i[a].push(n)},y=(e,t)=>{let{obj:n,k:r}=g(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},b=(e,t,n)=>{let r=y(e,n);return r===void 0?y(t,n):r},x=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?l(e[r])||e[r]instanceof String||l(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):x(e[r],t[r],n):e[r]=t[r]);return e},S=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),C={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},w=e=>l(e)?e.replace(/[&<>"'\/]/g,e=>C[e]):e;var T=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}};let E=[` `,`,`,`?`,`!`,`;`],D=new T(20),ee=(e,t,n)=>{t=t||``,n=n||``;let r=E.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=D.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},te=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},O=e=>e?.replace(/_/g,`-`),ne={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}};var k=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||ne,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>l(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),l(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},re=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},ie=class extends re{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):l(n)&&i?o.push(...n.split(i)):o.push(n)));let s=y(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!l(n)?s:te(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),_(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(l(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=y(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?x(s,n,i):s={...s,...n},_(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},ae={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}};let oe=Symbol(`i18next/PATH_KEY`);function se(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===oe?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ce(e,t){let{[oe]:n}=e(se()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}let le=e=>!l(e)&&typeof e!=`boolean`&&typeof e!=`number`;var ue=class e extends re{constructor(e,t={}){super(),f([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=k.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=le(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ee(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:l(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:l(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||(i={}),t==null)return``;typeof t==`function`&&(t=ce(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?ce(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),u=c[c.length-1],d=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;d===void 0&&(d=`:`);let f=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()===`cimode`)return p?a?{res:`${u}${d}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${d}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:s;let m=this.resolve(t,i),h=m?.res,g=m?.usedKey||s,_=m?.exactUsedKey||s,v=[`[object Number]`,`[object Function]`,`[object RegExp]`],y=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x=i.count!==void 0&&!l(i.count),S=e.hasDefaultValue(i),C=x?this.pluralResolver.getSuffix(f,i.count,i):``,w=i.ordinal&&x?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):``,T=x&&!i.ordinal&&i.count===0,E=T&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${C}`]||i[`defaultValue${w}`]||i.defaultValue,D=h;b&&!h&&S&&(D=E);let ee=le(D),te=Object.prototype.toString.apply(D);if(b&&D&&ee&&!v.includes(te)&&!(l(y)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,D,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(m.res=e,m.usedParams=this.getUsedParamsDetails(i),m):e}if(o){let e=Array.isArray(D),t=e?[]:{},n=e?_:g;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${o}${e}`;S&&!h?t[e]=this.translate(r,{...i,defaultValue:le(E)?E[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=D[e])}h=t}}else if(b&&l(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,t,i,r));else{let e=!1,n=!1;!this.isValidLookup(h)&&S&&(e=!0,h=E),this.isValidLookup(h)||(n=!0,h=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:h,c=S&&E!==h&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,f,u,s,c?E:h),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=S&&n!==h?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,r,c,i),this.emit(`missingKey`,e,u,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);T&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||E)})}):n(e,s,E))}h=this.extendTranslation(h,t,i,m,r),n&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}${d}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${s}`:s,e?h:void 0,i))}return a?(m.res=h,m.usedParams=this.getUsedParamsDetails(i),m):h}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=l(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!l(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=l(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=ae.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return l(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?ce(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let d=t.count!==void 0&&!l(t.count),f=d&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(l(t.context)||typeof t.context==`number`)&&t.context!==``,m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${m[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${m[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),m.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),f&&o.push(c+n)),p){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),d&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),f&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!l(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},de=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create(`languageUtils`)}getScriptPartFromCode(e){if(e=O(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=O(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(l(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),l(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return l(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):l(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}};let fe={zero:0,one:1,two:2,few:3,many:4,other:5},pe={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})};var me=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=O(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),pe;if(!e.match(/-|_/))return pe;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>fe[e]-fe[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}};let he=(e,t,n,r=`.`,i=!0)=>{let a=b(e,t,n);return!a&&i&&l(n)&&(a=te(e,n,r),a===void 0&&(a=te(t,n,r))),a},ge=e=>e.replace(/\$/g,`$$$$`);var _e=class{constructor(e={}){this.logger=k.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?w:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?S(i):a||`{{`,this.suffix=o?S(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?S(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?S(l):``,this.nestingPrefix=d?S(d):f||S(`$t(`),this.nestingSuffix=p?S(p):m||S(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=he(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(he(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let u=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ge(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ge(this.escape(e)):ge(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof u==`function`){let t=u(e,i,r);a=l(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !l(a)&&!this.useRawValueToEscape&&(a=d(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),f?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${S(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!l(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!l(i))return i;l(i)||(i=d(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}};let ve=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||(n.currency=i.trim()):t===`relativetime`&&!i.includes(`:`)?n.range||(n.range=i.trim()):i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},ye=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(O(r),i),t[o]=s),s(n)}},be=e=>(t,n,r)=>e(O(n),r)(t);var xe=class{constructor(e={}){this.logger=k.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?ye:be;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ye(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=ve(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}};let Se=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};var Ce=class extends re{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=k.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{v(n.loaded,[i],a),Se(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();l(e)&&(e=this.languageUtils.toResolveHierarchy(e)),l(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}};let we=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),l(e[1])&&(t.defaultValue=e[1]),l(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Te=e=>(l(e.ns)&&(e.ns=[e.ns]),l(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),l(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Ee=()=>{},De=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},A=class e extends re{constructor(e={},t){if(super(),this.options=Te(e),this.services={},this.logger=k,this.modules={external:[]},De(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(l(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=we();this.options={...n,...this.options,...Te(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?k.init(r(this.modules.logger),this.options):k.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:xe;let t=new de(this.options);this.store=new ie(this.options.resources,this.options);let n=this.services;n.logger=k,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new me(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new _e(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Ce(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new ue(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=u(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Ee){let n=t,r=l(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=u();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Ee),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&ae.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=u();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=l(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(l(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=ce(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=ce(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=ce(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return l(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=u();return this.options.ns?(l(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=u();l(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new de(we());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Ee){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new ie(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...we().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new _e(n)}return a.translator=new ue(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();A.createInstance,A.dir,A.init,A.loadResources,A.reloadResources,A.use,A.changeLanguage,A.getFixedT,A.t,A.exists,A.setDefaultNamespace,A.hasLoadedNamespace,A.loadNamespaces,A.loadLanguages;let Oe=[];Oe.forEach,Oe.slice;let ke=[`__proto__`,`constructor`,`prototype`];function Ae(e){return!(typeof e!=`string`||e.length===0||e.length>128||ke.indexOf(e)>-1||e.indexOf(`..`)>-1||e.indexOf(`\\`)>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function je(e){return!(!Ae(e)||e.indexOf(`/`)>-1)}function Me(e){return Ae(e)}let Ne={lng:je,ns:Me};function Pe(e){return typeof e==`string`?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e}function Fe(e){if(typeof e!=`string`||e.length===0)return e;try{let t=new URL(e);return t.username||t.password?(t.username=``,t.password=``,t.toString()):e}catch{return e.replace(/(\/\/)[^/@\s]+@/g,`$1`)}}function Ie(){return typeof XMLHttpRequest==`function`||typeof XMLHttpRequest==`object`}function Le(e){return!!e&&typeof e.then==`function`}function Re(e){return Le(e)?e:Promise.resolve(e)}let ze=/\{\{(.+?)\}\}/g;function Be(e,t){let n=!1,r=e.replace(ze,(e,r)=>{let i=r.trim();if(ke.indexOf(i)>-1)return e;let a=t[i];if(a==null)return e;let o=Ne[i]||je,s=String(a).split(`+`);for(let t of s)if(!o(t))return n=!0,e;return s.join(`+`)});return n?null:r}let Ve=typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof window<`u`?window:void 0,He;typeof fetch==`function`?He=fetch:Ve&&typeof Ve.fetch==`function`&&(He=Ve.fetch);let Ue=Ie()&&Ve?Ve.XMLHttpRequest:void 0,We=typeof ActiveXObject==`function`&&Ve?Ve.ActiveXObject:void 0,Ge=[`__proto__`,`constructor`,`prototype`],Ke=(e,t)=>{if(t&&typeof t==`object`){let n=``;for(let e of Object.keys(t))Ge.indexOf(e)>-1||(n+=`&`+encodeURIComponent(e)+`=`+encodeURIComponent(t[e]));if(!n)return e;e=e+(e.indexOf(`?`)===-1?`?`:`&`)+n.slice(1)}return e},qe=(e,t,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||`Error`,{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let a=r(e,t);if(a instanceof Promise){a.then(i).catch(n);return}}typeof fetch==`function`?fetch(e,t).then(i).catch(n):He(e,t).then(i).catch(n)},Je=(e,t,n,r)=>{e.queryStringParams&&(t=Ke(t,e.queryStringParams));let i={...typeof e.customHeaders==`function`?e.customHeaders():e.customHeaders};typeof window>`u`&&typeof global<`u`&&global.process!==void 0&&global.process.versions&&global.process.versions.node&&(i[`User-Agent`]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),n&&(i[`Content-Type`]=`application/json`);let a=typeof e.requestOptions==`function`?e.requestOptions(n):e.requestOptions,o={method:n?`POST`:`GET`,body:n?e.stringify(n):void 0,headers:i,...e._omitFetchOptions?{}:a},s=typeof e.alternateFetch==`function`&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{qe(t,o,r,s)}catch(n){if(!a||Object.keys(a).length===0||!n.message||n.message.indexOf(`not implemented`)<0)return r(n);try{Object.keys(a).forEach(e=>{delete o[e]}),qe(t,o,r,s),e._omitFetchOptions=!0}catch(e){r(e)}}},Ye=(e,t,n,r)=>{n&&typeof n==`object`&&(n=Ke(``,n).slice(1)),e.queryStringParams&&(t=Ke(t,e.queryStringParams));try{let i=Ue?new Ue:new We(`MSXML2.XMLHTTP.3.0`);i.open(n?`POST`:`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),i.overrideMimeType&&i.overrideMimeType(`application/json`);let a=e.customHeaders;if(a=typeof a==`function`?a():a,a)for(let e of Object.keys(a))Ge.indexOf(e)>-1||i.setRequestHeader(e,a[e]);i.onreadystatechange=()=>{i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(e){console&&console.log(e)}},Xe=(e,t,n,r)=>{if(typeof n==`function`&&(r=n,n=void 0),r=r||(()=>{}),He&&t.indexOf(`file:`)!==0)return Je(e,t,n,r);if(Ie()||typeof ActiveXObject==`function`)return Ye(e,t,n,r);r(Error(`No fetch and no xhr implementation found!`))},Ze=()=>({loadPath:`/locales/{{lng}}/{{ns}}.json`,addPath:`/locales/add/{{lng}}/{{ns}}`,parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||``}),parseLoadPayload:(e,t)=>void 0,request:Xe,reloadInterval:typeof window<`u`?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:`cors`,credentials:`same-origin`,cache:`default`}});var Qe=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type=`backend`,this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...Ze(),...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);typeof e==`object`&&typeof e.unref==`function`&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,r,i){let a=this.options.loadPath;typeof this.options.loadPath==`function`&&(a=this.options.loadPath(e,n)),a=Re(a),a.then(a=>{if(!a)return i(null,{});let o=Be(a,{lng:e.join(`+`),ns:n.join(`+`)});if(o==null){let t=e.map(Pe).join(`, `),r=n.map(Pe).join(`, `);return i(Error(`i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=[`+t+`] namespaces=[`+r+`]`),!1)}this.loadUrl(o,i,t,r)})}loadUrl(e,t,n,r){let i=typeof n==`string`?[n]:n,a=typeof r==`string`?[r]:r,o=this.options.parseLoadPayload(i,a),s=Pe(Fe(e));this.options.request(this.options,e,o,(e,i)=>{if(i&&(i.status>=500&&i.status<600||!i.status))return t(`failed loading `+s+`; status code: `+i.status,!0);if(i&&i.status>=400&&i.status<500)return t(`failed loading `+s+`; status code: `+i.status,!1);if(!i&&e&&e.message){let n=e.message.toLowerCase();if([`failed`,`fetch`,`network`,`load`].find(e=>n.indexOf(e)>-1))return t(`failed loading `+s+`: `+Pe(e.message),!0)}if(e)return t(e,!1);let a,o;try{a=typeof i.data==`string`?this.options.parse(i.data,n,r):i.data}catch{o=`failed parsing `+s+` to json`}if(o)return t(o,!1);t(null,a)})}create(e,t,n,r,i){if(!this.options.addPath)return;typeof e==`string`&&(e=[e]);let a=this.options.parsePayload(t,n,r),o=0,s=[],c=[];e.forEach(n=>{let r=this.options.addPath;typeof this.options.addPath==`function`&&(r=this.options.addPath(n,t));let l=Be(r,{lng:n,ns:t});if(l==null){o+=1,i&&o===e.length&&i(s,c);return}this.options.request(this.options,l,a,(t,n)=>{o+=1,s.push(t),c.push(n),o===e.length&&typeof i==`function`&&i(s,c)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,r=e.language;if(r&&r.toLowerCase()===`cimode`)return;let i=[],a=e=>{t.toResolveHierarchy(e).forEach(e=>{i.indexOf(e)<0&&i.push(e)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(e=>a(e)),i.forEach(t=>{this.allOptions.ns.forEach(r=>{e.read(t,r,`read`,null,null,(i,a)=>{i&&n.warn(`loading namespace ${r} for language ${t} failed`,i),!i&&a&&n.log(`loaded namespace ${r} for language ${t}`,a),e.loaded(`${t}|${r}`,i,a)})})})}};Qe.type=`backend`;let{slice:$e,forEach:et}=[];function tt(e){return et.call($e.call(arguments,1),t=>{if(t)for(let n in t)e[n]===void 0&&(e[n]=t[n])}),e}function nt(e){return typeof e==`string`?[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e)):!1}let rt=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,it=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:`/`},r=`${e}=${encodeURIComponent(t)}`;if(n.maxAge>0){let e=n.maxAge-0;if(Number.isNaN(e))throw Error(`maxAge should be a Number`);r+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!rt.test(n.domain))throw TypeError(`option domain is invalid`);r+=`; Domain=${n.domain}`}if(n.path){if(!rt.test(n.path))throw TypeError(`option path is invalid`);r+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!=`function`)throw TypeError(`option expires is invalid`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite)switch(typeof n.sameSite==`string`?n.sameSite.toLowerCase():n.sameSite){case!0:r+=`; SameSite=Strict`;break;case`lax`:r+=`; SameSite=Lax`;break;case`strict`:r+=`; SameSite=Strict`;break;case`none`:r+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid`)}return n.partitioned&&(r+=`; Partitioned`),r},at={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:`/`,sameSite:`strict`};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=it(e,t,i)},read(e){let t=`${e}=`,n=document.cookie.split(`;`);for(let e=0;e<n.length;e++){let r=n[e];for(;r.charAt(0)===` `;)r=r.substring(1,r.length);if(r.indexOf(t)===0)return r.substring(t.length,r.length)}return null},remove(e,t){this.create(e,``,-1,t)}};var ot={name:`cookie`,lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<`u`)return at.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&typeof document<`u`&&at.create(n,e,r,i,a)}},st={name:`querystring`,lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<`u`){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf(`?`)>-1&&(e=window.location.hash.substring(window.location.hash.indexOf(`?`)));let r=e.substring(1).split(`&`);for(let e=0;e<r.length;e++){let i=r[e].indexOf(`=`);i>0&&r[e].substring(0,i)===t&&(n=r[e].substring(i+1))}}return n}},ct={name:`hash`,lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<`u`){let{hash:e}=window.location;if(e&&e.length>2){let i=e.substring(1);if(t){let e=i.split(`&`);for(let n=0;n<e.length;n++){let i=e[n].indexOf(`=`);i>0&&e[n].substring(0,i)===t&&(r=e[n].substring(i+1))}}if(r)return r;if(!r&&n>-1){let t=e.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?t[typeof n==`number`?n:0]?.replace(`/`,``):void 0}}}return r}};let lt=null,ut=()=>{if(lt!==null)return lt;try{if(lt=typeof window<`u`&&window.localStorage!==null,!lt)return!1;let e=`i18next.translate.boo`;window.localStorage.setItem(e,`foo`),window.localStorage.removeItem(e)}catch{lt=!1}return lt};var dt={name:`localStorage`,lookup(e){let{lookupLocalStorage:t}=e;if(t&&ut())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ut()&&window.localStorage.setItem(n,e)}};let ft=null,pt=()=>{if(ft!==null)return ft;try{if(ft=typeof window<`u`&&window.sessionStorage!==null,!ft)return!1;let e=`i18next.translate.boo`;window.sessionStorage.setItem(e,`foo`),window.sessionStorage.removeItem(e)}catch{ft=!1}return ft};var mt={name:`sessionStorage`,lookup(e){let{lookupSessionStorage:t}=e;if(t&&pt())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&pt()&&window.sessionStorage.setItem(n,e)}},ht={name:`navigator`,lookup(e){let t=[];if(typeof navigator<`u`){let{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let n=0;n<e.length;n++)t.push(e[n]);n&&t.push(n),r&&t.push(r)}return t.length>0?t:void 0}},gt={name:`htmlTag`,lookup(e){let{htmlTag:t}=e,n,r=t||(typeof document<`u`?document.documentElement:null);return r&&typeof r.getAttribute==`function`&&(n=r.getAttribute(`lang`)),n}},_t={name:`path`,lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>`u`)return;let n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(n))return n[typeof t==`number`?t:0]?.replace(`/`,``)}},vt={name:`subdomain`,lookup(e){let{lookupFromSubdomainIndex:t}=e,n=typeof t==`number`?t+1:1,r=typeof window<`u`&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let yt=!1;try{document.cookie,yt=!0}catch{}let bt=[`querystring`,`cookie`,`localStorage`,`sessionStorage`,`navigator`,`htmlTag`];yt||bt.splice(1,1);let xt=()=>({order:bt,lookupQuerystring:`lng`,lookupCookie:`i18next`,lookupLocalStorage:`i18nextLng`,lookupSessionStorage:`i18nextLng`,caches:[`localStorage`],excludeCacheFor:[`cimode`],convertDetectedLanguage:e=>e});var St=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type=`languageDetector`,this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=tt(t,this.options||{},xt()),typeof this.options.convertDetectedLanguage==`string`&&this.options.convertDetectedLanguage.indexOf(`15897`)>-1&&(this.options.convertDetectedLanguage=e=>e.replace(`-`,`_`)),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(ot),this.addDetector(st),this.addDetector(dt),this.addDetector(mt),this.addDetector(ht),this.addDetector(gt),this.addDetector(_t),this.addDetector(vt),this.addDetector(ct)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&typeof n==`string`&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>e!=null&&!nt(e)).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}};St.type=`languageDetector`;var Ct=o(((e,t)=>{t.exports=`2`})),wt=o(((e,t)=>{var n=Ct();t.exports=r;function r(e){return e&&e.type===`VirtualNode`&&e.version===n}})),j=o(((e,t)=>{t.exports=n;function n(e){return e&&e.type===`Widget`}})),Tt=o(((e,t)=>{t.exports=n;function n(e){return e&&e.type===`Thunk`}})),Et=o(((e,t)=>{t.exports=n;function n(e){return e&&(typeof e.hook==`function`&&!e.hasOwnProperty(`hook`)||typeof e.unhook==`function`&&!e.hasOwnProperty(`unhook`))}})),Dt=o(((e,t)=>{var n=Ct(),r=wt(),i=j(),a=Tt(),o=Et();t.exports=l;var s={},c=[];function l(e,t,n,l,u){this.tagName=e,this.properties=t||s,this.children=n||c,this.key=l==null?void 0:String(l),this.namespace=typeof u==`string`?u:null;var d=n&&n.length||0,f=0,p=!1,m=!1,h=!1,g;for(var _ in t)if(t.hasOwnProperty(_)){var v=t[_];o(v)&&v.unhook&&(g||(g={}),g[_]=v)}for(var y=0;y<d;y++){var b=n[y];r(b)?(f+=b.count||0,!p&&b.hasWidgets&&(p=!0),!m&&b.hasThunks&&(m=!0),!h&&(b.hooks||b.descendantHooks)&&(h=!0)):!p&&i(b)?typeof b.destroy==`function`&&(p=!0):!m&&a(b)&&(m=!0)}this.count=d+f,this.hasWidgets=p,this.hasThunks=m,this.hooks=g,this.descendantHooks=h}l.prototype.version=n,l.prototype.type=`VirtualNode`})),Ot=o(((e,t)=>{var n=Ct();t.exports=r;function r(e){this.text=String(e)}r.prototype.version=n,r.prototype.type=`VirtualText`})),kt=o(((e,t)=>{t.exports=n;function n(e){this.text=String(e)}n.prototype.type=`Widget`,n.prototype.init=function(){return document.createComment(this.text)},n.prototype.update=function(e,t){this.text!==e.text&&(t.nodeValue=this.text)}})),At=o(((e,t)=>{
|
|
1
|
+
var locizify=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=e=>typeof e==`string`,u=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},d=e=>e==null?``:String(e),f=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},p=/###/g,m=e=>e&&e.includes(`###`)?e.replace(p,`.`):e,h=e=>!e||l(e),g=(e,t,n)=>{let r=l(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(h(e))return{};let t=m(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return h(e)?{}:{obj:e,k:m(r[i])}},_=(e,t,n)=>{let{obj:r,k:i}=g(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=g(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=g(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},v=(e,t,n,r)=>{let{obj:i,k:a}=g(e,t,Object);i[a]=i[a]||[],i[a].push(n)},y=(e,t)=>{let{obj:n,k:r}=g(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},b=(e,t,n)=>{let r=y(e,n);return r===void 0?y(t,n):r},x=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?l(e[r])||e[r]instanceof String||l(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):x(e[r],t[r],n):e[r]=t[r]);return e},S=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),C={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},w=e=>l(e)?e.replace(/[&<>"'\/]/g,e=>C[e]):e;var T=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}};let E=[` `,`,`,`?`,`!`,`;`],D=new T(20),ee=(e,t,n)=>{t=t||``,n=n||``;let r=E.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=D.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},te=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},O=e=>e?.replace(/_/g,`-`),ne={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}};var k=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||ne,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>l(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),l(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},re=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},ie=class extends re{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):l(n)&&i?o.push(...n.split(i)):o.push(n)));let s=y(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!l(n)?s:te(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),_(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(l(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=y(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?x(s,n,i):s={...s,...n},_(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},ae={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}};let oe=Symbol(`i18next/PATH_KEY`);function se(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===oe?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ce(e,t){let{[oe]:n}=e(se()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}let le=e=>!l(e)&&typeof e!=`boolean`&&typeof e!=`number`;var ue=class e extends re{constructor(e,t={}){super(),f([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=k.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=le(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ee(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:l(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:l(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||(i={}),t==null)return``;typeof t==`function`&&(t=ce(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?ce(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),u=c[c.length-1],d=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;d===void 0&&(d=`:`);let f=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()===`cimode`)return p?a?{res:`${u}${d}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${d}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:s;let m=this.resolve(t,i),h=m?.res,g=m?.usedKey||s,_=m?.exactUsedKey||s,v=[`[object Number]`,`[object Function]`,`[object RegExp]`],y=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x=i.count!==void 0&&!l(i.count),S=e.hasDefaultValue(i),C=x?this.pluralResolver.getSuffix(f,i.count,i):``,w=i.ordinal&&x?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):``,T=x&&!i.ordinal&&i.count===0,E=T&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${C}`]||i[`defaultValue${w}`]||i.defaultValue,D=h;b&&!h&&S&&(D=E);let ee=le(D),te=Object.prototype.toString.apply(D);if(b&&D&&ee&&!v.includes(te)&&!(l(y)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,D,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(m.res=e,m.usedParams=this.getUsedParamsDetails(i),m):e}if(o){let e=Array.isArray(D),t=e?[]:{},n=e?_:g;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${o}${e}`;S&&!h?t[e]=this.translate(r,{...i,defaultValue:le(E)?E[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=D[e])}h=t}}else if(b&&l(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,t,i,r));else{let e=!1,n=!1;!this.isValidLookup(h)&&S&&(e=!0,h=E),this.isValidLookup(h)||(n=!0,h=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:h,c=S&&E!==h&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,f,u,s,c?E:h),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=S&&n!==h?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,r,c,i),this.emit(`missingKey`,e,u,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);T&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||E)})}):n(e,s,E))}h=this.extendTranslation(h,t,i,m,r),n&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}${d}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${s}`:s,e?h:void 0,i))}return a?(m.res=h,m.usedParams=this.getUsedParamsDetails(i),m):h}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=l(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!l(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=l(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=ae.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return l(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?ce(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let d=t.count!==void 0&&!l(t.count),f=d&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(l(t.context)||typeof t.context==`number`)&&t.context!==``,m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${m[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${m[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),m.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),f&&o.push(c+n)),p){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),d&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),f&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!l(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},de=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create(`languageUtils`)}getScriptPartFromCode(e){if(e=O(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=O(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(l(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),l(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return l(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):l(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}};let fe={zero:0,one:1,two:2,few:3,many:4,other:5},pe={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})};var me=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=O(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),pe;if(!e.match(/-|_/))return pe;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>fe[e]-fe[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}};let he=(e,t,n,r=`.`,i=!0)=>{let a=b(e,t,n);return!a&&i&&l(n)&&(a=te(e,n,r),a===void 0&&(a=te(t,n,r))),a},ge=e=>e.replace(/\$/g,`$$$$`);var _e=class{constructor(e={}){this.logger=k.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?w:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?S(i):a||`{{`,this.suffix=o?S(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?S(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?S(l):``,this.nestingPrefix=d?S(d):f||S(`$t(`),this.nestingSuffix=p?S(p):m||S(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=he(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(he(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let u=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ge(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ge(this.escape(e)):ge(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof u==`function`){let t=u(e,i,r);a=l(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !l(a)&&!this.useRawValueToEscape&&(a=d(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),f?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${S(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!l(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!l(i))return i;l(i)||(i=d(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}};let ve=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||(n.currency=i.trim()):t===`relativetime`&&!i.includes(`:`)?n.range||(n.range=i.trim()):i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},ye=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(O(r),i),t[o]=s),s(n)}},be=e=>(t,n,r)=>e(O(n),r)(t);var xe=class{constructor(e={}){this.logger=k.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?ye:be;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ye(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=ve(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}};let Se=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};var Ce=class extends re{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=k.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{v(n.loaded,[i],a),Se(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();l(e)&&(e=this.languageUtils.toResolveHierarchy(e)),l(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}};let we=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),l(e[1])&&(t.defaultValue=e[1]),l(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Te=e=>(l(e.ns)&&(e.ns=[e.ns]),l(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),l(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Ee=()=>{},De=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},A=class e extends re{constructor(e={},t){if(super(),this.options=Te(e),this.services={},this.logger=k,this.modules={external:[]},De(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(l(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=we();this.options={...n,...this.options,...Te(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?k.init(r(this.modules.logger),this.options):k.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:xe;let t=new de(this.options);this.store=new ie(this.options.resources,this.options);let n=this.services;n.logger=k,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new me(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new _e(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Ce(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new ue(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=u(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Ee){let n=t,r=l(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=u();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Ee),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&ae.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=u();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=l(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(l(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=ce(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=ce(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=ce(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return l(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=u();return this.options.ns?(l(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=u();l(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new de(we());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Ee){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new ie(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...we().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new _e(n)}return a.translator=new ue(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();A.createInstance,A.dir,A.init,A.loadResources,A.reloadResources,A.use,A.changeLanguage,A.getFixedT,A.t,A.exists,A.setDefaultNamespace,A.hasLoadedNamespace,A.loadNamespaces,A.loadLanguages;let Oe=[];Oe.forEach,Oe.slice;let ke=[`__proto__`,`constructor`,`prototype`];function Ae(e){return!(typeof e!=`string`||e.length===0||e.length>128||ke.indexOf(e)>-1||e.indexOf(`..`)>-1||e.indexOf(`\\`)>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function je(e){return!(!Ae(e)||e.indexOf(`/`)>-1)}function Me(e){return Ae(e)}let Ne={lng:je,ns:Me};function Pe(e){return typeof e==`string`?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e}function Fe(e){if(typeof e!=`string`||e.length===0)return e;try{let t=new URL(e);return t.username||t.password?(t.username=``,t.password=``,t.toString()):e}catch{return e.replace(/(\/\/)[^/@\s]+@/g,`$1`)}}function Ie(){return typeof XMLHttpRequest==`function`||typeof XMLHttpRequest==`object`}function Le(e){return!!e&&typeof e.then==`function`}function Re(e){return Le(e)?e:Promise.resolve(e)}let ze=/\{\{(.+?)\}\}/g;function Be(e,t){let n=!1,r=e.replace(ze,(e,r)=>{let i=r.trim();if(ke.indexOf(i)>-1)return e;let a=t[i];if(a==null)return e;let o=Ne[i]||je,s=String(a).split(`+`);for(let t of s)if(!o(t))return n=!0,e;return s.join(`+`)});return n?null:r}let Ve=typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof window<`u`?window:void 0,He;typeof fetch==`function`?He=fetch:Ve&&typeof Ve.fetch==`function`&&(He=Ve.fetch);let Ue=Ie()&&Ve?Ve.XMLHttpRequest:void 0,We=typeof ActiveXObject==`function`&&Ve?Ve.ActiveXObject:void 0,Ge=[`__proto__`,`constructor`,`prototype`],Ke=(e,t)=>{if(t&&typeof t==`object`){let n=``;for(let e of Object.keys(t))Ge.indexOf(e)>-1||(n+=`&`+encodeURIComponent(e)+`=`+encodeURIComponent(t[e]));if(!n)return e;e=e+(e.indexOf(`?`)===-1?`?`:`&`)+n.slice(1)}return e},qe=(e,t,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||`Error`,{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let a=r(e,t);if(a instanceof Promise){a.then(i).catch(n);return}}typeof fetch==`function`?fetch(e,t).then(i).catch(n):He(e,t).then(i).catch(n)},Je=(e,t,n,r)=>{e.queryStringParams&&(t=Ke(t,e.queryStringParams));let i={...typeof e.customHeaders==`function`?e.customHeaders():e.customHeaders};typeof window>`u`&&typeof global<`u`&&global.process!==void 0&&global.process.versions&&global.process.versions.node&&(i[`User-Agent`]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),n&&(i[`Content-Type`]=`application/json`);let a=typeof e.requestOptions==`function`?e.requestOptions(n):e.requestOptions,o={method:n?`POST`:`GET`,body:n?e.stringify(n):void 0,headers:i,...e._omitFetchOptions?{}:a},s=typeof e.alternateFetch==`function`&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{qe(t,o,r,s)}catch(n){if(!a||Object.keys(a).length===0||!n.message||n.message.indexOf(`not implemented`)<0)return r(n);try{Object.keys(a).forEach(e=>{delete o[e]}),qe(t,o,r,s),e._omitFetchOptions=!0}catch(e){r(e)}}},Ye=(e,t,n,r)=>{n&&typeof n==`object`&&(n=Ke(``,n).slice(1)),e.queryStringParams&&(t=Ke(t,e.queryStringParams));try{let i=Ue?new Ue:new We(`MSXML2.XMLHTTP.3.0`);i.open(n?`POST`:`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),i.overrideMimeType&&i.overrideMimeType(`application/json`);let a=e.customHeaders;if(a=typeof a==`function`?a():a,a)for(let e of Object.keys(a))Ge.indexOf(e)>-1||i.setRequestHeader(e,a[e]);i.onreadystatechange=()=>{i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(e){console&&console.log(e)}},Xe=(e,t,n,r)=>{if(typeof n==`function`&&(r=n,n=void 0),r=r||(()=>{}),He&&t.indexOf(`file:`)!==0)return Je(e,t,n,r);if(Ie()||typeof ActiveXObject==`function`)return Ye(e,t,n,r);r(Error(`No fetch and no xhr implementation found!`))},Ze=()=>({loadPath:`/locales/{{lng}}/{{ns}}.json`,addPath:`/locales/add/{{lng}}/{{ns}}`,parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||``}),parseLoadPayload:(e,t)=>void 0,request:Xe,reloadInterval:typeof window<`u`?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:`cors`,credentials:`same-origin`,cache:`default`}});var Qe=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type=`backend`,this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...Ze(),...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);typeof e==`object`&&typeof e.unref==`function`&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,r,i){let a=this.options.loadPath;typeof this.options.loadPath==`function`&&(a=this.options.loadPath(e,n)),a=Re(a),a.then(a=>{if(!a)return i(null,{});let o=Be(a,{lng:e.join(`+`),ns:n.join(`+`)});if(o==null){let t=e.map(Pe).join(`, `),r=n.map(Pe).join(`, `);return i(Error(`i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=[`+t+`] namespaces=[`+r+`]`),!1)}this.loadUrl(o,i,t,r)})}loadUrl(e,t,n,r){let i=typeof n==`string`?[n]:n,a=typeof r==`string`?[r]:r,o=this.options.parseLoadPayload(i,a),s=Pe(Fe(e));this.options.request(this.options,e,o,(e,i)=>{if(i&&(i.status>=500&&i.status<600||!i.status))return t(`failed loading `+s+`; status code: `+i.status,!0);if(i&&i.status>=400&&i.status<500)return t(`failed loading `+s+`; status code: `+i.status,!1);if(!i&&e&&e.message){let n=e.message.toLowerCase();if([`failed`,`fetch`,`network`,`load`].find(e=>n.indexOf(e)>-1))return t(`failed loading `+s+`: `+Pe(e.message),!0)}if(e)return t(e,!1);let a,o;try{a=typeof i.data==`string`?this.options.parse(i.data,n,r):i.data}catch{o=`failed parsing `+s+` to json`}if(o)return t(o,!1);t(null,a)})}create(e,t,n,r,i){if(!this.options.addPath)return;typeof e==`string`&&(e=[e]);let a=this.options.parsePayload(t,n,r),o=0,s=[],c=[];e.forEach(n=>{let r=this.options.addPath;typeof this.options.addPath==`function`&&(r=this.options.addPath(n,t));let l=Be(r,{lng:n,ns:t});if(l==null){o+=1,i&&o===e.length&&i(s,c);return}this.options.request(this.options,l,a,(t,n)=>{o+=1,s.push(t),c.push(n),o===e.length&&typeof i==`function`&&i(s,c)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,r=e.language;if(r&&r.toLowerCase()===`cimode`)return;let i=[],a=e=>{t.toResolveHierarchy(e).forEach(e=>{i.indexOf(e)<0&&i.push(e)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(e=>a(e)),i.forEach(t=>{this.allOptions.ns.forEach(r=>{e.read(t,r,`read`,null,null,(i,a)=>{i&&n.warn(`loading namespace ${r} for language ${t} failed`,i),!i&&a&&n.log(`loaded namespace ${r} for language ${t}`,a),e.loaded(`${t}|${r}`,i,a)})})})}};Qe.type=`backend`;let{slice:$e,forEach:et}=[];function tt(e){return et.call($e.call(arguments,1),t=>{if(t)for(let n in t)e[n]===void 0&&(e[n]=t[n])}),e}function nt(e){return typeof e==`string`?[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e)):!1}let rt=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,it=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:`/`},r=`${e}=${encodeURIComponent(t)}`;if(n.maxAge>0){let e=n.maxAge-0;if(Number.isNaN(e))throw Error(`maxAge should be a Number`);r+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!rt.test(n.domain))throw TypeError(`option domain is invalid`);r+=`; Domain=${n.domain}`}if(n.path){if(!rt.test(n.path))throw TypeError(`option path is invalid`);r+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!=`function`)throw TypeError(`option expires is invalid`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite)switch(typeof n.sameSite==`string`?n.sameSite.toLowerCase():n.sameSite){case!0:r+=`; SameSite=Strict`;break;case`lax`:r+=`; SameSite=Lax`;break;case`strict`:r+=`; SameSite=Strict`;break;case`none`:r+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid`)}return n.partitioned&&(r+=`; Partitioned`),r},at={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:`/`,sameSite:`strict`};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=it(e,t,i)},read(e){let t=`${e}=`,n=document.cookie.split(`;`);for(let e=0;e<n.length;e++){let r=n[e];for(;r.charAt(0)===` `;)r=r.substring(1,r.length);if(r.indexOf(t)===0)return r.substring(t.length,r.length)}return null},remove(e,t){this.create(e,``,-1,t)}};var ot={name:`cookie`,lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<`u`)return at.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&typeof document<`u`&&at.create(n,e,r,i,a)}},st={name:`querystring`,lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<`u`){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf(`?`)>-1&&(e=window.location.hash.substring(window.location.hash.indexOf(`?`)));let r=e.substring(1).split(`&`);for(let e=0;e<r.length;e++){let i=r[e].indexOf(`=`);i>0&&r[e].substring(0,i)===t&&(n=r[e].substring(i+1))}}return n}},ct={name:`hash`,lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<`u`){let{hash:e}=window.location;if(e&&e.length>2){let i=e.substring(1);if(t){let e=i.split(`&`);for(let n=0;n<e.length;n++){let i=e[n].indexOf(`=`);i>0&&e[n].substring(0,i)===t&&(r=e[n].substring(i+1))}}if(r)return r;if(!r&&n>-1){let t=e.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?t[typeof n==`number`?n:0]?.replace(`/`,``):void 0}}}return r}};let lt=null,ut=()=>{if(lt!==null)return lt;try{if(lt=typeof window<`u`&&window.localStorage!==null,!lt)return!1;let e=`i18next.translate.boo`;window.localStorage.setItem(e,`foo`),window.localStorage.removeItem(e)}catch{lt=!1}return lt};var dt={name:`localStorage`,lookup(e){let{lookupLocalStorage:t}=e;if(t&&ut())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ut()&&window.localStorage.setItem(n,e)}};let ft=null,pt=()=>{if(ft!==null)return ft;try{if(ft=typeof window<`u`&&window.sessionStorage!==null,!ft)return!1;let e=`i18next.translate.boo`;window.sessionStorage.setItem(e,`foo`),window.sessionStorage.removeItem(e)}catch{ft=!1}return ft};var mt={name:`sessionStorage`,lookup(e){let{lookupSessionStorage:t}=e;if(t&&pt())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&pt()&&window.sessionStorage.setItem(n,e)}},ht={name:`navigator`,lookup(e){let t=[];if(typeof navigator<`u`){let{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let n=0;n<e.length;n++)t.push(e[n]);n&&t.push(n),r&&t.push(r)}return t.length>0?t:void 0}},gt={name:`htmlTag`,lookup(e){let{htmlTag:t}=e,n,r=t||(typeof document<`u`?document.documentElement:null);return r&&typeof r.getAttribute==`function`&&(n=r.getAttribute(`lang`)),n}},_t={name:`path`,lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>`u`)return;let n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(n))return n[typeof t==`number`?t:0]?.replace(`/`,``)}},vt={name:`subdomain`,lookup(e){let{lookupFromSubdomainIndex:t}=e,n=typeof t==`number`?t+1:1,r=typeof window<`u`&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let yt=!1;try{document.cookie,yt=!0}catch{}let bt=[`querystring`,`cookie`,`localStorage`,`sessionStorage`,`navigator`,`htmlTag`];yt||bt.splice(1,1);let xt=()=>({order:bt,lookupQuerystring:`lng`,lookupCookie:`i18next`,lookupLocalStorage:`i18nextLng`,lookupSessionStorage:`i18nextLng`,caches:[`localStorage`],excludeCacheFor:[`cimode`],convertDetectedLanguage:e=>e});var St=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type=`languageDetector`,this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=tt(t,this.options||{},xt()),typeof this.options.convertDetectedLanguage==`string`&&this.options.convertDetectedLanguage.indexOf(`15897`)>-1&&(this.options.convertDetectedLanguage=e=>e.replace(`-`,`_`)),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(ot),this.addDetector(st),this.addDetector(dt),this.addDetector(mt),this.addDetector(ht),this.addDetector(gt),this.addDetector(_t),this.addDetector(vt),this.addDetector(ct)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&typeof n==`string`&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>e!=null&&!nt(e)).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}};St.type=`languageDetector`;var Ct=o(((e,t)=>{t.exports=`2`})),wt=o(((e,t)=>{var n=Ct();t.exports=r;function r(e){return e&&e.type===`VirtualNode`&&e.version===n}})),Tt=o(((e,t)=>{t.exports=n;function n(e){return e&&e.type===`Widget`}})),Et=o(((e,t)=>{t.exports=n;function n(e){return e&&e.type===`Thunk`}})),Dt=o(((e,t)=>{t.exports=n;function n(e){return e&&(typeof e.hook==`function`&&!e.hasOwnProperty(`hook`)||typeof e.unhook==`function`&&!e.hasOwnProperty(`unhook`))}})),Ot=o(((e,t)=>{var n=Ct(),r=wt(),i=Tt(),a=Et(),o=Dt();t.exports=l;var s={},c=[];function l(e,t,n,l,u){this.tagName=e,this.properties=t||s,this.children=n||c,this.key=l==null?void 0:String(l),this.namespace=typeof u==`string`?u:null;var d=n&&n.length||0,f=0,p=!1,m=!1,h=!1,g;for(var _ in t)if(t.hasOwnProperty(_)){var v=t[_];o(v)&&v.unhook&&(g||(g={}),g[_]=v)}for(var y=0;y<d;y++){var b=n[y];r(b)?(f+=b.count||0,!p&&b.hasWidgets&&(p=!0),!m&&b.hasThunks&&(m=!0),!h&&(b.hooks||b.descendantHooks)&&(h=!0)):!p&&i(b)?typeof b.destroy==`function`&&(p=!0):!m&&a(b)&&(m=!0)}this.count=d+f,this.hasWidgets=p,this.hasThunks=m,this.hooks=g,this.descendantHooks=h}l.prototype.version=n,l.prototype.type=`VirtualNode`})),kt=o(((e,t)=>{var n=Ct();t.exports=r;function r(e){this.text=String(e)}r.prototype.version=n,r.prototype.type=`VirtualText`})),At=o(((e,t)=>{t.exports=n;function n(e){this.text=String(e)}n.prototype.type=`Widget`,n.prototype.init=function(){return document.createComment(this.text)},n.prototype.update=function(e,t){this.text!==e.text&&(t.nodeValue=this.text)}})),jt=o(((e,t)=>{
|
|
2
2
|
/*!
|
|
3
3
|
* vdom-virtualize
|
|
4
4
|
* Copyright 2014 by Marcel Klehr <mklehr@gmx.net>
|
|
@@ -22,13 +22,13 @@ var locizify=(function(){var e=Object.create,t=Object.defineProperty,n=Object.ge
|
|
|
22
22
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
23
|
* THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
|
-
var n=Dt(),r=Ot(),i=kt();t.exports=a;function a(e,t){if(t=t||null,e.nodeType==1)return c(e,t);if(e.nodeType==3)return o(e,t);if(e.nodeType==8)return s(e,t)}function o(e){return new r(e.nodeValue)}function s(e){return new i(e.nodeValue)}function c(e){for(var t=e.tagName,r=e.namespaceURI==`http://www.w3.org/1999/xhtml`?null:e.namespaceURI,i=l(e),o=[],s=0;s<e.childNodes.length;s++)o.push(a(e.childNodes[s]));return new n(t,i,o,null,r)}function l(e){for(var t={},n=0;n<u.length;n++){var r=u[n];if(e[r]){if(r==`style`){var i={},a;if(e.style.length!==void 0)for(var o=0;o<e.style.length;o++)a=e.style[o],i[a]=e.style.getPropertyValue(a);else for(var a in e.style)e.style[a]&&e.style.hasOwnProperty(a)&&(i[a]=e.style[a]);Object.keys(i).length&&(t[r]=i);continue}if(!(e.tagName.toLowerCase()===`img`&&r===`href`)){if(r==`attributes`){for(var s=Array.prototype.slice.call(e[r]),c={},l=0;l<s.length;l++){var f=s[l].name;t[f]||t[d[f]]||(c[f]=e.getAttribute(f))}t[r]=c;continue}r==`tabIndex`&&e.tabIndex===-1||r==`contentEditable`&&e[r]===`inherit`||typeof e[r]!=`object`&&(t[r]=e[r])}}}return t}var u=t.exports.properties=`accept.accessKey.action.alt.async.autoComplete.autoPlay.cellPadding.cellSpacing.checked.className.colSpan.content.contentEditable.controls.crossOrigin.data.defer.dir.download.draggable.encType.formNoValidate.href.hrefLang.htmlFor.httpEquiv.icon.id.label.lang.list.loop.max.mediaGroup.method.min.multiple.muted.name.noValidate.pattern.placeholder.poster.preload.radioGroup.readOnly.rel.required.rowSpan.sandbox.scope.scrollLeft.scrolling.scrollTop.selected.span.spellCheck.src.srcDoc.srcSet.start.step.style.tabIndex.target.title.type.value.autoCapitalize.autoCorrect.property.attributes`.split(`.`),d=t.exports.attrBlacklist={class:`className`}})),jt=o(((e,t)=>{var n=Array.isArray,r=Object.prototype.toString;t.exports=n||i;function i(e){return r.call(e)===`[object Array]`}})),Mt=o(((e,t)=>{var n=Ct();r.NONE=0,r.VTEXT=1,r.VNODE=2,r.WIDGET=3,r.PROPS=4,r.ORDER=5,r.INSERT=6,r.REMOVE=7,r.THUNK=8,t.exports=r;function r(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}r.prototype.version=n,r.prototype.type=`VirtualPatch`})),Nt=o(((e,t)=>{var n=Ct();t.exports=r;function r(e){return e&&e.type===`VirtualText`&&e.version===n}})),Pt=o(((e,t)=>{var n=wt(),r=Nt(),i=j(),a=Tt();t.exports=o;function o(e,t){var n=e,r=t;return a(t)&&(r=s(t,e)),a(e)&&(n=s(e,null)),{a:n,b:r}}function s(e,t){var a=e.vnode;if(a||(a=e.vnode=e.render(t)),!(n(a)||r(a)||i(a)))throw Error(`thunk did not return a valid node`);return a}})),Ft=o(((e,t)=>{t.exports=function(e){return typeof e==`object`&&!!e}})),It=o(((e,t)=>{var n=Ft(),r=Et();t.exports=i;function i(e,t){var o;for(var s in e){s in t||(o=o||{},o[s]=void 0);var c=e[s],l=t[s];if(c!==l)if(n(c)&&n(l))if(a(l)!==a(c))o=o||{},o[s]=l;else if(r(l))o=o||{},o[s]=l;else{var u=i(c,l);u&&(o=o||{},o[s]=u)}else o=o||{},o[s]=l}for(var d in t)d in e||(o=o||{},o[d]=t[d]);return o}function a(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if(e.__proto__)return e.__proto__;if(e.constructor)return e.constructor.prototype}})),Lt=o(((e,t)=>{var n=jt(),r=Mt(),i=wt(),a=Nt(),o=j(),s=Tt(),c=Pt(),l=It();t.exports=u;function u(e,t){var n={a:e};return d(e,t,n,0),n}function d(e,t,n,c){if(e!==t){var u=n[c],d=!1;if(s(e)||s(t))h(e,t,n,c);else if(t==null)o(e)||(p(e,n,c),u=n[c]),u=S(u,new r(r.REMOVE,e,t));else if(i(t))if(i(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var m=l(e.properties,t.properties);m&&(u=S(u,new r(r.PROPS,e,m))),u=f(e,t,n,u,c)}else u=S(u,new r(r.VNODE,e,t)),d=!0;else u=S(u,new r(r.VNODE,e,t)),d=!0;else a(t)?a(e)?e.text!==t.text&&(u=S(u,new r(r.VTEXT,e,t))):(u=S(u,new r(r.VTEXT,e,t)),d=!0):o(t)&&(o(e)||(d=!0),u=S(u,new r(r.WIDGET,e,t)));u&&(n[c]=u),d&&p(e,n,c)}}function f(e,t,n,a,o){for(var s=e.children,c=y(s,t.children),l=c.children,u=s.length,f=l.length,p=u>f?u:f,m=0;m<p;m++){var h=s[m],g=l[m];o+=1,h?d(h,g,n,o):g&&(a=S(a,new r(r.INSERT,null,g))),i(h)&&h.count&&(o+=h.count)}return c.moves&&(a=S(a,new r(r.ORDER,e,c.moves))),a}function p(e,t,n){_(e,t,n),m(e,t,n)}function m(e,t,n){if(o(e))typeof e.destroy==`function`&&(t[n]=S(t[n],new r(r.REMOVE,e,null)));else if(i(e)&&(e.hasWidgets||e.hasThunks))for(var a=e.children,c=a.length,l=0;l<c;l++){var u=a[l];n+=1,m(u,t,n),i(u)&&u.count&&(n+=u.count)}else s(e)&&h(e,null,t,n)}function h(e,t,n,i){var a=c(e,t),o=u(a.a,a.b);g(o)&&(n[i]=new r(r.THUNK,null,o))}function g(e){for(var t in e)if(t!==`a`)return!0;return!1}function _(e,t,n){if(i(e)){if(e.hooks&&(t[n]=S(t[n],new r(r.PROPS,e,v(e.hooks)))),e.descendantHooks||e.hasThunks)for(var a=e.children,o=a.length,c=0;c<o;c++){var l=a[c];n+=1,_(l,t,n),i(l)&&l.count&&(n+=l.count)}}else s(e)&&h(e,null,t,n)}function v(e){var t={};for(var n in e)t[n]=void 0;return t}function y(e,t){var n=x(t),r=n.keys,i=n.free;if(i.length===t.length)return{children:t,moves:null};var a=x(e),o=a.keys;if(a.free.length===e.length)return{children:t,moves:null};for(var s=[],c=0,l=i.length,u=0,d=0;d<e.length;d++){var f=e[d],p;f.key?r.hasOwnProperty(f.key)?(p=r[f.key],s.push(t[p])):(p=d-u++,s.push(null)):c<l?(p=i[c++],s.push(t[p])):(p=d-u++,s.push(null))}for(var m=c>=i.length?t.length:i[c],h=0;h<t.length;h++){var g=t[h];g.key?o.hasOwnProperty(g.key)||s.push(g):h>=m&&s.push(g)}for(var _=s.slice(),v=0,y=[],S=[],C,w=0;w<t.length;){var T=t[w];for(C=_[v];C===null&&_.length;)y.push(b(_,v,null)),C=_[v];!C||C.key!==T.key?T.key?(C&&C.key?r[C.key]===w+1?S.push({key:T.key,to:w}):(y.push(b(_,v,C.key)),C=_[v],!C||C.key!==T.key?S.push({key:T.key,to:w}):v++):S.push({key:T.key,to:w}),w++):C&&C.key&&y.push(b(_,v,C.key)):(v++,w++)}for(;v<_.length;)C=_[v],y.push(b(_,v,C&&C.key));return y.length===u&&!S.length?{children:s,moves:null}:{children:s,moves:{removes:y,inserts:S}}}function b(e,t,n){return e.splice(t,1),{from:t,key:n}}function x(e){for(var t={},n=[],r=e.length,i=0;i<r;i++){var a=e[i];a.key?t[a.key]=i:n.push(i)}return{keys:t,free:n}}function S(e,t){return e?(n(e)?e.push(t):e=[e,t],e):t}})),Rt=o(((e,t)=>{t.exports=Lt()})),zt=o(((e,t)=>{var n=Array.prototype.slice;t.exports=r;function r(e,t){for((`length`in e)||(e=[e]),e=n.call(e);e.length;){var r=e.shift(),i=t(r);if(i)return i;r.childNodes&&r.childNodes.length&&(e=n.call(r.childNodes).concat(e))}}})),Bt=o(((e,t)=>{t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}n.prototype.nodeType=8,n.prototype.nodeName=`#comment`,n.prototype.toString=function(){return`[object Comment]`}})),Vt=o(((e,t)=>{t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e);this.data=e||``,this.length=this.data.length,this.ownerDocument=t||null}n.prototype.type=`DOMTextNode`,n.prototype.nodeType=3,n.prototype.nodeName=`#text`,n.prototype.toString=function(){return this.data},n.prototype.replaceData=function(e,t,n){var r=this.data,i=r.substring(0,e),a=r.substring(e+t,r.length);this.data=i+n+a,this.length=this.data.length}})),Ht=o(((e,t)=>{t.exports=n;function n(e){var t=this,n=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach(function(n){e.currentTarget=t,typeof n==`function`?n(e):n.handleEvent(e)});t.parentNode&&t.parentNode.dispatchEvent(e)}})),Ut=o(((e,t)=>{t.exports=n;function n(e,t){var n=this;n.listeners||(n.listeners={}),n.listeners[e]||(n.listeners[e]=[]),n.listeners[e].indexOf(t)===-1&&n.listeners[e].push(t)}})),Wt=o(((e,t)=>{t.exports=n;function n(e,t){var n=this;if(n.listeners&&n.listeners[e]){var r=n.listeners[e],i=r.indexOf(t);i!==-1&&r.splice(i,1)}}})),Gt=o(((e,t)=>{t.exports=r;var n=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`];function r(e){switch(e.nodeType){case 3:return u(e.data);case 8:return`<!--`+e.data+`-->`;default:return i(e)}}function i(e){var t=[],i=e.tagName;return e.namespaceURI===`http://www.w3.org/1999/xhtml`&&(i=i.toLowerCase()),t.push(`<`+i+l(e)+s(e)),n.indexOf(i)>-1?t.push(` />`):(t.push(`>`),e.childNodes.length?t.push.apply(t,e.childNodes.map(r)):e.textContent||e.innerText?t.push(u(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push(`</`+i+`>`)),t.join(``)}function a(e,t){var n=typeof e[t];return t===`style`&&Object.keys(e.style).length>0?!0:e.hasOwnProperty(t)&&(n===`string`||n===`boolean`||n===`number`)&&t!==`nodeName`&&t!==`className`&&t!==`tagName`&&t!==`textContent`&&t!==`innerText`&&t!==`namespaceURI`&&t!==`innerHTML`}function o(e){if(typeof e==`string`)return e;var t=``;return Object.keys(e).forEach(function(n){var r=e[n];n=n.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()}),t+=n+`:`+r+`;`}),t}function s(e){var t=e.dataset,n=[];for(var r in t)n.push({name:`data-`+r,value:t[r]});return n.length?c(n):``}function c(e){var t=[];return e.forEach(function(e){var n=e.name,r=e.value;n===`style`&&(r=o(r)),t.push(n+`="`+d(r)+`"`)}),t.length?` `+t.join(` `):``}function l(e){var t=[];for(var n in e)a(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var i in e._attributes[r]){var o=e._attributes[r][i],s=(o.prefix?o.prefix+`:`:``)+i;t.push({name:s,value:o.value})}return e.className&&t.push({name:`class`,value:e.className}),t.length?c(t):``}function u(e){var t=``;return typeof e==`string`?t=e:e&&(t=e.toString()),t.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function d(e){return u(e).replace(/"/g,`"`)}})),Kt=o(((e,t)=>{var n=zt(),r=Ht(),i=Ut(),a=Wt(),o=Gt(),s=`http://www.w3.org/1999/xhtml`;t.exports=c;function c(e,t,n){if(!(this instanceof c))return new c(e);var r=n===void 0?s:n||null;this.tagName=r===s?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className=``,this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},this.tagName===`INPUT`&&(this.type=`text`)}c.prototype.type=`DOMElement`,c.prototype.nodeType=1,c.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},c.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},c.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},c.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=t==null?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},c.prototype.setAttributeNS=function(e,t,n){var r=null,i=t,a=t.indexOf(`:`);if(a>-1&&(r=t.substr(0,a),i=t.substr(a+1)),this.tagName===`INPUT`&&t===`type`)this.type=n;else{var o=this._attributes[e]||(this._attributes[e]={});o[i]={value:n,prefix:r}}},c.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return this.tagName===`INPUT`&&t===`type`?this.type:typeof r==`string`?r:null},c.prototype.removeAttributeNS=function(e,t){if(Object.prototype.hasOwnProperty.call(this._attributes,e)){var n=this._attributes[e];n&&Object.prototype.hasOwnProperty.call(n,t)&&delete n[t]}},c.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},c.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},c.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},c.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},c.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},c.prototype.removeEventListener=a,c.prototype.addEventListener=i,c.prototype.dispatchEvent=r,c.prototype.focus=function(){},c.prototype.toString=function(){return o(this)},c.prototype.getElementsByClassName=function(e){var t=e.split(` `),r=[];return n(this,function(e){if(e.nodeType===1){var n=(e.className||``).split(` `);t.every(function(e){return n.indexOf(e)!==-1})&&r.push(e)}}),r},c.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return n(this.childNodes,function(n){n.nodeType===1&&(e===`*`||n.tagName.toLowerCase()===e)&&t.push(n)}),t},c.prototype.contains=function(e){return n(this,function(t){return e===t})||!1}})),qt=o(((e,t)=>{var n=Kt();t.exports=r;function r(e){if(!(this instanceof r))return new r;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}r.prototype.type=`DocumentFragment`,r.prototype.nodeType=11,r.prototype.nodeName=`#document-fragment`,r.prototype.appendChild=n.prototype.appendChild,r.prototype.replaceChild=n.prototype.replaceChild,r.prototype.removeChild=n.prototype.removeChild,r.prototype.toString=function(){return this.childNodes.map(function(e){return String(e)}).join(``)}})),Jt=o(((e,t)=>{t.exports=n;function n(e){}n.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},n.prototype.preventDefault=function(){}})),Yt=o(((e,t)=>{var n=zt(),r=Bt(),i=Vt(),a=Kt(),o=qt(),s=Jt(),c=Ht(),l=Ut(),u=Wt();t.exports=d;function d(){if(!(this instanceof d))return new d;this.head=this.createElement(`head`),this.body=this.createElement(`body`),this.documentElement=this.createElement(`html`),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var f=d.prototype;f.createTextNode=function(e){return new i(e,this)},f.createElementNS=function(e,t){var n=e===null?null:String(e);return new a(t,this,n)},f.createElement=function(e){return new a(e,this)},f.createDocumentFragment=function(){return new o(this)},f.createEvent=function(e){return new s(e)},f.createComment=function(e){return new r(e,this)},f.getElementById=function(e){return e=String(e),n(this.childNodes,function(t){if(String(t.id)===e)return t})||null},f.getElementsByClassName=a.prototype.getElementsByClassName,f.getElementsByTagName=a.prototype.getElementsByTagName,f.contains=a.prototype.contains,f.removeEventListener=u,f.addEventListener=l,f.dispatchEvent=c})),Xt=o(((e,t)=>{t.exports=new(Yt())})),Zt=o(((e,t)=>{var n=typeof global<`u`?global:typeof window<`u`?window:{},r=Xt(),i;typeof document<`u`?i=document:(i=n[`__GLOBAL_DOCUMENT_CACHE@4`],i||(i=n[`__GLOBAL_DOCUMENT_CACHE@4`]=r)),t.exports=i})),Qt=o(((e,t)=>{var n=Ft(),r=Et();t.exports=i;function i(e,t,i){for(var s in t){var c=t[s];c===void 0?a(e,s,c,i):r(c)?(a(e,s,c,i),c.hook&&c.hook(e,s,i?i[s]:void 0)):n(c)?o(e,t,i,s,c):e[s]=c}}function a(e,t,n,i){if(i){var a=i[t];if(r(a))a.unhook&&a.unhook(e,t,n);else if(t===`attributes`)for(var o in a)e.removeAttribute(o);else if(t===`style`)for(var s in a)e.style[s]=``;else typeof a==`string`?e[t]=``:e[t]=null}}function o(e,t,r,i,a){var o=r?r[i]:void 0;if(i===`attributes`){for(var c in a){var l=a[c];l===void 0?e.removeAttribute(c):e.setAttribute(c,l)}return}if(o&&n(o)&&s(o)!==s(a)){e[i]=a;return}n(e[i])||(e[i]={});var u=i===`style`?``:void 0;for(var d in a){var f=a[d];e[i][d]=f===void 0?u:f}}function s(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if(e.__proto__)return e.__proto__;if(e.constructor)return e.constructor.prototype}})),$t=o(((e,t)=>{var n=Zt(),r=Qt(),i=wt(),a=Nt(),o=j(),s=Pt();t.exports=c;function c(e,t){var l=t&&t.document||n,u=t?t.warn:null;if(e=s(e).a,o(e))return e.init();if(a(e))return l.createTextNode(e.text);if(!i(e))return u&&u(`Item is not a valid virtual dom node`,e),null;var d=e.namespace===null?l.createElement(e.tagName):l.createElementNS(e.namespace,e.tagName),f=e.properties;r(d,f);for(var p=e.children,m=0;m<p.length;m++){var h=c(p[m],t);h&&d.appendChild(h)}return d}})),en=o(((e,t)=>{var n={};t.exports=r;function r(e,t,n,r){return!n||n.length===0?{}:(n.sort(o),i(e,t,n,r,0))}function i(e,t,r,o,s){if(o=o||{},e){a(r,s,s)&&(o[s]=e);var c=t.children;if(c)for(var l=e.childNodes,u=0;u<t.children.length;u++){s+=1;var d=c[u]||n,f=s+(d.count||0);a(r,s,f)&&i(l[u],d,r,o,s),s=f}}return o}function a(e,t,n){if(e.length===0)return!1;for(var r=0,i=e.length-1,a,o;r<=i;){if(a=(i+r)/2>>0,o=e[a],r===i)return o>=t&&o<=n;if(o<t)r=a+1;else if(o>n)i=a-1;else return!0}return!1}function o(e,t){return e>t?1:-1}})),tn=o(((e,t)=>{var n=j();t.exports=r;function r(e,t){return n(e)&&n(t)?`name`in e&&`name`in t?e.id===t.id:e.init===t.init:!1}})),nn=o(((e,t)=>{var n=Qt(),r=j(),i=Mt(),a=tn();t.exports=o;function o(e,t,r){var a=e.type,o=e.vNode,f=e.patch;switch(a){case i.REMOVE:return s(t,o);case i.INSERT:return c(t,f,r);case i.VTEXT:return l(t,o,f,r);case i.WIDGET:return u(t,o,f,r);case i.VNODE:return d(t,o,f,r);case i.ORDER:return p(t,f),t;case i.PROPS:return n(t,f,o.properties),t;case i.THUNK:return m(t,r.patch(t,f,r));default:return t}}function s(e,t){var n=e.parentNode;return n&&n.removeChild(e),f(e,t),null}function c(e,t,n){var r=n.render(t,n);return e&&e.appendChild(r),e}function l(e,t,n,r){var i;if(e.nodeType===3)e.replaceData(0,e.length,n.text),i=e;else{var a=e.parentNode;i=r.render(n,r),a&&i!==e&&a.replaceChild(i,e)}return i}function u(e,t,n,r){var i=a(t,n),o=i?n.update(t,e)||e:r.render(n,r),s=e.parentNode;return s&&o!==e&&s.replaceChild(o,e),i||f(e,t),o}function d(e,t,n,r){var i=e.parentNode,a=r.render(n,r);return i&&a!==e&&i.replaceChild(a,e),a}function f(e,t){typeof t.destroy==`function`&&r(t)&&t.destroy(e)}function p(e,t){for(var n=e.childNodes,r={},i,a,o,s=0;s<t.removes.length;s++)a=t.removes[s],i=n[a.from],a.key&&(r[a.key]=i),e.removeChild(i);for(var c=n.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],i=r[o.key],e.insertBefore(i,o.to>=c++?null:n[o.to])}function m(e,t){return e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e),t}})),rn=o(((e,t)=>{var n=Zt(),r=jt(),i=$t(),a=en(),o=nn();t.exports=s;function s(e,t,n){return n=n||{},n.patch=n.patch&&n.patch!==s?n.patch:c,n.render=n.render||i,n.patch(e,t,n)}function c(e,t,r){var i=u(t);if(i.length===0)return e;var o=a(e,t.a,i),s=e.ownerDocument;!r.document&&s!==n&&(r.document=s);for(var c=0;c<i.length;c++){var d=i[c];e=l(e,o[d],t[d],r)}return e}function l(e,t,n,i){if(!t)return e;var a;if(r(n))for(var s=0;s<n.length;s++)a=o(n[s],t,i),t===e&&(e=a);else a=o(n,t,i),t===e&&(e=a);return e}function u(e){var t=[];for(var n in e)n!==`a`&&t.push(Number(n));return t}})),an=o(((e,t)=>{t.exports=rn()})),on=o(((e,t)=>{(function(n,r){"use strict";typeof e==`object`?t.exports=r():typeof define==`function`&&define.amd?define(r):n.UltraDeepClone=r()})(e,function(){var e=[`caller`,`arguments`],t=[`BYTES_PER_ELEMENT`,`get`,`set`,`slice`,`subarray`,`buffer`,`length`,`byteOffset`,`byteLength`],n=c(l),r=g(c(h),t);function i(e){return`[object `+e+`]`}var a={};a[i(`RegExp`)]=c(u),a[i(`Date`)]=c(d),a[i(`Function`)]=g(c(f),e),a[i(`Object`)]=g(c(p)),a[i(`Array`)]=g(c(m)),[`Null`,`Undefined`,`Number`,`String`,`Boolean`].map(i).forEach(function(e){a[e]=n}),[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`].map(i).forEach(function(e){a[e]=r});function o(e){for(var t=[],n=1;n<=e;n++)t.push(`arg`+n);return t}function s(e){var t=o(e.length),n=`return false || function `;return n+=e.name+`(`,n+=t.join(`, `)+`) {
|
|
25
|
+
var n=Ot(),r=kt(),i=At();t.exports=a;function a(e,t){if(t=t||null,e.nodeType==1)return c(e,t);if(e.nodeType==3)return o(e,t);if(e.nodeType==8)return s(e,t)}function o(e){return new r(e.nodeValue)}function s(e){return new i(e.nodeValue)}function c(e){for(var t=e.tagName,r=e.namespaceURI==`http://www.w3.org/1999/xhtml`?null:e.namespaceURI,i=l(e),o=[],s=0;s<e.childNodes.length;s++)o.push(a(e.childNodes[s]));return new n(t,i,o,null,r)}function l(e){for(var t={},n=0;n<u.length;n++){var r=u[n];if(e[r]){if(r==`style`){var i={},a;if(e.style.length!==void 0)for(var o=0;o<e.style.length;o++)a=e.style[o],i[a]=e.style.getPropertyValue(a);else for(var a in e.style)e.style[a]&&e.style.hasOwnProperty(a)&&(i[a]=e.style[a]);Object.keys(i).length&&(t[r]=i);continue}if(!(e.tagName.toLowerCase()===`img`&&r===`href`)){if(r==`attributes`){for(var s=Array.prototype.slice.call(e[r]),c={},l=0;l<s.length;l++){var f=s[l].name;t[f]||t[d[f]]||(c[f]=e.getAttribute(f))}t[r]=c;continue}r==`tabIndex`&&e.tabIndex===-1||r==`contentEditable`&&e[r]===`inherit`||typeof e[r]!=`object`&&(t[r]=e[r])}}}return t}var u=t.exports.properties=`accept.accessKey.action.alt.async.autoComplete.autoPlay.cellPadding.cellSpacing.checked.className.colSpan.content.contentEditable.controls.crossOrigin.data.defer.dir.download.draggable.encType.formNoValidate.href.hrefLang.htmlFor.httpEquiv.icon.id.label.lang.list.loop.max.mediaGroup.method.min.multiple.muted.name.noValidate.pattern.placeholder.poster.preload.radioGroup.readOnly.rel.required.rowSpan.sandbox.scope.scrollLeft.scrolling.scrollTop.selected.span.spellCheck.src.srcDoc.srcSet.start.step.style.tabIndex.target.title.type.value.autoCapitalize.autoCorrect.property.attributes`.split(`.`),d=t.exports.attrBlacklist={class:`className`}})),Mt=o(((e,t)=>{var n=Array.isArray,r=Object.prototype.toString;t.exports=n||i;function i(e){return r.call(e)===`[object Array]`}})),Nt=o(((e,t)=>{var n=Ct();r.NONE=0,r.VTEXT=1,r.VNODE=2,r.WIDGET=3,r.PROPS=4,r.ORDER=5,r.INSERT=6,r.REMOVE=7,r.THUNK=8,t.exports=r;function r(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}r.prototype.version=n,r.prototype.type=`VirtualPatch`})),Pt=o(((e,t)=>{var n=Ct();t.exports=r;function r(e){return e&&e.type===`VirtualText`&&e.version===n}})),Ft=o(((e,t)=>{var n=wt(),r=Pt(),i=Tt(),a=Et();t.exports=o;function o(e,t){var n=e,r=t;return a(t)&&(r=s(t,e)),a(e)&&(n=s(e,null)),{a:n,b:r}}function s(e,t){var a=e.vnode;if(a||(a=e.vnode=e.render(t)),!(n(a)||r(a)||i(a)))throw Error(`thunk did not return a valid node`);return a}})),It=o(((e,t)=>{t.exports=function(e){return typeof e==`object`&&!!e}})),Lt=o(((e,t)=>{var n=It(),r=Dt();t.exports=i;function i(e,t){var o;for(var s in e){s in t||(o=o||{},o[s]=void 0);var c=e[s],l=t[s];if(c!==l)if(n(c)&&n(l))if(a(l)!==a(c))o=o||{},o[s]=l;else if(r(l))o=o||{},o[s]=l;else{var u=i(c,l);u&&(o=o||{},o[s]=u)}else o=o||{},o[s]=l}for(var d in t)d in e||(o=o||{},o[d]=t[d]);return o}function a(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if(e.__proto__)return e.__proto__;if(e.constructor)return e.constructor.prototype}})),Rt=o(((e,t)=>{var n=Mt(),r=Nt(),i=wt(),a=Pt(),o=Tt(),s=Et(),c=Ft(),l=Lt();t.exports=u;function u(e,t){var n={a:e};return d(e,t,n,0),n}function d(e,t,n,c){if(e!==t){var u=n[c],d=!1;if(s(e)||s(t))h(e,t,n,c);else if(t==null)o(e)||(p(e,n,c),u=n[c]),u=S(u,new r(r.REMOVE,e,t));else if(i(t))if(i(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var m=l(e.properties,t.properties);m&&(u=S(u,new r(r.PROPS,e,m))),u=f(e,t,n,u,c)}else u=S(u,new r(r.VNODE,e,t)),d=!0;else u=S(u,new r(r.VNODE,e,t)),d=!0;else a(t)?a(e)?e.text!==t.text&&(u=S(u,new r(r.VTEXT,e,t))):(u=S(u,new r(r.VTEXT,e,t)),d=!0):o(t)&&(o(e)||(d=!0),u=S(u,new r(r.WIDGET,e,t)));u&&(n[c]=u),d&&p(e,n,c)}}function f(e,t,n,a,o){for(var s=e.children,c=y(s,t.children),l=c.children,u=s.length,f=l.length,p=u>f?u:f,m=0;m<p;m++){var h=s[m],g=l[m];o+=1,h?d(h,g,n,o):g&&(a=S(a,new r(r.INSERT,null,g))),i(h)&&h.count&&(o+=h.count)}return c.moves&&(a=S(a,new r(r.ORDER,e,c.moves))),a}function p(e,t,n){_(e,t,n),m(e,t,n)}function m(e,t,n){if(o(e))typeof e.destroy==`function`&&(t[n]=S(t[n],new r(r.REMOVE,e,null)));else if(i(e)&&(e.hasWidgets||e.hasThunks))for(var a=e.children,c=a.length,l=0;l<c;l++){var u=a[l];n+=1,m(u,t,n),i(u)&&u.count&&(n+=u.count)}else s(e)&&h(e,null,t,n)}function h(e,t,n,i){var a=c(e,t),o=u(a.a,a.b);g(o)&&(n[i]=new r(r.THUNK,null,o))}function g(e){for(var t in e)if(t!==`a`)return!0;return!1}function _(e,t,n){if(i(e)){if(e.hooks&&(t[n]=S(t[n],new r(r.PROPS,e,v(e.hooks)))),e.descendantHooks||e.hasThunks)for(var a=e.children,o=a.length,c=0;c<o;c++){var l=a[c];n+=1,_(l,t,n),i(l)&&l.count&&(n+=l.count)}}else s(e)&&h(e,null,t,n)}function v(e){var t={};for(var n in e)t[n]=void 0;return t}function y(e,t){var n=x(t),r=n.keys,i=n.free;if(i.length===t.length)return{children:t,moves:null};var a=x(e),o=a.keys;if(a.free.length===e.length)return{children:t,moves:null};for(var s=[],c=0,l=i.length,u=0,d=0;d<e.length;d++){var f=e[d],p;f.key?r.hasOwnProperty(f.key)?(p=r[f.key],s.push(t[p])):(p=d-u++,s.push(null)):c<l?(p=i[c++],s.push(t[p])):(p=d-u++,s.push(null))}for(var m=c>=i.length?t.length:i[c],h=0;h<t.length;h++){var g=t[h];g.key?o.hasOwnProperty(g.key)||s.push(g):h>=m&&s.push(g)}for(var _=s.slice(),v=0,y=[],S=[],C,w=0;w<t.length;){var T=t[w];for(C=_[v];C===null&&_.length;)y.push(b(_,v,null)),C=_[v];!C||C.key!==T.key?T.key?(C&&C.key?r[C.key]===w+1?S.push({key:T.key,to:w}):(y.push(b(_,v,C.key)),C=_[v],!C||C.key!==T.key?S.push({key:T.key,to:w}):v++):S.push({key:T.key,to:w}),w++):C&&C.key&&y.push(b(_,v,C.key)):(v++,w++)}for(;v<_.length;)C=_[v],y.push(b(_,v,C&&C.key));return y.length===u&&!S.length?{children:s,moves:null}:{children:s,moves:{removes:y,inserts:S}}}function b(e,t,n){return e.splice(t,1),{from:t,key:n}}function x(e){for(var t={},n=[],r=e.length,i=0;i<r;i++){var a=e[i];a.key?t[a.key]=i:n.push(i)}return{keys:t,free:n}}function S(e,t){return e?(n(e)?e.push(t):e=[e,t],e):t}})),zt=o(((e,t)=>{t.exports=Rt()})),Bt=o(((e,t)=>{var n=Array.prototype.slice;t.exports=r;function r(e,t){for((`length`in e)||(e=[e]),e=n.call(e);e.length;){var r=e.shift(),i=t(r);if(i)return i;r.childNodes&&r.childNodes.length&&(e=n.call(r.childNodes).concat(e))}}})),Vt=o(((e,t)=>{t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}n.prototype.nodeType=8,n.prototype.nodeName=`#comment`,n.prototype.toString=function(){return`[object Comment]`}})),Ht=o(((e,t)=>{t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e);this.data=e||``,this.length=this.data.length,this.ownerDocument=t||null}n.prototype.type=`DOMTextNode`,n.prototype.nodeType=3,n.prototype.nodeName=`#text`,n.prototype.toString=function(){return this.data},n.prototype.replaceData=function(e,t,n){var r=this.data,i=r.substring(0,e),a=r.substring(e+t,r.length);this.data=i+n+a,this.length=this.data.length}})),Ut=o(((e,t)=>{t.exports=n;function n(e){var t=this,n=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach(function(n){e.currentTarget=t,typeof n==`function`?n(e):n.handleEvent(e)});t.parentNode&&t.parentNode.dispatchEvent(e)}})),Wt=o(((e,t)=>{t.exports=n;function n(e,t){var n=this;n.listeners||(n.listeners={}),n.listeners[e]||(n.listeners[e]=[]),n.listeners[e].indexOf(t)===-1&&n.listeners[e].push(t)}})),Gt=o(((e,t)=>{t.exports=n;function n(e,t){var n=this;if(n.listeners&&n.listeners[e]){var r=n.listeners[e],i=r.indexOf(t);i!==-1&&r.splice(i,1)}}})),Kt=o(((e,t)=>{t.exports=r;var n=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`];function r(e){switch(e.nodeType){case 3:return u(e.data);case 8:return`<!--`+e.data+`-->`;default:return i(e)}}function i(e){var t=[],i=e.tagName;return e.namespaceURI===`http://www.w3.org/1999/xhtml`&&(i=i.toLowerCase()),t.push(`<`+i+l(e)+s(e)),n.indexOf(i)>-1?t.push(` />`):(t.push(`>`),e.childNodes.length?t.push.apply(t,e.childNodes.map(r)):e.textContent||e.innerText?t.push(u(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push(`</`+i+`>`)),t.join(``)}function a(e,t){var n=typeof e[t];return t===`style`&&Object.keys(e.style).length>0?!0:e.hasOwnProperty(t)&&(n===`string`||n===`boolean`||n===`number`)&&t!==`nodeName`&&t!==`className`&&t!==`tagName`&&t!==`textContent`&&t!==`innerText`&&t!==`namespaceURI`&&t!==`innerHTML`}function o(e){if(typeof e==`string`)return e;var t=``;return Object.keys(e).forEach(function(n){var r=e[n];n=n.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()}),t+=n+`:`+r+`;`}),t}function s(e){var t=e.dataset,n=[];for(var r in t)n.push({name:`data-`+r,value:t[r]});return n.length?c(n):``}function c(e){var t=[];return e.forEach(function(e){var n=e.name,r=e.value;n===`style`&&(r=o(r)),t.push(n+`="`+d(r)+`"`)}),t.length?` `+t.join(` `):``}function l(e){var t=[];for(var n in e)a(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var i in e._attributes[r]){var o=e._attributes[r][i],s=(o.prefix?o.prefix+`:`:``)+i;t.push({name:s,value:o.value})}return e.className&&t.push({name:`class`,value:e.className}),t.length?c(t):``}function u(e){var t=``;return typeof e==`string`?t=e:e&&(t=e.toString()),t.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function d(e){return u(e).replace(/"/g,`"`)}})),qt=o(((e,t)=>{var n=Bt(),r=Ut(),i=Wt(),a=Gt(),o=Kt(),s=`http://www.w3.org/1999/xhtml`;t.exports=c;function c(e,t,n){if(!(this instanceof c))return new c(e);var r=n===void 0?s:n||null;this.tagName=r===s?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className=``,this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},this.tagName===`INPUT`&&(this.type=`text`)}c.prototype.type=`DOMElement`,c.prototype.nodeType=1,c.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},c.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},c.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},c.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=t==null?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},c.prototype.setAttributeNS=function(e,t,n){var r=null,i=t,a=t.indexOf(`:`);if(a>-1&&(r=t.substr(0,a),i=t.substr(a+1)),this.tagName===`INPUT`&&t===`type`)this.type=n;else{var o=this._attributes[e]||(this._attributes[e]={});o[i]={value:n,prefix:r}}},c.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return this.tagName===`INPUT`&&t===`type`?this.type:typeof r==`string`?r:null},c.prototype.removeAttributeNS=function(e,t){if(Object.prototype.hasOwnProperty.call(this._attributes,e)){var n=this._attributes[e];n&&Object.prototype.hasOwnProperty.call(n,t)&&delete n[t]}},c.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},c.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},c.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},c.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},c.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},c.prototype.removeEventListener=a,c.prototype.addEventListener=i,c.prototype.dispatchEvent=r,c.prototype.focus=function(){},c.prototype.toString=function(){return o(this)},c.prototype.getElementsByClassName=function(e){var t=e.split(` `),r=[];return n(this,function(e){if(e.nodeType===1){var n=(e.className||``).split(` `);t.every(function(e){return n.indexOf(e)!==-1})&&r.push(e)}}),r},c.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return n(this.childNodes,function(n){n.nodeType===1&&(e===`*`||n.tagName.toLowerCase()===e)&&t.push(n)}),t},c.prototype.contains=function(e){return n(this,function(t){return e===t})||!1}})),Jt=o(((e,t)=>{var n=qt();t.exports=r;function r(e){if(!(this instanceof r))return new r;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}r.prototype.type=`DocumentFragment`,r.prototype.nodeType=11,r.prototype.nodeName=`#document-fragment`,r.prototype.appendChild=n.prototype.appendChild,r.prototype.replaceChild=n.prototype.replaceChild,r.prototype.removeChild=n.prototype.removeChild,r.prototype.toString=function(){return this.childNodes.map(function(e){return String(e)}).join(``)}})),Yt=o(((e,t)=>{t.exports=n;function n(e){}n.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},n.prototype.preventDefault=function(){}})),Xt=o(((e,t)=>{var n=Bt(),r=Vt(),i=Ht(),a=qt(),o=Jt(),s=Yt(),c=Ut(),l=Wt(),u=Gt();t.exports=d;function d(){if(!(this instanceof d))return new d;this.head=this.createElement(`head`),this.body=this.createElement(`body`),this.documentElement=this.createElement(`html`),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var f=d.prototype;f.createTextNode=function(e){return new i(e,this)},f.createElementNS=function(e,t){var n=e===null?null:String(e);return new a(t,this,n)},f.createElement=function(e){return new a(e,this)},f.createDocumentFragment=function(){return new o(this)},f.createEvent=function(e){return new s(e)},f.createComment=function(e){return new r(e,this)},f.getElementById=function(e){return e=String(e),n(this.childNodes,function(t){if(String(t.id)===e)return t})||null},f.getElementsByClassName=a.prototype.getElementsByClassName,f.getElementsByTagName=a.prototype.getElementsByTagName,f.contains=a.prototype.contains,f.removeEventListener=u,f.addEventListener=l,f.dispatchEvent=c})),Zt=o(((e,t)=>{t.exports=new(Xt())})),Qt=o(((e,t)=>{var n=typeof global<`u`?global:typeof window<`u`?window:{},r=Zt(),i;typeof document<`u`?i=document:(i=n[`__GLOBAL_DOCUMENT_CACHE@4`],i||(i=n[`__GLOBAL_DOCUMENT_CACHE@4`]=r)),t.exports=i})),$t=o(((e,t)=>{var n=It(),r=Dt();t.exports=i;function i(e,t,i){for(var s in t){var c=t[s];c===void 0?a(e,s,c,i):r(c)?(a(e,s,c,i),c.hook&&c.hook(e,s,i?i[s]:void 0)):n(c)?o(e,t,i,s,c):e[s]=c}}function a(e,t,n,i){if(i){var a=i[t];if(r(a))a.unhook&&a.unhook(e,t,n);else if(t===`attributes`)for(var o in a)e.removeAttribute(o);else if(t===`style`)for(var s in a)e.style[s]=``;else typeof a==`string`?e[t]=``:e[t]=null}}function o(e,t,r,i,a){var o=r?r[i]:void 0;if(i===`attributes`){for(var c in a){var l=a[c];l===void 0?e.removeAttribute(c):e.setAttribute(c,l)}return}if(o&&n(o)&&s(o)!==s(a)){e[i]=a;return}n(e[i])||(e[i]={});var u=i===`style`?``:void 0;for(var d in a){var f=a[d];e[i][d]=f===void 0?u:f}}function s(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if(e.__proto__)return e.__proto__;if(e.constructor)return e.constructor.prototype}})),en=o(((e,t)=>{var n=Qt(),r=$t(),i=wt(),a=Pt(),o=Tt(),s=Ft();t.exports=c;function c(e,t){var l=t&&t.document||n,u=t?t.warn:null;if(e=s(e).a,o(e))return e.init();if(a(e))return l.createTextNode(e.text);if(!i(e))return u&&u(`Item is not a valid virtual dom node`,e),null;var d=e.namespace===null?l.createElement(e.tagName):l.createElementNS(e.namespace,e.tagName),f=e.properties;r(d,f);for(var p=e.children,m=0;m<p.length;m++){var h=c(p[m],t);h&&d.appendChild(h)}return d}})),tn=o(((e,t)=>{var n={};t.exports=r;function r(e,t,n,r){return!n||n.length===0?{}:(n.sort(o),i(e,t,n,r,0))}function i(e,t,r,o,s){if(o=o||{},e){a(r,s,s)&&(o[s]=e);var c=t.children;if(c)for(var l=e.childNodes,u=0;u<t.children.length;u++){s+=1;var d=c[u]||n,f=s+(d.count||0);a(r,s,f)&&i(l[u],d,r,o,s),s=f}}return o}function a(e,t,n){if(e.length===0)return!1;for(var r=0,i=e.length-1,a,o;r<=i;){if(a=(i+r)/2>>0,o=e[a],r===i)return o>=t&&o<=n;if(o<t)r=a+1;else if(o>n)i=a-1;else return!0}return!1}function o(e,t){return e>t?1:-1}})),nn=o(((e,t)=>{var n=Tt();t.exports=r;function r(e,t){return n(e)&&n(t)?`name`in e&&`name`in t?e.id===t.id:e.init===t.init:!1}})),rn=o(((e,t)=>{var n=$t(),r=Tt(),i=Nt(),a=nn();t.exports=o;function o(e,t,r){var a=e.type,o=e.vNode,f=e.patch;switch(a){case i.REMOVE:return s(t,o);case i.INSERT:return c(t,f,r);case i.VTEXT:return l(t,o,f,r);case i.WIDGET:return u(t,o,f,r);case i.VNODE:return d(t,o,f,r);case i.ORDER:return p(t,f),t;case i.PROPS:return n(t,f,o.properties),t;case i.THUNK:return m(t,r.patch(t,f,r));default:return t}}function s(e,t){var n=e.parentNode;return n&&n.removeChild(e),f(e,t),null}function c(e,t,n){var r=n.render(t,n);return e&&e.appendChild(r),e}function l(e,t,n,r){var i;if(e.nodeType===3)e.replaceData(0,e.length,n.text),i=e;else{var a=e.parentNode;i=r.render(n,r),a&&i!==e&&a.replaceChild(i,e)}return i}function u(e,t,n,r){var i=a(t,n),o=i?n.update(t,e)||e:r.render(n,r),s=e.parentNode;return s&&o!==e&&s.replaceChild(o,e),i||f(e,t),o}function d(e,t,n,r){var i=e.parentNode,a=r.render(n,r);return i&&a!==e&&i.replaceChild(a,e),a}function f(e,t){typeof t.destroy==`function`&&r(t)&&t.destroy(e)}function p(e,t){for(var n=e.childNodes,r={},i,a,o,s=0;s<t.removes.length;s++)a=t.removes[s],i=n[a.from],a.key&&(r[a.key]=i),e.removeChild(i);for(var c=n.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],i=r[o.key],e.insertBefore(i,o.to>=c++?null:n[o.to])}function m(e,t){return e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e),t}})),an=o(((e,t)=>{var n=Qt(),r=Mt(),i=en(),a=tn(),o=rn();t.exports=s;function s(e,t,n){return n=n||{},n.patch=n.patch&&n.patch!==s?n.patch:c,n.render=n.render||i,n.patch(e,t,n)}function c(e,t,r){var i=u(t);if(i.length===0)return e;var o=a(e,t.a,i),s=e.ownerDocument;!r.document&&s!==n&&(r.document=s);for(var c=0;c<i.length;c++){var d=i[c];e=l(e,o[d],t[d],r)}return e}function l(e,t,n,i){if(!t)return e;var a;if(r(n))for(var s=0;s<n.length;s++)a=o(n[s],t,i),t===e&&(e=a);else a=o(n,t,i),t===e&&(e=a);return e}function u(e){var t=[];for(var n in e)n!==`a`&&t.push(Number(n));return t}})),on=o(((e,t)=>{t.exports=an()})),sn=o(((e,t)=>{(function(n,r){"use strict";typeof e==`object`?t.exports=r():typeof define==`function`&&define.amd?define(r):n.UltraDeepClone=r()})(e,function(){var e=[`caller`,`arguments`],t=[`BYTES_PER_ELEMENT`,`get`,`set`,`slice`,`subarray`,`buffer`,`length`,`byteOffset`,`byteLength`],n=c(l),r=g(c(h),t);function i(e){return`[object `+e+`]`}var a={};a[i(`RegExp`)]=c(u),a[i(`Date`)]=c(d),a[i(`Function`)]=g(c(f),e),a[i(`Object`)]=g(c(p)),a[i(`Array`)]=g(c(m)),[`Null`,`Undefined`,`Number`,`String`,`Boolean`].map(i).forEach(function(e){a[e]=n}),[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`].map(i).forEach(function(e){a[e]=r});function o(e){for(var t=[],n=1;n<=e;n++)t.push(`arg`+n);return t}function s(e){var t=o(e.length),n=`return false || function `;return n+=e.name+`(`,n+=t.join(`, `)+`) {
|
|
26
26
|
`,n+=`return fn.apply(this, arguments);
|
|
27
|
-
`,n+=`};`,Function(`fn`,n)(e)}function c(e){return function(t,n,r){n.push(t);var i=e(t);return r.push(i),i}}function l(e){return e}function u(e){return new RegExp(e)}function d(e){return new Date(e.getTime())}function f(e){return s(e)}function p(e){return Object.create(Object.getPrototypeOf(e))}function m(e){return[]}function h(e){var t=e.length;return new e.constructor(t)}function g(e,t){return function(n,r,i){var a=this;return Object.getOwnPropertyNames(n).filter(function(e){return!t||t.indexOf(e)===-1}).reduce(function(e,t){var o=r.indexOf(n[t]);return o===-1?e[t]=a(n[t]):e[t]=i[o],e},e(n,r,i))}}return function(e){var t=[],n=[];function r(e){return a[Object.prototype.toString.call(e)].call(r,e,t,n)}return r(e)}})})),sn=o(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`"`;break;case 38:i=`&`;break;case 39:i=`'`;break;case 60:i=`<`;break;case 62:i=`>`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}})),cn=o(((e,t)=>{t.exports=r;var n=Object.prototype.hasOwnProperty;function r(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e}})),ln=o(((e,t)=>{t.exports=n;function n(e){if(!(this instanceof n))return new n(e);this.value=e}n.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)}})),un=o(((e,t)=>{t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e,t);this.namespace=e,this.value=t}n.prototype.hook=function(e,t,n){n&&n.type===`AttributeHook`&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},n.prototype.unhook=function(e,t,n){if(!(n&&n.type===`AttributeHook`&&n.namespace===this.namespace)){var r=t.indexOf(`:`),i=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,i)}},n.prototype.type=`AttributeHook`})),dn=o(((e,t)=>{var n={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{İ:`i`,I:`ı`,İ:`i`}},az:{regexp:/[\u0130]/g,map:{İ:`i`,I:`ı`,İ:`i`}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:`i̇`,J:`j̇`,Į:`į̇`,Ì:`i̇̀`,Í:`i̇́`,Ĩ:`i̇̃`}}};t.exports=function(e,t){var r=n[t];return e=e==null?``:String(e),r&&(e=e.replace(r.regexp,function(e){return r.map[e]})),e.toLowerCase()}})),fn=o(((e,t)=>{t.exports=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g})),pn=o(((e,t)=>{t.exports=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g})),mn=o(((e,t)=>{t.exports=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g})),hn=o(((e,t)=>{var n=dn(),r=fn(),i=pn(),a=mn();t.exports=function(e,t,o){if(e==null)return``;o=o||` `;function s(e,t,n){return t===0||t===n.length-e.length?``:o}return e=String(e).replace(i,`$1 $2`).replace(a,`$1 $2`).replace(r,s),n(e,t)}})),gn=o(((e,t)=>{var n=hn();t.exports=function(e,t){return n(e,t,`-`)}})),_n=o(((e,t)=>{var n={BOOLEAN:1,OVERLOADED_BOOLEAN:2};t.exports={attributeTypes:n,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:n.BOOLEAN,allowTransparency:!0,alt:!0,async:n.BOOLEAN,autocomplete:!0,autofocus:n.BOOLEAN,autoplay:n.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:n.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:n.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:n.BOOLEAN,dir:!0,disabled:n.BOOLEAN,download:n.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:n.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:n.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:n.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:n.BOOLEAN,muted:n.BOOLEAN,name:!0,noValidate:n.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:n.BOOLEAN,rel:!0,required:n.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:n.BOOLEAN,selected:n.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:n.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`}}})),vn=o(((e,t)=>{var n=sn(),r=_n(),i=r.attributeTypes,a=r.properties,o=r.attributeNames,s=u(function(e){return n(e)+`="`});t.exports=c;function c(e,t,r){if(a.hasOwnProperty(e)){if(l(e,t))return``;e=(o[e]||e).toLowerCase();var c=a[e];return c===i.BOOLEAN||c===i.OVERLOADED_BOOLEAN&&t===!0?n(e):s(e)+n(t)+`"`}else if(r)return t==null?``:s(e)+n(t)+`"`;return null}function l(e,t){var n=a[e];return t==null||n===i.BOOLEAN&&!t||n===i.OVERLOADED_BOOLEAN&&t===!1}function u(e){var t={};return function(n){return t.hasOwnProperty(n)?t[n]:t[n]=e.call(this,n)}}})),yn=o(((e,t)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}})),bn=o(((e,t)=>{var n=sn(),r=cn(),i=wt(),a=Nt(),o=Tt(),s=j(),c=ln(),l=un(),u=gn(),d=vn(),f=yn();t.exports=p;function p(e,t){return e?(o(e)&&(e=e.render()),s(e)&&e.render&&(e=e.render()),i(e)?m(e)+h(e)+g(e):a(e)?t&&(t.tagName.toLowerCase()===`script`||t.tagName.toLowerCase()===`style`)?String(e.text):n(String(e.text)):``):``}function m(e){var t=e.properties,n=`<`+e.tagName.toLowerCase();for(var i in t){var a=t[i];if(a!=null){if(i==`attributes`){for(var o in a=r({},a),a)n+=` `+d(o,a[o],!0);continue}if(i==`dataset`){for(var s in a=r({},a),a)n+=` `+d(`data-`+u(s),a[s],!0);continue}if(i==`style`){var f=``;for(var p in a=r({},a),a)f+=u(p)+`: `+a[p]+`; `;a=f.trim()}if(a instanceof c||a instanceof l){n+=` `+d(i,a.value,!0);continue}var m=d(i,a);m&&(n+=` `+m)}}return n+`>`}function h(e){var t=e.properties.innerHTML;if(t!=null)return t;var n=``;if(e.children&&e.children.length)for(var r=0,i=e.children.length;r<i;r++){var a=e.children[r];n+=p(a,e)}return n}function g(e){var t=e.tagName.toLowerCase();return f[t]?``:`</`+t+`>`}})),xn=o(((e,t)=>{t.exports={abbr:`abbr`,accept:`accept`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,allowtransparency:`allowTransparency`,alt:`alt`,async:`async`,autocomplete:`autoComplete`,autofocus:`autoFocus`,autoplay:`autoPlay`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charset`,checked:`checked`,cite:`cite`,class:`className`,cols:`cols`,colspan:`colSpan`,command:`command`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,coords:`coords`,crossorigin:`crossOrigin`,data:`data`,datetime:`dateTime`,default:`default`,defer:`defer`,dir:`dir`,disabled:`disabled`,download:`download`,draggable:`draggable`,dropzone:`dropzone`,enctype:`encType`,for:`htmlFor`,form:`form`,formaction:`formAction`,formenctype:`formEncType`,formmethod:`formMethod`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameBorder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,inputmode:`inputMode`,ismap:`isMap`,itemid:`itemId`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,manifest:`manifest`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,ping:`ping`,placeholder:`placeholder`,poster:`poster`,preload:`preload`,radiogroup:`radioGroup`,readonly:`readOnly`,rel:`rel`,required:`required`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,sortable:`sortable`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,tabindex:`tabIndex`,target:`target`,title:`title`,translate:`translate`,type:`type`,typemustmatch:`typeMustMatch`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`}})),Sn=o(((e,t)=>{var n=null,r=`http://www.w3.org/2001/xml-events`,i=`http://www.w3.org/1999/xlink`,a=`http://www.w3.org/XML/1998/namespace`;t.exports={about:n,"accent-height":n,accumulate:n,additive:n,"alignment-baseline":n,alphabetic:n,amplitude:n,"arabic-form":n,ascent:n,attributeName:n,attributeType:n,azimuth:n,bandwidth:n,baseFrequency:n,baseProfile:n,"baseline-shift":n,bbox:n,begin:n,bias:n,by:n,calcMode:n,"cap-height":n,class:n,clip:n,"clip-path":n,"clip-rule":n,clipPathUnits:n,color:n,"color-interpolation":n,"color-interpolation-filters":n,"color-profile":n,"color-rendering":n,content:n,contentScriptType:n,contentStyleType:n,cursor:n,cx:n,cy:n,d:n,datatype:n,defaultAction:n,descent:n,diffuseConstant:n,direction:n,display:n,divisor:n,"dominant-baseline":n,dur:n,dx:n,dy:n,edgeMode:n,editable:n,elevation:n,"enable-background":n,end:n,"ev:event":r,event:n,exponent:n,externalResourcesRequired:n,fill:n,"fill-opacity":n,"fill-rule":n,filter:n,filterRes:n,filterUnits:n,"flood-color":n,"flood-opacity":n,focusHighlight:n,focusable:n,"font-family":n,"font-size":n,"font-size-adjust":n,"font-stretch":n,"font-style":n,"font-variant":n,"font-weight":n,format:n,from:n,fx:n,fy:n,g1:n,g2:n,"glyph-name":n,"glyph-orientation-horizontal":n,"glyph-orientation-vertical":n,glyphRef:n,gradientTransform:n,gradientUnits:n,handler:n,hanging:n,height:n,"horiz-adv-x":n,"horiz-origin-x":n,"horiz-origin-y":n,id:n,ideographic:n,"image-rendering":n,in:n,in2:n,initialVisibility:n,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:n,kernelUnitLength:n,kerning:n,keyPoints:n,keySplines:n,keyTimes:n,lang:n,lengthAdjust:n,"letter-spacing":n,"lighting-color":n,limitingConeAngle:n,local:n,"marker-end":n,"marker-mid":n,"marker-start":n,markerHeight:n,markerUnits:n,markerWidth:n,mask:n,maskContentUnits:n,maskUnits:n,mathematical:n,max:n,media:n,mediaCharacterEncoding:n,mediaContentEncodings:n,mediaSize:n,mediaTime:n,method:n,min:n,mode:n,name:n,"nav-down":n,"nav-down-left":n,"nav-down-right":n,"nav-left":n,"nav-next":n,"nav-prev":n,"nav-right":n,"nav-up":n,"nav-up-left":n,"nav-up-right":n,numOctaves:n,observer:n,offset:n,opacity:n,operator:n,order:n,orient:n,orientation:n,origin:n,overflow:n,overlay:n,"overline-position":n,"overline-thickness":n,"panose-1":n,path:n,pathLength:n,patternContentUnits:n,patternTransform:n,patternUnits:n,phase:n,playbackOrder:n,"pointer-events":n,points:n,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:n,preserveAspectRatio:n,primitiveUnits:n,propagate:n,property:n,r:n,radius:n,refX:n,refY:n,rel:n,"rendering-intent":n,repeatCount:n,repeatDur:n,requiredExtensions:n,requiredFeatures:n,requiredFonts:n,requiredFormats:n,resource:n,restart:n,result:n,rev:n,role:n,rotate:n,rx:n,ry:n,scale:n,seed:n,"shape-rendering":n,slope:n,snapshotTime:n,spacing:n,specularConstant:n,specularExponent:n,spreadMethod:n,startOffset:n,stdDeviation:n,stemh:n,stemv:n,stitchTiles:n,"stop-color":n,"stop-opacity":n,"strikethrough-position":n,"strikethrough-thickness":n,string:n,stroke:n,"stroke-dasharray":n,"stroke-dashoffset":n,"stroke-linecap":n,"stroke-linejoin":n,"stroke-miterlimit":n,"stroke-opacity":n,"stroke-width":n,surfaceScale:n,syncBehavior:n,syncBehaviorDefault:n,syncMaster:n,syncTolerance:n,syncToleranceDefault:n,systemLanguage:n,tableValues:n,target:n,targetX:n,targetY:n,"text-anchor":n,"text-decoration":n,"text-rendering":n,textLength:n,timelineBegin:n,title:n,to:n,transform:n,transformBehavior:n,type:n,typeof:n,u1:n,u2:n,"underline-position":n,"underline-thickness":n,unicode:n,"unicode-bidi":n,"unicode-range":n,"units-per-em":n,"v-alphabetic":n,"v-hanging":n,"v-ideographic":n,"v-mathematical":n,values:n,version:n,"vert-adv-y":n,"vert-origin-x":n,"vert-origin-y":n,viewBox:n,viewTarget:n,visibility:n,width:n,widths:n,"word-spacing":n,"writing-mode":n,x:n,"x-height":n,x1:n,x2:n,xChannelSelector:n,"xlink:actuate":i,"xlink:arcrole":i,"xlink:href":i,"xlink:role":i,"xlink:show":i,"xlink:title":i,"xlink:type":i,"xml:base":a,"xml:id":a,"xml:lang":a,"xml:space":a,y:n,y1:n,y2:n,yChannelSelector:n,z:n,zoomAndPan:n}})),Cn=o(((e,t)=>{var n=Dt(),r=Ot(),i,a=xn(),o=Sn(),s=`http://www.w3.org/1999/xhtml`;t.exports=c;function c(e,t){if(!e)return l(document.createTextNode(``));if(typeof e==`string`){if(!(`DOMParser`in window))throw Error(`DOMParser is not available, so parsing string to DOM node is not possible.`);i=i||new DOMParser;var n=i.parseFromString(e,`text/html`);e=n.body.firstChild?n.getElementsByTagName(`body`)[0].firstChild:n.head.firstChild&&(n.head.firstChild.tagName!==`TITLE`||n.title)?n.head.firstChild:n.firstChild&&n.firstChild.tagName!==`HTML`?n.firstChild:document.createTextNode(``)}if(typeof e!=`object`||!e||!e.nodeType)throw Error(`invalid dom node`,e);return l(e,t)}function l(e,t){return e.nodeType===3?u(e):e.nodeType===1||e.nodeType===9?d(e,t):new r(``)}function u(e){return new r(e.nodeValue)}function d(e,t){var r=e.namespaceURI===s?null:e.namespaceURI,i=t&&e.getAttribute(t)?e.getAttribute(t):null;return new n(e.tagName,p(e),f(e,t),i,r)}function f(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(l(e.childNodes[r],t));return n}function p(e){var t={};if(!e.hasAttributes())return t;var n;e.namespaceURI&&e.namespaceURI!==s&&(n=e.namespaceURI);for(var r,i=0;i<e.attributes.length;i++)r=e.attributes[i].name==`style`?g(e):n?h(e.attributes[i]):m(e.attributes[i]),r.ns?t[r.name]={namespace:r.ns,value:r.value}:r.isAttr?(t.attributes||(t.attributes={}),t.attributes[r.name]=r.value):t[r.name]=r.value;return t}function m(e){var t=a[e.name]?a[e.name]:e.name,n,r;return t.indexOf(`data-`)===0||t.indexOf(`aria-`)===0?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function h(e){return{name:e.name,value:e.value,ns:o[e.name]||``}}function g(e){for(var t=e.style,n={},r=0;r<t.length;++r){var i=t.item(r);n[i]=String(t[i]),n[i].indexOf(`url`)>-1&&(n[i]=n[i].replace(/\"/g,``))}return{name:`style`,value:n}}})),wn=c(At(),1),Tn=c(Rt(),1),En=c(an(),1),Dn=c(on(),1),On=c(bn(),1),kn=c(Cn(),1),An=c(Dt(),1),jn=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e,...t){this.observers[e]&&[].concat(this.observers[e]).forEach(e=>{e(...t)}),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach(n=>{n.apply(n,[e,...t])})}},Mn=class extends jn{constructor(e,t={}){super(),this.ele=e,this.options=t,this.observer=this.create(),this.internalChange=!0}create(){let e,t=()=>{e&&window.clearTimeout(e),e=setTimeout(()=>{this.internalChange&&(this.internalChange=!1)},200)},n=new MutationObserver(e=>{this.internalChange&&t(),this.internalChange||this.emit(`changed`,e)});return n.observe(this.ele,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n}reset(){this.internalChange=!0}};let Nn=[],Pn=!1,Fn=!1;function In(){if(!Pn){Pn=!0;for(let e=0;e<Nn.length;e++)Nn[e].fn.call(window,Nn[e].ctx);Nn=[]}}function Ln(){document.readyState===`complete`&&In()}function Rn(e,t){if(Pn){setTimeout(function(){e(t)},1);return}else Nn.push({fn:e,ctx:t});document.readyState===`complete`||!document.attachEvent&&document.readyState===`interactive`?setTimeout(In,1):Fn||(document.addEventListener?(document.addEventListener(`DOMContentLoaded`,In,!1),window.addEventListener(`load`,In,!1)):(document.attachEvent(`onreadystatechange`,Ln),window.attachEvent(`onload`,In)),Fn=!0)}var zn=class{start(){this.started=new Date().getTime()}end(){return this.ended=new Date().getTime(),this.ended-this.started}};function Bn(e,t,n){let r;return function(){let i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}function Vn(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function Hn(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}let a=typeof t==`string`?t.split(`.`):[].concat(t);for(;a.length>1;){if(i())return{};let t=r(a.shift());!e[t]&&n&&(e[t]=new n),e=e[t]}return i()?{}:{obj:e,k:r(a.shift())}}function Un(e,t,n){let{obj:r,k:i}=Hn(e,t,Object);r[i]=n}function Wn(e,t){let{obj:n,k:r}=Hn(e,t);if(n)return n[r]}function Gn(){let e=location.pathname;if(e===`/`)return`root`;let t=e.split(`/`),n=`root`;return t.forEach(e=>{e&&(n+=`_${e}`)}),n}let Kn=[`SVG`,`RECT`,`PATH`],qn=e=>{if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){let t=Gn();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=[`translation`]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map(e=>Kn.indexOf(e)>-1?e.toLowerCase():e.toUpperCase())),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map(e=>e.toUpperCase())),e.inlineTags&&(e.inlineTags=e.inlineTags.map(e=>e.toUpperCase())),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map(e=>e.toUpperCase())),e.mergeTags&&(e.mergeTags=e.mergeTags.map(e=>e.toUpperCase())),e.translateAttributes=e.translateAttributes.reduce((e,t)=>{let n={attr:t};if(t.indexOf(`#`)>-1){let[e,r]=t.split(`#`);if(n.attr=e,r.indexOf(`.`)>-1){let[e,t]=r.split(`.`);n.ele=e.toUpperCase(),n.cond=t.toLowerCase().split(`=`)}else r.indexOf(`=`)>-1?n.cond=r.toLowerCase().split(`=`):n.ele=r.toUpperCase()}return e.push(n),e},[]),e};function Jn(e,t={retranslate:!1}){return t&&t.retranslate?!0:!e.properties||!e.properties.attributes||e.properties.attributes.localized!==``}function Yn(e){let t=!e.properties||!e.properties.attributes||e.properties.attributes.translated!==``;return t&&e.tagName&&A.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&A.options.ignoreClasses&&e.properties&&e.properties.className&&e.properties.className.split(` `).forEach(e=>{t&&A.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}),t&&A.options.ignoreIds&&A.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function Xn(e,t={},n){let r=e.trim(),i=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!A.options.ignoreWithoutKey||r&&A.options.ignoreWithoutKey&&n?A.t(i,t):e}let Zn=[`src`,`href`],Qn=/%7B%7B(.+?)%7D%7D/g,$n=/^\s*(javascript|data|vbscript|file)\s*:/i;function er(e){return typeof e==`string`&&$n.test(e)}function tr(e,t,n={},r,i,a){return t&&(A.options.translateAttributes.forEach(o=>{if(o.ele&&e.tagName!==o.ele)return;if(o.cond&&o.cond.length===2){let e=Wn(t,o.cond[0])||Wn(t.attributes,o.cond[0]);if(!e||e!==o.cond[1])return}let s=!1,c=Wn(t,o.attr);if(c||(c=Wn(t.attributes,o.attr),c&&(s=!0)),a.retranslate){let t=e.properties&&e.properties&&e.properties.attributes[`${o.attr}-i18next-orgval`];t||(t=c),c=t}c&&(i&&(e.properties.attributes[`${o.attr}-i18next-orgval`]=c),Un(s?t.attributes:t,o.attr,Xn(c,{...n},r?`${r}.${o.attr}`:``)))}),Zn.forEach(e=>{let i=Wn(t,e);if(i&&(i=i.replace(/\{\{/g,`%7B%7B`).replace(/\}\}/g,`%7D%7D`)),i&&i.indexOf(`%7B`)>-1){let a=[];i.split(Qn).reduce((t,i,a)=>{if(i.length===0)return t;if(!a||a%2==0)t.push(i);else{let o=Xn(i,{...n},r?`${r}.${e}`:``);o&&o.indexOf(`http`)===0&&t[a-1]&&t[a-1].indexOf(`http`)===0&&t.splice(a-1,1),er(o)?t.push(``):t.push(o)}return t},a),a.length&&Un(t,e,a.join(``))}}),t)}function nr(e,t){let n=Vn(t,`i18next-options`);if(n)try{n=JSON.parse(n)}catch{console.warn(`failed parsing options on node`,t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map(e=>e.toUpperCase())),{...e||{},...n||{}}}function rr(e,t){return A.options.cleanIndent?e.replace(/\n +/g,t):e}function ir(e,t){if(!e.children||!e.children.length||A.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(A.options.mergeTags.indexOf(e.tagName)>-1)return!0;let n=t.inlineTags||A.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,i=!0,a=!1;return e.children.forEach(e=>{!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(i=!1),e.tagName&&(a=!0)}),i&&a}function ar(e,t,n,r,i=0,a){let o=Yn(e),s=Jn(e,a),c=Jn(e);t=nr(t,e);let l=i===0?r:``;i>0&&r&&!A.options.ignoreWithoutKey&&(l=`${r}.${i}`);let u=Vn(e,A.options.keyAttr)||l,d=Vn(e,`merge`);if(d!==`false`&&(d===``||ir(e,t))){if(o&&s){let r=rr((0,On.default)(new An.default(`I18NEXTIFYDUMMY`,null,e.children)),``).replace(`<i18nextifydummy>`,``).replace(`</i18nextifydummy>`,``);if(a.retranslate){let t=e.properties&&e.properties.attributes&&e.properties.attributes[`i18next-orgval`];t||(t=n&&n.properties&&n.properties.attributes&&n.properties.attributes[`i18next-orgval-${i}`]),t||(t=r),r=t}let o=Xn(r,t,u);typeof A.options.sanitize==`function`&&(o=A.options.sanitize(o,{key:r,attribute:null})),e.children=(0,kn.default)((`<i18nextifydummy>${o}</i18nextifydummy>`||``).trim()).children,c&&e.properties&&e.properties.attributes?e.properties.attributes[`i18next-orgval`]=r:c&&n&&n.properties&&n.properties.attributes&&(n.properties.attributes[`i18next-orgval-${i}`]=r),e.properties&&e.properties.attributes&&(e.properties.attributes.localized=``)}return e}if(e.children&&e.children.forEach((n,r)=>{(o&&s&&n.text||!n.text&&Yn(n))&&ar(n,t,e,u,e.children.length>1?r+1:r,a)}),e.text&&!e.properties&&e.type===`Widget`)return e;if(o&&s){if(e.text){let r,o=e.text,s=e.text;if(a.retranslate){let t=e.properties&&e.properties.attributes&&e.properties.attributes[`i18next-orgval`];t||(t=n&&n.properties&&n.properties.attributes&&n.properties.attributes[`i18next-orgval-${i}`]),t||(t=e.text),o=t,s=t}let l=A.options.ignoreCleanIndentFor.indexOf(n.tagName)>-1;if(l||(o=rr(o,`
|
|
28
|
-
`),A.options.cleanWhitespace&&(r=/^\s*(.*[^\s])\s*$/g.exec(o))),!l&&r&&r.length>1&&A.options.cleanWhitespace){let n=
|
|
29
|
-
`+JSON.stringify(lr,null,2))}let dr=Bn(ur,2e3);function fr(e,t,n,r){typeof e==`string`&&(e=[e]),e||(e=[]),e.forEach(e=>{Un(lr,[e,t,n],r),dr()}),A.services.backendConnector&&A.services.backendConnector.saveMissing&&A.services.backendConnector.saveMissing(e,t,n,r)}function pr(){let e=document.getElementById(`i18nextify`),t=e&&(e.getAttribute(`supportedlngs`)||e.getAttribute(`supportedLngs`))||void 0;typeof t==`string`&&(t=t.split(`,`).map(e=>e.trim()));let n={autorun:!0,ele:document.body,keyAttr:`i18next-key`,ignoreWithoutKey:!1,ignoreTags:[`SCRIPT`],ignoreIds:[],ignoreClasses:[],translateAttributes:[`placeholder`,`title`,`alt`,`value#input.type=button`,`value#input.type=submit`],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:[`PRE`,`CODE`],cleanWhitespace:!0,nsSeparator:`#||#`,keySeparator:`#|#`,debug:(()=>{try{return new URLSearchParams(window.location.search).get(`debug`)===`true`}catch{return!1}})(),saveMissing:(()=>{try{return new URLSearchParams(window.location.search).get(`saveMissing`)===`true`}catch{return!1}})(),namespace:e&&e.getAttribute(`namespace`)||!1,namespaceFromPath:e&&(e.getAttribute(`namespacefrompath`)||e.getAttribute(`namespaceFromPath`))||!1,missingKeyHandler:fr,ns:[],supportedLngs:t,load:e&&e.getAttribute(`load`)||void 0,fallbackLng:e&&(e.getAttribute(`fallbacklng`)||e.getAttribute(`fallbackLng`))||void 0,onInitialTranslate:()=>{}},r=e&&(e.getAttribute(`loadpath`)||e.getAttribute(`loadPath`))||void 0,i=e&&(e.getAttribute(`addpath`)||e.getAttribute(`addPath`))||void 0;return(r||i)&&(n.backend={},r&&(n.backend.loadPath=r),i&&(n.backend.addPath=i)),n}let mr=!1,hr=!1;Rn(()=>{mr=!0,hr||yr()}),A.use(Qe),A.use(St);let gr={};function _r(e){!e&&gr.namespaceFromPath&&(e=Gn()),gr.ns.push(e),gr.defaultNS=e,A.loadNamespaces(gr.ns,()=>{A.setDefaultNamespace(e)})}let vr=[];function yr(e={}){e={...pr(),...gr,...e},e=qn(e),e.ele||(delete e.ele,gr=e),hr=!0;let t;function n(n){for(let r=0;r<n.length;r++){let i=n[r];if(e.ignoreTags.indexOf(i.tagName)<0&&e.ignoreIds.indexOf(i.id)<0&&e.ignoreClasses.indexOf(i.className)<0&&!i.attributes.localized&&!i.attributes.translated){let e=cr(i,t);vr.push(e),e.render()}}}function r(t,n,i){let a=!0;setTimeout(()=>{for(let n=0;n<t.length;n++){let o=t[n];if(e.ignoreTags.indexOf(o.tagName)<0&&e.ignoreIds.indexOf(o.id)<0&&e.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){a&&r(t,100,i),a=!1;break}}a&&i()},n)}let i=1;mr||i++,e.autorun===!1&&i++;function a(){if(--i,!i){e.ele||(e.ele=document.body);let i=e.ele.children;t=new Mn(e.ele),n(i),t.on(`changed`,e=>{vr.forEach(e=>e.debouncedRender()),n(i)}),r(i,0,()=>{if(e.ele.style&&e.ele.style.display===`none`&&(e.ele.style.display=`block`),window.document.title){let e=window.document.getElementsByTagName(`title`).length>0&&window.document.getElementsByTagName(`title`)[0].getAttribute(A.options.keyAttr);window.document.title=A.t(e||window.document.title)}if(window.document.querySelector(`meta[name="description"]`)&&window.document.querySelector(`meta[name="description"]`).content){let e=window.document.querySelector(`meta[name="description"]`).getAttribute(A.options.keyAttr)||window.document.querySelector(`meta[name="description"]`).content;window.document.querySelector(`meta[name="description"]`).setAttribute(`content`,A.t(e))}e.onInitialTranslate()})}}if(A.on(`languageChanged`,e=>{window.document.documentElement.lang=e}),A.init(e,a),mr||Rn(a),e.autorun===!1)return{start:a}}function br(){vr.forEach(e=>{e.render(!0)})}var xr={init:yr,i18next:A,changeNamespace:_r,forceRerender:br};let Sr=[],Cr=Sr.forEach,wr=Sr.slice,Tr=[`__proto__`,`constructor`,`prototype`];function M(e){return Cr.call(wr.call(arguments,1),t=>{if(t)for(let n of Object.keys(t))Tr.indexOf(n)>-1||e[n]===void 0&&(e[n]=t[n])}),e}function Er(e){return!(typeof e!=`string`||e.length===0||e.length>128||Tr.indexOf(e)>-1||e.indexOf(`..`)>-1||e.indexOf(`/`)>-1||e.indexOf(`\\`)>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function Dr(e){return typeof e==`string`?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e}function Or(e,t,n){let r;return function(){let i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}function kr(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}let i=typeof t==`string`?t.split(`.`):[].concat(t);for(;i.length>1;){if(!e)return{};let t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=e[t]}return e?{obj:e,k:r(i.shift())}:{}}function Ar(e,t,n){let{obj:r,k:i}=kr(e,t,Object);r[i]=n}function jr(e,t,n,r){let{obj:i,k:a}=kr(e,t,Object);i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function Mr(e,t){let{obj:n,k:r}=kr(e,t);if(n)return n[r]}let Nr=RegExp(`{{(.+?)}}`,`g`);function Pr(e){return e==null?``:``+e}function Fr(e,t){let n,r=!1;for(;n=Nr.exec(e);){let i=n[1].trim();if(Tr.indexOf(i)>-1){Nr.lastIndex=0;continue}let a=t[i];if(a==null){Nr.lastIndex=0;continue}let o=Pr(a).split(`+`),s=!0;for(let e of o)if(!Er(e)){s=!1;break}if(!s){r=!0;break}e=e.replace(n[0],o.join(`+`)),Nr.lastIndex=0}return Nr.lastIndex=0,r?null:e}function Ir(e,t){return t.reduce((t,n)=>{if(t)return t;if(!e||!e[n]||typeof e[n]!=`string`||!e[n].toLowerCase()===n.toLowerCase()){let t=`i18next-locize-backend :: got "${e[n]}" in options for ${n} which is invalid.`;return console.warn(t),t}return!1},!1)}function Lr(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}let Rr=typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof window<`u`?window:void 0,zr;typeof fetch==`function`?zr=fetch:Rr&&typeof Rr.fetch==`function`&&(zr=Rr.fetch);let Br=(typeof XMLHttpRequest==`function`||typeof XMLHttpRequest==`object`)&&Rr?Rr.XMLHttpRequest:void 0,Vr=typeof ActiveXObject==`function`&&Rr?Rr.ActiveXObject:void 0,Hr={},Ur=e=>{if(!e)return 0;let t=e.match(/max-age=([0-9]+)/);return t?parseInt(t[1],10):0},Wr=(e,t,n,r)=>{let i={};typeof window>`u`&&typeof global<`u`&&global.process!==void 0&&global.process.versions&&global.process.versions.node&&(i[`User-Agent`]=`i18next-locize-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),e.authorize&&e.apiKey&&(i.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(i[`Content-Type`]=`application/json`);let a=t=>{let n=t.headers&&t.headers.get(`x-cache`)===`Error from cloudfront`;if(e.cdnType===`standard`&&t.status===404&&(!t.headers||!t.headers.get(`x-cache`)))return n=!0,r(null,{status:200,data:`{}`,resourceNotExisting:n});if(!t.ok)return r(t.statusText||`Error`,{status:t.status,resourceNotExisting:n});let i=t.headers&&t.headers.get(`cache-control`);t.text().then(e=>{r(null,{status:t.status,data:e,resourceNotExisting:n,cacheControl:i})}).catch(r)};typeof fetch==`function`?fetch(t,{method:n?`POST`:`GET`,body:n?JSON.stringify(n):void 0,headers:i}).then(a).catch(r):zr(t,{method:n?`POST`:`GET`,body:n?JSON.stringify(n):void 0,headers:i}).then(a).catch(r)},Gr=(e,t,n,r)=>{try{let i=Br?new Br:new Vr(`MSXML2.XMLHTTP.3.0`);i.open(n?`POST`:`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),e.authorize&&e.apiKey&&i.setRequestHeader(`Authorization`,e.apiKey),(n||e.setContentTypeJSON)&&i.setRequestHeader(`Content-Type`,`application/json`),i.onreadystatechange=()=>{let t=i.getResponseHeader(`x-cache`)===`Error from cloudfront`;if(e.cdnType===`standard`&&i.status===404&&!i.getResponseHeader(`x-cache`))return t=!0,i.readyState>3&&r(null,{status:200,data:`{}`,resourceNotExisting:t});let n=i.getResponseHeader(`Cache-Control`);i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText,resourceNotExisting:t,cacheControl:n})},i.send(JSON.stringify(n))}catch(e){console&&console.log(e)}},Kr=(e,t,n,r)=>{typeof n==`function`&&(r=n,n=void 0),r=r||(()=>{});let i=typeof window>`u`&&e.useCacheLayer;if(i&&!n&&!e.noCache&&Hr[t]&&Hr[t].expires>Date.now())return r(null,Hr[t].data);let a=r;if(r=(e,r)=>{if(i&&!e&&r&&!n&&r.cacheControl){let e=Ur(r.cacheControl);e>0&&(Hr[t]={data:r,expires:Date.now()+e*1e3})}a(e,r)},!n&&e.noCache&&e.cdnType===`standard`&&(t+=(t.indexOf(`?`)>=0?`&`:`?`)+`cache=no`),zr)return Wr(e,t,n,r);if(Br||Vr)return Gr(e,t,n,r);r(Error(`No fetch and no xhr implementation found!`))},qr=e=>(e||(e=`standard`),{loadPath:`https://api${e===`standard`?`.lite`:``}.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}`,privatePath:`https://api${e===`standard`?`.lite`:``}.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}`,getLanguagesPath:`https://api${e===`standard`?`.lite`:``}.locize.app/languages/{{projectId}}`,addPath:`https://api${e===`standard`?`.lite`:``}.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}`,updatePath:`https://api${e===`standard`?`.lite`:``}.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}`}),Jr=e=>(e||(e=`standard`),M({cdnType:e,noCache:!1,referenceLng:`en`,crossDomain:!0,setContentTypeJSON:!1,version:`latest`,private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:[`localhost`],onSaved:!1,reloadInterval:typeof window<`u`?!1:3600*1e3,checkForProjectTimeout:3*1e3,storageExpiration:3600*1e3,writeDebounce:5*1e3,useCacheLayer:typeof window>`u`},qr(e))),Yr;try{Yr=typeof window<`u`&&window.localStorage!==null;let e=`notExistingLocizeProject`;window.localStorage.setItem(e,`foo`),window.localStorage.removeItem(e)}catch{Yr=!1}function Xr(e){let t=()=>{},n=()=>{};return Yr?(t=e=>{window.localStorage.setItem(`notExistingLocizeProject_${e}`,Date.now())},n=t=>{let n=window.localStorage.getItem(`notExistingLocizeProject_${t}`);return n?Date.now()-n>e?(window.localStorage.removeItem(`notExistingLocizeProject_${t}`),!1):!0:!1}):typeof document<`u`&&(t=t=>{let n=new Date;n.setTime(n.getTime()+e);let r=`; expires=${n.toGMTString()}`,i=`notExistingLocizeProject_${t}`;try{document.cookie=`${i}=${Date.now()}${r};path=/`}catch{}},n=e=>{let t=`${`notExistingLocizeProject_${e}`}=`;try{let e=document.cookie.split(`;`);for(let n=0;n<e.length;n++){let r=e[n];for(;r.charAt(0)===` `;)r=r.substring(1,r.length);if(r.indexOf(t)===0)return!0}}catch{}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}let Zr=(e,t,n)=>{let r={};return t.authorize&&t.apiKey&&(r.Authorization=t.apiKey),(n||t.setContentTypeJSON)&&(r[`Content-Type`]=`application/json`),{method:n?`POST`:`GET`,url:e,headers:r,body:n}},Qr=(e,t,n)=>{if(e.request.length===1){try{let r=e.request(t);r&&typeof r.then==`function`?r.then(e=>n(null,e)).catch(n):n(null,r)}catch(e){n(e)}return}e.request(t,n)};function $r(e){let t=e*.25,n=Math.max(0,e-t),r=e+t;return Math.floor(n+Math.random()*(r-n))}var ei=class{constructor(e,t={},n={},r){this.services=e,this.options=t,this.allOptions=n,this.type=`backend`,e&&e.projectId?this.init(null,e,n,t):this.init(e,t,n,r)}init(e,t={},n={},r){!t.referenceLng&&n.fallbackLng&&Array.isArray(n.fallbackLng)&&n.fallbackLng[0]!==`dev`&&(t.referenceLng=n.fallbackLng[0]),this.services=e;let i=M({},t),a=M(t,this.options||{}),o=Jr(a.cdnType);a.reloadInterval&&a.reloadInterval<300*1e3&&(console.warn(`Your configured reloadInterval option is to low.`),a.reloadInterval=o.reloadInterval),this.options=M(t,this.options||{},o),this.allOptions=n,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=Xr(this.options.storageExpiration);let s=qr(this.options.cdnType);Object.keys(s).forEach(e=>{i[e]||(this.options[e]=s[e])}),n.debug&&i.noCache===void 0&&this.options.cdnType===`standard`&&(this.options.noCache=!0),this.options.noCache&&this.options.cdnType!==`standard`&&console.warn(`The 'noCache' option is not available for 'cdnType' '${this.options.cdnType}'!`);let c=typeof window<`u`&&window.location&&window.location.hostname;c?(this.isAddOrUpdateAllowed=typeof this.options.allowedAddOrUpdateHosts==`function`?this.options.allowedAddOrUpdateHosts(c):this.options.allowedAddOrUpdateHosts.indexOf(c)>-1,e&&e.logger&&(n.saveMissing||n.updateMissing)&&(this.isAddOrUpdateAllowed?c!==`localhost`&&e.logger.warn(`locize-backend: you are using the save or update missings feature from this host "${c}".\nMake sure you will not use it in production!\nhttps://www.locize.com/docs/going-to-production`):e.logger.warn(typeof this.options.allowedAddOrUpdateHosts==`function`?`locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "${c}".`:`locize-backend: will not save or update missings because the host "${c}" was not in the list of allowedAddOrUpdateHosts: ${this.options.allowedAddOrUpdateHosts.join(`, `)} (matches need to be exact).`))):this.isAddOrUpdateAllowed=!0,typeof r==`function`&&this.getOptions((e,n,i)=>{if(e)return r(e);this.options.referenceLng=t.referenceLng||n.referenceLng||this.options.referenceLng,r(null,n,i)}),this.queuedWrites={pending:{}},this.debouncedProcess=Or(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval(()=>this.reload(),this.options.reloadInterval),typeof this.interval==`object`&&typeof this.interval.unref==`function`&&this.interval.unref())}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services||{logger:console};if(!e)return;let r=e.language;if(r&&r.toLowerCase()===`cimode`)return;let i=[],a=e=>{t.toResolveHierarchy(e).forEach(e=>{i.indexOf(e)<0&&i.push(e)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(e=>a(e)),i.forEach(t=>{this.allOptions.ns.forEach(r=>{e.read(t,r,`read`,null,null,(i,a)=>{i&&n.warn(`loading namespace ${r} for language ${t} failed`,i),!i&&a&&n.log(`loaded namespace ${r} for language ${t}`,a),e.loaded(`${t}|${r}`,i,a)})})})}getLanguages(e){let t;e||(t=Lr(),e=(e,n)=>{if(e)return t.reject(e);t.resolve(n)});let n=Ir(this.options,[`projectId`]);if(n)return e(Error(n)),t;let r=Fr(this.options.getLanguagesPath,{projectId:this.options.projectId});return r==null?(e(Error(`i18next-locize-backend: unsafe projectId — refusing to build request URL for projectId=`+Dr(String(this.options.projectId)))),t):(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?(e(Error(this.isProjectNotExistingErrorMessage||`Locize project ${this.options.projectId} does not exist!`)),t):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1||this.loadUrl({},r,(e,t,n)=>{if(!this.somethingLoaded&&n&&n.resourceNotExisting){this.isProjectNotExisting=!0;let e=`Locize project ${this.options.projectId} does not exist!`;this.isProjectNotExistingErrorMessage=e;let t=this.options.cdnType===`standard`?`pro`:`standard`,n=Fr(qr(t).getLanguagesPath,{projectId:this.options.projectId});if(n==null)return;this.loadUrl({},n,(n,r,i)=>{!n&&r&&(!i||!i.resourceNotExisting)?(e+=` It seems you're using the wrong cdnType. Your Locize project is configured to use "${t}" but here you've configured "${this.options.cdnType}".`,this.isProjectNotExistingErrorMessage=e):!this.somethingLoaded&&i&&i.resourceNotExisting&&(this.isProjectNotExisting=!0,this.storage.setProjectNotExisting(this.options.projectId));let a=Error(e),o=this.getLanguagesCalls;this.getLanguagesCalls=[],o.forEach(e=>e(a))});return}if(t){this.loadedLanguages=Object.keys(t);let e=this.loadedLanguages.reduce((e,n)=>(t[n].isReferenceLanguage&&(e=n),e),``);e&&this.options.referenceLng!==e&&(this.options.referenceLng=e)}this.somethingLoaded=!0;let r=this.getLanguagesCalls;this.getLanguagesCalls=[],r.forEach(n=>n(e,t))}),t))}getOptions(e){let t;return e||(t=Lr(),e=(e,n)=>{if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((t,n)=>{if(t)return e(t);let r=Object.keys(n);if(!r.length)return e(Error(`was unable to load languages via API`));let i=r.reduce((e,t)=>{let r=n[t];return r.translated[this.options.version]&&r.translated[this.options.version]>=this.options.translatedPercentageThreshold&&e.push(t),e},[]),a=r.reduce((e,t)=>t.indexOf(`-`)>-1?!0:e,!1);e(null,{fallbackLng:this.options.referenceLng,referenceLng:this.options.referenceLng,supportedLngs:i.length===0&&this.options.referenceLng?[this.options.referenceLng]:i,load:a?`all`:`languageOnly`},n)}),t}checkIfProjectExists(e){let{logger:t}=this.services||{logger:console};if(this.somethingLoaded){e&&e(null);return}if(this.alreadyRequestedCheckIfProjectExists){setTimeout(()=>this.checkIfProjectExists(e),$r(this.options.checkForProjectTimeout));return}this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages(n=>{n&&n.message&&n.message.indexOf(`does not exist`)>0&&t&&t.error(n.message),e&&e(n)})}checkIfLanguagesLoaded(e){let{logger:t}=this.services||{logger:console};if(this.loadedLanguages){e&&e(null);return}this.getLanguages(n=>{n&&n.message&&n.message.indexOf(`does not exist`)>0&&t&&t.error(n.message),e&&e(n)})}read(e,t,n){let{logger:r}=this.services||{logger:console},i,a={};if(this.options.private){let r=Ir(this.options,[`projectId`,`version`,`apiKey`]);if(r)return n(Error(r),!1);i=Fr(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),a={authorize:!0}}else{let r=Ir(this.options,[`projectId`,`version`]);if(r)return n(Error(r),!1);i=Fr(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(i==null)return n(Error(`i18next-locize-backend: unsafe lng/ns/projectId/version — refusing to build request URL for lng=`+Dr(String(e))+` ns=`+Dr(String(t))),!1);if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){let e=Error(this.isProjectNotExistingErrorMessage||`Locize project ${this.options.projectId} does not exist!`);r&&r.error(e.message),n&&n(e);return}if(this.warnedLanguages&&this.warnedLanguages.indexOf(e)>-1){let t=Error(`Will not continue to load language "${e}" since it is not available in Locize project ${this.options.projectId}!`);r&&r.error(t.message),n&&n(t);return}this.loadUrl(a,i,(t,i,a)=>{let o=a&&a.resourceNotExisting;o||(this.hasResourcesForLng||(this.hasResourcesForLng={}),this.hasResourcesForLng[e]=!0),o&&(!this.hasResourcesForLng||!this.hasResourcesForLng[e])&&setTimeout(()=>{this.checkIfLanguagesLoaded(()=>{this.loadedLanguages&&(this.loadedLanguages.indexOf(e)>-1||this.warnedLanguages&&this.warnedLanguages.indexOf(e)>-1||(this.warnedLanguages||(this.warnedLanguages=[]),this.warnedLanguages.push(e),r&&r.error(`Language "${e}" is not available in Locize project ${this.options.projectId}!`)))})},$r(this.options.checkForProjectTimeout)),this.somethingLoaded||(o?setTimeout(()=>this.checkIfProjectExists(),$r(this.options.checkForProjectTimeout)):this.somethingLoaded=!0),n(t,i)})}loadUrl(e,t,n,r){e=M(e,this.options),typeof n==`function`&&(r=n,n=void 0),r=r||(()=>{});let i=(e,n)=>{let i=n&&n.resourceNotExisting;if(n&&(n.status===408||n.status===400)||n&&(n.status>=500&&n.status<600||!n.status))return r(`failed loading `+t,!0,{resourceNotExisting:i});if(n&&n.status>=400&&n.status<500)return r(`failed loading `+t,!1,{resourceNotExisting:i});if(!n&&e&&e.message){let n=e.message.toLowerCase();if([`failed`,`fetch`,`network`,`load`].find(e=>n.indexOf(e)>-1))return r(`failed loading `+t+`: `+e.message,!0,{resourceNotExisting:i})}if(e)return r(e,!1);let a,o;try{a=typeof n.data==`string`?JSON.parse(n.data):n.data}catch{o=`failed parsing `+t+` to json`}if(o)return r(o,!1);if(this.options.failLoadingOnEmptyJSON&&!Object.keys(a).length)return r(`loaded result empty for `+t,!1,{resourceNotExisting:i});r(null,a,{resourceNotExisting:i})};if(!this.options.request||t.indexOf(`/languages/${e.projectId}`)>0)return Kr(e,t,n,i);let a=Zr(t,e,n);Qr(this.options,a,i)}create(e,t,n,r,i,a){typeof i!=`function`&&(i=()=>{}),this.checkIfProjectExists(o=>{if(o)return i(o);let s=Ir(this.options,[`projectId`,`version`,`apiKey`,`referenceLng`]);if(s)return i(Error(s));if(!this.isAddOrUpdateAllowed)return i(`host is not allowed to create key.`);typeof e==`string`&&(e=[e]),e.filter(e=>e===this.options.referenceLng).length<1&&this.services&&this.services.logger&&this.services.logger.warn(`locize-backend: will not save missings because the reference language "${this.options.referenceLng}" was not in the list of to save languages: ${e.join(`, `)} (open your site in the reference language to save missings).`),e.forEach(e=>{e===this.options.referenceLng&&this.queue.call(this,this.options.referenceLng,t,n,r,i,a)})})}update(e,t,n,r,i,a){typeof i!=`function`&&(i=()=>{}),this.checkIfProjectExists(o=>{if(o)return i(o);let s=Ir(this.options,[`projectId`,`version`,`apiKey`,`referenceLng`]);if(s)return i(Error(s));if(!this.isAddOrUpdateAllowed)return i(`host is not allowed to update key.`);a||(a={}),typeof e==`string`&&(e=[e]),a.isUpdate=!0,e.forEach(e=>{e===this.options.referenceLng&&this.queue.call(this,this.options.referenceLng,t,n,r,i,a)})})}writePage(e,t,n,r){let i=Fr(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),a=Fr(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version});if(i==null||a==null){typeof r==`function`&&r(Error(`i18next-locize-backend: unsafe lng/ns/projectId/version — refusing to persist missing keys for lng=`+Dr(String(e))+` ns=`+Dr(String(t))));return}let o=!1,s=!1,c={},l={};n.forEach(e=>{let t=e.options&&e.options.tDescription?{value:e.fallbackValue||``,context:{text:e.options.tDescription}}:e.fallbackValue||``;e.options&&e.options.isUpdate?(s||(s=!0),l[e.key]=t):(o||(o=!0),c[e.key]=t)});let u=0;o&&u++,s&&u++;let d=e=>{u--,u||r(e)};if(u||d(),o)if(!this.options.request)Kr(M({authorize:!0},this.options),i,c,d);else{let e=Zr(i,M({authorize:!0},this.options),c);Qr(this.options,e,d)}if(s)if(!this.options.request)Kr(M({authorize:!0},this.options),a,l,d);else{let e=Zr(a,M({authorize:!0},this.options),l);Qr(this.options,e,d)}}write(e,t){if(Mr(this.queuedWrites,[`locks`,e,t]))return;let n=Mr(this.queuedWrites,[e,t]);Ar(this.queuedWrites,[e,t],[]);let r=1e3,i=n.filter(e=>e.callback).map(e=>e.callback);if(n.length){Ar(this.queuedWrites,[`locks`,e,t],!0);let a=()=>{Ar(this.queuedWrites,[`locks`,e,t],!1),i.forEach(e=>e()),this.options.onSaved&&this.options.onSaved(e,t),this.debouncedProcess(e,t)},o=n.length/r,s=0,c=n.splice(0,r);for(this.writePage(e,t,c,()=>{s++,s>=o&&a()});c.length===r;)c=n.splice(0,r),c.length&&this.writePage(e,t,c,()=>{s++,s>=o&&a()})}}process(){Object.keys(this.queuedWrites).forEach(e=>{e!==`locks`&&Object.keys(this.queuedWrites[e]).forEach(t=>{this.queuedWrites[e][t].length&&this.write(e,t)})})}queue(e,t,n,r,i,a){jr(this.queuedWrites,[e,t],{key:n,fallbackValue:r||``,callback:i,options:a}),this.debouncedProcess()}};ei.type=`backend`;function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ti(e)}function ni(e,t){if(ti(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ti(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ri(e){var t=ni(e,`string`);return ti(t)==`symbol`?t:t+``}function N(e,t,n){return(t=ri(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ii=typeof window<`u`?[``,``]:[``,``],ai=RegExp(`([${ii.join(``)}]{9})+`,`gu`),oi=9,si=`subliminal:start`,ci=function(e){return Array.from(new TextEncoder().encode(e))},li=function(e){return new TextDecoder().decode(new Uint8Array(e))},ui=function(e){var t=8-e.length;return`0`.repeat(t)+e},di=function(e){var t=ci(e).map(Number).map(function(e){return ui(e.toString(2))+`0`}).join(``);return Array.from(t).map(function(e){return ii[Number(e)]}).join(``)},fi=di(si),pi=function(e){var t=Array.from(e).map(function(e){return ii.indexOf(e)}).map(String).join(``).match(/(.{9})/g);return li(Uint8Array.from(t?.map(function(e){return parseInt(e.slice(0,8),2)})||[]))},mi=function(e){var t=e.match(ai)?.filter(function(e){return e.length>oi-1});if(!(!t||t.length===0))return pi(t[t.length-1])},hi=function(e){return e.replace(ai,``)},gi=function(e){if(Object.keys(e).length===0)return e;var t={k:e.key,n:e.ns,l:e.lng,s:e.source};return JSON.stringify(t)},_i=function(e){if(!(!e||typeof e!=`string`||e.indexOf(`{`)!==0))try{var t=JSON.parse(e||`{}`);return{key:t.k,ns:t.n,lng:t.l,source:t.s}}catch{return}};function vi(e){var t=di(gi(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}));return typeof e==`string`&&e?fi+e+t:e}function yi(e){var t=_i(mi(e));return{text:hi(e),invisibleMeta:t}}function bi(e){return!e||e.length<27||!ai.test(e)?!1:pi(e.substring(e.length-9))===`}`}function xi(e){return e.startsWith(fi)}function Si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Si(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Si(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var wi=`subliminal`,Ti={name:wi,type:`postProcessor`,options:{},setOptions:function(e){this.options=Ci(Ci({},e),this.options)},process:function(e,t,n,r){var i=this.options=Ci(Ci({},n),this.options),a,o,s,c;if(n.i18nResolved)a=n.i18nResolved.exactUsedKey,o=n.i18nResolved.usedNS,s=n.i18nResolved.usedLng,c=n.i18nResolved.res===void 0?a===e?`key`:`default`:`translation`;else{var l,u,d=i.keySeparator??(r==null||(l=r.options)==null?void 0:l.keySeparator)??`.`,f=r.extractFromKey(t.join(d),n),p=f.key,m=f.namespaces;a=p,o=m?.[0]??i.ns??(r==null||(u=r.options)==null?void 0:u.defaultNS),s=n.lng||this.language,c=a===e?`key`:`translation`}return vi(e,{key:a,ns:o,lng:s,source:c})},overloadTranslationOptionHandler:function(){return{postProcess:wi,postProcessPassResolved:!0}}},Ei=[`placeholder`,`title`,`alt`],Di=[`SCRIPT`],Oi={highlight:`#1976d2`,warning:`#e67a00`,gray:`#ccc`},ki=function(){var e;typeof process<`u`&&(e=process),!e&&typeof window<`u`&&(e=window.process);var t=(e||{}).env?.locizeIncontext||`production`;return t===`development`?`http://localhost:3003/`:t===`staging`?`https://incontext-dev.locize.app`:`https://incontext.locize.app`},P=function(){if(!(typeof document>`u`)){var e=document.createElement(`style`);return document.head.appendChild(e),e.sheet}}();function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ai(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var F={};function Mi(){Object.values(F).forEach(function(e){document.body.contains(e.node)||(J(e.id,e.node),delete F[e.id])})}function Ni(e,t,n,r){!e||!t||!n||(F[e]||(F[e]={id:e,node:n}),F[e].keys=ji(ji({},F[e].keys),{},N({},`${t}`,{value:r,eleUniqueID:e,textType:t})))}function Pi(e,t){J(e,t),delete F[e]}function Fi(e,t,n){var r=Ii(e);r&&(delete r.keys[`${t}`],Object.keys(r.keys).length||Pi(e,n))}function Ii(e){return F[e]}var I={save:Ni,remove:Pi,removeKey:Fi,clean:Mi,get:Ii,data:F};function Li(e){if(Array.isArray(e))return e}function Ri(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bi(e,t){if(e){if(typeof e==`string`)return zi(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(e,t):void 0}}function Vi(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
31
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
27
|
+
`,n+=`};`,Function(`fn`,n)(e)}function c(e){return function(t,n,r){n.push(t);var i=e(t);return r.push(i),i}}function l(e){return e}function u(e){return new RegExp(e)}function d(e){return new Date(e.getTime())}function f(e){return s(e)}function p(e){return Object.create(Object.getPrototypeOf(e))}function m(e){return[]}function h(e){var t=e.length;return new e.constructor(t)}function g(e,t){return function(n,r,i){var a=this;return Object.getOwnPropertyNames(n).filter(function(e){return!t||t.indexOf(e)===-1}).reduce(function(e,t){var o=r.indexOf(n[t]);return o===-1?e[t]=a(n[t]):e[t]=i[o],e},e(n,r,i))}}return function(e){var t=[],n=[];function r(e){return a[Object.prototype.toString.call(e)].call(r,e,t,n)}return r(e)}})})),cn=o(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`"`;break;case 38:i=`&`;break;case 39:i=`'`;break;case 60:i=`<`;break;case 62:i=`>`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}})),ln=o(((e,t)=>{t.exports=r;var n=Object.prototype.hasOwnProperty;function r(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e}})),un=o(((e,t)=>{t.exports=n;function n(e){if(!(this instanceof n))return new n(e);this.value=e}n.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)}})),dn=o(((e,t)=>{t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e,t);this.namespace=e,this.value=t}n.prototype.hook=function(e,t,n){n&&n.type===`AttributeHook`&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},n.prototype.unhook=function(e,t,n){if(!(n&&n.type===`AttributeHook`&&n.namespace===this.namespace)){var r=t.indexOf(`:`),i=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,i)}},n.prototype.type=`AttributeHook`})),fn=o(((e,t)=>{var n={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{İ:`i`,I:`ı`,İ:`i`}},az:{regexp:/[\u0130]/g,map:{İ:`i`,I:`ı`,İ:`i`}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:`i̇`,J:`j̇`,Į:`į̇`,Ì:`i̇̀`,Í:`i̇́`,Ĩ:`i̇̃`}}};t.exports=function(e,t){var r=n[t];return e=e==null?``:String(e),r&&(e=e.replace(r.regexp,function(e){return r.map[e]})),e.toLowerCase()}})),pn=o(((e,t)=>{t.exports=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g})),mn=o(((e,t)=>{t.exports=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g})),hn=o(((e,t)=>{t.exports=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g})),gn=o(((e,t)=>{var n=fn(),r=pn(),i=mn(),a=hn();t.exports=function(e,t,o){if(e==null)return``;o=o||` `;function s(e,t,n){return t===0||t===n.length-e.length?``:o}return e=String(e).replace(i,`$1 $2`).replace(a,`$1 $2`).replace(r,s),n(e,t)}})),_n=o(((e,t)=>{var n=gn();t.exports=function(e,t){return n(e,t,`-`)}})),vn=o(((e,t)=>{var n={BOOLEAN:1,OVERLOADED_BOOLEAN:2};t.exports={attributeTypes:n,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:n.BOOLEAN,allowTransparency:!0,alt:!0,async:n.BOOLEAN,autocomplete:!0,autofocus:n.BOOLEAN,autoplay:n.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:n.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:n.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:n.BOOLEAN,dir:!0,disabled:n.BOOLEAN,download:n.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:n.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:n.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:n.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:n.BOOLEAN,muted:n.BOOLEAN,name:!0,noValidate:n.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:n.BOOLEAN,rel:!0,required:n.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:n.BOOLEAN,selected:n.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:n.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`}}})),yn=o(((e,t)=>{var n=cn(),r=vn(),i=r.attributeTypes,a=r.properties,o=r.attributeNames,s=u(function(e){return n(e)+`="`});t.exports=c;function c(e,t,r){if(a.hasOwnProperty(e)){if(l(e,t))return``;e=(o[e]||e).toLowerCase();var c=a[e];return c===i.BOOLEAN||c===i.OVERLOADED_BOOLEAN&&t===!0?n(e):s(e)+n(t)+`"`}else if(r)return t==null?``:s(e)+n(t)+`"`;return null}function l(e,t){var n=a[e];return t==null||n===i.BOOLEAN&&!t||n===i.OVERLOADED_BOOLEAN&&t===!1}function u(e){var t={};return function(n){return t.hasOwnProperty(n)?t[n]:t[n]=e.call(this,n)}}})),bn=o(((e,t)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}})),xn=o(((e,t)=>{var n=cn(),r=ln(),i=wt(),a=Pt(),o=Et(),s=Tt(),c=un(),l=dn(),u=_n(),d=yn(),f=bn();t.exports=p;function p(e,t){return e?(o(e)&&(e=e.render()),s(e)&&e.render&&(e=e.render()),i(e)?m(e)+h(e)+g(e):a(e)?t&&(t.tagName.toLowerCase()===`script`||t.tagName.toLowerCase()===`style`)?String(e.text):n(String(e.text)):``):``}function m(e){var t=e.properties,n=`<`+e.tagName.toLowerCase();for(var i in t){var a=t[i];if(a!=null){if(i==`attributes`){for(var o in a=r({},a),a)n+=` `+d(o,a[o],!0);continue}if(i==`dataset`){for(var s in a=r({},a),a)n+=` `+d(`data-`+u(s),a[s],!0);continue}if(i==`style`){var f=``;for(var p in a=r({},a),a)f+=u(p)+`: `+a[p]+`; `;a=f.trim()}if(a instanceof c||a instanceof l){n+=` `+d(i,a.value,!0);continue}var m=d(i,a);m&&(n+=` `+m)}}return n+`>`}function h(e){var t=e.properties.innerHTML;if(t!=null)return t;var n=``;if(e.children&&e.children.length)for(var r=0,i=e.children.length;r<i;r++){var a=e.children[r];n+=p(a,e)}return n}function g(e){var t=e.tagName.toLowerCase();return f[t]?``:`</`+t+`>`}})),Sn=o(((e,t)=>{t.exports={abbr:`abbr`,accept:`accept`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,allowtransparency:`allowTransparency`,alt:`alt`,async:`async`,autocomplete:`autoComplete`,autofocus:`autoFocus`,autoplay:`autoPlay`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charset`,checked:`checked`,cite:`cite`,class:`className`,cols:`cols`,colspan:`colSpan`,command:`command`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,coords:`coords`,crossorigin:`crossOrigin`,data:`data`,datetime:`dateTime`,default:`default`,defer:`defer`,dir:`dir`,disabled:`disabled`,download:`download`,draggable:`draggable`,dropzone:`dropzone`,enctype:`encType`,for:`htmlFor`,form:`form`,formaction:`formAction`,formenctype:`formEncType`,formmethod:`formMethod`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameBorder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,inputmode:`inputMode`,ismap:`isMap`,itemid:`itemId`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,manifest:`manifest`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,ping:`ping`,placeholder:`placeholder`,poster:`poster`,preload:`preload`,radiogroup:`radioGroup`,readonly:`readOnly`,rel:`rel`,required:`required`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,sortable:`sortable`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,tabindex:`tabIndex`,target:`target`,title:`title`,translate:`translate`,type:`type`,typemustmatch:`typeMustMatch`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`}})),Cn=o(((e,t)=>{var n=null,r=`http://www.w3.org/2001/xml-events`,i=`http://www.w3.org/1999/xlink`,a=`http://www.w3.org/XML/1998/namespace`;t.exports={about:n,"accent-height":n,accumulate:n,additive:n,"alignment-baseline":n,alphabetic:n,amplitude:n,"arabic-form":n,ascent:n,attributeName:n,attributeType:n,azimuth:n,bandwidth:n,baseFrequency:n,baseProfile:n,"baseline-shift":n,bbox:n,begin:n,bias:n,by:n,calcMode:n,"cap-height":n,class:n,clip:n,"clip-path":n,"clip-rule":n,clipPathUnits:n,color:n,"color-interpolation":n,"color-interpolation-filters":n,"color-profile":n,"color-rendering":n,content:n,contentScriptType:n,contentStyleType:n,cursor:n,cx:n,cy:n,d:n,datatype:n,defaultAction:n,descent:n,diffuseConstant:n,direction:n,display:n,divisor:n,"dominant-baseline":n,dur:n,dx:n,dy:n,edgeMode:n,editable:n,elevation:n,"enable-background":n,end:n,"ev:event":r,event:n,exponent:n,externalResourcesRequired:n,fill:n,"fill-opacity":n,"fill-rule":n,filter:n,filterRes:n,filterUnits:n,"flood-color":n,"flood-opacity":n,focusHighlight:n,focusable:n,"font-family":n,"font-size":n,"font-size-adjust":n,"font-stretch":n,"font-style":n,"font-variant":n,"font-weight":n,format:n,from:n,fx:n,fy:n,g1:n,g2:n,"glyph-name":n,"glyph-orientation-horizontal":n,"glyph-orientation-vertical":n,glyphRef:n,gradientTransform:n,gradientUnits:n,handler:n,hanging:n,height:n,"horiz-adv-x":n,"horiz-origin-x":n,"horiz-origin-y":n,id:n,ideographic:n,"image-rendering":n,in:n,in2:n,initialVisibility:n,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:n,kernelUnitLength:n,kerning:n,keyPoints:n,keySplines:n,keyTimes:n,lang:n,lengthAdjust:n,"letter-spacing":n,"lighting-color":n,limitingConeAngle:n,local:n,"marker-end":n,"marker-mid":n,"marker-start":n,markerHeight:n,markerUnits:n,markerWidth:n,mask:n,maskContentUnits:n,maskUnits:n,mathematical:n,max:n,media:n,mediaCharacterEncoding:n,mediaContentEncodings:n,mediaSize:n,mediaTime:n,method:n,min:n,mode:n,name:n,"nav-down":n,"nav-down-left":n,"nav-down-right":n,"nav-left":n,"nav-next":n,"nav-prev":n,"nav-right":n,"nav-up":n,"nav-up-left":n,"nav-up-right":n,numOctaves:n,observer:n,offset:n,opacity:n,operator:n,order:n,orient:n,orientation:n,origin:n,overflow:n,overlay:n,"overline-position":n,"overline-thickness":n,"panose-1":n,path:n,pathLength:n,patternContentUnits:n,patternTransform:n,patternUnits:n,phase:n,playbackOrder:n,"pointer-events":n,points:n,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:n,preserveAspectRatio:n,primitiveUnits:n,propagate:n,property:n,r:n,radius:n,refX:n,refY:n,rel:n,"rendering-intent":n,repeatCount:n,repeatDur:n,requiredExtensions:n,requiredFeatures:n,requiredFonts:n,requiredFormats:n,resource:n,restart:n,result:n,rev:n,role:n,rotate:n,rx:n,ry:n,scale:n,seed:n,"shape-rendering":n,slope:n,snapshotTime:n,spacing:n,specularConstant:n,specularExponent:n,spreadMethod:n,startOffset:n,stdDeviation:n,stemh:n,stemv:n,stitchTiles:n,"stop-color":n,"stop-opacity":n,"strikethrough-position":n,"strikethrough-thickness":n,string:n,stroke:n,"stroke-dasharray":n,"stroke-dashoffset":n,"stroke-linecap":n,"stroke-linejoin":n,"stroke-miterlimit":n,"stroke-opacity":n,"stroke-width":n,surfaceScale:n,syncBehavior:n,syncBehaviorDefault:n,syncMaster:n,syncTolerance:n,syncToleranceDefault:n,systemLanguage:n,tableValues:n,target:n,targetX:n,targetY:n,"text-anchor":n,"text-decoration":n,"text-rendering":n,textLength:n,timelineBegin:n,title:n,to:n,transform:n,transformBehavior:n,type:n,typeof:n,u1:n,u2:n,"underline-position":n,"underline-thickness":n,unicode:n,"unicode-bidi":n,"unicode-range":n,"units-per-em":n,"v-alphabetic":n,"v-hanging":n,"v-ideographic":n,"v-mathematical":n,values:n,version:n,"vert-adv-y":n,"vert-origin-x":n,"vert-origin-y":n,viewBox:n,viewTarget:n,visibility:n,width:n,widths:n,"word-spacing":n,"writing-mode":n,x:n,"x-height":n,x1:n,x2:n,xChannelSelector:n,"xlink:actuate":i,"xlink:arcrole":i,"xlink:href":i,"xlink:role":i,"xlink:show":i,"xlink:title":i,"xlink:type":i,"xml:base":a,"xml:id":a,"xml:lang":a,"xml:space":a,y:n,y1:n,y2:n,yChannelSelector:n,z:n,zoomAndPan:n}})),wn=o(((e,t)=>{var n=Ot(),r=kt(),i,a=Sn(),o=Cn(),s=`http://www.w3.org/1999/xhtml`;t.exports=c;function c(e,t){if(!e)return l(document.createTextNode(``));if(typeof e==`string`){if(!(`DOMParser`in window))throw Error(`DOMParser is not available, so parsing string to DOM node is not possible.`);i=i||new DOMParser;var n=i.parseFromString(e,`text/html`);e=n.body.firstChild?n.getElementsByTagName(`body`)[0].firstChild:n.head.firstChild&&(n.head.firstChild.tagName!==`TITLE`||n.title)?n.head.firstChild:n.firstChild&&n.firstChild.tagName!==`HTML`?n.firstChild:document.createTextNode(``)}if(typeof e!=`object`||!e||!e.nodeType)throw Error(`invalid dom node`,e);return l(e,t)}function l(e,t){return e.nodeType===3?u(e):e.nodeType===1||e.nodeType===9?d(e,t):new r(``)}function u(e){return new r(e.nodeValue)}function d(e,t){var r=e.namespaceURI===s?null:e.namespaceURI,i=t&&e.getAttribute(t)?e.getAttribute(t):null;return new n(e.tagName,p(e),f(e,t),i,r)}function f(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(l(e.childNodes[r],t));return n}function p(e){var t={};if(!e.hasAttributes())return t;var n;e.namespaceURI&&e.namespaceURI!==s&&(n=e.namespaceURI);for(var r,i=0;i<e.attributes.length;i++)r=e.attributes[i].name==`style`?g(e):n?h(e.attributes[i]):m(e.attributes[i]),r.ns?t[r.name]={namespace:r.ns,value:r.value}:r.isAttr?(t.attributes||(t.attributes={}),t.attributes[r.name]=r.value):t[r.name]=r.value;return t}function m(e){var t=a[e.name]?a[e.name]:e.name,n,r;return t.indexOf(`data-`)===0||t.indexOf(`aria-`)===0?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function h(e){return{name:e.name,value:e.value,ns:o[e.name]||``}}function g(e){for(var t=e.style,n={},r=0;r<t.length;++r){var i=t.item(r);n[i]=String(t[i]),n[i].indexOf(`url`)>-1&&(n[i]=n[i].replace(/\"/g,``))}return{name:`style`,value:n}}})),Tn=c(jt(),1),En=c(zt(),1),Dn=c(on(),1),On=c(sn(),1),kn=c(xn(),1),An=c(wn(),1),jn=c(Ot(),1),Mn=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e,...t){this.observers[e]&&[].concat(this.observers[e]).forEach(e=>{e(...t)}),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach(n=>{n.apply(n,[e,...t])})}},Nn=class extends Mn{constructor(e,t={}){super(),this.ele=e,this.options=t,this.observer=this.create(),this.internalChange=!0}create(){let e,t=()=>{e&&window.clearTimeout(e),e=setTimeout(()=>{this.internalChange&&(this.internalChange=!1)},200)},n=new MutationObserver(e=>{this.internalChange&&t(),this.internalChange||this.emit(`changed`,e)});return n.observe(this.ele,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n}reset(){this.internalChange=!0}};let Pn=[],Fn=!1,In=!1;function Ln(){if(!Fn){Fn=!0;for(let e=0;e<Pn.length;e++)Pn[e].fn.call(window,Pn[e].ctx);Pn=[]}}function Rn(){document.readyState===`complete`&&Ln()}function zn(e,t){if(Fn){setTimeout(function(){e(t)},1);return}else Pn.push({fn:e,ctx:t});document.readyState===`complete`||!document.attachEvent&&document.readyState===`interactive`?setTimeout(Ln,1):In||(document.addEventListener?(document.addEventListener(`DOMContentLoaded`,Ln,!1),window.addEventListener(`load`,Ln,!1)):(document.attachEvent(`onreadystatechange`,Rn),window.attachEvent(`onload`,Ln)),In=!0)}var Bn=class{start(){this.started=new Date().getTime()}end(){return this.ended=new Date().getTime(),this.ended-this.started}};function Vn(e,t,n){let r;return function(){let i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}function Hn(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function Un(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}let a=typeof t==`string`?t.split(`.`):[].concat(t);for(;a.length>1;){if(i())return{};let t=r(a.shift());!e[t]&&n&&(e[t]=new n),e=e[t]}return i()?{}:{obj:e,k:r(a.shift())}}function Wn(e,t,n){let{obj:r,k:i}=Un(e,t,Object);r[i]=n}function Gn(e,t){let{obj:n,k:r}=Un(e,t);if(n)return n[r]}function Kn(){let e=location.pathname;if(e===`/`)return`root`;let t=e.split(`/`),n=`root`;return t.forEach(e=>{e&&(n+=`_${e}`)}),n}let qn=[`SVG`,`RECT`,`PATH`],Jn=e=>{if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){let t=Kn();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=[`translation`]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map(e=>qn.indexOf(e)>-1?e.toLowerCase():e.toUpperCase())),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map(e=>e.toUpperCase())),e.inlineTags&&(e.inlineTags=e.inlineTags.map(e=>e.toUpperCase())),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map(e=>e.toUpperCase())),e.mergeTags&&(e.mergeTags=e.mergeTags.map(e=>e.toUpperCase())),e.translateAttributes=e.translateAttributes.reduce((e,t)=>{let n={attr:t};if(t.indexOf(`#`)>-1){let[e,r]=t.split(`#`);if(n.attr=e,r.indexOf(`.`)>-1){let[e,t]=r.split(`.`);n.ele=e.toUpperCase(),n.cond=t.toLowerCase().split(`=`)}else r.indexOf(`=`)>-1?n.cond=r.toLowerCase().split(`=`):n.ele=r.toUpperCase()}return e.push(n),e},[]),e};function Yn(e,t={retranslate:!1}){return t&&t.retranslate?!0:!e.properties||!e.properties.attributes||e.properties.attributes.localized!==``}function Xn(e){let t=!e.properties||!e.properties.attributes||e.properties.attributes.translated!==``;return t&&e.tagName&&A.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&A.options.ignoreClasses&&e.properties&&e.properties.className&&e.properties.className.split(` `).forEach(e=>{t&&A.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}),t&&A.options.ignoreIds&&A.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function Zn(e,t={},n){let r=e.trim(),i=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!A.options.ignoreWithoutKey||r&&A.options.ignoreWithoutKey&&n?A.t(i,t):e}let Qn=[`src`,`href`],$n=/%7B%7B(.+?)%7D%7D/g,er=/^\s*(javascript|data|vbscript|file)\s*:/i;function tr(e){return typeof e==`string`&&er.test(e)}function nr(e,t,n={},r,i,a){return t&&(A.options.translateAttributes.forEach(o=>{if(o.ele&&e.tagName!==o.ele)return;if(o.cond&&o.cond.length===2){let e=Gn(t,o.cond[0])||Gn(t.attributes,o.cond[0]);if(!e||e!==o.cond[1])return}let s=!1,c=Gn(t,o.attr);if(c||(c=Gn(t.attributes,o.attr),c&&(s=!0)),a.retranslate){let t=e.properties&&e.properties&&e.properties.attributes[`${o.attr}-i18next-orgval`];t||(t=c),c=t}c&&(i&&(e.properties.attributes[`${o.attr}-i18next-orgval`]=c),Wn(s?t.attributes:t,o.attr,Zn(c,{...n},r?`${r}.${o.attr}`:``)))}),Qn.forEach(e=>{let i=Gn(t,e);if(i&&(i=i.replace(/\{\{/g,`%7B%7B`).replace(/\}\}/g,`%7D%7D`)),i&&i.indexOf(`%7B`)>-1){let a=[];i.split($n).reduce((t,i,a)=>{if(i.length===0)return t;if(!a||a%2==0)t.push(i);else{let o=Zn(i,{...n},r?`${r}.${e}`:``);o&&o.indexOf(`http`)===0&&t[a-1]&&t[a-1].indexOf(`http`)===0&&t.splice(a-1,1),tr(o)?t.push(``):t.push(o)}return t},a),a.length&&Wn(t,e,a.join(``))}}),t)}function rr(e,t){let n=Hn(t,`i18next-options`);if(n)try{n=JSON.parse(n)}catch{console.warn(`failed parsing options on node`,t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map(e=>e.toUpperCase())),{...e||{},...n||{}}}function ir(e,t){return A.options.cleanIndent?e.replace(/\n +/g,t):e}function ar(e,t){if(!e.children||!e.children.length||A.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(A.options.mergeTags.indexOf(e.tagName)>-1)return!0;let n=t.inlineTags||A.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,i=!0,a=!1;return e.children.forEach(e=>{!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(i=!1),e.tagName&&(a=!0)}),i&&a}function or(e,t,n,r,i=0,a){let o=Xn(e),s=Yn(e,a),c=Yn(e);t=rr(t,e);let l=i===0?r:``;i>0&&r&&!A.options.ignoreWithoutKey&&(l=`${r}.${i}`);let u=Hn(e,A.options.keyAttr)||l,d=Hn(e,`merge`);if(d!==`false`&&(d===``||ar(e,t))){if(o&&s){let r=ir((0,kn.default)(new jn.default(`I18NEXTIFYDUMMY`,null,e.children)),``).replace(`<i18nextifydummy>`,``).replace(`</i18nextifydummy>`,``);if(a.retranslate){let t=e.properties&&e.properties.attributes&&e.properties.attributes[`i18next-orgval`];t||(t=n&&n.properties&&n.properties.attributes&&n.properties.attributes[`i18next-orgval-${i}`]),t||(t=r),r=t}let o=Zn(r,t,u);typeof A.options.sanitize==`function`&&(o=A.options.sanitize(o,{key:r,attribute:null})),e.children=(0,An.default)((`<i18nextifydummy>${o}</i18nextifydummy>`||``).trim()).children,c&&e.properties&&e.properties.attributes?e.properties.attributes[`i18next-orgval`]=r:c&&n&&n.properties&&n.properties.attributes&&(n.properties.attributes[`i18next-orgval-${i}`]=r),e.properties&&e.properties.attributes&&(e.properties.attributes.localized=``)}return e}if(e.children&&e.children.forEach((n,r)=>{(o&&s&&n.text||!n.text&&Xn(n))&&or(n,t,e,u,e.children.length>1?r+1:r,a)}),e.text&&!e.properties&&e.type===`Widget`)return e;if(o&&s){if(e.text){let r,o=e.text,s=e.text;if(a.retranslate){let t=e.properties&&e.properties.attributes&&e.properties.attributes[`i18next-orgval`];t||(t=n&&n.properties&&n.properties.attributes&&n.properties.attributes[`i18next-orgval-${i}`]),t||(t=e.text),o=t,s=t}let l=A.options.ignoreCleanIndentFor.indexOf(n.tagName)>-1;if(l||(o=ir(o,`
|
|
28
|
+
`),A.options.cleanWhitespace&&(r=/^\s*(.*[^\s])\s*$/g.exec(o))),!l&&r&&r.length>1&&A.options.cleanWhitespace){let n=Zn(r[1],t,u||``);e.text=o.replace(r[1],n)}else e.text=Zn(o,t,u||``);c&&e.properties&&e.properties.attributes?s&&(e.properties.attributes[`i18next-orgval`]=s):c&&n&&n.properties&&n.properties.attributes&&s&&(n.properties.attributes[`i18next-orgval-${i}`]=s)}e.properties&&(e.properties=nr(e,e.properties,t,u,c,a)),e.properties&&e.properties.attributes&&(e.properties.attributes.localized=``)}return e}function sr(e,t){let n=new Bn;n.start();let r=or(e,null,null,null,null,{retranslate:t});return A.services.logger.log(`localization took: ${n.end()}ms`),r}function cr(e){let t=new Bn;t.start();let n=(0,Tn.default)(e);return A.services.logger.log(`virtualization took: ${t.end()}ms`),n}function lr(e,t){let n={};return n.render=function(n){let r=cr(e),i=(0,En.default)(r,sr((0,On.default)(r),n));i[0]&&t.reset(),e=(0,Dn.default)(e,i)},n.debouncedRender=Vn(n.render,200),n}let ur={};function dr(){A.services.logger.log(`missing resources:
|
|
29
|
+
`+JSON.stringify(ur,null,2))}let fr=Vn(dr,2e3);function pr(e,t,n,r){typeof e==`string`&&(e=[e]),e||(e=[]),e.forEach(e=>{Wn(ur,[e,t,n],r),fr()}),A.services.backendConnector&&A.services.backendConnector.saveMissing&&A.services.backendConnector.saveMissing(e,t,n,r)}function mr(){let e=document.getElementById(`i18nextify`),t=e&&(e.getAttribute(`supportedlngs`)||e.getAttribute(`supportedLngs`))||void 0;typeof t==`string`&&(t=t.split(`,`).map(e=>e.trim()));let n={autorun:!0,ele:document.body,keyAttr:`i18next-key`,ignoreWithoutKey:!1,ignoreTags:[`SCRIPT`],ignoreIds:[],ignoreClasses:[],translateAttributes:[`placeholder`,`title`,`alt`,`value#input.type=button`,`value#input.type=submit`],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:[`PRE`,`CODE`],cleanWhitespace:!0,nsSeparator:`#||#`,keySeparator:`#|#`,debug:(()=>{try{return new URLSearchParams(window.location.search).get(`debug`)===`true`}catch{return!1}})(),saveMissing:(()=>{try{return new URLSearchParams(window.location.search).get(`saveMissing`)===`true`}catch{return!1}})(),namespace:e&&e.getAttribute(`namespace`)||!1,namespaceFromPath:e&&(e.getAttribute(`namespacefrompath`)||e.getAttribute(`namespaceFromPath`))||!1,missingKeyHandler:pr,ns:[],supportedLngs:t,load:e&&e.getAttribute(`load`)||void 0,fallbackLng:e&&(e.getAttribute(`fallbacklng`)||e.getAttribute(`fallbackLng`))||void 0,onInitialTranslate:()=>{}},r=e&&(e.getAttribute(`loadpath`)||e.getAttribute(`loadPath`))||void 0,i=e&&(e.getAttribute(`addpath`)||e.getAttribute(`addPath`))||void 0;return(r||i)&&(n.backend={},r&&(n.backend.loadPath=r),i&&(n.backend.addPath=i)),n}let hr=!1,gr=!1;zn(()=>{hr=!0,gr||br()}),A.use(Qe),A.use(St);let _r={};function vr(e){!e&&_r.namespaceFromPath&&(e=Kn()),_r.ns.push(e),_r.defaultNS=e,A.loadNamespaces(_r.ns,()=>{A.setDefaultNamespace(e)})}let yr=[];function br(e={}){e={...mr(),..._r,...e},e=Jn(e),e.ele||(delete e.ele,_r=e),gr=!0;let t;function n(n){for(let r=0;r<n.length;r++){let i=n[r];if(e.ignoreTags.indexOf(i.tagName)<0&&e.ignoreIds.indexOf(i.id)<0&&e.ignoreClasses.indexOf(i.className)<0&&!i.attributes.localized&&!i.attributes.translated){let e=lr(i,t);yr.push(e),e.render()}}}function r(t,n,i){let a=!0;setTimeout(()=>{for(let n=0;n<t.length;n++){let o=t[n];if(e.ignoreTags.indexOf(o.tagName)<0&&e.ignoreIds.indexOf(o.id)<0&&e.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){a&&r(t,100,i),a=!1;break}}a&&i()},n)}let i=1;hr||i++,e.autorun===!1&&i++;function a(){if(--i,!i){e.ele||(e.ele=document.body);let i=e.ele.children;t=new Nn(e.ele),n(i),t.on(`changed`,e=>{yr.forEach(e=>e.debouncedRender()),n(i)}),r(i,0,()=>{if(e.ele.style&&e.ele.style.display===`none`&&(e.ele.style.display=`block`),window.document.title){let e=window.document.getElementsByTagName(`title`).length>0&&window.document.getElementsByTagName(`title`)[0].getAttribute(A.options.keyAttr);window.document.title=A.t(e||window.document.title)}if(window.document.querySelector(`meta[name="description"]`)&&window.document.querySelector(`meta[name="description"]`).content){let e=window.document.querySelector(`meta[name="description"]`).getAttribute(A.options.keyAttr)||window.document.querySelector(`meta[name="description"]`).content;window.document.querySelector(`meta[name="description"]`).setAttribute(`content`,A.t(e))}e.onInitialTranslate()})}}if(A.on(`languageChanged`,e=>{window.document.documentElement.lang=e}),A.init(e,a),hr||zn(a),e.autorun===!1)return{start:a}}function xr(){yr.forEach(e=>{e.render(!0)})}var Sr={init:br,i18next:A,changeNamespace:vr,forceRerender:xr};let Cr=[],wr=Cr.forEach,Tr=Cr.slice,Er=[`__proto__`,`constructor`,`prototype`];function j(e){return wr.call(Tr.call(arguments,1),t=>{if(t)for(let n of Object.keys(t))Er.indexOf(n)>-1||e[n]===void 0&&(e[n]=t[n])}),e}function Dr(e){return!(typeof e!=`string`||e.length===0||e.length>128||Er.indexOf(e)>-1||e.indexOf(`..`)>-1||e.indexOf(`/`)>-1||e.indexOf(`\\`)>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function Or(e){return typeof e==`string`?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e}function kr(e,t,n){let r;return function(){let i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}function Ar(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}let i=typeof t==`string`?t.split(`.`):[].concat(t);for(;i.length>1;){if(!e)return{};let t=r(i.shift());if(Er.indexOf(t)>-1)return{};!e[t]&&n&&(e[t]=new n),e=e[t]}if(!e)return{};let a=r(i.shift());return Er.indexOf(a)>-1?{}:{obj:e,k:a}}function jr(e,t,n){let{obj:r,k:i}=Ar(e,t,Object);r!==void 0&&(r[i]=n)}function Mr(e,t,n,r){let{obj:i,k:a}=Ar(e,t,Object);i!==void 0&&(i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n))}function Nr(e,t){let{obj:n,k:r}=Ar(e,t);if(n)return n[r]}let Pr=RegExp(`{{(.+?)}}`,`g`);function Fr(e){return e==null?``:``+e}function Ir(e,t){let n,r=!1;for(;n=Pr.exec(e);){let i=n[1].trim();if(Er.indexOf(i)>-1){Pr.lastIndex=0;continue}let a=t[i];if(a==null){Pr.lastIndex=0;continue}let o=Fr(a).split(`+`),s=!0;for(let e of o)if(!Dr(e)){s=!1;break}if(!s){r=!0;break}e=e.replace(n[0],o.join(`+`)),Pr.lastIndex=0}return Pr.lastIndex=0,r?null:e}function Lr(e,t){return t.reduce((t,n)=>{if(t)return t;if(!e||!e[n]||typeof e[n]!=`string`||!e[n].toLowerCase()===n.toLowerCase()){let t=`i18next-locize-backend :: got "${e[n]}" in options for ${n} which is invalid.`;return console.warn(t),t}return!1},!1)}function Rr(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}let zr=typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof window<`u`?window:void 0,Br;typeof fetch==`function`?Br=fetch:zr&&typeof zr.fetch==`function`&&(Br=zr.fetch);let Vr=(typeof XMLHttpRequest==`function`||typeof XMLHttpRequest==`object`)&&zr?zr.XMLHttpRequest:void 0,Hr=typeof ActiveXObject==`function`&&zr?zr.ActiveXObject:void 0,Ur={},Wr=e=>{if(!e)return 0;let t=e.match(/max-age=([0-9]+)/);return t?parseInt(t[1],10):0},Gr=(e,t,n,r)=>{let i={};typeof window>`u`&&typeof global<`u`&&global.process!==void 0&&global.process.versions&&global.process.versions.node&&(i[`User-Agent`]=`i18next-locize-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),e.authorize&&e.apiKey&&(i.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(i[`Content-Type`]=`application/json`);let a=t=>{let n=t.headers&&t.headers.get(`x-cache`)===`Error from cloudfront`;if(e.cdnType===`standard`&&t.status===404&&(!t.headers||!t.headers.get(`x-cache`)))return n=!0,r(null,{status:200,data:`{}`,resourceNotExisting:n});if(!t.ok)return r(t.statusText||`Error`,{status:t.status,resourceNotExisting:n});let i=t.headers&&t.headers.get(`cache-control`);t.text().then(e=>{r(null,{status:t.status,data:e,resourceNotExisting:n,cacheControl:i})}).catch(r)};typeof fetch==`function`?fetch(t,{method:n?`POST`:`GET`,body:n?JSON.stringify(n):void 0,headers:i}).then(a).catch(r):Br(t,{method:n?`POST`:`GET`,body:n?JSON.stringify(n):void 0,headers:i}).then(a).catch(r)},Kr=(e,t,n,r)=>{try{let i=Vr?new Vr:new Hr(`MSXML2.XMLHTTP.3.0`);i.open(n?`POST`:`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),e.authorize&&e.apiKey&&i.setRequestHeader(`Authorization`,e.apiKey),(n||e.setContentTypeJSON)&&i.setRequestHeader(`Content-Type`,`application/json`),i.onreadystatechange=()=>{let t=i.getResponseHeader(`x-cache`)===`Error from cloudfront`;if(e.cdnType===`standard`&&i.status===404&&!i.getResponseHeader(`x-cache`))return t=!0,i.readyState>3&&r(null,{status:200,data:`{}`,resourceNotExisting:t});let n=i.getResponseHeader(`Cache-Control`);i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText,resourceNotExisting:t,cacheControl:n})},i.send(JSON.stringify(n))}catch(e){console&&console.log(e)}},qr=(e,t,n,r)=>{typeof n==`function`&&(r=n,n=void 0),r=r||(()=>{});let i=typeof window>`u`&&e.useCacheLayer;if(i&&!n&&!e.noCache&&Ur[t]&&Ur[t].expires>Date.now())return r(null,Ur[t].data);let a=r;if(r=(e,r)=>{if(i&&!e&&r&&!n&&r.cacheControl){let e=Wr(r.cacheControl);e>0&&(Ur[t]={data:r,expires:Date.now()+e*1e3})}a(e,r)},!n&&e.noCache&&e.cdnType===`standard`&&(t+=(t.indexOf(`?`)>=0?`&`:`?`)+`cache=no`),Br)return Gr(e,t,n,r);if(Vr||Hr)return Kr(e,t,n,r);r(Error(`No fetch and no xhr implementation found!`))},Jr=e=>(e||(e=`standard`),{loadPath:`https://api${e===`standard`?`.lite`:``}.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}`,privatePath:`https://api${e===`standard`?`.lite`:``}.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}`,getLanguagesPath:`https://api${e===`standard`?`.lite`:``}.locize.app/languages/{{projectId}}`,addPath:`https://api${e===`standard`?`.lite`:``}.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}`,updatePath:`https://api${e===`standard`?`.lite`:``}.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}`}),Yr=e=>(e||(e=`standard`),j({cdnType:e,noCache:!1,referenceLng:`en`,crossDomain:!0,setContentTypeJSON:!1,version:`latest`,private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:[`localhost`],onSaved:!1,reloadInterval:typeof window<`u`?!1:3600*1e3,checkForProjectTimeout:3*1e3,storageExpiration:3600*1e3,writeDebounce:5*1e3,useCacheLayer:typeof window>`u`},Jr(e))),Xr;try{Xr=typeof window<`u`&&window.localStorage!==null;let e=`notExistingLocizeProject`;window.localStorage.setItem(e,`foo`),window.localStorage.removeItem(e)}catch{Xr=!1}function Zr(e){let t=()=>{},n=()=>{};return Xr?(t=e=>{window.localStorage.setItem(`notExistingLocizeProject_${e}`,Date.now())},n=t=>{let n=window.localStorage.getItem(`notExistingLocizeProject_${t}`);return n?Date.now()-n>e?(window.localStorage.removeItem(`notExistingLocizeProject_${t}`),!1):!0:!1}):typeof document<`u`&&(t=t=>{let n=new Date;n.setTime(n.getTime()+e);let r=`; expires=${n.toGMTString()}`,i=`notExistingLocizeProject_${t}`;try{document.cookie=`${i}=${Date.now()}${r};path=/`}catch{}},n=e=>{let t=`${`notExistingLocizeProject_${e}`}=`;try{let e=document.cookie.split(`;`);for(let n=0;n<e.length;n++){let r=e[n];for(;r.charAt(0)===` `;)r=r.substring(1,r.length);if(r.indexOf(t)===0)return!0}}catch{}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}let Qr=(e,t,n)=>{let r={};return t.authorize&&t.apiKey&&(r.Authorization=t.apiKey),(n||t.setContentTypeJSON)&&(r[`Content-Type`]=`application/json`),{method:n?`POST`:`GET`,url:e,headers:r,body:n}},$r=(e,t,n)=>{if(e.request.length===1){try{let r=e.request(t);r&&typeof r.then==`function`?r.then(e=>n(null,e)).catch(n):n(null,r)}catch(e){n(e)}return}e.request(t,n)};function ei(e){let t=e*.25,n=Math.max(0,e-t),r=e+t;return Math.floor(n+Math.random()*(r-n))}var ti=class{constructor(e,t={},n={},r){this.services=e,this.options=t,this.allOptions=n,this.type=`backend`,e&&e.projectId?this.init(null,e,n,t):this.init(e,t,n,r)}init(e,t={},n={},r){!t.referenceLng&&n.fallbackLng&&Array.isArray(n.fallbackLng)&&n.fallbackLng[0]!==`dev`&&(t.referenceLng=n.fallbackLng[0]),this.services=e;let i=j({},t),a=j(t,this.options||{}),o=Yr(a.cdnType);a.reloadInterval&&a.reloadInterval<300*1e3&&(console.warn(`Your configured reloadInterval option is to low.`),a.reloadInterval=o.reloadInterval),this.options=j(t,this.options||{},o),this.allOptions=n,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=Zr(this.options.storageExpiration);let s=Jr(this.options.cdnType);Object.keys(s).forEach(e=>{i[e]||(this.options[e]=s[e])}),n.debug&&i.noCache===void 0&&this.options.cdnType===`standard`&&(this.options.noCache=!0),this.options.noCache&&this.options.cdnType!==`standard`&&console.warn(`The 'noCache' option is not available for 'cdnType' '${this.options.cdnType}'!`);let c=typeof window<`u`&&window.location&&window.location.hostname;c?(this.isAddOrUpdateAllowed=typeof this.options.allowedAddOrUpdateHosts==`function`?this.options.allowedAddOrUpdateHosts(c):this.options.allowedAddOrUpdateHosts.indexOf(c)>-1,e&&e.logger&&(n.saveMissing||n.updateMissing)&&(this.isAddOrUpdateAllowed?c!==`localhost`&&e.logger.warn(`locize-backend: you are using the save or update missings feature from this host "${c}".\nMake sure you will not use it in production!\nhttps://www.locize.com/docs/going-to-production`):e.logger.warn(typeof this.options.allowedAddOrUpdateHosts==`function`?`locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "${c}".`:`locize-backend: will not save or update missings because the host "${c}" was not in the list of allowedAddOrUpdateHosts: ${this.options.allowedAddOrUpdateHosts.join(`, `)} (matches need to be exact).`))):this.isAddOrUpdateAllowed=!0,typeof r==`function`&&this.getOptions((e,n,i)=>{if(e)return r(e);this.options.referenceLng=t.referenceLng||n.referenceLng||this.options.referenceLng,r(null,n,i)}),this.queuedWrites={pending:{}},this.debouncedProcess=kr(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval(()=>this.reload(),this.options.reloadInterval),typeof this.interval==`object`&&typeof this.interval.unref==`function`&&this.interval.unref())}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services||{logger:console};if(!e)return;let r=e.language;if(r&&r.toLowerCase()===`cimode`)return;let i=[],a=e=>{t.toResolveHierarchy(e).forEach(e=>{i.indexOf(e)<0&&i.push(e)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(e=>a(e)),i.forEach(t=>{this.allOptions.ns.forEach(r=>{e.read(t,r,`read`,null,null,(i,a)=>{i&&n.warn(`loading namespace ${r} for language ${t} failed`,i),!i&&a&&n.log(`loaded namespace ${r} for language ${t}`,a),e.loaded(`${t}|${r}`,i,a)})})})}getLanguages(e){let t;e||(t=Rr(),e=(e,n)=>{if(e)return t.reject(e);t.resolve(n)});let n=Lr(this.options,[`projectId`]);if(n)return e(Error(n)),t;let r=Ir(this.options.getLanguagesPath,{projectId:this.options.projectId});return r==null?(e(Error(`i18next-locize-backend: unsafe projectId — refusing to build request URL for projectId=`+Or(String(this.options.projectId)))),t):(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?(e(Error(this.isProjectNotExistingErrorMessage||`Locize project ${this.options.projectId} does not exist!`)),t):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1||this.loadUrl({},r,(e,t,n)=>{if(!this.somethingLoaded&&n&&n.resourceNotExisting){this.isProjectNotExisting=!0;let e=`Locize project ${this.options.projectId} does not exist!`;this.isProjectNotExistingErrorMessage=e;let t=this.options.cdnType===`standard`?`pro`:`standard`,n=Ir(Jr(t).getLanguagesPath,{projectId:this.options.projectId});if(n==null)return;this.loadUrl({},n,(n,r,i)=>{!n&&r&&(!i||!i.resourceNotExisting)?(e+=` It seems you're using the wrong cdnType. Your Locize project is configured to use "${t}" but here you've configured "${this.options.cdnType}".`,this.isProjectNotExistingErrorMessage=e):!this.somethingLoaded&&i&&i.resourceNotExisting&&(this.isProjectNotExisting=!0,this.storage.setProjectNotExisting(this.options.projectId));let a=Error(e),o=this.getLanguagesCalls;this.getLanguagesCalls=[],o.forEach(e=>e(a))});return}if(t){this.loadedLanguages=Object.keys(t);let e=this.loadedLanguages.reduce((e,n)=>(t[n].isReferenceLanguage&&(e=n),e),``);e&&this.options.referenceLng!==e&&(this.options.referenceLng=e)}this.somethingLoaded=!0;let r=this.getLanguagesCalls;this.getLanguagesCalls=[],r.forEach(n=>n(e,t))}),t))}getOptions(e){let t;return e||(t=Rr(),e=(e,n)=>{if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((t,n)=>{if(t)return e(t);let r=Object.keys(n);if(!r.length)return e(Error(`was unable to load languages via API`));let i=r.reduce((e,t)=>{let r=n[t];return r.translated[this.options.version]&&r.translated[this.options.version]>=this.options.translatedPercentageThreshold&&e.push(t),e},[]),a=r.reduce((e,t)=>t.indexOf(`-`)>-1?!0:e,!1);e(null,{fallbackLng:this.options.referenceLng,referenceLng:this.options.referenceLng,supportedLngs:i.length===0&&this.options.referenceLng?[this.options.referenceLng]:i,load:a?`all`:`languageOnly`},n)}),t}checkIfProjectExists(e){let{logger:t}=this.services||{logger:console};if(this.somethingLoaded){e&&e(null);return}if(this.alreadyRequestedCheckIfProjectExists){setTimeout(()=>this.checkIfProjectExists(e),ei(this.options.checkForProjectTimeout));return}this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages(n=>{n&&n.message&&n.message.indexOf(`does not exist`)>0&&t&&t.error(n.message),e&&e(n)})}checkIfLanguagesLoaded(e){let{logger:t}=this.services||{logger:console};if(this.loadedLanguages){e&&e(null);return}this.getLanguages(n=>{n&&n.message&&n.message.indexOf(`does not exist`)>0&&t&&t.error(n.message),e&&e(n)})}read(e,t,n){let{logger:r}=this.services||{logger:console},i,a={};if(this.options.private){let r=Lr(this.options,[`projectId`,`version`,`apiKey`]);if(r)return n(Error(r),!1);i=Ir(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),a={authorize:!0}}else{let r=Lr(this.options,[`projectId`,`version`]);if(r)return n(Error(r),!1);i=Ir(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(i==null)return n(Error(`i18next-locize-backend: unsafe lng/ns/projectId/version — refusing to build request URL for lng=`+Or(String(e))+` ns=`+Or(String(t))),!1);if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){let e=Error(this.isProjectNotExistingErrorMessage||`Locize project ${this.options.projectId} does not exist!`);r&&r.error(e.message),n&&n(e);return}if(this.warnedLanguages&&this.warnedLanguages.indexOf(e)>-1){let t=Error(`Will not continue to load language "${e}" since it is not available in Locize project ${this.options.projectId}!`);r&&r.error(t.message),n&&n(t);return}this.loadUrl(a,i,(t,i,a)=>{let o=a&&a.resourceNotExisting;o||(this.hasResourcesForLng||(this.hasResourcesForLng={}),this.hasResourcesForLng[e]=!0),o&&(!this.hasResourcesForLng||!this.hasResourcesForLng[e])&&setTimeout(()=>{this.checkIfLanguagesLoaded(()=>{this.loadedLanguages&&(this.loadedLanguages.indexOf(e)>-1||this.warnedLanguages&&this.warnedLanguages.indexOf(e)>-1||(this.warnedLanguages||(this.warnedLanguages=[]),this.warnedLanguages.push(e),r&&r.error(`Language "${e}" is not available in Locize project ${this.options.projectId}!`)))})},ei(this.options.checkForProjectTimeout)),this.somethingLoaded||(o?setTimeout(()=>this.checkIfProjectExists(),ei(this.options.checkForProjectTimeout)):this.somethingLoaded=!0),n(t,i)})}loadUrl(e,t,n,r){e=j(e,this.options),typeof n==`function`&&(r=n,n=void 0),r=r||(()=>{});let i=(e,n)=>{let i=n&&n.resourceNotExisting;if(n&&(n.status===408||n.status===400)||n&&(n.status>=500&&n.status<600||!n.status))return r(`failed loading `+t,!0,{resourceNotExisting:i});if(n&&n.status>=400&&n.status<500)return r(`failed loading `+t,!1,{resourceNotExisting:i});if(!n&&e&&e.message){let n=e.message.toLowerCase();if([`failed`,`fetch`,`network`,`load`].find(e=>n.indexOf(e)>-1))return r(`failed loading `+t+`: `+e.message,!0,{resourceNotExisting:i})}if(e)return r(e,!1);let a,o;try{a=typeof n.data==`string`?JSON.parse(n.data):n.data}catch{o=`failed parsing `+t+` to json`}if(o)return r(o,!1);if(this.options.failLoadingOnEmptyJSON&&!Object.keys(a).length)return r(`loaded result empty for `+t,!1,{resourceNotExisting:i});r(null,a,{resourceNotExisting:i})};if(!this.options.request||t.indexOf(`/languages/${e.projectId}`)>0)return qr(e,t,n,i);let a=Qr(t,e,n);$r(this.options,a,i)}create(e,t,n,r,i,a){typeof i!=`function`&&(i=()=>{}),this.checkIfProjectExists(o=>{if(o)return i(o);let s=Lr(this.options,[`projectId`,`version`,`apiKey`,`referenceLng`]);if(s)return i(Error(s));if(!this.isAddOrUpdateAllowed)return i(`host is not allowed to create key.`);typeof e==`string`&&(e=[e]),e.filter(e=>e===this.options.referenceLng).length<1&&this.services&&this.services.logger&&this.services.logger.warn(`locize-backend: will not save missings because the reference language "${this.options.referenceLng}" was not in the list of to save languages: ${e.join(`, `)} (open your site in the reference language to save missings).`),e.forEach(e=>{e===this.options.referenceLng&&this.queue.call(this,this.options.referenceLng,t,n,r,i,a)})})}update(e,t,n,r,i,a){typeof i!=`function`&&(i=()=>{}),this.checkIfProjectExists(o=>{if(o)return i(o);let s=Lr(this.options,[`projectId`,`version`,`apiKey`,`referenceLng`]);if(s)return i(Error(s));if(!this.isAddOrUpdateAllowed)return i(`host is not allowed to update key.`);a||(a={}),typeof e==`string`&&(e=[e]),a.isUpdate=!0,e.forEach(e=>{e===this.options.referenceLng&&this.queue.call(this,this.options.referenceLng,t,n,r,i,a)})})}writePage(e,t,n,r){let i=Ir(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),a=Ir(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version});if(i==null||a==null){typeof r==`function`&&r(Error(`i18next-locize-backend: unsafe lng/ns/projectId/version — refusing to persist missing keys for lng=`+Or(String(e))+` ns=`+Or(String(t))));return}let o=!1,s=!1,c={},l={};n.forEach(e=>{let t=e.options&&e.options.tDescription?{value:e.fallbackValue||``,context:{text:e.options.tDescription}}:e.fallbackValue||``;e.options&&e.options.isUpdate?(s||(s=!0),l[e.key]=t):(o||(o=!0),c[e.key]=t)});let u=0;o&&u++,s&&u++;let d=e=>{u--,u||r(e)};if(u||d(),o)if(!this.options.request)qr(j({authorize:!0},this.options),i,c,d);else{let e=Qr(i,j({authorize:!0},this.options),c);$r(this.options,e,d)}if(s)if(!this.options.request)qr(j({authorize:!0},this.options),a,l,d);else{let e=Qr(a,j({authorize:!0},this.options),l);$r(this.options,e,d)}}write(e,t){if(Nr(this.queuedWrites,[`locks`,e,t]))return;let n=Nr(this.queuedWrites,[e,t]);jr(this.queuedWrites,[e,t],[]);let r=1e3,i=n.filter(e=>e.callback).map(e=>e.callback);if(n.length){jr(this.queuedWrites,[`locks`,e,t],!0);let a=()=>{jr(this.queuedWrites,[`locks`,e,t],!1),i.forEach(e=>e()),this.options.onSaved&&this.options.onSaved(e,t),this.debouncedProcess(e,t)},o=n.length/r,s=0,c=n.splice(0,r);for(this.writePage(e,t,c,()=>{s++,s>=o&&a()});c.length===r;)c=n.splice(0,r),c.length&&this.writePage(e,t,c,()=>{s++,s>=o&&a()})}}process(){Object.keys(this.queuedWrites).forEach(e=>{e!==`locks`&&Object.keys(this.queuedWrites[e]).forEach(t=>{this.queuedWrites[e][t].length&&this.write(e,t)})})}queue(e,t,n,r,i,a){Mr(this.queuedWrites,[e,t],{key:n,fallbackValue:r||``,callback:i,options:a}),this.debouncedProcess()}};ti.type=`backend`;function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ni(e)}function ri(e,t){if(ni(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ni(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ii(e){var t=ri(e,`string`);return ni(t)==`symbol`?t:t+``}function M(e,t,n){return(t=ii(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ai=typeof window<`u`?[``,``]:[``,``],oi=RegExp(`([${ai.join(``)}]{9})+`,`gu`),si=9,ci=`subliminal:start`,li=function(e){return Array.from(new TextEncoder().encode(e))},ui=function(e){return new TextDecoder().decode(new Uint8Array(e))},di=function(e){var t=8-e.length;return`0`.repeat(t)+e},fi=function(e){var t=li(e).map(Number).map(function(e){return di(e.toString(2))+`0`}).join(``);return Array.from(t).map(function(e){return ai[Number(e)]}).join(``)},pi=fi(ci),mi=function(e){var t=Array.from(e).map(function(e){return ai.indexOf(e)}).map(String).join(``).match(/(.{9})/g);return ui(Uint8Array.from(t?.map(function(e){return parseInt(e.slice(0,8),2)})||[]))},hi=function(e){var t=e.match(oi)?.filter(function(e){return e.length>si-1});if(!(!t||t.length===0))return mi(t[t.length-1])},gi=function(e){return e.replace(oi,``)},_i=function(e){if(Object.keys(e).length===0)return e;var t={k:e.key,n:e.ns,l:e.lng,s:e.source};return JSON.stringify(t)},vi=function(e){if(!(!e||typeof e!=`string`||e.indexOf(`{`)!==0))try{var t=JSON.parse(e||`{}`);return{key:t.k,ns:t.n,lng:t.l,source:t.s}}catch{return}};function yi(e){var t=fi(_i(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}));return typeof e==`string`&&e?pi+e+t:e}function bi(e){var t=vi(hi(e));return{text:gi(e),invisibleMeta:t}}function xi(e){return!e||e.length<27||!oi.test(e)?!1:mi(e.substring(e.length-9))===`}`}function Si(e){return e.startsWith(pi)}function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ci(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ti=`subliminal`,Ei={name:Ti,type:`postProcessor`,options:{},setOptions:function(e){this.options=wi(wi({},e),this.options)},process:function(e,t,n,r){var i=this.options=wi(wi({},n),this.options),a,o,s,c;if(n.i18nResolved)a=n.i18nResolved.exactUsedKey,o=n.i18nResolved.usedNS,s=n.i18nResolved.usedLng,c=n.i18nResolved.res===void 0?a===e?`key`:`default`:`translation`;else{var l,u,d=i.keySeparator??(r==null||(l=r.options)==null?void 0:l.keySeparator)??`.`,f=r.extractFromKey(t.join(d),n),p=f.key,m=f.namespaces;a=p,o=m?.[0]??i.ns??(r==null||(u=r.options)==null?void 0:u.defaultNS),s=n.lng||this.language,c=a===e?`key`:`translation`}return yi(e,{key:a,ns:o,lng:s,source:c})},overloadTranslationOptionHandler:function(){return{postProcess:Ti,postProcessPassResolved:!0}}},Di=[`placeholder`,`title`,`alt`],Oi=[`SCRIPT`],ki={highlight:`#1976d2`,warning:`#e67a00`,gray:`#ccc`},Ai=function(){var e;return typeof process<`u`&&(e=process),!e&&typeof window<`u`&&(e=window.process),(e||{}).env?.locizeIncontext||`production`},ji=function(){var e=Ai();return e===`development`?`http://localhost:3003/`:e===`staging`?`https://incontext-dev.locize.app`:`https://incontext.locize.app`},Mi=function(){var e=Ai();return e===`development`?[`http://localhost:3003`,`http://localhost:3000`]:e===`staging`?[`https://incontext-dev.locize.app`,`https://dev.locize.app`]:[`https://incontext.locize.app`,`https://www.locize.app`,`https://locize.app`]},N=function(){if(!(typeof document>`u`)){var e=document.createElement(`style`);return document.head.appendChild(e),e.sheet}}();function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ni(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var P={};function Fi(){Object.values(P).forEach(function(e){document.body.contains(e.node)||(J(e.id,e.node),delete P[e.id])})}function Ii(e,t,n,r){!e||!t||!n||(P[e]||(P[e]={id:e,node:n}),P[e].keys=Pi(Pi({},P[e].keys),{},M({},`${t}`,{value:r,eleUniqueID:e,textType:t})))}function Li(e,t){J(e,t),delete P[e]}function Ri(e,t,n){var r=zi(e);r&&(delete r.keys[`${t}`],Object.keys(r.keys).length||Li(e,n))}function zi(e){return P[e]}var F={save:Ii,remove:Li,removeKey:Ri,clean:Fi,get:zi,data:P};function Bi(e){if(Array.isArray(e))return e}function Vi(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Hi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ui(e,t){if(e){if(typeof e==`string`)return Hi(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hi(e,t):void 0}}function Wi(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gi(e,t){return Bi(e)||Vi(e,t)||Ui(e,t)||Wi()}function Ki(e,t,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}function I(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function qi(e){var t=I(e,`data-i18n`);if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return qi(e.parentElement)}function Ji(e){var t=`text`;if(e.indexOf(`[`)===0){var n=e.split(`]`);e=n[1],t=n[0].substr(1,n[0].length-1)}return[e.indexOf(`;`)===e.length-1?e.substr(0,e.length-2):e,t]}function Yi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=qi(e),r=Xi(e),i={};if(n&&n.indexOf(`;`)>=0){for(var a=n.split(`;`),o=0,s=a.length;o<s;o++)if(a[o]!=``){var c=Gi(Ji(a[o]),2),l=c[0],u=c[1];i[u]=l}}else if(n){var d=Gi(Ji(n),2),f=d[0],p=d[1];i[p]=f}return Object.keys(i).length<1?null:Object.keys(i).reduce(function(e,n){var a=i[n],o=r,s=a;if(t&&a.indexOf(`:`)>-1){var c=a.split(`:`);s=c[1],o=c[0]}return e[n]={key:s,ns:o},e},{})}function Xi(e){var t,n=function(e){var r=I(e,`i18next-options`);if(r||(r=I(e,`data-i18next-options`)),r||(r=I(e,`i18n-options`)),r||(r=I(e,`data-i18n-options`)),r){var i={};try{i=JSON.parse(r)}catch{}i.ns&&(t=i.ns)}t||(t=I(e,`i18next-ns`)),t||(t=I(e,`data-i18next-ns`)),t||(t=I(e,`i18n-ns`)),t||(t=I(e,`data-i18n-ns`)),!t&&e.parentElement&&n(e.parentElement)};return n(e),t}function Zi(e,t){if(typeof window>`u`)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,`\\$&`);var n=RegExp(`[?&]`+e+`(=([^&#]*)|&|#|$)`).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g,` `)):``:null}var Qi=function(){if(typeof window>`u`)return!1;try{return window.localStorage.getItem(`locize-debug`)===`true`||Zi(`locizedebug`)===`true`}catch{return!1}}();function $i(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];Qi&&(e=console).warn.apply(e,[`[locize]`].concat(n))}var ea=!1;if(typeof window<`u`)try{ea=self!==top}catch{ea=!0}var ta=ea;function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?na(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ia={committed:`commitKeys`};function aa(e){return ia[e]?ia[e]:e}function oa(e){R.sendCurrentTargetLanguage(e)}var sa=[],ca=[`locizeIsEnabled`,`requestInitialize`];function L(e,t){var n=document.getElementById(`i18next-editor-iframe`)?.contentWindow;if(n&&(R.source&&R.source!==n&&(R.initialized=!1),R.source=n),R.origin||(R.origin=ji()),!R.source||!R.source.postMessage||!R.initialized&&ca.indexOf(e)<0){$i(`queueing (editor not connected yet)`,e,t),sa.length<100&&sa.push({action:e,payload:t});return}$i(`out`,e,t),R.legacy?R.source.postMessage(ra({message:e},t),R.origin):R.source.postMessage({sender:`i18next-editor`,senderAPIVersion:`v2`,action:e,message:e,payload:t},R.origin);var r=sa;sa=[],r.forEach(function(e){var t=e.action,n=e.payload;L(t,n)})}var la=function(){L(`sendCurrentParsedContent`,{content:Object.values(X.data).map(function(e){return{id:e.id,keys:e.keys}}),uninstrumented:Object.values(F.data).map(function(e){return{id:e.id,keys:e.keys}})})},ua={},da=5,R={init:function(e,t){R.i18n=e,R.clickHandler=t},requestInitialize:function(e){L(`requestInitialize`,e),!R.initInterval&&(da=5,R.initInterval=setInterval(function(){--da,R.requestInitialize(e),da<0&&R.initInterval&&(clearInterval(R.initInterval),delete R.initInterval,R.initialized||$i(`handshake gave up: editor never answered requestInitialize`))},2e3))},selectKey:function(e){L(`selectKey`,e)},confirmResourceBundle:function(e){L(`confirmResourceBundle`,e)},sendCurrentParsedContent:Ki(la,500),sendCurrentTargetLanguage:function(e){L(`sendCurrentTargetLanguage`,{targetLng:e||R.i18n&&R.i18n.getLng&&R.i18n.getLng()})},sendHrefchanged:function(e){L(`hrefChanged`,{href:e})},addHandler:function(e,t){ua[e]||(ua[e]=[]),ua[e].push(t)},sendLocizeIsEnabled:function(e){L(`locizeIsEnabled`,ra(ra({},e),{},{enabled:!0}))},onAddedKey:function(e,t,n,r){L(`added`,{lng:e,ns:t,key:n,value:r})}},fa=function(){try{return Mi().map(function(e){return new URL(e).origin})}catch{return[]}};typeof window<`u`&&window.addEventListener(`message`,function(e){var t=fa();if(!t.length||t.indexOf(e.origin)<0){e.data?.sender===`i18next-editor-frame`&&$i(`dropped editor message from unexpected origin`,e.origin,`expected one of`,t);return}var n=e.data,r=n.sender,i=n.action,a=n.message,o=n.payload;if($i(`in`,i||a,o),a){var s=aa(a);ua[s]&&ua[s].forEach(function(t){t(o,e)})}else r===`i18next-editor-frame`&&ua[i]&&ua[i].forEach(function(t){t(o,e)})});var pa=/^(on\w+|style)$/i,ma=/^(href|src|action|formaction|xlink:href)$/i,ha=/^\s*(javascript|data|vbscript|file)\s*:/i;function ga(e,t){return!(typeof e!=`string`||pa.test(e)||ma.test(e)&&typeof t==`string`&&ha.test(t))}function _a(e){if(typeof e!=`string`||typeof DOMParser>`u`)return e;try{var t=new DOMParser().parseFromString(`<body>${e}</body>`,`text/html`);return[`SCRIPT`,`IFRAME`,`OBJECT`,`EMBED`,`LINK`,`META`,`BASE`,`STYLE`].forEach(function(e){t.body.querySelectorAll(e.toLowerCase()).forEach(function(e){return e.remove()})}),t.body.querySelectorAll(`*`).forEach(function(e){Array.from(e.attributes).forEach(function(t){var n=t.name,r=t.value;if(/^on/i.test(n)){e.removeAttribute(n);return}ma.test(n)&&ha.test(r)&&e.removeAttribute(n)})}),t.body.innerHTML}catch{return e}}function va(e,t){var n=X.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=n.subliminal?yi(t,n.subliminal):t;if(e.textType===`text`)n.node.textContent=r;else if(e.textType.indexOf(`attr:`)===0){var i=e.textType.replace(`attr:`,``);if(!ga(i,r))return;n.node.setAttribute(i,r)}else if(e.textType===`html`){var a=`${e.textType}-${e.children}`;if(!n.originalChildNodes){var o=[];n.node.childNodes.forEach(function(e){o.push(e)}),n.originalChildNodes=o}var s=_a(r);if(n.children[a].length===n.node.childNodes.length)n.node.innerHTML=s;else{var c=n.children[a],l=c[0].child,u=document.createElement(`div`);u.innerHTML=s;var d=[];u.childNodes.forEach(function(e){d.push(e)}),d.forEach(function(e){try{n.node.insertBefore(e,l)}catch{n.node.appendChild(e)}}),c.forEach(function(e){n.node.contains(e.child)&&n.node.removeChild(e.child)})}}}}function ya(e){var t=e.meta,n=e.value;t&&n!==void 0&&va(t,n)}R.addHandler(`editKey`,ya);function ba(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){va(t,n);var i=r||R.i18n.getLng();R.i18n.setResource(i,t.ns,t.key,n),R.i18n.triggerRerender()}}R.addHandler(`commitKey`,ba);function xa(e){if(Array.isArray(e))return Hi(e)}function Sa(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ca(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
31
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wa(e){return xa(e)||Sa(e)||Ui(e)||Ca()}function Ta(e){e.updated.forEach(function(e){var t=e.lng,n=e.ns,r=e.key,i=e.data,a=e.metas,o=e.meta;o&&i.value&&va(o,i.value),a&&Object.values(a).forEach(function(e){va(e,i.value)}),R.i18n.setResource(t,n,r,i.value),a&&Object.values(a).forEach(function(e){var t=X.get(e.eleUniqueID);Us(t,t.node,t.keys)})}),Object.values(X.data).forEach(function(e){if(e.originalChildNodes){var t;(t=e.node).replaceChildren.apply(t,wa(e.originalChildNodes))}}),R.i18n.triggerRerender(),R.locizeSavedHandler&&R.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}R.addHandler(`commitKeys`,Ta);function Ea(e){var t;R.initialized=!0,clearInterval(R.initInterval),delete R.initInterval,(t=document.querySelector(`.locize-incontext-error`))==null||t.remove(),R.sendCurrentParsedContent(),R.sendCurrentTargetLanguage()}R.addHandler(`confirmInitialized`,Ea);function Da(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,a=t.left<=r&&t.left+t.width>=0;return i&&a}function Oa(e,t){var n=t,r=e.pageX,i=e.pageY,a={x:r,y:i},o=n.getBoundingClientRect(),s=o.top+document.documentElement.scrollTop,c=s+n.offsetHeight,l=o.left+document.documentElement.scrollLeft,u=l+n.offsetWidth,d={x:Math.min(r,u)>=Math.max(r,l)?r:u<r?u:l,y:Math.min(i,c)>=Math.max(i,s)?i:c<i?c:s},f=d.x-a.x,p=d.y-a.y,m=(f**2+p**2)**(1/2);return Math.floor(m)}function ka(e){var t=e;if(e.childNodes.length===1){var n=e.childNodes[0];if(n&&n.nodeName===`#text`){var r=document.createRange();r.selectNode(n);var i=r.getBoundingClientRect();t={getBoundingClientRect:function(){return i}}}}return t}function Aa(e){var t=e.getBoundingClientRect();if(!t.width||!t.height)return!0;var n=t.left+t.width/2,r=t.top+t.height/2,i=document.elementFromPoint(n,r);return i?i.dataset&&i.dataset.i18nextEditorElement===`true`?!1:!e.contains(i)&&!i.contains(e):!0}var ja=Ki(function(e,t){Object.values(X.data).forEach(function(t){if(Da(t.node)){if(Aa(t.node)){J(t,t.node,t.keys);return}var n=Oa(e,t.node);n<5?Bs(t,t.node,t.keys):n>5&&(t.ribbonBox?Oa(e,t.ribbonBox):1e3)>10&&J(t,t.node,t.keys)}}),Object.values(F.data).forEach(function(t){if(Da(t.node)){if(Aa(t.node)){J(t,t.node,t.keys);return}var n=Oa(e,t.node);n<10?Vs(t,t.node,t.keys):n>10&&J(t,t.node,t.keys)}})},50),Ma;function Na(e){Ma=function(t){ja(t,e)},document.addEventListener(`mousemove`,Ma)}function Pa(){document.removeEventListener(`mousemove`,Ma)}var Fa=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>`,Ia=`
|
|
32
32
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 304" stroke="#000" stroke-linecap="round" stroke-linejoin="round" fill="#fff" fill-rule="evenodd">
|
|
33
33
|
<g stroke="none" class="B">
|
|
34
34
|
<path d="M 142 31.5 v 57.2 l 64.3 165.1 s 19.6 40.3 -36.5 50.1 h -128 s -52.3 -5.5 -39.8 -46.9 L 69.5 88.7 V 31.5 z" fill="#009688"/>
|
|
@@ -39,7 +39,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39
39
|
<path d="M 87.6 218.3 c 0 6 -8.1 10.9 -18.1 10.9 s -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 s 18.1 4.9 18.1 10.9 z m 64.4 0 c 0 6 -8.1 10.9 -18.1 10.9 c -10 0 -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 c 10 0 18.1 4.9 18.1 10.9 z" class="C" fill="#004d40"/>
|
|
40
40
|
</g>
|
|
41
41
|
</svg>
|
|
42
|
-
`,
|
|
42
|
+
`,La=`
|
|
43
43
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 194.667 196" height="196" width="194.667" xml:space="preserve">
|
|
44
44
|
<defs>
|
|
45
45
|
<clipPath id="a" clipPathUnits="userSpaceOnUse">
|
|
@@ -80,7 +80,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
80
80
|
<path style="fill:none;stroke:#2196f3;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0Zm12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754z" transform="translate(119.64 109.307)"/>
|
|
81
81
|
</g>
|
|
82
82
|
</svg>
|
|
83
|
-
`,
|
|
83
|
+
`,Ra=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19h12v2H6v-2z"/></svg>`,za=URL.createObjectURL(new Blob([Fa],{type:`image/svg+xml`}));URL.createObjectURL(new Blob([Ia],{type:`image/svg+xml`}));var Ba=URL.createObjectURL(new Blob([Ra],{type:`image/svg+xml`})),Va=URL.createObjectURL(new Blob([La],{type:`image/svg+xml`}));function Ha(){var e=document.createElement(`img`);return e.setAttribute(`data-i18next-editor-element`,`true`),e.src=za,e.style.width=`15px`,e}N&&(N.insertRule(`@keyframes i18next-editor-animate-top {
|
|
84
84
|
from {
|
|
85
85
|
top: calc(100vh + 600px);
|
|
86
86
|
left: calc(100vw + 300px);
|
|
@@ -91,7 +91,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
91
91
|
left: var(--i18next-editor-popup-position-left);
|
|
92
92
|
opacity: 1;
|
|
93
93
|
}
|
|
94
|
-
}`),
|
|
94
|
+
}`),N.insertRule(`@keyframes i18next-editor-animate-bottom {
|
|
95
95
|
from {
|
|
96
96
|
top: var(--i18next-editor-popup-position-top);
|
|
97
97
|
left: var(--i18next-editor-popup-position-left);
|
|
@@ -102,14 +102,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
102
102
|
left: calc(100vw + 300px);
|
|
103
103
|
opacity: 0;
|
|
104
104
|
}
|
|
105
|
-
}`),
|
|
105
|
+
}`),N.insertRule(`.i18next-editor-popup * {
|
|
106
106
|
-webkit-touch-callout: none; /* iOS Safari */
|
|
107
107
|
-webkit-user-select: none; /* Safari */
|
|
108
108
|
-khtml-user-select: none; /* Konqueror HTML */
|
|
109
109
|
-moz-user-select: none; /* Firefox */
|
|
110
110
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
111
111
|
user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
|
|
112
|
-
}`),
|
|
112
|
+
}`),N.insertRule(`.i18next-editor-popup .resizer-right {
|
|
113
113
|
width: 15px;
|
|
114
114
|
height: 100%;
|
|
115
115
|
background: transparent;
|
|
@@ -117,7 +117,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
117
117
|
right: -15px;
|
|
118
118
|
bottom: 0;
|
|
119
119
|
cursor: e-resize;
|
|
120
|
-
}`),
|
|
120
|
+
}`),N.insertRule(`.i18next-editor-popup .resizer-both {
|
|
121
121
|
width: 15px;
|
|
122
122
|
height: 15px;
|
|
123
123
|
background: transparent;
|
|
@@ -126,7 +126,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
126
126
|
right: -15px;
|
|
127
127
|
bottom: -15px;
|
|
128
128
|
cursor: se-resize;
|
|
129
|
-
}`),
|
|
129
|
+
}`),N.insertRule(`.locize-incontext-ribbon {
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
position: fixed;
|
|
132
|
+
bottom: 25px;
|
|
133
|
+
right: 25px;
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
width: 50px;
|
|
138
|
+
height: 50px;
|
|
139
|
+
background-color: rgba(249, 249, 249, 0.8);
|
|
140
|
+
-webkit-backdrop-filter: blur(3px);
|
|
141
|
+
backdrop-filter: blur(3px);
|
|
142
|
+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
}`),N.insertRule(`.locize-incontext-ribbon.locize-incontext-ribbon-left {
|
|
145
|
+
right: auto;
|
|
146
|
+
left: 25px;
|
|
147
|
+
}`),N.insertRule(`.i18next-editor-popup .resizer-bottom {
|
|
130
148
|
width: 100%;
|
|
131
149
|
height: 15px;
|
|
132
150
|
background: transparent;
|
|
@@ -134,21 +152,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
134
152
|
right: 0;
|
|
135
153
|
bottom: -15px;
|
|
136
154
|
cursor: s-resize;
|
|
137
|
-
}`));function
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
right:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
backdrop-filter: blur(3px);
|
|
149
|
-
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
|
|
150
|
-
border-radius: 50%;
|
|
151
|
-
`,n.onclick=function(){t()};var r=document.createElement(`img`);return r.src=Ia,r.style.width=`45px`,n.appendChild(r),n}function za(e,t){var n=document.createElement(`img`);return n.setAttribute(`data-i18next-editor-element`,`true`),n.src=Fa,n.style.width=`24px`,n.style.cursor=`pointer`,n.onclick=function(){e.style.setProperty(`--i18next-editor-popup-position-top`,e.style.top),e.style.setProperty(`--i18next-editor-popup-position-left`,e.style.left),e.style.animation=`i18next-editor-animate-bottom 2s forwards`,t()},n}var Ba=`i18next-editor-popup`;function Va(e,t){var n=document.createElement(`div`);n.setAttribute(`id`,Ba),n.classList.add(`i18next-editor-popup`),n.style=`
|
|
155
|
+
}`));function Ua(e,t,n){var r=document.createElement(`div`);r.setAttribute(`data-i18next-editor-element`,`true`),r.classList.add(`locize-incontext-ribbon`),n===`bottom-left`&&r.classList.add(`locize-incontext-ribbon-left`),r.onclick=function(){t()};var i=document.createElement(`img`);return i.src=Va,i.style.width=`45px`,r.appendChild(i),r}function Wa(e,t){var n=document.createElement(`img`);return n.setAttribute(`data-i18next-editor-element`,`true`),n.src=Ba,n.style.width=`24px`,n.style.cursor=`pointer`,n.onclick=function(){e.style.setProperty(`--i18next-editor-popup-position-top`,e.style.top),e.style.setProperty(`--i18next-editor-popup-position-left`,e.style.left),e.style.animation=`i18next-editor-animate-bottom 2s forwards`,t()},n}var Ga=`i18next-editor-popup`;function Ka(e){var t=document.getElementById(Ga);if(!(!t||t.querySelector(`.locize-incontext-error`))){var n=document.createElement(`div`);n.className=`locize-incontext-error`,n.setAttribute(`data-i18next-editor-element`,`true`),n.textContent=e,n.style=`
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: 32px;
|
|
158
|
+
left: 0;
|
|
159
|
+
right: 0;
|
|
160
|
+
z-index: 102;
|
|
161
|
+
padding: 8px 10px;
|
|
162
|
+
background-color: ${ki.warning};
|
|
163
|
+
color: #fff;
|
|
164
|
+
font: 13px sans-serif;
|
|
165
|
+
`,t.appendChild(n)}}function qa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=document.createElement(`div`);r.setAttribute(`id`,Ga),r.classList.add(`i18next-editor-popup`),r.style=`
|
|
152
166
|
background-color: transparent;
|
|
153
167
|
border: 1px solid rgba(200, 200, 200, 0.9);
|
|
154
168
|
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
|
@@ -170,7 +184,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
170
184
|
|
|
171
185
|
overflow: visible;
|
|
172
186
|
z-index: 100000;
|
|
173
|
-
`,
|
|
187
|
+
`,r.setAttribute(`data-i18next-editor-element`,`true`);var i=document.createElement(`div`);i.classList.add(`i18next-editor-popup-header`),i.style=`
|
|
174
188
|
padding: 2px 10px;
|
|
175
189
|
cursor: move;
|
|
176
190
|
z-index: 10;
|
|
@@ -179,13 +193,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
179
193
|
background: linear-gradient(0deg, rgba(200, 200, 200, 0.6), rgba(200, 200, 200, 0.5));
|
|
180
194
|
color: #fff;
|
|
181
195
|
text-align: right;
|
|
182
|
-
`,
|
|
196
|
+
`,r.appendChild(i),i.appendChild(Wa(r,function(){var e=Ua(r,function(){r.style.animation=`i18next-editor-animate-top 1s`,Na(),setTimeout(function(){document.body.removeChild(e)},1e3)},n.ribbonPosition);document.body.appendChild(e),Pa()}));var a=document.createElement(`iframe`);a.setAttribute(`id`,`i18next-editor-iframe`),a.setAttribute(`data-i18next-editor-element`,`true`),a.style=`
|
|
183
197
|
z-index: 100;
|
|
184
198
|
width: 100%;
|
|
185
199
|
height: calc(100% - 32px);
|
|
186
200
|
border: none;
|
|
187
201
|
background: #fff;
|
|
188
|
-
`,
|
|
202
|
+
`,a.setAttribute(`src`,e),a.addEventListener(`load`,t),r.appendChild(a);var o=document.createElement(`div`);return o.setAttribute(`id`,`i18next-editor-popup-overlay`),o.setAttribute(`data-i18next-editor-element`,`true`),o.style=`
|
|
189
203
|
display: none;
|
|
190
204
|
position: absolute;
|
|
191
205
|
top: 32px;
|
|
@@ -195,7 +209,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
195
209
|
background-color: rgba(200, 200, 200, 0.5);
|
|
196
210
|
background: linear-gradient(0deg, rgba(240, 240, 240, 0.6), rgba(255, 255, 255, 0.5));
|
|
197
211
|
backdrop-filter: blur(2px);
|
|
198
|
-
`,
|
|
212
|
+
`,r.appendChild(o),r}var Ja=/^\d+(?:\.\d+)?(?:px|%|em|rem|vh|vw|ch|ex)$/i;function Ya(e){return typeof e==`string`&&Ja.test(e)}function Xa(e){var t=e.containerStyle;if(t){var n=document.getElementById(Ga);if(!n)return;var r=window.localStorage.getItem(`locize_popup_pos`);r&&(r=JSON.parse(r));var i=window.localStorage.getItem(`locize_popup_size`);if(i&&(i=JSON.parse(i)),i&&i.height&&i.width&&(t.height=i.height+`px`,t.width=i.width+`px`),t.height&&!Ya(t.height)&&delete t.height,t.width&&!Ya(t.width)&&delete t.width,t.height){var a=`calc(${t.height} - ${n.style.height})`;n.style.setProperty(`top`,`calc(${n.style.top} - ${a})`),n.style.setProperty(`height`,t.height)}if(t.width){var o=`calc(${t.width} - ${n.style.width})`;n.style.setProperty(`left`,`calc(${n.style.left} - ${o})`),n.style.setProperty(`width`,t.width)}var s=40;if(r&&typeof r.top==`number`&&t.height){var c=Math.max(0,window.innerHeight-s),l=Math.max(0,Math.min(r.top,c));n.style.setProperty(`top`,l+`px`)}if(r&&typeof r.left==`number`&&t.width){var u=parseInt(t.width,10)||0,d=Math.min(0,s-u),f=Math.max(0,window.innerWidth-s),p=Math.max(d,Math.min(r.left,f));n.style.setProperty(`left`,p+`px`)}}}R.addHandler(`requestPopupChanges`,Xa);function Za(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Qa(e,t){if(e==null)return{};var n,r,i=Za(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var $a=[`lng`,`ns`];function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eo(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function no(e){var t=e.lng,n=e.ns,r=Qa(e,$a);R.i18n.getResourceBundle(t,n,function(e){R.confirmResourceBundle(to({resources:e,lng:t,ns:n},r))})}R.addHandler(`requestResourceBundle`,no);var ro=[];function io(e){var t=e.keys,n=[];Object.values(X.data).forEach(function(e){Object.values(e.keys).filter(function(e){return t.includes(e.qualifiedKey)}).length&&n.push(e)}),ro.forEach(function(e){J(e,e.node,e.keys,!1)}),n.forEach(function(e){Hs(e,e.node,e.keys)}),ro=n}R.addHandler(`selectedKeys`,io);function ao(e,t){R.source=t.source,R.origin=t.origin,R.sendLocizeIsEnabled(e),R.requestInitialize(R.config)}R.addHandler(`isLocizeEnabled`,ao);function oo(e){e.length&&(e.forEach(function(e){var t=F.get(e.eleUniqueID);X.save(e.eleUniqueID,void 0,e.textType,tc(e.eleUniqueID,e.textType,M({},`${e.textType}`,{ns:e.ns,key:e.key}),e.value),t?.node),t&&t.keys&&delete t.keys[`${e.textType}`],t&&t.keys&&!Object.keys(t.keys).length&&F.remove(e.eleUniqueID,t.node)}),R.sendCurrentParsedContent())}R.addHandler(`sendMatchedUninstrumented`,oo),N&&N.insertRule(`.i18next-editor-button:hover { background-color: rgba(21, 65, 154, 1) !important; }`);function so(e,t,n){var r=document.createElement(`button`);r.style=`font-family: Arial; position: relative; backdrop-filter: blur(3px); cursor: pointer; padding: 2px 10px 2px 20px; font-size: 15px; font-weight: 300; text-transform: uppercase; color: #fff; background-color: rgba(25, 118, 210, 0.8); border: none; border-radius: 12px; `,r.classList.add(`i18next-editor-button`),r.setAttribute(`data-i18next-editor-element`,`true`),r.setAttribute(`title`,t);var i=Ha();i.style=`position: absolute; left: 4px; top: 3px;`,i.style.width=`15px`,r.appendChild(i);var a=document.createElement(`span`);return a.textContent=e,r.appendChild(a),r.onclick=n,r}function co(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=document.createElement(`div`);t.classList.add(`i18next-editor-button-container`),t.style=`position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; justify-content: center; filter: drop-shadow(0px 0px 20px #aaa ); z-index: 99999;`,t.setAttribute(`data-i18next-editor-element`,`true`);var n=document.createElement(`div`);n.style=`
|
|
199
213
|
position: absolute;
|
|
200
214
|
width: 0;
|
|
201
215
|
height: 0;
|
|
@@ -204,7 +218,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
204
218
|
border-left-width: 10px;
|
|
205
219
|
border-right-width: 10px;
|
|
206
220
|
border-style: solid;
|
|
207
|
-
border-color: transparent ${
|
|
221
|
+
border-color: transparent ${ki.highlight} transparent
|
|
208
222
|
transparent;
|
|
209
|
-
`,t.appendChild(n);var r=document.createElement(`div`);return r.style=`display: flex; flex-direction: column; align-items: flex-start; margin-left: 2px; margin-top: 1px`,Object.keys(e).forEach(function(t){var n=e[t],i=to(t.replace(`attr:`,``),`${n.ns}:${n.key}`,function(e){e&&(e.stopPropagation(),e.preventDefault()),z.selectKey(n)});i.style.marginBottom=`2px`,r.appendChild(i)}),t.appendChild(r),{box:t,arrow:n}}function ro(e,t,n){var r=e.getBoundingClientRect(),i=document.createElement(`div`);return i.classList.add(`i18next-editor-highlight`),i.style=`position: absolute; z-index: 99999; pointer-events: none; top: ${r.top-2+window.scrollY}px; left: ${r.left-2+window.scrollX}px; height: ${r.height+4}px; width: ${r.width+4}px; border: ${t===`none`?`none`:`1px solid ${t}`}; border-radius: 15px; ${n?`box-shadow: inset 1px 1px 5px rgba(255, 255, 255, 0.1), inset -1px -1px 5px rgba(61, 67, 69, 0.3), 0 0 20px 0 ${n};`:``}`,i.setAttribute(`data-i18next-editor-element`,`true`),i}let io=Math.min,ao=Math.max,oo=Math.round,B=e=>({x:e,y:e}),so={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function co(e,t,n){return ao(e,io(t,n))}function lo(e,t){return typeof e==`function`?e(t):e}function uo(e){return e.split(`-`)[0]}function fo(e){return e.split(`-`)[1]}function po(e){return e===`x`?`y`:`x`}function mo(e){return e===`y`?`height`:`width`}function V(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ho(e){return po(V(e))}function go(e,t,n){n===void 0&&(n=!1);let r=fo(e),i=ho(e),a=mo(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=To(o)),[o,To(o)]}function _o(e){let t=To(e);return[vo(e),t,vo(t)]}function vo(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}let yo=[`left`,`right`],bo=[`right`,`left`],xo=[`top`,`bottom`],So=[`bottom`,`top`];function Co(e,t,n){switch(e){case`top`:case`bottom`:return n?t?bo:yo:t?yo:bo;case`left`:case`right`:return t?xo:So;default:return[]}}function wo(e,t,n,r){let i=fo(e),a=Co(uo(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(vo)))),a}function To(e){let t=uo(e);return so[t]+e.slice(t.length)}function Eo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Do(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Eo(e)}function Oo(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ko(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=ho(t),s=mo(o),c=uo(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(fo(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Ao(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=lo(t,e),p=Do(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Oo(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Oo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}let jo=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ao},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ko(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<50&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ko(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Mo=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=lo(e,t)||{};if(l==null)return{};let d=Do(u),f={x:n,y:r},p=ho(i),m=mo(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=io(d[_],T),D=io(d[v],T),ee=E,te=C-h[m]-D,O=C/2-h[m]/2+w,ne=co(ee,O,te),k=!c.arrow&&fo(i)!=null&&O!==ne&&a.reference[m]/2-(O<ee?E:D)-h[m]/2<0,re=k?O<ee?O-ee:O-te:0;return{[p]:f[p]+re,data:{[p]:ne,centerOffset:O-ne-re,...k&&{alignmentOffset:re}},reset:k}}}),No=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=lo(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=uo(r),_=V(o),v=uo(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[To(o)]:_o(o)),x=p!==`none`;!d&&x&&b.push(...wo(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=go(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==V(t))||T.every(e=>V(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=V(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},Po=new Set([`left`,`top`]);async function Fo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=uo(n),s=fo(n),c=V(n)===`y`,l=Po.has(o)?-1:1,u=a&&c?-1:1,d=lo(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}let Io=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Fo(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Lo=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=lo(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(uo(i)),p=po(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=co(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=co(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}};function Ro(){return typeof window<`u`}function zo(e){return Bo(e)?(e.nodeName||``).toLowerCase():`#document`}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){return((Bo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Bo(e){return Ro()?e instanceof Node||e instanceof H(e).Node:!1}function W(e){return Ro()?e instanceof Element||e instanceof H(e).Element:!1}function G(e){return Ro()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Vo(e){return!Ro()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function Ho(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Uo(e){return/^(table|td|th)$/.test(zo(e))}function Wo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}let Go=/transform|translate|scale|rotate|perspective|filter/,Ko=/paint|layout|strict|content/,qo=e=>!!e&&e!==`none`,Jo;function Yo(e){let t=W(e)?K(e):e;return qo(t.transform)||qo(t.translate)||qo(t.scale)||qo(t.rotate)||qo(t.perspective)||!Zo()&&(qo(t.backdropFilter)||qo(t.filter))||Go.test(t.willChange||``)||Ko.test(t.contain||``)}function Xo(e){let t=q(e);for(;G(t)&&!Qo(t);){if(Yo(t))return t;if(Wo(t))return null;t=q(t)}return null}function Zo(){return Jo??(Jo=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`)),Jo}function Qo(e){return/^(html|body|#document)$/.test(zo(e))}function K(e){return H(e).getComputedStyle(e)}function $o(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(zo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||U(e);return Vo(t)?t.host:t}function es(e){let t=q(e);return Qo(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&Ho(t)?t:es(t)}function ts(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=es(e),i=r===e.ownerDocument?.body,a=H(r);if(i){let e=ns(a);return t.concat(a,a.visualViewport||[],Ho(r)?r:[],e&&n?ts(e):[])}else return t.concat(r,ts(r,[],n))}function ns(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rs(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=G(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=oo(n)!==a||oo(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function is(e){return W(e)?e:e.contextElement}function as(e){let t=is(e);if(!G(t))return B(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=rs(t),o=(a?oo(n.width):n.width)/r,s=(a?oo(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}let os=B(0);function ss(e){let t=H(e);return!Zo()||!t.visualViewport?os:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function ls(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=is(e),o=B(1);t&&(r?W(r)&&(o=as(r)):o=as(e));let s=cs(a,n,r)?ss(a):B(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=H(a),t=r&&W(r)?H(r):r,n=e,i=ns(n);for(;i&&r&&t!==n;){let e=as(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=H(i),i=ns(n)}}return Oo({width:u,height:d,x:c,y:l})}function us(e,t){let n=$o(e).scrollLeft;return t?t.left+n:ls(U(e)).left+n}function ds(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-us(e,n),y:n.top+t.scrollTop}}function fs(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=U(r),s=t?Wo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=B(1),u=B(0),d=G(r);if((d||!d&&!a)&&((zo(r)!==`body`||Ho(o))&&(c=$o(r)),d)){let e=ls(r);l=as(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ds(o,c):B(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ps(e){return Array.from(e.getClientRects())}function ms(e){let t=U(e),n=$o(e),r=e.ownerDocument.body,i=ao(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ao(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+us(e),s=-n.scrollTop;return K(r).direction===`rtl`&&(o+=ao(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function hs(e,t){let n=H(e),r=U(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Zo();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=us(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else l<=25&&(a+=l);return{width:a,height:o,x:s,y:c}}function gs(e,t){let n=ls(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=G(e)?as(e):B(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function _s(e,t,n){let r;if(t===`viewport`)r=hs(e,n);else if(t===`document`)r=ms(U(e));else if(W(t))r=gs(t,n);else{let n=ss(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Oo(r)}function vs(e,t){let n=q(e);return n===t||!W(n)||Qo(n)?!1:K(n).position===`fixed`||vs(n,t)}function ys(e,t){let n=t.get(e);if(n)return n;let r=ts(e,[],!1).filter(e=>W(e)&&zo(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?q(e):e;for(;W(o)&&!Qo(o);){let t=K(o),n=Yo(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ho(o)&&!n&&vs(e,o))?r=r.filter(e=>e!==o):i=t,o=q(o)}return t.set(e,r),r}function bs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wo(t)?[]:ys(t,this._c):[].concat(n),r],o=_s(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=_s(t,a[e],i);s=ao(n.top,s),c=io(n.right,c),l=io(n.bottom,l),u=ao(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function xs(e){let{width:t,height:n}=rs(e);return{width:t,height:n}}function Ss(e,t,n){let r=G(t),i=U(t),a=n===`fixed`,o=ls(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=B(0);function l(){c.x=us(i)}if(r||!r&&!a)if((zo(t)!==`body`||Ho(i))&&(s=$o(t)),r){let e=ls(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?ds(i,s):B(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Cs(e){return K(e).position===`static`}function ws(e,t){if(!G(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function Ts(e,t){let n=H(e);if(Wo(e))return n;if(!G(e)){let t=q(e);for(;t&&!Qo(t);){if(W(t)&&!Cs(t))return t;t=q(t)}return n}let r=ws(e,t);for(;r&&Uo(r)&&Cs(r);)r=ws(r,t);return r&&Qo(r)&&Cs(r)&&!Yo(r)?n:r||Xo(e)||n}let Es=async function(e){let t=this.getOffsetParent||Ts,n=this.getDimensions,r=await n(e.floating);return{reference:Ss(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ds(e){return K(e).direction===`rtl`}let Os={convertOffsetParentRelativeRectToViewportRelativeRect:fs,getDocumentElement:U,getClippingRect:bs,getOffsetParent:Ts,getElementRects:Es,getClientRects:ps,getDimensions:xs,getScale:as,isElement:W,isRTL:Ds},ks=Io,As=Lo,js=No,Ms=Mo,Ns=(e,t,n)=>{let r=new Map,i={platform:Os,...n},a={...i.platform,_c:r};return jo(e,t,{...i,platform:a})};var Ps={};function Fs(e,t,n){var r=wa(t);if(!e.highlightBox){var i=ro(r,`none`,`rgba(0,0,0,0.1)`);document.body.appendChild(i),e.highlightBox=i}if(!e.ribbonBox){var a=no(n),o=a.box,s=a.arrow;document.body.appendChild(o),Ns(r,o,{placement:`right`,middleware:[js({fallbackPlacements:[`left`,`bottom`]}),As(),ks(function(e){var t=e.placement,n=e.rects;return t===`bottom`?-n.reference.height/2-n.floating.height/2:35}),Ms({element:s})]}).then(function(e){var t=e.x,n=e.y,r=e.middlewareData,i=e.placement;Object.assign(o.style,{left:`${t}px`,top:`${n}px`,display:`inline-flex`});var a=i.split(`-`)[0],c={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[a];if(r.arrow){var l=r.arrow,u=l.x,d=l.y;Object.assign(s.style,N(N({left:u==null?``:`${u}px`,top:d==null?``:`${d}px`,right:``,bottom:``},c,`${a===`bottom`?-18:-25}px`),`transform`,a===`bottom`?`rotate(90deg)`:a===`left`?`rotate(180deg)`:``))}}),e.ribbonBox=o}}function Is(e,t,n){if(!Ps[e.id]){var r=wa(t);if(!e.highlightBox){var i=ro(r,Oi.warning);document.body.appendChild(i),e.highlightBox=i}}}function Ls(e,t,n){var r=e.id,i=wa(t);if(!e.highlightBox){var a=ro(i,`none`,Oi.gray);document.body.appendChild(a),e.highlightBox=a}Ps[r]=!0}function Rs(e,t,n){Ps[e.id]&&(J(e,t,n,!1),Ls(e,t))}function J(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=e.id;r&&Ps[i]||(e.highlightBox&&(document.body.removeChild(e.highlightBox),delete e.highlightBox),e.ribbonBox&&(document.body.removeChild(e.ribbonBox),delete e.ribbonBox),delete Ps[i])}function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zs(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Y={};function Vs(){Object.values(Y).forEach(function(e){document.body.contains(e.node)||(J(e.id,e.node),delete Y[e.id])})}function Hs(e,t,n,r,i,a){!e||!n||!r||!i||(Y[e]||(Y[e]={id:e,node:i,subliminal:t}),t&&(Y[e].subliminal=t),Y[e].keys=Bs(Bs({},Y[e].keys),{},N({},`${n}`,r)),a&&(Y[e].children=Bs(Bs({},Y[e].children),{},N({},`${n}-${a.map(function(e){return e.childIndex}).join(`,`)}`,a))))}function Us(e){return Y[e]}var X={save:Hs,clean:Vs,get:Us,data:Y};(function(){if(!(typeof Document>`u`)){var e=1;Document.prototype.hasOwnProperty(`uniqueID`)||(console.info(`"document.uniqueID" not implemented; creating shim`),Object.defineProperty(Document.prototype,`uniqueID`,{get:function(){return e++},enumerable:!1,configurable:!1}),Object.defineProperty(Element.prototype,`uniqueID`,{get:function(){return Object.defineProperty(this,`uniqueID`,{value:document.uniqueID,writable:!1,enumerable:!1,configurable:!1}),this.uniqueID},enumerable:!1,configurable:!0}))}})();function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ws(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Z,Q,Ks=[];function qs(e){Q=e}function Js(e,t){if(!(e.dataset&&e.dataset.i18nextEditorElement===`true`)){t(e);var n=X.get(e.uniqueID),r=I.get(e.uniqueID);if(n||r){var i=e.parentElement?.uniqueID;I.remove(i,e.parentElement)}for(var a=e.childNodes,o=0;o<a.length;o++)Js(a[o],t)}}function Ys(e,t,n,r){var i=n.invisibleMeta,a=n.text;if(!(!i||!i.key||!i.ns))return Z||(Z=Q.getSourceLng()),Gs(Gs({eleUniqueID:e,textType:t,children:r&&r.map?r.map(function(e){return e.childIndex}).join(`,`):null,qualifiedKey:`${i.ns}:${i.key}`},i),{},{extractedText:a,i18nTargetLng:Q?.getLng(),i18nSourceLng:Z,i18nRawText:N(N({},`${i.lng}`,i.source===`translation`&&Q?Q?.getResource(i.lng,i.ns,i.key):null),`${Z}`,i.source===`translation`&&Q?Q?.getResource(Z,i.ns,i.key):null)})}function Xs(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=r[t];if(o){Z||(Z=Q.getSourceLng());var s=Q.getLng();return{eleUniqueID:e,textType:t,children:a&&a.map?a.map(function(e){return e.childIndex}).join(`,`):null,qualifiedKey:o.key&&(o.ns||(n=Q)!=null&&n.getDefaultNS())?`${o.ns||Q?.getDefaultNS()}:${o.key}`:null,key:o.key,ns:o.ns||Q?.getDefaultNS(),extractedText:i,i18nTargetLng:s,i18nSourceLng:Z,i18nRawText:N(N({},`${s}`,Q&&o.ns&&o.key&&Q?.getResource(s,o.ns,o.key)||i),`${Z}`,Q&&o.ns&&o.key?Q?.getResource(Z,o.ns,o.key):null)}}}function Zs(e){return/^\s*$/.test(e)}function Qs(e,t,n,r,i,a,o){var s=X.get(e),c=s&&s.keys[`${n}`]||{},l=r[`${n}`]||{};!l.key&&c.key&&(l.key=c.key),!l.ns&&c.ns&&(l.ns=c.ns),r[`${n}`]=l;var u=Xs(e,n,r,o,a);u.qualifiedKey?(X.save(e,null,n,u,i,a),I.removeKey(e,n,i)):I.save(e,n,i,o)}function $s(e){if(!(Di.indexOf(e.nodeName)>-1)){var t=Ki(e),n=!1;if(e.childNodes&&!Ks.includes(e.uniqueID)){var r=[];e.childNodes.forEach(function(t,i){if(r.length&&t.nodeName!==`#text`&&(Ks.push(t.uniqueID),r.push({childIndex:i,child:t})),t.nodeName===`#text`){var a=t.textContent;if(!Zs(a)){var o=a.trim(),s=bi(o),c=xi(o);if(s&&(n=!0),c&&s){var l=yi(o);I.remove(e.uniqueID,e),X.save(e.uniqueID,l.invisibleMeta,`text`,Ys(e.uniqueID,`text`,l),e)}else if(c)r.push({childIndex:i,child:t,text:a});else if(r.length&&!s)r.push({childIndex:i,child:t,text:a});else if(r.length&&s){r.push({childIndex:i,child:t,text:a});var u=yi(r.reduce(function(e,t){return e+t.text},``));I.removeKey(e.uniqueID,`html`,e,a),X.save(e.uniqueID,u.invisibleMeta,`html`,Ys(e.uniqueID,`html`,u,r),e,r),r=[]}}}}),n||e.childNodes.forEach(function(n,i){r.length&&n.nodeName!==`#text`&&Ks.push(n.uniqueID);var a=n.textContent;t&&t.html&&i<e.childNodes.length-1?r.push({childIndex:i,child:n,text:a}):t&&t.html&&i===e.childNodes.length-1?(r.push({childIndex:i,child:n,text:a}),Qs(e.uniqueID,null,`html`,t,e,r,e.innerHTML),r=[]):a&&(t&&t.text?Qs(e.uniqueID,null,`text`,t,e,void 0,a):n.nodeName===`#text`&&!Zs(a)&&I.save(e.uniqueID,`text`,e,a))})}e.getAttribute&&Ei.forEach(function(n){var r=e.getAttribute(n);if(bi(r)){var i=yi(r);I.removeKey(e.uniqueID,n,e),X.save(e.uniqueID,i.invisibleMeta,n,Ys(e.uniqueID,`${n}`,i),e)}else r&&(t&&t[n]?Qs(e.uniqueID,null,n,t,e,void 0,r):I.save(e.uniqueID,n,e,r))})}}function ec(e){return Z=void 0,Js(e,$s),X.clean(),Ks=[],X.data}var tc={};function nc(e){if(e.uniqueID){var t=tc[e.uniqueID];if(t&&t.triggered>10&&t.lastTriggerDate+500<Date.now())return!t.warned&&console&&(console.warn(`locize ::: ignoring element change - an element is rerendering too often in short interval`,`
|
|
210
|
-
`,`consider adding the "data-locize-editor-ignore:" attribute to the element:`,e),t.warned=!0),!0}var n=e.dataset&&(e.dataset.i18nextEditorElement===`true`||e.dataset.locizeEditorIgnore===`true`);return!n&&e.parentElement?nc(e.parentElement):n}function rc(e,t){var n,r,i=function(){r&&clearTimeout(r),r=setTimeout(function(){n&&(n=!1)},200)},a=[],o=Ui(function(){t(a),a=[]},100),s=new MutationObserver(function(e){if(n){i();return}var t=!1;e.forEach(function(e){if(!(e.type===`attributes`&&!Ei.includes(e.attributeName))){var n=e.target.nodeType===3?e.target.parentElement:e.target;if(n){if(Object.keys(tc).forEach(function(e){tc[e].lastTriggerDate+6e4<Date.now()&&delete tc[e]}),e.type===`childList`){var r=0;if(nc(n)||(e.addedNodes.forEach(function(e){nc(e)||(r+=1)},0),e.removedNodes.forEach(function(e){nc(e)||(r+=1)},0)),r===0)return}if(t=!0,n.uniqueID){var i=tc[n.uniqueID]||{triggered:0};i.triggered+=1,i.lastTriggerDate=Date.now(),tc[n.uniqueID]=i}a.reduce(function(e,t){return!!(e||t.contains(n)||!n.parentElement)},!1)||(a=a.filter(function(e){return!n.contains(e)}),a.push(n))}}}),t&&o()});return{start:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};t([e]),s.observe(e,n)},skipNext:function(){n=!0}}}var ic=40;function ac(e){var t=Math.max(0,window.innerHeight-ic);return Math.max(0,Math.min(e,t))}function oc(e,t){var n=t.offsetWidth||0,r=Math.min(0,ic-n),i=Math.max(0,window.innerWidth-ic);return Math.max(r,Math.min(e,i))}function sc(){for(var e=0,t=0,n=0,r=0,i=document.getElementsByClassName(`i18next-editor-popup`),a=null,o=null,s=1e5,c=0;c<i.length;c++){var l=i[c],u=m(l);l.onmousedown=function(){this.style.zIndex=``+ ++s},u&&(u.parentPopup=l,u.onmousedown=d)}function d(e){o||(o=document.getElementById(`i18next-editor-popup-overlay`)),o&&(o.style.display=`block`),ka(),a=this.parentPopup,a.style.zIndex=``+ ++s,e=e||window.event,n=e.clientX,r=e.clientY,document.onmouseup=p,document.onmousemove=f}function f(i){a&&(i=i||window.event,e=n-i.clientX,t=r-i.clientY,n=i.clientX,r=i.clientY,a.style.top=ac(a.offsetTop-t)+`px`,a.style.left=oc(a.offsetLeft-e,a)+`px`)}function p(){Oa(),o&&(o.style.display=`none`);var e=document.getElementById(`i18next-editor-popup`);window.localStorage.setItem(`locize_popup_pos`,JSON.stringify({top:parseInt(document.defaultView.getComputedStyle(e).top,10),left:parseInt(document.defaultView.getComputedStyle(e).left,10)})),document.onmouseup=null,document.onmousemove=null}function m(e){var t=e.getElementsByClassName(`i18next-editor-popup-header`);return t.length===1?t[0]:null}}function cc(){for(var e=document.getElementsByClassName(`i18next-editor-popup`),t=null,n=null,r,i,a,o,s=0;s<e.length;s++){var c=e[s],l=document.createElement(`div`);l.className=`resizer-right`,c.appendChild(l),l.addEventListener(`mousedown`,f,!1),l.parentPopup=c;var u=document.createElement(`div`);u.className=`resizer-bottom`,c.appendChild(u),u.addEventListener(`mousedown`,f,!1),u.parentPopup=c;var d=document.createElement(`div`);d.className=`resizer-both`,c.appendChild(d),d.addEventListener(`mousedown`,f,!1),d.parentPopup=c}function f(e){ka(),n||(n=document.getElementById(`i18next-editor-popup-overlay`)),n&&(n.style.display=`block`),t=this.parentPopup,r=e.clientX,i=e.clientY,a=parseInt(document.defaultView.getComputedStyle(t).width,10),o=parseInt(document.defaultView.getComputedStyle(t).height,10),document.documentElement.addEventListener(`mousemove`,p,!1),document.documentElement.addEventListener(`mouseup`,m,!1)}function p(e){t.style.width=a+e.clientX-r+`px`,t.style.height=o+e.clientY-i+`px`}function m(){Oa(),n&&(n.style.display=`none`);var e=document.getElementById(`i18next-editor-popup`);window.localStorage.setItem(`locize_popup_size`,JSON.stringify({width:parseInt(document.defaultView.getComputedStyle(e).width,10),height:parseInt(document.defaultView.getComputedStyle(e).height,10)})),document.documentElement.removeEventListener(`mousemove`,p,!1),document.documentElement.removeEventListener(`mouseup`,m,!1)}}function lc(){return{getResource:function(e,t,n){return{}},setResource:function(e,t,n,r){},getResourceBundle:function(e,t,n){n({})},getDefaultNS:function(){},getLng:function(){},getSourceLng:function(){},getLocizeDetails:function(){return{}},bindLanguageChange:function(e){},bindMissingKeyHandler:function(e){},triggerRerender:function(){}}}function uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uc(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fc=lc();function pc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fc,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{show:!1,qsProp:`incontext`};if(typeof document>`u`)return;var n=t.show||Ji(t.qsProp||`incontext`)===`true`,r=document.getElementById(`locize`),i={};[`projectId`,`version`].forEach(function(e){if(r){var t=r.getAttribute(e.toLowerCase())||r.getAttribute(`data-`+e.toLowerCase());t===`true`&&(t=!0),t===`false`&&(t=!1),t!=null&&(i[e]=t)}}),i=dc(dc(dc({},e.getLocizeDetails()),i),t),z.config=i,z.init(e),qs(e),e?.bindLanguageChange(function(t){z.sendCurrentTargetLanguage(e.getLng())});function a(){if(!(!Xi&&!n)){var e=rc(document.body,function(e){e.forEach(function(e){ec(e)}),z.sendCurrentParsedContent()});if(e.start(),Oa(e),!Xi&&!document.getElementById(`i18next-editor-popup`)){var t=Va(ki(),function(){z.source=document.getElementById(`i18next-editor-iframe`)?.contentWindow,z.initialized=!1,z.initInterval&&(clearInterval(z.initInterval),delete z.initInterval),z.requestInitialize(i)});if(document.documentElement.append(t),sc(),cc(),typeof MutationObserver==`function`){var r=5,a=1e4,o=0,s=new MutationObserver(function(){if(!document.getElementById(`i18next-editor-popup`)){if(o>=r){s.disconnect();return}o++,document.documentElement.append(t)}});s.observe(document.documentElement,{childList:!0,subtree:!0}),setTimeout(function(){return s.disconnect()},a)}}if(typeof window<`u`){var c=window.document.location.href;z.sendHrefchanged(c);var l=window.document.querySelector(`body`);new window.MutationObserver(function(e){e.forEach(function(e){c!==window.document.location.href&&(c=window.document.location.href,z.sendHrefchanged(c))})}).observe(l,{childList:!0,subtree:!0})}}}if(document.body)return a();typeof window<`u`&&window.addEventListener(`load`,function(){a()})}function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mc(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(e){var t={getResource:function(t,n,r){return e.getResource&&e.getResource(t,n,r)},setResource:function(t,n,r,i){return e.addResource(t,n,r,i,{silent:!0})},getResourceBundle:function(t,n,r){e.loadNamespaces(n,function(){r(e.getResourceBundle(t,n))})},getDefaultNS:function(){return e.options.defaultNS},getLng:function(){return e.resolvedLanguage||e.languages&&e.languages[0]||e.options.lng},getSourceLng:function(){var t=e.options.fallbackLng;if(typeof t==`string`)return t;if(Array.isArray(t))return t[t.length-1];if(t&&t.default){if(typeof t.default==`string`)return t;if(Array.isArray(t.default))return t.default[t.default.length-1]}if(typeof t==`function`){var n=t(e.resolvedLanguage);if(typeof n==`string`)return n;if(Array.isArray(n))return n[n.length-1]}return`dev`},getLocizeDetails:function(){var n={backendName:e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(`.locize.`)>0?`I18NextLocizeBackend`:e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:`options.resources`,sourceLng:t.getSourceLng(),i18nFormat:e.options.compatibilityJSON===`v3`?`i18next_v3`:`i18next_v4`,i18nFramework:`i18next`,isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS,targetLngs:ya(new Set([].concat(e.options.preload,e.options.supportedLngs,[t.getLng()]))).filter(function(e){return e!==`cimode`&&e!==!1&&e!==`false`&&e!==void 0&&e!==t.getSourceLng()}),ns:ya(new Set([].concat(e.options.ns,e.options.fallbackNS,e.options.defaultNS))).filter(function(e){return e!==!1&&e!==`false`})};if(!e.options.backend&&!e.options.editor)return n;var r=e.options.editor||e.options.backend;return hc(hc({},n),{},{projectId:r.projectId,version:r.version})},bindLanguageChange:function(t){e.on(`languageChanged`,t)},bindMissingKeyHandler:function(t){e.options.missingKeyHandler=function(e,n,r,i,a,o){a||t(e,n,r,i)}},triggerRerender:function(){e.emit(`editorSaved`)}};return t}function _c(e,t){e.use(Ti),typeof t.postProcess==`string`?t.postProcess=[t.postProcess,`subliminal`]:Array.isArray(t.postProcess)?t.postProcess.push(`subliminal`):t.postProcess=`subliminal`,t.postProcessPassResolved=!0}var vc,yc=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e.qsProp=e.qsProp||`incontext`,{type:`3rdParty`,init:function(t){var n=t.options;vc=t;var r=gc(t),i=e.show||Ji(e.qsProp)===`true`;(Xi||i)&&_c(vc,n),pc(r,e)}}}(),bc=[`implementation`];function xc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.implementation,n=Ka(e,bc);pc(t,Object.keys(n).length>0?n:void 0)}typeof window<`u`&&(window.locizeStartStandalone=xc);let{i18next:$}=xr,Sc={saveMissingTo:`all`},Cc={reloadOnSave:!0,bindSavedMissing:!0};$.use(ei).use(yc),$.on(`editorSaved`,()=>{xr.forceRerender()});function wc(e,t){if(typeof window>`u`)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,`\\$&`);let n=RegExp(`[?&]`+e+`(=([^&#]*)|&|#|$)`).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g,` `)):``:null}function Tc(){if(typeof window>`u`||!window.location)return!1;let e=window.location.hostname;return e?e===`localhost`||e===`127.0.0.1`||e===`::1`||e===`0.0.0.0`||e.endsWith(`.localhost`)||e.endsWith(`.local`):!1}let Ec=!1;function Dc(e){Tc()||Ec||(Ec=!0,typeof console<`u`&&typeof console.warn==`function`&&console.warn(`locizify: reading credential "`+e+`" from URL query string on a non-local host. An attacker-crafted link can replace your locize credentials, redirecting saveMissing writes to an attacker-chosen project. Prefer configuring credentials via the <script id="locizify" apikey="..." projectid="..."> attributes instead.`))}let Oc=$.init;return $.init=(e={},t)=>{e={...Cc,...e,isLocizify:!0};let n=document.getElementById(`locizify`);if(n){let t={},r={};[`fallbackLng`,`saveMissing`,`debug`,`autorun`,`ele`,`cleanIndent`,`cleanWhitespace`,`namespace`,`namespaceFromPath`,`load`].forEach(e=>{let r=n.getAttribute(e.toLowerCase())||n.getAttribute(`data-`+e.toLowerCase());r===`true`&&(r=!0),r===`false`&&(r=!1),r!=null&&(t[e]=r)}),[`ignoreTags`,`ignoreIds`,`ignoreClasses`,`translateAttributes`,`mergeTags`,`inlineTags`,`ignoreInlineOn`,`ignoreCleanIndentFor`,`ns`].forEach(e=>{let r=n.getAttribute(e.toLowerCase())||n.getAttribute(`data-`+e.toLowerCase());r!=null&&(t[e]=r.split(`,`).map(e=>e.trim()))}),[`projectId`,`apiKey`,`referenceLng`,`version`,`allowedAddOrUpdateHost`,`autoPilot`,`cdnType`,`noCache`].forEach(e=>{let t=n.getAttribute(e.toLowerCase())||n.getAttribute(`data-`+e.toLowerCase());if(t===`true`&&(t=!0),t===`false`&&(t=!1),e.toLowerCase()===`autopilot`&&t===``&&(t=!0),t!=null&&(r[e]=t),!t){let n=e.toLowerCase();t=wc(n),t===`true`&&(t=!0),t===`false`&&(t=!1),n===`autopilot`&&t===``&&(t=!0),t!=null&&(r[e]=t,(n===`apikey`||n===`projectid`)&&Dc(n))}}),r.allowedAddOrUpdateHost&&(r.allowedAddOrUpdateHosts=[r.allowedAddOrUpdateHost],delete r.allowedAddOrUpdateHost),e={...Cc,...e,...t},e.backend={...e.backend,...r}}function r(e,n){t(e,n)}if(!e.backend.apiKey&&wc(`apikey`)&&(e.backend.apiKey=wc(`apikey`),Dc(`apikey`)),!e.backend.autoPilot||e.backend.autoPilot===`false`)return Oc.call($,{...e,...Sc},r);new ei(e.backend).getOptions((t,n)=>{t&&typeof console==`object`&&typeof console.error==`function`&&console.error(t),Oc.call($,{...n,...e,...Sc},r)})},xr.getLanguages=function(e){if($.services.backendConnector)$.services.backendConnector.backend.getLanguages(e);else{function t(){$.off(`initialized`,t),$.services.backendConnector.backend.getLanguages(e)}$.on(`initialized`,t)}},xr.getOptions=function(e){if($.services.backendConnector)$.services.backendConnector.backend.getOptions(e);else{function t(){$.off(`initialized`,t),$.services.backendConnector.backend.getOptions(e)}$.on(`initialized`,t)}},xr.editor={setEditorLng:ta},xr})();
|
|
223
|
+
`,t.appendChild(n);var r=document.createElement(`div`);return r.style=`display: flex; flex-direction: column; align-items: flex-start; margin-left: 2px; margin-top: 1px`,Object.keys(e).forEach(function(t){var n=e[t],i=so(t.replace(`attr:`,``),`${n.ns}:${n.key}`,function(e){e&&(e.stopPropagation(),e.preventDefault()),R.selectKey(n)});i.style.marginBottom=`2px`,r.appendChild(i)}),t.appendChild(r),{box:t,arrow:n}}function lo(e,t,n){var r=e.getBoundingClientRect(),i=document.createElement(`div`);return i.classList.add(`i18next-editor-highlight`),i.style=`position: absolute; z-index: 99999; pointer-events: none; top: ${r.top-2+window.scrollY}px; left: ${r.left-2+window.scrollX}px; height: ${r.height+4}px; width: ${r.width+4}px; border: ${t===`none`?`none`:`1px solid ${t}`}; border-radius: 15px; ${n?`box-shadow: inset 1px 1px 5px rgba(255, 255, 255, 0.1), inset -1px -1px 5px rgba(61, 67, 69, 0.3), 0 0 20px 0 ${n};`:``}`,i.setAttribute(`data-i18next-editor-element`,`true`),i}let uo=Math.min,fo=Math.max,po=Math.round,z=e=>({x:e,y:e}),mo={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ho(e,t,n){return fo(e,uo(t,n))}function go(e,t){return typeof e==`function`?e(t):e}function B(e){return e.split(`-`)[0]}function _o(e){return e.split(`-`)[1]}function vo(e){return e===`x`?`y`:`x`}function yo(e){return e===`y`?`height`:`width`}function V(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function bo(e){return vo(V(e))}function xo(e,t,n){n===void 0&&(n=!1);let r=_o(e),i=bo(e),a=yo(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ao(o)),[o,Ao(o)]}function So(e){let t=Ao(e);return[Co(e),t,Co(t)]}function Co(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}let wo=[`left`,`right`],To=[`right`,`left`],Eo=[`top`,`bottom`],Do=[`bottom`,`top`];function Oo(e,t,n){switch(e){case`top`:case`bottom`:return n?t?To:wo:t?wo:To;case`left`:case`right`:return t?Eo:Do;default:return[]}}function ko(e,t,n,r){let i=_o(e),a=Oo(B(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Co)))),a}function Ao(e){let t=B(e);return mo[t]+e.slice(t.length)}function jo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mo(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:jo(e)}function No(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Po(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=bo(t),s=yo(o),c=B(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(_o(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Fo(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=go(t,e),p=Mo(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=No(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=No(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}let Io=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Fo},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Po(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<50&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Po(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Lo=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=go(e,t)||{};if(l==null)return{};let d=Mo(u),f={x:n,y:r},p=bo(i),m=yo(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=uo(d[_],T),D=uo(d[v],T),ee=E,te=C-h[m]-D,O=C/2-h[m]/2+w,ne=ho(ee,O,te),k=!c.arrow&&_o(i)!=null&&O!==ne&&a.reference[m]/2-(O<ee?E:D)-h[m]/2<0,re=k?O<ee?O-ee:O-te:0;return{[p]:f[p]+re,data:{[p]:ne,centerOffset:O-ne-re,...k&&{alignmentOffset:re}},reset:k}}}),Ro=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=go(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=B(r),_=V(o),v=B(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ao(o)]:So(o)),x=p!==`none`;!d&&x&&b.push(...ko(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=xo(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==V(t))||T.every(e=>V(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=V(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},zo=new Set([`left`,`top`]);async function Bo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=B(n),s=_o(n),c=V(n)===`y`,l=zo.has(o)?-1:1,u=a&&c?-1:1,d=go(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}let Vo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Bo(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ho=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=go(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(B(i)),p=vo(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=ho(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=ho(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}};function Uo(){return typeof window<`u`}function Wo(e){return Go(e)?(e.nodeName||``).toLowerCase():`#document`}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){return((Go(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Go(e){return Uo()?e instanceof Node||e instanceof H(e).Node:!1}function W(e){return Uo()?e instanceof Element||e instanceof H(e).Element:!1}function G(e){return Uo()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Ko(e){return!Uo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function qo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Jo(e){return/^(table|td|th)$/.test(Wo(e))}function Yo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}let Xo=/transform|translate|scale|rotate|perspective|filter/,Zo=/paint|layout|strict|content/,Qo=e=>!!e&&e!==`none`,$o;function es(e){let t=W(e)?K(e):e;return Qo(t.transform)||Qo(t.translate)||Qo(t.scale)||Qo(t.rotate)||Qo(t.perspective)||!ns()&&(Qo(t.backdropFilter)||Qo(t.filter))||Xo.test(t.willChange||``)||Zo.test(t.contain||``)}function ts(e){let t=q(e);for(;G(t)&&!rs(t);){if(es(t))return t;if(Yo(t))return null;t=q(t)}return null}function ns(){return $o??($o=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`)),$o}function rs(e){return/^(html|body|#document)$/.test(Wo(e))}function K(e){return H(e).getComputedStyle(e)}function is(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(Wo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ko(e)&&e.host||U(e);return Ko(t)?t.host:t}function as(e){let t=q(e);return rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&qo(t)?t:as(t)}function os(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=as(e),i=r===e.ownerDocument?.body,a=H(r);if(i){let e=ss(a);return t.concat(a,a.visualViewport||[],qo(r)?r:[],e&&n?os(e):[])}else return t.concat(r,os(r,[],n))}function ss(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cs(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=G(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=po(n)!==a||po(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ls(e){return W(e)?e:e.contextElement}function us(e){let t=ls(e);if(!G(t))return z(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=cs(t),o=(a?po(n.width):n.width)/r,s=(a?po(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}let ds=z(0);function fs(e){let t=H(e);return!ns()||!t.visualViewport?ds:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ps(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function ms(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ls(e),o=z(1);t&&(r?W(r)&&(o=us(r)):o=us(e));let s=ps(a,n,r)?fs(a):z(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=H(a),t=r&&W(r)?H(r):r,n=e,i=ss(n);for(;i&&r&&t!==n;){let e=us(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=H(i),i=ss(n)}}return No({width:u,height:d,x:c,y:l})}function hs(e,t){let n=is(e).scrollLeft;return t?t.left+n:ms(U(e)).left+n}function gs(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-hs(e,n),y:n.top+t.scrollTop}}function _s(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=U(r),s=t?Yo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=z(1),u=z(0),d=G(r);if((d||!d&&!a)&&((Wo(r)!==`body`||qo(o))&&(c=is(r)),d)){let e=ms(r);l=us(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?gs(o,c):z(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function vs(e){return Array.from(e.getClientRects())}function ys(e){let t=U(e),n=is(e),r=e.ownerDocument.body,i=fo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+hs(e),s=-n.scrollTop;return K(r).direction===`rtl`&&(o+=fo(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function bs(e,t){let n=H(e),r=U(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ns();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=hs(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else l<=25&&(a+=l);return{width:a,height:o,x:s,y:c}}function xs(e,t){let n=ms(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=G(e)?us(e):z(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ss(e,t,n){let r;if(t===`viewport`)r=bs(e,n);else if(t===`document`)r=ys(U(e));else if(W(t))r=xs(t,n);else{let n=fs(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return No(r)}function Cs(e,t){let n=q(e);return n===t||!W(n)||rs(n)?!1:K(n).position===`fixed`||Cs(n,t)}function ws(e,t){let n=t.get(e);if(n)return n;let r=os(e,[],!1).filter(e=>W(e)&&Wo(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?q(e):e;for(;W(o)&&!rs(o);){let t=K(o),n=es(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||qo(o)&&!n&&Cs(e,o))?r=r.filter(e=>e!==o):i=t,o=q(o)}return t.set(e,r),r}function Ts(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Yo(t)?[]:ws(t,this._c):[].concat(n),r],o=Ss(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ss(t,a[e],i);s=fo(n.top,s),c=uo(n.right,c),l=uo(n.bottom,l),u=fo(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Es(e){let{width:t,height:n}=cs(e);return{width:t,height:n}}function Ds(e,t,n){let r=G(t),i=U(t),a=n===`fixed`,o=ms(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=z(0);function l(){c.x=hs(i)}if(r||!r&&!a)if((Wo(t)!==`body`||qo(i))&&(s=is(t)),r){let e=ms(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?gs(i,s):z(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Os(e){return K(e).position===`static`}function ks(e,t){if(!G(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function As(e,t){let n=H(e);if(Yo(e))return n;if(!G(e)){let t=q(e);for(;t&&!rs(t);){if(W(t)&&!Os(t))return t;t=q(t)}return n}let r=ks(e,t);for(;r&&Jo(r)&&Os(r);)r=ks(r,t);return r&&rs(r)&&Os(r)&&!es(r)?n:r||ts(e)||n}let js=async function(e){let t=this.getOffsetParent||As,n=this.getDimensions,r=await n(e.floating);return{reference:Ds(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ms(e){return K(e).direction===`rtl`}let Ns={convertOffsetParentRelativeRectToViewportRelativeRect:_s,getDocumentElement:U,getClippingRect:Ts,getOffsetParent:As,getElementRects:js,getClientRects:vs,getDimensions:Es,getScale:us,isElement:W,isRTL:Ms},Ps=Vo,Fs=Ho,Is=Ro,Ls=Lo,Rs=(e,t,n)=>{let r=new Map,i={platform:Ns,...n},a={...i.platform,_c:r};return Io(e,t,{...i,platform:a})};var zs={};function Bs(e,t,n){var r=ka(t);if(!e.highlightBox){var i=lo(r,`none`,`rgba(0,0,0,0.1)`);document.body.appendChild(i),e.highlightBox=i}if(!e.ribbonBox){var a=co(n),o=a.box,s=a.arrow;document.body.appendChild(o),Rs(r,o,{placement:`right`,middleware:[Is({fallbackPlacements:[`left`,`bottom`]}),Fs(),Ps(function(e){var t=e.placement,n=e.rects;return t===`bottom`?-n.reference.height/2-n.floating.height/2:35}),Ls({element:s})]}).then(function(e){var t=e.x,n=e.y,r=e.middlewareData,i=e.placement;Object.assign(o.style,{left:`${t}px`,top:`${n}px`,display:`inline-flex`});var a=i.split(`-`)[0],c={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[a];if(r.arrow){var l=r.arrow,u=l.x,d=l.y;Object.assign(s.style,M(M({left:u==null?``:`${u}px`,top:d==null?``:`${d}px`,right:``,bottom:``},c,`${a===`bottom`?-18:-25}px`),`transform`,a===`bottom`?`rotate(90deg)`:a===`left`?`rotate(180deg)`:``))}}),e.ribbonBox=o}}function Vs(e,t,n){if(!zs[e.id]){var r=ka(t);if(!e.highlightBox){var i=lo(r,ki.warning);document.body.appendChild(i),e.highlightBox=i}}}function Hs(e,t,n){var r=e.id,i=ka(t);if(!e.highlightBox){var a=lo(i,`none`,ki.gray);document.body.appendChild(a),e.highlightBox=a}zs[r]=!0}function Us(e,t,n){zs[e.id]&&(J(e,t,n,!1),Hs(e,t))}function J(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=e.id;r&&zs[i]||(e.highlightBox&&(document.body.removeChild(e.highlightBox),delete e.highlightBox),e.ribbonBox&&(document.body.removeChild(e.ribbonBox),delete e.ribbonBox),delete zs[i])}function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ws(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Y={};function Ks(){Object.values(Y).forEach(function(e){document.body.contains(e.node)||(J(e.id,e.node),delete Y[e.id])})}function qs(e,t,n,r,i,a){!e||!n||!r||!i||(Y[e]||(Y[e]={id:e,node:i,subliminal:t}),t&&(Y[e].subliminal=t),Y[e].keys=Gs(Gs({},Y[e].keys),{},M({},`${n}`,r)),a&&(Y[e].children=Gs(Gs({},Y[e].children),{},M({},`${n}-${a.map(function(e){return e.childIndex}).join(`,`)}`,a))))}function Js(e){return Y[e]}var X={save:qs,clean:Ks,get:Js,data:Y};(function(){if(!(typeof Document>`u`)){var e=1;Document.prototype.hasOwnProperty(`uniqueID`)||(console.info(`"document.uniqueID" not implemented; creating shim`),Object.defineProperty(Document.prototype,`uniqueID`,{get:function(){return e++},enumerable:!1,configurable:!1}),Object.defineProperty(Element.prototype,`uniqueID`,{get:function(){return Object.defineProperty(this,`uniqueID`,{value:document.uniqueID,writable:!1,enumerable:!1,configurable:!1}),this.uniqueID},enumerable:!1,configurable:!0}))}})();function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ys(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Z,Q,Zs=[];function Qs(e){Q=e}function $s(e,t){if(!(e.dataset&&e.dataset.i18nextEditorElement===`true`)){t(e);var n=X.get(e.uniqueID),r=F.get(e.uniqueID);if(n||r){var i=e.parentElement?.uniqueID;F.remove(i,e.parentElement)}for(var a=e.childNodes,o=0;o<a.length;o++)$s(a[o],t)}}function ec(e,t,n,r){var i=n.invisibleMeta,a=n.text;if(!(!i||!i.key||!i.ns))return Z||(Z=Q.getSourceLng()),Xs(Xs({eleUniqueID:e,textType:t,children:r&&r.map?r.map(function(e){return e.childIndex}).join(`,`):null,qualifiedKey:`${i.ns}:${i.key}`},i),{},{extractedText:a,i18nTargetLng:Q?.getLng(),i18nSourceLng:Z,i18nRawText:M(M({},`${i.lng}`,i.source===`translation`&&Q?Q?.getResource(i.lng,i.ns,i.key):null),`${Z}`,i.source===`translation`&&Q?Q?.getResource(Z,i.ns,i.key):null)})}function tc(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=r[t];if(o){Z||(Z=Q.getSourceLng());var s=Q.getLng();return{eleUniqueID:e,textType:t,children:a&&a.map?a.map(function(e){return e.childIndex}).join(`,`):null,qualifiedKey:o.key&&(o.ns||(n=Q)!=null&&n.getDefaultNS())?`${o.ns||Q?.getDefaultNS()}:${o.key}`:null,key:o.key,ns:o.ns||Q?.getDefaultNS(),extractedText:i,i18nTargetLng:s,i18nSourceLng:Z,i18nRawText:M(M({},`${s}`,Q&&o.ns&&o.key&&Q?.getResource(s,o.ns,o.key)||i),`${Z}`,Q&&o.ns&&o.key?Q?.getResource(Z,o.ns,o.key):null)}}}function nc(e){return/^\s*$/.test(e)}function rc(e,t,n,r,i,a,o){var s=X.get(e),c=s&&s.keys[`${n}`]||{},l=r[`${n}`]||{};!l.key&&c.key&&(l.key=c.key),!l.ns&&c.ns&&(l.ns=c.ns),r[`${n}`]=l;var u=tc(e,n,r,o,a);u.qualifiedKey?(X.save(e,null,n,u,i,a),F.removeKey(e,n,i)):F.save(e,n,i,o)}function ic(e){if(!(Oi.indexOf(e.nodeName)>-1)){var t=Yi(e),n=!1;if(e.childNodes&&!Zs.includes(e.uniqueID)){var r=[];e.childNodes.forEach(function(t,i){if(r.length&&t.nodeName!==`#text`&&(Zs.push(t.uniqueID),r.push({childIndex:i,child:t})),t.nodeName===`#text`){var a=t.textContent;if(!nc(a)){var o=a.trim(),s=xi(o),c=Si(o);if(s&&(n=!0),c&&s){var l=bi(o);F.remove(e.uniqueID,e),X.save(e.uniqueID,l.invisibleMeta,`text`,ec(e.uniqueID,`text`,l),e)}else if(s&&!r.length){var u=bi(o);F.remove(e.uniqueID,e),X.save(e.uniqueID,u.invisibleMeta,`text`,ec(e.uniqueID,`text`,u),e)}else if(c)r.push({childIndex:i,child:t,text:a});else if(r.length&&!s)r.push({childIndex:i,child:t,text:a});else if(r.length&&s){r.push({childIndex:i,child:t,text:a});var d=bi(r.reduce(function(e,t){return e+t.text},``));F.removeKey(e.uniqueID,`html`,e,a),X.save(e.uniqueID,d.invisibleMeta,`html`,ec(e.uniqueID,`html`,d,r),e,r),r=[]}}}}),n||e.childNodes.forEach(function(n,i){r.length&&n.nodeName!==`#text`&&Zs.push(n.uniqueID);var a=n.textContent;t&&t.html&&i<e.childNodes.length-1?r.push({childIndex:i,child:n,text:a}):t&&t.html&&i===e.childNodes.length-1?(r.push({childIndex:i,child:n,text:a}),rc(e.uniqueID,null,`html`,t,e,r,e.innerHTML),r=[]):a&&(t&&t.text?rc(e.uniqueID,null,`text`,t,e,void 0,a):n.nodeName===`#text`&&!nc(a)&&F.save(e.uniqueID,`text`,e,a))})}e.getAttribute&&Di.forEach(function(n){var r=e.getAttribute(n);if(xi(r)){var i=bi(r);F.removeKey(e.uniqueID,n,e),X.save(e.uniqueID,i.invisibleMeta,n,ec(e.uniqueID,`${n}`,i),e)}else r&&(t&&t[n]?rc(e.uniqueID,null,n,t,e,void 0,r):F.save(e.uniqueID,n,e,r))})}}function ac(e){return Z=void 0,$s(e,ic),X.clean(),Zs=[],X.data}var oc={};function sc(e){if(e.uniqueID){var t=oc[e.uniqueID];if(t&&t.triggered>10&&t.lastTriggerDate+500<Date.now())return!t.warned&&console&&(console.warn(`locize ::: ignoring element change - an element is rerendering too often in short interval`,`
|
|
224
|
+
`,`consider adding the "data-locize-editor-ignore:" attribute to the element:`,e),t.warned=!0),!0}var n=e.dataset&&(e.dataset.i18nextEditorElement===`true`||e.dataset.locizeEditorIgnore===`true`);return!n&&e.parentElement?sc(e.parentElement):n}function cc(e,t){var n,r,i=function(){r&&clearTimeout(r),r=setTimeout(function(){n&&(n=!1)},200)},a=[],o=Ki(function(){t(a),a=[]},100),s=new MutationObserver(function(e){if(n){i();return}var t=!1;e.forEach(function(e){if(!(e.type===`attributes`&&!Di.includes(e.attributeName))){var n=e.target.nodeType===3?e.target.parentElement:e.target;if(n){if(Object.keys(oc).forEach(function(e){oc[e].lastTriggerDate+6e4<Date.now()&&delete oc[e]}),e.type===`childList`){var r=0;if(sc(n)||(e.addedNodes.forEach(function(e){sc(e)||(r+=1)},0),e.removedNodes.forEach(function(e){sc(e)||(r+=1)},0)),r===0)return}if(t=!0,n.uniqueID){var i=oc[n.uniqueID]||{triggered:0};i.triggered+=1,i.lastTriggerDate=Date.now(),oc[n.uniqueID]=i}a.reduce(function(e,t){return!!(e||t.contains(n)||!n.parentElement)},!1)||(a=a.filter(function(e){return!n.contains(e)}),a.push(n))}}}),t&&o()});return{start:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};t([e]),s.observe(e,n)},skipNext:function(){n=!0}}}var lc=40;function uc(e){var t=Math.max(0,window.innerHeight-lc);return Math.max(0,Math.min(e,t))}function dc(e,t){var n=t.offsetWidth||0,r=Math.min(0,lc-n),i=Math.max(0,window.innerWidth-lc);return Math.max(r,Math.min(e,i))}function fc(){for(var e=0,t=0,n=0,r=0,i=document.getElementsByClassName(`i18next-editor-popup`),a=null,o=null,s=0;s<i.length;s++){var c=i[s],l=p(c);l&&(l.parentPopup=c,l.onmousedown=u)}function u(e){o||(o=document.getElementById(`i18next-editor-popup-overlay`)),o&&(o.style.display=`block`),Pa(),a=this.parentPopup,e=e||window.event,n=e.clientX,r=e.clientY,document.onmouseup=f,document.onmousemove=d}function d(i){a&&(i=i||window.event,e=n-i.clientX,t=r-i.clientY,n=i.clientX,r=i.clientY,a.style.top=uc(a.offsetTop-t)+`px`,a.style.left=dc(a.offsetLeft-e,a)+`px`)}function f(){Na(),o&&(o.style.display=`none`);var e=document.getElementById(`i18next-editor-popup`);window.localStorage.setItem(`locize_popup_pos`,JSON.stringify({top:parseInt(document.defaultView.getComputedStyle(e).top,10),left:parseInt(document.defaultView.getComputedStyle(e).left,10)})),document.onmouseup=null,document.onmousemove=null}function p(e){var t=e.getElementsByClassName(`i18next-editor-popup-header`);return t.length===1?t[0]:null}}function pc(){for(var e=document.getElementsByClassName(`i18next-editor-popup`),t=null,n=null,r,i,a,o,s=0;s<e.length;s++){var c=e[s],l=document.createElement(`div`);l.className=`resizer-right`,c.appendChild(l),l.addEventListener(`mousedown`,f,!1),l.parentPopup=c;var u=document.createElement(`div`);u.className=`resizer-bottom`,c.appendChild(u),u.addEventListener(`mousedown`,f,!1),u.parentPopup=c;var d=document.createElement(`div`);d.className=`resizer-both`,c.appendChild(d),d.addEventListener(`mousedown`,f,!1),d.parentPopup=c}function f(e){Pa(),n||(n=document.getElementById(`i18next-editor-popup-overlay`)),n&&(n.style.display=`block`),t=this.parentPopup,r=e.clientX,i=e.clientY,a=parseInt(document.defaultView.getComputedStyle(t).width,10),o=parseInt(document.defaultView.getComputedStyle(t).height,10),document.documentElement.addEventListener(`mousemove`,p,!1),document.documentElement.addEventListener(`mouseup`,m,!1)}function p(e){t.style.width=a+e.clientX-r+`px`,t.style.height=o+e.clientY-i+`px`}function m(){Na(),n&&(n.style.display=`none`);var e=document.getElementById(`i18next-editor-popup`);window.localStorage.setItem(`locize_popup_size`,JSON.stringify({width:parseInt(document.defaultView.getComputedStyle(e).width,10),height:parseInt(document.defaultView.getComputedStyle(e).height,10)})),document.documentElement.removeEventListener(`mousemove`,p,!1),document.documentElement.removeEventListener(`mouseup`,m,!1)}}function mc(){return{getResource:function(e,t,n){return{}},setResource:function(e,t,n,r){},getResourceBundle:function(e,t,n){n({})},getDefaultNS:function(){},getLng:function(){},getSourceLng:function(){},getLocizeDetails:function(){return{}},bindLanguageChange:function(e){},bindMissingKeyHandler:function(e){},triggerRerender:function(){}}}function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hc(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _c=mc();function vc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_c,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{show:!1,qsProp:`incontext`};if(typeof document>`u`)return;var n=t.show||Zi(t.qsProp||`incontext`)===`true`,r=document.getElementById(`locize`),i={};[`projectId`,`version`,`ribbonPosition`].forEach(function(e){if(r){var t=r.getAttribute(e.toLowerCase())||r.getAttribute(`data-`+e.toLowerCase());t===`true`&&(t=!0),t===`false`&&(t=!1),t!=null&&(i[e]=t)}}),i=gc(gc(gc({},e.getLocizeDetails()),i),t),R.config=i,R.init(e),Qs(e),e?.bindLanguageChange(function(t){R.sendCurrentTargetLanguage(e.getLng())});function a(){if(!(!ta&&!n)){var e=cc(document.body,function(e){e.forEach(function(e){ac(e)}),R.sendCurrentParsedContent()});if(e.start(),Na(e),!ta&&!document.getElementById(`i18next-editor-popup`)){$i(`starting InContext popup with config`,i,`iframe:`,ji()),i.projectId||console.error(`[locize] InContext editor: no projectId configured (script tag attribute, i18next editor/backend options or startStandalone options) - the editor will not find your project.`),setTimeout(function(){R.initialized||(console.error(`[locize] InContext editor did not connect within 15s. Likely causes: you are not logged in at locize (open https://www.locize.app in another tab and log in), the page CSP blocks frame-src `+ji()+`, or an adblocker blocked the iframe. Enable diagnostics via localStorage.setItem('locize-debug', 'true').`),Ka(`Could not connect to the locize editor. Are you logged in at locize.app? See the browser console for details.`))},15e3);var t=qa(ji(),function(){R.source=document.getElementById(`i18next-editor-iframe`)?.contentWindow,R.initialized=!1,R.initInterval&&(clearInterval(R.initInterval),delete R.initInterval),R.requestInitialize(i)},i);if(document.documentElement.append(t),fc(),pc(),typeof MutationObserver==`function`){var r=5,a=1e4,o=0,s=new MutationObserver(function(){if(!document.getElementById(`i18next-editor-popup`)){if(o>=r){s.disconnect();return}o++,document.documentElement.append(t)}});s.observe(document.documentElement,{childList:!0,subtree:!0}),setTimeout(function(){return s.disconnect()},a)}}if(typeof window<`u`){var c=window.document.location.href;R.sendHrefchanged(c);var l=window.document.querySelector(`body`);new window.MutationObserver(function(e){e.forEach(function(e){c!==window.document.location.href&&(c=window.document.location.href,R.sendHrefchanged(c))})}).observe(l,{childList:!0,subtree:!0})}}}if(document.body)return a();typeof window<`u`&&window.addEventListener(`load`,function(){a()})}function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yc(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xc(e){var t={getResource:function(t,n,r){return e.getResource&&e.getResource(t,n,r)},setResource:function(t,n,r,i){return e.addResource(t,n,r,i,{silent:!0})},getResourceBundle:function(t,n,r){e.loadNamespaces(n,function(){r(e.getResourceBundle(t,n))})},getDefaultNS:function(){return e.options.defaultNS},getLng:function(){return e.resolvedLanguage||e.languages&&e.languages[0]||e.options.lng},getSourceLng:function(){var t=e.options.fallbackLng;if(typeof t==`string`)return t;if(Array.isArray(t))return t[t.length-1];if(t&&t.default){if(typeof t.default==`string`)return t;if(Array.isArray(t.default))return t.default[t.default.length-1]}if(typeof t==`function`){var n=t(e.resolvedLanguage);if(typeof n==`string`)return n;if(Array.isArray(n))return n[n.length-1]}return`dev`},getLocizeDetails:function(){var n={backendName:e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(`.locize.`)>0?`I18NextLocizeBackend`:e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:`options.resources`,sourceLng:t.getSourceLng(),i18nFormat:e.options.compatibilityJSON===`v3`?`i18next_v3`:`i18next_v4`,i18nFramework:`i18next`,isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS,targetLngs:wa(new Set([].concat(e.options.preload,e.options.supportedLngs,[t.getLng()]))).filter(function(e){return e!==`cimode`&&e!==!1&&e!==`false`&&e!==void 0&&e!==t.getSourceLng()}),ns:wa(new Set([].concat(e.options.ns,e.options.fallbackNS,e.options.defaultNS))).filter(function(e){return e!==!1&&e!==`false`})};if(!e.options.backend&&!e.options.editor)return n;var r=bc(bc({},e.options.backend),e.options.editor);return bc(bc({},n),{},{projectId:r.projectId,version:r.version})},bindLanguageChange:function(t){e.on(`languageChanged`,t)},bindMissingKeyHandler:function(t){e.options.missingKeyHandler=function(e,n,r,i,a,o){a||t(e,n,r,i)}},triggerRerender:function(){e.emit(`editorSaved`)}};return t}function Sc(e,t){e.use(Ei),typeof t.postProcess==`string`?t.postProcess=[t.postProcess,`subliminal`]:Array.isArray(t.postProcess)?t.postProcess.push(`subliminal`):t.postProcess=`subliminal`,t.postProcessPassResolved=!0}var Cc,wc=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e.qsProp=e.qsProp||`incontext`,{type:`3rdParty`,init:function(t){var n=t.options;Cc=t;var r=xc(t),i=e.show||Zi(e.qsProp)===`true`;(ta||i)&&Sc(Cc,n),vc(r,e)}}}(),Tc=[`implementation`];function Ec(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.implementation,n=Qa(e,Tc);vc(t,Object.keys(n).length>0?n:void 0)}typeof window<`u`&&(window.locizeStartStandalone=Ec);let{i18next:$}=Sr,Dc={saveMissingTo:`all`},Oc={reloadOnSave:!0,bindSavedMissing:!0};$.use(ti).use(wc),$.on(`editorSaved`,()=>{Sr.forceRerender()});function kc(e,t){if(typeof window>`u`)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,`\\$&`);let n=RegExp(`[?&]`+e+`(=([^&#]*)|&|#|$)`).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g,` `)):``:null}function Ac(){if(typeof window>`u`||!window.location)return!1;let e=window.location.hostname;return e?e===`localhost`||e===`127.0.0.1`||e===`::1`||e===`0.0.0.0`||e.endsWith(`.localhost`)||e.endsWith(`.local`):!1}let jc=!1;function Mc(e){Ac()||jc||(jc=!0,typeof console<`u`&&typeof console.warn==`function`&&console.warn(`locizify: reading credential "`+e+`" from URL query string on a non-local host. An attacker-crafted link can replace your locize credentials, redirecting saveMissing writes to an attacker-chosen project. Prefer configuring credentials via the <script id="locizify" apikey="..." projectid="..."> attributes instead.`))}let Nc=$.init;return $.init=(e={},t)=>{e={...Oc,...e,isLocizify:!0};let n=document.getElementById(`locizify`);if(n){let t={},r={};[`fallbackLng`,`saveMissing`,`debug`,`autorun`,`ele`,`cleanIndent`,`cleanWhitespace`,`namespace`,`namespaceFromPath`,`load`].forEach(e=>{let r=n.getAttribute(e.toLowerCase())||n.getAttribute(`data-`+e.toLowerCase());r===`true`&&(r=!0),r===`false`&&(r=!1),r!=null&&(t[e]=r)}),[`ignoreTags`,`ignoreIds`,`ignoreClasses`,`translateAttributes`,`mergeTags`,`inlineTags`,`ignoreInlineOn`,`ignoreCleanIndentFor`,`ns`].forEach(e=>{let r=n.getAttribute(e.toLowerCase())||n.getAttribute(`data-`+e.toLowerCase());r!=null&&(t[e]=r.split(`,`).map(e=>e.trim()))}),[`projectId`,`apiKey`,`referenceLng`,`version`,`allowedAddOrUpdateHost`,`autoPilot`,`cdnType`,`noCache`].forEach(e=>{let t=n.getAttribute(e.toLowerCase())||n.getAttribute(`data-`+e.toLowerCase());if(t===`true`&&(t=!0),t===`false`&&(t=!1),e.toLowerCase()===`autopilot`&&t===``&&(t=!0),t!=null&&(r[e]=t),!t){let n=e.toLowerCase();t=kc(n),t===`true`&&(t=!0),t===`false`&&(t=!1),n===`autopilot`&&t===``&&(t=!0),t!=null&&(r[e]=t,(n===`apikey`||n===`projectid`)&&Mc(n))}}),r.allowedAddOrUpdateHost&&(r.allowedAddOrUpdateHosts=[r.allowedAddOrUpdateHost],delete r.allowedAddOrUpdateHost),e={...Oc,...e,...t},e.backend={...e.backend,...r}}function r(e,n){t(e,n)}if(!e.backend.apiKey&&kc(`apikey`)&&(e.backend.apiKey=kc(`apikey`),Mc(`apikey`)),!e.backend.autoPilot||e.backend.autoPilot===`false`)return Nc.call($,{...e,...Dc},r);new ti(e.backend).getOptions((t,n)=>{t&&typeof console==`object`&&typeof console.error==`function`&&console.error(t),Nc.call($,{...n,...e,...Dc},r)})},Sr.getLanguages=function(e){if($.services.backendConnector)$.services.backendConnector.backend.getLanguages(e);else{function t(){$.off(`initialized`,t),$.services.backendConnector.backend.getLanguages(e)}$.on(`initialized`,t)}},Sr.getOptions=function(e){if($.services.backendConnector)$.services.backendConnector.backend.getOptions(e);else{function t(){$.off(`initialized`,t),$.services.backendConnector.backend.getOptions(e)}$.on(`initialized`,t)}},Sr.editor={setEditorLng:oa},Sr})();
|