var __awaiter=this&&this.__awaiter||function(n,t,r,i){function e(n){return n instanceof r?n:new r((function(t){t(n)}))}return new(r||(r=Promise))((function(r,u){function o(n){try{c(i.next(n))}catch(n){u(n)}}function f(n){try{c(i["throw"](n))}catch(n){u(n)}}function c(n){n.done?r(n.value):e(n.value).then(o,f)}c((i=i.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,e,u,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=f(0),o["throw"]=f(1),o["return"]=f(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(n){return function(t){return c([n,t])}}function c(f){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,f[0]&&(r=0)),r)try{if(i=1,e&&(u=f[0]&2?e["return"]:f[0]?e["throw"]||((u=e["return"])&&u.call(e),0):e.next)&&!(u=u.call(e,f[1])).done)return u;if(e=0,u)f=[f[0]&2,u.value];switch(f[0]){case 0:case 1:u=f;break;case 4:r.label++;return{value:f[1],done:false};case 5:r.label++;e=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(!(u=r.trys,u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){r.label=f[1];break}if(f[0]===6&&r.label<u[1]){r.label=u[1];u=f;break}if(u&&r.label<u[2]){r.label=u[2];r.ops.push(f);break}if(u[2])r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];e=0}finally{i=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};System.register(["./p-D1opIX9W.system.js"],(function(n){"use strict";var t;return{setters:[function(n){t=n.b}],execute:function(){var r=this;var i=n("s",(function(n){if(n){n.preventDefault();n.stopPropagation()}}));var e=n("g",(function(n){return n.target}));var u=n("k",(function(n,t){var r,i;var e=((r=n.nativeInput)===null||r===void 0?void 0:r.value)||"";var u=(i=t.target)===null||i===void 0?void 0:i.selectionStart;return e.slice(0,u)+t.key+e.slice(u+Math.abs(0))}));var o=n("d",(function(n){if(n.nativeInput){n.nativeInput.blur()}}));var f=n("h",(function(n,t){if((n.disabled||n.readonly)&&t.target&&t.target===n.el){i(t)}}));var c=n("c",(function(n){return __awaiter(r,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:return[4,t()];case 1:i.sent();(r=n===null||n===void 0?void 0:n.nativeInput)===null||r===void 0?void 0:r.focus();return[2]}}))}))}));var a=n("i",(function(n,t){if(n.disabled||n.readonly){i(t)}}));var v=n("f",(function(n,t){if(!n.disabled&&!n.readonly&&n.balClick){n.balClick.emit(t)}}));var s=n("a",(function(n,t){n.focused=true;n.inputValue=n.value;if(!n.disabled&&n.balFocus){n.balFocus.emit(t)}}));var l=n("j",(function(n,t,r){if(t===void 0){t=undefined}n.value=t;n.inputValue=n.value;clearTimeout(r);r=setTimeout((function(){if(n.nativeInput){n.nativeInput.value=n.value}}))}));var d=n("b",(function(n,t){n.focused=false;if(!n.disabled&&n.balBlur){n.balBlur.emit(t)}}));var h=n("e",(function(n){if(n.value!==n.inputValue){n.value=n.inputValue;n.balChange.emit(n.value)}}));var y=function(n){return n===""||n===undefined||n===null||Array.isArray(n)&&!n.length||typeof n==="number"&&isNaN(n)};var b=function(n){return y(n)?undefined:n};var w=n("l",(function(n,t){return b(n)!==b(t)}))}}}));