@digital-blueprint/mono-app
Version:
[GitHub Repository](https://github.com/digital-blueprint/mono-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/mono-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/mono-app/) | [Mono Bundle](https://github.com/digital
1,481 lines • 139 kB
JavaScript
let e=e=>e,t,n,r,i,a,o,s,c,l,u,d,f,p,ee,te,m,h,g,_,ne,re,ie,ae,oe,se,ce;function le(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 v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?le(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){var t=de(e,`string`);return typeof t==`symbol`?t:t+``}function de(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}
/*!
* License: LGPL-2.1-or-later
* Dependencies:
*
* @dbp-toolkit/app-shell: 0.3.17 (LGPL-2.1-or-later)
* @dbp-toolkit/language-select: 0.3.7 (LGPL-2.1-or-later)
* @dbp-toolkit/auth: 0.3.8 (LGPL-2.1-or-later)
* @dbp-toolkit/notification: 0.3.8 (LGPL-2.1-or-later)
* @dbp-toolkit/theme-switcher: 0.1.5 (LGPL-2.1-or-later)
* universal-router: 10.0.1 (MIT)
* @dbp-toolkit/matomo: 0.2.12 (LGPL-2.1-or-later)
* @tugraz/web-components: 0.3.12 (LGPL-2.1-or-later)
* keycloak-js: 26.2.1 (Apache-2.0)
* i18next: 23.16.8 (MIT)
* @dbp-toolkit/common: 0.3.17 (LGPL-2.1-or-later)
* @lit/reactive-element: 2.1.1 (BSD-3-Clause)
* lit-html: 3.3.1 (BSD-3-Clause)
* lit-element: 4.2.1 (BSD-3-Clause)
* @open-wc/dedupe-mixin: 2.0.1 (MIT)
* @open-wc/scoped-elements: 3.0.6 (MIT)
* dialog-polyfill: 0.5.6 (BSD)
*/
const b=e=>typeof e==`string`,x=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},fe=e=>e==null?``:``+e,pe=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},me=/###/g,he=e=>e&&e.indexOf(`###`)>-1?e.replace(me,`.`):e,ge=e=>!e||b(e),S=(e,t,n)=>{let r=b(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(ge(e))return{};let t=he(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return ge(e)?{}:{obj:e,k:he(r[i])}},_e=(e,t,n)=>{let{obj:r,k:i}=S(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=S(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=S(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},ve=(e,t,n,r)=>{let{obj:i,k:a}=S(e,t,Object);i[a]=i[a]||[],i[a].push(n)},C=(e,t)=>{let{obj:n,k:r}=S(e,t);if(n)return n[r]},ye=(e,t,n)=>{let r=C(e,n);return r===void 0?C(t,n):r},be=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?b(e[r])||e[r]instanceof String||b(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):be(e[r],t[r],n):e[r]=t[r]);return e},w=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`);var xe={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`};const Se=e=>b(e)?e.replace(/[&<>"'\/]/g,e=>xe[e]):e;var Ce=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}};const we=[` `,`,`,`?`,`!`,`;`],Te=new Ce(20),Ee=(e,t,n)=>{t||=``,n||=``;let r=we.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Te.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},De=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];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`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},T=e=>e&&e.replace(`_`,`-`),Oe={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};var E=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Oe,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(b(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,v({prefix:`${this.prefix}:${t}:`},this.options))}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},ke=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)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},Ae=class extends ke{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{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.indexOf(e)<0&&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){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):b(n)&&i?o.push(...n.split(i)):o.push(n)));let s=C(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!b(n)?s:De(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),_e(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)(b(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){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=C(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?be(s,n,i):s=v(v({},s),n),_e(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||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?v({},this.getResource(e,t)):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}},je={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};const Me={};var Ne=class e extends ke{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),pe([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=E.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}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.indexOf(n)>-1,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:b(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:b(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n=v({},n)),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,ee=d&&d.exactUsedKey||o,te=Object.prototype.toString.apply(f),m=[`[object Number]`,`[object Function]`,`[object RegExp]`],h=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,_=!b(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(g&&f&&_&&m.indexOf(te)<0&&!(b(h)&&Array.isArray(f))){if(!n.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(p,f,v(v({},n),{},{ns:s})):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?ee:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,v(v({},n),{},{joinArrays:!1,ns:s})),t[e]===i&&(t[e]=f[e])}f=t}}else if(g&&b(h)&&Array.isArray(f))f=f.join(h),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!b(n.count),p=e.hasDefaultValue(n),ee=u?this.pluralResolver.getSuffix(l,n.count,n):``,te=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,m=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),h=m&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${ee}`]||n[`defaultValue${te}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=h),this.isValidLookup(f)||(s=!0,f=o);let g=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,_=p&&h!==f&&this.options.updateMissing;if(s||i||_){if(this.logger.log(_?`updateKey`:`missingKey`,l,c,o,_?h:f),a){let e=this.resolve(o,v(v({},n),{},{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,n.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(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:g;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,_,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,_,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);m&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||h)})}):r(e,o,h))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,v(v({},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(v(v({},n),{},{interpolation:v(v({},this.options.interpolation),n.interpolation)}));let o=b(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!b(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=v(v({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=b(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=je.handle(s,e,t,this.options&&this.options.postProcessPassResolved?v({i18nResolved:v(v({},r),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return b(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!b(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&(b(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!Me[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Me[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&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){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!b(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r=v(v({},this.options.interpolation.defaultVariables),r)),!n){r=v({},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.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}};const Pe=e=>e.charAt(0).toUpperCase()+e.slice(1);var Fe=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create(`languageUtils`)}getScriptPartFromCode(e){if(e=T(e),!e||e.indexOf(`-`)<0)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=T(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(b(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pe(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pe(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Pe(n[2].toLowerCase()))),n.join(`-`)}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.indexOf(e)>-1}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.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),b(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(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 b(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(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))):b(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}};let Ie=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],Le={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)};const Re=[`v1`,`v2`,`v3`],ze=[`v4`],Be={zero:0,one:1,two:2,few:3,many:4,other:5},Ve=()=>{let e={};return Ie.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Le[t.fc]}})}),e};var He=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create(`pluralResolver`),(!this.options.compatibilityJSON||ze.includes(this.options.compatibilityJSON))&&(typeof Intl>`u`||!Intl.PluralRules)&&(this.options.compatibilityJSON=`v3`,this.logger.error(`Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.`)),this.rules=Ve(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=T(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(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Be[e]-Be[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Re.includes(this.options.compatibilityJSON)}};const Ue=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=ye(e,t,n);return!a&&i&&b(n)&&(a=De(e,n,r),a===void 0&&(a=De(t,n,r))),a},We=e=>e.replace(/\$/g,`$$$$`);var Ge=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};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:ee,nestingOptionsSeparator:te,maxReplaces:m,alwaysFormat:h}=e.interpolation;this.escape=t===void 0?Se:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?w(i):a||`{{`,this.suffix=o?w(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?w(d):f||w(`$t(`),this.nestingSuffix=p?w(p):ee||w(`)`),this.nestingOptionsSeparator=te||`,`,this.maxReplaces=m||1e3,this.alwaysFormat=h===void 0?!1:h,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&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.indexOf(this.formatSeparator)<0){let i=Ue(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,v(v(v({},r),t),{},{interpolationkey:e})):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Ue(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,v(v(v({},r),t),{},{interpolationkey:a}))};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>We(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?We(this.escape(e)):We(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 l==`function`){let t=l(e,i,r);a=b(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !b(a)&&!this.useRawValueToEscape&&(a=fe(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a=v(v({},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.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a=v({},n),a=a.replace&&!b(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!b(i))return i;b(i)||(i=fe(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,v(v({},n),{},{interpolationkey:r[1].trim()})),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}};const Ke=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?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}},D=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a=v(v({},a),{},{[i.interpolationkey]:void 0}));let o=r+JSON.stringify(a),s=t[o];return s||(s=e(T(r),i),t[o]=s),s(n)}};var qe=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create(`formatter`),this.options=e,this.formats={number:D((e,t)=>{let n=new Intl.NumberFormat(e,v({},t));return e=>n.format(e)}),currency:D((e,t)=>{let n=new Intl.NumberFormat(e,v(v({},t),{},{style:`currency`}));return e=>n.format(e)}),datetime:D((e,t)=>{let n=new Intl.DateTimeFormat(e,v({},t));return e=>n.format(e)}),relativetime:D((e,t)=>{let n=new Intl.RelativeTimeFormat(e,v({},t));return e=>n.format(e,t.range||`day`)}),list:D((e,t)=>{let n=new Intl.ListFormat(e,v({},t));return e=>n.format(e)})},this.init(e)}init(e){this.formatSeparator=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Ke(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,v(v(v({},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)}};const Je=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};var Ye=class extends ke{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=E.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&&this.backend.init&&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=>{ve(n.loaded,[i],a),Je(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){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;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.call(this,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){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();b(e)&&(e=this.languageUtils.toResolveHierarchy(e)),b(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){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,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){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&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&&this.backend.create){let s=v(v({},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)}}};const Xe=()=>({debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,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]),b(e[1])&&(t.defaultValue=e[1]),b(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,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),Ze=e=>(b(e.ns)&&(e.ns=[e.ns]),b(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),b(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),O=()=>{},Qe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})};var $e=class e extends ke{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ze(e),this.services={},this.logger=E,this.modules={external:[]},Qe(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(b(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=Xe();this.options=v(v(v({},r),this.options),Ze(t)),this.options.compatibilityAPI!==`v1`&&(this.options.interpolation=v(v({},r.interpolation),this.options.interpolation)),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?E.init(i(this.modules.logger),this.options):E.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=qe);let n=new Fe(this.options);this.store=new Ae(this.options.resources,this.options);let a=this.services;a.logger=E,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new He(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Ge(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Ye(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Ne(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=O,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(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=x(),o=()=>{let e=(e,t)=>{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),a.resolve(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,n=b(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=x();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=O,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`&&je.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`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=x();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=b(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function e(t,i){let a;if(typeof i!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=v({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||e.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(t)?t.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${t}`:t,r.t(c,a)};return b(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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=x();return this.options.ns?(b(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=x();b(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&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||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;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&&this.services.languageUtils||new Fe(Xe());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){return new e(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i=v(v(v({},this.options),t),{},{isClone:!0}),a=new e(i);return(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=v({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Ae(this.store.data,i),a.services.resourceStore=a.store),a.translator=new Ne(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);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}}};const k=$e.createInstance();k.createInstance=$e.createInstance,k.createInstance,k.dir,k.init,k.loadResources,k.reloadResources,k.use,k.changeLanguage,k.getFixedT,k.t,k.exists,k.setDefaultNamespace,k.hasLoadedNamespace,k.loadNamespaces,k.loadLanguages;const A={};async function et(e,t){return await(await fetch(e+t+`/translation.json`,{headers:{"Content-Type":`application/json`}})).json()}async function tt(e,t){if(A[t]===void 0){let n=et(e,t);return A[t]=n,n}else return A[t]}function nt(e){return`--`+e+`-override`}function rt(e,t,n,r){r===void 0&&(r=`translation`);let i=nt(r);var a={lng:t,fallbackLng:[n,t,...Object.keys(e)],debug:!1,ns:[i,r],defaultNS:r,fallbackNS:r,initImmediate:!1,initAsync:!1,resources:{}};Object.keys(e).forEach(function(t){a.resources[t]={[r]:e[t]}});var o=k.createInstance();return o.init(a),console.assert(o.isInitialized),o}async function it(e,t){let n=(t.dataset&&t.dataset.tagName||t.tagName).toLowerCase(),r=e.options.fallbackNS,i=nt(r),a=!1;for(let r of e.languages){if(tt(t.langDir,r),A[r]=await A[r],e.removeResourceBundle(r,i),A[r]===void 0||A[r][n]===void 0)continue;let o=A[r][n];a=!0,e.addResourceBundle(r,i,o)}e.setDefaultNamespace(a?i:r),t.requestUpdate()}
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const j=globalThis,at=j.ShadowRoot&&(j.ShadyCSS===void 0||j.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,ot=Symbol(),st=new WeakMap;var ct=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==ot)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(at&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=st.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&st.set(t,e))}return e}toString(){return this.cssText}};const lt=e=>new ct(typeof e==`string`?e:e+``,void 0,ot),M=(e,...t)=>new ct(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,ot),ut=(e,t)=>{if(at)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=j.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},dt=at?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return lt(t)})(e):e,{is:ft,defineProperty:pt,getOwnPropertyDescriptor:mt,getOwnPropertyNames:ht,getOwnPropertySymbols:gt,getPrototypeOf:_t}=Object,N=globalThis,vt=N.trustedTypes,yt=vt?vt.emptyScript:``,bt=N.reactiveElementPolyfillSupport,P=(e,t)=>e,xt={toAttribute(e,t){switch(t){case Boolean:e=e?yt:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},St=(e,t)=>!ft(e,t),Ct={attribute:!0,type:String,converter:xt,reflect:!1,useDefault:!1,hasChanged:St};Symbol.metadata??(Symbol.metadata=Symbol(`metadata`)),N.litPropertyMetadata??=new WeakMap;var F=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ct){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&pt(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=mt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ct}static _$Ei(){if(this.hasOwnProperty(P(`elementProperties`)))return;let e=_t(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(P(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P(`properties`))){let e=this.properties,t=[...ht(e),...gt(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(dt(e))}else e!==void 0&&t.push(dt(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.call(e)}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ut(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.call(e))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(e=>e.hostDisconnected?.call(e))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?xt:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?xt:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){let r=this.constructor,i=this[e];if(n??=r.getPropertyOptions(e),!((n.hasChanged??St)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(r._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{var n;e=this.shouldUpdate(t),e?(this.willUpdate(t),(n=this._$EO)!=null&&n.forEach(e=>e.hostUpdate?.call(e)),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)!=null&&t.forEach(e=>e.hostUpdated?.call(e)),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};F.elementStyles=[],F.shadowRootOptions={mode:`open`},F[P(`elementProperties`)]=new Map,F[P(`finalized`)]=new Map,bt?.({ReactiveElement:F}),(N.reactiveElementVersions??=[]).push(`2.1.1`);
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const wt=globalThis,I=wt.trustedTypes,Tt=I?I.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Et=`$lit$`,L=`lit$${Math.random().toFixed(9).slice(2)}$`,Dt=`?`+L,Ot=`<${Dt}>`,R=document,z=()=>R.createComment(``),B=e=>e===null||typeof e!=`object`&&typeof e!=`function`,kt=Array.isArray,At=e=>kt(e)||typeof e?.[Symbol.iterator]==`function`,jt=`[
\f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,Nt=/>/g,H=RegExp(`>|${jt}(?:([^\\s"'>=/]+)(${jt}*=${jt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Pt=/'/g,Ft=/"/g,It=/^(?:script|style|textarea|title)$/i,U=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),W=Symbol.for(`lit-noChange`),G=Symbol.for(`lit-nothing`),Lt=new WeakMap,K=R.createTreeWalker(R,129);function Rt(e,t){if(!kt(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Tt===void 0?t:Tt.createHTML(t)}const zt=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=V;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===V?c[1]===`!--`?o=Mt:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=H):(It.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=H):o=Nt:o===H?c[0]===`>`?(o=i??V,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?H:c[3]===`"`?Ft:Pt):o===Ft||o===Pt?o=H:o===Mt||o===Nt?o=V:(o=H,i=void 0);let d=o===H&&e[t+1].startsWith(`/>`)?` `:``;a+=o===V?n+Ot:l>=0?(r.push(s),n.slice(0,l)+Et+n.slice(l)+L+d):n+L+(l===-2?t:d)}return[Rt(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var Bt=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=zt(t,n);if(this.el=e.createElement(l,r),K.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=K.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(Et)){let t=u[o++],n=i.getAttribute(e).split(L),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Wt:r[1]===`?`?Gt:r[1]===`@`?Kt:Ut}),i.removeAttribute(e)}else e.startsWith(L)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(It.test(i.tagName)){let e=i.textContent.split(L),t=e.length-1;if(t>0){i.textContent=I?I.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],z()),K.nextNode(),c.push({type:2,index:++a});i.append(e[t],z())}}}else if(i.nodeType===8)if(i.data===Dt)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(L,e+1))!==-1;)c.push({type:7,index:a}),e+=L.length-1}a++}}static createElement(e,t){let n=R.createElement(`template`);return n.innerHTML=e,n}};function q(e,t,n=e,r){var i,a;if(t===W)return t;let o=r===void 0?n._$Cl:n._$Co?.[r],s=B(t)?void 0:t._$litDirective$;return o?.constructor!==s&&((i=o)!=null&&(a=i._$AO)!=null&&a.call(i,!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,n,r)),r===void 0?n._$Cl=o:(n._$Co??=[])[r]=o),o!==void 0&&(t=q(e,o._$AS(e,t.values),o,r)),t}var Vt=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??R).importNode(t,!0);K.currentNode=r;let i=K.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new Ht(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new qt(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=K.nextNode(),a++)}return K.currentNode=R,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},Ht=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=q(this,e,t),B(e)?e===G||e==null||e===``?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==W&&this._(e):e._$litType$===void 0?e.nodeType===void 0?At(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==G&&B(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Bt.createElement(Rt(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Vt(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Lt.get(e.strings);return t===void 0&&Lt.set(e.strings,t=new Bt(e)),t}k(t){kt(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(z()),this.O(z()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for((n=this._$AP)?.call(this,!1,!0,t);e!==this._$AB;){var n;let t=e.nextSibling;e.remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.call(this,e))}},Ut=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=G,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=q(this,e,t,0),a=!B(e)||e!==this._$AH&&e!==W,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=q(this,r[n+o],t,o),s===W&&(s=this._$AH[o]),a||=!B(s)||s!==this._$AH[o],s===G?e=G:e!==G&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Wt=class extends Ut{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===G?void 0:e}},Gt=class extends Ut{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==G)}},Kt=class extends Ut{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=q(this,e,t,0)??G)===W)return;let n=this._$AH,r=e===G&&n!==G||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==G&&(n===G||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},qt=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){q(this,e)}};const Jt=wt.litHtmlPolyfillSupport;Jt?.(Bt,Ht),(wt.litHtmlVersions??=[]).push(`3.3.1`);const Yt=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new Ht(t.insertBefore(z(),e),e,void 0,n??{})}return i._$AI(e),i},Xt=globalThis;var J=class extends F{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;let t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Yt(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}};J._$litElement$=!0,J.finalized=!0,Xt.litElementHydrateSupport?.call(Xt,{LitElement:J});const Zt=Xt.litElementPolyfillSupport;Zt?.({LitElement:J}),(Xt.litElementVersions??=[]).push(`4.2.1`);
/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const Qt=e=>e??G,$t=(e,t,n)=>(customElements.get(e)===t||customElements.define(e,t,n),!0),en=(e,t={})=>{let n=nn(t);return new URL(e,n).href},tn=(e,t,n={})=>{if(t===void 0)return console.warn(`getAssetURL called without package name, use getAbsoluteURL instead`),en(e,n);let r=`local/`+e+`/`+t,i=nn(n);return new URL(r,i).href},nn=(e={})=>{let t=new URL(e.metaUrl===void 0?import.meta.url:e.metaUrl);return t.pathname.split(`/`).slice(-2)[0]===`shared`&&(t=new URL(`..`,t)),t};function rn(){let e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=[...e].map(e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20,32)}`}var an=`@dbp-toolkit/common`;function on(e){return tn(an,`icons/`+encodeURI(e)+`.svg`)}var sn=class extends J{constructor(){super(),this.name=`bolt`,this.ariaLabel=void 0}static get properties(){return{name:{type:String},ariaLabel:{type:String,attribute:`aria-label`,reflect:!0}}}static get styles(){return M(t||=e`
:host {
display: inline-block;
height: 1em;
width: 1em;
min-width: 1em;
min-height: 1em;
top: 0.125em;
position: relative;
}
#svg {
height: 100%;
width: 100%;
background-repeat: no-repeat;
background-position: center;
background-color: currentColor;
mask-repeat: no-repeat;
mask-position: center;
mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
-webkit-mask-size: 100% 100%;
}
`)}render(){let t=on(this.name),r=this.name.trim().split(` `).join(``);return U(n||=e`
<style>
#svg {
-webkit-mask-image: var(--dbp-override-icon-${0}, url(${0}));
mask-image: var(--dbp-override-icon-${0}, url(${0}));
}
</style>
<div
id="svg"
aria-label="${0}"></div>
`,r,t,r,t,Qt(this.ariaLabel?this.ariaLabel:void 0))}},cn=class extends J{constructor(){super(),this.text=``}static get properties(){return{text:{type:String}}}static get styles(){return M(r||=e`
.outer {
display: inline-block;
vertical-align: sub;
}
.inner {
display: flex;
}
.ring {
display: inline-block;
position: relative;
width: 1em;
height: 1em;
}
.ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 100%;
height: 100%;
border: 0.2em solid currentColor;
border-radius: 50%;
animation: ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: currentColor transparent transparent transparent;
}
.ring div:nth-child(1) {
animation-delay: -0.45s;
}
.ring div:nth-child(2) {
animation-delay: -0.3s;
}
.ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.text {
display: inline-block;
margin-left: 0.5em;
font-size: 0.7em;
}
`)}render(){return U(i||=e`
<div class="outer">
<div class="inner">
<div class="ring">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
${0}
</div>
</div>
`,this.text===``?U(o||=e``):U(a||=e`
<div class="text">${0}</div>
`,this.text))}};const ln=new WeakMap;function un(e,t){let n=t;for(;n;){if(ln.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}function dn(e){return t=>{if(un(e,t))return t;let n=e(t);return ln.set(n,e),n}}const fn=`3.0.0`,pn=window.scopedElementsVersions||(window.scopedElementsVersions=[]);pn.includes(fn)||pn.push(fn);const mn=dn(e=>{var t;return t=class extends e{static get scopedElementsVersion(){return fn}get registry(){return this.constructor.__registry}set registry(e){this.constructor.__registry=e}attachShadow(e){let{scopedElements:t}=this.constructor;if(!this.registry||this.registry===this.constructor.__registry&&!Object.prototype.hasOwnProperty.call(this.constructor,`__registry`)){this.registry=new CustomElementRegistry;for(let[e,n]of Object.entries(t??{}))this.registry.define(e,n)}return super.attachShadow(v(v({},e),{},{customElements:this.registry,registry:this.registry}))}},y(t,`scopedElements`,void 0),y(t,`__registry`,void 0),t}),hn=dn(e=>class extends mn(e){createRenderRoot(){var e;let{shadowRootOptions:t,elementStyles:n}=this.constructor,r=this.attachShadow(t);return this.renderOptions.creationScope=r,ut(r,n),(e=this.renderOptions).renderBefore??(e.renderBefore=r.firstChild),r}});function gn(){return!!(globalThis.ShadowRoot?.prototype.createElement&&globalThis.ShadowRoot?.prototype.importNode)}const _n=dn(e=>class extends hn(e){constructor(){super()}createScopedElement(e){return(gn()?this.shadowRoot:document).createElement(e)}defineScopedElement(e,t){let n=this.registry.get(e),r=n&&n!==t;return!gn()&&r&&console.error([`You are trying to re-register the "${e}" custom element with a different class via ScopedElementsMixin.`,`This is only possible with a CustomElementRegistry.`,`Your browser does not support this feature so you will need to load a polyfill for it.`,`Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.`,`e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.`,`For more details you can visit https://open-wc.org/docs/development/scoped-elements/`].join(`
`)),n?this.registry.get(e):this.registry.define(e,t)}attachShadow(e){let{scopedElements:t}=this.constructor;if(!this.registry||this.registry===this.constructor.__registry&&!Object.prototype.hasOwnProperty.call(this.constructor,`__registry`)){this.registry=gn()?new CustomElementRegistry:customElements;for(let[e,n]of Object.entries(t??{}))this.defineScopedElement(e,n)}return Element.prototype.attachShadow.call(this,v(v({},e),{},{customElements:this.registry,registry:this.registry}))}createRenderRoot(){let{shadowRootOptions:e,elementStyles:t}=this.constructor,n=this.attachShadow(e);return gn()&&(this.renderOptions.creationScope=n),n instanceof ShadowRoot&&(ut(n,t),this.renderOptions.renderBefore=this.renderOptions.renderBefore||n.firstChild),n}});function vn(){return M(s||=e`
:host {
/* new new variables */
--dbp-background: var(--dbp-override-background, #ffffff);
--dbp-content: var(--dbp-override-content, #222120);
--dbp-content-surface: var(--dbp-override-content-surface, var(--dbp-content));
--dbp-on-content-surface: var(--dbp-override-on-content-surface, var(--dbp-background));
--dbp-border: var(--dbp-override-border, 1px solid #222120);
--dbp-border-radius: var(--dbp-override-border-radius, 0px);
--dbp-primary: var(--dbp-override-primary, #3775c1);
--dbp-primary-surface: var(--dbp-override-primary-surface, var(--dbp-primary));
--dbp-on-primary-surface: var(
--dbp-override-on-primary-surface,
var(--dbp-on-content-surface)
);
--dbp-primary-surface-border-color: var(
--dbp-override-primary-surface-border-color,
var(--dbp-primary)
);
--dbp-secondary: var(--dbp-override-secondary, #222120);
--dbp-secondary-surface: var(--dbp-override-secondary-surface, var(--dbp-secondary));
--dbp-on-secondary-surface: var(
--dbp-override-on-secondary-surface,
var(--dbp-on-content-surface)
);
--dbp-secondary-surface-border-color: var(
--dbp-override-secondary-surface-border-color,
var(--dbp-secondary)
);
--dbp-muted: var(--dbp-override-muted, #767676);
--dbp-muted-surface: var(--dbp-override-muted-surface, var(--dbp-muted));
--dbp-on-muted-surface: var(
--dbp-override-on-muted-surface,
var(--dbp-on-content-surface)
);
--dbp-muted-surface-border-color: var(
--dbp-override-muted-surface-border-color,
var(--dbp-muted)
);
--dbp-accent: var(--dbp-override-accent, #9e1e4d);
--dbp-accent-surface: var(--dbp-override-accent-surface, var(--dbp-accent));
--dbp-on-accent-surface: var(
--dbp-override-on-accent-surface,
var(--dbp-on-content-surface)
);
--dbp-accent-surface-border-color: var(
--dbp-override-accent-surface-border-color,
var(--dbp-accent)
);
--dbp-info: var(--dbp-override-info, #38808a);
--dbp-info-surface: var(--dbp-override-info-surface, var(--dbp-info));
--dbp-on-info-surface: var(
--dbp-override-on-info-surface,
var(--dbp-on-content-surface)
);
--dbp-info-surface-border-color: var(
--dbp-override-info-surface-border-color,
var(--dbp-info)
);
--dbp-success: var(--dbp-override-success, #338555);
--dbp-success-surface: var(--dbp-override-success-surface, var(--dbp-success));
--dbp-on-success-surface: var(
--dbp-override-on-success-surface,
var(--dbp-on-content-surface)
);
--dbp-success-surface-border-color: var(
--dbp-override-success-surface-border-color,
var(--dbp-success)
);
--dbp-warning: var(--dbp-override-warning, #bf8808);
--dbp-warning-surface: var(--dbp-override-warning-surface, var(--dbp-warning));
--dbp-on-warning-surface: var(
--dbp-override-on-warning-surface,
var(--dbp-on-content-surface)
);
--dbp-warning-surface-border-color: var(
--dbp-override-warning-surface-border-color,
var(--dbp-warning)
);
--dbp-danger: var(--dbp-override-danger, #cc3232);
--dbp-danger-surface: var(--dbp-override-danger-surface, var(--dbp-danger));
--dbp-on-danger-surface: var(
--dbp-override-on-danger-surface,
var(--dbp-on-content-surface)
);
--dbp-danger-surface-border-color: var(
--dbp-override-danger-surface-border-color,
var(--dbp-danger)
);
--dbp-hover-background-color: var(--dbp-override-hover-background-color);
--dbp-hover-color: var(--dbp-override-hover-color);
}
#root {
background-color: var(--dbp-background);
color: var(--dbp-content);
}
::-moz-selection {
color: var(--dbp-on-primary-surface);
background: var(--dbp-primary-surface);
}
::selection {
color: var(--dbp-on-primary-surface);
background: var(--dbp-primary-surface);
}
`)}function yn(t=!0){return M(c||=e`
h2 {
font-weight: 300;
}
h3 {
font-weight: 300;
margin-top: 0px;
margin-bottom: 0.75rem;
}
p {
font-size: 1em;
}
.field:not(:last-child) {
margin-bottom: 0.75rem;
}
.field.has-addons {
display: flex;
justify-content: flex-start;
}
.input,
.textarea,
.select select {
border: solid 1px var(--dbp-muted);
border-radius: var(--dbp-border-radius);
padding-bottom: calc(0.375em - 1px);
padding-left: calc(0.625em - 1px);
padding-right: calc(0.625em - 1px);
padding-top: calc(0.375em - 1px);
}
.input::placeholder,
.textarea::placeholder,
.select select::placeholder {
color: var(--dbp-muted);
}
input,
::placeholder,
textarea,
select,
.select select {
font-size: inherit;
font-family: inherit;
}
input::-moz-focus-inner {
border: 0;
}
:focus-visible {
outline: none !important;
outline-width: 0 !important;
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: 0px 0px 3px 1px var(--dbp-primary);
}
.control {
box-sizing: border-box;
clear: both;
font-size: 1rem;
position: relative;
text-align: left;
}
.label {
margin-bottom: 0.5em;
display: block;
font-weight: 600;
}
.hidden {
display: none;
}
a {
color: var(--dbp-content);
cursor: pointer;
text-decoration: none;
}
a.is-download {
border-bottom: var(--dbp-border);
transition:
background-color 0.15s,
color 0.15s;
}
a.is-download:hover {
color: var(--dbp-hover-color, var(--dbp-content));
background-color: var(--dbp-hover-background-color);
}
.title {
color: var(--dbp-content);
font-size: 1em;
line-height: 1.125;
}
#headline h1 {
font-size: 2em;
font-weight: normal;
padding-top: 10px;
}
${0}.int-link-internal
.button[disabled], .file-cta[disabled], .file-name[disabled], .input[disabled], .pagination-ellipsis[disabled],
.pagination-link[disabled], .pagination-next[disabled], .pagination-previous[disabled], .select fieldset[disabled] select,
.select select[disabled], .textarea[disabled], fieldset[disabled] .button, fieldset[disabled] .file-cta,
fieldset[disabled] .file-name, fieldset[disabled] .input, fieldset[disabled] .pagination-ellipsis,
fieldset[disabled] .pagination-link, fieldset[disabled] .pagination-next, fieldset[disabled] .pagination-previous,
fieldset[disabled] .select select, fieldset[disabled] .textarea {
cursor: not-allowed;
}
.input,
.select select,
.textarea {
background-color: var(--dbp-background);
border-color: var(--dbp-muted);
border-radius: var(--dbp-border-radius);
color: var(--dbp-content);
}
.input[disabled] {
color: var(--dbp-muted);
}
*,
::after,
::before {
box-sizing: inherit;
}
select:not(.select),
.dropdown-menu {
-moz-appearance: none;
-webkit-appearance: none;
background-color: var(--dbp-background);
background: calc(100% - 0.4rem) center no-repeat
url('${0}');
background-size: 25%;
border: var(--dbp-border);
border-radius: var(--dbp-border-radius);
color: var(--dbp-content);
padding: 0.14rem 1rem 0.14rem 0.14rem;
}
::-moz-selection {
color: var(--dbp-on-primary-surface);
background: var(--dbp-primary-surface);
}
::selection {
color: var(--dbp-on-primary-surface);
background: var(--dbp-primary-surface);
}
`,M(t?l||=e`
blockquote,
body,
dd,
dl,
dt,
fieldset,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
iframe,
legend,
li,
ol,
p,
pre,
textarea,
ul {
margin: 0;
padding: 0;
}
`:u||=e``),lt(on(`chevron-down`)))}function bn(){return M(d||=e`
.notification {
background-color: var(--dbp-background);
color: var(--dbp-content);
padding: 1.25rem 2.5rem 1.25rem 1.5rem;
position: relative;
border-radius: var(--dbp-border-radius);
border: var(--dbp-border);
}
.notification.has-progress-bar {
padding-bottom: 1rem;
}
.notification a:not(.button):not(.dropdown-item) {
color: currentColor;
text-decoration: underline;
}
.notification strong {
color: currentColor;
}
.notification code,
.notification pre {
color: var(--dbp-on-muted-surface);
background: var(--dbp-muted-surface);
border-color: var(--dbp-muted-surface-border-color);
}
.notification pre code {
background: transparent;
}
.notification dbp-icon {
font-size: 1.4em;
margin-right: 0.4em;
}
.notification > .delete {
position: absolute;
right: 0.5rem;
top: 0.5rem;
}
.notification .title,
.notification .subtitle,
.notification .content {
color: currentColor;
}
.notification.is-primary {
background-color: var(--dbp-primary-surface);
color: var(--dbp-on-primary-surface);
border-color: var(--dbp-primary-surface-border-color);
}
.notification.is-info {
background-color: var(--dbp-info-surface);
color: var(--dbp-on-info-surface);
border-color: var(--dbp-info-surface-border-color);
}
.notification.is-success {
background-color: var(--dbp-success-surface);
color: var(--dbp-on-success-surface);
border-color: var(--dbp-success-surface-border-color);
}
.notification.is-warning {
background-color: var(--dbp-warning-surface);
color: var(--dbp-on-warning-surface);
border-color: var(--dbp-warning-surface-border-color);
}
.notification.is-danger {
background-color: var(--dbp-danger-surface);
color: var(--dbp-on-danger-surface);
border-color: var(--dbp-danger-surface-border-color);
}
.progress-container {
width: 100%;
margin-top: 0.5rem;
}
progress[value] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: none;
height: 10px;
}
.progress {
height: 10px;
animation: runProgress var(--dbp-progress-timeout, 5s) linear forwards 0.25s;
}
@keyframes runProgress {
0% {
width: 0%;
background: rgba(255, 255, 255, 0.3);
}
100% {
width: 100%;
background: rgba(255, 255, 255, 1);
}
}
.enter-animation {
animation: slide-up 0.4s cubic-bezier(0.25, 0, 0.3, 1);
}
@keyframes slide-up {
0% {
transform: translateY(50%);
opacity: 0.3;
}
75% {
transform: translateY(10%);
opacity: 0.75;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes scale-up {
0% {
transform: scale(0.75);
opacity: 0.3;
}
75% {
transform: scale(0.9);
opacity: 0.75;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.is-removing {
/*animation: fadeOut 0.25s forwards;*/
animation: scale-down 2s ease-out; /*cubic-bezier(.25,0,.3,1);*/
}
@keyframes scale-down {
0% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(0.9);
opacity: 0.5;
}
100% {
transform: scale(0.75);
opacity: 0.15;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
transform: translateY(-100%);
}
}
`)}function xn(){return M(f||=e`
button.button,
.button,
button.dt-button {
border: var(--dbp-border);
border-radius: var(--dbp-border-radius);
color: var(--dbp-content);
cursor: pointer;
justify-content: center;
padding-bottom: calc(0.375em - 1px);
padding-left: 0.75em;
padding-right: 0.75em;
padding-top: calc(0.375em - 1px);
text-align: center;
white-space: nowrap;
font-size: inherit;
font-weight: bolder;
font-family: inherit;
transition:
all 0.15s ease 0s,
color 0.15s ease 0s;
background: var(--dbp-secondary-surface);
color: var(--dbp-on-secondary-surface);
border-color: var(--dbp-secondary-surface-border-color);
}
button.button:hover:enabled,
.button:hover:enabled,
button.dt-button:hover:enabled,
button.dt-button:hover:not(.disabled) {
color: var(--dbp-hover-color, var(--dbp-on-secondary-surface));
background-color: var(--dbp-hover-background-color, var(--dbp-secondary-surface));
border-color: var(
--dbp-hover-background-color,
var(--dbp-secondary-surface-border-color)
);
}
button.button.is-small,
.button.is-small {
border-radius: calc(var(--dbp-border-radius) / 2);
font-size: 0.75rem;
}
button.button.is-icon,
.button.is-icon {
border: none;
background: none;
padding: 0px;
width: var(--dbp-button-size, 40px);
height: var(--dbp-button-size, 40px);
display: flex;
justify-content: center;
align-items: center;
color: currentColor;
}
button.button.is-icon dbp-icon,
.button.is-icon dbp-icon,
dbp-button-icon {
top: 0px;
font-size: 1.2em;
}
button.button.is-icon:hover:enabled,
.button.is-icon:hover:enabled {
background-color: var(--dbp-hover-background-color, unset);
color: var(--dbp-hover-color, currentColor);
border: 0 none;
}
button.button.is-primary,
.button.is-primary {
background-color: var(--dbp-primary-surface);
border-color: var(--dbp-primary-surface-border-color);
color: var(--dbp-on-primary-surface);
}
button.button.is-primary:hover:enabled,
.button.is-primary:hover:enabled {
background-color: var(--dbp-hover-background-color, var(--dbp-primary-surface));
color: var(--dbp-hover-color, var(--dbp-on-primary-surface));
border-color: var(
--dbp-hover-background-color,
var(--dbp-primary-surface-border-color)
);
}
button.button.is-secondary,
.button.is-secondary {
background-color: var(--dbp-secondary-surface);
color: var(--dbp-on-secondary-surface);
border-color: var(--dbp-secondary-surface-border-color);
}
button.button.is-secondary:hover:enabled,
.button.is-secondary:hover:enabled {
background-color: var(--dbp-hover-background-color, var(--dbp-secondary-surface));
color: var(--dbp-hover-color, var(--dbp-on-secondary-surface));
border-color: var(
--dbp-hover-background-color,
var(--dbp-secondary-surface-border-color)
);
}
button.button.is-info,
.button.is-info {
background-color: var(--dbp-info-surface);
color: var(--dbp-on-info-surface);
border-color: var(--dbp-info-surface-border-color);
}
button.button.is-info:hover:enabled,
.button.is-info:hover:enabled {
background-color: var(--dbp-hover-background-color, var(--dbp-info-surface));
color: var(--dbp-hover-color, var(--dbp-on-info-surface));
border-color: var(--dbp-hover-background-color, var(--dbp-info-surface-border-color));
}
button.button.is-success,
.button.is-success {
background-color: var(--dbp-success-surface);
border-color: var(--dbp-success-surface-border-color);
color: var(--dbp-on-success-surface);
}
button.button.is-success:hover:enabled,
.button.is-success:hover:enabled {
background-color: var(--dbp-hover-background-color, var(--dbp-success-surface));
color: var(--dbp-hover-color, var(--dbp-on-success-surface));
border-color: var(
--dbp-hover-background-color,
var(--dbp-success-surface-border-color)
);
}
button.button.is-warning,
.button.is-warning {
background-color: var(--dbp-warning-surface);
border-color: var(--dbp-warning-surface-border-color);
color: var(--dbp-on-warning-surface);
}
button.button.is-warning:hover:enabled,
.button.is-warning:hover:enabled {
background-color: var(--dbp-hover-background-color, var(--dbp-warning-surface));
color: var(--dbp-hover-color, var(--dbp-on-warning-surface));
border-color: var(
--dbp-hover-background-color,
var(--dbp-warning-surface-border-color)
);
}
.button.button.is-danger,
.button.is-danger {
background-color: var(--dbp-danger-surface);
border-color: var(--dbp-danger-surface-border-color);
color: var(--dbp-on-danger-surface);
}
.button.button.is-danger:hover:enabled,
.button.is-danger:hover:enabled {
background-color: var(--dbp-hover-background-color, var(--dbp-danger-surface));
color: var(--dbp-hover-color, var(--dbp-on-danger-surface));
border-color: var(--dbp-hover-background-color, var(--dbp-danger-surface-border-color));
}
button.button[disabled],
.button[disabled],
fieldset[disabled] .button {
opacity: 0.4;
cursor: not-allowed;
}
button:focus-visible {
outline: none !important;
outline-width: 0 !important;
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: 0px 0px 3px 1px var(--dbp-primary);
}
`)}function Sn(){return M(p||=e`
/*
Radiobutton:
<label class="button-container">
Labeltext
<input type="radio" name="myradiobutton">
<span class="radiobutton"></span>
</label>
Checkbox:
<label class="button-container">
Labeltext
<input type="checkbox" name="mycheckbox">
<span class="checkmark"></span>
</label>
*/
.button-container {
display: block;
position: relative;
padding-left: 35px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.button-container input[type='radio'],
.button-container input[type='checkbox'] {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
left: 0px;
}
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 21px;
width: 21px;
background-color: var(--dbp-background);
border-radius: 0px;
border: var(--dbp-border);
}
.radiobutton {
position: absolute;
top: 0;
left: 0;
height: 19px;
width: 19px;
background-color: var(--dbp-background);
border: solid;
border-radius: 100%;
border: var(--dbp-border);
box-sizing: content-box;
}
.button-container input[type='radio']:checked ~ .radiobutton:after {
border-color: var(--dbp-background);
}
.button-container input[type='radio']:disabled ~ .radiobutton {
border-color: var(--dbp-muted);
background-color: var(--dbp-muted);
}
.button-container input[type='radio']:checked:disabled ~ .radiobutton:after {
border-color: var(--dbp-muted);
background-color: var(--dbp-muted);
}
.radiobutton:after {
content: '';
position: absolute;
display: none;
}
.button-container input[type='radio']:checked ~ .radiobutton:after {
display: block;
}
.button-container .radiobutton:after {
left: 0px;
top: 0px;
width: 100%;
height: 100%;
background-color: var(--dbp-content);
border: none;
border-radius: 100%;
border: 2px solid var(--dbp-background);
box-sizing: border-box;
}
.button-container input[type='checkbox']:checked ~ .checkmark:after {
border-bottom: 1px solid var(--dbp-content);
border-right: 1px solid var(--dbp-content);
border-width: 0 2px 2px 0;
}
.button-container input[type='checkbox']:focus-visible ~ .checkmark {
outline: none !important;
outline-width: 0 !important;
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: 0px 0px 3px 1px var(--dbp-primary);
}
.button-container input[type='checkbox']:disabled ~ .checkmark {
border-color: var(--dbp-muted);
background-color: var(--dbp-muted);
}
.button-container input[type='checkbox']:checked:disabled ~ .checkmark:after {
border-color: var(--dbp-muted);
}
.checkmark:after {
content: '';
position: absolute;
display: none;
}
.button-container input[type='checkbox']:checked ~ .checkmark:after {
display: block;
}
.button-container .checkmark:after {
left: 8px;
top: 3px;
width: 5px;
height: 11px;
border: 1px solid var(--dbp-content);
border-width: 0 2px 2px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
@media only screen and (orientation: portrait) and (max-width: 768px) {
.checkmark {
width: 30px;
height: 30px;
top: 5px;
}
.button-container {
line-height: 40px;
}
.button-container {
padding-left: 40px;
}
.button-container .checkmark::after {
left: 10px;
width: 10px;
height: 19px;
}
.button-container input[type='checkbox']:checked ~ .checkmark::after {
top: 1px;
left: 6px;
width: 5px;
height: 11px;
}
.button-container {
line-height: 1em;
}
}
`)}function Cn(){return M(ee||=e`
.tags {
align-items: center;
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
}
.tags .tag {
margin-bottom: 0.5rem;
}
.tags .tag:not(:last-child) {
margin-right: 0.5rem;
}
.tags:last-child {
margin-bottom: -0.5rem;
}
.tags:not(:last-child) {
margin-bottom: 1rem;
}
.tags.are-medium .tag:not(.is-normal):not(.is-large) {
font-size: 1rem;
}
.tags.are-large .tag:not(.is-normal):not(.is-medium) {
font-size: 1.25rem;
}
.tags.is-centered {
justify-content: center;
}
.tags.is-centered .tag {
margin-right: 0.25rem;
margin-left: 0.25rem;
}
.tags.is-right {
justify-content: flex-end;
}
.tags.is-right .tag:not(:first-child) {
margin-left: 0.5rem;
}
.tags.is-right .tag:not(:last-child) {
margin-right: 0;
}
.tags.has-addons .tag {
margin-right: 0;
}
.tags.has-addons .tag:not(:first-child) {
margin-left: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.tags.has-addons .tag:not(:last-child) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.tag:not(body) {
align-items: center;
background-color: var(--dbp-muted);
border-radius: var(--dbp-border-radius);
color: var(--dbp-muted);
display: inline-flex;
font-size: 0.75rem;
height: 2em;
justify-content: center;
line-height: 1.5;
padding-left: 0.75em;
padding-right: 0.75em;
white-space: nowrap;
}
.tag:not(body) .delete {
margin-left: 0.25rem;
margin-right: -0.375rem;
}
.tag:not(body).is-dark {
background-color: var(--dbp-content-surface);
color: var(--dbp-on-content-surface);
}
.tag:not(body).is-light {
background-color: var(--dbp-background);
color: var(--dbp-content);
}
.tag:not(body).is-normal {
font-size: 0.75rem;
}
.tag:not(body).is-medium {
font-size: 1rem;
}
.tag:not(body).is-large {
font-size: 1.25rem;
}
.tag:not(body) .icon:first-child:not(:last-child) {
margin-left: -0.375em;
margin-right: 0.1875em;
}
.tag:not(body) .icon:last-child:not(:first-child) {
margin-left: 0.1875em;
margin-right: -0.375em;
}
.tag:not(body) .icon:first-child:last-child {
margin-left: -0.375em;
margin-right: -0.375em;
}
.tag:not(body).is-delete {
margin-left: 1px;
padding: 0;
position: relative;
width: 2em;
}
.tag:not(body).is-delete::before,
.tag:not(body).is-delete::after {
background-color: currentColor;
content: '';
display: block;
left: 50%;
position: absolute;
top: 50%;
-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
transform: translateX(-50%) translateY(-50%) rotate(45deg);
-webkit-transform-origin: center center;
transform-origin: center center;
}
.tag:not(body).is-delete::before {
height: 1px;
width: 50%;
}
.tag:not(body).is-delete::after {
height: 50%;
width: 1px;
}
.tag:not(body).is-delete:hover,
.tag:not(body).is-delete:focus {
background-color: var(--dbp-background);
}
.tag:not(body).is-delete:active {
background-color: var(--dbp-background);
}
.tag:not(body).is-rounded {
border-radius: 290486px;
}
a.tag:hover {
text-decoration: underline;
}
`)}function wn(){return M(te||=e`
/**************************\\
Modal Styles
\\**************************/
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
}
.modal-overlay::before {
content: '';
width: 100%;
height: 100%;
position: absolute;
left: 0;
background-color: var(--dbp-content-surface);
opacity: 0.6;
}
.modal-container {
background-color: var(--dbp-background);
max-width: 600px;
max-height: 100vh;
min-width: 60%;
min-height: 50%;
overflow-y: auto;
box-sizing: border-box;
display: grid;
height: 70%;
width: 70%;
position: relative;
border-radius: var(--dbp-border-radius);
}
.modal-close {
background: transparent;
border: none;
font-size: 1.5rem;
color: var(--dbp-accent);
cursor: pointer;
padding: 0px;
position: relative;
z-index: 9;
}
.modal-close .close-icon svg,
.close-icon {
pointer-events: none;
}
button.modal-close:focus {
outline: none;
}
/**************************\\
Modal Animation Style
\\**************************/
@keyframes mmfadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes mmfadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes mmslideIn {
from {
transform: translateY(15%);
}
to {
transform: translateY(0);
}
}
@keyframes mmslideOut {
from {
transform: translateY(0);
}
to {
transform: translateY(-10%);
}
}
.micromodal-slide {
display: none;
}
.micromodal-slide.is-open {
display: block;
}
.micromodal-slide[aria-hidden='false'] .modal-overlay {
animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide[aria-hidden='false'] .modal-container {
animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide[aria-hidden='true'] .modal-overlay {
animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide[aria-hidden='true'] .modal-container {
animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide .modal-container,
.micromodal-slide .modal-overlay {
will-change: transform;
}
@media only screen and (orientation: landscape) and (max-width: 768px) {
.modal-container {
width: 100%;
height: 100%;
max-width: 100%;
}
.micromodal-slide .modal-container {
height: 100%;
width: 100%;
}
}
@media only screen and (max-width: 768px) {
.modal-close {
width: 40px;
height: 40px;
}
}
`)}function Tn(){return M(m||=e`
h2:first-child {
margin-top: 0;
margin-bottom: 0px;
}
.subheadline {
font-style: italic;
padding-left: 2em;
margin-top: -1px;
/*line-height: 1.8;*/
margin-bottom: 1.2em;
}
`)}function En(){return M(h||=e`
.int-link-external,
.int-link-internal,
.link,
.link-without-hover {
border-bottom: var(--dbp-border);
border-color: var(--dbp-content);
}
.int-link-external:hover,
.int-link-internal:hover,
.link:hover {
color: var(--dbp-hover-color, var(--dbp-content));
border-color: var(--dbp-hover-color, var(--dbp-content));
background-color: var(--dbp-hover-background-color);
}
.int-link-external:after,
.int-link-internal:after,
.link:after,
.link-without-hover:after {
content: '\\00a0\\00a0\\00a0';
background-color: var(--dbp-content);
-webkit-mask-image: url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0A%3Csvg%20version%3D%221.1%22%20id%3D%22Ebene_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20viewBox%3D%220%200%2022.7%2062.4%22%20style%3D%22enable-background%3Anew%200%200%2022.7%2062.4%3B%22%20xml%3Aspace%3D%22preserve%22%3E%0A%3Cg%20transform%3D%22translate%28-382.21%20-336.98%29%22%3E%0A%09%3Cg%3E%0A%09%09%3Cpath%20d%3D%22M386.9%2C380.5c-0.2%2C0-0.4-0.1-0.6-0.3c-0.3-0.3-0.3-0.8%2C0.1-1.1l12.5-10.9l-12.5-10.9c-0.3-0.3-0.4-0.8-0.1-1.1%0A%09%09%09c0.3-0.3%2C0.8-0.4%2C1.1-0.1l13.1%2C11.5c0.2%2C0.2%2C0.3%2C0.4%2C0.3%2C0.6s-0.1%2C0.5-0.3%2C0.6l-13.1%2C11.5C387.3%2C380.4%2C387.1%2C380.5%2C386.9%2C380.5z%22%0A%09%09%09%2F%3E%0A%09%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A');
mask-image: url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0A%3Csvg%20version%3D%221.1%22%20id%3D%22Ebene_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20viewBox%3D%220%200%2022.7%2062.4%22%20style%3D%22enable-background%3Anew%200%200%2022.7%2062.4%3B%22%20xml%3Aspace%3D%22preserve%22%3E%0A%3Cg%20transform%3D%22translate%28-382.21%20-336.98%29%22%3E%0A%09%3Cg%3E%0A%09%09%3Cpath%20d%3D%22M386.9%2C380.5c-0.2%2C0-0.4-0.1-0.6-0.3c-0.3-0.3-0.3-0.8%2C0.1-1.1l12.5-10.9l-12.5-10.9c-0.3-0.3-0.4-0.8-0.1-1.1%0A%09%09%09c0.3-0.3%2C0.8-0.4%2C1.1-0.1l13.1%2C11.5c0.2%2C0.2%2C0.3%2C0.4%2C0.3%2C0.6s-0.1%2C0.5-0.3%2C0.6l-13.1%2C11.5C387.3%2C380.4%2C387.1%2C380.5%2C386.9%2C380.5z%22%0A%09%09%09%2F%3E%0A%09%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A');
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center -2px;
mask-position: center center;
margin: 0 0 0 4px;
padding: 0 0 0.25% 0;
-webkit-mask-size: 100%;
mask-size: 120%;
}
.int-link-external:hover::after,
.int-link-internal:hover::after,
.link:hover::after {
background-color: var(--dbp-hover-color, var(--dbp-content));
}
`)}var Dn=class extends _n(J){constructor(){super(),this.value=``,this.type=``,this.loading=!1,this.disabled=!1,this.addEventListener(`click`,e=>{this.disabled&&e.stopImmediatePropagation()})}static get scopedElements(){return{"dbp-mini-spinner":cn}}static get properties(){return{value:{type:String},type:{type:String},loading:{type:Boolean},disabled:{type:Boolean,reflect:!0}}}start(){this.loading=!0,this.disabled=!0}stop(){this.loading=!1,this.disabled=!1}isDisabled(){return this.disabled}},On=class extends Dn{constructor(){super(),this.spinner=!1,this.noSpinnerOnClick=!1,this.addEventListener(`click`,e=>{this.noSpinnerOnClick||this.start()})}connectedCallback(){super.connectedCallback()}static get properties(){return v(v({},super.properties),{},{spinner:{type:Boolean},noSpinnerOnClick:{type:Boolean,attribute:`no-spinner-on-click`}})}static get styles(){return M(g||=e`
${0}
${0}
.spinner {
margin-left: 0.5em;
}
::slotted(dbp-icon) {
transition: transform 0.25s ease-in-out;
}
button:hover ::slotted(dbp-icon) {
transform: var(--icon-transform);
}
`,vn(),xn())}render(){return U(_||=e`
<button class="button ${0}" ?disabled="${0}">
<slot>${0}</slot>
<dbp-mini-spinner
class="spinner"
style="display: ${0}"></dbp-mini-spinner>
</button>
`,this.type,this.disabled,this.value,this.spinner?`inline`:`none`)}},kn=class extends Dn{constructor(){super()}static get styles(){return M(ne||=e`
${0}
${0}
.spinner {
padding-left: 0.5em;
min-width: 16px;
}
.loading-container {
display: flex;
align-items: baseline;
}
.label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
:host {
display: inline-block;
}
.is-not-loading .label {
padding-left: 12px;
padding-right: 12px;
}
.button {
width: 100%;
}
::slotted(dbp-icon) {
transition: transform 0.25s ease-in-out;
}
button:hover ::slotted(dbp-icon) {
transform: var(--icon-transform);
}
@media only screen and (orientation: portrait) and (max-width: 768px) {
.button {
min-height: 36px;
}
.label {
margin: auto;
}
}
`,vn(),xn())}render(){return U(re||=e`
<button
class="button ${0} loading-container ${0}"
?disabled="${0}">
<span class="label"><slot>${0}</slot></span>
<dbp-mini-spinner
class="spinner"
style="display: ${0}"></dbp-mini-spinner>
</button>
`,this.type,this.loading?``:`is-not-loading`,this.disabled,this.value,this.loading?`inline`:`none`)}};const Y=new class{get debug(){return window.location.hash.includes(`debug`)?console.debug:()=>{}}};var An=class extends J{constructor(){super(),this._connected=!1,this._deferSubscribe=!1,this._deferUnSubscribe=!1,this.reflectAttribute=!0,this.subscribe=``,this.unsubscribe=``,this._callbackStore=[],this._propertyStore={},this._lastProperties={},Y.debug(`AdapterLitElement(`+this.tagName+`) constructor()`)}getProperty(e){return this._propertyStore[e]}getPropertyByAttributeName(e){return this[this.findPropertyName(e)]}setPropertyByAttributeName(e,t){this[this.findPropertyName(e)]=t}setProperty(e,t){typeof t==`object`&&t?this.setPropertyByAttributeName(e,t):this.attributeChangedCallback(e,this.getPropertyByAttributeName(e),t),this._lastProperties[e]=t,this._propertyStore[e]=t}hasPropertyChanged(e,t){return this._lastProperties[e]!==t}hasProperty(e){return Object.hasOwnProperty.call(this._propertyStore,e)}connectedCallback(){super.connectedCallback(),this._deferUnSubscribe&&(this.unsubscribe.split(`,`).forEach(e=>this.unSubscribeProviderFor(e)),this._deferSubscribe=!1,this.unsubscribe=``),this._deferSubscribe&&=(this.subscribe.split(`,`).forEach(e=>this.subscribeProviderFor(e)),!1),this._connected=!0;let e=this;if(this.addEventListener(`dbp-subscribe`,function(t){let n=t.detail.name;(e.hasProperty(n)||e.providerRoot)&&(Y.debug(`AdapterLitElementProvider(`+e.tagName+`) eventListener("dbp-subscribe",..) name "`+n+`" found.`),e._callbackStore.push({name:n,callback:t.detail.callback,sender:t.detail.sender}),t.detail.callback(e.getProperty(n)),t.stopPropagation())},!1),this.addEventListener(`dbp-unsubscribe`,function(t){let n=t.detail.name,r=t.detail.sender;(e.hasProperty(n)||e.providerRoot)&&(Y.debug(`AdapterLitElementProvider(`+e.tagName+`) eventListener("dbp-unsubscribe",..) name "`+n+`" found.`),e._callbackStore.forEach(t=>{if(t.sender===r&&t.name===n){let r=e._callbackStore.indexOf(t);e._callbackStore.splice(r,1),Y.debug(`AdapterLitElementProvider(`+e.tagName+`) eventListener for name "`+n+`" removed.`)}}),t.stopPropagation())},!1),this.addEventListener(`dbp-set-property`,function(t){let n=t.detail.name,r=t.detail.value;(e.hasProperty(n)||e.providerRoot)&&(Y.debug(`AdapterLitElementProvider(`+e.tagName+`) eventListener("dbp-set-property",..) name "`+n+`" found.`),e.setProperty(n,r),e._callbackStore.forEach(e=>{e.name===n&&e.callback(r)}),t.stopPropagation())},!1),new MutationObserver(function(t,n){for(let n of t)if(n.type===`attributes`){let t=n.attributeName,r=e.getAttribute(t);e.hasPropertyChanged(t,r)&&(Y.debug(`AdapterLitElementProvider (`+e.tagName+`) observed attribute "`+t+`" changed`),e.setProperty(t,r),e._callbackStore.forEach(e=>{e.name===t&&e.callback(r)}))}}).observe(this,{attributes:!0,childList:!1,subtree:!1}),this.hasAttributes()){let t=this.attributes;for(let n=t.length-1;n>=0;n--)[`id`,`class`,`style`,`data-tag-name`].includes(t[n].name)||(this.setProperty(t[n].name,t[n].value),Y.debug(`AdapterLitElementProvider (`+e.tagName+`) found attribute "`+t[n].name+`" = "`+t[n].value+`"`))}}disconnectedCallback(){this.subscribe.split(`,`).forEach(e=>this.unSubscribeProviderFor(e)),super.disconnectedCallback()}subscribeProviderFor(e){Y.debug(`AdapterLitElement(`+this.tagName+`) subscribeProviderFor( `+e+` )`);let t=e.trim().split(`:`),n=t[0],r=t[1]||n,i=this,a=new CustomEvent(`dbp-subscribe`,{bubbles:!0,composed:!0,detail:{name:r,callback:e=>{e!==void 0&&(Y.debug(`AdapterLitElement(`+i.tagName+`) sub/Callback `+r+` -> `+n+` = `+e),typeof e==`object`&&e?i.setPropertyByAttributeName(n,e):(i.attributeChangedCallback(n,i.getPropertyByAttributeName(n),e),i.getAttribute(n)!==null&&(console.warn(`Provider callback: "`+n+`" is also an attribute in tag "`+i.tagName+`", this is not supported!`),i.reflectAttribute&&i.setAttribute(n,e))))},sender:this}});this.dispatchEvent(a)}unSubscribeProviderFor(e){Y.debug(`AdapterLitElement(`+this.tagName+`) unSubscribeProviderFor( `+e+` )`);let t=e.trim().split(`:`),n=t[1]||t[0],r=new CustomEvent(`dbp-unsubscribe`,{bubbles:!0,composed:!0,detail:{name:n,sender:this}});this.dispatchEvent(r)}static get properties(){return v(v({},super.properties),{},{subscribe:{type:String},unsubscribe:{type:String},providerRoot:{type:Boolean,attribute:`provider-root`}})}findPropertyName(e){let t=e,n=this.constructor.properties;for(let r in n)if(n[r].attribute===e){t=r;break}return t}attributeChangedCallback(e,t,n){switch(e){case`subscribe`:Y.debug(`AdapterLitElement() attributeChangesCallback( `+e+`, `+t+`, `+n+`)`),this.subscribe&&this.subscribe.length>0&&(this._connected?this.subscribe.split(`,`).forEach(e=>this.unSubscribeProviderFor(e)):(this._deferUnSubscribe=this.subscribe.length>0,this.unsubscribe=this.subscribe)),n!==null&&(this.subscribe=n,this._connected?n.split(`,`).forEach(e=>this.subscribeProviderFor(e)):this._deferSubscribe=n&&n.length>0);break;default:if(typeof t==`object`&&!t&&!n||!n&&t&&e)break;super.attributeChangedCallback(e,t,n)}}sendSetPropertyEvent(e,t,n=!1){let r=new CustomEvent(`dbp-set-property`,{bubbles:!0,composed:!0,detail:{name:e,value:t}});return(this.parentElement&&!n?this.parentElement:this).dispatchEvent(r)}};function jn(e){let t=new URL(e,`https://example.com`);return{pathname:t.pathname,pathSegments:t.pathname.split(`/`).filter(e=>e!==``).map(e=>decodeURIComponent(e)),queryParams:t.searchParams,queryString:t.search,hash:t.hash,fragment:t.hash.replace(/^#/,``)}}var Mn=class extends An{constructor(){super(),this.htmlOverrides=``,this._localTemplateSlotsImported=!1,this._globalSlotsContainer=null,this._globalTemplateSlotsImported=!1,this._renderDone=!1,this.routingUrl=``}static get properties(){return v(v({},super.properties),{},{htmlOverrides:{type:String,attribute:`html-overrides`},routingUrl:{type:String,attribute:`routing-url`}})}disconnectedCallback(){super.disconnectedCallback(),this._globalSlotsContainer!==null&&this._globalSlotsContainer.remove()}_(e){return this.renderRoot.querySelector(e)}_a(e){return this.renderRoot.querySelectorAll(e)}firstUpdated(e){super.firstUpdated(e),this._renderDone=!0,this._importTemplateSlots()}update(e){e.forEach((e,t)=>{switch(t){case`html-overrides`:this._importTemplateSlots();break}}),super.update(e)}_importTemplateSlots(){this._renderDone&&(this._importLocalTemplateSlots(),this._importGlobalTemplateSlots())}_importLocalTemplateSlots(){if(this._localTemplateSlotsImported)return;let e=this.querySelectorAll(`:scope > template[slot]:not([slot=""]`);for(let t of e){let e=document.createElement(`div`);e.slot=t.getAttribute(`slot`),e.appendChild(t.content.cloneNode(!0)),t.remove(),this.appendChild(e)}this._localTemplateSlotsImported=!0}_importGlobalTemplateSlots(){if(this.htmlOverrides===``||this._globalTemplateSlotsImported)return;let e=document.querySelector(`template#`+this.htmlOverrides);if(e!==null){let t=e.content.cloneNode(!0).querySelector(`template#`+this.tagName.toLowerCase());if(t!==null){let n=t.content.cloneNode(!0),r=[];for(let e of n.querySelectorAll(`[slot]:not([slot=""]`))e.parentNode===n&&r.push(e);for(let e of r)for(let t of this.querySelectorAll(`[slot="`+e.slot+`"]`))t.remove();let i=document.createElement(`div`);e.append(i),this._globalSlotsContainer=i;for(let e of r)i.appendChild(e);for(;i.childNodes.length;)this.appendChild(i.removeChild(i.childNodes[0]))}}this._globalTemplateSlotsImported=!0}getRoutingData(){return jn(this.routingUrl)}},Nn=class extends Mn{constructor(){super(),this.type=``,this.summary=``,this.body=``}static get properties(){return{type:{type:String},summary:{type:String},body:{type:String}}}connectedCallback(){super.connectedCallback()}static get styles(){return M(ie||=e`
${0}
${0}
${0}
.notification:not(:last-child) {
margin-bottom: 1.5rem;
}
.notification h3 {
font-weight: bold;
margin-bottom: 3px;
}
.notification h3 {
margin: 0 0 3px 0;
font: inherit;
font-weight: bold;
}
`,vn(),yn(),bn())}createBodyHtml(){return document.createRange().createContextualFragment(`<slot name="body">${this.body}</slot>`)}render(){let t=this.createBodyHtml();return U(ae||=e`
<div class="columns">
<div class="column">
<div
id="inline-notification"
class="notification is-${0}">
${0}
${0}
</div>
</div>
</div>
`,this.type===``?`info`:this.type,this.summary===``?``:U(oe||=e`
<h3>${0}</h3>
`,this.summary),t)}};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const Pn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fn=e=>(...t)=>({_$litDirective$:e,values:t});var In=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const Ln=Fn(class extends In{constructor(e){if(super(e),e.type!==Pn.ATTRIBUTE||e.name!==`class`||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter(t=>e[t]).join(` `)+` `}update(e,[t]){if(this.st===void 0){for(let r in this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``))),t){var n;t[r]&&!((n=this.nt)!=null&&n.has(r))&&this.st.add(r)}return this.render(t)}let r=e.element.classList;for(let e of this.st)e in t||(r.remove(e),this.st.delete(e));for(let e in t){let n=!!t[e];n===this.st.has(e)||this.nt?.has(e)||(n?(r.add(e),this.st.add(e)):(r.remove(e),this.st.delete(e)))}return W}});var Rn=class extends Mn{constructor(){super(),this.lang=`de`}static get properties(){return v(v({},super.properties),{},{lang:{type:String}})}static get styles(){return M(se||=e`
.hidden {
display: none;
}
`)}render(){return U(ce||=e`
<div class="${0}">
<slot name="de"></slot>
</div>
<div class="${0}">
<slot name="en"></slot>
</div>
`,Ln({hidden:this.lang!==`de`}),Ln({hidden:this.lang!==`en`}))}},zn=class extends In{constructor(e){if(super(e),this.it=G,e.type!==Pn.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(e){if(e===G||e==null)return this._t=void 0,this.it=e;if(e===W)return e;if(typeof e!=`string`)throw Error(this.constructor.directiveName+`() called with a non-string value`);if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};zn.directiveName=`unsafeHTML`,zn.resultType=1;const Bn=Fn(zn);var X=window.CustomEvent;(!X||typeof X==`object`)&&(X=function(e,t){t||={};var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n},X.prototype=window.Event.prototype);function Vn(e,t){var n=`on`+t.type.toLowerCase();return typeof e[n]==`function`&&e[n](t),e.dispatchEvent(t)}function Hn(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return!(t[e]===void 0||t[e]===n)};if(t.opacity<1||n(`zIndex`,`auto`)||n(`transform`,`none`)||n(`mixBlendMode`,`normal`)||n(`filter`,`none`)||n(`perspective`,`none`)||t.isolation===`isolate`||t.position===`fixed`||t.webkitOverflowScrolling===`touch`)return!0;e=e.parentElement}return!1}function Z(e){for(;e;){if(e.localName===`dialog`)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function Un(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function Wn(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function Gn(e){return!e||!e.hasAttribute(`method`)?!1:e.getAttribute(`method`).toLowerCase()===`dialog`}function Kn(e){var t=[`button`,`input`,`keygen`,`select`,`textarea`].map(function(e){return e+`:not([disabled])`});t.push(`[tabindex]:not([disabled]):not([tabindex=""])`);var n=e.querySelector(t.join(`, `));if(!n&&`attachShadow`in Element.prototype)for(var r=e.querySelectorAll(`*`),i=0;i<r.length&&!(r[i].tagName&&r[i].shadowRoot&&(n=Kn(r[i].shadowRoot),n));i++);return n}function qn(e){return e.isConnected||document.body.contains(e)}function Jn(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var n=Q.formSubmitter;if(!n){var r=e.target;n=(`getRootNode`in r&&r.getRootNode()||document).activeElement}return!n||n.form!==t?null:n}function Yn(e){if(!e.defaultPrevented){var t=e.target,n=Q.imagemapUseValue,r=Jn(e);n===null&&r&&(n=r.value);var i=Z(t);i&&(r&&r.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&(e.preventDefault(),n==null?i.close():i.close(n))}}function Xn(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute(`role`)||e.setAttribute(`role`,`dialog`),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener(`submit`,Yn,!1),`returnValue`in e||(e.returnValue=``),`MutationObserver`in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:[`open`]});else{var t=!1,n=function(){t?this.downgradeModal():this.maybeHideModal(),t=!1}.bind(this),r,i=function(i){if(i.target===e){var a=`DOMNodeRemoved`;t|=i.type.substr(0,a.length)===a,window.clearTimeout(r),r=window.setTimeout(n,0)}};[`DOMAttrModified`,`DOMNodeRemoved`,`DOMNodeRemovedFromDocument`].forEach(function(t){e.addEventListener(t,i)})}Object.defineProperty(e,`open`,{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,`open`)}),this.backdrop_=document.createElement(`div`),this.backdrop_.className=`backdrop`,this.backdrop_.addEventListener(`mouseup`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`mousedown`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`click`,this.backdropMouseEvent_.bind(this))}Xn.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute(`open`)&&qn(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex=``,this.replacedStyleTop_&&=(this.dialog_.style.top=``,!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),Q.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute(`open`)||this.dialog_.setAttribute(`open`,``):(this.dialog_.removeAttribute(`open`),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute(`tabindex`))this.dialog_.focus();else{var t=document.createElement(`div`);this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent(`MouseEvents`);n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector(`[autofocus]:not([disabled])`);!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||=Kn(this.dialog_),Un(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw Error(`dialogZ should never be < backdropZ`);this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.`);if(!qn(this.dialog_))throw Error(`Failed to execute 'showModal' on dialog: The element is not in a Document.`);if(!Q.dm.pushDialog(this))throw Error(`Failed to execute 'showModal' on dialog: There are too many open modal dialogs.`);Hn(this.dialog_.parentElement)&&console.warn(`A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context`),this.setOpen(!0),this.openAsModal_=!0,Q.needsCentering(this.dialog_)?(Q.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.`);this.setOpen(!1),e!==void 0&&(this.dialog_.returnValue=e);var t=new X(`close`,{bubbles:!1,cancelable:!1});Vn(this.dialog_,t)}};var Q={};if(Q.reposition=function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+`px`},Q.isInlinePositionSetByStylesheet=function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],r=null;try{r=n.cssRules}catch{}if(r)for(var i=0;i<r.length;++i){var a=r[i],o=null;try{o=document.querySelectorAll(a.selectorText)}catch{}if(!(!o||!Wn(o,e))){var s=a.style.getPropertyValue(`top`),c=a.style.getPropertyValue(`bottom`);if(s&&s!==`auto`||c&&c!==`auto`)return!0}}}return!1},Q.needsCentering=function(e){return window.getComputedStyle(e).position!==`absolute`||e.style.top!==`auto`&&e.style.top!==``||e.style.bottom!==`auto`&&e.style.bottom!==``?!1:!Q.isInlinePositionSetByStylesheet(e)},Q.forceRegisterDialog=function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn(`This browser already supports <dialog>, the polyfill may not work correctly`,e),e.localName!==`dialog`)throw Error(`Failed to register dialog: The element is not a dialog.`);new Xn(e)},Q.registerDialog=function(e){e.showModal||Q.forceRegisterDialog(e)},Q.DialogManager=function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement(`div`),this.overlay.className=`_dialog_overlay`,this.overlay.addEventListener(`click`,function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,`MutationObserver`in window&&(this.mo_=new MutationObserver(function(t){var n=[];t.forEach(function(e){for(var t=0,r;r=e.removedNodes[t];++t){if(r instanceof Element)r.localName===`dialog`&&n.push(r);else continue;n=n.concat(r.querySelectorAll(`dialog`))}}),n.length&&e(n)}))},Q.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener(`focus`,this.handleFocus_,!0),document.addEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},Q.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener(`focus`,this.handleFocus_,!0),document.removeEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.disconnect()},Q.DialogManager.prototype.updateStacking=function(){for(var e=this.zIndexHigh_,t=0,n;n=this.pendingDialogStack[t];++t)n.updateZIndex(--e,--e),t===0&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},Q.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=Z(e);){for(var t=0,n;n=this.pendingDialogStack[t];++t)if(n.dialog===e)return t===0;e=e.parentElement}return!1},Q.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),Un(t),this.forwardTab_!==void 0)){var n=this.pendingDialogStack[0];return n.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?n.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},Q.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,e.keyCode===27){e.preventDefault(),e.stopPropagation();var t=new X(`cancel`,{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&Vn(n.dialog,t)&&n.dialog.close()}else e.keyCode===9&&(this.forwardTab_=!e.shiftKey)},Q.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){e.indexOf(t.dialog)===-1?t.maybeHideModal():t.downgradeModal()})},Q.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=t?!1:(this.pendingDialogStack.unshift(e)===1&&this.blockDocument(),this.updateStacking(),!0)},Q.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);t!==-1&&(this.pendingDialogStack.splice(t,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},Q.dm=new Q.DialogManager,Q.formSubmitter=null,Q.imagemapUseValue=null,window.HTMLDialogElement===void 0){var Zn=document.createElement(`form`);if(Zn.setAttribute(`method`,`dialog`),Zn.method!==`dialog`){var $=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,`method`);if($){var Qn=$.get;$.get=function(){return Gn(this)?`dialog`:Qn.call(this)};var $n=$.set;$.set=function(e){return typeof e==`string`&&e.toLowerCase()===`dialog`?this.setAttribute(`method`,e):$n.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,`method`,$)}}document.addEventListener(`click`,function(e){if(Q.formSubmitter=null,Q.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if(`composedPath`in e&&(t=e.composedPath().shift()||t),!(!t||!Gn(t.form))){if(!(t.type===`submit`&&[`button`,`input`].indexOf(t.localName)>-1)){if(!(t.localName===`input`&&t.type===`image`))return;Q.imagemapUseValue=e.offsetX+`,`+e.offsetY}Z(t)&&(Q.formSubmitter=t)}}},!1),document.addEventListener(`submit`,function(e){var t=e.target;if(!Z(t)){var n=Jn(e);(n&&n.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&e.preventDefault()}});var er=HTMLFormElement.prototype.submit,tr=function(){if(!Gn(this))return er.call(this);var e=Z(this);e&&e.close()};HTMLFormElement.prototype.submit=tr}const nr=(e,t,n=`_i18n`)=>class extends e{constructor(){super(),this[n]=t(),this.lang=this[n].language}static get properties(){return v(v({},super.properties),{},{lang:{type:String}})}update(e){e.forEach((e,t)=>{t===`lang`&&this[n].changeLanguage(this.lang)}),super.update(e)}},rr=(e,t)=>(e.endsWith(`/`)||(e+=`/`),new URL(t.replace(/^\/+/,``),e).href),ir=dn(e=>{var t;return t=class extends e{constructor(){super(),this.auth=null,this._previousAuthState=null,this._authPending=!0}update(e){if(e.has(`auth`)){let e=this._previousAuthState||{},t=this.auth||{},n=e[`login-status`]===`logged-in`,r=e[`login-status`]===`logged-out`,i=t[`login-status`]===`logged-in`,a=t[`login-status`]===`logged-out`;!n&&i&&(this._authPending=!1,this.loginCallback(t)),!r&&a&&(this._authPending?this._authPending=!1:this.logoutCallback()),this._previousAuthState=v({},t)}super.update(e)}isAuthPending(){return this._authPending}isLoggedIn(){return this.auth&&this.auth[`login-status`]===`logged-in`}loginCallback(e){}logoutCallback(){}},y(t,`properties`,v({auth:{type:Object}},e.properties)),t}),ar=`dbp-feature-`;function or(e){if(!lr().includes(e))throw Error(`Feature flag "${e}" is not registered.`);return localStorage.getItem(ar+e)!==null}function sr(e,t){if(!lr().includes(e))throw Error(`Feature flag "${e}" is not registered.`);t?localStorage.setItem(ar+e,`true`):localStorage.removeItem(ar+e)}function cr(e){if(!/^[a-zA-Z0-9-_]+$/.test(e))throw Error(`Feature flag name "${e}" contains invalid characters.`);globalThis[`dbp-feature-flags`]=globalThis[`dbp-feature-flags`]||[],globalThis[`dbp-feature-flags`].includes(e)||globalThis[`dbp-feature-flags`].push(e)}function lr(){return globalThis[`dbp-feature-flags`]||[]}function ur(e){let t=new CustomEvent(`dbp-notification-send`,{bubbles:!0,cancelable:!0,detail:e});window.dispatchEvent(t)&&(alert((e.summary!==void 0&&e.summary!==``?e.summary+`: `:``)+e.body),console.log(`Use the web component dbp-notification to show fancy notifications.`))}export{U as A,Sn as C,sn as D,_n as E,rt as M,it as N,rn as O,bn as S,vn as T,Tn as _,sr as a,En as b,nr as c,Ln as d,Nn as f,kn as g,On as h,cr as i,M as j,$t as k,Bn as l,An as m,or as n,ir as o,Mn as p,lr as r,rr as s,ur as t,Rn as u,xn as v,Cn as w,wn as x,yn as y};
//# sourceMappingURL=dbp-lit-element.DH77Mkn6.js.map