/*! Built with http://stenciljs.com */
var __generator=this&&this.__generator||function(t,n){var e,r,a,s,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(a=r[2&s[0]?"return":s[0]?"throw":"next"])&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[0,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(t,o)}catch(t){s=[6,t],r=0}finally{e=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}};webcomponents.loadBundle("xtgsbudh",["exports","./chunk-c13350ec.js","./chunk-4bc80c3c.js","./chunk-6409091d.js"],function(t,n,e,r){var a=window.webcomponents.h,s=function(){function t(){this.paramsJson="{}",this.transform="none",this.translate=n.TranslateService.instance}return t.prototype.componentDidLoad=function(){this.postRender()},t.prototype.componentDidUpdate=function(){this.postRender()},t.prototype.postRender=function(){return t=this,n=void 0,r=function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=this.el.querySelector("span").innerText.trim(),this.string&&""!==this.string&&(t=this.string),this.language&&this.language!==this.translate.language?(this.translationsLocation&&(this.translate.translationsLocation=this.translationsLocation),[4,this.translate.use(this.language)]):[3,2];case 1:e.sent(),e.label=2;case 2:return this.translation=this.translate.get(t),this.params&&(this.translation=this.translate.get(t,this.params)),"{}"!==this.paramsJson&&(n=[t],JSON.parse(this.paramsJson).forEach(function(t){n.push(t)}),this.translation=this.translate.get.apply(this.translate,n)),this.transform&&this.transformTranslation(this.transform),this.el.querySelector("span").innerText=this.translation,[2]}})},new((e=void 0)||(e=Promise))(function(a,s){function o(t){try{l(r.next(t))}catch(t){s(t)}}function i(t){try{l(r.throw(t))}catch(t){s(t)}}function l(t){t.done?a(t.value):new e(function(n){n(t.value)}).then(o,i)}l((r=r.apply(t,n||[])).next())});var t,n,e,r},t.prototype.get=function(t){return this.translate.get(t)},t.prototype.set=function(t,n,e){this.translation=this.translate.get(t),this.postRender()},t.prototype.setTranslateService=function(t){this.translate=t,this.postRender()},t.prototype.update=function(){this.postRender()},t.prototype.transformTranslation=function(t){"lowercase"===t&&(this.translation=this.translation.toLowerCase()),"lowercaseFirst"===t&&(this.translation=this.translation.charAt(0).toLowerCase()+this.translation.slice(1)),"uppercase"===t&&(this.translation=this.translation.toUpperCase()),"uppercaseFirst"===t&&(this.translation=this.translation.charAt(0).toUpperCase()+this.translation.slice(1))},t.prototype.render=function(){return a("span",null,a("slot",null))},Object.defineProperty(t,"is",{get:function(){return"ema-translate"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{el:{elementRef:!0},get:{method:!0},language:{type:String,attr:"language"},params:{type:String,attr:"params"},paramsJson:{type:String,attr:"params-json"},set:{method:!0},setTranslateService:{method:!0},string:{type:String,attr:"string"},transform:{type:String,attr:"transform"},translation:{state:!0},translationsLocation:{type:String,attr:"translations-location"},update:{method:!0}}},enumerable:!0,configurable:!0}),t}();t.EmaTranslate=s,Object.defineProperty(t,"__esModule",{value:!0})});