"use strict";var e=require("./empty_html-hFq4zm9t.js"),t=require("@kdcloudjs/kwc");const r=["activeDescendant","atomic","autoComplete","busy","checked","colCount","colIndex","colSpan","controls","current","describedAt","describedBy","description","details","disabled","dropEffect","errorMessage","expanded","flowTo","grabbed","hasPopup","hidden","invalid","keyShortcuts","label","labelledBy","level","live","modal","multiLine","multiSelectable","orientation","owns","placeholder","posInSet","pressed","readOnly","relevant","required","roleDescription","rowCount","rowIndex","rowSpan","selected","setSize","sort","valueMax","valueMin","valueNow","valueText"],o=(e,t="default")=>{const r=e?e.length:0;if(0===r)throw new Error("List of aria properties is required");const o={};if("default"===t){for(let t=0;t<r;t+=1){const r=e[t],s=r.toUpperCase();o[s]||(o[s]=`aria-${r.toLowerCase()}`)}return o}for(let t=0;t<r;t+=1){const r=e[t],s=`aria-${r.toLowerCase()}`;if(!o[s]){const e=`aria${r[0].toUpperCase()}${r.slice(1)}`;o[s]=e}}return o},s=o(r),i=o(r,"cc");let n=null;const a=t.registerComponent(class{constructor(){this._observers=[]}subscribe(e){const t=e=>this._observers=this._observers.filter(t=>t!==e);return this._observers.push(e),()=>t(e)}notify(e){this._observers.forEach(t=>t(e))}},{tmpl:e._tmpl,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\utilsPrivate-",apiVersion:63});exports.ARIA=s,exports.ARIA_TO_CAMEL=i,exports.__kwc_component_class_internal=a,exports.computeAriaInvalid=function(e,t,r){return void 0!==r?r:null==t||""===t?!!e||void 0:!!e},exports.isAriaDescriptionSupported=function(){if(null!==n)return n;const e="test ability to set";try{const t=document.createElement("span");t.ariaDescription=e;const r=t.getAttribute(s.DESCRIPTION);n=e===r}catch(e){n=!1}return n},exports.updateAriaInvalidOnElement=function(e,t){t?e.setAttribute("aria-invalid",!0):e.removeAttribute("aria-invalid")};
