@mchp-mcc/dspic33a-flash 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- var processor;!function(){var e={236:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createFormData=function(e,t,n){var d,s={};if(t){var c=n.getAutoModuleAppModel().getAllComponents();null===(d=(0,o.values)(c))||void 0===d||d.forEach(function(o){var d;if(t){var c=o.component,v=n.getComponentValue(c.name),p=new RegExp("[en,dis]abled?");if("boolean"===c.type&&v&&"string"===typeof v)if(p.test(v.toLowerCase())&&"string"===typeof t.booleanValues.true){var f=t.booleanValues.true;v="enable"===f.toLowerCase()?v.toLowerCase().startsWith(f.toLowerCase()):f.toLowerCase().startsWith(v.toLowerCase())}else"true"===v?v=!0:"false"===v&&(v=!1);"DescriptionOnly"===c.type&&(v=null),(0,a.isInvalidTab)(c.tabs,e)||("table"===c.category&&(v=(0,r.getTableFormData)(n,c,e)),"file_load"===c.category&&(v=""),"time"===c.type&&(v=(0,l.getTimeComponentFormData)(n,c,e)),"frequency"===c.type&&(v=(0,u.getFreqCompFormData)(n,c,e)),"file_save"===c.category&&(v=""),s[c.group]=i(i({},s[c.group]),((d={})[c.name]=v,d)))}})}return s};var r=n(3226),o=n(5056),a=n(313),l=n(1573),u=n(2980)},313:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createSchema=function(e,t,n){var r,p,f,g,m,h,y,b={};if(t){var I=(0,s.shouldPopulateView)(n.viewModel.derivedFunctions,n.viewModel.imports,n.viewModel.getAssignedImport,t);b={description:null!==(f=null===(p=(r=n.viewModel).getModuleDescription)||void 0===p?void 0:p.call(r))&&void 0!==f?f:(0,l.getModuleDefaultDescription)(),title:t.moduleName,type:"object",properties:{}};var _={properties:{}};null===(m=(0,a.values)(null!==(g=n.viewModel.components)&&void 0!==g?g:{}))||void 0===m||m.forEach(function(r){var a,p,f,g,m,h=r.component;!I&&"import"!=h.category||c(h.tabs,e)||(_[h.group]||(_[h.group]={title:null!==(f=null===(p=null===(a=n.viewModel.derivedFunctions)||void 0===a?void 0:a.overrideGroupTitle)||void 0===p?void 0:p.call(a,h.group))&&void 0!==f?f:null===t||void 0===t?void 0:t.UIGroups[h.group],description:null===(m=null===(g=n.viewModel.derivedFunctions)||void 0===g?void 0:g.overrideGroupDescription)||void 0===m?void 0:m.call(g,h.group),type:"object",properties:{}}),_[h.group].properties=i(i({},_[h.group].properties),function(e,t,n){var r,a={};if(c(e.tabs,t)||n.model&&(0,s.isComponentInvisible)(e,n.model))return a;if(a=function(e,t){if("software"===e.category)return function(e,t){var n,r,o,a,c,v,p,f,g={};"ComboBox"===e.type?g={type:"string",title:null!==(r=null===(n=null===t||void 0===t?void 0:t.overrideTitle)||void 0===n?void 0:n.call(t,e.name))&&void 0!==r?r:e.description,default:(0,l.getDefaultValue)(null===t||void 0===t?void 0:t.overrideDefaultValues,e),enum:(0,l.getComboOptions)(null===t||void 0===t?void 0:t.overrideOptions,e)}:"hex"===e.type?g={type:"integer",title:null!==(a=null===(o=null===t||void 0===t?void 0:t.overrideTitle)||void 0===o?void 0:o.call(t,e.name))&&void 0!==a?a:e.description,format:"hex",default:(0,l.getDefaultValue)(null===t||void 0===t?void 0:t.overrideDefaultValues,e)}:"DescriptionOnly"===e.type?g={type:"null",title:null!==(v=null===(c=null===t||void 0===t?void 0:t.overrideTitle)||void 0===c?void 0:c.call(t,e.name))&&void 0!==v?v:e.description}:"time"===e.type?g=(0,u.getTimeComponentSchema)(e,t):"frequency"===e.type?g=(0,d.getFreqCompSchema)(e,t):(g={type:e.type,title:null!==(f=null===(p=null===t||void 0===t?void 0:t.overrideTitle)||void 0===p?void 0:p.call(t,e.name))&&void 0!==f?f:e.description},(0,s.isUrl)(e)&&e.urlDescription&&(g=i(i({},g),{description:e.urlDescription})),(0,s.isImage)(e)&&e.imageDescription&&(g=i(i({},g),{description:e.imageDescription})));return g}(e,t.viewModel.derivedFunctions);if("hardware"===e.category)return function(e,t){var n,i,r,o,a,u,d,s,c,v,p={},f=t.model;if(f&&void 0!==f.getComponentValue(e.name)&&"register"!==e.type)if("ComboBox"===e.type){var g=(0,l.getSettingFromComponent)(f,e);p={type:"string",title:null!==(r=null===(i=null===(n=t.viewModel.derivedFunctions)||void 0===n?void 0:n.overrideTitle)||void 0===i?void 0:i.call(n,e.name))&&void 0!==r?r:e.description,default:(0,l.getSettingDefaultIfPresent)(e,g,null===(a=(o=f.getDerivedFunctions()).overrideDefaultValues)||void 0===a?void 0:a.call(o,e.name)),enum:(0,l.getSettingOptionsIfPresent)(e,g,f.getComponentValue(null!==(d=null===(u=e.mode)||void 0===u?void 0:u.masterComponent)&&void 0!==d?d:""))}}else p={type:e.type,title:null!==(v=null===(c=null===(s=t.viewModel.derivedFunctions)||void 0===s?void 0:s.overrideTitle)||void 0===c?void 0:c.call(s,e.name))&&void 0!==v?v:e.description};return p}(e,t);if("import"===e.category)return v(e,t);if("file_load"===e.category)return function(e,t){var n,i,r,o={};t.model&&(o={type:"string",title:null!==(r=null===(i=(n=t.getDerivedFunction).overrideTitle)||void 0===i?void 0:i.call(n,e.name))&&void 0!==r?r:e.description});return o}(e,t);if("file_save"===e.category)return function(e,t){var n,i,r,o={};t.model&&(o={type:"string",title:null!==(r=null===(i=(n=t.getDerivedFunction).overrideTitle)||void 0===i?void 0:i.call(n,e.name))&&void 0!==r?r:e.description});return o}(e,t);if("table"===e.category)return(0,o.getTableComponentSchema)(e,t);return}(e,n),void 0==a)return a;(function(e,t){return e.validation&&t&&null!=(null===t||void 0===t?void 0:t[e.name+"Validator"])})(e,n.viewModel.derivedFunctions)&&(a=function(e,t,n){return i(i({},e),null===n||void 0===n?void 0:n[t.name+"Validator"]())}(a,e,n.viewModel.derivedFunctions));var p=e.name;return r={},r[p]=i({},a),a=r,a}(h,e,n)))}),null===(y=(0,a.getKeys)(null!==(h=t.UIGroups)&&void 0!==h?h:{}))||void 0===y||y.forEach(function(e){var t,n,i,r;(null!==(r=null===(i=(0,a.getKeys)(null!==(n=null===(t=_[e])||void 0===t?void 0:t.properties)&&void 0!==n?n:{}))||void 0===i?void 0:i.length)&&void 0!==r?r:-1)>0&&b.properties&&(b.properties[e]=_[e])})}return b},t.isInvalidTab=c,t.getDependencyComponentSchema=v;var o=n(3226),a=n(5056),l=n(5037),u=n(1573),d=n(2980),s=n(4579);function c(e,t){return-1==e.indexOf(t)}function v(e,t){var n,i,o,a,u,d,s,c,v,p,f={};if("hidden"!==(null===(n=e.uiBehavior)||void 0===n?void 0:n["ui:widget"])){if("ComboBox"===e.type&&t.model){var g=new l.DependencySelector(t.model,e);if(g.getDropdownOptionNames().length<=0)return f;var m=g.getDropdownOptionNames(),h=null===(o=null===(i=t.createProcessedImports)||void 0===i?void 0:i.call(t,"views"))||void 0===o?void 0:o[e.importId],y="None",b=y,I=t.model.getComponentValue(e.name);(null===h||void 0===h?void 0:h.handle)?(b=g.createOptionLabel(h.handle,h.payload),m.push(b)):I&&m.push(I),m=m.sort(function(e,t){return e.localeCompare(t)}),m=r([y],m.filter(function(e){return e!==y}),!0);var _=null===(d=null===(u=null===(a=null===t||void 0===t?void 0:t.viewModel)||void 0===a?void 0:a.derivedFunctions)||void 0===u?void 0:u.overrideOptions)||void 0===d?void 0:d.call(u,e.name);f={type:"string",title:null!==(p=null===(v=null===(c=null===(s=null===t||void 0===t?void 0:t.viewModel)||void 0===s?void 0:s.derivedFunctions)||void 0===c?void 0:c.overrideTitle)||void 0===v?void 0:v.call(c,e.name))&&void 0!==p?p:e.description,default:b,enum:void 0!==_?_.filter(function(e){return m.includes(e)}):m}}return f}}},629:function(e,t,n){"use strict";t.eh=void 0;var i=n(4757);Object.defineProperty(t,"eh",{enumerable:!0,get:function(){return i.process}});var r=n(4141)},874:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.logAnalytics=t.getAnalyticsDefault=void 0;var r=n(9943);t.getAnalyticsDefault=function(e){return(0,t.logAnalytics)(e,[],[])};t.logAnalytics=function(e,t,n){var a,l,d={},s=(0,r.getConfigData)(e,!0),c=null===(a=s.analytics)||void 0===a?void 0:a.logAlwaysComps.concat(null!==t&&void 0!==t?t:[]);d=o(e,s,c);var v=null===(l=s.analytics)||void 0===l?void 0:l.logOnChangeComps.concat(null!==n&&void 0!==n?n:[]),p=e.getState();return d=i(i({},d),u(s,e,p,v))};var o=function(e,t,n){for(var i,r,o,l={},u=0,d=null!==n&&void 0!==n?n:[];u<d.length;u++){var s=d[u],v=void 0,p=e.getAutoModuleAppModel().getAllComponents(),f=void 0,g=void 0;if("*"===s){for(var m in p)v=null===(o=t.analytics)||void 0===o?void 0:o.compMapping[m],f=p[m].component,c(f)&&(l[g=v||("hardware"===f.category?a(f):m)]="time"===f.type||"frequency"===f.type?JSON.stringify(e.getComponentValue(m)):e.getComponentValue(m));break}if(void 0!==(f=null===(i=p[s])||void 0===i?void 0:i.component)&&c(f)){g=(v=null===(r=t.analytics)||void 0===r?void 0:r.compMapping[s])||("hardware"===f.category?a(f):s);var h="time"===f.type||"frequency"===f.type?JSON.stringify(e.getComponentValue(s)):e.getComponentValue(s);void 0!==h&&(l[g]=h)}}return l},a=function(e){var t="hardware"===e.category?e.setting:"",n=l(e.name,t);return""===n?t:""===t?n:n+"_"+t},l=function(e,t){var n=e.toUpperCase(),i=t.toUpperCase();return n.replace(i,"")},u=function(e,t,n,i){var r,o;if(!i||0===i.length)return{};var l=d(i,t,e);for(var u in n)for(var s in n[u])for(var v in n[u][s])if(-1!==(null===i||void 0===i?void 0:i.indexOf(v))||-1!==(null===i||void 0===i?void 0:i.indexOf("*"))){var p=null===(r=e.analytics)||void 0===r?void 0:r.compMapping[v],f=null===(o=t.getAutoModuleAppModel().getAllComponents()[v])||void 0===o?void 0:o.component;if(void 0===f||!c(f))continue;l[p||("hardware"===f.category?a(f):v)]=n[u][s][v]}return l},d=function(e,t,n){for(var i,r,o,a={},l=t.getAutoModuleAppModel().getAllComponents(),u=function(e,t){for(var n,i,r=[],o=t.getAutoModuleAppModel().getAllComponents(),a=0,l=null!==e&&void 0!==e?e:[];a<l.length;a++){var u=l[a],d=null===(n=o[u])||void 0===n?void 0:n.component;if("*"!==u&&"import"===(null===d||void 0===d?void 0:d.category))r.push(u);else if("*"===u){for(var s in r=[],o)"import"===(null===(d=null===(i=o[s])||void 0===i?void 0:i.component)||void 0===d?void 0:d.category)&&r.push(d.name);break}}return r}(e,t),d=0,c=u;d<c.length;d++){var v=c[d],p=null!==(r=null===(i=n.analytics)||void 0===i?void 0:i.compMapping[v])&&void 0!==r?r:v,f=null===(o=l[v])||void 0===o?void 0:o.component;if("import"===(null===f||void 0===f?void 0:f.category)){var g=s(f,t);g&&(a[p]=g)}}return a},s=function(e,t){var n;return null===(n=t.getImports()[e.importId].handle)||void 0===n?void 0:n.label},c=function(e){return void 0!==e&&("hardware"===e.category||"software"===e.category||"import"===e.category||"table"===e.category)}},1378:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.UiSchemaBuilder=t.SchemaBuilder=t.ViewSchemaBuilder=void 0;var i=function(){function e(){this.schema={},this.uiSchema={},this.formData={},this.tabName="main",this.expandGroupsByDefault=!0}return e.prototype.withSchema=function(e){return this.schema=e,this},e.prototype.withUiSchema=function(e){return this.uiSchema=e,this},e.prototype.withFormData=function(e){return this.formData=e,this},e.prototype.withTabName=function(e){return this.tabName=e,this},e.prototype.withExpandedDefault=function(e){return this.expandGroupsByDefault=e,this},e.prototype.addChildComponent=function(e,t){var i,r,o;this.schema=n(n({},this.schema),{properties:n(n({},this.schema.properties),(i={},i[e]=t.schema,i))}),this.uiSchema=n(n({},this.uiSchema),((r={})[e]=t.uiSchema,r)),this.formData instanceof Object&&(this.formData=n(n({},this.formData),((o={})[e]=t.formData,o)))},e.prototype.build=function(){return{schema:this.schema,uiSchema:this.uiSchema,formData:this.formData,name:this.tabName,expandGroupsByDefault:this.expandGroupsByDefault}},e}();t.ViewSchemaBuilder=i;var r=function(){function e(e,t){this.title=t,this.type=e}return e.prototype.withProperties=function(e){return this.properties=e,this},e.prototype.withDefault=function(e){return this.default=e,this},e.prototype.withMaximum=function(e){return this.maximum=e,this},e.prototype.withMinimum=function(e){return this.minimum=e,this},e.prototype.withEnum=function(e){return this.enum=e,this},e.prototype.build=function(){return{type:this.type,title:this.title,properties:this.properties,default:this.default,maximum:this.maximum,minimum:this.minimum,enum:this.enum}},e}();t.SchemaBuilder=r;var o=function(){function e(){}return e.prototype.withReadonlyValue=function(e){return this.isReadOnly=e,this},e.prototype.withWidget=function(e){return this.widget=e,this},e.prototype.withOptions=function(e){return this.options=e,this},e.prototype.withUiHelp=function(e){return this.uiHelp=e,this},e.prototype.build=function(){return{"ui:readonly":this.isReadOnly,"ui:widget":this.widget,"ui:options":this.options,"ui:help":this.uiHelp}},e}();t.UiSchemaBuilder=o},1573:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeComponentFormData=void 0,t.isTimeComponentInState=i,t.isTimeValueInState=r,t.isTimeUnitInState=o,t.isTimeComponent=function(e){return"software"===e.category&&"time"===e.type},t.getTimeComponentSchema=function(e,t){var i,r,o={type:"object",$id:"timeComponent",title:null!==(r=null===(i=null===t||void 0===t?void 0:t.overrideTitle)||void 0===i?void 0:i.call(t,e.name))&&void 0!==r?r:e.description,properties:{value:{type:"number",default:e.defaultValue.value},unit:{type:"string",default:e.defaultValue.unit}}};e.timeMeta&&(e.timeMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:e.timeMeta.min.value},unit:{type:"string",default:e.timeMeta.min.unit}}}})})),e.timeMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:e.timeMeta.max.value},unit:{type:"string",default:e.timeMeta.max.unit}}}})})),e.timeMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:e.timeMeta.unitOptions}}})})));var a=t&&null!=t[e.name]?null===t||void 0===t?void 0:t[e.name]():void 0;a&&(a.description&&(o=n(n({},o),{title:a.description})),a.defaultValue&&(o=n(n({},o),{properties:n(n({},o.properties),{value:{type:"number",default:a.defaultValue.value},unit:{type:"string",default:a.defaultValue.unit}})})),a.timeMeta&&(a.timeMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:a.timeMeta.min.value},unit:{type:"string",default:a.timeMeta.min.unit}}}})})),a.timeMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:a.timeMeta.max.value},unit:{type:"string",default:a.timeMeta.max.unit}}}})})),a.timeMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:a.timeMeta.unitOptions}}})}))));return o};function i(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]}function r(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].value}function o(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].unit}t.getTimeComponentFormData=function(e,t,a){var l,u,d,s,c,v,p,f,g,m,h={value:t.defaultValue.value,unit:t.defaultValue.unit},y=e.getDerivedFunctions()&&null!=e.getDerivedFunctions()[t.name]?null===(l=e.getDerivedFunctions())||void 0===l?void 0:l[t.name]():void 0;if(y?(h=y.defaultValue?{value:y.defaultValue.value,unit:y.defaultValue.unit}:{value:t.defaultValue.value,unit:t.defaultValue.unit},y.timeMeta&&(h=y.timeMeta.min?n(n({},h),{min:{value:y.timeMeta.min.value,unit:y.timeMeta.min.unit}}):n(n({},h),{min:{value:null===(d=null===(u=t.timeMeta)||void 0===u?void 0:u.min)||void 0===d?void 0:d.value,unit:null===(c=null===(s=t.timeMeta)||void 0===s?void 0:s.min)||void 0===c?void 0:c.unit}}),h=y.timeMeta.max?n(n({},h),{max:{value:y.timeMeta.max.value,unit:y.timeMeta.max.unit}}):n(n({},h),{max:{value:null===(p=null===(v=t.timeMeta)||void 0===v?void 0:v.max)||void 0===p?void 0:p.value,unit:null===(g=null===(f=t.timeMeta)||void 0===f?void 0:f.max)||void 0===g?void 0:g.unit}}),h=y.timeMeta.unitOptions?n(n({},h),{options:y.timeMeta.unitOptions}):n(n({},h),{options:null===(m=t.timeMeta)||void 0===m?void 0:m.unitOptions}))):t.timeMeta?(h={value:t.defaultValue.value,unit:t.defaultValue.unit},t.timeMeta.min&&(h=n(n({},h),{min:{value:t.timeMeta.min.value,unit:t.timeMeta.min.unit}})),t.timeMeta.max&&(h=n(n({},h),{max:{value:t.timeMeta.max.value,unit:t.timeMeta.max.unit}})),t.timeMeta.unitOptions&&(h=n(n({},h),{options:t.timeMeta.unitOptions}))):h={value:t.defaultValue.value,unit:t.defaultValue.unit},i(e,t,a)){var b=e.getState(),I=b?b[a]:void 0;if(r(e,t,a)){var _=I[t.group][t.name].value;h=n(n({},h),{value:_})}if(o(e,t,a)){var w=I[t.group][t.name].unit;h=n(n({},h),{unit:w})}return h}return h}},2102:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.values=t.getKeys=t.find=t.filter=t.map=void 0;t.map=function(e,t){var n=[];return e.forEach(function(e,i){n[i]=t(e)}),n};t.filter=function(e,t){var n=[];return e.forEach(function(e){t(e)&&n.push(e)}),n};t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]};t.getKeys=function(e){if(e)return Object.getOwnPropertyNames(e)};t.values=function(e){var n;if(e)return null===(n=(0,t.getKeys)(e))||void 0===n?void 0:n.map(function(t){return e[t]})}},2189:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MyExportInterfaces=t.createExportInterfaces=void 0;var r=n(2102),o=n(9943);t.createExportInterfaces=function(e,t){return new a(e,t)};var a=function(){function e(e,t){var n=this;this.getConfig=function(){return n.config||(n.config=(0,o.getConfigData)(n.model)),n.config},this.getComponents=function(){return n.components||(n.components=n.createComponentList()),n.components},this.createProcessedExports=function(){var e,t,o=n.exports,a=n.getConfig();return a.exports&&(null===(t=(0,r.getKeys)(null!==(e=a.exports)&&void 0!==e?e:{}))||void 0===t||t.forEach(function(e){var t,r,l,u,d,s=null===(r=a.exports)||void 0===r?void 0:r[e];o=i(i({},o),((t={})[e]=i(i({},null===(l=a.exports)||void 0===l?void 0:l[e]),{interfaces:[],name:null!==(u=n.model.getDerivedFunction("exportName",e))&&void 0!==u?u:null===(d=o[e])||void 0===d?void 0:d.name}),t)),null===s||void 0===s||s.interfaces.forEach(function(t){var r,a,l,u,d=n.getInterface(e,t.interfaceId);d&&o[e].interfaces.push(i(i({},d),{payload:null!==(a=null===(r=n.model)||void 0===r?void 0:r.getDerivedFunction(t.interfaceId.name+"_payload"))&&void 0!==a?a:{},payloads:null!==(u=null===(l=n.model)||void 0===l?void 0:l.getDerivedFunction(t.interfaceId.name+"_payloads"))&&void 0!==u?u:{}}))})})),o},this.getInterfaceArgs=function(e,t){var i;return null===(i=n.getInterface(e,t))||void 0===i?void 0:i.args},this.getInterfaceResults=function(e,t){var i;return null===(i=n.getInterface(e,t))||void 0===i?void 0:i.results},this.createComponentList=function(){var e,t,i=[],o=null!==(e=n.getConfig().exports)&&void 0!==e?e:{};return null===(t=(0,r.getKeys)(o))||void 0===t||t.forEach(function(e){o[e].interfaces.forEach(function(e){e.components&&i.push.apply(i,e.components)})}),i},this.isControlledByInterface=function(e){return-1!=n.getComponents().indexOf(e)},this.getProcessedArgValue=function(e){var t,i,r,o=n.getInterfaceData();return n.model&&n.model.getDerivedFunctions().getProcessedArgValue&&void 0!=o&&(r=null===(i=null===(t=n.model.getDerivedFunctions())||void 0===t?void 0:t.getProcessedArgValue)||void 0===i?void 0:i.call(t,e,o)),r},this.getInterfaceData=function(){var e,t,i,o=null!==(e=n.getConfig().exports)&&void 0!==e?e:{};return null===(t=(0,r.getKeys)(o))||void 0===t||t.forEach(function(e){o[e].interfaces.forEach(function(t){var o,a=n.getInterfaceArgs(e,t.interfaceId);a&&(null===(o=(0,r.getKeys)(a))||void 0===o||o.forEach(function(e){var n;null===(n=(0,r.getKeys)(a[e]))||void 0===n||n.forEach(function(n){i||(i=[]),i.push({interface:t.interfaceId.name,name:n,value:a[e][n],module:e})})}))})}),i},this.exports=e,this.model=t}return e.prototype.getInterface=function(e,t){var n;if(this.exports[e])return(0,r.find)(null!==(n=this.exports[e].interfaces)&&void 0!==n?n:[],function(e){return JSON.stringify(e.interfaceId)===JSON.stringify(t)})},e}();t.MyExportInterfaces=a},2265:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPrototypeExports=void 0;var r=n(5056);t.createPrototypeExports=function(e){var t,n,a={};return null===(n=(0,r.getKeys)(null!==(t=null===e||void 0===e?void 0:e.exports)&&void 0!==t?t:{}))||void 0===n||n.forEach(function(t){var n,r=null===(n=null===e||void 0===e?void 0:e.exports)||void 0===n?void 0:n[t];void 0!=r&&(a[t]=i(i({},r),{interfaces:o(r.interfaces)}))}),a};var o=function(e){var t=[];return e.forEach(function(e){var n=e.interfaceId,i=e.payload;t.push({interfaceId:n,payload:i})}),t}},2403:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateRegisterView=void 0;var r=n(7437),o=i(n(9107)),a=n(2102),l=n(1378),u=n(2722),d=function(e){throw new Error(e)},s=function(){function e(e){var t=this;this.registers=[],this.interrupts=[],this.create=function(){var e=(new l.ViewSchemaBuilder).withSchema({title:"Register Settings",type:"object"}).withTabName("Register Initialization").withExpandedDefault(!1);return t.registers.forEach(function(n){e.addChildComponent(n.getRegister().name,t.createRegisterView(n))}),e.addChildComponent("interrupts",t.createInterruptView()),e.build()},this.withRegisterValue=function(e,n){return t.getSafeRegisterViewModel(e).setValue(n),t},this.withInterruptValue=function(e,n){return t.getSafeInterruptViewModel(e).setValue(n),t},this.withInterruptOptions=function(e,n){return t.getSafeInterruptViewModel(e).setOptions(n),t},this.withAllEditable=function(){return t.registers.forEach(function(e){return t.withEditableRegister(e.getRegister())}),t.interrupts.forEach(function(e){t.withEditableInterrupt(e.getInterrupt())}),t},this.withEditableRegister=function(e){var n,i;return t.getSafeRegisterViewModel(e).setReadonly(!1),e&&(null===(i=(0,a.values)(null!==(n=null===e||void 0===e?void 0:e.settings)&&void 0!==n?n:{}))||void 0===i||i.forEach(function(n){"R"===(null===n||void 0===n?void 0:n.type)?t.getSafeSettingViewModel(e,n).setReadonly(!0):t.getSafeSettingViewModel(e,n).setReadonly(!1)})),t},this.withEditableRegisterSetting=function(e,n){return e&&n&&(null===n||void 0===n||n.type,t.getSafeSettingViewModel(e,n).setReadonly(!0)),t},this.withInVisibleRegister=function(e){var n,i;return t.getSafeRegisterViewModel(e).setIsVisible(!1),e&&(null===(i=(0,a.values)(null!==(n=null===e||void 0===e?void 0:e.settings)&&void 0!==n?n:{}))||void 0===i||i.forEach(function(n){t.getSafeSettingViewModel(e,n).setIsVisible(!1)})),t},this.withInVisibleRegisterSetting=function(e,n){return e&&n&&t.getSafeSettingViewModel(e,n).setIsVisible(!1),t},this.withUpdatedSettingDescription=function(e,n,i){return e&&n&&i&&t.getSafeSettingViewModel(e,n).setDescription(i),t},this.withNonEditableRegister=function(e){return t.getSafeRegisterViewModel(e).setReadonly(!0),t},this.withEditableSetting=function(e,n){return t.getSafeSettingViewModel(e,n).setReadonly(!1),t},this.withEditableInterrupt=function(e){return t.getSafeInterruptViewModel(e).setReadonly(!1),t},this.withInVisibleInterrupt=function(e){return t.getSafeInterruptViewModel(e).setIsVisible(!1),t},this.withNonEditableInterrupt=function(e){return t.getSafeInterruptViewModel(e).setReadonly(!0),t},this.getSafeRegisterViewModel=function(e){var n;return null!==(n=t.getRegisterViewModel(null!==e&&void 0!==e?e:d("Invalid register parameter.")))&&void 0!==n?n:d("Cannot get register view model for '".concat(e.name,"'. Not found in this module."))},this.getSafeInterruptViewModel=function(e){var n;return null!==(n=t.getInterruptViewModel(null!==e&&void 0!==e?e:d("Invalid interrupt parameter.")))&&void 0!==n?n:d("Cannot get interrupt view model for '".concat(e.name,"'. Not found in this module."))},this.getSafeSettingViewModel=function(e,n){var i;return null!==(i=t.getSafeRegisterViewModel(e).getSettingViewModel(null!==n&&void 0!==n?n:d("Invalid setting parameter.")))&&void 0!==i?i:d("Cannot get setting view model for '".concat(n.name,"'. Not found in this module."))},this.getRegisterViewModel=function(e){var n=e.name;return(0,a.find)(t.registers,function(e){return e.getRegister().name===n})},this.getInterruptViewModel=function(e){var n=e.name;return(0,a.find)(t.interrupts,function(e){return e.getInterrupt().name===n})},this.createRegisterView=function(e){var n=e.getValue()||0,i=(new l.ViewSchemaBuilder).withSchema({type:"object",title:e.getName()+" : "+o.default.toHexString(n),description:e.getDescription(),properties:{}}).withUiSchema({}).withFormData({});return e.forEachSetting(function(e){i.addChildComponent(e.getName(),t.createSettingView(e))}),i.build()},this.createSettingView=function(e){return e.hasOptions()?t.createHasOptionsViewSchema(e):t.getNoOptionsViewSchema(e)},this.createInterruptView=function(){var e=(new l.ViewSchemaBuilder).withSchema({type:"object",title:"Interrupts",properties:{}}).withUiSchema({}).withFormData({});return t.interrupts.forEach(function(n){e.addChildComponent(n.getInterrupt().name,t.createInterruptViewSchema(n))}),e.build()},this.module=e,this.registers=this.createRegisterViewModelForEachRegister(e),this.interrupts=this.createInterruptViewModelForEachInterrupt(e)}return e.prototype.createRegisterViewModelForEachRegister=function(e){var t,n=[],i=null!==(t=e.registers)&&void 0!==t?t:{};return Object.keys(i).forEach(function(e){n.push(new u.RegisterViewModel(i[e]))}),n},e.prototype.createInterruptViewModelForEachInterrupt=function(e){var t,n=[],i=null!==(t=e.interrupts)&&void 0!==t?t:{};return Object.keys(i).forEach(function(e){n.push(new u.InterruptViewModel(i[e]))}),n},e.prototype.getNoOptionsViewSchema=function(e){var t,n=(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?void 0:"hidden").withUiHelp("".concat(e.getName(),": ")+(null!==(t=e.getDescription())&&void 0!==t?t:""));return{schema:this.createSettingViewSchema(e),uiSchema:e.getMaxValue()>1?n.build():this.getBinarySettingUiSchema(e),formData:e.mapToOptionNameIfExists(e.getValue())}},e.prototype.createHasOptionsViewSchema=function(e){var t,n,i=new l.SchemaBuilder("string",null!==(t=(0,r.getBitLabel)(e.getSetting()))&&void 0!==t?t:"").withEnum(e.getOptionNames()).withDefault(e.mapToOptionNameIfExists(e.getValue())),o=(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?void 0:"hidden").withUiHelp("".concat(e.getName(),": ")+(null!==(n=e.getDescription())&&void 0!==n?n:""));return{schema:i.build(),uiSchema:o.build(),formData:e.mapToOptionNameIfExists(e.getValue())}},e.prototype.createSettingViewSchema=function(e){var t,n=new l.SchemaBuilder("integer",null!==(t=(0,r.getBitLabel)(e.getSetting()))&&void 0!==t?t:"").withDefault(e.mapToOptionNameIfExists(e.getPORDefault()));return e.getMaxValue()>1?n.withMaximum(e.getMaxValue()).withMinimum(0):n.withEnum([0,1]),n.build()},e.prototype.createInterruptViewSchema=function(e){var t,n=new l.SchemaBuilder("string",e.getInterrupt().name).withEnum(e.getOptions()).withDefault(e.getValue()),i=(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?void 0:"hidden");return{schema:n.build(),uiSchema:i.build(),formData:null!==(t=e.getValue())&&void 0!==t?t:{}}},e.prototype.getBinarySettingUiSchema=function(e){var t;return(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?"radio":"hidden").withUiHelp("".concat(e.getName(),": ")+(null!==(t=e.getDescription())&&void 0!==t?t:"")).withOptions({inline:!0}).build()},e.for=function(t){return t||d("Creation failed. Invalid module parameter."),t.registers||t.interrupts||d("Creation failed for ".concat(t.name,". Input module contains no registers or interrupts.")),new e(t)},e}();t.CreateRegisterView=s},2435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PCPStateActionBuilder=void 0;var i=n(8087),r=function(){function e(e){this.actionDataArr=[],this.pinRow=e,this.tabId="main"}return e.prototype.rowWithName=function(e){return this.rowName=e,this},e.prototype.compWithTabId=function(e){return this.tabId=e,this},e.prototype.addIfLockedSetValue=function(e,t,n){return this.actionDataArr.push({pinstate:i.pin_state.LOCKED,validFor:e,validForpinNameReEx:n,value:t,actiontype:i.actiontype.SETACTION}),this},e.prototype.addIfLockedProvideAttribs=function(e,t){return this.actionDataArr.push({pinstate:i.pin_state.LOCKED,validFor:e,value:this.formAttribs(t),actiontype:i.actiontype.ATTRIBACTION}),this},e.prototype.addIfUnlockedProvideAttribs=function(e,t){return this.actionDataArr.push({pinstate:i.pin_state.UNLOCK,validFor:e,value:this.formAttribs(t),actiontype:i.actiontype.ATTRIBACTION}),this},e.prototype.formAttribs=function(e){return{attribs:e}},e.prototype.addIfUnLockedSetValue=function(e,t){return this.actionDataArr.push({pinstate:i.pin_state.UNLOCK,validFor:e,value:t,actiontype:i.actiontype.SETACTION}),this},e.prototype.forComponent=function(e){return this.component=e,this},e.prototype.build=function(){var e=this,t=[];return this.pinRow.name===this.rowName&&this.actionDataArr.forEach(function(n){var i,r,o={validFor:n.validFor,state:(i={},i[n.pinstate]={type:"[FORM] SUBMIT",payload:{tabId:e.tabId,path:e.component.group+"."+e.component.name,value:n.value}},i),actiontype:null!==(r=n.actiontype)&&void 0!==r?r:""};void 0!==n.validForpinNameReEx&&(o.validForpinNameReEx=n.validForpinNameReEx),t.push(o)}),t},e}();t.PCPStateActionBuilder=r},2645:function(e,t,n){"use strict";var i=n(6888);t.K=i.Interface},2722:function(e,t,n){"use strict";var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingViewModel=t.RegisterViewModel=t.InterruptViewModel=void 0;var o=r(n(9107)),a=n(2102),l=n(7437),u=function(e){var t=this;if(this.isReadOnly=!0,this.isVisible=!0,this.getInterrupt=function(){return t.interrupt},this.setValue=function(e){t.value=e},this.getValue=function(){return t.value},this.setOptions=function(e){t.options=e},this.getOptions=function(){var e;return null!==(e=t.options)&&void 0!==e?e:[]},this.getIsReadonly=function(){return t.isReadOnly},this.getIsVisible=function(){return t.isVisible},this.setReadonly=function(e){t.isReadOnly=e},this.setIsVisible=function(e){t.isVisible=e},!e)throw new Error("IllegalInputArgument for 'interrupt' in InterruptValue");this.interrupt=e};t.InterruptViewModel=u;var d=function(){function e(e){var t=this;if(this.settings=[],this.getSettings=function(){return t.settings},this.getSettingViewModel=function(e){var n=e.name;return(0,a.find)(t.settings,function(e){return e.getSetting().name===n})},this.forEachSetting=function(e){t.settings.forEach(e)},this.getRegister=function(){return t.register},this.getName=function(){return t.register.name},this.getDescription=function(){return t.register.desc},this.getValue=function(){return t.value},this.setValue=function(e){t.value=e},this.setReadonly=function(e){void 0===e&&(e=!0),t.forEachSetting(function(t){return t.setReadonly(e)})},this.setIsVisible=function(e){t.forEachSetting(function(t){return t.setReadonly(e)})},this.getDefaultValue=function(){return o.default.for(t.register).asNumber()},this.getValueOrDefault=function(){var e=t.getValue();return null!==e&&void 0!==e?e:t.getDefaultValue()},!e)throw new Error("IllegalInputArgument for 'register' in RegisterValue");this.register=e,e.settings&&(this.settings=this.createSettingViewModels(e))}return e.prototype.createSettingViewModels=function(t){var n,i=this,r=[],o=null!==(n=t.settings)&&void 0!==n?n:{};return Object.keys(o).forEach(function(e){r.push(new s(o[e],i.getValueOrDefault))}),e.sortSettingsDescending(r)},e.sortSettingsDescending=function(e){var t=i([],e,!0);return t.sort(function(e,t){var n,i,r,o,a=null!==(i=null===(n=(0,l.getBitRange)(e.getSetting()))||void 0===n?void 0:n.high)&&void 0!==i?i:-1;return(null!==(o=null===(r=(0,l.getBitRange)(t.getSetting()))||void 0===r?void 0:r.high)&&void 0!==o?o:-1)-a}),t},e}();t.RegisterViewModel=d;var s=function(e,t){var n=this;if(this.isReadonly=!0,this.isVisible=!0,this.setReadonly=function(e){void 0===e&&(e=!0),n.isReadonly=e},this.setIsVisible=function(e){n.isVisible=e},this.setDescription=function(e){n.setting.description=e},this.getIsReadonly=function(){return n.isReadonly},this.getIsVisible=function(){return n.isVisible},this.getSetting=function(){return n.setting},this.getName=function(){return n.setting.name},this.getDescription=function(){return n.setting.description},this.getPORDefault=function(){return Number(n.setting.porDefault)},this.getMask=function(){return Number(n.setting.mask)},this.hasOptions=function(){return!!n.setting.options},this.getOptionNames=function(){return(0,a.map)(c(n.setting.options),function(e){return e.name})},this.mapToOptionNameIfExists=function(e){var t=n.getOptionForValue(e);return void 0!==t?t.name:e},this.getOptionForValue=function(e){return(0,a.find)(c(n.setting.options),function(t){var n=t.value;return void 0!=n&&parseInt(n)===e})},this.getValue=function(){var e=n.getRegisterValue();return(e&=n.getMask())>>>n.getShift()},this.getShift=function(){for(var e=n.getMask(),t=0;!(1&e);)e>>>=1,t++;return t},this.getMaxValue=function(){for(var e=n.getMask();!(1&e);)e>>>=1;return e},!e)throw new Error("SettingViewModel: Invalid input argument");this.setting=e,this.getRegisterValue=t};t.SettingViewModel=s;var c=function(e){return null!==e&&void 0!==e?e:[]}},2836:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MyImportInterfaces=t.createImportInterfaces=void 0;var r=n(2102),o=n(5037),a=n(3558),l=n(5056);t.createImportInterfaces=function(e,t,n){return new u(e,t,n)};var u=function(e,t,n){var u=this;this.createProcessedImports=function(e){var t,n=u.filterImports();return null===(t=(0,l.getKeys)(null!==n&&void 0!==n?n:{}))||void 0===t||t.forEach(function(t){var r,a,l,d,s,c,v,p,f,g,m,h,y,b;n=i(i({},n),((r={})[t]=i(i(i({},n[t]),{args:"arguments"===e?null===(a=u.model)||void 0===a?void 0:a.getDerivedFunction(t+"_args"):null===(l=n[t])||void 0===l?void 0:l.args,results:"results"===e?u.getResults(n,t):null===(d=n[t])||void 0===d?void 0:d.results,name:null!==(s=u.model.getDerivedFunction("importName",t))&&void 0!==s?s:null===(c=n[t])||void 0===c?void 0:c.name,handle:(0,o.getProcessedHandle)(n[t].handle,n[t].payload),options:null!==(f=u.getProcessedImportOptions(t,null!==(p=null===(v=n[t])||void 0===v?void 0:v.options)&&void 0!==p?p:[]))&&void 0!==f?f:n[t].options,shouldAssignDescendantsInOrder:null!==(h=null===(m=(g=u.model.getDerivedFunctions()).updateImportWithShouldAssignDescOrder)||void 0===m?void 0:m.call(g,t))&&void 0!==h?h:n[t].shouldAssignDescendantsInOrder}),null===(b=(y=u.model.getDerivedFunctions()).overrideImport)||void 0===b?void 0:b.call(y,t,n[t])),r))}),n},this.createProcessedImportsForDynamicAssignment=function(e){var t,n=u.filterImports();return null===(t=(0,l.getKeys)(null!==n&&void 0!==n?n:{}))||void 0===t||t.forEach(function(e){var t,r,o,a;n=i(i({},n),((t={})[e]=i(i({},n[e]),null!==(a=null===(o=(r=u.model.getDerivedFunctions()).updateImportKeysForDynamicAssignment)||void 0===o?void 0:o.call(r,e))&&void 0!==a?a:{}),t))}),n},this.filterImports=function(){var e,t,n;return null!==(n=null===(t=(e=u.model.getDerivedFunctions()).filterImports)||void 0===t?void 0:t.call(e,u.imports))&&void 0!==n?n:u.imports},this.getProcessedImportOptions=function(e,t){var n=[];return null===t||void 0===t||t.forEach(function(t,r){var o,a;n[r]=i(i({},t),{handle:i(i({},t.handle),{label:null!==(o=u.model.getDerivedFunction("importOptionLabel",e,t))&&void 0!==o?o:null===(a=t.payload)||void 0===a?void 0:a.moduleName})})}),n},this.getResults=function(e,t){var n,o,d,s,c,v,p,f,g,m,h,y,b,I,_,w,S,D,C,E=null===(n=u.model)||void 0===n?void 0:n.getDerivedFunction(t+"_results");if(E)return E;var A=e[t];if("initializer-system"===A.interfaceId.name)return{initializer:{name:u.model.getName()+"_Initialize",header:null!==(d=null===(o=u.model)||void 0===o?void 0:o.getDerivedFunction("headerFile"))&&void 0!==d?d:{name:u.model.getName().toLowerCase()+".h",path:"include/"}}};if("pin-standard"===A.interfaceId.name)return null===(c=(s=u.model).getPCPHelper)||void 0===c?void 0:c.call(s).getData();if("pins-interface"===A.interfaceId.name)return null===(p=(v=u.model).getPCPHelper)||void 0===p?void 0:p.call(v).getData();if("interrupt-standard"===A.interfaceId.name){var O=[],P={},M=null!==(m=null===(g=null===(f=u.model)||void 0===f?void 0:f.getImportValue("interrupt_standard"))||void 0===g?void 0:g.isHighPriority)&&void 0!==m?m:{};return null===(b=(0,l.values)(null!==(y=null===(h=u.model.getHardware())||void 0===h?void 0:h.getPeripheral().interrupts)&&void 0!==y?y:{}))||void 0===b||b.forEach(function(e){var t,n,o,l,d,s,c,v,p,f,g,m,h,y,b,I,_,w,S,D,C,E,A,N,R,F;if(e&&(null===(d=null===(l=(o=u.model.getDerivedFunctions()).filterInterrupts)||void 0===l?void 0:l.call(o,e.name))||void 0===d||d)){var V=null!==(c=null!==(s=u.getInterruptComponentName(e.name))&&void 0!==s?s:e.name.toLowerCase())&&void 0!==c?c:"",T=null!==(v=u.model.isComponentValue(null!==V&&void 0!==V?V:""))&&void 0!==v&&v;O.push({name:null!==(p=e.name)&&void 0!==p?p:"",module:null!==(m=null!==(g=null===(f=u.model.getHardware())||void 0===f?void 0:f.getName())&&void 0!==g?g:u.model.getName())&&void 0!==m?m:"",isEnabled:T,isrCallback:null!==(I=null===(b=null===(h=u.model)||void 0===h?void 0:(y=h.getDerivedFunctions()).isrCallback)||void 0===b?void 0:b.call(y,e.name))&&void 0!==I?I:{name:u.model.getName()+e.handlerName,header:null!==(D=null===(S=null===(_=u.model)||void 0===_?void 0:(w=_.getDerivedFunctions()).headerFile)||void 0===S?void 0:S.call(w))&&void 0!==D?D:{name:u.model.getName().toLowerCase()+".h",path:"include/"}},generateISR:T,isHighPriority:null===(C=M[e.name])||void 0===C||C});var H=(t=null!==(N=null===(A=(E=u.model.getDerivedFunctions()).getInterruptActions)||void 0===A?void 0:A.call(E,e.name,"isEnabled"))&&void 0!==N?N:[]).concat.apply(t,(0,a.getDefaultInterruptActions)(u.model,V));!0===(null===(F=null===(R=u.model.getState())||void 0===R?void 0:R.contentMeta)||void 0===F?void 0:F.isUserEnRegRWMode)&&(H=u.getRegisterEditorInterruptActions(V));var x=(0,r.find)(H,function(e){return e.validFor!==T});P=i(i({},P),((n={})[e.name]=i(i({},null===P||void 0===P?void 0:P[e.name]),{isEnabled:x?[x]:[]}),n))}}),{interruptList:O,interruptActions:P,moduleName:null!==(I=u.model.getName())&&void 0!==I?I:""}}return"api-prefix-registration"===A.interfaceId.name?{apiPrefix:null!==(S=null===(w=null===(_=u.model)||void 0===_?void 0:_.getDerivedFunctions())||void 0===w?void 0:w.apiPrefix)&&void 0!==S?S:null===(D=u.model)||void 0===D?void 0:D.getComponentValue("componentName"),moduleName:null===(C=u.model)||void 0===C?void 0:C.getName()}:void 0},this.getInterruptComponentName=function(e){var t,n;return null===(n=null===(t=u.model.getDerivedFunctions())||void 0===t?void 0:t.interruptComponentName)||void 0===n?void 0:n.call(t,e)},this.getRegisterEditorInterruptActions=function(e){return[{validFor:!0,action:{type:"[FORM] SUBMIT",payload:{tabId:"register",value:!0,path:"interrupts."+e.toUpperCase()}}},{validFor:!1,action:{type:"[FORM] SUBMIT",payload:{tabId:"register",value:!1,path:"interrupts."+e.toUpperCase()}}}]},this.imports=e,this.model=t};t.MyImportInterfaces=u},2980:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getFreqCompFormData=void 0,t.isFreqComponentInState=i,t.isFreqValueInState=r,t.isFreqUnitInState=o,t.isFrequencyComponent=function(e){return"software"===e.category&&"frequency"===e.type},t.getFreqCompSchema=function(e,t){var i,r,o={type:"object",$id:"frequency",title:null!==(r=null===(i=null===t||void 0===t?void 0:t.overrideTitle)||void 0===i?void 0:i.call(t,e.name))&&void 0!==r?r:e.description,properties:{value:{type:"number",default:e.defaultValue.value},unit:{type:"string",default:e.defaultValue.unit}}};e.frequencyMeta&&(e.frequencyMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:e.frequencyMeta.min.value},unit:{type:"string",default:e.frequencyMeta.min.unit}}}})})),e.frequencyMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:e.frequencyMeta.max.value},unit:{type:"string",default:e.frequencyMeta.max.unit}}}})})),e.frequencyMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:e.frequencyMeta.unitOptions}}})})));var a=t&&null!=t[e.name]?null===t||void 0===t?void 0:t[e.name]():void 0;a&&(a.description&&(o=n(n({},o),{title:a.description})),a.defaultValue&&(o=n(n({},o),{properties:n(n({},o.properties),{value:{type:"number",default:a.defaultValue.value},unit:{type:"string",default:a.defaultValue.unit}})})),a.frequencyMeta&&(a.frequencyMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:a.frequencyMeta.min.value},unit:{type:"string",default:a.frequencyMeta.min.unit}}}})})),a.frequencyMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:a.frequencyMeta.max.value},unit:{type:"string",default:a.frequencyMeta.max.unit}}}})})),a.frequencyMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:a.frequencyMeta.unitOptions}}})}))));return o};function i(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]}function r(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].value}function o(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].unit}t.getFreqCompFormData=function(e,t,a){var l,u={value:t.defaultValue.value,unit:t.defaultValue.unit};t.frequencyMeta&&(t.frequencyMeta.min&&(u=n(n({},u),{min:{value:t.frequencyMeta.min.value,unit:t.frequencyMeta.min.unit}})),t.frequencyMeta.max&&(u=n(n({},u),{max:{value:t.frequencyMeta.max.value,unit:t.frequencyMeta.max.unit}})),t.frequencyMeta.unitOptions&&(u=n(n({},u),{options:t.frequencyMeta.unitOptions})));var d=e.getDerivedFunctions()&&null!=e.getDerivedFunctions()[t.name]?null===(l=e.getDerivedFunctions())||void 0===l?void 0:l[t.name]():void 0;if(d&&(d.defaultValue&&(u=n(n({},u),{value:d.defaultValue.value,unit:d.defaultValue.unit})),d.frequencyMeta&&(d.frequencyMeta.min&&(u=n(n({},u),{min:{value:d.frequencyMeta.min.value,unit:d.frequencyMeta.min.unit}})),d.frequencyMeta.max&&(u=n(n({},u),{max:{value:d.frequencyMeta.max.value,unit:d.frequencyMeta.max.unit}})),d.frequencyMeta.unitOptions&&(u=n(n({},u),{options:d.frequencyMeta.unitOptions})))),i(e,t,a)){var s=e.getState(),c=s?s[a]:void 0;if(r(e,t,a)){var v=c[t.group][t.name].value;u=n(n({},u),{value:v})}if(o(e,t,a)){var p=c[t.group][t.name].unit;u=n(n({},u),{unit:p})}return u}return u}},3169:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createScfUiSchema=function(e,t,n){var u,d={};if(t){var s=function(e){return e.getAutoModuleAppModel().getAllComponents()}(n);null===(u=(0,o.getKeys)(s))||void 0===u||u.forEach(function(t){var o,u,c,v,p,f,g,m,h,y,b=s[t].component,I=b.name,_=b.group,w={};if(-1!=b.tabs.indexOf(e)){d[_]||(d[_]={}),d[_][I]||(d[_][I]={});var S=function(e,t){if("import"===e.category)return function(e,t){var n=new a.DependencySelector(t,e),i=n.generateDropdownOptions(),r=[];return i.forEach(function(t){var n=t.value;r.push({type:"[Import] SET",payload:{importId:e.importId,handle:null===n||void 0===n?void 0:n.handle,interfaceId:null===n||void 0===n?void 0:n.interfaceId,option:t.label}})}),JSON.stringify(r)}(e,t);var n=t.getDerivedFunction("getActions",e.name,e.actions);return JSON.stringify(n)}(b,n),D=n.getDerivedFunction("getCustomUiErrors",I);if(n.getImports()){var C=n.getImportValue("device_meta"),E=null!==(o=null===C||void 0===C?void 0:C.hasSdlSupport)&&void 0!==o&&o;if(b.sdlHelp&&E){var A=b.sdlHelp.url;w.helpKeyword=function(e,t,n){var i;return null!==(i=e.getDerivedFunction("getHelpUrl",t,n))&&void 0!==i?i:(0,l.getAutoSdlHelp)(e,t,n)}(n,I,A),w.tooltip=function(e){var t,n;return null!==(n=null===(t=e.sdlHelp)||void 0===t?void 0:t.tooltip)&&void 0!==n?n:"Click for more information"}(b)}}if("file_load"===b.category&&(w.fileLoadProps={},w.fileLoadProps.fileId=t,w.fileLoadProps.saveState=null!==(c=null===(u=b.fileMeta)||void 0===u?void 0:u.saveState)&&void 0!==c&&c,w.fileLoadProps.filter=null===(v=b.fileMeta)||void 0===v?void 0:v.filter,w.fileLoadProps.type="file_load",w.fileLoadProps.compText=null===(p=b.fileMeta)||void 0===p?void 0:p.compText),"file_save"===b.category&&(w.fileSaveProps={},w.fileSaveProps.fileId=t,w.fileSaveProps.fileContents=n.getComponentValue(b.name),w.fileSaveProps.fileName=null===(f=b.fileMeta)||void 0===f?void 0:f.defaultName,w.fileSaveProps.type="file_save",w.fileSaveProps.compText=null===(g=b.fileMeta)||void 0===g?void 0:g.compText),"table"===b.category){var O=null===(y=null===(h=null===(m=null===n||void 0===n?void 0:n.getState())||void 0===m?void 0:m[e])||void 0===h?void 0:h[_])||void 0===y?void 0:y[I],P=(0,r.createTableUids)(b,e,n,O);w.table=function(e,t){var n=(0,r.getCellValidationInfo)(e);return{canRemoveRows:e.canRemoveRows,canInsertRows:e.canInsertRows,canAddRows:e.canAddRows,canMoveRowDown:e.canMoveRowDown,canMoveRowUp:e.canMoveRowUp,canEnableRows:e.canEnableRows,uids:t,cellValidationInfo:n}}(b,P),S=(0,r.getTableActions)(b,e,n,P)}w.precision=b.precision,w.shouldDispatchOnChange=b.shouldDispatchOnChange,S&&(w.actions=S),D&&(w.transformErrors=D),d[_][I]=i({},w)}})}return d};var r=n(3226),o=n(5056),a=n(5037),l=n(9581)},3226:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getTableHelpers=void 0,t.getTableComponentSchema=function(e,t){var n,r,o,a,l={};for(var u in e.columns){var d=void 0;if("ComboBox"===e.columns[u].type){var s=e.columns[u];d="string",l[u]={type:d,title:s.title,default:O(t.overrideDefaultValues,s,u,e.name),enum:P(t.overrideTableOptions,s,u,e.name)}}else d=null===(n=null===e||void 0===e?void 0:e.columns[u])||void 0===n?void 0:n.type,l[u]={type:d,title:e.columns[u].title,default:e.columns[u].defaultValue}}return{type:"array",title:null!==(a=null===(o=null===(r=t.viewModel.derivedFunctions)||void 0===r?void 0:r.overrideTitle)||void 0===o?void 0:o.call(r,e.name))&&void 0!==a?a:e.description,items:{type:"object",properties:i({},l)}}},t.overrideTableDefaultsWithChanges=u,t.isTableInState=d,t.calculateColumnWidth=s,t.getInitialTableFormData=c,t.createInitialRows=v,t.overrideCellValue=p,t.addRowsToTable=f,t.addRowToTable=g,t.removeRowFromTable=m,t.getTableFormData=h,t.getValueBasedOnState=y,t.overrideDefaultsAndFilterRows=b,t.createTableUids=I,t.getCellValidationInfo=_,t.getTableActions=w,t.getTableUiSchema=S,t.getCellStyle=D,t.getHeaderStyle=C;var o=n(6002),a=n(2102),l=n(4308);function u(e,t,n){var o=r([],t,!0);return Array.isArray(e)&&e.forEach(function(e){var t=e.uid,r=n[t];o[r]=i(i({},o[r]),e)}),o}function d(e,t){return e&&e[t.group]&&e[t.group][t.name]}function s(e){if(!e)return{};var t=0,n=0,i={};for(var r in e)if("boolean"===e[r].type){var o=8;n++,i[r]=o,t+=o}for(var r in e)if("boolean"!==e[r].type){o=(100-t)/(Object.keys(e).length-n);i[r]=o}return i}function c(e,t,n){var r=[],a={};if(t.forEach(function(t){a[t]||(a[t]=O(n.getDerivedFunctions().overrideTableDefaultValues,e.columns[t],t,e.name))}),null===e||void 0===e?void 0:e.rowData){var l=0;null===e||void 0===e||e.rowData.forEach(function(e){var n=Object.keys(e);t.forEach(function(t){var r;-1===n.indexOf(t)&&(e=i(i({},e),((r={})[t]=a[t],r.uid=M(o.RowPrefix.Default,l),r)))}),r.push(i(i({},e),{uid:M(o.RowPrefix.Default,l),rowId:l})),l++})}else r=v(e,a);return r}function v(e,t){var n;void 0===t&&(t={});for(var r=[],a=null!==(n=null===e||void 0===e?void 0:e.defaultRowNum)&&void 0!==n?n:1,l=0;l<a;l++)r.push(i(i({},t),{rowId:l,uid:M(o.RowPrefix.Default,l)}));return r}function p(e,t){var n=r([],e,!0);return n[t.rowId][t.columnName]=t.value,n}function f(e,t,n,r){return r<=0?e:f(g(e,t,i(i({},n),{uid:o.RowPrefix.Dynamic+(r-1)})),t,n,r-1)}function g(e,t,n){var o,a=Object.keys(t),l=Object.keys(n),u=n.rowId,d=[];if(0===e.length)return d.push(n),d;if(null!=u){a.forEach(function(e){var r,o,a,u=s(t);-1===l.indexOf(e)&&(n=i(i({},n),((r={})[e]=null!==(a=null===(o=t[e].defaultValue)||void 0===o?void 0:o.value)&&void 0!==a?a:t[e].defaultValue,r.columnWidth=t[e].columnWidth?t[e].columnWidth+"%":u[e]+"%",r)))});for(var c=e.slice(0,u),v=e.slice(u),p=0;p<v.length;p++){var f=v[p].rowId;v[p]=i(i({},v[p]),{rowId:f+1});var g=null===(o=v[p])||void 0===o?void 0:o.actions;g&&(v[p].actions=A(g,f+1))}return c.push(n),d=r(r([],c,!0),v,!0)}return e}function m(e,t){for(var n,i=e.filter(function(e){return e.rowId!==t}),r=0;r<i.length;r++){i[r].rowId=r;var o=null===(n=i[r])||void 0===n?void 0:n.actions;o&&(i[r].actions=A(o,r))}return i}function h(e,t,n){var i;return null!==(i=e.getDerivedFunction(t.name,t,e,n))&&void 0!==i?i:y(t,e,n)}function y(e,t,n){var i=Object.keys(e.columns),r=t.getState(),o=r?r[n]:void 0,a=c(e,i,t);if(d(o,e)){var l=o[e.group][e.name],u=I(e,n,t,l);return b(l,a,e.columns,u,e,n)}return a}function b(e,t,n,a,l,d){var s=r([],t,!0),c=Object.keys(a);(e=e.filter(function(e){return null!=e})).forEach(function(e){e.uid.indexOf(o.RowPrefix.Dynamic)>-1&&s.push(e)});var v=[];c.forEach(function(e){s.forEach(function(n){n.uid===e&&(v[a[e]]=i(i({},t[0]),n))})}),v=v.filter(function(e){return e});for(var p=0;p<v.length;p++)v[p].uid.indexOf(o.RowPrefix.Dynamic)>-1||v[p].rowId++;var f=function(e){Object.keys(n).forEach(function(t){s[e].actions=A(E(l,e,t,d,a),e)})};for(p=0;p<s.length;p++)f(p);return u(e,v,a)}function I(e,n,r,l){var u,d,s,c=e,p=null===r||void 0===r?void 0:r.getDerivedFunction(e.name,e,r,n);if(p){var f={},g=0;return p.forEach(function(e){var t=null===e||void 0===e?void 0:e.uid;void 0!==t&&(f[t]=g++)}),f}var m=c.rowData;if(!p&&m)for(var h=function(e){m[e].uid||(m[e].uid=M(o.RowPrefix.Default,e)),m[e].rowId=null!==(d=null===(u=(0,a.find)(null!==l&&void 0!==l?l:[],function(t){return t.uid===(null===m||void 0===m?void 0:m[e].uid)}))||void 0===u?void 0:u.rowId)&&void 0!==d?d:m[e].rowId},y=0;y<m.length;y++)h(y);else m=null!==p&&void 0!==p?p:v(c).map(function(e){var t,n;return i(i({},null!==e&&void 0!==e?e:{}),{rowId:null!==(n=null===(t=(0,a.find)(null!==l&&void 0!==l?l:[],function(t){return t.uid===(null===e||void 0===e?void 0:e.uid)}))||void 0===t?void 0:t.rowId)&&void 0!==n?n:e.rowId})});return(null!==(s=null===r||void 0===r?void 0:r.getTableHelpers().createUidMapBuilder())&&void 0!==s?s:(0,t.getTableHelpers)().createUidMapBuilder()).addDefaultRows(m).addDynamicRows(null!==l&&void 0!==l?l:[]).removeRows(null!==l&&void 0!==l?l:[]).sortByValue().create()}function _(e){var t=e,n=[],i=t.columns;for(var r in i){var o=t.columns[r];(null===o||void 0===o?void 0:o.cellValidator)&&n.push({type:o.type,minValue:o.cellValidator.minValue,maxValue:o.cellValidator.maxValue,errMessage:o.cellValidator.errorMessage,errTitle:o.cellValidator.errorTitle,cValidation:o.cellValidator.cValidation,cValidationErrTitle:o.cellValidator.cValidationErrorTitle,cValidationErrMessage:o.cellValidator.cValidationErrorMessage})}return n}function w(e,t,n,r,a){var l,u,d,s,c,p,f=e;a||(p=null===n||void 0===n?void 0:n.getDerivedFunction(e.name,e,n,t));var g=null!==(u=null!==(l=null!==a&&void 0!==a?a:p)&&void 0!==l?l:f.rowData)&&void 0!==u?u:v(f),m=Object.keys(f.columns),h={table:{}},y=0,b=null===(c=null===(s=null===(d=null===n||void 0===n?void 0:n.getState())||void 0===d?void 0:d[t])||void 0===s?void 0:s[e.group])||void 0===c?void 0:c[e.name];return g.forEach(function(a){m.forEach(function(l){var u,d,s,c,v;for(var p in h.table[a.uid]||(h.table[a.uid]={}),r)r[p]===a.rowId&&(v=p);v=null!==v&&void 0!==v?v:M(o.RowPrefix.Default,y);var g=E(e,y,l,t,v);if(b){var m=-1,I=b.filter(function(e,t){return m=t,e.uid===v});I.length&&(g=E(e,m,l,t,null!==v&&void 0!==v?v:M(o.RowPrefix.Default,y)))}"ComboBox"==e.columns[l].type&&(g.payload=i(i({},g.payload),{options:P(null===(u=null===n||void 0===n?void 0:n.getDerivedFunctions())||void 0===u?void 0:u.overrideTableOptions,f.columns[l],l,e.name)}));var _=null!==(s=null===(d=a.actions)||void 0===d?void 0:d[l])&&void 0!==s?s:g;h.table[a.uid][l]=null!==(c=null===n||void 0===n?void 0:n.getDerivedFunction("getActions",f.name,_))&&void 0!==c?c:_}),y++}),Object.keys(r).forEach(function(e){m.forEach(function(n){r[e]>-1&&(h.table[e]?h.table[e][n]||(h.table[e][n]=E(f,r[e],n,t,e)):(h.table[e]={},h.table[e][n]=E(f,r[e],n,t,e)))})}),JSON.stringify(h)}function S(e,t){var n,r,o={tableCols:t,search:e.isSearchable,striped:!1,bordered:!1};return e.canRemoveRows&&(o=i(i({},o),{rightActions:[{dataField:"delete-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px",tdStyle:{textOverflow:"unset"}}]})),e.canInsertRows&&(o=i(i({},o),{leftActions:[{dataField:"insert-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px",tdStyle:{textOverflow:"unset"}}]})),e.canMoveRowDown&&(o=i(i({},o),{leftActions:(null!==(n=o.leftActions)&&void 0!==n?n:[]).concat({dataField:"row-down-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px"})})),e.canMoveRowUp&&(o=i(i({},o),{leftActions:(null!==(r=o.leftActions)&&void 0!==r?r:[]).concat({dataField:"row-up-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px"})})),{"ui:field":"table",className:"col-md-12 individualComponent",table:i({},o)}}function D(e){var t={overflow:"hidden",textOverflow:"ellipsis"};return e&&(t.backgroundColor="#EEEEEE"),t}function C(e,t){return t?function(e){return{position:"relative",bottom:"-7px",pointerEvents:"none",left:"6px",transformOrigin:"bottom left",transform:"rotate(-30deg)",paddingTop:"".concat(3.3*e,"px")}}(e):function(e){return{whiteSpace:"unset",maxWidth:"".concat(e,"px")}}(e)}function E(e,t,n,i,r){return{type:"[Table] EDIT_CELL",payload:{tabId:null!==i&&void 0!==i?i:"main",path:"".concat(null===e||void 0===e?void 0:e.group,".").concat(null===e||void 0===e?void 0:e.name),column:n,value:"%v",uid:r,rowId:t}}}function A(e,t){var n=i({},e);return Object.keys(e).forEach(function(e){var i,r=null===(i=n[e])||void 0===i?void 0:i.payload;if(r){var o=r.path.split(".");o[o.length-2]=t,n[e].payload.rowId=t,n[e].payload.path=o.join(".")}}),n}t.getTableHelpers=function(){return{addRowToTable:g,addRowsToTable:f,calculateColumnWidth:s,createInitialRows:v,createTableUids:I,getCellStyle:D,getCellValidationInfo:_,getHeaderStyle:C,getInitialTableFormData:c,getTableActions:w,getTableFormData:h,getTableUiSchema:S,getValueBasedOnState:y,isTableInState:d,overrideCellValue:p,overrideDefaultsAndFilterRows:b,overrideTableDefaultsWithChanges:u,removeRowFromTable:m,createUidMapBuilder:function(){return new l.UidMapBuilder}}};var O=function(e,t,n,i){var r;return null!==(r=null===e||void 0===e?void 0:e(i,n))&&void 0!==r?r:"ComboBox"===t.type?t.defaultValue.value:t.defaultValue},P=function(e,t,n,i){var r,o=null===e||void 0===e?void 0:e(i,n);return o&&o.length>0?o:null===(r=null===t||void 0===t?void 0:t.defaultValue)||void 0===r?void 0:r.options};function M(e,t){return e+t}},3427:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createUiSchema=function(e,t,n){var l,u,d,s,c={};if(t){t.UIOrder&&(null===(d=(0,o.getKeys)(null!==(u=t.UIOrder)&&void 0!==u?u:{}))||void 0===d||d.forEach(function(e){var n;c[e]={"ui:order":null===(n=null===t||void 0===t?void 0:t.UIOrder)||void 0===n?void 0:n[e]}}));var v=n.viewModel.components,p={};for(var f in null===(s=(0,o.values)(null!==v&&void 0!==v?v:{}))||void 0===s||s.forEach(function(t){var l,u,d,s,v,f,g,m,h=t.component;if(-1!==(null!==(s=null===(d=h.tabs)||void 0===d?void 0:d.indexOf(e))&&void 0!==s?s:-1)){if(void 0===p[h.group]||!0===p[h.group]){var y="hidden"===(null===(v=h.uiBehavior)||void 0===v?void 0:v["ui:widget"]);!1===(null===(g=(f=n.getDerivedFunction).isVisible)||void 0===g?void 0:g.call(f,h.name))&&(y=!0),p[h.group]=y}if("table"===h.category){var b=h,I=b.columns,_=Object.keys(I),w="left",S=!(null!==(m=b.displayHeadersHorizontally)&&void 0!==m&&m),D=[],C=(0,r.calculateColumnWidth)(I),E=_.map(function(e){return I[e].title.length}).reduce(function(e,t){return Math.max(e,t)});_.forEach(function(e){var t,i,o,a,l,u,d,s,c,v,p,f,g=!I[e].readonly,m=C[e],h=null!==(o=null===(i=null===(t=n.viewModel.derivedFunctions)||void 0===t?void 0:t.disableTableCells)||void 0===i?void 0:i.call(t,e))&&void 0!==o?o:[];D.push({dataField:e,editable:!!g&&void 0,columnWidth:I[e].columnWidth?I[e].columnWidth+"%":m+"%",width:I[e].width?I[e].width+"%":m+"%",dataSort:I[e].isSortable,headerAlign:S?w:null!==(l=null!==(a=I[e].headerAlign)&&void 0!==a?a:I[e].dataAlign)&&void 0!==l?l:w,dataAlign:null!==(d=null!==(u=I[e].dataAlign)&&void 0!==u?u:I[e].headerAlign)&&void 0!==d?d:w,disabledRows:null!==(s=I[e].disabledRows)&&void 0!==s?s:h,tdStyle:(0,r.getCellStyle)(I[e].readonly),headerText:null===(c=I[e])||void 0===c?void 0:c.columnTip,hidden:null!==(f=null===(p=null===(v=n.viewModel.derivedFunctions)||void 0===v?void 0:v.hideTableColumn)||void 0===p?void 0:p.call(v,e))&&void 0!==f&&f})}),D=D.map(function(e){return i(i({},e),{thStyle:(0,r.getHeaderStyle)(E,S)})}),c[b.group]=i(i({},c[b.group]),((l={})[b.name]=(0,r.getTableUiSchema)(b,D),l))}else c[h.group]=i(i({},c[h.group]),((u={})[h.name]=i(i({},function(e,t){var n,r,l,u,d,s,c,v,p,f,g,m,h,y,b={};e.uiBehavior&&(null===(u=(0,o.getKeys)(null!==(l=e.uiBehavior)&&void 0!==l?l:{}))||void 0===u||u.forEach(function(t){var n,i;if("readonly"===t)b["ui:readonly"]=null===(n=e.uiBehavior)||void 0===n?void 0:n[t];else b[t]=null===(i=e.uiBehavior)||void 0===i?void 0:i[t]}));(0,a.isUrl)(e)?b["ui:widget"]="url":(0,a.isImage)(e)?b["ui:widget"]="image":"file_load"===e.category?(b["ui:field"]="file_load",b["ui:readonly"]=null===(d=e.uiBehavior)||void 0===d?void 0:d.readonly):"time"===e.type?b["ui:field"]="TimeComponent":"frequency"===e.type?b["ui:field"]="frequency":"file_save"===e.category&&(b["ui:field"]="file_save",b["ui:readonly"]=null===(s=e.uiBehavior)||void 0===s?void 0:s.readonly);var I={};if(t){var _=null===(v=(c=t.getDerivedFunction).getUiBehavior)||void 0===v?void 0:v.call(c,e.name);void 0!=_&&(I=i(i({},I),_),-1!=(null===(p=(0,o.getKeys)(null!==I&&void 0!==I?I:{}))||void 0===p?void 0:p.indexOf("readonly"))&&(I["ui:readonly"]=I.readonly,delete I.readonly));var w=null!==(m=null===(g=(f=t.getDerivedFunction).isEnabled)||void 0===g?void 0:g.call(f,e.name))&&void 0!==m?m:(0,a.isModeActive)("isEnabled",e,t.viewModel.getComponent);void 0!=w&&(I=i(i({},I),((n={})["ui:readonly"]=!w,n)));var S=null===(y=(h=t.getDerivedFunction).isVisible)||void 0===y?void 0:y.call(h,e.name);void 0!=S&&(S||(I=i(i({},I),((r={})["ui:widget"]="hidden",r))))}return b=i(i({},b),I)}(h,n)),function(e,t){var n={};if(t.isControlledByInterface(e)){var i=t.getProcessedArgValue(e);i&&(n={"ui:readonly":!0,"ui:help":"Controlled by "+i.interface})}return n}(h.name,n)),u))}}),p)p[f]&&(c[f]=i(i({},c[f]),((l={})["ui:widget"]="hidden",l)))}return c};var r=n(3226),o=n(5056),a=n(4579)},3558:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptActionsBuilder=void 0,t.getDefaultInterruptActions=function(e,t){return t?o.createActionBuilder(e).createActionFor(t).addActionIfEnabled(!0).addActionIfDisabled(!1).buildActions():[]};var r=n(5037),o=function(){function e(e){var t=this;this.actions=[],this.createActionFor=function(e){var n;return t.actions=t.buildActions(),t.curComponent=e?null===(n=t.model.getComponent(e))||void 0===n?void 0:n.component:void 0,t.curComponentName=e,t.tableRowId=void 0,t.tableRowCol=void 0,t.tableCellPath=void 0,t},this.addActionIfEnabled=function(e){if(!t.curComponentName||!t.curComponent)return t;if(!t.isActionValueAcceptable(t.curComponent,e))return t;var n={tabId:t.curComponent.tabs[0],value:e};if("table"===t.curComponent.category){if(!t.tableCellPath)return t;n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name,".").concat(t.tableCellPath),rowId:t.tableRowId})}else n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name)});return t.actions.push({validFor:!0,action:{type:"[FORM] SUBMIT",payload:n}}),t},this.addActionIfDisabled=function(e){if(!t.curComponentName||!t.curComponent)return t;if(!t.isActionValueAcceptable(t.curComponent,e))return t;var n={tabId:t.curComponent.tabs[0],value:e};if("table"===t.curComponent.category){if(!t.tableCellPath)return t;n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name,".").concat(t.tableCellPath),rowId:t.tableRowId})}else n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name)});return t.actions.push({validFor:!1,action:{type:"[FORM] SUBMIT",payload:n}}),t},this.setPathToTableCell=function(e,n){var i;return"table"!==(null===(i=t.curComponent)||void 0===i?void 0:i.category)||(t.tableRowId=e,t.tableRowCol=n,t.tableCellPath="".concat(e,".").concat(n)),t},this.isActionValueAcceptable=function(e,n){var i,o,a,l,u,d,s,c;if("hardware"===e.category){if("ComboBox"===e.type){if(!(null===(v=null===(i=(0,r.getSettingFromComponent)(t.model,e))||void 0===i?void 0:i.options)||void 0===v?void 0:v.some(function(t){var i;return t[null!==(i=e.displayOptionSetting)&&void 0!==i?i:"alias"]===n})))return!1}else if("boolean"===e.type&&!0!==n&&!1!==n)return!1}else if("software"===e.category){if("ComboBox"===e.type){if(!(null===(v=e.options)||void 0===v?void 0:v.some(function(e){return e===n})))return!1}else if("boolean"===e.type&&!0!==n&&!1!==n)return!1}else if("table"===e.category){if(!t.tableRowCol)return!1;var v;if("ComboBox"===(null===(a=null===(o=e.columns)||void 0===o?void 0:o[t.tableRowCol])||void 0===a?void 0:a.type)){if(!(null===(v=null===(d=null===(u=null===(l=e.columns)||void 0===l?void 0:l[t.tableRowCol])||void 0===u?void 0:u.defaultValue)||void 0===d?void 0:d.options)||void 0===v?void 0:v.some(function(e){return e===n})))return!1}else if("boolean"===(null===(c=null===(s=e.columns)||void 0===s?void 0:s[t.tableRowCol])||void 0===c?void 0:c.type)&&!0!==n&&!1!==n)return!1}return!0},this.buildActions=function(){return t.actions},this.model=e}return e.createActionBuilder=function(t){return new e(t)},e}();t.InterruptActionsBuilder=o},4139:function(e){"use strict";e.exports=JSON.parse('{"moduleName":"Flash","deviceType":"PIC","booleanValues":{"true":"enabled","false":"disabled"},"UIGroups":{},"UIOrder":{},"tabs":{"register":"Register Initialization"},"isEntryPoint":false,"templates":[{"src":"output/flash-a-core-ftl/flash.c.ftl","dest":"flash/src/flash.c","isGeneratableProperty":"blockingAPIGenerate"},{"src":"output/flash-a-core-ftl/flash.h.ftl","dest":"flash/flash.h","isGeneratableProperty":"blockingAPIGenerate"},{"src":"output/flash-a-core-ftl/flash_interface.h.ftl","dest":"flash/flash_interface.h","isGeneratableProperty":"enableInterfaceDefinitionGeneration"},{"src":"output/flash-a-core-ftl/flash_types.h.ftl","dest":"flash/flash_types.h"},{"src":"output/flash-a-core-ftl/flash_nonblocking.c.ftl","dest":"flash/src/flash_nonblocking.c","isGeneratableProperty":"nonBlockingAPIGenerate"},{"src":"output/flash-a-core-ftl/flash_nonblocking.h.ftl","dest":"flash/flash_nonblocking.h","isGeneratableProperty":"nonBlockingAPIGenerate"}],"imports":{"nvm_ctrl_32bit_upb_v1":{"import":{"interfaceId":{"name":"nvm_ctrl_32bit_upb_v1","version":"1.0.0"},"isRequired":true}},"system_16bit_initializer":{"nodeModule":{"importName":"system_16bit_initializer","node":"@microchip/system-16bit-initializer"},"import":{"interfaceId":{"name":"system-16bit-initializer","version":"^1.0.0"}}},"config_16bit_interface":{"import":{"interfaceId":{"name":"config-16bit-interface","version":"^1.0.0"}}},"interrupt_service":{"import":{"interfaceId":{"name":"interrupt-16bit-interface","version":"^1.0.0"}}}},"exports":{"flash_interface":{"interfaces":[{"interfaceId":{"name":"flash-interface","version":"1.3.1"}}]}},"peripherals":[{"interfaceId":{"name":"nvm_ctrl_32bit_upb_v1","version":"1.0.0"},"registers":{"NVMCON":[{"setting":"NVMOP","name":"nvmopNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"DRBV","name":"drbvNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"LOCK","name":"lockNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"P2ACTIV","name":"p2activNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]},{"setting":"SFTSWP","name":"sftswpNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"NVMPIDL","name":"nvmpidlNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"WRERR","name":"wrerrNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"WREN","name":"wrenNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"WR","name":"wrNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"WREC","name":"wrecNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["register"]},{"setting":"WRRE","name":"wrreNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]}],"NVMADR":[{"setting":"NVMADR","name":"nvmadrNvmadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA0":[{"setting":"DATA0","name":"data0Nvmdata0","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA1":[{"setting":"DATA1","name":"data1Nvmdata1","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA2":[{"setting":"DATA2","name":"data2Nvmdata2","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA3":[{"setting":"DATA3","name":"data3Nvmdata3","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMSRCADR":[{"setting":"SRCADR","name":"srcadrNvmsrcadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCCON":[{"setting":"FLTINJ","name":"fltinjNvmecccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"SECIE","name":"secieNvmecccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"ECCLOCK","name":"ecclockNvmecccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]}],"NVMECCSTAT":[{"setting":"DED","name":"dedNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"DEDO","name":"dedoNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"SEC","name":"secNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"SECO","name":"secoNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"FLEC","name":"flecNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["register"]},{"setting":"ESEL","name":"eselNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]}],"NVMECCFPTR":[{"setting":"FLT1LPTR","name":"flt1lptrNvmeccfptr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]},{"setting":"FLT2LPTR","name":"flt2lptrNvmeccfptr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCFADR":[{"setting":"ECCFADR","name":"eccfadrNvmeccfadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEADR":[{"setting":"ECCEADR","name":"ecceadrNvmecceadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA0":[{"setting":"ECCEDATA0","name":"eccedata0Nvmeccedata0","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA1":[{"setting":"ECCEDATA1","name":"eccedata1Nvmeccedata1","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA2":[{"setting":"ECCEDATA2","name":"eccedata2Nvmeccedata2","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA3":[{"setting":"ECCEDATA3","name":"eccedata3Nvmeccedata3","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCVAL":[{"setting":"ECCVAL","name":"eccvalNvmeccval","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["register"]}],"NVMECCSYND":[{"setting":"ECCSYND","name":"eccsyndNvmeccsynd","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["register"]}],"NVMCRCCON":[{"setting":"CRCEC","name":"crcecNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["register"]},{"setting":"OM","name":"omNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"CRCIDL","name":"crcidlNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"START","name":"startNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"ON","name":"onNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"DELAY","name":"delayNvmcrccon","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCST":[{"setting":"CRCSTART","name":"crcstartNvmcrcst","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCEND":[{"setting":"CRCEND","name":"crcendNvmcrcend","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCSEED":[{"setting":"CRCSEED","name":"crcseedNvmcrcseed","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCDATA":[{"setting":"CRCDATA","name":"crcdataNvmcrcdata","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["register"]}]},"properties":["PROGRAM_BEGIN_ADDRESS","FLASH_HAS_ROW_PROGRAMMING","FLASH_ENDURANCE_MINIMUM","FLASH_WORD_WRITE_SIZE_IN_INSTRUCTIONS","FLASH_END_ADDRESS","FLASH_WORD_WRITE_OP_CODE","FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS","FLASH_WRITE_ROW_SIZE_IN_INSTRUCTIONS","FLASH_HAS_DUAL_PARTITION","FLASH_WRITE_ROW_OP_CODE","FLASH_BYTES_PER_INSTRUCTION","FLASH_HAS_ECC","FLASH_ERASE_PAGE_OP_CODE","FLASH_SECOND_PARTITION_END_ADDRESS","FLASH_FIRST_PARTITION_END_ADDRESS","FLASH_SECOND_PARTITION_PROGRAM_START_ADDRESS","FLASH_SECOND_PARTITION_START_ADDRESS"]}]}')},4141:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var r=n(2265),o=n(9696);t.create=function(e,t){var n,a,l,u=null===(a=(n=t()).getModuleConfig)||void 0===a?void 0:a.call(n),d=(0,o.createPrototypeImports)(e,t()),s=(0,r.createPrototypeExports)(u);return{payload:e,imports:i({},d),exports:s,isSingletonPerDevice:null===u||void 0===u?void 0:u.isSingletonPerDevice,isEntryPoint:null===(l=null===u||void 0===u?void 0:u.isEntryPoint)||void 0===l||l}}},4308:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UidMapBuilder=void 0;var n=function(){function e(){this.uidMap={}}return e.prototype.addDefaultRows=function(e){var t=this;return e.forEach(function(e,n){var i;t.uidMap[e.uid]=null!==(i=e.rowId)&&void 0!==i?i:n}),this},e.prototype.addDynamicRows=function(e){var t=this;return e.forEach(function(e){var n=null===e||void 0===e?void 0:e.uid;n&&n.indexOf("dynamicRow_")>-1&&t.incrementUidAndShift(n,e.rowId)}),this},e.prototype.removeRows=function(e){var t=this;return e.forEach(function(e){var n=null===e||void 0===e?void 0:e.uid;n&&(null===e||void 0===e?void 0:e.dynamicallyRemoved)&&(t.uidMap[n]=-1)}),this},e.prototype.sortByValue=function(){var e=this,t=0,n=[];return this.getUidKeys().forEach(function(t){var i;n.push(((i={})[t]=e.uidMap[t],i))}),(n=n.sort(function(e,t){return e[Object.keys(e)[0]]-t[Object.keys(t)[0]]})).forEach(function(n){var i=Object.keys(n)[0];e.uidMap[i]>-1&&(e.uidMap[i]=t++)}),this},e.prototype.create=function(){return this.uidMap},e.prototype.incrementUidAndShift=function(e,t){var n=this;this.getUidKeys().forEach(function(e){n.uidMap[e]>=t&&n.uidMap[e]++}),this.uidMap[e]=t},e.prototype.getUidKeys=function(){return Object.keys(this.uidMap)},e}();t.UidMapBuilder=n},4349:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=e(t),a=0;a<i.length;a++)"default"!==i[a]&&r(n,t,i[a]);return o(n,t),n}}(),l=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getModel=void 0;var u=a(n(8898)),d=n(6298),s=n(5037),c=n(9943),v=n(2189),p=n(2836),f=n(8045),g=n(3226);t.getModel=function(e,t){return new m(e,t)};var m=function(){function e(e,t){var n,r=this;this.getState=function(){return r.prototype.state},this.getPayload=function(){return r.prototype.payload},this.getImports=function(){return r.prototype.imports},this.getExports=function(){return r.prototype.exports},this.getName=function(){return r.getAutoModuleAppModel().getModuleName()},this.getIdeFlavor=function(){return r.prototype.ideFlavor},this.getCategory=function(){return r.getAutoModuleAppModel().getModuleCategory()},this.getActiveName=function(){var e,t,n;return null!==(n=null===(t=(e=r.getDerivedFunctions()).getActiveName)||void 0===t?void 0:t.call(e))&&void 0!==n?n:r.getName()},this.getGlobalNames=function(){var e,t,n;return null!==(n=null===(t=(e=r.getDerivedFunctions()).getGlobalNames)||void 0===t?void 0:t.call(e))&&void 0!==n?n:[]},this.getAutoModuleAppModel=function(){return r.autoModuleAppModel||(r.autoModuleAppModel=(0,d.createAutoModuleAppModel)(r)),r.autoModuleAppModel},this.getPrototypeModule=function(){return r.prototype},this.getRegisterValues=function(e){return r.registerValues||(r.registerValues=(0,s.getRegisterValues)(r,e)),r.registerValues},this.getMyFunctionNamesCache=function(){return r.getMyFunctionsNames},this.getInterrupts=function(){var e,t;return r.interrupts||(r.interrupts=null===(t=null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral())||void 0===t?void 0:t.interrupts),r.interrupts},this.getProperties=function(){var e,t;return r.properties||(r.properties=null===(t=null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral())||void 0===t?void 0:t.properties),r.properties},this.getRegisters=function(){var e,t;return r.registers||(r.registers=null===(t=null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral())||void 0===t?void 0:t.registers),r.registers},this.getHardware=function(e){var t,n,i,o,a,l,u,d,v,p,f;if(e=(0,s.getFriendlyInterfaceId)(e)){var g=null===(i=null===(n=null===(t=r.getPrototypeModule())||void 0===t?void 0:t.imports)||void 0===n?void 0:n[e])||void 0===i?void 0:i.payload;if(!g)return;return{getPeripheral:function(){return g},getName:function(){return g.name},instanceNumber:Number(null!==(o=g.instance)&&void 0!==o?o:g.name.replace(g.group,""))}}if(!r.defaultHardware){var m=(0,s.getFriendlyInterfaceId)(null===(u=null===(l=null===(a=(0,c.getConfigData)(r))||void 0===a?void 0:a.peripherals)||void 0===l?void 0:l[0])||void 0===u?void 0:u.interfaceId.name),h=null===(p=null===(v=null===(d=r.getPrototypeModule())||void 0===d?void 0:d.imports)||void 0===v?void 0:v[null!==m&&void 0!==m?m:""])||void 0===p?void 0:p.payload;h&&(r.defaultHardware={getPeripheral:function(){return h},getName:function(){return h.name},instanceNumber:Number(null!==(f=h.instance)&&void 0!==f?f:h.name.replace(h.group,""))})}return r.defaultHardware},this.getPeripheralDescription=function(){var e;return null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral()},this.getDerivedData=function(){return r.derivedData||(r.derivedData=r.getDerivedDataFunction(r)),r.derivedData},this.getDerivedFunctions=function(){return r.getMyFunctionsCache},this.getDerivedFunction=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(r.getMyFunctionNamesCache().has(String(e)))return null===(n=null===(t=r.getDerivedFunctions())||void 0===t?void 0:t[e])||void 0===n?void 0:n.call.apply(n,l([t],i,!1))},this.getExportInterfaces=function(){return r.exportInterfaces||(r.exportInterfaces=(0,v.createExportInterfaces)(r.prototype.exports,r)),r.exportInterfaces},this.getImportInterfaces=function(){return r.importInterfaces||(r.importInterfaces=(0,p.createImportInterfaces)(r.prototype.imports,r)),r.importInterfaces},this.isControlledByInterface=function(e){var t;return 1==(null===(t=r.getExportInterfaces())||void 0===t?void 0:t.isControlledByInterface(e))},this.getAssignedImport=function(e){var t;if((null===(t=r.prototype.imports)||void 0===t?void 0:t[e])&&u.isAssigned(r.prototype.imports[e]))return r.prototype.imports[e]},this.getImportValue=function(e){var t;return null===(t=r.getAssignedImport(e))||void 0===t?void 0:t.payload},this.filterImportBySetting=function(e,t,n){var r,o=i({},e);return e[t]&&(o=i(i({},o),((r={})[t]=u.filterOptions(e[t],function(e){return n(e)}),r))),o},this.isComponentValue=function(e,t){var n,i=r.getComponentValue(e,t),o=new RegExp("enabled?");return!!i&&("string"===typeof i?"true"===i||"false"!==i&&o.test(null===(n=String(i))||void 0===n?void 0:n.toLowerCase()):"boolean"===typeof i&&i)},this.getComponent=function(e){return r.getAutoModuleAppModel().getComponent(e)},this.getPCPHelper=function(){return r.pcpHelper||(r.pcpHelper=new f.PCPHelper,r.pcpHelper.setCallbacks({getCompletePinData:function(){var e,t;return null===(t=(e=r.getDerivedFunctions()).getPinsLogic)||void 0===t?void 0:t.call(e).getCompletePinData(r)},getRowData:function(e){var t,n;return null===(n=(t=r.getDerivedFunctions()).getPinsLogic)||void 0===n?void 0:n.call(t).getRowData(r,e)},getPinsData:function(){var e,t;return null===(t=(e=r.getDerivedFunctions()).getPinsLogic)||void 0===t?void 0:t.call(e).getPinsData()}})),r.pcpHelper},this.getTableHelpers=g.getTableHelpers,this.prototype=e,this.getDerivedDataFunction=t,this.getMyFunctionsCache=this.getDerivedData().getMyFunctions(),this.getMyFunctionsNames=null!==(n=new Set(Object.keys(this.getDerivedData().getMyFunctions())))&&void 0!==n?n:{}}return e.prototype.processDynamicComps=function(){this.getAutoModuleAppModel(),this.autoModuleAppModel.processDynamicComps()},e.prototype.getComponentValue=function(e,t){return this.getAutoModuleAppModel().getComponentValue(e,t)},e}()},4579:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isComponentInvisible=void 0,t.isUrl=function(e){return"software"===e.category&&"string"===e.type&&"url"===e.format},t.isImage=function(e){return"software"===e.category&&"string"===e.type&&"image"===e.format},t.isModeActive=r,t.shouldPopulateView=function(e,t,n,r){var o;if(!1===function(e,t){var n=!0;(null===t||void 0===t?void 0:t.displayViewOnImportAssigned)&&t.displayViewOnImportAssigned.forEach(function(t){void 0==e(t)&&(n=!1)});return n}(n,r))return!1;return!0===(null===(o=null===e||void 0===e?void 0:e.shouldPopulateViewAtStartup)||void 0===o?void 0:o.call(e))||(0,i.isFullyAssigned)(t,r)};var i=n(6074);function r(e,t,n){var i,r,o,a,l,u;if((null===(i=null===t||void 0===t?void 0:t.mode)||void 0===i?void 0:i.operation)===e){var d=n(t.mode.masterComponent);if(null===(r=t.mode)||void 0===r?void 0:r.matchRegEx)return(null!==(u=null===(l=null===(a=null===(o=null===d||void 0===d?void 0:d.value)||void 0===o?void 0:o.toString())||void 0===a?void 0:a.match(t.mode.matchRegEx))||void 0===l?void 0:l.length)&&void 0!==u?u:0)>0}}t.isComponentInvisible=function(e,t){var n,i,o=e.isVisibleProperty&&0==t.getDerivedFunction(e.isVisibleProperty);return!1===(null===(i=(n=t.getDerivedFunctions()).isVisible)||void 0===i?void 0:i.call(n,e.name))||o||!1===r("isVisible",e,t.getComponent)}},4757:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.process=void 0;var r=n(4349),o=n(5037),a=n(7295),l=n(9943),u=n(7864),d=n(874);t.process=function(e,t,n){var s,c,v,p,f,g,m,h,y,b,I,_,w,S,D,C,E,A,O,P,M,N,R;e=(0,o.populateLoadedFiles)(e);var F=(0,r.getModel)(e,n);if(!F)return e;F.processDynamicComps();var V=i({},e);switch(V=i(i({},V),{showRegisterEditor:(0,l.getConfigData)(F,!0).showRegisterEditor}),t){case"arguments":V=i(i({},V),{imports:null!==(s=F.getImportInterfaces().createProcessedImports(t))&&void 0!==s?s:e.imports});break;case"payloads":V=i(i({},V),{imports:null!==(c=F.getImportInterfaces().createProcessedImportsForDynamicAssignment(t))&&void 0!==c?c:e.imports,exports:null!==(v=F.getExportInterfaces().createProcessedExports())&&void 0!==v?v:e.exports,name:F.getName(),help:null!==(g=null===(f=null===(p=null===F||void 0===F?void 0:F.getDerivedFunctions())||void 0===p?void 0:p.overrideModuleLevelHelp)||void 0===f?void 0:f.call(p))&&void 0!==g?g:(0,l.getConfigData)(F,!0).help});break;case"results":V=i(i({},V),{imports:null!==(m=F.getImportInterfaces().createProcessedImports(t))&&void 0!==m?m:e.imports});break;case"views":var T=null!==(b=null===(y=null===F||void 0===F?void 0:(h=F.getDerivedFunctions()).templateData)||void 0===y?void 0:y.call(h))&&void 0!==b?b:{},H=(0,u.createAutoViewPayloads)(F);V=i(i({},V),{payload:i(i({},e.payload),{auto:H,customView:null===(_=null===(I=null===F||void 0===F?void 0:F.getDerivedFunctions())||void 0===I?void 0:I.getCustomView)||void 0===_?void 0:_.call(I,e)}),templateData:T,templates:(0,a.getTemplates)(F),alerts:null===(S=null===F||void 0===F?void 0:(w=F.getDerivedFunctions()).alerts)||void 0===S?void 0:S.call(w),name:F.getActiveName(),category:F.getCategory(),description:null!==(E=null===(C=null===(D=null===F||void 0===F?void 0:F.getDerivedFunctions())||void 0===D?void 0:D.getModuleDescription)||void 0===C?void 0:C.call(D))&&void 0!==E?E:(0,o.getModuleDefaultDescription)(),globalNames:null!==(P=null===(O=null===(A=null===F||void 0===F?void 0:F.getDerivedFunctions())||void 0===A?void 0:A.getGlobalNames)||void 0===O?void 0:O.call(A))&&void 0!==P?P:[],analytics:null!==(R=null===(N=(M=F.getDerivedFunctions()).getAnalytics)||void 0===N?void 0:N.call(M))&&void 0!==R?R:(0,d.getAnalyticsDefault)(F)});break;default:return e}return V}},5037:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getFriendlyInterfaceId=t.DependencySelector=t.populateLoadedFiles=t.getProcessedHandle=t.filterModeOptions=t.getSettingOptionsIfPresent=t.getOverrideDefaultValue=t.getSettingDefaultIfPresent=t.getOptionValueByName=t.getSettingFromComponent=t.getSettingBits=t.sortComments=t.getRegisterValues=t.hasConfigBits=t.getComboOptions=t.getDefaultValue=t.castComponent=void 0,t.getModuleDefaultDescription=function(){return};var o=r(n(9107)),a=n(7437),l=n(2102),u=n(5056),d=n(9943),s=n(6808);t.castComponent=function(e){switch(e.category){case"software":case"import":case"hardware":return e;default:throw Error("Unsupported Component Type")}};t.getDefaultValue=function(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e(t.name))&&void 0!==n?n:"ComboBox"===t.type?t.defaultValue.value:t.defaultValue};t.getComboOptions=function(e,t){var n,i;return null!==(n=null===e||void 0===e?void 0:e(t.name))&&void 0!==n?n:null===(i=null===t||void 0===t?void 0:t.defaultValue)||void 0===i?void 0:i.options};t.hasConfigBits=function(e){var n;return-1!=(null===(n=(0,t.getFriendlyInterfaceId)(e))||void 0===n?void 0:n.indexOf("configuration_bits"))};t.getRegisterValues=function(e,n){var i,r,a;if(!0===(null===(r=null===(i=e.getState())||void 0===i?void 0:i.contentMeta)||void 0===r?void 0:r.isUserEnRegRWMode))return(0,s.getRegisterEditorValues)(e,n);var l={},c=(0,d.getConfigData)(e);return n=(0,t.getFriendlyInterfaceId)(n),null===(a=null===c||void 0===c?void 0:c.peripherals)||void 0===a||a.forEach(function(i){var r,a,d,s=null!==(r=(0,t.getFriendlyInterfaceId)(i.interfaceId.name))&&void 0!==r?r:"";void 0!=n&&s!==n||!i.registers||null===(d=(0,u.getKeys)(null!==(a=i.registers)&&void 0!==a?a:{}))||void 0===d||d.forEach(function(n){var r,a,u,d,v,p,f,g,m,h,y,b=null===(a=null===(r=e.getHardware(s))||void 0===r?void 0:r.getPeripheral().registers)||void 0===a?void 0:a[n];if(b){y={comment:"",value:0,valueAsHex:"0x00",name:null===b||void 0===b?void 0:b.name,alias:null!==(u=null===b||void 0===b?void 0:b.alias)&&void 0!==u?u:null===b||void 0===b?void 0:b.name,por:b.defaultValue,settings:{}};var I=o.default.for(b),_=[];null===(d=i.registers)||void 0===d||d[n].forEach(function(n){var i,r,o,a,l,u=null===(i=b.settings)||void 0===i?void 0:i[n.setting];if(u)switch("R"!==u.type&&_.push("".concat(n.setting," ").concat(e.getComponentValue(n.name),"; ")),(null===y||void 0===y?void 0:y.settings)&&(y.settings[u.alias]=(0,t.getSettingBits)(b,u,null===(r=e.getComponent(n.name))||void 0===r?void 0:r.value,null!==(o=null===c||void 0===c?void 0:c.deviceType)&&void 0!==o?o:"PIC")),n.type){case"ComboBox":case"boolean":I.withNumberValue(u,null!==(l=(0,t.getOptionValueByName)(u,null===(a=e.getComponent(n.name))||void 0===a?void 0:a.value))&&void 0!==l?l:0);break;case"number":I.withNumberValue(u,e.getComponentValue(n.name));break;case"register":case"string":I.withNumberValue(u,Number(e.getComponentValue(n.name)))}}),b.settings?y.value=I.asNumber():(y.value=Number(null!==(m=e.getComponentValue(null!==(g=null===(f=null===(p=null===(v=i.registers)||void 0===v?void 0:v[n])||void 0===p?void 0:p[0])||void 0===f?void 0:f.name)&&void 0!==g?g:""))&&void 0!==m?m:0),_.push("".concat(y.name," ").concat(y.value,"; "))),y.valueAsHex="0x"+y.value.toString(16).toUpperCase(),y.comment=(0,t.sortComments)(_,b),l[null!==(h=null===b||void 0===b?void 0:b.alias)&&void 0!==h?h:b.name]=y}})}),l};t.sortComments=function(e,t){return e.sort(function(e,n){var i,r,o,a,l=null===(i=t.settings)||void 0===i?void 0:i[null===(r=e.split[" "])||void 0===r?void 0:r[0]],u=null===(o=t.settings)||void 0===o?void 0:o[null===(a=n.split(" "))||void 0===a?void 0:a[0]];return Number(null===u||void 0===u?void 0:u.mask)-Number(null===l||void 0===l?void 0:l.mask)}),e.join("")};t.getSettingBits=function(e,t,n,i){var r,o=0,l="",u=(0,a.getOptionByAlias)(n,t);return u?(o=Number(null!==(r=null===u||void 0===u?void 0:u.value)&&void 0!==r?r:0),l=n):(o=Number(n),l="0x"+Number(n).toString(16).toUpperCase()),{alias:t.alias,name:t.name,value:null!==o&&void 0!==o?o:0,valueAsHex:"0x"+o.toString(16).toUpperCase(),valueAsDescription:l,type:t.type,optionName:null===u||void 0===u?void 0:u.name,bitName:"PIC"===i?"".concat(e.name,"bits.").concat(t.name):"".concat(e.name,".").concat(t.name)}};t.getSettingFromComponent=function(e,n){var i,r,o=(0,d.getConfigData)(e);return e&&(null===(i=null===o||void 0===o?void 0:o.peripherals)||void 0===i||i.forEach(function(i){var o,a,l;if(!r){var d=(0,t.getFriendlyInterfaceId)(i.interfaceId.name),s=function(e,t){var n,i,r,o,a,l=null===(n=t.name.replace(t.setting.toLowerCase(),""))||void 0===n?void 0:n.toUpperCase(),d=null===(i=null===e||void 0===e?void 0:e.registers)||void 0===i?void 0:i[l];if(d)return d;for(var s=null===(r=t.name.replace(t.setting.toLowerCase(),""))||void 0===r?void 0:r.toUpperCase(),c=(0,u.getKeys)(null!==(o=null===e||void 0===e?void 0:e.registers)&&void 0!==o?o:{}),v=0,p=null!==c&&void 0!==c?c:[];v<p.length;v++){var f=p[v];if(s===f.replace(/_/g,""))return null===(a=null===e||void 0===e?void 0:e.registers)||void 0===a?void 0:a[f]}}(null===(o=e.getHardware(d))||void 0===o?void 0:o.getPeripheral(),n);r=s&&!s.settings?{alias:null!==(a=s.alias)&&void 0!==a?a:s.name,name:s.name,defaultValue:s.defaultValue,type:s.type,description:s.desc,porDefault:s.defaultValue}:null===(l=null===s||void 0===s?void 0:s.settings)||void 0===l?void 0:l[n.setting]}})),r};t.getOptionValueByName=function(e,t){if(e){var n=e.porDefault;return e.options&&e.options.forEach(function(e){e.name!==t&&e.description!==t||(n=e.value)}),Number(n)}};t.getSettingDefaultIfPresent=function(e,t,n){var i,r,o;if(void 0!==n)return n;if(e.overrideDefaultValue)return e.overrideDefaultValue;if(null===t||void 0===t?void 0:t.defaultValue){var l=(0,a.getOptionByName)(t.defaultValue,t);o=null!==(r=null===l||void 0===l?void 0:l[null!==(i=e.displayOptionSetting)&&void 0!==i?i:"alias"])&&void 0!==r?r:t.defaultValue}return o};t.getOverrideDefaultValue=function(e,t){var n,i;return null===(i=(n=t.getDerivedFunctions()).overrideDefaultValues)||void 0===i?void 0:i.call(n,e.name)};t.getSettingOptionsIfPresent=function(e,n,i){var r,o=[""];if(n){var a=e.mode?(0,t.filterModeOptions)(null!==(r=n.options)&&void 0!==r?r:[],e,i):n.options;o=(0,l.map)(null!==a&&void 0!==a?a:[],function(t){var n,i;return null!==(i=t[null!==(n=e.displayOptionSetting)&&void 0!==n?n:"alias"])&&void 0!==i?i:t.alias})}return o};t.filterModeOptions=function(e,t,n){var i,r,o,a;if("filterOptions"!=(null===(i=t.mode)||void 0===i?void 0:i.operation)||void 0==n)return e;var d=(0,l.find)(null!==(a=(0,u.getKeys)(null!==(o=null===(r=t.mode)||void 0===r?void 0:r.optionModes)&&void 0!==o?o:{}))&&void 0!==a?a:[],function(e){var i,r,o,a,l=null===(r=null===(i=t.mode)||void 0===i?void 0:i.optionModes)||void 0===r?void 0:r[e];return!!l&&(null!==(a=null===(o=null===n||void 0===n?void 0:n.match(l))||void 0===o?void 0:o.length)&&void 0!==a?a:-1)>0});void 0===d&&(d=n);var s=(0,l.filter)(null!==e&&void 0!==e?e:[],function(e){var n,i,r,o;if(e.mode&&d){var a=null===(i=null===(n=t.mode)||void 0===n?void 0:n.optionModes)||void 0===i?void 0:i[d];if(a)return(null!==(o=null===(r=e.mode.match(a))||void 0===r?void 0:r.length)&&void 0!==o?o:-1)>0}return!0});return s};t.getProcessedHandle=function(e,t){var n,r,o,a;return e&&(e=i(i({},e),{label:null!==(a=null!==(o=null!==(r=null!==(n=null===e||void 0===e?void 0:e.label)&&void 0!==n?n:null===t||void 0===t?void 0:t.customName)&&void 0!==r?r:null===t||void 0===t?void 0:t.moduleName)&&void 0!==o?o:null===t||void 0===t?void 0:t.name)&&void 0!==a?a:e.providerId+" : "+e.exportId})),e};t.populateLoadedFiles=function(e){var t,n=i({},e),r={};if(void 0!==n.loadedFiles)for(var o in n.loadedFiles){var a=n.loadedFiles[o];r[o]=a}if(void 0!==(null===(t=n.state)||void 0===t?void 0:t.loadedFiles))for(var o in n.state.loadedFiles){a=n.state.loadedFiles[o];r[o]=a}return n.loadedFiles=r,n};var c=function(){function e(e,n){var i=this;this.noneSelection={label:"None"},this.createOptionEntry=function(e){return{label:i.createOptionLabel(e.handle,e.payload),value:e}},this.createOptionLabel=function(e,n){var i,r;return null!==(r=null===(i=(0,t.getProcessedHandle)(e,n))||void 0===i?void 0:i.label)&&void 0!==r?r:""},this.model=e,this.component=n}return e.prototype.generateDropdownOptions=function(){var e=[],t=this.model.getImports()[this.component.importId],n=null===t||void 0===t?void 0:t.options;if(this.shouldAllowUnselectDependency(t,n)&&e.push(this.noneSelection),void 0!==n)for(var i in n)e.push(this.createOptionEntry(n[i]));return e},e.prototype.getDropdownOptionNames=function(){var e=[];return this.generateDropdownOptions().forEach(function(t){return e.push(t.label)}),e},e.prototype.shouldAllowUnselectDependency=function(e,t){return void 0!=e&&0!=e.isUnassignable},e}();t.DependencySelector=c;t.getFriendlyInterfaceId=function(e){return e=null===e||void 0===e?void 0:e.replace(/ /g,"").replace(/-/g,"_")}},5056:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toDictionary=t.assertNotNull=t.map=t.forEach=t.values=t.getKeys=void 0;t.getKeys=function(e){return Object.getOwnPropertyNames(e)};t.values=function(e){return(0,t.getKeys)(e).map(function(t){return e[t]})};t.forEach=function(e,n){(0,t.getKeys)(e).forEach(function(t){return n(t,e[t])})};t.map=function(e,n){return(0,t.getKeys)(e).map(function(t){return n(t,e[t])})};t.assertNotNull=function(e,t){if(null==e)throw new Error(t)};t.toDictionary=function(e,t,n){var i={};return e.forEach(function(e){i[t(e)]=n(e)}),i}},5623:function(e){"use strict";e.exports=JSON.parse('{"name":"@microchip/flash-interface","version":"1.3.1","license":"SEE LICENSE IN LICENSE.txt","main":"lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"build":"tsc","test":"jest","lint:nofix":"eslint \\"./src/**/*.{ts,tsx}\\" --quiet","lint":"tsc --noEmit && yarn lint:nofix --fix"},"husky":{"hooks":{"pre-commit":"tsc --noEmit && lint-staged"}},"lint-staged":{"./src/**/*.{ts,tsx}":["eslint --fix"]},"bitBucketRepository":"https://bitbucket.microchip.com/projects/CC16SCRIP/repos/basic-flash-interface/browse","repository":{"type":"git","url":"git+ssh://git@https://bitbucket.microchip.com/scm/cc16scrip/basic-flash-interface.git"},"publishConfig":{"registry":"https://artifacts.microchip.com/artifactory/api/npm/npm/"},"jest":{"testPathIgnorePatterns":["/node_modules/","/run/","/lib/"],"modulePathIgnorePatterns":["<rootDir>/run"],"preset":"ts-jest","collectCoverage":true},"dependencies":{"@microchip/scf-common":"^3.5.0","@microchip/scf-interface":"^1.4.0"},"devDependencies":{"@types/jest":"^24.0.14","@types/node":"^12.0.10","@typescript-eslint/eslint-plugin":"^2.27.0","@typescript-eslint/parser":"^2.27.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","fs-extra":"^8.1.0","husky":"^4.2.4","jest":"^24.8.0","lint-staged":"^10.2.0","prettier":"^2.0.4","ts-jest":"^24.0.2","typescript":"^3.8.3"},"files":["lib/**/*"],"notificationEmail":"03234d44.microchip.com@amer.teams.ms"}')},5981:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasModes=t.processRegisterModes=void 0;var r=n(5056);t.processRegisterModes=function(e,n,o){var a,l;if(!(0,t.hasModes)(e))return n;var u=i(i({},n),{registers:i({},n.registers)});return null===(l=(0,r.getKeys)(null!==(a=null===e||void 0===e?void 0:e.registers)&&void 0!==a?a:{}))||void 0===l||l.forEach(function(t){var n,i,a,l,d,s,c,v=null===(n=null===e||void 0===e?void 0:e.registers)||void 0===n?void 0:n[t],p=!1;null===v||void 0===v||v.forEach(function(e){var n,i,r,a,l,d,s,c,v,f,g,m;if("registerFilter"===(null===(n=null===e||void 0===e?void 0:e.mode)||void 0===n?void 0:n.operation)){var h=null===(r=null===o||void 0===o?void 0:o.getComponent(null===(i=null===e||void 0===e?void 0:e.mode)||void 0===i?void 0:i.masterComponent))||void 0===r?void 0:r.value;if(!new RegExp(null!==(l=null===(a=null===e||void 0===e?void 0:e.mode)||void 0===a?void 0:a.matchRegEx)&&void 0!==l?l:"").test(h))void 0!==(null===(c=null===(s=null===(d=null===u||void 0===u?void 0:u.registers)||void 0===d?void 0:d[t])||void 0===s?void 0:s.settings)||void 0===c?void 0:c[e.setting])?null===(g=null===(f=null===(v=null===u||void 0===u?void 0:u.registers)||void 0===v?void 0:v[t])||void 0===f?void 0:f.settings)||void 0===g||delete g[e.setting]:null===(m=null===u||void 0===u?void 0:u.registers)||void 0===m||delete m[t],p=!0}}),p&&(0,r.getKeys)(null!==(l=null===(a=null===(i=null===u||void 0===u?void 0:u.registers)||void 0===i?void 0:i[t])||void 0===a?void 0:a.settings)&&void 0!==l?l:[]).length<=0&&(null===(s=null===(d=null===u||void 0===u?void 0:u.registers)||void 0===d?void 0:d[t])||void 0===s||delete s.settings,null===(c=null===u||void 0===u?void 0:u.registers)||void 0===c||delete c[t])}),u};t.hasModes=function(e){var t,n,i=!1;return null===(n=(0,r.getKeys)(null!==(t=null===e||void 0===e?void 0:e.registers)&&void 0!==t?t:{}))||void 0===n||n.forEach(function(t){for(var n,r=null===(n=null===e||void 0===e?void 0:e.registers)||void 0===n?void 0:n[t],o=0,a=null!==r&&void 0!==r?r:[];o<a.length;o++){var l=a[o];void 0!==(null===l||void 0===l?void 0:l.mode)&&(i=!0)}}),i}},6002:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RowPrefix=void 0,function(e){e.Default="defaultRow_",e.Dynamic="dynamicRow_"}(n||(t.RowPrefix=n={}))},6074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFullyAssigned=t.createPrototypeImport=void 0;var i=n(8898),r=n(2102),o=n(5037);t.createPrototypeImport=function(e,t){var n,i;return null===(i=null===(n=null===t||void 0===t?void 0:t.imports)||void 0===n?void 0:n[e])||void 0===i?void 0:i.import};t.isFullyAssigned=function(e,t){for(var n,r=a(null!==(n=null===t||void 0===t?void 0:t.peripherals)&&void 0!==n?n:[]),o=0;o<r.length;o++){var l=null===e||void 0===e?void 0:e[r[o]];if(!l||!(0,i.isAssigned)(l))return!1}return!0};var a=function(e){return(0,r.map)(e,function(e){var t;return null!==(t=(0,o.getFriendlyInterfaceId)(e.interfaceId.name))&&void 0!==t?t:""})}},6298:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o=e(t),a=0;a<o.length;a++)"default"!==o[a]&&i(n,t,o[a]);return r(n,t),n}}(),a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.MyAutoModuleAppModel=t.createAutoModuleAppModel=void 0;var l=n(7437),u=n(2102),d=n(5056),s=o(n(5037)),c=n(9943),v=n(6808);t.createAutoModuleAppModel=function(e,t){return new p(e,t)};var p=function(){function e(e,t){var n=this;this.getModuleName=function(){var e,t,i,r,o,a,l,u;return n.moduleName||(n.moduleName=null!==(u=null!==(a=null!==(r=null!==(i=null===(t=(e=n.model.getDerivedFunctions()).moduleName)||void 0===t?void 0:t.call(e))&&void 0!==i?i:n.model.getComponentValue("componentName"))&&void 0!==r?r:null===(o=n.model.getHardware())||void 0===o?void 0:o.getName())&&void 0!==a?a:null===(l=n.config)||void 0===l?void 0:l.moduleName)&&void 0!==u?u:"Module"),n.moduleName},this.getModuleCategory=function(){var e,t;return null===(t=(e=n.model.getDerivedFunctions()).moduleCategory)||void 0===t?void 0:t.call(e)},this.createComponentList=function(){var e={},t=n.getComponentList(),i=a(a([],t,!0),n.getDefaultDependencySelectors(t),!0);return i&&i.forEach(function(t){e[t.name]={component:t}}),e},this.getAllComponents=function(){return n.componentList},this.getComponentList=function(){var e,t,i,r=[],o=n.config;return o?(null===(t=(0,d.values)(null!==(e=o.softwareData)&&void 0!==e?e:{}))||void 0===t||t.forEach(function(e){r.push(e)}),null===(i=o.peripherals)||void 0===i||i.forEach(function(e){var t;e.registers&&(null===(t=(0,u.getKeys)(e.registers))||void 0===t||t.forEach(function(t){var i,o;null===(o=null===(i=e.registers)||void 0===i?void 0:i[t])||void 0===o||o.forEach(function(e){var i,o,a=null===(o=null===(i=n.model.getHardware())||void 0===i?void 0:i.getPeripheral().registers)||void 0===o?void 0:o[t];(null===a||void 0===a?void 0:a.settings)&&!a.settings[e.setting]&&"register"!==a.type||r.push(e)})}))}),r):r},this.getActions=function(e){var t,i;return n.model.getMyFunctionNamesCache().has("getActions")?null===(i=(t=n.model.getDerivedFunctions()).getActions)||void 0===i?void 0:i.call(t,e.name):e.actions},this.getDefaultComponentAction=function(e){var t,i=null===(t=n.getComponent(e))||void 0===t?void 0:t.component;return{type:"[FORM] SUBMIT",payload:{tabId:"main",path:"".concat(null===i||void 0===i?void 0:i.group,".").concat(null===i||void 0===i?void 0:i.name),value:"%v"}}},this.getSoftwareComponentValue=function(e,t){var i,r,o,a,l,u,d,c,v=n.model.getDerivedFunction(t.name);if(void 0!=v&&("time"===t.type||"frequency"===t.type))return v.defaultValue?v.defaultValue:null!==(a=null===(o=null===(r=null===(i=n.state)||void 0===i?void 0:i[e])||void 0===r?void 0:r[t.group])||void 0===o?void 0:o[t.name])&&void 0!==a?a:t.defaultValue;if(void 0!=v)return v;if(n.model.isControlledByInterface(t.name)){var p=n.model.getExportInterfaces().getProcessedArgValue(t.name);if(void 0!=p)return p.value}return null!==(c=null===(d=null===(u=null===(l=n.state)||void 0===l?void 0:l[e])||void 0===u?void 0:u[t.group])||void 0===d?void 0:d[t.name])&&void 0!==c?c:s.getDefaultValue(n.model.getDerivedFunctions().overrideDefaultValues,t)},this.getHardwareComponentValue=function(e,t,i){var r,o,a,l,u,d,c;if(n.hardware){var v=n.model.getDerivedFunction(t.name);if(void 0!=v)return v;if(n.model.isControlledByInterface(t.name)){var p=n.model.getExportInterfaces().getProcessedArgValue(t.name);if(void 0!=p)return p.value}var f,g=s.getOverrideDefaultValue(t,n.model);if(void 0!=(f=null!=(null===(a=null===(o=null===(r=n.state)||void 0===r?void 0:r[e])||void 0===o?void 0:o[t.group])||void 0===a?void 0:a[t.name])?n.state[e][t.group][t.name]:void 0!==g?g:void 0!==i?t.overrideDefaultValue?t.overrideDefaultValue:n.getDefaultValue(t.displayOptionSetting,i):null!==(l=t.overrideDefaultValue)&&void 0!==l?l:void 0)&&"filterOptions"===(null===(u=t.mode)||void 0===u?void 0:u.operation)){var m=s.getSettingOptionsIfPresent(t,i,null===(c=n.model.getComponent(null===(d=t.mode)||void 0===d?void 0:d.masterComponent))||void 0===c?void 0:c.value);-1==m.indexOf(f)&&(f=m[0])}return f}},this.getHardwareComponentBooleanValue=function(e,t,i){var r,o,a;if(n.hardware){var l=n.model.getDerivedFunction(t.name);if(void 0!=l)return l;if(n.model.isControlledByInterface(t.name)){var u=n.model.getExportInterfaces().getProcessedArgValue(t.name);if(void 0!=u){if(i&&i.options&&"boolean"===typeof u.value){var d="";if(!0===u.value)i.options.forEach(function(e){e.alias.toLowerCase().startsWith("enable")&&(d=e.alias)});else!1===u.value&&i.options.forEach(function(e){e.alias.toLowerCase().startsWith("disable")&&(d=e.alias)});return d}return u.value}}var c=s.getOverrideDefaultValue(t,n.model);return null!=(null===(a=null===(o=null===(r=n.state)||void 0===r?void 0:r[e])||void 0===o?void 0:o[t.group])||void 0===a?void 0:a[t.name])?n.state[e][t.group][t.name]?n.config.booleanValues.true:n.config.booleanValues.false:void 0!==c?c:void 0!==i?t.overrideDefaultValue?t.overrideDefaultValue:n.getDefaultValue(t.displayOptionSetting,i):void 0}},this.getDependencyComponentValue=function(e){var t=new s.DependencySelector(n.model,e),i=n.model.getImports()[e.importId];return(null===i||void 0===i?void 0:i.handle)?t.createOptionLabel(i.handle,i.payload):"None"},this.getFileLoadComponentValue=function(e){var t;return null===(t=n.model.getPrototypeModule().loadedFiles)||void 0===t?void 0:t[e.name]},this.getFileSaveComponentValue=function(e){var t,i=n.model.getDerivedFunction(e.name);return void 0!==i?i:null===(t=e.fileMeta)||void 0===t?void 0:t.defaultContent},this.getDefaultValue=function(e,t){var n;return void 0==e?t.defaultValue:t.defaultValue?null===(n=(0,l.getOptionByName)(t.defaultValue,t))||void 0===n?void 0:n[e]:void 0},this.model=e,this.state=this.model.getState(),this.hardware=this.model.getHardware(),this.config=(0,c.getConfigData)(e),this.componentList=this.createComponentList()}return e.prototype.processDynamicComps=function(){var e,t,n=this.componentList,i=[];null===(t=(e=this.model.getDerivedFunctions()).getDynamicComponents)||void 0===t||t.call(e).forEach(function(e){i.push(e)}),i.forEach(function(e){n[e.name]={component:e}}),this.componentList=n},e.prototype.getDefaultDependencySelectors=function(e){var t=[],n="main",i="software";e.length>0&&(n=e[0].tabs[0],i=e[0].group);var r=this.model.getImports();r&&Object.keys(r).forEach(function(r){var o;0===e.filter(function(e){return e.importId&&e.importId===r}).length&&t.push({name:r+" dependency selector",importId:r,category:"import",type:"ComboBox",description:r+" dependency selector",group:i,tabs:[n],uiBehavior:(o={},o["ui:widget"]="hidden",o)})});return t},e.prototype.isComponent=function(e){var t,n=null===(t=this.componentList[e])||void 0===t?void 0:t.component,i=this.getComponentValue(e);return"software"===n.category?"boolean"===n.type?this.getComponentValue(e):void 0!==i:"hardware"===n.category?i===this.config.booleanValues.true:void 0},e.prototype.getComponentValue=function(e,t){var n,i,r,o;if(!0===(null===(i=null===(n=this.model.getState())||void 0===n?void 0:n.contentMeta)||void 0===i?void 0:i.isUserEnRegRWMode)){var a=(0,v.getRegisterEditorComponentValue)(this.model,e,t);return void 0!==a?a:null===(r=this.getComponent(e))||void 0===r?void 0:r.value}return null===(o=this.getComponent(e))||void 0===o?void 0:o.value},e.prototype.getComponent=function(e){var t,n,i=this;if(void 0!=(null===(t=this.componentList[e])||void 0===t?void 0:t.value))return this.componentList[e];var r=null===(n=this.componentList[e])||void 0===n?void 0:n.component;return null===r||void 0===r||r.tabs.forEach(function(t){if(r){if("software"===r.category)i.componentList[e].value=i.getSoftwareComponentValue(t,r);else if("hardware"===r.category){var n=s.getSettingFromComponent(i.model,r);"boolean"===r.type?i.componentList[e].value=i.getHardwareComponentBooleanValue(t,r,n):i.componentList[e].value=i.getHardwareComponentValue(t,r,n)}else"import"===r.category?i.componentList[e].value=i.getDependencyComponentValue(r):"file_load"===r.category?i.componentList[e].value=i.getFileLoadComponentValue(r):"file_save"===r.category&&(i.componentList[e].value=i.getFileSaveComponentValue(r));i.componentList[e].component.actions=i.getActions(r)}}),this.componentList[e]},e}();t.MyAutoModuleAppModel=p},6808:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMappedComponentData=t.getRegisterEditorValues=t.getRegisterEditorComponentValue=void 0,t.getRegisterNameList=s,t.getRegisterKey=c,t.getSettingNameKey=v,t.getSettingAliasKey=p;var r=n(9809),o=n(5056),a=n(9943),l=n(5037),u=i(n(9107));function d(e){return"string"===typeof e?"enabled"===e:e}function s(e){var t,n=[];return null===(t=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===t||t.forEach(function(t){var i,r=null===e||void 0===e?void 0:e[t],o=null!==(i=null===r||void 0===r?void 0:r.name)&&void 0!==i?i:"";n.push(o)}),n}function c(e,t){var n,i;return null===(n=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===n||n.forEach(function(n){var r,o=null===e||void 0===e?void 0:e[n];(null!==(r=null===o||void 0===o?void 0:o.name)&&void 0!==r?r:"")===t&&(i=n)}),i}function v(e,t){var n,i;return null===(n=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===n||n.forEach(function(n){var r,o=null===e||void 0===e?void 0:e[n];(null!==(r=null===o||void 0===o?void 0:o.name)&&void 0!==r?r:"")===t&&(i=n)}),i}function p(e,t){var n,i;return null===(n=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===n||n.forEach(function(n){var r,o=null===e||void 0===e?void 0:e[n];(null!==(r=null===o||void 0===o?void 0:o.alias)&&void 0!==r?r:"")===t&&(i=null===o||void 0===o?void 0:o.name)}),i}t.getRegisterEditorComponentValue=function(e,n,i){var o,a,l,u,f,g,m,h,y,b,I,_,w,S,D,C,E,A,O,P,M,N,R,F,V,T,H,x,B,L,j,U,k,W,G,K,q,z,$,Y,X,Z,J,Q,ee,te,ne,ie,re,oe=null===(o=e.getHardware())||void 0===o?void 0:o.getPeripheral().registers,ae=null===(a=e.getHardware())||void 0===a?void 0:a.getPeripheral().interrupts,le=null!==(u=s(null===(l=e.getHardware())||void 0===l?void 0:l.getPeripheral().registers))&&void 0!==u?u:[],ue=null!==(f=Object.keys(null!==ae&&void 0!==ae?ae:{}))&&void 0!==f?f:[];if(-1!==le.indexOf(n)&&void 0===i){var de=null!==(g=c(me=e.getRegisterValues(),n))&&void 0!==g?g:"",se=Number(null===(m=null===oe||void 0===oe?void 0:oe[de])||void 0===m?void 0:m.defaultValue),ce=null===(h=null===me||void 0===me?void 0:me[de])||void 0===h?void 0:h.value;return void 0!==ce?ce:se}if(-1!==ue.indexOf(n.toUpperCase())){var ve=null===(I=null===(b=null===(y=e.getState())||void 0===y?void 0:y.register)||void 0===b?void 0:b.interrupts)||void 0===I?void 0:I[n.toUpperCase()],pe=null===(_=e.getComponent(n.toLowerCase()))||void 0===_?void 0:_.value;return d(void 0!==ve?ve:void 0!==(be=null===(S=(w=e.getDerivedFunctions()).overrideDefaultValues)||void 0===S?void 0:S.call(w,n.toLowerCase()))?be:pe)}if(i&&-1!==le.indexOf(i.register)){var fe={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:i.register},ge=(de=null!==(D=c(oe,i.register))&&void 0!==D?D:"",null!==(E=v(null===(C=null===oe||void 0===oe?void 0:oe[de])||void 0===C?void 0:C.settings,n))&&void 0!==E?E:"");if(void 0!==(ve=null===(P=null===(O=null===(A=e.getState())||void 0===A?void 0:A.register)||void 0===O?void 0:O[i.register])||void 0===P?void 0:P[ge]))return ve;if(void 0!=(be=null===(N=(M=e.getDerivedFunctions()).overrideDefaultValues)||void 0===N?void 0:N.call(M,n,fe)))return be;var me,he=null===(V=null===(F=null===(R=null===(me=e.getRegisterValues())||void 0===me?void 0:me[de])||void 0===R?void 0:R.settings)||void 0===F?void 0:F[ge])||void 0===V?void 0:V.value,ye=Number(null===(x=null===(H=null===(T=null===oe||void 0===oe?void 0:oe[de])||void 0===T?void 0:T.settings)||void 0===H?void 0:H[ge])||void 0===x?void 0:x.defaultValue);return void 0!==(null===(j=null===(L=null===(B=null===oe||void 0===oe?void 0:oe[de])||void 0===B?void 0:B.settings)||void 0===L?void 0:L[ge])||void 0===j?void 0:j.options)&&(he=null===(W=null===(k=null===(U=null===me||void 0===me?void 0:me[de])||void 0===U?void 0:U.settings)||void 0===k?void 0:k[ge])||void 0===W?void 0:W.optionName,ye=null!==(z=null===(q=null===(K=null===(G=null===oe||void 0===oe?void 0:oe[de])||void 0===G?void 0:G.settings)||void 0===K?void 0:K[ge])||void 0===q?void 0:q.defaultValue)&&void 0!==z?z:""),void 0!==he?he:ye}var be,Ie=(0,t.getMappedComponentData)(n,e);if(Ie&&Ie.registerName){n=Ie.settingName;var _e=null===(X=null===(Y=null===($=e.getState())||void 0===$?void 0:$.register)||void 0===Y?void 0:Y[Ie.registerName])||void 0===X?void 0:X[n];if(void 0!==_e)return _e;de=null!==(Z=c(oe,Ie.registerName))&&void 0!==Z?Z:"",ge=null!==(Q=p(null===(J=null===oe||void 0===oe?void 0:oe[de])||void 0===J?void 0:J.settings,n))&&void 0!==Q?Q:"";if(void 0!==(_e=null===(ne=null===(te=null===(ee=e.getState())||void 0===ee?void 0:ee.register)||void 0===te?void 0:te[Ie.registerName])||void 0===ne?void 0:ne[ge]))return _e}if(void 0!=(be=null===(re=(ie=e.getDerivedFunctions()).overrideDefaultValues)||void 0===re?void 0:re.call(ie,n)))return be};t.getRegisterEditorValues=function(e,t){var n,i={},d=(0,a.getConfigData)(e);return t=(0,l.getFriendlyInterfaceId)(t),null===(n=null===d||void 0===d?void 0:d.peripherals)||void 0===n||n.forEach(function(n){var a,s,c,v=null!==(a=(0,l.getFriendlyInterfaceId)(n.interfaceId.name))&&void 0!==a?a:"";void 0!=t&&v!==t||!n.registers||null===(c=(0,o.getKeys)(null!==(s=n.registers)&&void 0!==s?s:{}))||void 0===c||c.forEach(function(t){var o,a,s,c,p,f,g,m,h,y,b,I,_,w=null===(a=null===(o=e.getHardware(v))||void 0===o?void 0:o.getPeripheral().registers)||void 0===a?void 0:a[t];if(w){_={comment:"",value:0,valueAsHex:"0x00",name:null===w||void 0===w?void 0:w.name,alias:null!==(s=null===w||void 0===w?void 0:w.alias)&&void 0!==s?s:null===w||void 0===w?void 0:w.name,por:w.defaultValue,settings:{}};var S=u.default.for(w),D=[];if(null===(c=n.registers)||void 0===c||c[t].forEach(function(t){var n,i,o,a,u,s,c,v,p,f,g,m,h,y,b,I,C,E,A,O,P,M,N,R,F,V,T,H,x,B,L,j=null===(n=w.settings)||void 0===n?void 0:n[t.setting];if(j){if("R"!==j.type){var U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(o=(i=e.getDerivedFunctions()).overrideDefaultValues)||void 0===o?void 0:o.call(i,j.name,U))?W:null===(s=null===(u=null===(a=e.getState())||void 0===a?void 0:a.register)||void 0===u?void 0:u[w.name])||void 0===s?void 0:s[j.name];D.push(void 0!==k?"".concat(t.setting," ").concat(k,"; "):"".concat(t.setting," ").concat(e.getComponentValue(t.name),"; "))}if(null===_||void 0===_?void 0:_.settings){U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(v=(c=e.getDerivedFunctions()).overrideDefaultValues)||void 0===v?void 0:v.call(c,j.name,U))?W:null===(g=null===(f=null===(p=e.getState())||void 0===p?void 0:p.register)||void 0===f?void 0:f[w.name])||void 0===g?void 0:g[j.name];_.settings[j.alias]=(0,l.getSettingBits)(w,j,void 0!==k?k:null===(m=e.getComponent(t.name))||void 0===m?void 0:m.value,null!==(h=null===d||void 0===d?void 0:d.deviceType)&&void 0!==h?h:"PIC")}switch(t.type){case"ComboBox":case"boolean":U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(b=(y=e.getDerivedFunctions()).overrideDefaultValues)||void 0===b?void 0:b.call(y,j.name,U))?W:null===(E=null===(C=null===(I=e.getState())||void 0===I?void 0:I.register)||void 0===C?void 0:C[w.name])||void 0===E?void 0:E[j.name];S.withNumberValue(j,null!==(O=(0,l.getOptionValueByName)(j,void 0!==k?k:null===(A=e.getComponent(t.name))||void 0===A?void 0:A.value))&&void 0!==O?O:0);break;case"number":U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(M=(P=e.getDerivedFunctions()).overrideDefaultValues)||void 0===M?void 0:M.call(P,j.name,U))?W:null===(F=null===(R=null===(N=e.getState())||void 0===N?void 0:N.register)||void 0===R?void 0:R[w.name])||void 0===F?void 0:F[j.name];S.withNumberValue(j,void 0!==k?k:e.getComponentValue(t.name));break;case"register":case"string":var W;U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name};void 0!==(k=void 0!==(W=null===(T=(V=e.getDerivedFunctions()).overrideDefaultValues)||void 0===T?void 0:T.call(V,j.name,U))?W:null===(B=null===(x=null===(H=e.getState())||void 0===H?void 0:H.register)||void 0===x?void 0:x[w.name])||void 0===B?void 0:B[j.name])?j.options?S.withNumberValue(j,null!==(L=(0,l.getOptionValueByName)(j,k))&&void 0!==L?L:0):S.withNumberValue(j,Number(k)):S.withNumberValue(j,Number(e.getComponentValue(t.name)))}}}),w.settings)_.value=S.asNumber();else{var C=null===(f=null===(p=e.getState())||void 0===p?void 0:p.register)||void 0===f?void 0:f[w.name];_.value=Number(void 0!==C?C:null!==(b=e.getComponentValue(null!==(y=null===(h=null===(m=null===(g=n.registers)||void 0===g?void 0:g[t])||void 0===m?void 0:m[0])||void 0===h?void 0:h.name)&&void 0!==y?y:""))&&void 0!==b?b:0),D.push("".concat(_.name," ").concat(_.value,"; "))}_.valueAsHex="0x"+_.value.toString(16).toUpperCase(),_.comment=(0,l.sortComments)(D,w),i[null!==(I=null===w||void 0===w?void 0:w.alias)&&void 0!==I?I:w.name]=_}})}),i};t.getMappedComponentData=function(e,t){var n,i,r,l,u,d=null===(n=t.getHardware())||void 0===n?void 0:n.getPeripheral().registers,s=null===(r=null===(i=(0,a.getConfigData)(t))||void 0===i?void 0:i.peripherals)||void 0===r?void 0:r[0].registers,c=void 0;if(s&&d)for(var v=0,p=(0,o.getKeys)(s);v<p.length;v++)for(var f=p[v],g=0,m=s[f];g<m.length;g++){var h=m[g];if(h&&h.name===e&&void 0!==d[f]&&(null===(l=d[f])||void 0===l?void 0:l.name))return c={settingName:null===h||void 0===h?void 0:h.setting,registerName:null===(u=d[f])||void 0===u?void 0:u.name}}return c}},6888:function(e,t,n){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(9006)),o=i(n(5623));t.getInterfaceId=function(){return{name:r.getInterfaceName(o),version:r.getInterfaceVersion(o)}};t.createApi=function(e){return{PageErase:{name:e+"_PageErase",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"unlockKey",type:"flash_key_t"}]},WordWrite:{name:e+"_WordWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},RowWrite:{name:e+"_RowWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},Read:{name:e+"_Read",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"count",type:"uint32_t"},{name:"flash_data_t *",type:"data"}]},ErasePageOffsetGet:{name:e+"_ErasePageOffsetGet",returns:"uint32_t",arguments:[{name:"flashAddress",type:"flash_adr_t"}]},ErasePageAddressGet:{name:e+"_ErasePageAddressGet",returns:"uint32_t",arguments:[{name:"flashAddress",type:"flash_adr_t"}]},Initialize:{name:e+"_Initialize",returns:"void",arguments:[]},NonBlockingPageErase:{name:e+"_NonBlockingPageErase",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingBulkErase:{name:e+"_NonBlockingBulkErase",returns:e+"_RETURN_STATUS",arguments:[{name:"panel",type:"enum FLASH_PANEL"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingWordWrite:{name:e+"_NonBlockingWordWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingRowWrite:{name:e+"_NonBlockingRowWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingRead:{name:e+"_NonBlockingRead",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"count",type:"uint32_t"},{name:"flash_data_t *",type:"data"}]},NonBlockingPolledPageErase:{name:e+"_NonBlockingPolledPageErase",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledBulkErase:{name:e+"_NonBlockingBulkErase",returns:e+"_RETURN_STATUS",arguments:[{name:"panel",type:"enum FLASH_PANEL"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledWordWrite:{name:e+"_NonBlockingPolledWordWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledRowWrite:{name:e+"_NonBlockingPolledRowWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledRead:{name:e+"_NonBlockingPolledRead",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"count",type:"uint32_t"},{name:"flash_data_t *",type:"data"}]},operationStatusGet:{name:e+"_OperationStatusGet",returns:e+"_RETURN_STATUS",arguments:[]}}};t.createFirmwareApi=function(e,n,i){var o=e?e.toUpperCase():"undefined",a=i?i():t.createApi(o);return{api:a,simpleApi:r.buildSimpleApi(a),headerFiles:n||[{name:o.toLowerCase()+".h",path:"flash/"}]}},t.Interface={createPrototypeExport:function(){return{interfaces:[{interfaceId:t.getInterfaceId()}]}},createPrototypeImport:function(){return{interfaceId:t.getInterfaceId()}},getInterfaceId:t.getInterfaceId,createMock:function(){return{interfaceId:t.getInterfaceId(),payload:{interfaceApi:t.Interface.createFirmwareApi("flash-interface",[{name:"BasicFlash.h",path:"flash/"}]),flashWriteInstructionCount:2,flashInterface:"FLASH_NON_TRANSPARENT_DOUBLE_WORD_v1.0",flashWordWriteSizeInInstructions:2,flashEraseInstructionCount:1024,flashHasAuxiliary:0,flashEnduranceMinimum:1e4,flashBytesPerInstruction:3,flashPcUnitsPerInstruction:2,flashWordWriteOpCode:16385,flashOpCodeMask:16399,flashErasePageSizeInInstructions:1024,flashErasePageOpCode:16387,flashHasEcc:1,flashHasRowProgramming:1,flashWriteRowSizeInInstructions:128,flashWriteRowOpCode:16386,flashLatchIsMemoryMapped:1,flashLatchIsTransparent:0,flashLatchIsBusMastered:0,flashEndAddress:704256,flashProgramBeginAddress:256,flashUnlockKey:"0x00AA0055",flashHasDualPartition:!0,flashBootMode:"SINGLE",flashFirstPartitionEndAddress:44800,flashSecondPartitionBeginAddress:4194304,flashSecondPartitionProgramBeginAddress:4194816,flashSecondPartitionEndAddress:4239104},args:{requestId:{flashWriteInstructionCount:2}}}},createFirmwareApi:t.createFirmwareApi}},7295:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=e(t),a=0;a<i.length;a++)"default"!==i[a]&&r(n,t,i[a]);return o(n,t),n}}();Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigBits=t.getTemplateSettings=t.getTemplatePayload=t.getTemplates=void 0;var l=a(n(5037)),u=n(2102),d=n(9943),s=n(5056),c=n(6074),v=n(5037);t.getTemplates=function(e){var t,n=(0,d.getConfigData)(e,!0),r=[];return null===(t=null===n||void 0===n?void 0:n.templates)||void 0===t||t.forEach(function(t){var n,o,a,l=i({},t);e&&(l.dest=null!==(a=null===(o=(n=e.getDerivedFunctions()).templateName)||void 0===o?void 0:o.call(n,l.src))&&void 0!==a?a:l.dest,l.dest=l.dest.replace("${sourceFileName}",e.getName().toLowerCase()+".c"),l.dest=l.dest.replace("${headerFileName}",e.getName().toLowerCase()+".h"),p(l,e)&&r.push(l))}),r};var p=function(e,t){var n=!0;return t?(n&&1==e.generateWithHardware&&!(0,c.isFullyAssigned)(t.getPrototypeModule().imports,(0,d.getConfigData)(t,!0))&&(n=!1),n&&e.isGeneratableProperty&&1!=t.getDerivedFunction(e.isGeneratableProperty)&&(n=!1),n):n};t.getTemplatePayload=function(e){var n;if(e){var r=(0,d.getConfigData)(e,!0),o=e.getName(),a={name:{uppercase:o.toUpperCase(),lowercase:o.toLowerCase(),instance:o},filename:{source:"".concat(o.toLowerCase(),".c"),header:"".concat(o.toLowerCase(),".h")}},l=e.getAutoModuleAppModel().getAllComponents();return null===(n=(0,s.values)(l))||void 0===n||n.forEach(function(t){a[t.component.name]=f(t.component,e)}),a=i(i({},a),(0,t.getTemplateSettings)(e,r))}};t.getTemplateSettings=function(e,t){var n,i;if(null===e||void 0===e?void 0:e.getHardware())return{registers:e.getRegisterValues(void 0),interrupts:null===(n=e.getHardware())||void 0===n?void 0:n.getPeripheral().interrupts,properties:null===(i=e.getHardware())||void 0===i?void 0:i.getPeripheral().properties}};t.getConfigBits=function(e){var t,n,r,o=(0,d.getConfigData)(e,!0),a=(0,u.find)(null!==(t=null===o||void 0===o?void 0:o.peripherals)&&void 0!==t?t:[],function(e){return l.hasConfigBits(e.interfaceId.name)});if(a){var c=l.getFriendlyInterfaceId(a.interfaceId.name),v={},p=null===(n=e.getHardware(c))||void 0===n?void 0:n.getPeripheral().registers;return null===(r=(0,s.getKeys)(null!==p&&void 0!==p?p:[]))||void 0===r||r.forEach(function(t){var n,r,o,l,d=null===(r=a.registers)||void 0===r?void 0:r[t];v=i(i({},v),((n={})[t]={},n)),!0===(null===(l=null===(o=e.getState())||void 0===o?void 0:o.contentMeta)||void 0===l?void 0:l.isUserEnRegRWMode)?null===d||void 0===d||d.forEach(function(n){var i,r,o,a,l,d,s,c,f,g,m,h,y=null===p||void 0===p?void 0:p[t];if(y&&!y.settings)m=e.getComponentValue(n.setting,{register:t}),h=e.getComponentValue(n.setting,{register:t}).toString(16).toUpperCase();else{var b=null===(r=null===(i=null===p||void 0===p?void 0:p[t])||void 0===i?void 0:i.settings)||void 0===r?void 0:r[n.setting];m=null!==(s=null!==(d=null!==(l=null===(a=(0,u.find)(null!==(o=null===b||void 0===b?void 0:b.options)&&void 0!==o?o:[],function(i){return i.description===e.getComponentValue(n.setting,{register:t})||i.alias===e.getComponentValue(n.setting,{register:t})||i.name===e.getComponentValue(n.setting,{register:t})}))||void 0===a?void 0:a.name)&&void 0!==l?l:e.getComponentValue(n.setting,{register:t}))&&void 0!==d?d:null===b||void 0===b?void 0:b.defaultValue)&&void 0!==s?s:"",h=null!==(g=null===(f=(0,u.find)(null!==(c=null===b||void 0===b?void 0:b.options)&&void 0!==c?c:[],function(i){return i.description===e.getComponentValue(n.setting,{register:t})||i.alias===e.getComponentValue(n.setting,{register:t})||i.name===e.getComponentValue(n.setting,{register:t})}))||void 0===f?void 0:f.description)&&void 0!==g?g:""}"number"===typeof m?isNaN(m)||(v[t][n.setting]={name:n.setting,value:"0x"+m.toString(16).toUpperCase(),description:n.description,valueAsDescription:"0x"+m.toString(16).toUpperCase()}):v[t][n.setting]={name:n.setting,value:m,description:n.description,valueAsDescription:h}}):null===d||void 0===d||d.forEach(function(n){var i,r,o,a,l,d,s,c,f,g,m,h,y=null===p||void 0===p?void 0:p[t];if(y&&!y.settings)h=null!==(r=null===(i=e.getComponent(n.name))||void 0===i?void 0:i.value)&&void 0!==r?r:"";else{var b=null===(a=null===(o=null===p||void 0===p?void 0:p[t])||void 0===o?void 0:o.settings)||void 0===a?void 0:a[n.setting];h=null!==(g=null!==(f=null!==(s=null===(d=(0,u.find)(null!==(l=null===b||void 0===b?void 0:b.options)&&void 0!==l?l:[],function(t){var i,r,o;return t.description===(null===(i=e.getComponent(n.name))||void 0===i?void 0:i.value)||t.alias===(null===(r=e.getComponent(n.name))||void 0===r?void 0:r.value)||t.name===(null===(o=e.getComponent(n.name))||void 0===o?void 0:o.value)}))||void 0===d?void 0:d.name)&&void 0!==s?s:null===(c=e.getComponent(n.name))||void 0===c?void 0:c.value)&&void 0!==f?f:null===b||void 0===b?void 0:b.defaultValue)&&void 0!==g?g:""}v[t][n.setting]={name:n.setting,value:h,description:n.description,valueAsDescription:null===(m=e.getComponent(n.name))||void 0===m?void 0:m.value}})}),v}return{}};var f=function(e,t){var n,i,r=t.getComponentValue(e.name);switch(e.type){case"ComboBox":if("hardware"===e.category){var o=l.getSettingFromComponent(t,e);return{value:r,options:l.getSettingOptionsIfPresent(e,o,t.getComponentValue(null!==(i=null===(n=e.mode)||void 0===n?void 0:n.masterComponent)&&void 0!==i?i:""))}}if("software"===e.category)return{value:r,options:(0,v.getComboOptions)(t.getDerivedFunctions().overrideOptions,e)};break;case"boolean":return t.isComponentValue(e.name);default:return r}}},7437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOptionDescriptions=t.getOptionNames=t.getOptionByDescription=t.getOptionByName=t.getOptionByAlias=t.getBitRange=t.getBitLabel=void 0;var i=n(2102);t.getBitLabel=function(e){if(void 0!==e.mask){var n=(0,t.getBitRange)(e);if(n)return n.high===n.low?"bit ".concat(n.high):"bit ".concat(n.high,"-").concat(n.low)}};t.getBitRange=function(e){if(e.mask){var t,n=(t=e.mask,parseInt(t,16).toString(2));return{high:n.length-1,low:r(n)}}};t.getOptionByAlias=function(e,t){var n,r,o=(0,i.find)(null!==(n=null===t||void 0===t?void 0:t.options)&&void 0!==n?n:[],function(t){return t.alias==e});return o||(o=(0,i.find)(null!==(r=null===t||void 0===t?void 0:t.options)&&void 0!==r?r:[],function(t){return t.description==e})),o};t.getOptionByName=function(e,t){var n;return(0,i.find)(null!==(n=null===t||void 0===t?void 0:t.options)&&void 0!==n?n:[],function(t){return t.name==e})};t.getOptionByDescription=function(e,t){var n;return(0,i.find)(null!==(n=t.options)&&void 0!==n?n:[],function(t){return t.description==e})};t.getOptionNames=function(e){var t;return(0,i.map)(null!==(t=e.options)&&void 0!==t?t:[],function(e){return e.name})};function r(e){if("1"===e.charAt(1)){for(var t=1;"1"===e.charAt(t);)t++;return e.length-t}return e.length-1}t.getOptionDescriptions=function(e){var t;return(0,i.map)(null!==(t=e.options)&&void 0!==t?t:[],function(e){return e.description})}},7557:function(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",r=1/0,o=9007199254740991,a=17976931348623157e292,l=NaN,u="[object Arguments]",d="[object Array]",s="[object Boolean]",c="[object Date]",v="[object Error]",p="[object Function]",f="[object Map]",g="[object Number]",m="[object Object]",h="[object Promise]",y="[object RegExp]",b="[object Set]",I="[object String]",_="[object Symbol]",w="[object WeakMap]",S="[object ArrayBuffer]",D="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,A=/^\./,O=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/^\s+|\s+$/g,M=/\\(\\)?/g,N=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,F=/^\[object .+?Constructor\]$/,V=/^0o[0-7]+$/i,T=/^(?:0|[1-9]\d*)$/,H={};H["[object Float32Array]"]=H["[object Float64Array]"]=H["[object Int8Array]"]=H["[object Int16Array]"]=H["[object Int32Array]"]=H["[object Uint8Array]"]=H["[object Uint8ClampedArray]"]=H["[object Uint16Array]"]=H["[object Uint32Array]"]=!0,H[u]=H[d]=H[S]=H[s]=H[D]=H[c]=H[v]=H[p]=H[f]=H[g]=H[m]=H[y]=H[b]=H[I]=H[w]=!1;var x=parseInt,B="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,j=B||L||Function("return this")(),U=t&&!t.nodeType&&t,k=U&&e&&!e.nodeType&&e,W=k&&k.exports===U&&B.process,G=function(){try{return W&&W.binding("util")}catch(e){}}(),K=G&&G.isTypedArray;function q(e,t){for(var n=-1,i=e?e.length:0;++n<i;)if(t(e[n],n,e))return!0;return!1}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var X,Z,J=Array.prototype,Q=Function.prototype,ee=Object.prototype,te=j["__core-js_shared__"],ne=function(){var e=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ie=Q.toString,re=ee.hasOwnProperty,oe=ee.toString,ae=RegExp("^"+ie.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=j.Symbol,ue=j.Uint8Array,de=ee.propertyIsEnumerable,se=J.splice,ce=(X=Object.keys,Z=Object,function(e){return X(Z(e))}),ve=Math.max,pe=We(j,"DataView"),fe=We(j,"Map"),ge=We(j,"Promise"),me=We(j,"Set"),he=We(j,"WeakMap"),ye=We(Object,"create"),be=Ze(pe),Ie=Ze(fe),_e=Ze(ge),we=Ze(me),Se=Ze(he),De=le?le.prototype:void 0,Ce=De?De.valueOf:void 0,Ee=De?De.toString:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Me(e){var t=-1,n=e?e.length:0;for(this.__data__=new Pe;++t<n;)this.add(e[t])}function Ne(e){this.__data__=new Oe(e)}function Re(e,t){var n=it(e)||nt(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,r=!!i;for(var o in e)!t&&!re.call(e,o)||r&&("length"==o||Ke(o,i))||n.push(o);return n}function Fe(e,t){for(var n=e.length;n--;)if(tt(e[n][0],t))return n;return-1}function Ve(e,t){for(var n=0,i=(t=qe(t,e)?[t]:je(t)).length;null!=e&&n<i;)e=e[Xe(t[n++])];return n&&n==i?e:void 0}function Te(e,t){return null!=e&&t in Object(e)}function He(e,t,n,i,r){return e===t||(null==e||null==t||!lt(e)&&!ut(t)?e!==e&&t!==t:function(e,t,n,i,r,o){var a=it(e),l=it(t),p=d,h=d;a||(p=(p=Ge(e))==u?m:p);l||(h=(h=Ge(t))==u?m:h);var w=p==m&&!z(e),C=h==m&&!z(t),E=p==h;if(E&&!w)return o||(o=new Ne),a||st(e)?Ue(e,t,n,i,r,o):function(e,t,n,i,r,o,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!i(new ue(e),new ue(t)));case s:case c:case g:return tt(+e,+t);case v:return e.name==t.name&&e.message==t.message;case y:case I:return e==t+"";case f:var l=$;case b:var u=2&o;if(l||(l=Y),e.size!=t.size&&!u)return!1;var d=a.get(e);if(d)return d==t;o|=1,a.set(e,t);var p=Ue(l(e),l(t),i,r,o,a);return a.delete(e),p;case _:if(Ce)return Ce.call(e)==Ce.call(t)}return!1}(e,t,p,n,i,r,o);if(!(2&r)){var A=w&&re.call(e,"__wrapped__"),O=C&&re.call(t,"__wrapped__");if(A||O){var P=A?e.value():e,M=O?t.value():t;return o||(o=new Ne),n(P,M,i,r,o)}}if(!E)return!1;return o||(o=new Ne),function(e,t,n,i,r,o){var a=2&r,l=ct(e),u=l.length,d=ct(t),s=d.length;if(u!=s&&!a)return!1;var c=u;for(;c--;){var v=l[c];if(!(a?v in t:re.call(t,v)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var f=!0;o.set(e,t),o.set(t,e);var g=a;for(;++c<u;){var m=e[v=l[c]],h=t[v];if(i)var y=a?i(h,m,v,t,e,o):i(m,h,v,e,t,o);if(!(void 0===y?m===h||n(m,h,i,r,o):y)){f=!1;break}g||(g="constructor"==v)}if(f&&!g){var b=e.constructor,I=t.constructor;b==I||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof I&&I instanceof I||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,i,r,o)}(e,t,He,n,i,r))}function xe(e){return!(!lt(e)||function(e){return!!ne&&ne in e}(e))&&(ot(e)||z(e)?ae:F).test(Ze(e))}function Be(e){return"function"==typeof e?e:null==e?vt:"object"==typeof e?it(e)?function(e,t){if(qe(e)&&ze(t))return $e(Xe(e),t);return function(n){var i=function(e,t,n){var i=null==e?void 0:Ve(e,t);return void 0===i?n:i}(n,e);return void 0===i&&i===t?function(e,t){return null!=e&&function(e,t,n){t=qe(t,e)?[t]:je(t);var i,r=-1,o=t.length;for(;++r<o;){var a=Xe(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}if(i)return i;o=e?e.length:0;return!!o&&at(o)&&Ke(a,o)&&(it(e)||nt(e))}(e,t,Te)}(n,e):He(t,i,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ct(e),n=t.length;for(;n--;){var i=t[n],r=e[i];t[n]=[i,r,ze(r)]}return t}(e);if(1==t.length&&t[0][2])return $e(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,i){var r=n.length,o=r,a=!i;if(null==e)return!o;for(e=Object(e);r--;){var l=n[r];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<o;){var u=(l=n[r])[0],d=e[u],s=l[1];if(a&&l[2]){if(void 0===d&&!(u in e))return!1}else{var c=new Ne;if(i)var v=i(d,s,u,e,t,c);if(!(void 0===v?He(s,d,i,3,c):v))return!1}}return!0}(n,e,t)}}(e):function(e){return qe(e)?(t=Xe(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ve(t,e)}}(e);var t}(e)}function Le(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ee;return e===n}(e))return ce(e);var t=[];for(var n in Object(e))re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function je(e){return it(e)?e:Ye(e)}function Ue(e,t,n,i,r,o){var a=2&r,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var s=-1,c=!0,v=1&r?new Me:void 0;for(o.set(e,t),o.set(t,e);++s<l;){var p=e[s],f=t[s];if(i)var g=a?i(f,p,s,t,e,o):i(p,f,s,e,t,o);if(void 0!==g){if(g)continue;c=!1;break}if(v){if(!q(t,function(e,t){if(!v.has(t)&&(p===e||n(p,e,i,r,o)))return v.add(t)})){c=!1;break}}else if(p!==f&&!n(p,f,i,r,o)){c=!1;break}}return o.delete(e),o.delete(t),c}function ke(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function We(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===i?void 0:n}return re.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:re.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?i:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Fe(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,i=Fe(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(fe||Oe),string:new Ae}},Pe.prototype.delete=function(e){return ke(this,e).delete(e)},Pe.prototype.get=function(e){return ke(this,e).get(e)},Pe.prototype.has=function(e){return ke(this,e).has(e)},Pe.prototype.set=function(e,t){return ke(this,e).set(e,t),this},Me.prototype.add=Me.prototype.push=function(e){return this.__data__.set(e,i),this},Me.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Oe},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var i=n.__data__;if(!fe||i.length<199)return i.push([e,t]),this;n=this.__data__=new Pe(i)}return n.set(e,t),this};var Ge=function(e){return oe.call(e)};function Ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function qe(e,t){if(it(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!dt(e))||(E.test(e)||!C.test(e)||null!=t&&e in Object(t))}function ze(e){return e===e&&!lt(e)}function $e(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(pe&&Ge(new pe(new ArrayBuffer(1)))!=D||fe&&Ge(new fe)!=f||ge&&Ge(ge.resolve())!=h||me&&Ge(new me)!=b||he&&Ge(new he)!=w)&&(Ge=function(e){var t=oe.call(e),n=t==m?e.constructor:void 0,i=n?Ze(n):void 0;if(i)switch(i){case be:return D;case Ie:return f;case _e:return h;case we:return b;case Se:return w}return t});var Ye=et(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(dt(e))return Ee?Ee.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return A.test(e)&&n.push(""),e.replace(O,function(e,t,i,r){n.push(i?r.replace(M,"$1"):t||e)}),n});function Xe(e){if("string"==typeof e||dt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ze(e){if(null!=e){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Je,Qe=(Je=function(e,t,n){var i=e?e.length:0;if(!i)return-1;var o=null==n?0:function(e){var t=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(dt(e))return l;if(lt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=lt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(P,"");var n=R.test(e);return n||V.test(e)?x(e.slice(2),n?2:8):N.test(e)?l:+e}(e))===r||e===-1/0?(e<0?-1:1)*a:e===e?e:0:0===e?e:0}(e),n=t%1;return t===t?n?t-n:t:0}(n);return o<0&&(o=ve(i+o,0)),function(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}(e,Be(t),o)},function(e,t,n){var i=Object(e);if(!rt(e)){var r=Be(t);e=ct(e),t=function(e){return r(i[e],e,i)}}var o=Je(e,t,n);return o>-1?i[r?e[o]:o]:void 0});function et(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a),a};return n.cache=new(et.Cache||Pe),n}function tt(e,t){return e===t||e!==e&&t!==t}function nt(e){return function(e){return ut(e)&&rt(e)}(e)&&re.call(e,"callee")&&(!de.call(e,"callee")||oe.call(e)==u)}et.Cache=Pe;var it=Array.isArray;function rt(e){return null!=e&&at(e.length)&&!ot(e)}function ot(e){var t=lt(e)?oe.call(e):"";return t==p||"[object GeneratorFunction]"==t}function at(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function lt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function dt(e){return"symbol"==typeof e||ut(e)&&oe.call(e)==_}var st=K?function(e){return function(t){return e(t)}}(K):function(e){return ut(e)&&at(e.length)&&!!H[oe.call(e)]};function ct(e){return rt(e)?Re(e):Le(e)}function vt(e){return e}e.exports=Qe},7572:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSettingByAlias=void 0;t.getSettingByAlias=function(e,t){var n;return null===(n=t.settings)||void 0===n?void 0:n[e]}},7695:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInterfaceName=function(e){var t;if(e&&(t=e.name)&&(t=t.replace("@microchip/","")),!t)throw new Error("Invalid Interface Name...!");return t},t.getInterfaceVersion=function(e){var t,n=new RegExp("\\d+.\\d+.\\d+");if(e&&(t=e.version),!t&&!n.test(t))throw new Error("Invalid Interface Version...!");return t}},7864:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=e(t),a=0;a<i.length;a++)"default"!==i[a]&&r(n,t,i[a]);return o(n,t),n}}();Object.defineProperty(t,"__esModule",{value:!0}),t.registerScfUiSchema=t.createAutoViewPayloads=void 0,t.registerFormData=b,t.registerUiSchema=I,t.registerInitFormData=_;var l=n(2403),u=n(5056),d=a(n(5037)),s=n(9943),c=a(n(5981)),v=n(4579),p=n(236),f=n(3169),g=n(313),m=n(3427),h=n(9809),y=n(6808);t.createAutoViewPayloads=function(e){var n,r,o=(0,s.getConfigData)(e,!0),a={main:{}};return(null===o||void 0===o?void 0:o.tabs)&&Object.keys(o.tabs).forEach(function(e){a[e]=h(e)}),!0===(0,s.getConfigData)(e,!0).showRegisterEditor&&d.hasConfigBits(null!==(r=null===(n=o.peripherals)||void 0===n?void 0:n[0].interfaceId.name)&&void 0!==r?r:"")&&(a.register=h("register")),a;function h(n){var r,a;if("register"===n)return 1==(null===(a=null===(r=e.getState())||void 0===r?void 0:r.contentMeta)||void 0===a?void 0:a.isUserEnRegRWMode)?function(){if(!(null===o||void 0===o?void 0:o.peripherals))return{};var n=[];return o.peripherals.forEach(function(r){var o,a,d,s,v,p,f=null===(o=e.getHardware(r.interfaceId.name))||void 0===o?void 0:o.getPeripheral();if(null===f||void 0===f?void 0:f.registers){var g=e.getRegisterValues(r.interfaceId.name),m=e.getInterrupts();f=c.processRegisterModes(r,f,e);var h=l.CreateRegisterView.for(f).withAllEditable();for(var y in g&&(null===(a=(0,u.getKeys)(null!==g&&void 0!==g?g:{}))||void 0===a||a.forEach(function(e){var t,n=null===(t=null===f||void 0===f?void 0:f.registers)||void 0===t?void 0:t[e];n&&h.withRegisterValue(n,g[e].value)})),null!==m&&void 0!==m?m:{}){var _=null===m||void 0===m?void 0:m[y];if(_){var w=e.getComponent(y.toLowerCase()),S="boolean"===typeof(null===w||void 0===w?void 0:w.value)?(null===w||void 0===w?void 0:w.value)?"enabled":"disabled":null===w||void 0===w?void 0:w.value;h.withInterruptValue(_,null!==(d=null!==S&&void 0!==S?S:_.defaultValue)&&void 0!==d?d:"disabled").withInterruptOptions(_,null!==(p=null===(v=null===(s=null===w||void 0===w?void 0:w.component)||void 0===s?void 0:s.defaultValue)||void 0===v?void 0:v.options)&&void 0!==p?p:["enabled","disabled"])}}n.push(i(i({},h.create()),{formData:b(e,h.create().formData),uiSchema:I(e,h,f.registers,f.interrupts),scfUiSchema:(0,t.registerScfUiSchema)(e,f.registers)}))}}),n[0]}():function(){if(!(null===o||void 0===o?void 0:o.peripherals))return{};var n=[];return o.peripherals.forEach(function(r){var o,a,v,p,f,g;if(!d.hasConfigBits(r.interfaceId.name)){var m=null===(o=e.getHardware(r.interfaceId.name))||void 0===o?void 0:o.getPeripheral();if(null===m||void 0===m?void 0:m.registers){var h=e.getRegisterValues(r.interfaceId.name),y=e.getInterrupts();m=c.processRegisterModes(r,m,e);var b=l.CreateRegisterView.for(m);for(var I in h&&(null===(a=(0,u.getKeys)(null!==h&&void 0!==h?h:{}))||void 0===a||a.forEach(function(e){var t,n=null===(t=null===m||void 0===m?void 0:m.registers)||void 0===t?void 0:t[e];n&&b.withRegisterValue(n,h[e].value)})),null!==y&&void 0!==y?y:{}){var w=null===y||void 0===y?void 0:y[I];if(w){var S=e.getComponent(I.toLowerCase()),D="boolean"===typeof(null===S||void 0===S?void 0:S.value)?(null===S||void 0===S?void 0:S.value)?"enabled":"disabled":null===S||void 0===S?void 0:S.value;b.withInterruptValue(w,null!==(v=null!==D&&void 0!==D?D:w.defaultValue)&&void 0!==v?v:"disabled").withInterruptOptions(w,null!==(g=null===(f=null===(p=null===S||void 0===S?void 0:S.component)||void 0===p?void 0:p.defaultValue)||void 0===f?void 0:f.options)&&void 0!==g?g:["enabled","disabled"])}}!0===(0,s.getConfigData)(e,!0).showRegisterEditor?n.push(i(i({},b.create()),{formData:_(e,b.create().formData),scfUiSchema:(0,t.registerScfUiSchema)(e,m.registers)})):n.push(i(i({},b.create()),{formData:_(e,b.create().formData)}))}}}),n[0]}();var h={components:e.getAutoModuleAppModel().getAllComponents(),getComponent:e.getComponent,imports:e.getImports(),derivedFunctions:e.getDerivedFunctions(),getAssignedImport:e.getAssignedImport,getTableHelpers:e.getTableHelpers},y={viewModel:h,getDerivedFunction:{overrideTitle:e.getDerivedFunction("overrideTitle"),isVisible:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).isVisible)||void 0===i?void 0:i.call(n,t)},getFunction:e.getDerivedFunction},overrideTableOptions:e.getDerivedFunctions().overrideTableOptions,overrideDefaultValues:e.getDerivedFunctions().overrideTableDefaultValues,model:e},w={viewModel:h,getDerivedFunction:{isEnabled:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).isEnabled)||void 0===i?void 0:i.call(n,t)},getUiBehavior:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).getUiBehavior)||void 0===i?void 0:i.call(n,t)},isVisible:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).isVisible)||void 0===i?void 0:i.call(n,t)}},getProcessedArgValue:e.getExportInterfaces().getProcessedArgValue,isControlledByInterface:e.isControlledByInterface};return{schema:(0,g.createSchema)(n,o,y),uiSchema:(0,m.createUiSchema)(n,o,w),formData:(0,p.createFormData)(n,o,e),scfUiSchema:(0,f.createScfUiSchema)(n,o,e),name:null===o||void 0===o?void 0:o.tabs[n],table:(0,v.shouldPopulateView)(e.getDerivedFunctions(),e.getImports(),e.getAssignedImport,o)?null===e||void 0===e?void 0:e.getDerivedFunction("getTableData"):void 0,expandGroupsByDefault:!(null===o||void 0===o?void 0:o.UIGroupCollapse)||o.UIGroupCollapse}}};function b(e,t){for(var n,r,o=i({},t),a=0,l=Object.keys(o);a<l.length;a++)for(var u=l[a],d=0,s=Object.keys(o[u]);d<s.length;d++){var c=s[d],v=void 0!==e.getComponentValue(c,{register:u})?e.getComponentValue(c,{register:u}):e.getComponentValue(c);"interrupts"===u&&(v=1==v?"enabled":"disabled"),t=i(i({},t),((n={})[u]=i(i({},t[u]),((r={})[c]=v,r)),n))}return t}function I(e,t,n,i){return void 0!=n&&((0,u.getKeys)(null!==n&&void 0!==n?n:{}).forEach(function(i){var r,o,a,l,d,s,c,v={compType:h.COMPTYPE.REGISTER,tabID:h.TABID.REGISTER},p=null!==(o=null===(r=n[i])||void 0===r?void 0:r.name)&&void 0!==o?o:"";!1===(null===(l=null===e||void 0===e?void 0:(a=e.getDerivedFunctions()).isEnabled)||void 0===l?void 0:l.call(a,p,v))&&(t=t.withNonEditableRegister(n[i]));var f=null===(d=n[i])||void 0===d?void 0:d.settings;(0,u.getKeys)(null!==f&&void 0!==f?f:{}).forEach(function(r){var o,a,l,u,d,s,c=null===f||void 0===f?void 0:f[r];if(c){var v=c.name,g={compType:h.COMPTYPE.SETTING,tabID:h.TABID.REGISTER,parent:p},m=null===(a=null===e||void 0===e?void 0:(o=e.getDerivedFunctions()).isEnabled)||void 0===a?void 0:a.call(o,v,g);c&&v&&!1===m&&(t=t.withEditableRegisterSetting(null===n||void 0===n?void 0:n[i],c));var y=null===(u=null===e||void 0===e?void 0:(l=e.getDerivedFunctions()).isVisible)||void 0===u?void 0:u.call(l,v,g);c&&v&&!1===y&&(t=t.withInVisibleRegisterSetting(null===n||void 0===n?void 0:n[i],c));var b=null===(s=null===e||void 0===e?void 0:(d=e.getDerivedFunctions()).overrideTitle)||void 0===s?void 0:s.call(d,v,g);b&&"string"===typeof b&&(t=t.withUpdatedSettingDescription(null===n||void 0===n?void 0:n[i],c,b))}}),!1===(null===(c=null===e||void 0===e?void 0:(s=e.getDerivedFunctions()).isVisible)||void 0===c?void 0:c.call(s,p,v))&&(t=t.withInVisibleRegister(n[i]))}),(0,u.getKeys)(null!==i&&void 0!==i?i:{}).forEach(function(n){var r,o,a,l,u={compType:h.COMPTYPE.INTERRUPT,tabID:h.TABID.REGISTER};!1===(null===(o=null===e||void 0===e?void 0:(r=e.getDerivedFunctions()).isEnabled)||void 0===o?void 0:o.call(r,n,u))&&(t=t.withNonEditableInterrupt(null===i||void 0===i?void 0:i[n])),!1===(null===(l=null===e||void 0===e?void 0:(a=e.getDerivedFunctions()).isVisible)||void 0===l?void 0:l.call(a,n,u))&&(t=t.withInVisibleInterrupt(null===i||void 0===i?void 0:i[n]))})),t.create().uiSchema}function _(e,t){for(var n,r,o=i({},t),a=0,l=Object.keys(o);a<l.length;a++)for(var u=l[a],d=0,s=Object.keys(o[u]);d<s.length;d++){var c=s[d],v=void 0!==(0,y.getRegisterEditorComponentValue)(e,c,{register:u})?(0,y.getRegisterEditorComponentValue)(e,c,{register:u}):e.getComponentValue(c);"interrupts"===u&&(v=1==v?"enabled":"disabled"),t=i(i({},t),((n={})[u]=i(i({},t[u]),((r={})[c]=v,r)),n))}return t}t.registerScfUiSchema=function(e,t){var n,r,o,a,l,d,s,c,v,p,f={},g=e.getImportValue("device_meta"),m=null!==(n=null===g||void 0===g?void 0:g.hasSdlSupport)&&void 0!==n&&n,h="";if(g&&m){(null===(r=g.architecture)||void 0===r?void 0:r.startsWith("PIC"))?h="v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true":(null===(o=g.architecture)||void 0===o?void 0:o.startsWith("AVR"))&&(h="v2/keyword-lookup?keyword=atmel;device:${deviceName};comp:${moduleName}_${dosId};register:${registerName}&redirect=true");var y=null!==(a=null===g||void 0===g?void 0:g.deviceName)&&void 0!==a?a:"",b=null!==(s=null===(d=null===(l=e.getHardware())||void 0===l?void 0:l.getPeripheral())||void 0===d?void 0:d.group)&&void 0!==s?s:"",I=null!==(p=null===(v=null===(c=e.getHardware())||void 0===c?void 0:c.getPeripheral())||void 0===v?void 0:v.dosid)&&void 0!==p?p:"";void 0!=t&&(0,u.values)(null!==t&&void 0!==t?t:{}).forEach(function(e){var n,r;if(e){var o=null===(r=t[null!==(n=e.alias)&&void 0!==n?n:""])||void 0===r?void 0:r.settings;o&&(0,u.getKeys)(o).forEach(function(t){var n,r,a,l=o[t];if(l){var u=h.replace("${deviceName}",null!==y&&void 0!==y?y:"").replace("${registerName}",e.name).replace("${moduleName}",null!==b&&void 0!==b?b:"").replace("${dosId}",null!==I&&void 0!==I?I:"");f=i(i({},f),((n={})[e.name]=i(i({},f[e.name]),((r={})[l.name]=i(i({},null===(a=f[e.name])||void 0===a?void 0:a[l.name]),{helpKeyword:u,tooltip:"Click for more Information"}),r)),n))}})}})}return f}},8045:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PCPHelper=void 0,t.stateActionBuilder=o;var r=n(2435);function o(e){return new r.PCPStateActionBuilder(e)}var a=function(){function e(){var e=this;this.pinCallbacks=void 0,this.getAllFilteredRows=function(t){var n=[];return t.forEach(function(t){var i=e.userRowData(t);i&&e.isRowValid(i)&&n.push(i)}),n},this.isRowValid=function(e){return!!((null===e||void 0===e?void 0:e.name)&&(null===e||void 0===e?void 0:e.module)&&(null===e||void 0===e?void 0:e.function)&&(null===e||void 0===e?void 0:e.direction)&&(null===e||void 0===e?void 0:e.behaviour))},this.userRowData=function(t){var n,r=t;return(null===(n=e.pinCallbacks)||void 0===n?void 0:n.getRowData)&&(r=e.pinCallbacks.getRowData(i({},t))),r},this.getAllRows=function(){var t,n,i,r,o,a=null!==(r=null===(i=null===(n=null===(t=e.pinCallbacks)||void 0===t?void 0:t.getPinsData)||void 0===n?void 0:n.call(t))||void 0===i?void 0:i.rows)&&void 0!==r?r:[],l={};return(null===(o=e.pinCallbacks)||void 0===o?void 0:o.getCompletePinData)&&(l=e.pinCallbacks.getCompletePinData())&&(null===l||void 0===l?void 0:l.rows)&&(a=l.rows),a},this.getData=function(){return{rows:e.getAllFilteredRows(e.getAllRows())}}}return e.prototype.stateActionBuilder=function(e){return o(e)},e.prototype.setCallbacks=function(e){this.pinCallbacks=e},e}();t.PCPHelper=a},8087:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.data_schema=t.PIN_ARCH=t.behaviour=t.direction=t.actiontype=t.pin_attribs_enum=t.pin_interrupts_enum=t.pin_state=t.QueryAdapterKey=void 0,function(e){e.ALLPINS="allpins",e.ALLPINS_FOR_ATTRIBS="allpins_for_attribs",e.PPS="pps",e.APFCON="apfcon",e.PORTMUX="portmux",e.HASPPS="hasPPS"}(t.QueryAdapterKey||(t.QueryAdapterKey={})),function(e){e.EMPTY="E",e.LOCKED="L",e.UNLOCK="UL",e.DiSABLE_LOCK="DL",e.UNLOCKED_DISABLED="DUL",e.LOCKED_LINK="LL",e.UNLOCKED_MUX="MUL",e.LOCKED_CONFLICT="CL"}(t.pin_state||(t.pin_state={})),function(e){e.INTDIS_BUFFEN="INTDIS_BUFFEN",e.BOTH_EDGES="BOTH_EDGES",e.RISING_EDGE="RISING_EDGE",e.FALLING_EDGE="FALLING_EDGE",e.NONE="NONE",e.LOW_LEVEL="LOW_LEVEL"}(t.pin_interrupts_enum||(t.pin_interrupts_enum={})),function(e){e.aliasReEx="aliasReEx",e.cname="cname",e.high="high",e.inv="inv",e.wpu="wpu",e.wpd="wpd",e.od="od",e.analog="analog",e.ioc="ioc",e.intcallback="intcallback",e.alias="alias",e.advInpBuff="advInpBuff"}(t.pin_attribs_enum||(t.pin_attribs_enum={})),function(e){e.SETACTION="SETACTION",e.ATTRIBACTION="ATTRIBACTION"}(t.actiontype||(t.actiontype={})),function(e){e.output="output",e.input="input",e.bidirectional="bidirectional"}(t.direction||(t.direction={})),function(e){e.LOCK_UNLOCK="LOCK_UNLOCK",e.ALWAYS_LOCKED="ALWAYS_LOCKED",e.SINGLE_PIN_MUX="SINGLE_PIN_MUX",e.OPTIONAL_PIN_MUX="OPTIONAL_PIN_MUX",e.PPS="PPS",e.APFCON="APFCON",e.PORTMUX="PORTMUX",e.EXCLUSIVE_LOCK="EXCLUSIVE_LOCK",e.LOCKED_DISABLED="LOCKED_DISABLED"}(t.behaviour||(t.behaviour={})),function(e){e.PIC18F="PIC18F",e.AVR8="AVR8",e.PIC16F="PIC16F",e.PIC24F="PIC24F"}(t.PIN_ARCH||(t.PIN_ARCH={})),t.data_schema={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/intf_data",definitions:{intf_data:{type:"object",properties:{rows:{type:"array",items:{$ref:"#/definitions/pin_row"}}},required:["rows"],additionalProperties:!1},pin_row:{type:"object",properties:{name:{type:"string"},module:{type:"string"},function:{type:"string"},direction:{$ref:"#/definitions/direction"},filter:{$ref:"#/definitions/filter"},behaviour:{$ref:"#/definitions/behaviour"},behaviourMeta:{$ref:"#/definitions/behaviourMeta"},attribs:{type:"array",items:{$ref:"#/definitions/pin_attribs"}},groupsdata:{$ref:"#/definitions/pingroups_data"},actions:{}},required:["name","module","function","direction","filter","behaviour"],additionalProperties:!1},direction:{type:"string",enum:["output","input","bidirectional"]},filter:{type:"object",properties:{module:{type:"string"},aliasReEx:{type:"string"}},required:["module","aliasReEx"],additionalProperties:!1},behaviour:{type:"string",enum:["LOCK_UNLOCK","ALWAYS_LOCKED","SINGLE_PIN_MUX","OPTIONAL_PIN_MUX","PPS","PORTMUX","EXCLUSIVE_LOCK","LOCKED_DISABLED"]},behaviourMeta:{type:"object",properties:{lockPinRegEx:{type:"string"}},required:["lockPinRegEx"],additionalProperties:!1},pin_attribs:{type:"object",properties:{aliasReEx:{type:"string"},cname:{type:"string"},high:{type:"boolean"},inv:{type:"boolean"},wpu:{type:"boolean"},wpd:{type:"boolean"},od:{type:"boolean"},analog:{type:"boolean"},ioc:{$ref:"#/definitions/pin_interrupts_enum"},bidirection_out:{type:"boolean"}},required:["aliasReEx"],additionalProperties:!1},pin_interrupts_enum:{type:"string",enum:["INTDIS_BUFFEN","BOTH_EDGES","RISING_EDGE","FALLING_EDGE","NONE","LOW_LEVEL"]},pingroups_data:{type:"object",properties:{groups:{type:"array",items:{$ref:"#/definitions/pins_group"}}},required:["groups"],additionalProperties:!1},pins_group:{type:"object",properties:{name:{type:"string"},filter:{$ref:"#/definitions/grpfilter"},datapath:{type:"string"}},required:["name","filter"],additionalProperties:!1},grpfilter:{type:"object",properties:{aliasReEx:{type:"string"}},required:["aliasReEx"],additionalProperties:!1}}}},8898:function(e,t){"use strict";var n,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertTypes=void 0,t.hasOptions=function(e){return void 0!==e.options},t.isAssigned=function(e){return"undefined"!==typeof e.handle},t.isUnassigned=function(e){return"undefined"===typeof e.handle},t.isSingleton=function(e){return"undefined"!==typeof e.isSingleton&&e.isSingleton},t.filterOptions=function(e,t){if(e.options)return i(i({},e),{options:e.options.filter(t)});return e},t.mapOptionLabels=function(e,t){if(e.options)return i(i({},e),{options:e.options.map(function(e){return i(i({},e),{handle:i(i({},e.handle),{label:t(e)})})})});return e},function(e){e.Error="error",e.Warning="warning",e.Hint="hint"}(n||(t.AlertTypes=n={}))},9006:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9408);t.buildSimpleApi=i.buildSimpleApi;var r=n(7695);t.getInterfaceName=r.getInterfaceName,t.getInterfaceVersion=r.getInterfaceVersion},9107:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7437),a=n(7572),l=n(2102),u=function(){function e(t){var n=this;this.modifiedSettings=[],this.withNumberValue=function(e,t){if(void 0===e)throw new Error("Cannot assign number value to setting, setting is undefined.");if(!n.getSetting(e))throw new Error("Setting ".concat(e.alias," is not present in Register ").concat(n.register.name));return n.modifiedSettings=r(r([],n.modifiedSettings,!0),[new s(e,t)],!1),n},this.withOption=function(e,t){if(void 0===e)throw new Error("Cannot assign option to setting, setting is undefined.");if(!n.getSetting(e))throw new Error("Setting ".concat(e.alias," is not present in Register ").concat(n.register.name));if(!t||!n.getOption(e,t))throw new Error("Option ".concat(null===t||void 0===t?void 0:t.name," is not present in Setting ").concat(e.name));return n.modifiedSettings=r(r([],n.modifiedSettings,!0),[new c(e,t)],!1),n},this.withOptionAlias=function(e,t){if(void 0===e)throw new Error("Cannot assign option alias to setting, setting is undefined.");var i=(0,o.getOptionByAlias)(t,e);if(void 0===i)throw new Error('Option Alias: "'.concat(t,'" not present in Setting: "').concat(e.name,'".'));return n.withOption(e,i)},this.withOptionName=function(e,t){if(void 0===e)throw new Error("Cannot assign option name to setting, setting is undefined.");var i=(0,o.getOptionByName)(t,e);if(void 0===i)throw new Error('Option Name: "'.concat(t,'" not present in Setting: "').concat(e.name,'".'));return n.withOption(e,i)},this.withOptionDescription=function(e,t){if(void 0===e)throw new Error("Cannot assign option description to setting, setting is undefined.");var i=(0,o.getOptionByDescription)(t,e);if(void 0===i)throw new Error('Option Description: "'.concat(t,'" not present in Setting: "').concat(e.name,'".'));return n.withOption(e,i)},this.getSetting=function(e){return(0,a.getSettingByAlias)(e.alias,n.register)},this.getOption=function(e,t){return(null===t||void 0===t?void 0:t.name)?(0,o.getOptionByName)(t.name,e):void 0},this.calculate=function(){var e=0;return n.modifiedSettings.forEach(function(t){e=n.setValue(t,e)}),n.getUnmodifiedSettings().forEach(function(t){e=n.setValue(d.defaultValue(t),e)}),Number(e)},this.setValue=function(e,t){var n=t;return n&=~e.getMask(),(n|=e.getShiftedValue())>>>0},this.getUnmodifiedSettings=function(){var e,t,i=(0,l.map)(n.modifiedSettings,function(e){return e.getName()});return(0,l.filter)(null!==(t=(0,l.values)(null!==(e=n.register.settings)&&void 0!==e?e:{}))&&void 0!==t?t:[],function(e){return i.indexOf(e.name)<0})},this.asHexString=function(){return e.toHexString(n.calculate())},this.asBinaryString=function(){return e.toBinaryString(n.calculate())},this.asDecimalString=function(){return e.toDecimalString(n.calculate())},this.asNumber=function(){return n.calculate()},this.register=t}return e.for=function(t){return new e(t)},e.toHexString=function(e){if(null==e)throw new Error("CalculateRegisterValue.toHexString() illegal argument exception. Value must not be null.");return"0x"+e.toString(16)},e.toBinaryString=function(e){if(null==e)throw new Error("CalculateRegisterValue.toBinaryString() illegal argument exception. Value must not be null.");return"0b"+e.toString(2)},e.toDecimalString=function(e){if(null==e)throw new Error("CalculateRegisterValue.toDecimalString() illegal argument exception. Value must not be null.");return e.toString()},e}();t.default=u;var d=function(){function e(e){var t=this;this.getMask=function(){return Number(t.setting.mask)},this.getShift=function(){for(var e=t.getMask(),n=0;!(1&e);)e>>=1,n++;return n},this.getShiftedValue=function(){return t.getValue()<<t.getShift()},this.getName=function(){return t.setting.name},this.setting=e}return e.defaultValue=function(e){var t=Number(e.porDefault);return new s(e,t)},e}(),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.getValue=function(){return i.value},i.value=n,i}return i(t,e),t}(d),c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.getValue=function(){return Number(i.option.value)},i.option=n,i}return i(t,e),t.fromDefaultValue=function(e,n){var i=(0,o.getOptionByName)(n,e);if(i)return new t(e,i);var r=(0,o.getOptionByAlias)(n,e);if(r)return new t(e,r);throw new Error("Unable to create default value '".concat(n,"' for setting '").concat(e.name,"'."))},t}(d)},9408:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildSimpleApi=function(e){var t={};for(var i in e)t[i]=n(e[i]);return t};var n=function(e){return e.returns+" "+e.name+"("+i(e.arguments)+")"},i=function(e){return e?e.map(function(e){return e.type+" "+e.name}).join(", "):"void"}},9581:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAutoSdlHelp=void 0;t.getAutoSdlHelp=function(e,t,n){var i,r,o,a,l,u,d,s,c,v,p,f,g,m,h,y,b=e.getImportValue("device_meta"),I=null!==(i=null===b||void 0===b?void 0:b.deviceName)&&void 0!==i?i:"",_=null!==(a=null===(o=null===(r=e.getHardware())||void 0===r?void 0:r.getPeripheral())||void 0===o?void 0:o.group)&&void 0!==a?a:"",w=null!==(d=null===(u=null===(l=e.getHardware())||void 0===l?void 0:l.getPeripheral())||void 0===u?void 0:u.dosid)&&void 0!==d?d:"",S=null!==(c=null===(s=e.getComponent(t))||void 0===s?void 0:s.component)&&void 0!==c?c:"",D=null!==(p=null===(v=null===S||void 0===S?void 0:S.setting)||void 0===v?void 0:v.toLowerCase())&&void 0!==p?p:"",C=t.toLowerCase().replace(D,""),E=null!==(f=null===C||void 0===C?void 0:C.toUpperCase())&&void 0!==f?f:"",A=null!==(y=null===(h=null===(m=null===(g=e.getPeripheralDescription())||void 0===g?void 0:g.registers)||void 0===m?void 0:m[E])||void 0===h?void 0:h.name)&&void 0!==y?y:"",O=E==A?E:A;return n.replace("${deviceName}",null!==I&&void 0!==I?I:"").replace("${registerName}",null!==O&&void 0!==O?O:"").replace("${moduleName}",null!==_&&void 0!==_?_:"").replace("${dosId}",null!==w&&void 0!==w?w:"")}},9696:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPrototypeImports=void 0;var r=n(6074),o=n(2102);t.createPrototypeImports=function(e,t,n){var l,u,d,s={};return(n=null===(l=t.getModuleConfig)||void 0===l?void 0:l.call(t))?((null===n||void 0===n?void 0:n.peripherals)&&n.peripherals.forEach(function(e){var t,o=a(e.interfaceId.name),l=(0,r.createPrototypeImport)(o,n);l&&(s=i(i({},s),((t={})[o]=i(i({},l),{isRequired:!0}),t)))}),null===(d=(0,o.getKeys)(null!==(u=null===n||void 0===n?void 0:n.imports)&&void 0!==u?u:{}))||void 0===d||d.forEach(function(r){var o,a,l,u,d,c,v,p=null===(l=null===n||void 0===n?void 0:n.imports)||void 0===l?void 0:l[r],f=null===(u=null===t||void 0===t?void 0:t.getCreatorImportArgs)||void 0===u?void 0:u.call(t,r,e),g=null!==(c=null===(d=t.updateImportWithShouldAssignDescOrder)||void 0===d?void 0:d.call(t,r))&&void 0!==c?c:null===p||void 0===p?void 0:p.import.shouldAssignDescendantsInOrder;p&&(0!=(null===(v=null===t||void 0===t?void 0:t.shouldImport)||void 0===v?void 0:v.call(t,r,e))&&(s=i(i({},s),((o={})[r]=i(i({},p.import),{args:f}),o))),g&&g.length>0&&(s=i(i({},s),((a={})[r]=i(i({},p.import),{args:f,shouldAssignDescendantsInOrder:g}),a))))}),s):s};var a=function(e){return e=e.replace(/ /g,"").replace(/-/g,"_")}},9809:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TABID=t.COMPTYPE=void 0,function(e){e.SOFTWARE="SW",e.REGISTER="REG",e.INTERRUPT="INT",e.SETTING="SET"}(n||(t.COMPTYPE=n={})),function(e){e.MAIN="main",e.REGISTER="register"}(i||(t.TABID=i={}))},9943:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigData=void 0;var r=n(5056);t.getConfigData=function(e,t){var n,i,r=null===(i=null===e||void 0===e?void 0:(n=e.getDerivedData()).getModuleConfig)||void 0===i?void 0:i.call(n);return r=t?o.for(r).withDynamicConfigData(e).withDynamicComponents(e).build():o.for(r).build()};var o=function(){function e(t){var n=this;this.build=function(){return n.config},this.withDynamicConfigData=function(t){var i;return new e(null!==(i=null===t||void 0===t?void 0:t.getDerivedFunction("getDynamicConfigData",n.config))&&void 0!==i?i:n.config)},this.withDynamicComponents=function(t){var o,a,l=null===(a=null===t||void 0===t?void 0:(o=t.getDerivedFunctions()).getDynamicComponents)||void 0===a?void 0:a.call(o);if(l){var u=(0,r.toDictionary)(l,function(e){var t;return n.config.UIGroups[e.group]=null!==(t=n.config.UIGroups[e.group])&&void 0!==t?t:e.group,e.name},function(e){return e});n.config.softwareData=i(i({},n.config.softwareData),u)}return new e(n.config)},this.config=t}return e.for=function(t){if(!t)throw console.error("Cannot find ModuleConfig");return new e(t)},e}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var i={};!function(){"use strict";n.r(i),n.d(i,{process:function(){return S}});var e=n(629),t=n(2645);function r(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r,a=!0,l=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw r}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"dataModel",void 0),a(this,"getGeneratableItems",function(){return n.getFlashGeneratableItems()}),a(this,"getFlashGeneratableItems",function(){var e,t,i,r,o,a,l,s,c,v,p,g,m,y,b,I,_,w,S,D,C,E,A=h(n.dataModel);if(A){var O=A.getInterruptDrivenStatus(),P={generatePLIBVersion:!0,PLIBVersion:"1.0.4",disclaimer:"/*disclaimer*/",generateInterfaceContent:A.enableInterfaceDefinitionGeneration(),moduleNameUpperCase:n.dataModel.getName().toLocaleUpperCase(),moduleNameLowerCase:n.dataModel.getName().toLocaleLowerCase(),generateBlockingAPI:A.getBlockingAPIGenerationStatus(),generateNonBlockingAPI:A.getNonBlockingAPIGenerationStatus(),interruptDriven:O,interfaceApi:A.basic_flash_payload(),properties:A.getProperties(),flashWordWriteSizeInInstructions:A.getFlashWordWriteSizeInInstructions(),flashInstructionType:f,flashWriteInstructionCount:String(A.getFlashWriteInstructionCount()).replace(/,/g,""),flashInterface:A.getFlashInterface(),flashEraseInstructionCount:String(A.getFlashEraseInstructionCount()).replace(/,/g,""),flashHasAuxiliary:A.getFlashHasAuxiliary(),flashEnduranceMinimum:A.getFlashEnduranceMinimum(),flashBytesPerInstruction:A.getFlashBytesPerInstruction(),flashPcUnitsPerInstruction:A.getFlashPcUnitsPerInstruction(),flashWordWriteOpCode:A.getFlashWordWriteOpCodeHexString(),flashRowWriteOpcode:A.getFlashWriteRowOpCodeHexString(),flashOpCodeMask:A.getFlashOpCodeMaskHexString(),flashErasePageSizeInInstructions:String(A.getFlashErasePageSizeInInstructions()).replace(/,/g,""),flashPageEraseOpcode:A.getFlashErasePageOpCodeHexString(),flashHasEcc:A.getFlashHasEcc(),flashHasRowProgramming:A.getFlashHasRowProgramming(),flashWriteRowSizeInInstructions:String(A.getFlashWriteRowSizeInInstructions()).replace(/,/g,""),flashEndAddress:A.getFlashEndAddressHexString(),flashProgramBeginAddress:A.getFlashProgramBeginAddressHexString(),flashUnlockKey:A.getFlashUnlockKey(),doxyDriverGroupName:"Flash Driver"},M=null===(e=n.dataModel.getHardware())||void 0===e?void 0:e.getPeripheral().interrupts;if(void 0!=M){var N=M.NVMI;if(O){var R,F,V,T,H=u(n.dataModel);P.flashInterruptEnable=null!==(R=null===N||void 0===N?void 0:N.enable)&&void 0!==R?R:"",P.flashInterruptFlag=null!==(F=null===N||void 0===N?void 0:N.flag)&&void 0!==F?F:"",P.flashIsrHandlerName=null!==(V=null===N||void 0===N?void 0:N.handlerName)&&void 0!==V?V:"",P.isFlashContextSupported=d(H,null!==(T=null===N||void 0===N?void 0:N.name)&&void 0!==T?T:"")}}return P.nvmControlRegister=null===(t=n.dataModel)||void 0===t||null===(i=t.getRegisters())||void 0===i||null===(r=i.NVMCON)||void 0===r?void 0:r.name,P.nvmAddressRegister=null===(o=n.dataModel)||void 0===o||null===(a=o.getRegisters())||void 0===a||null===(l=a.NVMADR)||void 0===l?void 0:l.name,P.nvmDataRegister0=null===(s=n.dataModel)||void 0===s||null===(c=s.getRegisters())||void 0===c||null===(v=c.NVMDATA0)||void 0===v?void 0:v.name,P.nvmDataRegister1=null===(p=n.dataModel)||void 0===p||null===(g=p.getRegisters())||void 0===g||null===(m=g.NVMDATA1)||void 0===m?void 0:m.name,P.nvmDataRegister2=null===(y=n.dataModel)||void 0===y||null===(b=y.getRegisters())||void 0===b||null===(I=b.NVMDATA2)||void 0===I?void 0:I.name,P.nvmDataRegister3=null===(_=n.dataModel)||void 0===_||null===(w=_.getRegisters())||void 0===w||null===(S=w.NVMDATA3)||void 0===S?void 0:S.name,P.nvmSrcAddressRegister=null===(D=n.dataModel)||void 0===D||null===(C=D.getRegisters())||void 0===C||null===(E=C.NVMSRCADR)||void 0===E?void 0:E.name,P}}),this.dataModel=t},u=function(e){var t=e.getImportValue("interrupt_service"),n=[];return t&&(null===t||void 0===t?void 0:t.contextEnabledInterruptList)&&(n=t.contextEnabledInterruptList),n},d=function(e,t){var n,i=!1,o=r(e);try{for(o.s();!(n=o.n()).done;){if(n.value===t){i=!0;break}}}catch(a){o.e(a)}finally{o.f()}return i},s=n(7557),c=n.n(s);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f="uint32_t",g="flashWriteInstructionCount",m="generateAPI",h=function(e){return e?new b(e):new y},y=function e(){v(this,e),p(this,"getMyFunctions",function(){return{}}),p(this,"getModel",function(){})},b=function e(n){var i=this;v(this,e),p(this,"dataModel",void 0),p(this,"getMyFunctions",function(){return{exportApi:i.getMyExportApi,templateData:i.getMyTemplateData,alerts:i.getMyAlerts,blockingAPIGenerate:i.getBlockingAPIGenerationStatus,nonBlockingAPIGenerate:i.getNonBlockingAPIGenerationStatus,overrideOptions:i.overrideOptions,overrideDefaultValues:i.overrideDefaultValue,"flash-interface_payload":i.basic_flash_payload,importName:i.friendlyImportName,exportName:i.friendlyExportName,isInterfaceUsed:i.isFlashInterfaceUsed,enableInterfaceDefinitionGeneration:i.enableInterfaceDefinitionGeneration,interrupt_service_results:i.getFlashInterruptData,system_16bit_initializer_results:i.system_16bit_initializer_results,config_16bit_interface_args:i.getConfigBitArgs,config_16bit_interface_results:i.getConfigBitArgs,calculatedFunction:i.calculatedFunction}}),p(this,"getMyExportApi",function(e){if(e.name===t.K.getInterfaceId().name&&e.version===t.K.getInterfaceId().version){var n=t.K.createFirmwareApi("FLASH");return{api:n.api,headerFiles:n.headerFiles}}}),p(this,"getMyTemplateData",function(){return function(e){if(e)return new l(e)}(i.dataModel).getGeneratableItems()}),p(this,"getMyProcessedArgValue",function(e,n){var r;return n.some(function(n){if(n.interface===t.K.getInterfaceId().name&&void 0!=(r=i.basic_flash_args(e,n)))return!0}),r}),p(this,"overrideOptions",function(e){return e===g?[String(i.getFlashWordWriteSizeInInstructions()),String(i.getFlashWriteRowSizeInInstructions())]:[]}),p(this,"overrideDefaultValue",function(e){var t;if(e===g)t=String(i.getFlashWordWriteSizeInInstructions());return t}),p(this,"friendlyImportName",function(e){var t;switch(e){case"nvm_ctrl_32bit_v1":t="Flash Hardware";break;case"system_16bit_initializer":t="System Initializer";break;case"config_16bit_interface":t="Configuration Bits";break;default:t=e}return t}),p(this,"friendlyExportName",function(e){var t=e;return"flash"===e&&(t="Flash"),t}),p(this,"getActiveName",function(){return"Flash PLIB"}),p(this,"isFlashInterfaceUsed",function(){var e,n,r=i.dataModel.getExportInterfaces().getInterfaceData(),o=c()(r,function(e){return e.interface===t.K.getInterfaceId().name}),a=null===(e=i.dataModel)||void 0===e||null===(n=e.getExportInterfaces().getInterface("flash_interface",t.K.getInterfaceId()))||void 0===n?void 0:n.results;return!(!o&&!a)}),p(this,"getModuleNameForInterrupt",function(){var e,t;return null!==(e=null===(t=i.getFlashHardwareData())||void 0===t?void 0:t.name.toLocaleUpperCase())&&void 0!==e?e:"FLASH"}),p(this,"getInterruptData",function(e){var t=[],n=i.isInterruptMode();return e.forEach(function(e){var r,o,a,l,u,d;t.push({interruptName:null!==(r=null===(o=i.dataModel)||void 0===o||null===(a=o.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.interrupts)||void 0===u||null===(d=u[e])||void 0===d?void 0:d.name)&&void 0!==r?r:"",isEnabled:n})}),t}),p(this,"getFlashHardwareData",function(){return i.getModel().getImportValue("nvm_ctrl_32bit_upb_v1")}),p(this,"basic_flash_args",function(e,t){var n;if(e===g)void 0!=t&&t.name===g&&(n={interface:t.interface,name:t.name,value:i.getFlashWriteInstructionCountToImpl(t.value),module:t.module});return n}),p(this,"getFlashWriteInstructionCountToImpl",function(e){if(void 0!=e){var t=e,n=i.getFlashWordWriteSizeInInstructions(),r=i.getFlashWriteRowSizeInInstructions();return e!=n&&e!=r&&(t=n),t}return 4}),p(this,"isGenerateNonBlockingAPI",function(){var e=!1,t=i.getFlashResults(m);return void 0!=t&&(e="Blocking"!=t),e}),p(this,"system_16bit_initializer_results",function(){return i.isFlashInterfaceUsed()&&i.getNonBlockingAPIGenerationStatus()&&i.getInterruptDrivenStatus()?{initializer:[{funcName:"FLASH_Initialize",header:{name:"flash_nonblocking.h",path:"../flash/"}}]}:{}}),p(this,"getExportArg",function(e){var n=i.dataModel.getExportInterfaces().getInterfaceData();return c()(n,function(n){return n.interface===t.K.getInterfaceId().name&&n.name===e})}),p(this,"getConfigBitArgs",function(){return{configBitByAliasFilter:["BTMODE"],configBitSet:{}}}),p(this,"getDualPartitionDetails",function(){if(i.getFlashHasDualPartition())return{flashFirstPartitionEndAddress:i.getFlashFirstPartitionEndAddress(),flashSecondPartitionBeginAddress:i.getFlashSecondPartitionStartAddress(),flashSecondPartitionProgramBeginAddress:i.getFlashSecondPartitionProgramStartAddress(),flashSecondPartitionEndAddress:i.getFlashSecondPartitionEndAddress()}}),p(this,"getMyAlerts",function(){return[]}),p(this,"calculatedFunction",function(){}),p(this,"basic_flash_payload",function(){var e=[];return e=i.getFlashHasDualPartition()&&i.getFlashDualPartitionEnabled()?[{name:"flash_nonblocking.h",path:"flash/"}]:t.K.createFirmwareApi(i.dataModel.getName()).headerFiles,{interfaceApi:t.K.createFirmwareApi(i.dataModel.getName(),e),flashWriteInstructionCount:i.getFlashWriteInstructionCount(),flashInterface:i.getFlashInterface(),flashWordWriteSizeInInstructions:i.getFlashWordWriteSizeInInstructions(),flashEraseInstructionCount:i.getFlashEraseInstructionCount(),flashHasAuxiliary:i.getFlashHasAuxiliary(),flashEnduranceMinimum:i.getFlashEnduranceMinimum(),flashBytesPerInstruction:i.getFlashBytesPerInstruction(),flashPcUnitsPerInstruction:i.getFlashPcUnitsPerInstruction(),flashWordWriteOpCode:i.getFlashWordWriteOpCode(),flashOpCodeMask:i.getFlashOpCodeMask(),flashErasePageSizeInInstructions:i.getFlashErasePageSizeInInstructions(),flashErasePageOpCode:i.getFlashErasePageOpCode(),flashHasEcc:i.getFlashHasEcc(),flashHasRowProgramming:i.getFlashHasRowProgramming(),flashWriteRowSizeInInstructions:i.getFlashWriteRowSizeInInstructions(),flashWriteRowOpCode:i.getFlashWriteRowOpCode(),flashEndAddress:i.getFlashEndAddress(),flashProgramBeginAddress:i.getFlashProgramBeginAddress(),flashUnlockKey:i.getFlashUnlockKey(),flashHasDualPartition:i.getFlashHasDualPartition(),flashBootMode:i.getFlashBootModeValue(),flashDualPartitionDetails:i.getDualPartitionDetails()}}),p(this,"getFlashInterface",function(){return"FLASH_UNIFIED_MEMORY_MAP_QUAD_WORD_v1.0"}),p(this,"enableInterfaceDefinitionGeneration",function(){var e,t,n=!1;return i.isFlashInterfaceUsed()&&(null===(e=i.dataModel)||void 0===e||null===(t=e.getImportValue("system_16bit_initializer"))||void 0===t?void 0:t.enableInterfaceDefinitionGeneration)&&(n=!0),n}),p(this,"getFlashInterruptData",function(){var e,t=[],n=null===(e=i.getFlashHardwareData())||void 0===e?void 0:e.interrupts;for(var r in n)t.push(r);return{moduleName:i.getModuleNameForInterrupt(),interruptData:i.getInterruptData(t)}}),p(this,"isInterruptMode",function(){return!!i.isFlashInterfaceUsed()&&i.getInterruptDrivenStatus()}),p(this,"getInterruptDrivenStatus",function(){var e=!1,t=i.getFlashResults("interruptDriven");return void 0!=t&&(e=t),e}),p(this,"getFlashWordWriteSizeInInstructions",function(){return i.getFlashWordWriteSizeInInstructionsValue(i.dataModel)}),p(this,"getFlashWordWriteSizeInInstructionsValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WORD_WRITE_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WORD_WRITE_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashEraseInstructionCount",function(){return i.getFlashEraseInstructionCountValue(i.dataModel)}),p(this,"getFlashEraseInstructionCountValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashHasAuxiliary",function(){return i.getFlashHasAuxiliaryValue(i.dataModel)}),p(this,"getFlashHasAuxiliaryValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_AUXILIARY)||void 0===r?void 0:r.value)&&(o="TRUE"==(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_HAS_AUXILIARY)||void 0===d?void 0:d.value)?1:0);return o}),p(this,"getFlashEnduranceMinimum",function(){return i.getFlashEnduranceMinimumValue(i.dataModel)}),p(this,"getFlashEnduranceMinimumValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ENDURANCE_MINIMUM)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ENDURANCE_MINIMUM)||void 0===d?void 0:d.value));return o}),p(this,"getFlashBytesPerInstruction",function(){return i.getFlashBytesPerInstructionValue(i.dataModel)}),p(this,"getFlashBytesPerInstructionValue",function(e){var t,n,i,r,o,a,l,u,d=4;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_BYTES_PER_INSTRUCTION)||void 0===r?void 0:r.value)&&(d=Number(null===(o=e.getHardware())||void 0===o||null===(a=o.getPeripheral())||void 0===a||null===(l=a.properties)||void 0===l||null===(u=l.FLASH_BYTES_PER_INSTRUCTION)||void 0===u?void 0:u.value));return d}),p(this,"getFlashPcUnitsPerInstruction",function(){return i.getFlashPcUnitsPerInstructionValue(i.dataModel)}),p(this,"getFlashPcUnitsPerInstructionValue",function(e){var t,n,i,r,o,a,l,u,d=1;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_PC_UNITS_PER_INSTRUCTION)||void 0===r?void 0:r.value)&&(d=Number(null===(o=e.getHardware())||void 0===o||null===(a=o.getPeripheral())||void 0===a||null===(l=a.properties)||void 0===l||null===(u=l.FLASH_PC_UNITS_PER_INSTRUCTION)||void 0===u?void 0:u.value));return d}),p(this,"getFlashWordWriteOpCode",function(){return i.getFlashWordWriteOpCodeValue(i.dataModel)}),p(this,"getFlashWordWriteOpCodeValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WORD_WRITE_OP_CODE)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WORD_WRITE_OP_CODE)||void 0===d?void 0:d.value));return o}),p(this,"getFlashOpCodeMask",function(){return i.getFlashOpCodeMaskValue(i.dataModel)}),p(this,"getFlashOpCodeMaskValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_OP_CODE_MASK)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_OP_CODE_MASK)||void 0===d?void 0:d.value));return o}),p(this,"getFlashErasePageSizeInInstructions",function(){return i.getFlashErasePageSizeInInstructionsValue(i.dataModel)}),p(this,"getFlashErasePageSizeInInstructionsValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashErasePageOpCode",function(){return i.getFlashErasePageOpCodeValue(i.dataModel)}),p(this,"getFlashErasePageOpCodeValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ERASE_PAGE_OP_CODE)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ERASE_PAGE_OP_CODE)||void 0===d?void 0:d.value));return o}),p(this,"getFlashHasEcc",function(){return i.getFlashHasEccValue(i.dataModel)}),p(this,"getFlashHasEccValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_ECC)||void 0===r?void 0:r.value)&&(o="TRUE"==(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_HAS_ECC)||void 0===d?void 0:d.value)?1:0);return o}),p(this,"getFlashHasRowProgramming",function(){return i.getFlashHasRowProgrammingValue(i.dataModel)}),p(this,"getFlashHasRowProgrammingValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_ROW_PROGRAMMING)||void 0===r?void 0:r.value)&&(o="TRUE"==(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_HAS_ROW_PROGRAMMING)||void 0===d?void 0:d.value)?1:0);return o}),p(this,"getFlashWriteRowSizeInInstructions",function(){return i.getFlashWriteRowSizeInInstructionsValue(i.dataModel)}),p(this,"getFlashWriteRowSizeInInstructionsValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WRITE_ROW_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WRITE_ROW_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashWriteRowOpCode",function(){return i.getFlashWriteRowOpCodeValue(i.dataModel)}),p(this,"getFlashWriteRowOpCodeValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WRITE_ROW_OP_CODE)||void 0===r?void 0:r.value)&&(o=Number(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WRITE_ROW_OP_CODE)||void 0===d?void 0:d.value));return o}),p(this,"getFlashEndAddress",function(){return i.getFlashEndAddressValue(i.dataModel)}),p(this,"getFlashEndAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_END_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_END_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashProgramBeginAddress",function(){return i.getFlashProgramBeginAddressValue(i.dataModel)}),p(this,"getFlashProgramBeginAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.PROGRAM_BEGIN_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.PROGRAM_BEGIN_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashUnlockKey",function(){return"0x00AA0055"}),p(this,"getFlashHasDualPartition",function(){return i.getHasDualPartitionValue(i.dataModel)}),p(this,"getHasDualPartitionValue",function(e){var t,n,i,r,o,a=null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_DUAL_PARTITION)||void 0===r?void 0:r.value;return void 0!=a&&(o="TRUE"==a),o}),p(this,"getFlashBootModeValue",function(){var e,t=i.dataModel.getImportValue("config_16bit_interface");return void 0!=t&&(e=t.configBitSettingValueAliasMap.BTMODE),e}),p(this,"getFlashFirstPartitionEndAddress",function(){return i.getFlashFirstPartitionEndAddressValue(i.dataModel)}),p(this,"getFlashFirstPartitionEndAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_FIRST_PARTITION_END_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_FIRST_PARTITION_END_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashSecondPartitionStartAddress",function(){return i.getFlashSecondPartitionStartAddressValue(i.getModel())}),p(this,"getFlashSecondPartitionStartAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_SECOND_PARTITION_START_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_SECOND_PARTITION_START_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashSecondPartitionProgramStartAddress",function(){return i.getFlashSecondPartitionProgramStartAddressValue(i.getModel())}),p(this,"getFlashSecondPartitionProgramStartAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_SECOND_PARTITION_PROGRAM_START_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_SECOND_PARTITION_PROGRAM_START_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashSecondPartitionEndAddress",function(){return i.getFlashSecondPartitionEndAddressValue(i.getModel())}),p(this,"getFlashSecondPartitionEndAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_SECOND_PARTITION_END_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_SECOND_PARTITION_END_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashDualPartitionEnabled",function(){return i.getDualPartitionEnabledValue(i.dataModel)}),p(this,"getDualPartitionEnabledValue",function(e){var t=!1,n=i.getFlashBootModeValue();return void 0!=n&&"SINGLE"!=n&&(t=!0),t}),p(this,"getFlashWriteInstructionCount",function(){var e=i.basic_flash_args(g,i.getExportArg(g));return Number(void 0!=e?e.value:i.getFlashWordWriteSizeInInstructions())}),p(this,"getBlockingAPIGenerationStatus",function(){var e=!0,t=i.getFlashResults(m);return void 0!=t&&(e="Non-Blocking"!=t),e}),p(this,"getNonBlockingAPIGenerationStatus",function(){var e=i.isGenerateNonBlockingAPI();return e&&void 0==i.getFlashHasDualPartition()&&(e=!1),e}),p(this,"getFlashResults",function(e){var n,r,o,a=null===(n=i.dataModel)||void 0===n||null===(r=n.getExportInterfaces().getInterface("flash_interface",t.K.getInterfaceId()))||void 0===r?void 0:r.results;if(void 0!=a)for(var l in a){var u;o=null===(u=a[l])||void 0===u?void 0:u[e]}return o}),p(this,"getProperties",function(){return i.getPropertiesValue(i.dataModel)}),p(this,"getPropertiesValue",function(e){var t,n;if(void 0!=(null===e||void 0===e?void 0:e.getHardware()))return null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n?void 0:n.properties}),p(this,"getFlashWordWriteOpCodeHexString",function(){var e=i.getFlashWordWriteOpCode();return i.getHexaDecimalString(e)}),p(this,"getFlashOpCodeMaskHexString",function(){var e=i.getFlashOpCodeMask();return i.getHexaDecimalString(e)}),p(this,"getFlashErasePageOpCodeHexString",function(){var e=i.getFlashErasePageOpCode();return i.getHexaDecimalString(e)}),p(this,"getFlashWriteRowOpCodeHexString",function(){var e=i.getFlashWriteRowOpCode();return i.getHexaDecimalString(e)}),p(this,"getFlashEndAddressHexString",function(){var e=i.getFlashEndAddress();return i.getHexaDecimalString(e)}),p(this,"getFlashProgramBeginAddressHexString",function(){var e=i.getFlashProgramBeginAddress();return i.getHexaDecimalString(e)}),p(this,"getHexaDecimalString",function(e){return void 0!=e?"0x"+e.toString(16):"0x"+(e=0).toString(16)}),p(this,"getModel",function(){return i.dataModel}),this.dataModel=n},I=function(){try{return n(4139)}catch(e){return}};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(t){return function(n,i){return(0,e.eh)(n,i,function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({getModuleConfig:I},t(e))})}}(function(e){return e?new b(e):new y})}(),processor=i}();
1
+ var processor;!function(){var e={236:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createFormData=function(e,t,n){var d,s={};if(t){var c=n.getAutoModuleAppModel().getAllComponents();null===(d=(0,o.values)(c))||void 0===d||d.forEach(function(o){var d;if(t){var c=o.component,v=n.getComponentValue(c.name),p=new RegExp("[en,dis]abled?");if("boolean"===c.type&&v&&"string"===typeof v)if(p.test(v.toLowerCase())&&"string"===typeof t.booleanValues.true){var f=t.booleanValues.true;v="enable"===f.toLowerCase()?v.toLowerCase().startsWith(f.toLowerCase()):f.toLowerCase().startsWith(v.toLowerCase())}else"true"===v?v=!0:"false"===v&&(v=!1);"DescriptionOnly"===c.type&&(v=null),(0,a.isInvalidTab)(c.tabs,e)||("table"===c.category&&(v=(0,r.getTableFormData)(n,c,e)),"file_load"===c.category&&(v=""),"time"===c.type&&(v=(0,l.getTimeComponentFormData)(n,c,e)),"frequency"===c.type&&(v=(0,u.getFreqCompFormData)(n,c,e)),"file_save"===c.category&&(v=""),s[c.group]=i(i({},s[c.group]),((d={})[c.name]=v,d)))}})}return s};var r=n(3226),o=n(5056),a=n(313),l=n(1573),u=n(2980)},313:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createSchema=function(e,t,n){var r,p,f,g,m,h,y,b={};if(t){var I=(0,s.shouldPopulateView)(n.viewModel.derivedFunctions,n.viewModel.imports,n.viewModel.getAssignedImport,t);b={description:null!==(f=null===(p=(r=n.viewModel).getModuleDescription)||void 0===p?void 0:p.call(r))&&void 0!==f?f:(0,l.getModuleDefaultDescription)(),title:t.moduleName,type:"object",properties:{}};var _={properties:{}};null===(m=(0,a.values)(null!==(g=n.viewModel.components)&&void 0!==g?g:{}))||void 0===m||m.forEach(function(r){var a,p,f,g,m,h=r.component;!I&&"import"!=h.category||c(h.tabs,e)||(_[h.group]||(_[h.group]={title:null!==(f=null===(p=null===(a=n.viewModel.derivedFunctions)||void 0===a?void 0:a.overrideGroupTitle)||void 0===p?void 0:p.call(a,h.group))&&void 0!==f?f:null===t||void 0===t?void 0:t.UIGroups[h.group],description:null===(m=null===(g=n.viewModel.derivedFunctions)||void 0===g?void 0:g.overrideGroupDescription)||void 0===m?void 0:m.call(g,h.group),type:"object",properties:{}}),_[h.group].properties=i(i({},_[h.group].properties),function(e,t,n){var r,a={};if(c(e.tabs,t)||n.model&&(0,s.isComponentInvisible)(e,n.model))return a;if(a=function(e,t){if("software"===e.category)return function(e,t){var n,r,o,a,c,v,p,f,g={};"ComboBox"===e.type?g={type:"string",title:null!==(r=null===(n=null===t||void 0===t?void 0:t.overrideTitle)||void 0===n?void 0:n.call(t,e.name))&&void 0!==r?r:e.description,default:(0,l.getDefaultValue)(null===t||void 0===t?void 0:t.overrideDefaultValues,e),enum:(0,l.getComboOptions)(null===t||void 0===t?void 0:t.overrideOptions,e)}:"hex"===e.type?g={type:"integer",title:null!==(a=null===(o=null===t||void 0===t?void 0:t.overrideTitle)||void 0===o?void 0:o.call(t,e.name))&&void 0!==a?a:e.description,format:"hex",default:(0,l.getDefaultValue)(null===t||void 0===t?void 0:t.overrideDefaultValues,e)}:"DescriptionOnly"===e.type?g={type:"null",title:null!==(v=null===(c=null===t||void 0===t?void 0:t.overrideTitle)||void 0===c?void 0:c.call(t,e.name))&&void 0!==v?v:e.description}:"time"===e.type?g=(0,u.getTimeComponentSchema)(e,t):"frequency"===e.type?g=(0,d.getFreqCompSchema)(e,t):(g={type:e.type,title:null!==(f=null===(p=null===t||void 0===t?void 0:t.overrideTitle)||void 0===p?void 0:p.call(t,e.name))&&void 0!==f?f:e.description},(0,s.isUrl)(e)&&e.urlDescription&&(g=i(i({},g),{description:e.urlDescription})),(0,s.isImage)(e)&&e.imageDescription&&(g=i(i({},g),{description:e.imageDescription})));return g}(e,t.viewModel.derivedFunctions);if("hardware"===e.category)return function(e,t){var n,i,r,o,a,u,d,s,c,v,p={},f=t.model;if(f&&void 0!==f.getComponentValue(e.name)&&"register"!==e.type)if("ComboBox"===e.type){var g=(0,l.getSettingFromComponent)(f,e);p={type:"string",title:null!==(r=null===(i=null===(n=t.viewModel.derivedFunctions)||void 0===n?void 0:n.overrideTitle)||void 0===i?void 0:i.call(n,e.name))&&void 0!==r?r:e.description,default:(0,l.getSettingDefaultIfPresent)(e,g,null===(a=(o=f.getDerivedFunctions()).overrideDefaultValues)||void 0===a?void 0:a.call(o,e.name)),enum:(0,l.getSettingOptionsIfPresent)(e,g,f.getComponentValue(null!==(d=null===(u=e.mode)||void 0===u?void 0:u.masterComponent)&&void 0!==d?d:""))}}else p={type:e.type,title:null!==(v=null===(c=null===(s=t.viewModel.derivedFunctions)||void 0===s?void 0:s.overrideTitle)||void 0===c?void 0:c.call(s,e.name))&&void 0!==v?v:e.description};return p}(e,t);if("import"===e.category)return v(e,t);if("file_load"===e.category)return function(e,t){var n,i,r,o={};t.model&&(o={type:"string",title:null!==(r=null===(i=(n=t.getDerivedFunction).overrideTitle)||void 0===i?void 0:i.call(n,e.name))&&void 0!==r?r:e.description});return o}(e,t);if("file_save"===e.category)return function(e,t){var n,i,r,o={};t.model&&(o={type:"string",title:null!==(r=null===(i=(n=t.getDerivedFunction).overrideTitle)||void 0===i?void 0:i.call(n,e.name))&&void 0!==r?r:e.description});return o}(e,t);if("table"===e.category)return(0,o.getTableComponentSchema)(e,t);return}(e,n),void 0==a)return a;(function(e,t){return e.validation&&t&&null!=(null===t||void 0===t?void 0:t[e.name+"Validator"])})(e,n.viewModel.derivedFunctions)&&(a=function(e,t,n){return i(i({},e),null===n||void 0===n?void 0:n[t.name+"Validator"]())}(a,e,n.viewModel.derivedFunctions));var p=e.name;return r={},r[p]=i({},a),a=r,a}(h,e,n)))}),null===(y=(0,a.getKeys)(null!==(h=t.UIGroups)&&void 0!==h?h:{}))||void 0===y||y.forEach(function(e){var t,n,i,r;(null!==(r=null===(i=(0,a.getKeys)(null!==(n=null===(t=_[e])||void 0===t?void 0:t.properties)&&void 0!==n?n:{}))||void 0===i?void 0:i.length)&&void 0!==r?r:-1)>0&&b.properties&&(b.properties[e]=_[e])})}return b},t.isInvalidTab=c,t.getDependencyComponentSchema=v;var o=n(3226),a=n(5056),l=n(5037),u=n(1573),d=n(2980),s=n(4579);function c(e,t){return-1==e.indexOf(t)}function v(e,t){var n,i,o,a,u,d,s,c,v,p,f={};if("hidden"!==(null===(n=e.uiBehavior)||void 0===n?void 0:n["ui:widget"])){if("ComboBox"===e.type&&t.model){var g=new l.DependencySelector(t.model,e);if(g.getDropdownOptionNames().length<=0)return f;var m=g.getDropdownOptionNames(),h=null===(o=null===(i=t.createProcessedImports)||void 0===i?void 0:i.call(t,"views"))||void 0===o?void 0:o[e.importId],y="None",b=y,I=t.model.getComponentValue(e.name);(null===h||void 0===h?void 0:h.handle)?(b=g.createOptionLabel(h.handle,h.payload),m.push(b)):I&&m.push(I),m=m.sort(function(e,t){return e.localeCompare(t)}),m=r([y],m.filter(function(e){return e!==y}),!0);var _=null===(d=null===(u=null===(a=null===t||void 0===t?void 0:t.viewModel)||void 0===a?void 0:a.derivedFunctions)||void 0===u?void 0:u.overrideOptions)||void 0===d?void 0:d.call(u,e.name);f={type:"string",title:null!==(p=null===(v=null===(c=null===(s=null===t||void 0===t?void 0:t.viewModel)||void 0===s?void 0:s.derivedFunctions)||void 0===c?void 0:c.overrideTitle)||void 0===v?void 0:v.call(c,e.name))&&void 0!==p?p:e.description,default:b,enum:void 0!==_?_.filter(function(e){return m.includes(e)}):m}}return f}}},629:function(e,t,n){"use strict";t.eh=void 0;var i=n(4757);Object.defineProperty(t,"eh",{enumerable:!0,get:function(){return i.process}});var r=n(4141)},874:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.logAnalytics=t.getAnalyticsDefault=void 0;var r=n(9943);t.getAnalyticsDefault=function(e){return(0,t.logAnalytics)(e,[],[])};t.logAnalytics=function(e,t,n){var a,l,d={},s=(0,r.getConfigData)(e,!0),c=null===(a=s.analytics)||void 0===a?void 0:a.logAlwaysComps.concat(null!==t&&void 0!==t?t:[]);d=o(e,s,c);var v=null===(l=s.analytics)||void 0===l?void 0:l.logOnChangeComps.concat(null!==n&&void 0!==n?n:[]),p=e.getState();return d=i(i({},d),u(s,e,p,v))};var o=function(e,t,n){for(var i,r,o,l={},u=0,d=null!==n&&void 0!==n?n:[];u<d.length;u++){var s=d[u],v=void 0,p=e.getAutoModuleAppModel().getAllComponents(),f=void 0,g=void 0;if("*"===s){for(var m in p)v=null===(o=t.analytics)||void 0===o?void 0:o.compMapping[m],f=p[m].component,c(f)&&(l[g=v||("hardware"===f.category?a(f):m)]="time"===f.type||"frequency"===f.type?JSON.stringify(e.getComponentValue(m)):e.getComponentValue(m));break}if(void 0!==(f=null===(i=p[s])||void 0===i?void 0:i.component)&&c(f)){g=(v=null===(r=t.analytics)||void 0===r?void 0:r.compMapping[s])||("hardware"===f.category?a(f):s);var h="time"===f.type||"frequency"===f.type?JSON.stringify(e.getComponentValue(s)):e.getComponentValue(s);void 0!==h&&(l[g]=h)}}return l},a=function(e){var t="hardware"===e.category?e.setting:"",n=l(e.name,t);return""===n?t:""===t?n:n+"_"+t},l=function(e,t){var n=e.toUpperCase(),i=t.toUpperCase();return n.replace(i,"")},u=function(e,t,n,i){var r,o;if(!i||0===i.length)return{};var l=d(i,t,e);for(var u in n)for(var s in n[u])for(var v in n[u][s])if(-1!==(null===i||void 0===i?void 0:i.indexOf(v))||-1!==(null===i||void 0===i?void 0:i.indexOf("*"))){var p=null===(r=e.analytics)||void 0===r?void 0:r.compMapping[v],f=null===(o=t.getAutoModuleAppModel().getAllComponents()[v])||void 0===o?void 0:o.component;if(void 0===f||!c(f))continue;l[p||("hardware"===f.category?a(f):v)]=n[u][s][v]}return l},d=function(e,t,n){for(var i,r,o,a={},l=t.getAutoModuleAppModel().getAllComponents(),u=function(e,t){for(var n,i,r=[],o=t.getAutoModuleAppModel().getAllComponents(),a=0,l=null!==e&&void 0!==e?e:[];a<l.length;a++){var u=l[a],d=null===(n=o[u])||void 0===n?void 0:n.component;if("*"!==u&&"import"===(null===d||void 0===d?void 0:d.category))r.push(u);else if("*"===u){for(var s in r=[],o)"import"===(null===(d=null===(i=o[s])||void 0===i?void 0:i.component)||void 0===d?void 0:d.category)&&r.push(d.name);break}}return r}(e,t),d=0,c=u;d<c.length;d++){var v=c[d],p=null!==(r=null===(i=n.analytics)||void 0===i?void 0:i.compMapping[v])&&void 0!==r?r:v,f=null===(o=l[v])||void 0===o?void 0:o.component;if("import"===(null===f||void 0===f?void 0:f.category)){var g=s(f,t);g&&(a[p]=g)}}return a},s=function(e,t){var n;return null===(n=t.getImports()[e.importId].handle)||void 0===n?void 0:n.label},c=function(e){return void 0!==e&&("hardware"===e.category||"software"===e.category||"import"===e.category||"table"===e.category)}},1378:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.UiSchemaBuilder=t.SchemaBuilder=t.ViewSchemaBuilder=void 0;var i=function(){function e(){this.schema={},this.uiSchema={},this.formData={},this.tabName="main",this.expandGroupsByDefault=!0}return e.prototype.withSchema=function(e){return this.schema=e,this},e.prototype.withUiSchema=function(e){return this.uiSchema=e,this},e.prototype.withFormData=function(e){return this.formData=e,this},e.prototype.withTabName=function(e){return this.tabName=e,this},e.prototype.withExpandedDefault=function(e){return this.expandGroupsByDefault=e,this},e.prototype.addChildComponent=function(e,t){var i,r,o;this.schema=n(n({},this.schema),{properties:n(n({},this.schema.properties),(i={},i[e]=t.schema,i))}),this.uiSchema=n(n({},this.uiSchema),((r={})[e]=t.uiSchema,r)),this.formData instanceof Object&&(this.formData=n(n({},this.formData),((o={})[e]=t.formData,o)))},e.prototype.build=function(){return{schema:this.schema,uiSchema:this.uiSchema,formData:this.formData,name:this.tabName,expandGroupsByDefault:this.expandGroupsByDefault}},e}();t.ViewSchemaBuilder=i;var r=function(){function e(e,t){this.title=t,this.type=e}return e.prototype.withProperties=function(e){return this.properties=e,this},e.prototype.withDefault=function(e){return this.default=e,this},e.prototype.withMaximum=function(e){return this.maximum=e,this},e.prototype.withMinimum=function(e){return this.minimum=e,this},e.prototype.withEnum=function(e){return this.enum=e,this},e.prototype.build=function(){return{type:this.type,title:this.title,properties:this.properties,default:this.default,maximum:this.maximum,minimum:this.minimum,enum:this.enum}},e}();t.SchemaBuilder=r;var o=function(){function e(){}return e.prototype.withReadonlyValue=function(e){return this.isReadOnly=e,this},e.prototype.withWidget=function(e){return this.widget=e,this},e.prototype.withOptions=function(e){return this.options=e,this},e.prototype.withUiHelp=function(e){return this.uiHelp=e,this},e.prototype.build=function(){return{"ui:readonly":this.isReadOnly,"ui:widget":this.widget,"ui:options":this.options,"ui:help":this.uiHelp}},e}();t.UiSchemaBuilder=o},1573:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeComponentFormData=void 0,t.isTimeComponentInState=i,t.isTimeValueInState=r,t.isTimeUnitInState=o,t.isTimeComponent=function(e){return"software"===e.category&&"time"===e.type},t.getTimeComponentSchema=function(e,t){var i,r,o={type:"object",$id:"timeComponent",title:null!==(r=null===(i=null===t||void 0===t?void 0:t.overrideTitle)||void 0===i?void 0:i.call(t,e.name))&&void 0!==r?r:e.description,properties:{value:{type:"number",default:e.defaultValue.value},unit:{type:"string",default:e.defaultValue.unit}}};e.timeMeta&&(e.timeMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:e.timeMeta.min.value},unit:{type:"string",default:e.timeMeta.min.unit}}}})})),e.timeMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:e.timeMeta.max.value},unit:{type:"string",default:e.timeMeta.max.unit}}}})})),e.timeMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:e.timeMeta.unitOptions}}})})));var a=t&&null!=t[e.name]?null===t||void 0===t?void 0:t[e.name]():void 0;a&&(a.description&&(o=n(n({},o),{title:a.description})),a.defaultValue&&(o=n(n({},o),{properties:n(n({},o.properties),{value:{type:"number",default:a.defaultValue.value},unit:{type:"string",default:a.defaultValue.unit}})})),a.timeMeta&&(a.timeMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:a.timeMeta.min.value},unit:{type:"string",default:a.timeMeta.min.unit}}}})})),a.timeMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:a.timeMeta.max.value},unit:{type:"string",default:a.timeMeta.max.unit}}}})})),a.timeMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:a.timeMeta.unitOptions}}})}))));return o};function i(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]}function r(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].value}function o(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].unit}t.getTimeComponentFormData=function(e,t,a){var l,u,d,s,c,v,p,f,g,m,h={value:t.defaultValue.value,unit:t.defaultValue.unit},y=e.getDerivedFunctions()&&null!=e.getDerivedFunctions()[t.name]?null===(l=e.getDerivedFunctions())||void 0===l?void 0:l[t.name]():void 0;if(y?(h=y.defaultValue?{value:y.defaultValue.value,unit:y.defaultValue.unit}:{value:t.defaultValue.value,unit:t.defaultValue.unit},y.timeMeta&&(h=y.timeMeta.min?n(n({},h),{min:{value:y.timeMeta.min.value,unit:y.timeMeta.min.unit}}):n(n({},h),{min:{value:null===(d=null===(u=t.timeMeta)||void 0===u?void 0:u.min)||void 0===d?void 0:d.value,unit:null===(c=null===(s=t.timeMeta)||void 0===s?void 0:s.min)||void 0===c?void 0:c.unit}}),h=y.timeMeta.max?n(n({},h),{max:{value:y.timeMeta.max.value,unit:y.timeMeta.max.unit}}):n(n({},h),{max:{value:null===(p=null===(v=t.timeMeta)||void 0===v?void 0:v.max)||void 0===p?void 0:p.value,unit:null===(g=null===(f=t.timeMeta)||void 0===f?void 0:f.max)||void 0===g?void 0:g.unit}}),h=y.timeMeta.unitOptions?n(n({},h),{options:y.timeMeta.unitOptions}):n(n({},h),{options:null===(m=t.timeMeta)||void 0===m?void 0:m.unitOptions}))):t.timeMeta?(h={value:t.defaultValue.value,unit:t.defaultValue.unit},t.timeMeta.min&&(h=n(n({},h),{min:{value:t.timeMeta.min.value,unit:t.timeMeta.min.unit}})),t.timeMeta.max&&(h=n(n({},h),{max:{value:t.timeMeta.max.value,unit:t.timeMeta.max.unit}})),t.timeMeta.unitOptions&&(h=n(n({},h),{options:t.timeMeta.unitOptions}))):h={value:t.defaultValue.value,unit:t.defaultValue.unit},i(e,t,a)){var b=e.getState(),I=b?b[a]:void 0;if(r(e,t,a)){var _=I[t.group][t.name].value;h=n(n({},h),{value:_})}if(o(e,t,a)){var w=I[t.group][t.name].unit;h=n(n({},h),{unit:w})}return h}return h}},2102:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.values=t.getKeys=t.find=t.filter=t.map=void 0;t.map=function(e,t){var n=[];return e.forEach(function(e,i){n[i]=t(e)}),n};t.filter=function(e,t){var n=[];return e.forEach(function(e){t(e)&&n.push(e)}),n};t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]};t.getKeys=function(e){if(e)return Object.getOwnPropertyNames(e)};t.values=function(e){var n;if(e)return null===(n=(0,t.getKeys)(e))||void 0===n?void 0:n.map(function(t){return e[t]})}},2189:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MyExportInterfaces=t.createExportInterfaces=void 0;var r=n(2102),o=n(9943);t.createExportInterfaces=function(e,t){return new a(e,t)};var a=function(){function e(e,t){var n=this;this.getConfig=function(){return n.config||(n.config=(0,o.getConfigData)(n.model)),n.config},this.getComponents=function(){return n.components||(n.components=n.createComponentList()),n.components},this.createProcessedExports=function(){var e,t,o=n.exports,a=n.getConfig();return a.exports&&(null===(t=(0,r.getKeys)(null!==(e=a.exports)&&void 0!==e?e:{}))||void 0===t||t.forEach(function(e){var t,r,l,u,d,s=null===(r=a.exports)||void 0===r?void 0:r[e];o=i(i({},o),((t={})[e]=i(i({},null===(l=a.exports)||void 0===l?void 0:l[e]),{interfaces:[],name:null!==(u=n.model.getDerivedFunction("exportName",e))&&void 0!==u?u:null===(d=o[e])||void 0===d?void 0:d.name}),t)),null===s||void 0===s||s.interfaces.forEach(function(t){var r,a,l,u,d=n.getInterface(e,t.interfaceId);d&&o[e].interfaces.push(i(i({},d),{payload:null!==(a=null===(r=n.model)||void 0===r?void 0:r.getDerivedFunction(t.interfaceId.name+"_payload"))&&void 0!==a?a:{},payloads:null!==(u=null===(l=n.model)||void 0===l?void 0:l.getDerivedFunction(t.interfaceId.name+"_payloads"))&&void 0!==u?u:{}}))})})),o},this.getInterfaceArgs=function(e,t){var i;return null===(i=n.getInterface(e,t))||void 0===i?void 0:i.args},this.getInterfaceResults=function(e,t){var i;return null===(i=n.getInterface(e,t))||void 0===i?void 0:i.results},this.createComponentList=function(){var e,t,i=[],o=null!==(e=n.getConfig().exports)&&void 0!==e?e:{};return null===(t=(0,r.getKeys)(o))||void 0===t||t.forEach(function(e){o[e].interfaces.forEach(function(e){e.components&&i.push.apply(i,e.components)})}),i},this.isControlledByInterface=function(e){return-1!=n.getComponents().indexOf(e)},this.getProcessedArgValue=function(e){var t,i,r,o=n.getInterfaceData();return n.model&&n.model.getDerivedFunctions().getProcessedArgValue&&void 0!=o&&(r=null===(i=null===(t=n.model.getDerivedFunctions())||void 0===t?void 0:t.getProcessedArgValue)||void 0===i?void 0:i.call(t,e,o)),r},this.getInterfaceData=function(){var e,t,i,o=null!==(e=n.getConfig().exports)&&void 0!==e?e:{};return null===(t=(0,r.getKeys)(o))||void 0===t||t.forEach(function(e){o[e].interfaces.forEach(function(t){var o,a=n.getInterfaceArgs(e,t.interfaceId);a&&(null===(o=(0,r.getKeys)(a))||void 0===o||o.forEach(function(e){var n;null===(n=(0,r.getKeys)(a[e]))||void 0===n||n.forEach(function(n){i||(i=[]),i.push({interface:t.interfaceId.name,name:n,value:a[e][n],module:e})})}))})}),i},this.exports=e,this.model=t}return e.prototype.getInterface=function(e,t){var n;if(this.exports[e])return(0,r.find)(null!==(n=this.exports[e].interfaces)&&void 0!==n?n:[],function(e){return JSON.stringify(e.interfaceId)===JSON.stringify(t)})},e}();t.MyExportInterfaces=a},2265:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPrototypeExports=void 0;var r=n(5056);t.createPrototypeExports=function(e){var t,n,a={};return null===(n=(0,r.getKeys)(null!==(t=null===e||void 0===e?void 0:e.exports)&&void 0!==t?t:{}))||void 0===n||n.forEach(function(t){var n,r=null===(n=null===e||void 0===e?void 0:e.exports)||void 0===n?void 0:n[t];void 0!=r&&(a[t]=i(i({},r),{interfaces:o(r.interfaces)}))}),a};var o=function(e){var t=[];return e.forEach(function(e){var n=e.interfaceId,i=e.payload;t.push({interfaceId:n,payload:i})}),t}},2403:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateRegisterView=void 0;var r=n(7437),o=i(n(9107)),a=n(2102),l=n(1378),u=n(2722),d=function(e){throw new Error(e)},s=function(){function e(e){var t=this;this.registers=[],this.interrupts=[],this.create=function(){var e=(new l.ViewSchemaBuilder).withSchema({title:"Register Settings",type:"object"}).withTabName("Register Initialization").withExpandedDefault(!1);return t.registers.forEach(function(n){e.addChildComponent(n.getRegister().name,t.createRegisterView(n))}),e.addChildComponent("interrupts",t.createInterruptView()),e.build()},this.withRegisterValue=function(e,n){return t.getSafeRegisterViewModel(e).setValue(n),t},this.withInterruptValue=function(e,n){return t.getSafeInterruptViewModel(e).setValue(n),t},this.withInterruptOptions=function(e,n){return t.getSafeInterruptViewModel(e).setOptions(n),t},this.withAllEditable=function(){return t.registers.forEach(function(e){return t.withEditableRegister(e.getRegister())}),t.interrupts.forEach(function(e){t.withEditableInterrupt(e.getInterrupt())}),t},this.withEditableRegister=function(e){var n,i;return t.getSafeRegisterViewModel(e).setReadonly(!1),e&&(null===(i=(0,a.values)(null!==(n=null===e||void 0===e?void 0:e.settings)&&void 0!==n?n:{}))||void 0===i||i.forEach(function(n){"R"===(null===n||void 0===n?void 0:n.type)?t.getSafeSettingViewModel(e,n).setReadonly(!0):t.getSafeSettingViewModel(e,n).setReadonly(!1)})),t},this.withEditableRegisterSetting=function(e,n){return e&&n&&(null===n||void 0===n||n.type,t.getSafeSettingViewModel(e,n).setReadonly(!0)),t},this.withInVisibleRegister=function(e){var n,i;return t.getSafeRegisterViewModel(e).setIsVisible(!1),e&&(null===(i=(0,a.values)(null!==(n=null===e||void 0===e?void 0:e.settings)&&void 0!==n?n:{}))||void 0===i||i.forEach(function(n){t.getSafeSettingViewModel(e,n).setIsVisible(!1)})),t},this.withInVisibleRegisterSetting=function(e,n){return e&&n&&t.getSafeSettingViewModel(e,n).setIsVisible(!1),t},this.withUpdatedSettingDescription=function(e,n,i){return e&&n&&i&&t.getSafeSettingViewModel(e,n).setDescription(i),t},this.withNonEditableRegister=function(e){return t.getSafeRegisterViewModel(e).setReadonly(!0),t},this.withEditableSetting=function(e,n){return t.getSafeSettingViewModel(e,n).setReadonly(!1),t},this.withEditableInterrupt=function(e){return t.getSafeInterruptViewModel(e).setReadonly(!1),t},this.withInVisibleInterrupt=function(e){return t.getSafeInterruptViewModel(e).setIsVisible(!1),t},this.withNonEditableInterrupt=function(e){return t.getSafeInterruptViewModel(e).setReadonly(!0),t},this.getSafeRegisterViewModel=function(e){var n;return null!==(n=t.getRegisterViewModel(null!==e&&void 0!==e?e:d("Invalid register parameter.")))&&void 0!==n?n:d("Cannot get register view model for '".concat(e.name,"'. Not found in this module."))},this.getSafeInterruptViewModel=function(e){var n;return null!==(n=t.getInterruptViewModel(null!==e&&void 0!==e?e:d("Invalid interrupt parameter.")))&&void 0!==n?n:d("Cannot get interrupt view model for '".concat(e.name,"'. Not found in this module."))},this.getSafeSettingViewModel=function(e,n){var i;return null!==(i=t.getSafeRegisterViewModel(e).getSettingViewModel(null!==n&&void 0!==n?n:d("Invalid setting parameter.")))&&void 0!==i?i:d("Cannot get setting view model for '".concat(n.name,"'. Not found in this module."))},this.getRegisterViewModel=function(e){var n=e.name;return(0,a.find)(t.registers,function(e){return e.getRegister().name===n})},this.getInterruptViewModel=function(e){var n=e.name;return(0,a.find)(t.interrupts,function(e){return e.getInterrupt().name===n})},this.createRegisterView=function(e){var n=e.getValue()||0,i=(new l.ViewSchemaBuilder).withSchema({type:"object",title:e.getName()+" : "+o.default.toHexString(n),description:e.getDescription(),properties:{}}).withUiSchema({}).withFormData({});return e.forEachSetting(function(e){i.addChildComponent(e.getName(),t.createSettingView(e))}),i.build()},this.createSettingView=function(e){return e.hasOptions()?t.createHasOptionsViewSchema(e):t.getNoOptionsViewSchema(e)},this.createInterruptView=function(){var e=(new l.ViewSchemaBuilder).withSchema({type:"object",title:"Interrupts",properties:{}}).withUiSchema({}).withFormData({});return t.interrupts.forEach(function(n){e.addChildComponent(n.getInterrupt().name,t.createInterruptViewSchema(n))}),e.build()},this.module=e,this.registers=this.createRegisterViewModelForEachRegister(e),this.interrupts=this.createInterruptViewModelForEachInterrupt(e)}return e.prototype.createRegisterViewModelForEachRegister=function(e){var t,n=[],i=null!==(t=e.registers)&&void 0!==t?t:{};return Object.keys(i).forEach(function(e){n.push(new u.RegisterViewModel(i[e]))}),n},e.prototype.createInterruptViewModelForEachInterrupt=function(e){var t,n=[],i=null!==(t=e.interrupts)&&void 0!==t?t:{};return Object.keys(i).forEach(function(e){n.push(new u.InterruptViewModel(i[e]))}),n},e.prototype.getNoOptionsViewSchema=function(e){var t,n=(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?void 0:"hidden").withUiHelp("".concat(e.getName(),": ")+(null!==(t=e.getDescription())&&void 0!==t?t:""));return{schema:this.createSettingViewSchema(e),uiSchema:e.getMaxValue()>1?n.build():this.getBinarySettingUiSchema(e),formData:e.mapToOptionNameIfExists(e.getValue())}},e.prototype.createHasOptionsViewSchema=function(e){var t,n,i=new l.SchemaBuilder("string",null!==(t=(0,r.getBitLabel)(e.getSetting()))&&void 0!==t?t:"").withEnum(e.getOptionNames()).withDefault(e.mapToOptionNameIfExists(e.getValue())),o=(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?void 0:"hidden").withUiHelp("".concat(e.getName(),": ")+(null!==(n=e.getDescription())&&void 0!==n?n:""));return{schema:i.build(),uiSchema:o.build(),formData:e.mapToOptionNameIfExists(e.getValue())}},e.prototype.createSettingViewSchema=function(e){var t,n=new l.SchemaBuilder("integer",null!==(t=(0,r.getBitLabel)(e.getSetting()))&&void 0!==t?t:"").withDefault(e.mapToOptionNameIfExists(e.getPORDefault()));return e.getMaxValue()>1?n.withMaximum(e.getMaxValue()).withMinimum(0):n.withEnum([0,1]),n.build()},e.prototype.createInterruptViewSchema=function(e){var t,n=new l.SchemaBuilder("string",e.getInterrupt().name).withEnum(e.getOptions()).withDefault(e.getValue()),i=(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?void 0:"hidden");return{schema:n.build(),uiSchema:i.build(),formData:null!==(t=e.getValue())&&void 0!==t?t:{}}},e.prototype.getBinarySettingUiSchema=function(e){var t;return(new l.UiSchemaBuilder).withReadonlyValue(e.getIsReadonly()).withWidget(e.getIsVisible()?"radio":"hidden").withUiHelp("".concat(e.getName(),": ")+(null!==(t=e.getDescription())&&void 0!==t?t:"")).withOptions({inline:!0}).build()},e.for=function(t){return t||d("Creation failed. Invalid module parameter."),t.registers||t.interrupts||d("Creation failed for ".concat(t.name,". Input module contains no registers or interrupts.")),new e(t)},e}();t.CreateRegisterView=s},2435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PCPStateActionBuilder=void 0;var i=n(8087),r=function(){function e(e){this.actionDataArr=[],this.pinRow=e,this.tabId="main"}return e.prototype.rowWithName=function(e){return this.rowName=e,this},e.prototype.compWithTabId=function(e){return this.tabId=e,this},e.prototype.addIfLockedSetValue=function(e,t,n){return this.actionDataArr.push({pinstate:i.pin_state.LOCKED,validFor:e,validForpinNameReEx:n,value:t,actiontype:i.actiontype.SETACTION}),this},e.prototype.addIfLockedProvideAttribs=function(e,t){return this.actionDataArr.push({pinstate:i.pin_state.LOCKED,validFor:e,value:this.formAttribs(t),actiontype:i.actiontype.ATTRIBACTION}),this},e.prototype.addIfUnlockedProvideAttribs=function(e,t){return this.actionDataArr.push({pinstate:i.pin_state.UNLOCK,validFor:e,value:this.formAttribs(t),actiontype:i.actiontype.ATTRIBACTION}),this},e.prototype.formAttribs=function(e){return{attribs:e}},e.prototype.addIfUnLockedSetValue=function(e,t){return this.actionDataArr.push({pinstate:i.pin_state.UNLOCK,validFor:e,value:t,actiontype:i.actiontype.SETACTION}),this},e.prototype.forComponent=function(e){return this.component=e,this},e.prototype.build=function(){var e=this,t=[];return this.pinRow.name===this.rowName&&this.actionDataArr.forEach(function(n){var i,r,o={validFor:n.validFor,state:(i={},i[n.pinstate]={type:"[FORM] SUBMIT",payload:{tabId:e.tabId,path:e.component.group+"."+e.component.name,value:n.value}},i),actiontype:null!==(r=n.actiontype)&&void 0!==r?r:""};void 0!==n.validForpinNameReEx&&(o.validForpinNameReEx=n.validForpinNameReEx),t.push(o)}),t},e}();t.PCPStateActionBuilder=r},2645:function(e,t,n){"use strict";var i=n(6888);t.K=i.Interface},2722:function(e,t,n){"use strict";var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingViewModel=t.RegisterViewModel=t.InterruptViewModel=void 0;var o=r(n(9107)),a=n(2102),l=n(7437),u=function(e){var t=this;if(this.isReadOnly=!0,this.isVisible=!0,this.getInterrupt=function(){return t.interrupt},this.setValue=function(e){t.value=e},this.getValue=function(){return t.value},this.setOptions=function(e){t.options=e},this.getOptions=function(){var e;return null!==(e=t.options)&&void 0!==e?e:[]},this.getIsReadonly=function(){return t.isReadOnly},this.getIsVisible=function(){return t.isVisible},this.setReadonly=function(e){t.isReadOnly=e},this.setIsVisible=function(e){t.isVisible=e},!e)throw new Error("IllegalInputArgument for 'interrupt' in InterruptValue");this.interrupt=e};t.InterruptViewModel=u;var d=function(){function e(e){var t=this;if(this.settings=[],this.getSettings=function(){return t.settings},this.getSettingViewModel=function(e){var n=e.name;return(0,a.find)(t.settings,function(e){return e.getSetting().name===n})},this.forEachSetting=function(e){t.settings.forEach(e)},this.getRegister=function(){return t.register},this.getName=function(){return t.register.name},this.getDescription=function(){return t.register.desc},this.getValue=function(){return t.value},this.setValue=function(e){t.value=e},this.setReadonly=function(e){void 0===e&&(e=!0),t.forEachSetting(function(t){return t.setReadonly(e)})},this.setIsVisible=function(e){t.forEachSetting(function(t){return t.setReadonly(e)})},this.getDefaultValue=function(){return o.default.for(t.register).asNumber()},this.getValueOrDefault=function(){var e=t.getValue();return null!==e&&void 0!==e?e:t.getDefaultValue()},!e)throw new Error("IllegalInputArgument for 'register' in RegisterValue");this.register=e,e.settings&&(this.settings=this.createSettingViewModels(e))}return e.prototype.createSettingViewModels=function(t){var n,i=this,r=[],o=null!==(n=t.settings)&&void 0!==n?n:{};return Object.keys(o).forEach(function(e){r.push(new s(o[e],i.getValueOrDefault))}),e.sortSettingsDescending(r)},e.sortSettingsDescending=function(e){var t=i([],e,!0);return t.sort(function(e,t){var n,i,r,o,a=null!==(i=null===(n=(0,l.getBitRange)(e.getSetting()))||void 0===n?void 0:n.high)&&void 0!==i?i:-1;return(null!==(o=null===(r=(0,l.getBitRange)(t.getSetting()))||void 0===r?void 0:r.high)&&void 0!==o?o:-1)-a}),t},e}();t.RegisterViewModel=d;var s=function(e,t){var n=this;if(this.isReadonly=!0,this.isVisible=!0,this.setReadonly=function(e){void 0===e&&(e=!0),n.isReadonly=e},this.setIsVisible=function(e){n.isVisible=e},this.setDescription=function(e){n.setting.description=e},this.getIsReadonly=function(){return n.isReadonly},this.getIsVisible=function(){return n.isVisible},this.getSetting=function(){return n.setting},this.getName=function(){return n.setting.name},this.getDescription=function(){return n.setting.description},this.getPORDefault=function(){return Number(n.setting.porDefault)},this.getMask=function(){return Number(n.setting.mask)},this.hasOptions=function(){return!!n.setting.options},this.getOptionNames=function(){return(0,a.map)(c(n.setting.options),function(e){return e.name})},this.mapToOptionNameIfExists=function(e){var t=n.getOptionForValue(e);return void 0!==t?t.name:e},this.getOptionForValue=function(e){return(0,a.find)(c(n.setting.options),function(t){var n=t.value;return void 0!=n&&parseInt(n)===e})},this.getValue=function(){var e=n.getRegisterValue();return(e&=n.getMask())>>>n.getShift()},this.getShift=function(){for(var e=n.getMask(),t=0;!(1&e);)e>>>=1,t++;return t},this.getMaxValue=function(){for(var e=n.getMask();!(1&e);)e>>>=1;return e},!e)throw new Error("SettingViewModel: Invalid input argument");this.setting=e,this.getRegisterValue=t};t.SettingViewModel=s;var c=function(e){return null!==e&&void 0!==e?e:[]}},2836:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MyImportInterfaces=t.createImportInterfaces=void 0;var r=n(2102),o=n(5037),a=n(3558),l=n(5056);t.createImportInterfaces=function(e,t,n){return new u(e,t,n)};var u=function(e,t,n){var u=this;this.createProcessedImports=function(e){var t,n=u.filterImports();return null===(t=(0,l.getKeys)(null!==n&&void 0!==n?n:{}))||void 0===t||t.forEach(function(t){var r,a,l,d,s,c,v,p,f,g,m,h,y,b;n=i(i({},n),((r={})[t]=i(i(i({},n[t]),{args:"arguments"===e?null===(a=u.model)||void 0===a?void 0:a.getDerivedFunction(t+"_args"):null===(l=n[t])||void 0===l?void 0:l.args,results:"results"===e?u.getResults(n,t):null===(d=n[t])||void 0===d?void 0:d.results,name:null!==(s=u.model.getDerivedFunction("importName",t))&&void 0!==s?s:null===(c=n[t])||void 0===c?void 0:c.name,handle:(0,o.getProcessedHandle)(n[t].handle,n[t].payload),options:null!==(f=u.getProcessedImportOptions(t,null!==(p=null===(v=n[t])||void 0===v?void 0:v.options)&&void 0!==p?p:[]))&&void 0!==f?f:n[t].options,shouldAssignDescendantsInOrder:null!==(h=null===(m=(g=u.model.getDerivedFunctions()).updateImportWithShouldAssignDescOrder)||void 0===m?void 0:m.call(g,t))&&void 0!==h?h:n[t].shouldAssignDescendantsInOrder}),null===(b=(y=u.model.getDerivedFunctions()).overrideImport)||void 0===b?void 0:b.call(y,t,n[t])),r))}),n},this.createProcessedImportsForDynamicAssignment=function(e){var t,n=u.filterImports();return null===(t=(0,l.getKeys)(null!==n&&void 0!==n?n:{}))||void 0===t||t.forEach(function(e){var t,r,o,a;n=i(i({},n),((t={})[e]=i(i({},n[e]),null!==(a=null===(o=(r=u.model.getDerivedFunctions()).updateImportKeysForDynamicAssignment)||void 0===o?void 0:o.call(r,e))&&void 0!==a?a:{}),t))}),n},this.filterImports=function(){var e,t,n;return null!==(n=null===(t=(e=u.model.getDerivedFunctions()).filterImports)||void 0===t?void 0:t.call(e,u.imports))&&void 0!==n?n:u.imports},this.getProcessedImportOptions=function(e,t){var n=[];return null===t||void 0===t||t.forEach(function(t,r){var o,a;n[r]=i(i({},t),{handle:i(i({},t.handle),{label:null!==(o=u.model.getDerivedFunction("importOptionLabel",e,t))&&void 0!==o?o:null===(a=t.payload)||void 0===a?void 0:a.moduleName})})}),n},this.getResults=function(e,t){var n,o,d,s,c,v,p,f,g,m,h,y,b,I,_,w,S,D,C,E=null===(n=u.model)||void 0===n?void 0:n.getDerivedFunction(t+"_results");if(E)return E;var A=e[t];if("initializer-system"===A.interfaceId.name)return{initializer:{name:u.model.getName()+"_Initialize",header:null!==(d=null===(o=u.model)||void 0===o?void 0:o.getDerivedFunction("headerFile"))&&void 0!==d?d:{name:u.model.getName().toLowerCase()+".h",path:"include/"}}};if("pin-standard"===A.interfaceId.name)return null===(c=(s=u.model).getPCPHelper)||void 0===c?void 0:c.call(s).getData();if("pins-interface"===A.interfaceId.name)return null===(p=(v=u.model).getPCPHelper)||void 0===p?void 0:p.call(v).getData();if("interrupt-standard"===A.interfaceId.name){var O=[],P={},M=null!==(m=null===(g=null===(f=u.model)||void 0===f?void 0:f.getImportValue("interrupt_standard"))||void 0===g?void 0:g.isHighPriority)&&void 0!==m?m:{};return null===(b=(0,l.values)(null!==(y=null===(h=u.model.getHardware())||void 0===h?void 0:h.getPeripheral().interrupts)&&void 0!==y?y:{}))||void 0===b||b.forEach(function(e){var t,n,o,l,d,s,c,v,p,f,g,m,h,y,b,I,_,w,S,D,C,E,A,N,R,F;if(e&&(null===(d=null===(l=(o=u.model.getDerivedFunctions()).filterInterrupts)||void 0===l?void 0:l.call(o,e.name))||void 0===d||d)){var V=null!==(c=null!==(s=u.getInterruptComponentName(e.name))&&void 0!==s?s:e.name.toLowerCase())&&void 0!==c?c:"",T=null!==(v=u.model.isComponentValue(null!==V&&void 0!==V?V:""))&&void 0!==v&&v;O.push({name:null!==(p=e.name)&&void 0!==p?p:"",module:null!==(m=null!==(g=null===(f=u.model.getHardware())||void 0===f?void 0:f.getName())&&void 0!==g?g:u.model.getName())&&void 0!==m?m:"",isEnabled:T,isrCallback:null!==(I=null===(b=null===(h=u.model)||void 0===h?void 0:(y=h.getDerivedFunctions()).isrCallback)||void 0===b?void 0:b.call(y,e.name))&&void 0!==I?I:{name:u.model.getName()+e.handlerName,header:null!==(D=null===(S=null===(_=u.model)||void 0===_?void 0:(w=_.getDerivedFunctions()).headerFile)||void 0===S?void 0:S.call(w))&&void 0!==D?D:{name:u.model.getName().toLowerCase()+".h",path:"include/"}},generateISR:T,isHighPriority:null===(C=M[e.name])||void 0===C||C});var H=(t=null!==(N=null===(A=(E=u.model.getDerivedFunctions()).getInterruptActions)||void 0===A?void 0:A.call(E,e.name,"isEnabled"))&&void 0!==N?N:[]).concat.apply(t,(0,a.getDefaultInterruptActions)(u.model,V));!0===(null===(F=null===(R=u.model.getState())||void 0===R?void 0:R.contentMeta)||void 0===F?void 0:F.isUserEnRegRWMode)&&(H=u.getRegisterEditorInterruptActions(V));var x=(0,r.find)(H,function(e){return e.validFor!==T});P=i(i({},P),((n={})[e.name]=i(i({},null===P||void 0===P?void 0:P[e.name]),{isEnabled:x?[x]:[]}),n))}}),{interruptList:O,interruptActions:P,moduleName:null!==(I=u.model.getName())&&void 0!==I?I:""}}return"api-prefix-registration"===A.interfaceId.name?{apiPrefix:null!==(S=null===(w=null===(_=u.model)||void 0===_?void 0:_.getDerivedFunctions())||void 0===w?void 0:w.apiPrefix)&&void 0!==S?S:null===(D=u.model)||void 0===D?void 0:D.getComponentValue("componentName"),moduleName:null===(C=u.model)||void 0===C?void 0:C.getName()}:void 0},this.getInterruptComponentName=function(e){var t,n;return null===(n=null===(t=u.model.getDerivedFunctions())||void 0===t?void 0:t.interruptComponentName)||void 0===n?void 0:n.call(t,e)},this.getRegisterEditorInterruptActions=function(e){return[{validFor:!0,action:{type:"[FORM] SUBMIT",payload:{tabId:"register",value:!0,path:"interrupts."+e.toUpperCase()}}},{validFor:!1,action:{type:"[FORM] SUBMIT",payload:{tabId:"register",value:!1,path:"interrupts."+e.toUpperCase()}}}]},this.imports=e,this.model=t};t.MyImportInterfaces=u},2980:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getFreqCompFormData=void 0,t.isFreqComponentInState=i,t.isFreqValueInState=r,t.isFreqUnitInState=o,t.isFrequencyComponent=function(e){return"software"===e.category&&"frequency"===e.type},t.getFreqCompSchema=function(e,t){var i,r,o={type:"object",$id:"frequency",title:null!==(r=null===(i=null===t||void 0===t?void 0:t.overrideTitle)||void 0===i?void 0:i.call(t,e.name))&&void 0!==r?r:e.description,properties:{value:{type:"number",default:e.defaultValue.value},unit:{type:"string",default:e.defaultValue.unit}}};e.frequencyMeta&&(e.frequencyMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:e.frequencyMeta.min.value},unit:{type:"string",default:e.frequencyMeta.min.unit}}}})})),e.frequencyMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:e.frequencyMeta.max.value},unit:{type:"string",default:e.frequencyMeta.max.unit}}}})})),e.frequencyMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:e.frequencyMeta.unitOptions}}})})));var a=t&&null!=t[e.name]?null===t||void 0===t?void 0:t[e.name]():void 0;a&&(a.description&&(o=n(n({},o),{title:a.description})),a.defaultValue&&(o=n(n({},o),{properties:n(n({},o.properties),{value:{type:"number",default:a.defaultValue.value},unit:{type:"string",default:a.defaultValue.unit}})})),a.frequencyMeta&&(a.frequencyMeta.min&&(o=n(n({},o),{properties:n(n({},o.properties),{min:{type:"object",properties:{value:{type:"number",default:a.frequencyMeta.min.value},unit:{type:"string",default:a.frequencyMeta.min.unit}}}})})),a.frequencyMeta.max&&(o=n(n({},o),{properties:n(n({},o.properties),{max:{type:"object",properties:{value:{type:"number",default:a.frequencyMeta.max.value},unit:{type:"string",default:a.frequencyMeta.max.unit}}}})})),a.frequencyMeta.unitOptions&&(o=n(n({},o),{properties:n(n({},o.properties),{options:{type:"array",items:{type:"string",enum:a.frequencyMeta.unitOptions}}})}))));return o};function i(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]}function r(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].value}function o(e,t,n){var i=e.getState(),r=i?i[n]:void 0;return r&&r[t.group]&&r[t.group][t.name]&&r[t.group][t.name].unit}t.getFreqCompFormData=function(e,t,a){var l,u={value:t.defaultValue.value,unit:t.defaultValue.unit};t.frequencyMeta&&(t.frequencyMeta.min&&(u=n(n({},u),{min:{value:t.frequencyMeta.min.value,unit:t.frequencyMeta.min.unit}})),t.frequencyMeta.max&&(u=n(n({},u),{max:{value:t.frequencyMeta.max.value,unit:t.frequencyMeta.max.unit}})),t.frequencyMeta.unitOptions&&(u=n(n({},u),{options:t.frequencyMeta.unitOptions})));var d=e.getDerivedFunctions()&&null!=e.getDerivedFunctions()[t.name]?null===(l=e.getDerivedFunctions())||void 0===l?void 0:l[t.name]():void 0;if(d&&(d.defaultValue&&(u=n(n({},u),{value:d.defaultValue.value,unit:d.defaultValue.unit})),d.frequencyMeta&&(d.frequencyMeta.min&&(u=n(n({},u),{min:{value:d.frequencyMeta.min.value,unit:d.frequencyMeta.min.unit}})),d.frequencyMeta.max&&(u=n(n({},u),{max:{value:d.frequencyMeta.max.value,unit:d.frequencyMeta.max.unit}})),d.frequencyMeta.unitOptions&&(u=n(n({},u),{options:d.frequencyMeta.unitOptions})))),i(e,t,a)){var s=e.getState(),c=s?s[a]:void 0;if(r(e,t,a)){var v=c[t.group][t.name].value;u=n(n({},u),{value:v})}if(o(e,t,a)){var p=c[t.group][t.name].unit;u=n(n({},u),{unit:p})}return u}return u}},3169:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createScfUiSchema=function(e,t,n){var u,d={};if(t){var s=function(e){return e.getAutoModuleAppModel().getAllComponents()}(n);null===(u=(0,o.getKeys)(s))||void 0===u||u.forEach(function(t){var o,u,c,v,p,f,g,m,h,y,b=s[t].component,I=b.name,_=b.group,w={};if(-1!=b.tabs.indexOf(e)){d[_]||(d[_]={}),d[_][I]||(d[_][I]={});var S=function(e,t){if("import"===e.category)return function(e,t){var n=new a.DependencySelector(t,e),i=n.generateDropdownOptions(),r=[];return i.forEach(function(t){var n=t.value;r.push({type:"[Import] SET",payload:{importId:e.importId,handle:null===n||void 0===n?void 0:n.handle,interfaceId:null===n||void 0===n?void 0:n.interfaceId,option:t.label}})}),JSON.stringify(r)}(e,t);var n=t.getDerivedFunction("getActions",e.name,e.actions);return JSON.stringify(n)}(b,n),D=n.getDerivedFunction("getCustomUiErrors",I);if(n.getImports()){var C=n.getImportValue("device_meta"),E=null!==(o=null===C||void 0===C?void 0:C.hasSdlSupport)&&void 0!==o&&o;if(b.sdlHelp&&E){var A=b.sdlHelp.url;w.helpKeyword=function(e,t,n){var i;return null!==(i=e.getDerivedFunction("getHelpUrl",t,n))&&void 0!==i?i:(0,l.getAutoSdlHelp)(e,t,n)}(n,I,A),w.tooltip=function(e){var t,n;return null!==(n=null===(t=e.sdlHelp)||void 0===t?void 0:t.tooltip)&&void 0!==n?n:"Click for more information"}(b)}}if("file_load"===b.category&&(w.fileLoadProps={},w.fileLoadProps.fileId=t,w.fileLoadProps.saveState=null!==(c=null===(u=b.fileMeta)||void 0===u?void 0:u.saveState)&&void 0!==c&&c,w.fileLoadProps.filter=null===(v=b.fileMeta)||void 0===v?void 0:v.filter,w.fileLoadProps.type="file_load",w.fileLoadProps.compText=null===(p=b.fileMeta)||void 0===p?void 0:p.compText),"file_save"===b.category&&(w.fileSaveProps={},w.fileSaveProps.fileId=t,w.fileSaveProps.fileContents=n.getComponentValue(b.name),w.fileSaveProps.fileName=null===(f=b.fileMeta)||void 0===f?void 0:f.defaultName,w.fileSaveProps.type="file_save",w.fileSaveProps.compText=null===(g=b.fileMeta)||void 0===g?void 0:g.compText),"table"===b.category){var O=null===(y=null===(h=null===(m=null===n||void 0===n?void 0:n.getState())||void 0===m?void 0:m[e])||void 0===h?void 0:h[_])||void 0===y?void 0:y[I],P=(0,r.createTableUids)(b,e,n,O);w.table=function(e,t){var n=(0,r.getCellValidationInfo)(e);return{canRemoveRows:e.canRemoveRows,canInsertRows:e.canInsertRows,canAddRows:e.canAddRows,canMoveRowDown:e.canMoveRowDown,canMoveRowUp:e.canMoveRowUp,canEnableRows:e.canEnableRows,uids:t,cellValidationInfo:n}}(b,P),S=(0,r.getTableActions)(b,e,n,P)}w.precision=b.precision,w.shouldDispatchOnChange=b.shouldDispatchOnChange,S&&(w.actions=S),D&&(w.transformErrors=D),"number"===b.type&&(w.convertToHex=n.getDerivedFunction("convertNumberFieldToHex",I)),d[_][I]=i({},w)}})}return d};var r=n(3226),o=n(5056),a=n(5037),l=n(9581)},3226:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getTableHelpers=void 0,t.getTableComponentSchema=function(e,t){var n,r,o,a,l={};for(var u in e.columns){var d=void 0;if("ComboBox"===e.columns[u].type){var s=e.columns[u];d="string",l[u]={type:d,title:s.title,default:O(t.overrideDefaultValues,s,u,e.name),enum:P(t.overrideTableOptions,s,u,e.name)}}else d=null===(n=null===e||void 0===e?void 0:e.columns[u])||void 0===n?void 0:n.type,l[u]={type:d,title:e.columns[u].title,default:e.columns[u].defaultValue}}return{type:"array",title:null!==(a=null===(o=null===(r=t.viewModel.derivedFunctions)||void 0===r?void 0:r.overrideTitle)||void 0===o?void 0:o.call(r,e.name))&&void 0!==a?a:e.description,items:{type:"object",properties:i({},l)}}},t.overrideTableDefaultsWithChanges=u,t.isTableInState=d,t.calculateColumnWidth=s,t.getInitialTableFormData=c,t.createInitialRows=v,t.overrideCellValue=p,t.addRowsToTable=f,t.addRowToTable=g,t.removeRowFromTable=m,t.getTableFormData=h,t.getValueBasedOnState=y,t.overrideDefaultsAndFilterRows=b,t.createTableUids=I,t.getCellValidationInfo=_,t.getTableActions=w,t.getTableUiSchema=S,t.getCellStyle=D,t.getHeaderStyle=C;var o=n(6002),a=n(2102),l=n(4308);function u(e,t,n){var o=r([],t,!0);return Array.isArray(e)&&e.forEach(function(e){var t=e.uid,r=n[t];o[r]=i(i({},o[r]),e)}),o}function d(e,t){return e&&e[t.group]&&e[t.group][t.name]}function s(e){if(!e)return{};var t=0,n=0,i={};for(var r in e)if("boolean"===e[r].type){var o=8;n++,i[r]=o,t+=o}for(var r in e)if("boolean"!==e[r].type){o=(100-t)/(Object.keys(e).length-n);i[r]=o}return i}function c(e,t,n){var r=[],a={};if(t.forEach(function(t){a[t]||(a[t]=O(n.getDerivedFunctions().overrideTableDefaultValues,e.columns[t],t,e.name))}),null===e||void 0===e?void 0:e.rowData){var l=0;null===e||void 0===e||e.rowData.forEach(function(e){var n=Object.keys(e);t.forEach(function(t){var r;-1===n.indexOf(t)&&(e=i(i({},e),((r={})[t]=a[t],r.uid=M(o.RowPrefix.Default,l),r)))}),r.push(i(i({},e),{uid:M(o.RowPrefix.Default,l),rowId:l})),l++})}else r=v(e,a);return r}function v(e,t){var n;void 0===t&&(t={});for(var r=[],a=null!==(n=null===e||void 0===e?void 0:e.defaultRowNum)&&void 0!==n?n:1,l=0;l<a;l++)r.push(i(i({},t),{rowId:l,uid:M(o.RowPrefix.Default,l)}));return r}function p(e,t){var n=r([],e,!0);return n[t.rowId][t.columnName]=t.value,n}function f(e,t,n,r){return r<=0?e:f(g(e,t,i(i({},n),{uid:o.RowPrefix.Dynamic+(r-1)})),t,n,r-1)}function g(e,t,n){var o,a=Object.keys(t),l=Object.keys(n),u=n.rowId,d=[];if(0===e.length)return d.push(n),d;if(null!=u){a.forEach(function(e){var r,o,a,u=s(t);-1===l.indexOf(e)&&(n=i(i({},n),((r={})[e]=null!==(a=null===(o=t[e].defaultValue)||void 0===o?void 0:o.value)&&void 0!==a?a:t[e].defaultValue,r.columnWidth=t[e].columnWidth?t[e].columnWidth+"%":u[e]+"%",r)))});for(var c=e.slice(0,u),v=e.slice(u),p=0;p<v.length;p++){var f=v[p].rowId;v[p]=i(i({},v[p]),{rowId:f+1});var g=null===(o=v[p])||void 0===o?void 0:o.actions;g&&(v[p].actions=A(g,f+1))}return c.push(n),d=r(r([],c,!0),v,!0)}return e}function m(e,t){for(var n,i=e.filter(function(e){return e.rowId!==t}),r=0;r<i.length;r++){i[r].rowId=r;var o=null===(n=i[r])||void 0===n?void 0:n.actions;o&&(i[r].actions=A(o,r))}return i}function h(e,t,n){var i;return null!==(i=e.getDerivedFunction(t.name,t,e,n))&&void 0!==i?i:y(t,e,n)}function y(e,t,n){var i=Object.keys(e.columns),r=t.getState(),o=r?r[n]:void 0,a=c(e,i,t);if(d(o,e)){var l=o[e.group][e.name],u=I(e,n,t,l);return b(l,a,e.columns,u,e,n)}return a}function b(e,t,n,a,l,d){var s=r([],t,!0),c=Object.keys(a);(e=e.filter(function(e){return null!=e})).forEach(function(e){e.uid.indexOf(o.RowPrefix.Dynamic)>-1&&s.push(e)});var v=[];c.forEach(function(e){s.forEach(function(n){n.uid===e&&(v[a[e]]=i(i({},t[0]),n))})}),v=v.filter(function(e){return e});for(var p=0;p<v.length;p++)v[p].uid.indexOf(o.RowPrefix.Dynamic)>-1||v[p].rowId++;var f=function(e){Object.keys(n).forEach(function(t){s[e].actions=A(E(l,e,t,d,a),e)})};for(p=0;p<s.length;p++)f(p);return u(e,v,a)}function I(e,n,r,l){var u,d,s,c=e,p=null===r||void 0===r?void 0:r.getDerivedFunction(e.name,e,r,n);if(p){var f={},g=0;return p.forEach(function(e){var t=null===e||void 0===e?void 0:e.uid;void 0!==t&&(f[t]=g++)}),f}var m=c.rowData;if(!p&&m)for(var h=function(e){m[e].uid||(m[e].uid=M(o.RowPrefix.Default,e)),m[e].rowId=null!==(d=null===(u=(0,a.find)(null!==l&&void 0!==l?l:[],function(t){return t.uid===(null===m||void 0===m?void 0:m[e].uid)}))||void 0===u?void 0:u.rowId)&&void 0!==d?d:m[e].rowId},y=0;y<m.length;y++)h(y);else m=null!==p&&void 0!==p?p:v(c).map(function(e){var t,n;return i(i({},null!==e&&void 0!==e?e:{}),{rowId:null!==(n=null===(t=(0,a.find)(null!==l&&void 0!==l?l:[],function(t){return t.uid===(null===e||void 0===e?void 0:e.uid)}))||void 0===t?void 0:t.rowId)&&void 0!==n?n:e.rowId})});return(null!==(s=null===r||void 0===r?void 0:r.getTableHelpers().createUidMapBuilder())&&void 0!==s?s:(0,t.getTableHelpers)().createUidMapBuilder()).addDefaultRows(m).addDynamicRows(null!==l&&void 0!==l?l:[]).removeRows(null!==l&&void 0!==l?l:[]).sortByValue().create()}function _(e){var t=e,n=[],i=t.columns;for(var r in i){var o=t.columns[r];(null===o||void 0===o?void 0:o.cellValidator)&&n.push({type:o.type,minValue:o.cellValidator.minValue,maxValue:o.cellValidator.maxValue,errMessage:o.cellValidator.errorMessage,errTitle:o.cellValidator.errorTitle,cValidation:o.cellValidator.cValidation,cValidationErrTitle:o.cellValidator.cValidationErrorTitle,cValidationErrMessage:o.cellValidator.cValidationErrorMessage})}return n}function w(e,t,n,r,a){var l,u,d,s,c,p,f=e;a||(p=null===n||void 0===n?void 0:n.getDerivedFunction(e.name,e,n,t));var g=null!==(u=null!==(l=null!==a&&void 0!==a?a:p)&&void 0!==l?l:f.rowData)&&void 0!==u?u:v(f),m=Object.keys(f.columns),h={table:{}},y=0,b=null===(c=null===(s=null===(d=null===n||void 0===n?void 0:n.getState())||void 0===d?void 0:d[t])||void 0===s?void 0:s[e.group])||void 0===c?void 0:c[e.name];return g.forEach(function(a){m.forEach(function(l){var u,d,s,c,v;for(var p in h.table[a.uid]||(h.table[a.uid]={}),r)r[p]===a.rowId&&(v=p);v=null!==v&&void 0!==v?v:M(o.RowPrefix.Default,y);var g=E(e,y,l,t,v);if(b){var m=-1,I=b.filter(function(e,t){return m=t,e.uid===v});I.length&&(g=E(e,m,l,t,null!==v&&void 0!==v?v:M(o.RowPrefix.Default,y)))}"ComboBox"==e.columns[l].type&&(g.payload=i(i({},g.payload),{options:P(null===(u=null===n||void 0===n?void 0:n.getDerivedFunctions())||void 0===u?void 0:u.overrideTableOptions,f.columns[l],l,e.name)}));var _=null!==(s=null===(d=a.actions)||void 0===d?void 0:d[l])&&void 0!==s?s:g;h.table[a.uid][l]=null!==(c=null===n||void 0===n?void 0:n.getDerivedFunction("getActions",f.name,_))&&void 0!==c?c:_}),y++}),Object.keys(r).forEach(function(e){m.forEach(function(n){r[e]>-1&&(h.table[e]?h.table[e][n]||(h.table[e][n]=E(f,r[e],n,t,e)):(h.table[e]={},h.table[e][n]=E(f,r[e],n,t,e)))})}),JSON.stringify(h)}function S(e,t){var n,r,o={tableCols:t,search:e.isSearchable,striped:!1,bordered:!1};return e.canRemoveRows&&(o=i(i({},o),{rightActions:[{dataField:"delete-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px",tdStyle:{textOverflow:"unset"}}]})),e.canInsertRows&&(o=i(i({},o),{leftActions:[{dataField:"insert-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px",tdStyle:{textOverflow:"unset"}}]})),e.canMoveRowDown&&(o=i(i({},o),{leftActions:(null!==(n=o.leftActions)&&void 0!==n?n:[]).concat({dataField:"row-down-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px"})})),e.canMoveRowUp&&(o=i(i({},o),{leftActions:(null!==(r=o.leftActions)&&void 0!==r?r:[]).concat({dataField:"row-up-button",editable:!1,displayName:"",columnWidth:"21px",width:"21px"})})),{"ui:field":"table",className:"col-md-12 individualComponent",table:i({},o)}}function D(e){var t={overflow:"hidden",textOverflow:"ellipsis"};return e&&(t.backgroundColor="#EEEEEE"),t}function C(e,t){return t?function(e){return{position:"relative",bottom:"-7px",pointerEvents:"none",left:"6px",transformOrigin:"bottom left",transform:"rotate(-30deg)",paddingTop:"".concat(3.3*e,"px")}}(e):function(e){return{whiteSpace:"unset",maxWidth:"".concat(e,"px")}}(e)}function E(e,t,n,i,r){return{type:"[Table] EDIT_CELL",payload:{tabId:null!==i&&void 0!==i?i:"main",path:"".concat(null===e||void 0===e?void 0:e.group,".").concat(null===e||void 0===e?void 0:e.name),column:n,value:"%v",uid:r,rowId:t}}}function A(e,t){var n=i({},e);return Object.keys(e).forEach(function(e){var i,r=null===(i=n[e])||void 0===i?void 0:i.payload;if(r){var o=r.path.split(".");o[o.length-2]=t,n[e].payload.rowId=t,n[e].payload.path=o.join(".")}}),n}t.getTableHelpers=function(){return{addRowToTable:g,addRowsToTable:f,calculateColumnWidth:s,createInitialRows:v,createTableUids:I,getCellStyle:D,getCellValidationInfo:_,getHeaderStyle:C,getInitialTableFormData:c,getTableActions:w,getTableFormData:h,getTableUiSchema:S,getValueBasedOnState:y,isTableInState:d,overrideCellValue:p,overrideDefaultsAndFilterRows:b,overrideTableDefaultsWithChanges:u,removeRowFromTable:m,createUidMapBuilder:function(){return new l.UidMapBuilder}}};var O=function(e,t,n,i){var r;return null!==(r=null===e||void 0===e?void 0:e(i,n))&&void 0!==r?r:"ComboBox"===t.type?t.defaultValue.value:t.defaultValue},P=function(e,t,n,i){var r,o=null===e||void 0===e?void 0:e(i,n);return o&&o.length>0?o:null===(r=null===t||void 0===t?void 0:t.defaultValue)||void 0===r?void 0:r.options};function M(e,t){return e+t}},3427:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createUiSchema=function(e,t,n){var l,u,d,s,c={};if(t){t.UIOrder&&(null===(d=(0,o.getKeys)(null!==(u=t.UIOrder)&&void 0!==u?u:{}))||void 0===d||d.forEach(function(e){var n;c[e]={"ui:order":null===(n=null===t||void 0===t?void 0:t.UIOrder)||void 0===n?void 0:n[e]}}));var v=n.viewModel.components,p={};for(var f in null===(s=(0,o.values)(null!==v&&void 0!==v?v:{}))||void 0===s||s.forEach(function(t){var l,u,d,s,v,f,g,m,h=t.component;if(-1!==(null!==(s=null===(d=h.tabs)||void 0===d?void 0:d.indexOf(e))&&void 0!==s?s:-1)){if(void 0===p[h.group]||!0===p[h.group]){var y="hidden"===(null===(v=h.uiBehavior)||void 0===v?void 0:v["ui:widget"]);!1===(null===(g=(f=n.getDerivedFunction).isVisible)||void 0===g?void 0:g.call(f,h.name))&&(y=!0),p[h.group]=y}if("table"===h.category){var b=h,I=b.columns,_=Object.keys(I),w="left",S=!(null!==(m=b.displayHeadersHorizontally)&&void 0!==m&&m),D=[],C=(0,r.calculateColumnWidth)(I),E=_.map(function(e){return I[e].title.length}).reduce(function(e,t){return Math.max(e,t)});_.forEach(function(e){var t,i,o,a,l,u,d,s,c,v,p,f,g=!I[e].readonly,m=C[e],h=null!==(o=null===(i=null===(t=n.viewModel.derivedFunctions)||void 0===t?void 0:t.disableTableCells)||void 0===i?void 0:i.call(t,e))&&void 0!==o?o:[];D.push({dataField:e,editable:!!g&&void 0,columnWidth:I[e].columnWidth?I[e].columnWidth+"%":m+"%",width:I[e].width?I[e].width+"%":m+"%",dataSort:I[e].isSortable,headerAlign:S?w:null!==(l=null!==(a=I[e].headerAlign)&&void 0!==a?a:I[e].dataAlign)&&void 0!==l?l:w,dataAlign:null!==(d=null!==(u=I[e].dataAlign)&&void 0!==u?u:I[e].headerAlign)&&void 0!==d?d:w,disabledRows:null!==(s=I[e].disabledRows)&&void 0!==s?s:h,tdStyle:(0,r.getCellStyle)(I[e].readonly),headerText:null===(c=I[e])||void 0===c?void 0:c.columnTip,hidden:null!==(f=null===(p=null===(v=n.viewModel.derivedFunctions)||void 0===v?void 0:v.hideTableColumn)||void 0===p?void 0:p.call(v,e))&&void 0!==f&&f})}),D=D.map(function(e){return i(i({},e),{thStyle:(0,r.getHeaderStyle)(E,S)})}),c[b.group]=i(i({},c[b.group]),((l={})[b.name]=(0,r.getTableUiSchema)(b,D),l))}else c[h.group]=i(i({},c[h.group]),((u={})[h.name]=i(i({},function(e,t){var n,r,l,u,d,s,c,v,p,f,g,m,h,y,b={};e.uiBehavior&&(null===(u=(0,o.getKeys)(null!==(l=e.uiBehavior)&&void 0!==l?l:{}))||void 0===u||u.forEach(function(t){var n,i;if("readonly"===t)b["ui:readonly"]=null===(n=e.uiBehavior)||void 0===n?void 0:n[t];else b[t]=null===(i=e.uiBehavior)||void 0===i?void 0:i[t]}));(0,a.isUrl)(e)?b["ui:widget"]="url":(0,a.isImage)(e)?b["ui:widget"]="image":"file_load"===e.category?(b["ui:field"]="file_load",b["ui:readonly"]=null===(d=e.uiBehavior)||void 0===d?void 0:d.readonly):"time"===e.type?b["ui:field"]="TimeComponent":"frequency"===e.type?b["ui:field"]="frequency":"file_save"===e.category&&(b["ui:field"]="file_save",b["ui:readonly"]=null===(s=e.uiBehavior)||void 0===s?void 0:s.readonly);var I={};if(t){var _=null===(v=(c=t.getDerivedFunction).getUiBehavior)||void 0===v?void 0:v.call(c,e.name);void 0!=_&&(I=i(i({},I),_),-1!=(null===(p=(0,o.getKeys)(null!==I&&void 0!==I?I:{}))||void 0===p?void 0:p.indexOf("readonly"))&&(I["ui:readonly"]=I.readonly,delete I.readonly));var w=null!==(m=null===(g=(f=t.getDerivedFunction).isEnabled)||void 0===g?void 0:g.call(f,e.name))&&void 0!==m?m:(0,a.isModeActive)("isEnabled",e,t.viewModel.getComponent);void 0!=w&&(I=i(i({},I),((n={})["ui:readonly"]=!w,n)));var S=null===(y=(h=t.getDerivedFunction).isVisible)||void 0===y?void 0:y.call(h,e.name);void 0!=S&&(S||(I=i(i({},I),((r={})["ui:widget"]="hidden",r))))}return b=i(i({},b),I)}(h,n)),function(e,t){var n={};if(t.isControlledByInterface(e)){var i=t.getProcessedArgValue(e);i&&(n={"ui:readonly":!0,"ui:help":"Controlled by "+i.interface})}return n}(h.name,n)),u))}}),p)p[f]&&(c[f]=i(i({},c[f]),((l={})["ui:widget"]="hidden",l)))}return c};var r=n(3226),o=n(5056),a=n(4579)},3558:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptActionsBuilder=void 0,t.getDefaultInterruptActions=function(e,t){return t?o.createActionBuilder(e).createActionFor(t).addActionIfEnabled(!0).addActionIfDisabled(!1).buildActions():[]};var r=n(5037),o=function(){function e(e){var t=this;this.actions=[],this.createActionFor=function(e){var n;return t.actions=t.buildActions(),t.curComponent=e?null===(n=t.model.getComponent(e))||void 0===n?void 0:n.component:void 0,t.curComponentName=e,t.tableRowId=void 0,t.tableRowCol=void 0,t.tableCellPath=void 0,t},this.addActionIfEnabled=function(e){if(!t.curComponentName||!t.curComponent)return t;if(!t.isActionValueAcceptable(t.curComponent,e))return t;var n={tabId:t.curComponent.tabs[0],value:e};if("table"===t.curComponent.category){if(!t.tableCellPath)return t;n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name,".").concat(t.tableCellPath),rowId:t.tableRowId})}else n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name)});return t.actions.push({validFor:!0,action:{type:"[FORM] SUBMIT",payload:n}}),t},this.addActionIfDisabled=function(e){if(!t.curComponentName||!t.curComponent)return t;if(!t.isActionValueAcceptable(t.curComponent,e))return t;var n={tabId:t.curComponent.tabs[0],value:e};if("table"===t.curComponent.category){if(!t.tableCellPath)return t;n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name,".").concat(t.tableCellPath),rowId:t.tableRowId})}else n=i(i({},n),{path:"".concat(t.curComponent.group,".").concat(t.curComponent.name)});return t.actions.push({validFor:!1,action:{type:"[FORM] SUBMIT",payload:n}}),t},this.setPathToTableCell=function(e,n){var i;return"table"!==(null===(i=t.curComponent)||void 0===i?void 0:i.category)||(t.tableRowId=e,t.tableRowCol=n,t.tableCellPath="".concat(e,".").concat(n)),t},this.isActionValueAcceptable=function(e,n){var i,o,a,l,u,d,s,c;if("hardware"===e.category){if("ComboBox"===e.type){if(!(null===(v=null===(i=(0,r.getSettingFromComponent)(t.model,e))||void 0===i?void 0:i.options)||void 0===v?void 0:v.some(function(t){var i;return t[null!==(i=e.displayOptionSetting)&&void 0!==i?i:"alias"]===n})))return!1}else if("boolean"===e.type&&!0!==n&&!1!==n)return!1}else if("software"===e.category){if("ComboBox"===e.type){if(!(null===(v=e.options)||void 0===v?void 0:v.some(function(e){return e===n})))return!1}else if("boolean"===e.type&&!0!==n&&!1!==n)return!1}else if("table"===e.category){if(!t.tableRowCol)return!1;var v;if("ComboBox"===(null===(a=null===(o=e.columns)||void 0===o?void 0:o[t.tableRowCol])||void 0===a?void 0:a.type)){if(!(null===(v=null===(d=null===(u=null===(l=e.columns)||void 0===l?void 0:l[t.tableRowCol])||void 0===u?void 0:u.defaultValue)||void 0===d?void 0:d.options)||void 0===v?void 0:v.some(function(e){return e===n})))return!1}else if("boolean"===(null===(c=null===(s=e.columns)||void 0===s?void 0:s[t.tableRowCol])||void 0===c?void 0:c.type)&&!0!==n&&!1!==n)return!1}return!0},this.buildActions=function(){return t.actions},this.model=e}return e.createActionBuilder=function(t){return new e(t)},e}();t.InterruptActionsBuilder=o},4139:function(e){"use strict";e.exports=JSON.parse('{"moduleName":"Flash","deviceType":"PIC","booleanValues":{"true":"enabled","false":"disabled"},"UIGroups":{},"UIOrder":{},"tabs":{"register":"Register Initialization"},"isEntryPoint":false,"templates":[{"src":"output/flash-a-core-ftl/flash.c.ftl","dest":"flash/src/flash.c","isGeneratableProperty":"blockingAPIGenerate"},{"src":"output/flash-a-core-ftl/flash.h.ftl","dest":"flash/flash.h","isGeneratableProperty":"blockingAPIGenerate"},{"src":"output/flash-a-core-ftl/flash_interface.h.ftl","dest":"flash/flash_interface.h","isGeneratableProperty":"enableInterfaceDefinitionGeneration"},{"src":"output/flash-a-core-ftl/flash_types.h.ftl","dest":"flash/flash_types.h"},{"src":"output/flash-a-core-ftl/flash_nonblocking.c.ftl","dest":"flash/src/flash_nonblocking.c","isGeneratableProperty":"nonBlockingAPIGenerate"},{"src":"output/flash-a-core-ftl/flash_nonblocking.h.ftl","dest":"flash/flash_nonblocking.h","isGeneratableProperty":"nonBlockingAPIGenerate"}],"imports":{"nvm_ctrl_32bit_upb_v1":{"import":{"interfaceId":{"name":"nvm_ctrl_32bit_upb_v1","version":"1.0.0"},"isRequired":true}},"system_16bit_initializer":{"nodeModule":{"importName":"system_16bit_initializer","node":"@microchip/system-16bit-initializer"},"import":{"interfaceId":{"name":"system-16bit-initializer","version":"^1.0.0"}}},"config_16bit_interface":{"import":{"interfaceId":{"name":"config-16bit-interface","version":"^1.0.0"}}},"interrupt_service":{"import":{"interfaceId":{"name":"interrupt-16bit-interface","version":"^1.0.0"}}}},"exports":{"flash_interface":{"interfaces":[{"interfaceId":{"name":"flash-interface","version":"1.3.1"}}]}},"peripherals":[{"interfaceId":{"name":"nvm_ctrl_32bit_upb_v1","version":"1.0.0"},"registers":{"NVMCON":[{"setting":"NVMOP","name":"nvmopNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"DRBV","name":"drbvNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"LOCK","name":"lockNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"P2ACTIV","name":"p2activNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]},{"setting":"SFTSWP","name":"sftswpNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"NVMPIDL","name":"nvmpidlNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"WRERR","name":"wrerrNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"WREN","name":"wrenNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"WR","name":"wrNvmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["main"]},{"setting":"WREC","name":"wrecNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["register"]},{"setting":"WRRE","name":"wrreNvmcon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]}],"NVMADR":[{"setting":"NVMADR","name":"nvmadrNvmadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA0":[{"setting":"DATA0","name":"data0Nvmdata0","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA1":[{"setting":"DATA1","name":"data1Nvmdata1","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA2":[{"setting":"DATA2","name":"data2Nvmdata2","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMDATA3":[{"setting":"DATA3","name":"data3Nvmdata3","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMSRCADR":[{"setting":"SRCADR","name":"srcadrNvmsrcadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCCON":[{"setting":"FLTINJ","name":"fltinjNvmecccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"SECIE","name":"secieNvmecccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"ECCLOCK","name":"ecclockNvmecccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]}],"NVMECCSTAT":[{"setting":"DED","name":"dedNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"DEDO","name":"dedoNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"SEC","name":"secNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"SECO","name":"secoNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"FLEC","name":"flecNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["register"]},{"setting":"ESEL","name":"eselNvmeccstat","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]}],"NVMECCFPTR":[{"setting":"FLT1LPTR","name":"flt1lptrNvmeccfptr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]},{"setting":"FLT2LPTR","name":"flt2lptrNvmeccfptr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCFADR":[{"setting":"ECCFADR","name":"eccfadrNvmeccfadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEADR":[{"setting":"ECCEADR","name":"ecceadrNvmecceadr","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA0":[{"setting":"ECCEDATA0","name":"eccedata0Nvmeccedata0","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA1":[{"setting":"ECCEDATA1","name":"eccedata1Nvmeccedata1","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA2":[{"setting":"ECCEDATA2","name":"eccedata2Nvmeccedata2","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCEDATA3":[{"setting":"ECCEDATA3","name":"eccedata3Nvmeccedata3","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMECCVAL":[{"setting":"ECCVAL","name":"eccvalNvmeccval","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["register"]}],"NVMECCSYND":[{"setting":"ECCSYND","name":"eccsyndNvmeccsynd","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["register"]}],"NVMCRCCON":[{"setting":"CRCEC","name":"crcecNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["register"]},{"setting":"OM","name":"omNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"CRCIDL","name":"crcidlNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"START","name":"startNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"ON","name":"onNvmcrccon","category":"hardware","description":"Insert Description Here","type":"boolean","group":"hardware","tabs":["main"]},{"setting":"DELAY","name":"delayNvmcrccon","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCST":[{"setting":"CRCSTART","name":"crcstartNvmcrcst","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCEND":[{"setting":"CRCEND","name":"crcendNvmcrcend","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCSEED":[{"setting":"CRCSEED","name":"crcseedNvmcrcseed","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["main"]}],"NVMCRCDATA":[{"setting":"CRCDATA","name":"crcdataNvmcrcdata","category":"hardware","description":"Insert Description Here","type":"string","group":"hardware","tabs":["register"]}]},"properties":["PROGRAM_BEGIN_ADDRESS","FLASH_HAS_ROW_PROGRAMMING","FLASH_ENDURANCE_MINIMUM","FLASH_WORD_WRITE_SIZE_IN_INSTRUCTIONS","FLASH_END_ADDRESS","FLASH_WORD_WRITE_OP_CODE","FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS","FLASH_WRITE_ROW_SIZE_IN_INSTRUCTIONS","FLASH_HAS_DUAL_PARTITION","FLASH_WRITE_ROW_OP_CODE","FLASH_BYTES_PER_INSTRUCTION","FLASH_HAS_ECC","FLASH_ERASE_PAGE_OP_CODE","FLASH_SECOND_PARTITION_END_ADDRESS","FLASH_FIRST_PARTITION_END_ADDRESS","FLASH_SECOND_PARTITION_PROGRAM_START_ADDRESS","FLASH_SECOND_PARTITION_START_ADDRESS"]}]}')},4141:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var r=n(2265),o=n(9696);t.create=function(e,t){var n,a,l,u=null===(a=(n=t()).getModuleConfig)||void 0===a?void 0:a.call(n),d=(0,o.createPrototypeImports)(e,t()),s=(0,r.createPrototypeExports)(u);return{payload:e,imports:i({},d),exports:s,isSingletonPerDevice:null===u||void 0===u?void 0:u.isSingletonPerDevice,isEntryPoint:null===(l=null===u||void 0===u?void 0:u.isEntryPoint)||void 0===l||l}}},4308:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UidMapBuilder=void 0;var n=function(){function e(){this.uidMap={}}return e.prototype.addDefaultRows=function(e){var t=this;return e.forEach(function(e,n){var i;t.uidMap[e.uid]=null!==(i=e.rowId)&&void 0!==i?i:n}),this},e.prototype.addDynamicRows=function(e){var t=this;return e.forEach(function(e){var n=null===e||void 0===e?void 0:e.uid;n&&n.indexOf("dynamicRow_")>-1&&t.incrementUidAndShift(n,e.rowId)}),this},e.prototype.removeRows=function(e){var t=this;return e.forEach(function(e){var n=null===e||void 0===e?void 0:e.uid;n&&(null===e||void 0===e?void 0:e.dynamicallyRemoved)&&(t.uidMap[n]=-1)}),this},e.prototype.sortByValue=function(){var e=this,t=0,n=[];return this.getUidKeys().forEach(function(t){var i;n.push(((i={})[t]=e.uidMap[t],i))}),(n=n.sort(function(e,t){return e[Object.keys(e)[0]]-t[Object.keys(t)[0]]})).forEach(function(n){var i=Object.keys(n)[0];e.uidMap[i]>-1&&(e.uidMap[i]=t++)}),this},e.prototype.create=function(){return this.uidMap},e.prototype.incrementUidAndShift=function(e,t){var n=this;this.getUidKeys().forEach(function(e){n.uidMap[e]>=t&&n.uidMap[e]++}),this.uidMap[e]=t},e.prototype.getUidKeys=function(){return Object.keys(this.uidMap)},e}();t.UidMapBuilder=n},4349:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=e(t),a=0;a<i.length;a++)"default"!==i[a]&&r(n,t,i[a]);return o(n,t),n}}(),l=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getModel=void 0;var u=a(n(8898)),d=n(6298),s=n(5037),c=n(9943),v=n(2189),p=n(2836),f=n(8045),g=n(3226);t.getModel=function(e,t){return new m(e,t)};var m=function(){function e(e,t){var n,r=this;this.getState=function(){return r.prototype.state},this.getPayload=function(){return r.prototype.payload},this.getImports=function(){return r.prototype.imports},this.getExports=function(){return r.prototype.exports},this.getCacheData=function(){var e,t;return null!==(t=null===(e=r.prototype)||void 0===e?void 0:e.cacheData)&&void 0!==t?t:void 0},this.getName=function(){return r.getAutoModuleAppModel().getModuleName()},this.getIdeFlavor=function(){return r.prototype.ideFlavor},this.getCategory=function(){return r.getAutoModuleAppModel().getModuleCategory()},this.getActiveName=function(){var e,t,n;return null!==(n=null===(t=(e=r.getDerivedFunctions()).getActiveName)||void 0===t?void 0:t.call(e))&&void 0!==n?n:r.getName()},this.getGlobalNames=function(){var e,t,n;return null!==(n=null===(t=(e=r.getDerivedFunctions()).getGlobalNames)||void 0===t?void 0:t.call(e))&&void 0!==n?n:[]},this.getAutoModuleAppModel=function(){return r.autoModuleAppModel||(r.autoModuleAppModel=(0,d.createAutoModuleAppModel)(r)),r.autoModuleAppModel},this.getPrototypeModule=function(){return r.prototype},this.getRegisterValues=function(e){return r.registerValues||(r.registerValues=(0,s.getRegisterValues)(r,e)),r.registerValues},this.getMyFunctionNamesCache=function(){return r.getMyFunctionsNames},this.getInterrupts=function(){var e,t;return r.interrupts||(r.interrupts=null===(t=null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral())||void 0===t?void 0:t.interrupts),r.interrupts},this.getProperties=function(){var e,t;return r.properties||(r.properties=null===(t=null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral())||void 0===t?void 0:t.properties),r.properties},this.getRegisters=function(){var e,t;return r.registers||(r.registers=null===(t=null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral())||void 0===t?void 0:t.registers),r.registers},this.getHardware=function(e){var t,n,i,o,a,l,u,d,v,p,f;if(e=(0,s.getFriendlyInterfaceId)(e)){var g=null===(i=null===(n=null===(t=r.getPrototypeModule())||void 0===t?void 0:t.imports)||void 0===n?void 0:n[e])||void 0===i?void 0:i.payload;if(!g)return;return{getPeripheral:function(){return g},getName:function(){return g.name},instanceNumber:Number(null!==(o=g.instance)&&void 0!==o?o:g.name.replace(g.group,""))}}if(!r.defaultHardware){var m=(0,s.getFriendlyInterfaceId)(null===(u=null===(l=null===(a=(0,c.getConfigData)(r))||void 0===a?void 0:a.peripherals)||void 0===l?void 0:l[0])||void 0===u?void 0:u.interfaceId.name),h=null===(p=null===(v=null===(d=r.getPrototypeModule())||void 0===d?void 0:d.imports)||void 0===v?void 0:v[null!==m&&void 0!==m?m:""])||void 0===p?void 0:p.payload;h&&(r.defaultHardware={getPeripheral:function(){return h},getName:function(){return h.name},instanceNumber:Number(null!==(f=h.instance)&&void 0!==f?f:h.name.replace(h.group,""))})}return r.defaultHardware},this.getPeripheralDescription=function(){var e;return null===(e=r.getHardware())||void 0===e?void 0:e.getPeripheral()},this.getDerivedData=function(){return r.derivedData||(r.derivedData=r.getDerivedDataFunction(r)),r.derivedData},this.getDerivedFunctions=function(){return r.getMyFunctionsCache},this.getDerivedFunction=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(r.getMyFunctionNamesCache().has(String(e)))return null===(n=null===(t=r.getDerivedFunctions())||void 0===t?void 0:t[e])||void 0===n?void 0:n.call.apply(n,l([t],i,!1))},this.getExportInterfaces=function(){return r.exportInterfaces||(r.exportInterfaces=(0,v.createExportInterfaces)(r.prototype.exports,r)),r.exportInterfaces},this.getImportInterfaces=function(){return r.importInterfaces||(r.importInterfaces=(0,p.createImportInterfaces)(r.prototype.imports,r)),r.importInterfaces},this.isControlledByInterface=function(e){var t;return 1==(null===(t=r.getExportInterfaces())||void 0===t?void 0:t.isControlledByInterface(e))},this.getAssignedImport=function(e){var t;if((null===(t=r.prototype.imports)||void 0===t?void 0:t[e])&&u.isAssigned(r.prototype.imports[e]))return r.prototype.imports[e]},this.getImportValue=function(e){var t;return null===(t=r.getAssignedImport(e))||void 0===t?void 0:t.payload},this.filterImportBySetting=function(e,t,n){var r,o=i({},e);return e[t]&&(o=i(i({},o),((r={})[t]=u.filterOptions(e[t],function(e){return n(e)}),r))),o},this.isComponentValue=function(e,t){var n,i=r.getComponentValue(e,t),o=new RegExp("enabled?");return!!i&&("string"===typeof i?"true"===i||"false"!==i&&o.test(null===(n=String(i))||void 0===n?void 0:n.toLowerCase()):"boolean"===typeof i&&i)},this.getComponent=function(e){return r.getAutoModuleAppModel().getComponent(e)},this.getPCPHelper=function(){return r.pcpHelper||(r.pcpHelper=new f.PCPHelper,r.pcpHelper.setCallbacks({getCompletePinData:function(){var e,t;return null===(t=(e=r.getDerivedFunctions()).getPinsLogic)||void 0===t?void 0:t.call(e).getCompletePinData(r)},getRowData:function(e){var t,n;return null===(n=(t=r.getDerivedFunctions()).getPinsLogic)||void 0===n?void 0:n.call(t).getRowData(r,e)},getPinsData:function(){var e,t;return null===(t=(e=r.getDerivedFunctions()).getPinsLogic)||void 0===t?void 0:t.call(e).getPinsData()}})),r.pcpHelper},this.getTableHelpers=g.getTableHelpers,this.prototype=e,this.getDerivedDataFunction=t,this.getMyFunctionsCache=this.getDerivedData().getMyFunctions(),this.getMyFunctionsNames=null!==(n=new Set(Object.keys(this.getDerivedData().getMyFunctions())))&&void 0!==n?n:{}}return e.prototype.processDynamicComps=function(){this.getAutoModuleAppModel(),this.autoModuleAppModel.processDynamicComps()},e.prototype.getComponentValue=function(e,t){return this.getAutoModuleAppModel().getComponentValue(e,t)},e}()},4579:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isComponentInvisible=void 0,t.isUrl=function(e){return"software"===e.category&&"string"===e.type&&"url"===e.format},t.isImage=function(e){return"software"===e.category&&"string"===e.type&&"image"===e.format},t.isModeActive=r,t.shouldPopulateView=function(e,t,n,r){var o;if(!1===function(e,t){var n=!0;(null===t||void 0===t?void 0:t.displayViewOnImportAssigned)&&t.displayViewOnImportAssigned.forEach(function(t){void 0==e(t)&&(n=!1)});return n}(n,r))return!1;return!0===(null===(o=null===e||void 0===e?void 0:e.shouldPopulateViewAtStartup)||void 0===o?void 0:o.call(e))||(0,i.isFullyAssigned)(t,r)};var i=n(6074);function r(e,t,n){var i,r,o,a,l,u;if((null===(i=null===t||void 0===t?void 0:t.mode)||void 0===i?void 0:i.operation)===e){var d=n(t.mode.masterComponent);if(null===(r=t.mode)||void 0===r?void 0:r.matchRegEx)return(null!==(u=null===(l=null===(a=null===(o=null===d||void 0===d?void 0:d.value)||void 0===o?void 0:o.toString())||void 0===a?void 0:a.match(t.mode.matchRegEx))||void 0===l?void 0:l.length)&&void 0!==u?u:0)>0}}t.isComponentInvisible=function(e,t){var n,i,o=e.isVisibleProperty&&0==t.getDerivedFunction(e.isVisibleProperty);return!1===(null===(i=(n=t.getDerivedFunctions()).isVisible)||void 0===i?void 0:i.call(n,e.name))||o||!1===r("isVisible",e,t.getComponent)}},4757:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.process=void 0;var r=n(4349),o=n(5037),a=n(7295),l=n(9943),u=n(7864),d=n(874);t.process=function(e,t,n){var s,c,v,p,f,g,m,h,y,b,I,_,w,S,D,C,E,A,O,P,M,N,R,F,V,T;e=(0,o.populateLoadedFiles)(e);var H=(0,r.getModel)(e,n);if(!H)return e;H.processDynamicComps();var x=i({},e);switch(x=i(i({},x),{showRegisterEditor:(0,l.getConfigData)(H,!0).showRegisterEditor}),t){case"arguments":x=i(i({},x),{imports:null!==(s=H.getImportInterfaces().createProcessedImports(t))&&void 0!==s?s:e.imports,cacheData:null!==(p=null===(v=null===(c=null===H||void 0===H?void 0:H.getDerivedFunctions())||void 0===c?void 0:c.setCacheData)||void 0===v?void 0:v.call(c))&&void 0!==p?p:void 0});break;case"payloads":x=i(i({},x),{imports:null!==(f=H.getImportInterfaces().createProcessedImportsForDynamicAssignment(t))&&void 0!==f?f:e.imports,exports:null!==(g=H.getExportInterfaces().createProcessedExports())&&void 0!==g?g:e.exports,name:H.getName(),help:null!==(y=null===(h=null===(m=null===H||void 0===H?void 0:H.getDerivedFunctions())||void 0===m?void 0:m.overrideModuleLevelHelp)||void 0===h?void 0:h.call(m))&&void 0!==y?y:(0,l.getConfigData)(H,!0).help});break;case"results":x=i(i({},x),{imports:null!==(b=H.getImportInterfaces().createProcessedImports(t))&&void 0!==b?b:e.imports});break;case"views":var B=null!==(w=null===(_=null===H||void 0===H?void 0:(I=H.getDerivedFunctions()).templateData)||void 0===_?void 0:_.call(I))&&void 0!==w?w:{},L=(0,u.createAutoViewPayloads)(H);x=i(i({},x),{payload:i(i({},e.payload),{auto:L,customView:null===(D=null===(S=null===H||void 0===H?void 0:H.getDerivedFunctions())||void 0===S?void 0:S.getCustomView)||void 0===D?void 0:D.call(S,e)}),templateData:B,templates:(0,a.getTemplates)(H),alerts:null===(E=null===H||void 0===H?void 0:(C=H.getDerivedFunctions()).alerts)||void 0===E?void 0:E.call(C),name:H.getActiveName(),category:H.getCategory(),description:null!==(P=null===(O=null===(A=null===H||void 0===H?void 0:H.getDerivedFunctions())||void 0===A?void 0:A.getModuleDescription)||void 0===O?void 0:O.call(A))&&void 0!==P?P:(0,o.getModuleDefaultDescription)(),globalNames:null!==(R=null===(N=null===(M=null===H||void 0===H?void 0:H.getDerivedFunctions())||void 0===M?void 0:M.getGlobalNames)||void 0===N?void 0:N.call(M))&&void 0!==R?R:[],analytics:null!==(T=null===(V=(F=H.getDerivedFunctions()).getAnalytics)||void 0===V?void 0:V.call(F))&&void 0!==T?T:(0,d.getAnalyticsDefault)(H)});break;default:return e}return x}},5037:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getFriendlyInterfaceId=t.DependencySelector=t.populateLoadedFiles=t.getProcessedHandle=t.filterModeOptions=t.getSettingOptionsIfPresent=t.getOverrideDefaultValue=t.getSettingDefaultIfPresent=t.getOptionValueByName=t.getSettingFromComponent=t.getSettingBits=t.sortComments=t.getRegisterValues=t.hasConfigBits=t.getComboOptions=t.getDefaultValue=t.castComponent=void 0,t.getModuleDefaultDescription=function(){return};var o=r(n(9107)),a=n(7437),l=n(2102),u=n(5056),d=n(9943),s=n(6808);t.castComponent=function(e){switch(e.category){case"software":case"import":case"hardware":return e;default:throw Error("Unsupported Component Type")}};t.getDefaultValue=function(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e(t.name))&&void 0!==n?n:"ComboBox"===t.type?t.defaultValue.value:t.defaultValue};t.getComboOptions=function(e,t){var n,i;return null!==(n=null===e||void 0===e?void 0:e(t.name))&&void 0!==n?n:null===(i=null===t||void 0===t?void 0:t.defaultValue)||void 0===i?void 0:i.options};t.hasConfigBits=function(e){var n;return-1!=(null===(n=(0,t.getFriendlyInterfaceId)(e))||void 0===n?void 0:n.indexOf("configuration_bits"))};t.getRegisterValues=function(e,n){var i,r,a;if(!0===(null===(r=null===(i=e.getState())||void 0===i?void 0:i.contentMeta)||void 0===r?void 0:r.isUserEnRegRWMode))return(0,s.getRegisterEditorValues)(e,n);var l={},c=(0,d.getConfigData)(e);return n=(0,t.getFriendlyInterfaceId)(n),null===(a=null===c||void 0===c?void 0:c.peripherals)||void 0===a||a.forEach(function(i){var r,a,d,s=null!==(r=(0,t.getFriendlyInterfaceId)(i.interfaceId.name))&&void 0!==r?r:"";void 0!=n&&s!==n||!i.registers||null===(d=(0,u.getKeys)(null!==(a=i.registers)&&void 0!==a?a:{}))||void 0===d||d.forEach(function(n){var r,a,u,d,v,p,f,g,m,h,y,b=null===(a=null===(r=e.getHardware(s))||void 0===r?void 0:r.getPeripheral().registers)||void 0===a?void 0:a[n];if(b){y={comment:"",value:0,valueAsHex:"0x00",name:null===b||void 0===b?void 0:b.name,alias:null!==(u=null===b||void 0===b?void 0:b.alias)&&void 0!==u?u:null===b||void 0===b?void 0:b.name,por:b.defaultValue,settings:{}};var I=o.default.for(b),_=[];null===(d=i.registers)||void 0===d||d[n].forEach(function(n){var i,r,o,a,l,u=null===(i=b.settings)||void 0===i?void 0:i[n.setting];if(u)switch("R"!==u.type&&_.push("".concat(n.setting," ").concat(e.getComponentValue(n.name),"; ")),(null===y||void 0===y?void 0:y.settings)&&(y.settings[u.alias]=(0,t.getSettingBits)(b,u,null===(r=e.getComponent(n.name))||void 0===r?void 0:r.value,null!==(o=null===c||void 0===c?void 0:c.deviceType)&&void 0!==o?o:"PIC")),n.type){case"ComboBox":case"boolean":I.withNumberValue(u,null!==(l=(0,t.getOptionValueByName)(u,null===(a=e.getComponent(n.name))||void 0===a?void 0:a.value))&&void 0!==l?l:0);break;case"number":I.withNumberValue(u,e.getComponentValue(n.name));break;case"register":case"string":I.withNumberValue(u,Number(e.getComponentValue(n.name)))}}),b.settings?y.value=I.asNumber():(y.value=Number(null!==(m=e.getComponentValue(null!==(g=null===(f=null===(p=null===(v=i.registers)||void 0===v?void 0:v[n])||void 0===p?void 0:p[0])||void 0===f?void 0:f.name)&&void 0!==g?g:""))&&void 0!==m?m:0),_.push("".concat(y.name," ").concat(y.value,"; "))),y.valueAsHex="0x"+y.value.toString(16).toUpperCase(),y.comment=(0,t.sortComments)(_,b),l[null!==(h=null===b||void 0===b?void 0:b.alias)&&void 0!==h?h:b.name]=y}})}),l};t.sortComments=function(e,t){return e.sort(function(e,n){var i,r,o,a,l=null===(i=t.settings)||void 0===i?void 0:i[null===(r=e.split[" "])||void 0===r?void 0:r[0]],u=null===(o=t.settings)||void 0===o?void 0:o[null===(a=n.split(" "))||void 0===a?void 0:a[0]];return Number(null===u||void 0===u?void 0:u.mask)-Number(null===l||void 0===l?void 0:l.mask)}),e.join("")};t.getSettingBits=function(e,t,n,i){var r,o=0,l="",u=(0,a.getOptionByAlias)(n,t);return u?(o=Number(null!==(r=null===u||void 0===u?void 0:u.value)&&void 0!==r?r:0),l=n):(o=Number(n),l="0x"+Number(n).toString(16).toUpperCase()),{alias:t.alias,name:t.name,value:null!==o&&void 0!==o?o:0,valueAsHex:"0x"+o.toString(16).toUpperCase(),valueAsDescription:l,type:t.type,optionName:null===u||void 0===u?void 0:u.name,bitName:"PIC"===i?"".concat(e.name,"bits.").concat(t.name):"".concat(e.name,".").concat(t.name)}};t.getSettingFromComponent=function(e,n){var i,r,o=(0,d.getConfigData)(e);return e&&(null===(i=null===o||void 0===o?void 0:o.peripherals)||void 0===i||i.forEach(function(i){var o,a,l;if(!r){var d=(0,t.getFriendlyInterfaceId)(i.interfaceId.name),s=function(e,t){var n,i,r,o,a,l=null===(n=t.name.replace(t.setting.toLowerCase(),""))||void 0===n?void 0:n.toUpperCase(),d=null===(i=null===e||void 0===e?void 0:e.registers)||void 0===i?void 0:i[l];if(d)return d;for(var s=null===(r=t.name.replace(t.setting.toLowerCase(),""))||void 0===r?void 0:r.toUpperCase(),c=(0,u.getKeys)(null!==(o=null===e||void 0===e?void 0:e.registers)&&void 0!==o?o:{}),v=0,p=null!==c&&void 0!==c?c:[];v<p.length;v++){var f=p[v];if(s===f.replace(/_/g,""))return null===(a=null===e||void 0===e?void 0:e.registers)||void 0===a?void 0:a[f]}}(null===(o=e.getHardware(d))||void 0===o?void 0:o.getPeripheral(),n);r=s&&!s.settings?{alias:null!==(a=s.alias)&&void 0!==a?a:s.name,name:s.name,defaultValue:s.defaultValue,type:s.type,description:s.desc,porDefault:s.defaultValue}:null===(l=null===s||void 0===s?void 0:s.settings)||void 0===l?void 0:l[n.setting]}})),r};t.getOptionValueByName=function(e,t){if(e){var n=e.porDefault;return e.options&&e.options.forEach(function(e){e.name!==t&&e.description!==t||(n=e.value)}),Number(n)}};t.getSettingDefaultIfPresent=function(e,t,n){var i,r,o;if(void 0!==n)return n;if(e.overrideDefaultValue)return e.overrideDefaultValue;if(null===t||void 0===t?void 0:t.defaultValue){var l=(0,a.getOptionByName)(t.defaultValue,t);o=null!==(r=null===l||void 0===l?void 0:l[null!==(i=e.displayOptionSetting)&&void 0!==i?i:"alias"])&&void 0!==r?r:t.defaultValue}return o};t.getOverrideDefaultValue=function(e,t){var n,i;return null===(i=(n=t.getDerivedFunctions()).overrideDefaultValues)||void 0===i?void 0:i.call(n,e.name)};t.getSettingOptionsIfPresent=function(e,n,i){var r,o=[""];if(n){var a=e.mode?(0,t.filterModeOptions)(null!==(r=n.options)&&void 0!==r?r:[],e,i):n.options;o=(0,l.map)(null!==a&&void 0!==a?a:[],function(t){var n,i;return null!==(i=t[null!==(n=e.displayOptionSetting)&&void 0!==n?n:"alias"])&&void 0!==i?i:t.alias})}return o};t.filterModeOptions=function(e,t,n){var i,r,o,a;if("filterOptions"!=(null===(i=t.mode)||void 0===i?void 0:i.operation)||void 0==n)return e;var d=(0,l.find)(null!==(a=(0,u.getKeys)(null!==(o=null===(r=t.mode)||void 0===r?void 0:r.optionModes)&&void 0!==o?o:{}))&&void 0!==a?a:[],function(e){var i,r,o,a,l=null===(r=null===(i=t.mode)||void 0===i?void 0:i.optionModes)||void 0===r?void 0:r[e];return!!l&&(null!==(a=null===(o=null===n||void 0===n?void 0:n.match(l))||void 0===o?void 0:o.length)&&void 0!==a?a:-1)>0});void 0===d&&(d=n);var s=(0,l.filter)(null!==e&&void 0!==e?e:[],function(e){var n,i,r,o;if(e.mode&&d){var a=null===(i=null===(n=t.mode)||void 0===n?void 0:n.optionModes)||void 0===i?void 0:i[d];if(a)return(null!==(o=null===(r=e.mode.match(a))||void 0===r?void 0:r.length)&&void 0!==o?o:-1)>0}return!0});return s};t.getProcessedHandle=function(e,t){var n,r,o,a;return e&&(e=i(i({},e),{label:null!==(a=null!==(o=null!==(r=null!==(n=null===e||void 0===e?void 0:e.label)&&void 0!==n?n:null===t||void 0===t?void 0:t.customName)&&void 0!==r?r:null===t||void 0===t?void 0:t.moduleName)&&void 0!==o?o:null===t||void 0===t?void 0:t.name)&&void 0!==a?a:e.providerId+" : "+e.exportId})),e};t.populateLoadedFiles=function(e){var t,n=i({},e),r={};if(void 0!==n.loadedFiles)for(var o in n.loadedFiles){var a=n.loadedFiles[o];r[o]=a}if(void 0!==(null===(t=n.state)||void 0===t?void 0:t.loadedFiles))for(var o in n.state.loadedFiles){a=n.state.loadedFiles[o];r[o]=a}return n.loadedFiles=r,n};var c=function(){function e(e,n){var i=this;this.noneSelection={label:"None"},this.createOptionEntry=function(e){return{label:i.createOptionLabel(e.handle,e.payload),value:e}},this.createOptionLabel=function(e,n){var i,r;return null!==(r=null===(i=(0,t.getProcessedHandle)(e,n))||void 0===i?void 0:i.label)&&void 0!==r?r:""},this.model=e,this.component=n}return e.prototype.generateDropdownOptions=function(){var e=[],t=this.model.getImports()[this.component.importId],n=null===t||void 0===t?void 0:t.options;if(this.shouldAllowUnselectDependency(t,n)&&e.push(this.noneSelection),void 0!==n)for(var i in n)e.push(this.createOptionEntry(n[i]));return e},e.prototype.getDropdownOptionNames=function(){var e=[];return this.generateDropdownOptions().forEach(function(t){return e.push(t.label)}),e},e.prototype.shouldAllowUnselectDependency=function(e,t){return void 0!=e&&0!=e.isUnassignable},e}();t.DependencySelector=c;t.getFriendlyInterfaceId=function(e){return e=null===e||void 0===e?void 0:e.replace(/ /g,"").replace(/-/g,"_")}},5056:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toDictionary=t.assertNotNull=t.map=t.forEach=t.values=t.getKeys=void 0;t.getKeys=function(e){return Object.getOwnPropertyNames(e)};t.values=function(e){return(0,t.getKeys)(e).map(function(t){return e[t]})};t.forEach=function(e,n){(0,t.getKeys)(e).forEach(function(t){return n(t,e[t])})};t.map=function(e,n){return(0,t.getKeys)(e).map(function(t){return n(t,e[t])})};t.assertNotNull=function(e,t){if(null==e)throw new Error(t)};t.toDictionary=function(e,t,n){var i={};return e.forEach(function(e){i[t(e)]=n(e)}),i}},5623:function(e){"use strict";e.exports=JSON.parse('{"name":"@microchip/flash-interface","version":"1.3.1","license":"SEE LICENSE IN LICENSE.txt","main":"lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"build":"tsc","test":"jest","lint:nofix":"eslint \\"./src/**/*.{ts,tsx}\\" --quiet","lint":"tsc --noEmit && yarn lint:nofix --fix"},"husky":{"hooks":{"pre-commit":"tsc --noEmit && lint-staged"}},"lint-staged":{"./src/**/*.{ts,tsx}":["eslint --fix"]},"bitBucketRepository":"https://bitbucket.microchip.com/projects/CC16SCRIP/repos/basic-flash-interface/browse","repository":{"type":"git","url":"git+ssh://git@https://bitbucket.microchip.com/scm/cc16scrip/basic-flash-interface.git"},"publishConfig":{"registry":"https://artifacts.microchip.com/artifactory/api/npm/npm/"},"jest":{"testPathIgnorePatterns":["/node_modules/","/run/","/lib/"],"modulePathIgnorePatterns":["<rootDir>/run"],"preset":"ts-jest","collectCoverage":true},"dependencies":{"@microchip/scf-common":"^3.5.0","@microchip/scf-interface":"^1.4.0"},"devDependencies":{"@types/jest":"^24.0.14","@types/node":"^12.0.10","@typescript-eslint/eslint-plugin":"^2.27.0","@typescript-eslint/parser":"^2.27.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","fs-extra":"^8.1.0","husky":"^4.2.4","jest":"^24.8.0","lint-staged":"^10.2.0","prettier":"^2.0.4","ts-jest":"^24.0.2","typescript":"^3.8.3"},"files":["lib/**/*"],"notificationEmail":"03234d44.microchip.com@amer.teams.ms"}')},5981:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasModes=t.processRegisterModes=void 0;var r=n(5056);t.processRegisterModes=function(e,n,o){var a,l;if(!(0,t.hasModes)(e))return n;var u=i(i({},n),{registers:i({},n.registers)});return null===(l=(0,r.getKeys)(null!==(a=null===e||void 0===e?void 0:e.registers)&&void 0!==a?a:{}))||void 0===l||l.forEach(function(t){var n,i,a,l,d,s,c,v=null===(n=null===e||void 0===e?void 0:e.registers)||void 0===n?void 0:n[t],p=!1;null===v||void 0===v||v.forEach(function(e){var n,i,r,a,l,d,s,c,v,f,g,m;if("registerFilter"===(null===(n=null===e||void 0===e?void 0:e.mode)||void 0===n?void 0:n.operation)){var h=null===(r=null===o||void 0===o?void 0:o.getComponent(null===(i=null===e||void 0===e?void 0:e.mode)||void 0===i?void 0:i.masterComponent))||void 0===r?void 0:r.value;if(!new RegExp(null!==(l=null===(a=null===e||void 0===e?void 0:e.mode)||void 0===a?void 0:a.matchRegEx)&&void 0!==l?l:"").test(h))void 0!==(null===(c=null===(s=null===(d=null===u||void 0===u?void 0:u.registers)||void 0===d?void 0:d[t])||void 0===s?void 0:s.settings)||void 0===c?void 0:c[e.setting])?null===(g=null===(f=null===(v=null===u||void 0===u?void 0:u.registers)||void 0===v?void 0:v[t])||void 0===f?void 0:f.settings)||void 0===g||delete g[e.setting]:null===(m=null===u||void 0===u?void 0:u.registers)||void 0===m||delete m[t],p=!0}}),p&&(0,r.getKeys)(null!==(l=null===(a=null===(i=null===u||void 0===u?void 0:u.registers)||void 0===i?void 0:i[t])||void 0===a?void 0:a.settings)&&void 0!==l?l:[]).length<=0&&(null===(s=null===(d=null===u||void 0===u?void 0:u.registers)||void 0===d?void 0:d[t])||void 0===s||delete s.settings,null===(c=null===u||void 0===u?void 0:u.registers)||void 0===c||delete c[t])}),u};t.hasModes=function(e){var t,n,i=!1;return null===(n=(0,r.getKeys)(null!==(t=null===e||void 0===e?void 0:e.registers)&&void 0!==t?t:{}))||void 0===n||n.forEach(function(t){for(var n,r=null===(n=null===e||void 0===e?void 0:e.registers)||void 0===n?void 0:n[t],o=0,a=null!==r&&void 0!==r?r:[];o<a.length;o++){var l=a[o];void 0!==(null===l||void 0===l?void 0:l.mode)&&(i=!0)}}),i}},6002:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RowPrefix=void 0,function(e){e.Default="defaultRow_",e.Dynamic="dynamicRow_"}(n||(t.RowPrefix=n={}))},6074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFullyAssigned=t.createPrototypeImport=void 0;var i=n(8898),r=n(2102),o=n(5037);t.createPrototypeImport=function(e,t){var n,i;return null===(i=null===(n=null===t||void 0===t?void 0:t.imports)||void 0===n?void 0:n[e])||void 0===i?void 0:i.import};t.isFullyAssigned=function(e,t){for(var n,r=a(null!==(n=null===t||void 0===t?void 0:t.peripherals)&&void 0!==n?n:[]),o=0;o<r.length;o++){var l=null===e||void 0===e?void 0:e[r[o]];if(!l||!(0,i.isAssigned)(l))return!1}return!0};var a=function(e){return(0,r.map)(e,function(e){var t;return null!==(t=(0,o.getFriendlyInterfaceId)(e.interfaceId.name))&&void 0!==t?t:""})}},6298:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o=e(t),a=0;a<o.length;a++)"default"!==o[a]&&i(n,t,o[a]);return r(n,t),n}}(),a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.MyAutoModuleAppModel=t.createAutoModuleAppModel=void 0;var l=n(7437),u=n(2102),d=n(5056),s=o(n(5037)),c=n(9943),v=n(6808);t.createAutoModuleAppModel=function(e,t){return new p(e,t)};var p=function(){function e(e,t){var n=this;this.getModuleName=function(){var e,t,i,r,o,a,l,u;return n.moduleName||(n.moduleName=null!==(u=null!==(a=null!==(r=null!==(i=null===(t=(e=n.model.getDerivedFunctions()).moduleName)||void 0===t?void 0:t.call(e))&&void 0!==i?i:n.model.getComponentValue("componentName"))&&void 0!==r?r:null===(o=n.model.getHardware())||void 0===o?void 0:o.getName())&&void 0!==a?a:null===(l=n.config)||void 0===l?void 0:l.moduleName)&&void 0!==u?u:"Module"),n.moduleName},this.getModuleCategory=function(){var e,t;return null===(t=(e=n.model.getDerivedFunctions()).moduleCategory)||void 0===t?void 0:t.call(e)},this.createComponentList=function(){var e={},t=n.getComponentList(),i=a(a([],t,!0),n.getDefaultDependencySelectors(t),!0);return i&&i.forEach(function(t){e[t.name]={component:t}}),e},this.getAllComponents=function(){return n.componentList},this.getComponentList=function(){var e,t,i,r=[],o=n.config;return o?(null===(t=(0,d.values)(null!==(e=o.softwareData)&&void 0!==e?e:{}))||void 0===t||t.forEach(function(e){r.push(e)}),null===(i=o.peripherals)||void 0===i||i.forEach(function(e){var t;e.registers&&(null===(t=(0,u.getKeys)(e.registers))||void 0===t||t.forEach(function(t){var i,o;null===(o=null===(i=e.registers)||void 0===i?void 0:i[t])||void 0===o||o.forEach(function(e){var i,o,a=null===(o=null===(i=n.model.getHardware())||void 0===i?void 0:i.getPeripheral().registers)||void 0===o?void 0:o[t];(null===a||void 0===a?void 0:a.settings)&&!a.settings[e.setting]&&"register"!==a.type||r.push(e)})}))}),r):r},this.getActions=function(e){var t,i;return n.model.getMyFunctionNamesCache().has("getActions")?null===(i=(t=n.model.getDerivedFunctions()).getActions)||void 0===i?void 0:i.call(t,e.name):e.actions},this.getDefaultComponentAction=function(e){var t,i=null===(t=n.getComponent(e))||void 0===t?void 0:t.component;return{type:"[FORM] SUBMIT",payload:{tabId:"main",path:"".concat(null===i||void 0===i?void 0:i.group,".").concat(null===i||void 0===i?void 0:i.name),value:"%v"}}},this.getSoftwareComponentValue=function(e,t){var i,r,o,a,l,u,d,c,v=n.model.getDerivedFunction(t.name);if(void 0!=v&&("time"===t.type||"frequency"===t.type))return v.defaultValue?v.defaultValue:null!==(a=null===(o=null===(r=null===(i=n.state)||void 0===i?void 0:i[e])||void 0===r?void 0:r[t.group])||void 0===o?void 0:o[t.name])&&void 0!==a?a:t.defaultValue;if(void 0!=v)return v;if(n.model.isControlledByInterface(t.name)){var p=n.model.getExportInterfaces().getProcessedArgValue(t.name);if(void 0!=p)return p.value}return null!==(c=null===(d=null===(u=null===(l=n.state)||void 0===l?void 0:l[e])||void 0===u?void 0:u[t.group])||void 0===d?void 0:d[t.name])&&void 0!==c?c:s.getDefaultValue(n.model.getDerivedFunctions().overrideDefaultValues,t)},this.getHardwareComponentValue=function(e,t,i){var r,o,a,l,u,d,c;if(n.hardware){var v=n.model.getDerivedFunction(t.name);if(void 0!=v)return v;if(n.model.isControlledByInterface(t.name)){var p=n.model.getExportInterfaces().getProcessedArgValue(t.name);if(void 0!=p)return p.value}var f,g=s.getOverrideDefaultValue(t,n.model);if(void 0!=(f=null!=(null===(a=null===(o=null===(r=n.state)||void 0===r?void 0:r[e])||void 0===o?void 0:o[t.group])||void 0===a?void 0:a[t.name])?n.state[e][t.group][t.name]:void 0!==g?g:void 0!==i?t.overrideDefaultValue?t.overrideDefaultValue:n.getDefaultValue(t.displayOptionSetting,i):null!==(l=t.overrideDefaultValue)&&void 0!==l?l:void 0)&&"filterOptions"===(null===(u=t.mode)||void 0===u?void 0:u.operation)){var m=s.getSettingOptionsIfPresent(t,i,null===(c=n.model.getComponent(null===(d=t.mode)||void 0===d?void 0:d.masterComponent))||void 0===c?void 0:c.value);-1==m.indexOf(f)&&(f=m[0])}return f}},this.getHardwareComponentBooleanValue=function(e,t,i){var r,o,a;if(n.hardware){var l=n.model.getDerivedFunction(t.name);if(void 0!=l)return l;if(n.model.isControlledByInterface(t.name)){var u=n.model.getExportInterfaces().getProcessedArgValue(t.name);if(void 0!=u){if(i&&i.options&&"boolean"===typeof u.value){var d="";if(!0===u.value)i.options.forEach(function(e){e.alias.toLowerCase().startsWith("enable")&&(d=e.alias)});else!1===u.value&&i.options.forEach(function(e){e.alias.toLowerCase().startsWith("disable")&&(d=e.alias)});return d}return u.value}}var c=s.getOverrideDefaultValue(t,n.model);return null!=(null===(a=null===(o=null===(r=n.state)||void 0===r?void 0:r[e])||void 0===o?void 0:o[t.group])||void 0===a?void 0:a[t.name])?n.state[e][t.group][t.name]?n.config.booleanValues.true:n.config.booleanValues.false:void 0!==c?c:void 0!==i?t.overrideDefaultValue?t.overrideDefaultValue:n.getDefaultValue(t.displayOptionSetting,i):void 0}},this.getDependencyComponentValue=function(e){var t=new s.DependencySelector(n.model,e),i=n.model.getImports()[e.importId];return(null===i||void 0===i?void 0:i.handle)?t.createOptionLabel(i.handle,i.payload):"None"},this.getFileLoadComponentValue=function(e){var t;return null===(t=n.model.getPrototypeModule().loadedFiles)||void 0===t?void 0:t[e.name]},this.getFileSaveComponentValue=function(e){var t,i=n.model.getDerivedFunction(e.name);return void 0!==i?i:null===(t=e.fileMeta)||void 0===t?void 0:t.defaultContent},this.getDefaultValue=function(e,t){var n;return void 0==e?t.defaultValue:t.defaultValue?null===(n=(0,l.getOptionByName)(t.defaultValue,t))||void 0===n?void 0:n[e]:void 0},this.model=e,this.state=this.model.getState(),this.hardware=this.model.getHardware(),this.config=(0,c.getConfigData)(e),this.componentList=this.createComponentList()}return e.prototype.processDynamicComps=function(){var e,t,n=this.componentList,i=[];null===(t=(e=this.model.getDerivedFunctions()).getDynamicComponents)||void 0===t||t.call(e).forEach(function(e){i.push(e)}),i.forEach(function(e){n[e.name]={component:e}}),this.componentList=n},e.prototype.getDefaultDependencySelectors=function(e){var t=[],n="main",i="software";e.length>0&&(n=e[0].tabs[0],i=e[0].group);var r=this.model.getImports();r&&Object.keys(r).forEach(function(r){var o;0===e.filter(function(e){return e.importId&&e.importId===r}).length&&t.push({name:r+" dependency selector",importId:r,category:"import",type:"ComboBox",description:r+" dependency selector",group:i,tabs:[n],uiBehavior:(o={},o["ui:widget"]="hidden",o)})});return t},e.prototype.isComponent=function(e){var t,n=null===(t=this.componentList[e])||void 0===t?void 0:t.component,i=this.getComponentValue(e);return"software"===n.category?"boolean"===n.type?this.getComponentValue(e):void 0!==i:"hardware"===n.category?i===this.config.booleanValues.true:void 0},e.prototype.getComponentValue=function(e,t){var n,i,r,o;if(!0===(null===(i=null===(n=this.model.getState())||void 0===n?void 0:n.contentMeta)||void 0===i?void 0:i.isUserEnRegRWMode)){var a=(0,v.getRegisterEditorComponentValue)(this.model,e,t);return void 0!==a?a:null===(r=this.getComponent(e))||void 0===r?void 0:r.value}return null===(o=this.getComponent(e))||void 0===o?void 0:o.value},e.prototype.getComponent=function(e){var t,n,i=this;if(void 0!=(null===(t=this.componentList[e])||void 0===t?void 0:t.value))return this.componentList[e];var r=null===(n=this.componentList[e])||void 0===n?void 0:n.component;return null===r||void 0===r||r.tabs.forEach(function(t){if(r){if("software"===r.category)i.componentList[e].value=i.getSoftwareComponentValue(t,r);else if("hardware"===r.category){var n=s.getSettingFromComponent(i.model,r);"boolean"===r.type?i.componentList[e].value=i.getHardwareComponentBooleanValue(t,r,n):i.componentList[e].value=i.getHardwareComponentValue(t,r,n)}else"import"===r.category?i.componentList[e].value=i.getDependencyComponentValue(r):"file_load"===r.category?i.componentList[e].value=i.getFileLoadComponentValue(r):"file_save"===r.category&&(i.componentList[e].value=i.getFileSaveComponentValue(r));i.componentList[e].component.actions=i.getActions(r)}}),this.componentList[e]},e}();t.MyAutoModuleAppModel=p},6808:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMappedComponentData=t.getRegisterEditorValues=t.getRegisterEditorComponentValue=void 0,t.getRegisterNameList=s,t.getRegisterKey=c,t.getSettingNameKey=v,t.getSettingAliasKey=p;var r=n(9809),o=n(5056),a=n(9943),l=n(5037),u=i(n(9107));function d(e){return"string"===typeof e?"enabled"===e:e}function s(e){var t,n=[];return null===(t=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===t||t.forEach(function(t){var i,r=null===e||void 0===e?void 0:e[t],o=null!==(i=null===r||void 0===r?void 0:r.name)&&void 0!==i?i:"";n.push(o)}),n}function c(e,t){var n,i;return null===(n=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===n||n.forEach(function(n){var r,o=null===e||void 0===e?void 0:e[n];(null!==(r=null===o||void 0===o?void 0:o.name)&&void 0!==r?r:"")===t&&(i=n)}),i}function v(e,t){var n,i;return null===(n=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===n||n.forEach(function(n){var r,o=null===e||void 0===e?void 0:e[n];(null!==(r=null===o||void 0===o?void 0:o.name)&&void 0!==r?r:"")===t&&(i=n)}),i}function p(e,t){var n,i;return null===(n=(0,o.getKeys)(null!==e&&void 0!==e?e:{}))||void 0===n||n.forEach(function(n){var r,o=null===e||void 0===e?void 0:e[n];(null!==(r=null===o||void 0===o?void 0:o.alias)&&void 0!==r?r:"")===t&&(i=null===o||void 0===o?void 0:o.name)}),i}t.getRegisterEditorComponentValue=function(e,n,i){var o,a,l,u,f,g,m,h,y,b,I,_,w,S,D,C,E,A,O,P,M,N,R,F,V,T,H,x,B,L,j,U,k,W,G,K,q,z,$,Y,X,Z,J,Q,ee,te,ne,ie,re,oe=null===(o=e.getHardware())||void 0===o?void 0:o.getPeripheral().registers,ae=null===(a=e.getHardware())||void 0===a?void 0:a.getPeripheral().interrupts,le=null!==(u=s(null===(l=e.getHardware())||void 0===l?void 0:l.getPeripheral().registers))&&void 0!==u?u:[],ue=null!==(f=Object.keys(null!==ae&&void 0!==ae?ae:{}))&&void 0!==f?f:[];if(-1!==le.indexOf(n)&&void 0===i){var de=null!==(g=c(me=e.getRegisterValues(),n))&&void 0!==g?g:"",se=Number(null===(m=null===oe||void 0===oe?void 0:oe[de])||void 0===m?void 0:m.defaultValue),ce=null===(h=null===me||void 0===me?void 0:me[de])||void 0===h?void 0:h.value;return void 0!==ce?ce:se}if(-1!==ue.indexOf(n.toUpperCase())){var ve=null===(I=null===(b=null===(y=e.getState())||void 0===y?void 0:y.register)||void 0===b?void 0:b.interrupts)||void 0===I?void 0:I[n.toUpperCase()],pe=null===(_=e.getComponent(n.toLowerCase()))||void 0===_?void 0:_.value;return d(void 0!==ve?ve:void 0!==(be=null===(S=(w=e.getDerivedFunctions()).overrideDefaultValues)||void 0===S?void 0:S.call(w,n.toLowerCase()))?be:pe)}if(i&&-1!==le.indexOf(i.register)){var fe={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:i.register},ge=(de=null!==(D=c(oe,i.register))&&void 0!==D?D:"",null!==(E=v(null===(C=null===oe||void 0===oe?void 0:oe[de])||void 0===C?void 0:C.settings,n))&&void 0!==E?E:"");if(void 0!==(ve=null===(P=null===(O=null===(A=e.getState())||void 0===A?void 0:A.register)||void 0===O?void 0:O[i.register])||void 0===P?void 0:P[ge]))return ve;if(void 0!=(be=null===(N=(M=e.getDerivedFunctions()).overrideDefaultValues)||void 0===N?void 0:N.call(M,n,fe)))return be;var me,he=null===(V=null===(F=null===(R=null===(me=e.getRegisterValues())||void 0===me?void 0:me[de])||void 0===R?void 0:R.settings)||void 0===F?void 0:F[ge])||void 0===V?void 0:V.value,ye=Number(null===(x=null===(H=null===(T=null===oe||void 0===oe?void 0:oe[de])||void 0===T?void 0:T.settings)||void 0===H?void 0:H[ge])||void 0===x?void 0:x.defaultValue);return void 0!==(null===(j=null===(L=null===(B=null===oe||void 0===oe?void 0:oe[de])||void 0===B?void 0:B.settings)||void 0===L?void 0:L[ge])||void 0===j?void 0:j.options)&&(he=null===(W=null===(k=null===(U=null===me||void 0===me?void 0:me[de])||void 0===U?void 0:U.settings)||void 0===k?void 0:k[ge])||void 0===W?void 0:W.optionName,ye=null!==(z=null===(q=null===(K=null===(G=null===oe||void 0===oe?void 0:oe[de])||void 0===G?void 0:G.settings)||void 0===K?void 0:K[ge])||void 0===q?void 0:q.defaultValue)&&void 0!==z?z:""),void 0!==he?he:ye}var be,Ie=(0,t.getMappedComponentData)(n,e);if(Ie&&Ie.registerName){n=Ie.settingName;var _e=null===(X=null===(Y=null===($=e.getState())||void 0===$?void 0:$.register)||void 0===Y?void 0:Y[Ie.registerName])||void 0===X?void 0:X[n];if(void 0!==_e)return _e;de=null!==(Z=c(oe,Ie.registerName))&&void 0!==Z?Z:"",ge=null!==(Q=p(null===(J=null===oe||void 0===oe?void 0:oe[de])||void 0===J?void 0:J.settings,n))&&void 0!==Q?Q:"";if(void 0!==(_e=null===(ne=null===(te=null===(ee=e.getState())||void 0===ee?void 0:ee.register)||void 0===te?void 0:te[Ie.registerName])||void 0===ne?void 0:ne[ge]))return _e}if(void 0!=(be=null===(re=(ie=e.getDerivedFunctions()).overrideDefaultValues)||void 0===re?void 0:re.call(ie,n)))return be};t.getRegisterEditorValues=function(e,t){var n,i={},d=(0,a.getConfigData)(e);return t=(0,l.getFriendlyInterfaceId)(t),null===(n=null===d||void 0===d?void 0:d.peripherals)||void 0===n||n.forEach(function(n){var a,s,c,v=null!==(a=(0,l.getFriendlyInterfaceId)(n.interfaceId.name))&&void 0!==a?a:"";void 0!=t&&v!==t||!n.registers||null===(c=(0,o.getKeys)(null!==(s=n.registers)&&void 0!==s?s:{}))||void 0===c||c.forEach(function(t){var o,a,s,c,p,f,g,m,h,y,b,I,_,w=null===(a=null===(o=e.getHardware(v))||void 0===o?void 0:o.getPeripheral().registers)||void 0===a?void 0:a[t];if(w){_={comment:"",value:0,valueAsHex:"0x00",name:null===w||void 0===w?void 0:w.name,alias:null!==(s=null===w||void 0===w?void 0:w.alias)&&void 0!==s?s:null===w||void 0===w?void 0:w.name,por:w.defaultValue,settings:{}};var S=u.default.for(w),D=[];if(null===(c=n.registers)||void 0===c||c[t].forEach(function(t){var n,i,o,a,u,s,c,v,p,f,g,m,h,y,b,I,C,E,A,O,P,M,N,R,F,V,T,H,x,B,L,j=null===(n=w.settings)||void 0===n?void 0:n[t.setting];if(j){if("R"!==j.type){var U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(o=(i=e.getDerivedFunctions()).overrideDefaultValues)||void 0===o?void 0:o.call(i,j.name,U))?W:null===(s=null===(u=null===(a=e.getState())||void 0===a?void 0:a.register)||void 0===u?void 0:u[w.name])||void 0===s?void 0:s[j.name];D.push(void 0!==k?"".concat(t.setting," ").concat(k,"; "):"".concat(t.setting," ").concat(e.getComponentValue(t.name),"; "))}if(null===_||void 0===_?void 0:_.settings){U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(v=(c=e.getDerivedFunctions()).overrideDefaultValues)||void 0===v?void 0:v.call(c,j.name,U))?W:null===(g=null===(f=null===(p=e.getState())||void 0===p?void 0:p.register)||void 0===f?void 0:f[w.name])||void 0===g?void 0:g[j.name];_.settings[j.alias]=(0,l.getSettingBits)(w,j,void 0!==k?k:null===(m=e.getComponent(t.name))||void 0===m?void 0:m.value,null!==(h=null===d||void 0===d?void 0:d.deviceType)&&void 0!==h?h:"PIC")}switch(t.type){case"ComboBox":case"boolean":U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(b=(y=e.getDerivedFunctions()).overrideDefaultValues)||void 0===b?void 0:b.call(y,j.name,U))?W:null===(E=null===(C=null===(I=e.getState())||void 0===I?void 0:I.register)||void 0===C?void 0:C[w.name])||void 0===E?void 0:E[j.name];S.withNumberValue(j,null!==(O=(0,l.getOptionValueByName)(j,void 0!==k?k:null===(A=e.getComponent(t.name))||void 0===A?void 0:A.value))&&void 0!==O?O:0);break;case"number":U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name},k=void 0!==(W=null===(M=(P=e.getDerivedFunctions()).overrideDefaultValues)||void 0===M?void 0:M.call(P,j.name,U))?W:null===(F=null===(R=null===(N=e.getState())||void 0===N?void 0:N.register)||void 0===R?void 0:R[w.name])||void 0===F?void 0:F[j.name];S.withNumberValue(j,void 0!==k?k:e.getComponentValue(t.name));break;case"register":case"string":var W;U={compType:r.COMPTYPE.SETTING,tabID:r.TABID.REGISTER,parent:w.name};void 0!==(k=void 0!==(W=null===(T=(V=e.getDerivedFunctions()).overrideDefaultValues)||void 0===T?void 0:T.call(V,j.name,U))?W:null===(B=null===(x=null===(H=e.getState())||void 0===H?void 0:H.register)||void 0===x?void 0:x[w.name])||void 0===B?void 0:B[j.name])?j.options?S.withNumberValue(j,null!==(L=(0,l.getOptionValueByName)(j,k))&&void 0!==L?L:0):S.withNumberValue(j,Number(k)):S.withNumberValue(j,Number(e.getComponentValue(t.name)))}}}),w.settings)_.value=S.asNumber();else{var C=null===(f=null===(p=e.getState())||void 0===p?void 0:p.register)||void 0===f?void 0:f[w.name];_.value=Number(void 0!==C?C:null!==(b=e.getComponentValue(null!==(y=null===(h=null===(m=null===(g=n.registers)||void 0===g?void 0:g[t])||void 0===m?void 0:m[0])||void 0===h?void 0:h.name)&&void 0!==y?y:""))&&void 0!==b?b:0),D.push("".concat(_.name," ").concat(_.value,"; "))}_.valueAsHex="0x"+_.value.toString(16).toUpperCase(),_.comment=(0,l.sortComments)(D,w),i[null!==(I=null===w||void 0===w?void 0:w.alias)&&void 0!==I?I:w.name]=_}})}),i};t.getMappedComponentData=function(e,t){var n,i,r,l,u,d=null===(n=t.getHardware())||void 0===n?void 0:n.getPeripheral().registers,s=null===(r=null===(i=(0,a.getConfigData)(t))||void 0===i?void 0:i.peripherals)||void 0===r?void 0:r[0].registers,c=void 0;if(s&&d)for(var v=0,p=(0,o.getKeys)(s);v<p.length;v++)for(var f=p[v],g=0,m=s[f];g<m.length;g++){var h=m[g];if(h&&h.name===e&&void 0!==d[f]&&(null===(l=d[f])||void 0===l?void 0:l.name))return c={settingName:null===h||void 0===h?void 0:h.setting,registerName:null===(u=d[f])||void 0===u?void 0:u.name}}return c}},6888:function(e,t,n){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(9006)),o=i(n(5623));t.getInterfaceId=function(){return{name:r.getInterfaceName(o),version:r.getInterfaceVersion(o)}};t.createApi=function(e){return{PageErase:{name:e+"_PageErase",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"unlockKey",type:"flash_key_t"}]},WordWrite:{name:e+"_WordWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},RowWrite:{name:e+"_RowWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},Read:{name:e+"_Read",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"count",type:"uint32_t"},{name:"flash_data_t *",type:"data"}]},ErasePageOffsetGet:{name:e+"_ErasePageOffsetGet",returns:"uint32_t",arguments:[{name:"flashAddress",type:"flash_adr_t"}]},ErasePageAddressGet:{name:e+"_ErasePageAddressGet",returns:"uint32_t",arguments:[{name:"flashAddress",type:"flash_adr_t"}]},Initialize:{name:e+"_Initialize",returns:"void",arguments:[]},NonBlockingPageErase:{name:e+"_NonBlockingPageErase",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingBulkErase:{name:e+"_NonBlockingBulkErase",returns:e+"_RETURN_STATUS",arguments:[{name:"panel",type:"enum FLASH_PANEL"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingWordWrite:{name:e+"_NonBlockingWordWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingRowWrite:{name:e+"_NonBlockingRowWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"},{name:"callbackHandler",type:"FLASH_CALLBACK"},{name:"context",type:"void*"}]},NonBlockingRead:{name:e+"_NonBlockingRead",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"count",type:"uint32_t"},{name:"flash_data_t *",type:"data"}]},NonBlockingPolledPageErase:{name:e+"_NonBlockingPolledPageErase",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledBulkErase:{name:e+"_NonBlockingBulkErase",returns:e+"_RETURN_STATUS",arguments:[{name:"panel",type:"enum FLASH_PANEL"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledWordWrite:{name:e+"_NonBlockingPolledWordWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledRowWrite:{name:e+"_NonBlockingPolledRowWrite",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"flash_data_t *",type:"data"},{name:"unlockKey",type:"flash_key_t"}]},NonBlockingPolledRead:{name:e+"_NonBlockingPolledRead",returns:e+"_RETURN_STATUS",arguments:[{name:"flashAddress",type:"flash_adr_t"},{name:"count",type:"uint32_t"},{name:"flash_data_t *",type:"data"}]},operationStatusGet:{name:e+"_OperationStatusGet",returns:e+"_RETURN_STATUS",arguments:[]}}};t.createFirmwareApi=function(e,n,i){var o=e?e.toUpperCase():"undefined",a=i?i():t.createApi(o);return{api:a,simpleApi:r.buildSimpleApi(a),headerFiles:n||[{name:o.toLowerCase()+".h",path:"flash/"}]}},t.Interface={createPrototypeExport:function(){return{interfaces:[{interfaceId:t.getInterfaceId()}]}},createPrototypeImport:function(){return{interfaceId:t.getInterfaceId()}},getInterfaceId:t.getInterfaceId,createMock:function(){return{interfaceId:t.getInterfaceId(),payload:{interfaceApi:t.Interface.createFirmwareApi("flash-interface",[{name:"BasicFlash.h",path:"flash/"}]),flashWriteInstructionCount:2,flashInterface:"FLASH_NON_TRANSPARENT_DOUBLE_WORD_v1.0",flashWordWriteSizeInInstructions:2,flashEraseInstructionCount:1024,flashHasAuxiliary:0,flashEnduranceMinimum:1e4,flashBytesPerInstruction:3,flashPcUnitsPerInstruction:2,flashWordWriteOpCode:16385,flashOpCodeMask:16399,flashErasePageSizeInInstructions:1024,flashErasePageOpCode:16387,flashHasEcc:1,flashHasRowProgramming:1,flashWriteRowSizeInInstructions:128,flashWriteRowOpCode:16386,flashLatchIsMemoryMapped:1,flashLatchIsTransparent:0,flashLatchIsBusMastered:0,flashEndAddress:704256,flashProgramBeginAddress:256,flashUnlockKey:"0x00AA0055",flashHasDualPartition:!0,flashBootMode:"SINGLE",flashFirstPartitionEndAddress:44800,flashSecondPartitionBeginAddress:4194304,flashSecondPartitionProgramBeginAddress:4194816,flashSecondPartitionEndAddress:4239104},args:{requestId:{flashWriteInstructionCount:2}}}},createFirmwareApi:t.createFirmwareApi}},7295:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=e(t),a=0;a<i.length;a++)"default"!==i[a]&&r(n,t,i[a]);return o(n,t),n}}();Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigBits=t.getTemplateSettings=t.getTemplatePayload=t.getTemplates=void 0;var l=a(n(5037)),u=n(2102),d=n(9943),s=n(5056),c=n(6074),v=n(5037);t.getTemplates=function(e){var t,n=(0,d.getConfigData)(e,!0),r=[];return null===(t=null===n||void 0===n?void 0:n.templates)||void 0===t||t.forEach(function(t){var n,o,a,l=i({},t);e&&(l.dest=null!==(a=null===(o=(n=e.getDerivedFunctions()).templateName)||void 0===o?void 0:o.call(n,l.src))&&void 0!==a?a:l.dest,l.dest=l.dest.replace("${sourceFileName}",e.getName().toLowerCase()+".c"),l.dest=l.dest.replace("${headerFileName}",e.getName().toLowerCase()+".h"),p(l,e)&&r.push(l))}),r};var p=function(e,t){var n=!0;return t?(n&&1==e.generateWithHardware&&!(0,c.isFullyAssigned)(t.getPrototypeModule().imports,(0,d.getConfigData)(t,!0))&&(n=!1),n&&e.isGeneratableProperty&&1!=t.getDerivedFunction(e.isGeneratableProperty)&&(n=!1),n):n};t.getTemplatePayload=function(e){var n;if(e){var r=(0,d.getConfigData)(e,!0),o=e.getName(),a={name:{uppercase:o.toUpperCase(),lowercase:o.toLowerCase(),instance:o},filename:{source:"".concat(o.toLowerCase(),".c"),header:"".concat(o.toLowerCase(),".h")}},l=e.getAutoModuleAppModel().getAllComponents();return null===(n=(0,s.values)(l))||void 0===n||n.forEach(function(t){a[t.component.name]=f(t.component,e)}),a=i(i({},a),(0,t.getTemplateSettings)(e,r))}};t.getTemplateSettings=function(e,t){var n,i;if(null===e||void 0===e?void 0:e.getHardware())return{registers:e.getRegisterValues(void 0),interrupts:null===(n=e.getHardware())||void 0===n?void 0:n.getPeripheral().interrupts,properties:null===(i=e.getHardware())||void 0===i?void 0:i.getPeripheral().properties}};t.getConfigBits=function(e){var t,n,r,o=(0,d.getConfigData)(e,!0),a=(0,u.find)(null!==(t=null===o||void 0===o?void 0:o.peripherals)&&void 0!==t?t:[],function(e){return l.hasConfigBits(e.interfaceId.name)});if(a){var c=l.getFriendlyInterfaceId(a.interfaceId.name),v={},p=null===(n=e.getHardware(c))||void 0===n?void 0:n.getPeripheral().registers;return null===(r=(0,s.getKeys)(null!==p&&void 0!==p?p:[]))||void 0===r||r.forEach(function(t){var n,r,o,l,d=null===(r=a.registers)||void 0===r?void 0:r[t];v=i(i({},v),((n={})[t]={},n)),!0===(null===(l=null===(o=e.getState())||void 0===o?void 0:o.contentMeta)||void 0===l?void 0:l.isUserEnRegRWMode)?null===d||void 0===d||d.forEach(function(n){var i,r,o,a,l,d,s,c,f,g,m,h,y=null===p||void 0===p?void 0:p[t];if(y&&!y.settings)m=e.getComponentValue(n.setting,{register:t}),h=e.getComponentValue(n.setting,{register:t}).toString(16).toUpperCase();else{var b=null===(r=null===(i=null===p||void 0===p?void 0:p[t])||void 0===i?void 0:i.settings)||void 0===r?void 0:r[n.setting];m=null!==(s=null!==(d=null!==(l=null===(a=(0,u.find)(null!==(o=null===b||void 0===b?void 0:b.options)&&void 0!==o?o:[],function(i){return i.description===e.getComponentValue(n.setting,{register:t})||i.alias===e.getComponentValue(n.setting,{register:t})||i.name===e.getComponentValue(n.setting,{register:t})}))||void 0===a?void 0:a.name)&&void 0!==l?l:e.getComponentValue(n.setting,{register:t}))&&void 0!==d?d:null===b||void 0===b?void 0:b.defaultValue)&&void 0!==s?s:"",h=null!==(g=null===(f=(0,u.find)(null!==(c=null===b||void 0===b?void 0:b.options)&&void 0!==c?c:[],function(i){return i.description===e.getComponentValue(n.setting,{register:t})||i.alias===e.getComponentValue(n.setting,{register:t})||i.name===e.getComponentValue(n.setting,{register:t})}))||void 0===f?void 0:f.description)&&void 0!==g?g:""}"number"===typeof m?isNaN(m)||(v[t][n.setting]={name:n.setting,value:"0x"+m.toString(16).toUpperCase(),description:n.description,valueAsDescription:"0x"+m.toString(16).toUpperCase()}):v[t][n.setting]={name:n.setting,value:m,description:n.description,valueAsDescription:h}}):null===d||void 0===d||d.forEach(function(n){var i,r,o,a,l,d,s,c,f,g,m,h,y=null===p||void 0===p?void 0:p[t];if(y&&!y.settings)h=null!==(r=null===(i=e.getComponent(n.name))||void 0===i?void 0:i.value)&&void 0!==r?r:"";else{var b=null===(a=null===(o=null===p||void 0===p?void 0:p[t])||void 0===o?void 0:o.settings)||void 0===a?void 0:a[n.setting];h=null!==(g=null!==(f=null!==(s=null===(d=(0,u.find)(null!==(l=null===b||void 0===b?void 0:b.options)&&void 0!==l?l:[],function(t){var i,r,o;return t.description===(null===(i=e.getComponent(n.name))||void 0===i?void 0:i.value)||t.alias===(null===(r=e.getComponent(n.name))||void 0===r?void 0:r.value)||t.name===(null===(o=e.getComponent(n.name))||void 0===o?void 0:o.value)}))||void 0===d?void 0:d.name)&&void 0!==s?s:null===(c=e.getComponent(n.name))||void 0===c?void 0:c.value)&&void 0!==f?f:null===b||void 0===b?void 0:b.defaultValue)&&void 0!==g?g:""}v[t][n.setting]={name:n.setting,value:h,description:n.description,valueAsDescription:null===(m=e.getComponent(n.name))||void 0===m?void 0:m.value}})}),v}return{}};var f=function(e,t){var n,i,r=t.getComponentValue(e.name);switch(e.type){case"ComboBox":if("hardware"===e.category){var o=l.getSettingFromComponent(t,e);return{value:r,options:l.getSettingOptionsIfPresent(e,o,t.getComponentValue(null!==(i=null===(n=e.mode)||void 0===n?void 0:n.masterComponent)&&void 0!==i?i:""))}}if("software"===e.category)return{value:r,options:(0,v.getComboOptions)(t.getDerivedFunctions().overrideOptions,e)};break;case"boolean":return t.isComponentValue(e.name);default:return r}}},7437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOptionDescriptions=t.getOptionNames=t.getOptionByDescription=t.getOptionByName=t.getOptionByAlias=t.getBitRange=t.getBitLabel=void 0;var i=n(2102);t.getBitLabel=function(e){if(void 0!==e.mask){var n=(0,t.getBitRange)(e);if(n)return n.high===n.low?"bit ".concat(n.high):"bit ".concat(n.high,"-").concat(n.low)}};t.getBitRange=function(e){if(e.mask){var t,n=(t=e.mask,parseInt(t,16).toString(2));return{high:n.length-1,low:r(n)}}};t.getOptionByAlias=function(e,t){var n,r,o=(0,i.find)(null!==(n=null===t||void 0===t?void 0:t.options)&&void 0!==n?n:[],function(t){return t.alias==e});return o||(o=(0,i.find)(null!==(r=null===t||void 0===t?void 0:t.options)&&void 0!==r?r:[],function(t){return t.description==e})),o};t.getOptionByName=function(e,t){var n;return(0,i.find)(null!==(n=null===t||void 0===t?void 0:t.options)&&void 0!==n?n:[],function(t){return t.name==e})};t.getOptionByDescription=function(e,t){var n;return(0,i.find)(null!==(n=t.options)&&void 0!==n?n:[],function(t){return t.description==e})};t.getOptionNames=function(e){var t;return(0,i.map)(null!==(t=e.options)&&void 0!==t?t:[],function(e){return e.name})};function r(e){if("1"===e.charAt(1)){for(var t=1;"1"===e.charAt(t);)t++;return e.length-t}return e.length-1}t.getOptionDescriptions=function(e){var t;return(0,i.map)(null!==(t=e.options)&&void 0!==t?t:[],function(e){return e.description})}},7557:function(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",r=1/0,o=9007199254740991,a=17976931348623157e292,l=NaN,u="[object Arguments]",d="[object Array]",s="[object Boolean]",c="[object Date]",v="[object Error]",p="[object Function]",f="[object Map]",g="[object Number]",m="[object Object]",h="[object Promise]",y="[object RegExp]",b="[object Set]",I="[object String]",_="[object Symbol]",w="[object WeakMap]",S="[object ArrayBuffer]",D="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,A=/^\./,O=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/^\s+|\s+$/g,M=/\\(\\)?/g,N=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,F=/^\[object .+?Constructor\]$/,V=/^0o[0-7]+$/i,T=/^(?:0|[1-9]\d*)$/,H={};H["[object Float32Array]"]=H["[object Float64Array]"]=H["[object Int8Array]"]=H["[object Int16Array]"]=H["[object Int32Array]"]=H["[object Uint8Array]"]=H["[object Uint8ClampedArray]"]=H["[object Uint16Array]"]=H["[object Uint32Array]"]=!0,H[u]=H[d]=H[S]=H[s]=H[D]=H[c]=H[v]=H[p]=H[f]=H[g]=H[m]=H[y]=H[b]=H[I]=H[w]=!1;var x=parseInt,B="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,j=B||L||Function("return this")(),U=t&&!t.nodeType&&t,k=U&&e&&!e.nodeType&&e,W=k&&k.exports===U&&B.process,G=function(){try{return W&&W.binding("util")}catch(e){}}(),K=G&&G.isTypedArray;function q(e,t){for(var n=-1,i=e?e.length:0;++n<i;)if(t(e[n],n,e))return!0;return!1}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var X,Z,J=Array.prototype,Q=Function.prototype,ee=Object.prototype,te=j["__core-js_shared__"],ne=function(){var e=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ie=Q.toString,re=ee.hasOwnProperty,oe=ee.toString,ae=RegExp("^"+ie.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=j.Symbol,ue=j.Uint8Array,de=ee.propertyIsEnumerable,se=J.splice,ce=(X=Object.keys,Z=Object,function(e){return X(Z(e))}),ve=Math.max,pe=We(j,"DataView"),fe=We(j,"Map"),ge=We(j,"Promise"),me=We(j,"Set"),he=We(j,"WeakMap"),ye=We(Object,"create"),be=Ze(pe),Ie=Ze(fe),_e=Ze(ge),we=Ze(me),Se=Ze(he),De=le?le.prototype:void 0,Ce=De?De.valueOf:void 0,Ee=De?De.toString:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Me(e){var t=-1,n=e?e.length:0;for(this.__data__=new Pe;++t<n;)this.add(e[t])}function Ne(e){this.__data__=new Oe(e)}function Re(e,t){var n=it(e)||nt(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,r=!!i;for(var o in e)!t&&!re.call(e,o)||r&&("length"==o||Ke(o,i))||n.push(o);return n}function Fe(e,t){for(var n=e.length;n--;)if(tt(e[n][0],t))return n;return-1}function Ve(e,t){for(var n=0,i=(t=qe(t,e)?[t]:je(t)).length;null!=e&&n<i;)e=e[Xe(t[n++])];return n&&n==i?e:void 0}function Te(e,t){return null!=e&&t in Object(e)}function He(e,t,n,i,r){return e===t||(null==e||null==t||!lt(e)&&!ut(t)?e!==e&&t!==t:function(e,t,n,i,r,o){var a=it(e),l=it(t),p=d,h=d;a||(p=(p=Ge(e))==u?m:p);l||(h=(h=Ge(t))==u?m:h);var w=p==m&&!z(e),C=h==m&&!z(t),E=p==h;if(E&&!w)return o||(o=new Ne),a||st(e)?Ue(e,t,n,i,r,o):function(e,t,n,i,r,o,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!i(new ue(e),new ue(t)));case s:case c:case g:return tt(+e,+t);case v:return e.name==t.name&&e.message==t.message;case y:case I:return e==t+"";case f:var l=$;case b:var u=2&o;if(l||(l=Y),e.size!=t.size&&!u)return!1;var d=a.get(e);if(d)return d==t;o|=1,a.set(e,t);var p=Ue(l(e),l(t),i,r,o,a);return a.delete(e),p;case _:if(Ce)return Ce.call(e)==Ce.call(t)}return!1}(e,t,p,n,i,r,o);if(!(2&r)){var A=w&&re.call(e,"__wrapped__"),O=C&&re.call(t,"__wrapped__");if(A||O){var P=A?e.value():e,M=O?t.value():t;return o||(o=new Ne),n(P,M,i,r,o)}}if(!E)return!1;return o||(o=new Ne),function(e,t,n,i,r,o){var a=2&r,l=ct(e),u=l.length,d=ct(t),s=d.length;if(u!=s&&!a)return!1;var c=u;for(;c--;){var v=l[c];if(!(a?v in t:re.call(t,v)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var f=!0;o.set(e,t),o.set(t,e);var g=a;for(;++c<u;){var m=e[v=l[c]],h=t[v];if(i)var y=a?i(h,m,v,t,e,o):i(m,h,v,e,t,o);if(!(void 0===y?m===h||n(m,h,i,r,o):y)){f=!1;break}g||(g="constructor"==v)}if(f&&!g){var b=e.constructor,I=t.constructor;b==I||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof I&&I instanceof I||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,i,r,o)}(e,t,He,n,i,r))}function xe(e){return!(!lt(e)||function(e){return!!ne&&ne in e}(e))&&(ot(e)||z(e)?ae:F).test(Ze(e))}function Be(e){return"function"==typeof e?e:null==e?vt:"object"==typeof e?it(e)?function(e,t){if(qe(e)&&ze(t))return $e(Xe(e),t);return function(n){var i=function(e,t,n){var i=null==e?void 0:Ve(e,t);return void 0===i?n:i}(n,e);return void 0===i&&i===t?function(e,t){return null!=e&&function(e,t,n){t=qe(t,e)?[t]:je(t);var i,r=-1,o=t.length;for(;++r<o;){var a=Xe(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}if(i)return i;o=e?e.length:0;return!!o&&at(o)&&Ke(a,o)&&(it(e)||nt(e))}(e,t,Te)}(n,e):He(t,i,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ct(e),n=t.length;for(;n--;){var i=t[n],r=e[i];t[n]=[i,r,ze(r)]}return t}(e);if(1==t.length&&t[0][2])return $e(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,i){var r=n.length,o=r,a=!i;if(null==e)return!o;for(e=Object(e);r--;){var l=n[r];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<o;){var u=(l=n[r])[0],d=e[u],s=l[1];if(a&&l[2]){if(void 0===d&&!(u in e))return!1}else{var c=new Ne;if(i)var v=i(d,s,u,e,t,c);if(!(void 0===v?He(s,d,i,3,c):v))return!1}}return!0}(n,e,t)}}(e):function(e){return qe(e)?(t=Xe(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ve(t,e)}}(e);var t}(e)}function Le(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ee;return e===n}(e))return ce(e);var t=[];for(var n in Object(e))re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function je(e){return it(e)?e:Ye(e)}function Ue(e,t,n,i,r,o){var a=2&r,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var s=-1,c=!0,v=1&r?new Me:void 0;for(o.set(e,t),o.set(t,e);++s<l;){var p=e[s],f=t[s];if(i)var g=a?i(f,p,s,t,e,o):i(p,f,s,e,t,o);if(void 0!==g){if(g)continue;c=!1;break}if(v){if(!q(t,function(e,t){if(!v.has(t)&&(p===e||n(p,e,i,r,o)))return v.add(t)})){c=!1;break}}else if(p!==f&&!n(p,f,i,r,o)){c=!1;break}}return o.delete(e),o.delete(t),c}function ke(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function We(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===i?void 0:n}return re.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:re.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?i:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Fe(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,i=Fe(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(fe||Oe),string:new Ae}},Pe.prototype.delete=function(e){return ke(this,e).delete(e)},Pe.prototype.get=function(e){return ke(this,e).get(e)},Pe.prototype.has=function(e){return ke(this,e).has(e)},Pe.prototype.set=function(e,t){return ke(this,e).set(e,t),this},Me.prototype.add=Me.prototype.push=function(e){return this.__data__.set(e,i),this},Me.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Oe},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var i=n.__data__;if(!fe||i.length<199)return i.push([e,t]),this;n=this.__data__=new Pe(i)}return n.set(e,t),this};var Ge=function(e){return oe.call(e)};function Ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function qe(e,t){if(it(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!dt(e))||(E.test(e)||!C.test(e)||null!=t&&e in Object(t))}function ze(e){return e===e&&!lt(e)}function $e(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(pe&&Ge(new pe(new ArrayBuffer(1)))!=D||fe&&Ge(new fe)!=f||ge&&Ge(ge.resolve())!=h||me&&Ge(new me)!=b||he&&Ge(new he)!=w)&&(Ge=function(e){var t=oe.call(e),n=t==m?e.constructor:void 0,i=n?Ze(n):void 0;if(i)switch(i){case be:return D;case Ie:return f;case _e:return h;case we:return b;case Se:return w}return t});var Ye=et(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(dt(e))return Ee?Ee.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return A.test(e)&&n.push(""),e.replace(O,function(e,t,i,r){n.push(i?r.replace(M,"$1"):t||e)}),n});function Xe(e){if("string"==typeof e||dt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ze(e){if(null!=e){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Je,Qe=(Je=function(e,t,n){var i=e?e.length:0;if(!i)return-1;var o=null==n?0:function(e){var t=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(dt(e))return l;if(lt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=lt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(P,"");var n=R.test(e);return n||V.test(e)?x(e.slice(2),n?2:8):N.test(e)?l:+e}(e))===r||e===-1/0?(e<0?-1:1)*a:e===e?e:0:0===e?e:0}(e),n=t%1;return t===t?n?t-n:t:0}(n);return o<0&&(o=ve(i+o,0)),function(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}(e,Be(t),o)},function(e,t,n){var i=Object(e);if(!rt(e)){var r=Be(t);e=ct(e),t=function(e){return r(i[e],e,i)}}var o=Je(e,t,n);return o>-1?i[r?e[o]:o]:void 0});function et(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a),a};return n.cache=new(et.Cache||Pe),n}function tt(e,t){return e===t||e!==e&&t!==t}function nt(e){return function(e){return ut(e)&&rt(e)}(e)&&re.call(e,"callee")&&(!de.call(e,"callee")||oe.call(e)==u)}et.Cache=Pe;var it=Array.isArray;function rt(e){return null!=e&&at(e.length)&&!ot(e)}function ot(e){var t=lt(e)?oe.call(e):"";return t==p||"[object GeneratorFunction]"==t}function at(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function lt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function dt(e){return"symbol"==typeof e||ut(e)&&oe.call(e)==_}var st=K?function(e){return function(t){return e(t)}}(K):function(e){return ut(e)&&at(e.length)&&!!H[oe.call(e)]};function ct(e){return rt(e)?Re(e):Le(e)}function vt(e){return e}e.exports=Qe},7572:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSettingByAlias=void 0;t.getSettingByAlias=function(e,t){var n;return null===(n=t.settings)||void 0===n?void 0:n[e]}},7695:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInterfaceName=function(e){var t;if(e&&(t=e.name)&&(t=t.replace("@microchip/","")),!t)throw new Error("Invalid Interface Name...!");return t},t.getInterfaceVersion=function(e){var t,n=new RegExp("\\d+.\\d+.\\d+");if(e&&(t=e.version),!t&&!n.test(t))throw new Error("Invalid Interface Version...!");return t}},7864:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=e(t),a=0;a<i.length;a++)"default"!==i[a]&&r(n,t,i[a]);return o(n,t),n}}();Object.defineProperty(t,"__esModule",{value:!0}),t.registerScfUiSchema=t.createAutoViewPayloads=void 0,t.registerFormData=b,t.registerUiSchema=I,t.registerInitFormData=_;var l=n(2403),u=n(5056),d=a(n(5037)),s=n(9943),c=a(n(5981)),v=n(4579),p=n(236),f=n(3169),g=n(313),m=n(3427),h=n(9809),y=n(6808);t.createAutoViewPayloads=function(e){var n,r,o=(0,s.getConfigData)(e,!0),a={main:{}};return(null===o||void 0===o?void 0:o.tabs)&&Object.keys(o.tabs).forEach(function(e){a[e]=h(e)}),!0===(0,s.getConfigData)(e,!0).showRegisterEditor&&d.hasConfigBits(null!==(r=null===(n=o.peripherals)||void 0===n?void 0:n[0].interfaceId.name)&&void 0!==r?r:"")&&(a.register=h("register")),a;function h(n){var r,a;if("register"===n)return 1==(null===(a=null===(r=e.getState())||void 0===r?void 0:r.contentMeta)||void 0===a?void 0:a.isUserEnRegRWMode)?function(){if(!(null===o||void 0===o?void 0:o.peripherals))return{};var n=[];return o.peripherals.forEach(function(r){var o,a,d,s,v,p,f=null===(o=e.getHardware(r.interfaceId.name))||void 0===o?void 0:o.getPeripheral();if(null===f||void 0===f?void 0:f.registers){var g=e.getRegisterValues(r.interfaceId.name),m=e.getInterrupts();f=c.processRegisterModes(r,f,e);var h=l.CreateRegisterView.for(f).withAllEditable();for(var y in g&&(null===(a=(0,u.getKeys)(null!==g&&void 0!==g?g:{}))||void 0===a||a.forEach(function(e){var t,n=null===(t=null===f||void 0===f?void 0:f.registers)||void 0===t?void 0:t[e];n&&h.withRegisterValue(n,g[e].value)})),null!==m&&void 0!==m?m:{}){var _=null===m||void 0===m?void 0:m[y];if(_){var w=e.getComponent(y.toLowerCase()),S="boolean"===typeof(null===w||void 0===w?void 0:w.value)?(null===w||void 0===w?void 0:w.value)?"enabled":"disabled":null===w||void 0===w?void 0:w.value;h.withInterruptValue(_,null!==(d=null!==S&&void 0!==S?S:_.defaultValue)&&void 0!==d?d:"disabled").withInterruptOptions(_,null!==(p=null===(v=null===(s=null===w||void 0===w?void 0:w.component)||void 0===s?void 0:s.defaultValue)||void 0===v?void 0:v.options)&&void 0!==p?p:["enabled","disabled"])}}n.push(i(i({},h.create()),{formData:b(e,h.create().formData),uiSchema:I(e,h,f.registers,f.interrupts),scfUiSchema:(0,t.registerScfUiSchema)(e,f.registers)}))}}),n[0]}():function(){if(!(null===o||void 0===o?void 0:o.peripherals))return{};var n=[];return o.peripherals.forEach(function(r){var o,a,v,p,f,g;if(!d.hasConfigBits(r.interfaceId.name)){var m=null===(o=e.getHardware(r.interfaceId.name))||void 0===o?void 0:o.getPeripheral();if(null===m||void 0===m?void 0:m.registers){var h=e.getRegisterValues(r.interfaceId.name),y=e.getInterrupts();m=c.processRegisterModes(r,m,e);var b=l.CreateRegisterView.for(m);for(var I in h&&(null===(a=(0,u.getKeys)(null!==h&&void 0!==h?h:{}))||void 0===a||a.forEach(function(e){var t,n=null===(t=null===m||void 0===m?void 0:m.registers)||void 0===t?void 0:t[e];n&&b.withRegisterValue(n,h[e].value)})),null!==y&&void 0!==y?y:{}){var w=null===y||void 0===y?void 0:y[I];if(w){var S=e.getComponent(I.toLowerCase()),D="boolean"===typeof(null===S||void 0===S?void 0:S.value)?(null===S||void 0===S?void 0:S.value)?"enabled":"disabled":null===S||void 0===S?void 0:S.value;b.withInterruptValue(w,null!==(v=null!==D&&void 0!==D?D:w.defaultValue)&&void 0!==v?v:"disabled").withInterruptOptions(w,null!==(g=null===(f=null===(p=null===S||void 0===S?void 0:S.component)||void 0===p?void 0:p.defaultValue)||void 0===f?void 0:f.options)&&void 0!==g?g:["enabled","disabled"])}}!0===(0,s.getConfigData)(e,!0).showRegisterEditor?n.push(i(i({},b.create()),{formData:_(e,b.create().formData),scfUiSchema:(0,t.registerScfUiSchema)(e,m.registers)})):n.push(i({},b.create()))}}}),n[0]}();var h={components:e.getAutoModuleAppModel().getAllComponents(),getComponent:e.getComponent,imports:e.getImports(),derivedFunctions:e.getDerivedFunctions(),getAssignedImport:e.getAssignedImport,getTableHelpers:e.getTableHelpers},y={viewModel:h,getDerivedFunction:{overrideTitle:e.getDerivedFunction("overrideTitle"),isVisible:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).isVisible)||void 0===i?void 0:i.call(n,t)},getFunction:e.getDerivedFunction},overrideTableOptions:e.getDerivedFunctions().overrideTableOptions,overrideDefaultValues:e.getDerivedFunctions().overrideTableDefaultValues,model:e},w={viewModel:h,getDerivedFunction:{isEnabled:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).isEnabled)||void 0===i?void 0:i.call(n,t)},getUiBehavior:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).getUiBehavior)||void 0===i?void 0:i.call(n,t)},isVisible:function(t){var n,i;return null===(i=(n=e.getDerivedFunctions()).isVisible)||void 0===i?void 0:i.call(n,t)}},getProcessedArgValue:e.getExportInterfaces().getProcessedArgValue,isControlledByInterface:e.isControlledByInterface};return{schema:(0,g.createSchema)(n,o,y),uiSchema:(0,m.createUiSchema)(n,o,w),formData:(0,p.createFormData)(n,o,e),scfUiSchema:(0,f.createScfUiSchema)(n,o,e),name:null===o||void 0===o?void 0:o.tabs[n],table:(0,v.shouldPopulateView)(e.getDerivedFunctions(),e.getImports(),e.getAssignedImport,o)?null===e||void 0===e?void 0:e.getDerivedFunction("getTableData"):void 0,expandGroupsByDefault:!(null===o||void 0===o?void 0:o.UIGroupCollapse)||o.UIGroupCollapse}}};function b(e,t){for(var n,r,o=i({},t),a=0,l=Object.keys(o);a<l.length;a++)for(var u=l[a],d=0,s=Object.keys(o[u]);d<s.length;d++){var c=s[d],v=void 0!==e.getComponentValue(c,{register:u})?e.getComponentValue(c,{register:u}):e.getComponentValue(c);"interrupts"===u&&(v=1==v?"enabled":"disabled"),t=i(i({},t),((n={})[u]=i(i({},t[u]),((r={})[c]=v,r)),n))}return t}function I(e,t,n,i){return void 0!=n&&((0,u.getKeys)(null!==n&&void 0!==n?n:{}).forEach(function(i){var r,o,a,l,d,s,c,v={compType:h.COMPTYPE.REGISTER,tabID:h.TABID.REGISTER},p=null!==(o=null===(r=n[i])||void 0===r?void 0:r.name)&&void 0!==o?o:"";!1===(null===(l=null===e||void 0===e?void 0:(a=e.getDerivedFunctions()).isEnabled)||void 0===l?void 0:l.call(a,p,v))&&(t=t.withNonEditableRegister(n[i]));var f=null===(d=n[i])||void 0===d?void 0:d.settings;(0,u.getKeys)(null!==f&&void 0!==f?f:{}).forEach(function(r){var o,a,l,u,d,s,c=null===f||void 0===f?void 0:f[r];if(c){var v=c.name,g={compType:h.COMPTYPE.SETTING,tabID:h.TABID.REGISTER,parent:p},m=null===(a=null===e||void 0===e?void 0:(o=e.getDerivedFunctions()).isEnabled)||void 0===a?void 0:a.call(o,v,g);c&&v&&!1===m&&(t=t.withEditableRegisterSetting(null===n||void 0===n?void 0:n[i],c));var y=null===(u=null===e||void 0===e?void 0:(l=e.getDerivedFunctions()).isVisible)||void 0===u?void 0:u.call(l,v,g);c&&v&&!1===y&&(t=t.withInVisibleRegisterSetting(null===n||void 0===n?void 0:n[i],c));var b=null===(s=null===e||void 0===e?void 0:(d=e.getDerivedFunctions()).overrideTitle)||void 0===s?void 0:s.call(d,v,g);b&&"string"===typeof b&&(t=t.withUpdatedSettingDescription(null===n||void 0===n?void 0:n[i],c,b))}}),!1===(null===(c=null===e||void 0===e?void 0:(s=e.getDerivedFunctions()).isVisible)||void 0===c?void 0:c.call(s,p,v))&&(t=t.withInVisibleRegister(n[i]))}),(0,u.getKeys)(null!==i&&void 0!==i?i:{}).forEach(function(n){var r,o,a,l,u={compType:h.COMPTYPE.INTERRUPT,tabID:h.TABID.REGISTER};!1===(null===(o=null===e||void 0===e?void 0:(r=e.getDerivedFunctions()).isEnabled)||void 0===o?void 0:o.call(r,n,u))&&(t=t.withNonEditableInterrupt(null===i||void 0===i?void 0:i[n])),!1===(null===(l=null===e||void 0===e?void 0:(a=e.getDerivedFunctions()).isVisible)||void 0===l?void 0:l.call(a,n,u))&&(t=t.withInVisibleInterrupt(null===i||void 0===i?void 0:i[n]))})),t.create().uiSchema}function _(e,t){for(var n,r,o=i({},t),a=0,l=Object.keys(o);a<l.length;a++)for(var u=l[a],d=0,s=Object.keys(o[u]);d<s.length;d++){var c=s[d],v=void 0!==(0,y.getRegisterEditorComponentValue)(e,c,{register:u})?(0,y.getRegisterEditorComponentValue)(e,c,{register:u}):e.getComponentValue(c);"interrupts"===u&&(v=1==v?"enabled":"disabled"),t=i(i({},t),((n={})[u]=i(i({},t[u]),((r={})[c]=v,r)),n))}return t}t.registerScfUiSchema=function(e,t){var n,r,o,a,l,d,s,c,v,p,f={},g=e.getImportValue("device_meta"),m=null!==(n=null===g||void 0===g?void 0:g.hasSdlSupport)&&void 0!==n&&n,h="";if(g&&m){(null===(r=g.architecture)||void 0===r?void 0:r.startsWith("PIC"))?h="v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true":(null===(o=g.architecture)||void 0===o?void 0:o.startsWith("AVR"))&&(h="v2/keyword-lookup?keyword=atmel;device:${deviceName};comp:${moduleName}_${dosId};register:${registerName}&redirect=true");var y=null!==(a=null===g||void 0===g?void 0:g.deviceName)&&void 0!==a?a:"",b=null!==(s=null===(d=null===(l=e.getHardware())||void 0===l?void 0:l.getPeripheral())||void 0===d?void 0:d.group)&&void 0!==s?s:"",I=null!==(p=null===(v=null===(c=e.getHardware())||void 0===c?void 0:c.getPeripheral())||void 0===v?void 0:v.dosid)&&void 0!==p?p:"";void 0!=t&&(0,u.values)(null!==t&&void 0!==t?t:{}).forEach(function(e){var n,r;if(e){var o=null===(r=t[null!==(n=e.alias)&&void 0!==n?n:""])||void 0===r?void 0:r.settings;o&&(0,u.getKeys)(o).forEach(function(t){var n,r,a,l=o[t];if(l){var u=h.replace("${deviceName}",null!==y&&void 0!==y?y:"").replace("${registerName}",e.name).replace("${moduleName}",null!==b&&void 0!==b?b:"").replace("${dosId}",null!==I&&void 0!==I?I:"");f=i(i({},f),((n={})[e.name]=i(i({},f[e.name]),((r={})[l.name]=i(i({},null===(a=f[e.name])||void 0===a?void 0:a[l.name]),{helpKeyword:u,tooltip:"Click for more Information"}),r)),n))}})}})}return f}},8045:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PCPHelper=void 0,t.stateActionBuilder=o;var r=n(2435);function o(e){return new r.PCPStateActionBuilder(e)}var a=function(){function e(){var e=this;this.pinCallbacks=void 0,this.getAllFilteredRows=function(t){var n=[];return t.forEach(function(t){var i=e.userRowData(t);i&&e.isRowValid(i)&&n.push(i)}),n},this.isRowValid=function(e){return!!((null===e||void 0===e?void 0:e.name)&&(null===e||void 0===e?void 0:e.module)&&(null===e||void 0===e?void 0:e.function)&&(null===e||void 0===e?void 0:e.direction)&&(null===e||void 0===e?void 0:e.behaviour))},this.userRowData=function(t){var n,r=t;return(null===(n=e.pinCallbacks)||void 0===n?void 0:n.getRowData)&&(r=e.pinCallbacks.getRowData(i({},t))),r},this.getAllRows=function(){var t,n,i,r,o,a=null!==(r=null===(i=null===(n=null===(t=e.pinCallbacks)||void 0===t?void 0:t.getPinsData)||void 0===n?void 0:n.call(t))||void 0===i?void 0:i.rows)&&void 0!==r?r:[],l={};return(null===(o=e.pinCallbacks)||void 0===o?void 0:o.getCompletePinData)&&(l=e.pinCallbacks.getCompletePinData())&&(null===l||void 0===l?void 0:l.rows)&&(a=l.rows),a},this.getData=function(){return{rows:e.getAllFilteredRows(e.getAllRows())}}}return e.prototype.stateActionBuilder=function(e){return o(e)},e.prototype.setCallbacks=function(e){this.pinCallbacks=e},e}();t.PCPHelper=a},8087:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.data_schema=t.PIN_ARCH=t.behaviour=t.direction=t.actiontype=t.pin_attribs_enum=t.pin_interrupts_enum=t.pin_state=t.QueryAdapterKey=void 0,function(e){e.ALLPINS="allpins",e.ALLPINS_FOR_ATTRIBS="allpins_for_attribs",e.PPS="pps",e.APFCON="apfcon",e.PORTMUX="portmux",e.HASPPS="hasPPS"}(t.QueryAdapterKey||(t.QueryAdapterKey={})),function(e){e.EMPTY="E",e.LOCKED="L",e.UNLOCK="UL",e.DiSABLE_LOCK="DL",e.UNLOCKED_DISABLED="DUL",e.LOCKED_LINK="LL",e.UNLOCKED_MUX="MUL",e.LOCKED_CONFLICT="CL"}(t.pin_state||(t.pin_state={})),function(e){e.INTDIS_BUFFEN="INTDIS_BUFFEN",e.BOTH_EDGES="BOTH_EDGES",e.RISING_EDGE="RISING_EDGE",e.FALLING_EDGE="FALLING_EDGE",e.NONE="NONE",e.LOW_LEVEL="LOW_LEVEL"}(t.pin_interrupts_enum||(t.pin_interrupts_enum={})),function(e){e.aliasReEx="aliasReEx",e.cname="cname",e.high="high",e.inv="inv",e.wpu="wpu",e.wpd="wpd",e.od="od",e.analog="analog",e.ioc="ioc",e.intcallback="intcallback",e.alias="alias",e.advInpBuff="advInpBuff"}(t.pin_attribs_enum||(t.pin_attribs_enum={})),function(e){e.SETACTION="SETACTION",e.ATTRIBACTION="ATTRIBACTION"}(t.actiontype||(t.actiontype={})),function(e){e.output="output",e.input="input",e.bidirectional="bidirectional"}(t.direction||(t.direction={})),function(e){e.LOCK_UNLOCK="LOCK_UNLOCK",e.ALWAYS_LOCKED="ALWAYS_LOCKED",e.SINGLE_PIN_MUX="SINGLE_PIN_MUX",e.OPTIONAL_PIN_MUX="OPTIONAL_PIN_MUX",e.PPS="PPS",e.APFCON="APFCON",e.PORTMUX="PORTMUX",e.EXCLUSIVE_LOCK="EXCLUSIVE_LOCK",e.LOCKED_DISABLED="LOCKED_DISABLED"}(t.behaviour||(t.behaviour={})),function(e){e.PIC18F="PIC18F",e.AVR8="AVR8",e.PIC16F="PIC16F",e.PIC24F="PIC24F"}(t.PIN_ARCH||(t.PIN_ARCH={})),t.data_schema={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/intf_data",definitions:{intf_data:{type:"object",properties:{rows:{type:"array",items:{$ref:"#/definitions/pin_row"}}},required:["rows"],additionalProperties:!1},pin_row:{type:"object",properties:{name:{type:"string"},module:{type:"string"},function:{type:"string"},direction:{$ref:"#/definitions/direction"},filter:{$ref:"#/definitions/filter"},behaviour:{$ref:"#/definitions/behaviour"},behaviourMeta:{$ref:"#/definitions/behaviourMeta"},attribs:{type:"array",items:{$ref:"#/definitions/pin_attribs"}},groupsdata:{$ref:"#/definitions/pingroups_data"},actions:{}},required:["name","module","function","direction","filter","behaviour"],additionalProperties:!1},direction:{type:"string",enum:["output","input","bidirectional"]},filter:{type:"object",properties:{module:{type:"string"},aliasReEx:{type:"string"}},required:["module","aliasReEx"],additionalProperties:!1},behaviour:{type:"string",enum:["LOCK_UNLOCK","ALWAYS_LOCKED","SINGLE_PIN_MUX","OPTIONAL_PIN_MUX","PPS","PORTMUX","EXCLUSIVE_LOCK","LOCKED_DISABLED"]},behaviourMeta:{type:"object",properties:{lockPinRegEx:{type:"string"}},required:["lockPinRegEx"],additionalProperties:!1},pin_attribs:{type:"object",properties:{aliasReEx:{type:"string"},cname:{type:"string"},high:{type:"boolean"},inv:{type:"boolean"},wpu:{type:"boolean"},wpd:{type:"boolean"},od:{type:"boolean"},analog:{type:"boolean"},ioc:{$ref:"#/definitions/pin_interrupts_enum"},bidirection_out:{type:"boolean"}},required:["aliasReEx"],additionalProperties:!1},pin_interrupts_enum:{type:"string",enum:["INTDIS_BUFFEN","BOTH_EDGES","RISING_EDGE","FALLING_EDGE","NONE","LOW_LEVEL"]},pingroups_data:{type:"object",properties:{groups:{type:"array",items:{$ref:"#/definitions/pins_group"}}},required:["groups"],additionalProperties:!1},pins_group:{type:"object",properties:{name:{type:"string"},filter:{$ref:"#/definitions/grpfilter"},datapath:{type:"string"}},required:["name","filter"],additionalProperties:!1},grpfilter:{type:"object",properties:{aliasReEx:{type:"string"}},required:["aliasReEx"],additionalProperties:!1}}}},8898:function(e,t){"use strict";var n,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertTypes=void 0,t.hasOptions=function(e){return void 0!==e.options},t.isAssigned=function(e){return"undefined"!==typeof e.handle},t.isUnassigned=function(e){return"undefined"===typeof e.handle},t.isSingleton=function(e){return"undefined"!==typeof e.isSingleton&&e.isSingleton},t.filterOptions=function(e,t){if(e.options)return i(i({},e),{options:e.options.filter(t)});return e},t.mapOptionLabels=function(e,t){if(e.options)return i(i({},e),{options:e.options.map(function(e){return i(i({},e),{handle:i(i({},e.handle),{label:t(e)})})})});return e},function(e){e.Error="error",e.Warning="warning",e.Hint="hint"}(n||(t.AlertTypes=n={}))},9006:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9408);t.buildSimpleApi=i.buildSimpleApi;var r=n(7695);t.getInterfaceName=r.getInterfaceName,t.getInterfaceVersion=r.getInterfaceVersion},9107:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7437),a=n(7572),l=n(2102),u=function(){function e(t){var n=this;this.modifiedSettings=[],this.withNumberValue=function(e,t){if(void 0===e)throw new Error("Cannot assign number value to setting, setting is undefined.");if(!n.getSetting(e))throw new Error("Setting ".concat(e.alias," is not present in Register ").concat(n.register.name));return n.modifiedSettings=r(r([],n.modifiedSettings,!0),[new s(e,t)],!1),n},this.withOption=function(e,t){if(void 0===e)throw new Error("Cannot assign option to setting, setting is undefined.");if(!n.getSetting(e))throw new Error("Setting ".concat(e.alias," is not present in Register ").concat(n.register.name));if(!t||!n.getOption(e,t))throw new Error("Option ".concat(null===t||void 0===t?void 0:t.name," is not present in Setting ").concat(e.name));return n.modifiedSettings=r(r([],n.modifiedSettings,!0),[new c(e,t)],!1),n},this.withOptionAlias=function(e,t){if(void 0===e)throw new Error("Cannot assign option alias to setting, setting is undefined.");var i=(0,o.getOptionByAlias)(t,e);if(void 0===i)throw new Error('Option Alias: "'.concat(t,'" not present in Setting: "').concat(e.name,'".'));return n.withOption(e,i)},this.withOptionName=function(e,t){if(void 0===e)throw new Error("Cannot assign option name to setting, setting is undefined.");var i=(0,o.getOptionByName)(t,e);if(void 0===i)throw new Error('Option Name: "'.concat(t,'" not present in Setting: "').concat(e.name,'".'));return n.withOption(e,i)},this.withOptionDescription=function(e,t){if(void 0===e)throw new Error("Cannot assign option description to setting, setting is undefined.");var i=(0,o.getOptionByDescription)(t,e);if(void 0===i)throw new Error('Option Description: "'.concat(t,'" not present in Setting: "').concat(e.name,'".'));return n.withOption(e,i)},this.getSetting=function(e){return(0,a.getSettingByAlias)(e.alias,n.register)},this.getOption=function(e,t){return(null===t||void 0===t?void 0:t.name)?(0,o.getOptionByName)(t.name,e):void 0},this.calculate=function(){var e=0;return n.modifiedSettings.forEach(function(t){e=n.setValue(t,e)}),n.getUnmodifiedSettings().forEach(function(t){e=n.setValue(d.defaultValue(t),e)}),Number(e)},this.setValue=function(e,t){var n=t;return n&=~e.getMask(),(n|=e.getShiftedValue())>>>0},this.getUnmodifiedSettings=function(){var e,t,i=(0,l.map)(n.modifiedSettings,function(e){return e.getName()});return(0,l.filter)(null!==(t=(0,l.values)(null!==(e=n.register.settings)&&void 0!==e?e:{}))&&void 0!==t?t:[],function(e){return i.indexOf(e.name)<0})},this.asHexString=function(){return e.toHexString(n.calculate())},this.asBinaryString=function(){return e.toBinaryString(n.calculate())},this.asDecimalString=function(){return e.toDecimalString(n.calculate())},this.asNumber=function(){return n.calculate()},this.register=t}return e.for=function(t){return new e(t)},e.toHexString=function(e){if(null==e)throw new Error("CalculateRegisterValue.toHexString() illegal argument exception. Value must not be null.");return"0x"+e.toString(16)},e.toBinaryString=function(e){if(null==e)throw new Error("CalculateRegisterValue.toBinaryString() illegal argument exception. Value must not be null.");return"0b"+e.toString(2)},e.toDecimalString=function(e){if(null==e)throw new Error("CalculateRegisterValue.toDecimalString() illegal argument exception. Value must not be null.");return e.toString()},e}();t.default=u;var d=function(){function e(e){var t=this;this.getMask=function(){return Number(t.setting.mask)},this.getShift=function(){for(var e=t.getMask(),n=0;!(1&e);)e>>=1,n++;return n},this.getShiftedValue=function(){return t.getValue()<<t.getShift()},this.getName=function(){return t.setting.name},this.setting=e}return e.defaultValue=function(e){var t=Number(e.porDefault);return new s(e,t)},e}(),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.getValue=function(){return i.value},i.value=n,i}return i(t,e),t}(d),c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.getValue=function(){return Number(i.option.value)},i.option=n,i}return i(t,e),t.fromDefaultValue=function(e,n){var i=(0,o.getOptionByName)(n,e);if(i)return new t(e,i);var r=(0,o.getOptionByAlias)(n,e);if(r)return new t(e,r);throw new Error("Unable to create default value '".concat(n,"' for setting '").concat(e.name,"'."))},t}(d)},9408:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildSimpleApi=function(e){var t={};for(var i in e)t[i]=n(e[i]);return t};var n=function(e){return e.returns+" "+e.name+"("+i(e.arguments)+")"},i=function(e){return e?e.map(function(e){return e.type+" "+e.name}).join(", "):"void"}},9581:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAutoSdlHelp=void 0;t.getAutoSdlHelp=function(e,t,n){var i,r,o,a,l,u,d,s,c,v,p,f,g,m,h,y,b=e.getImportValue("device_meta"),I=null!==(i=null===b||void 0===b?void 0:b.deviceName)&&void 0!==i?i:"",_=null!==(a=null===(o=null===(r=e.getHardware())||void 0===r?void 0:r.getPeripheral())||void 0===o?void 0:o.group)&&void 0!==a?a:"",w=null!==(d=null===(u=null===(l=e.getHardware())||void 0===l?void 0:l.getPeripheral())||void 0===u?void 0:u.dosid)&&void 0!==d?d:"",S=null!==(c=null===(s=e.getComponent(t))||void 0===s?void 0:s.component)&&void 0!==c?c:"",D=null!==(p=null===(v=null===S||void 0===S?void 0:S.setting)||void 0===v?void 0:v.toLowerCase())&&void 0!==p?p:"",C=t.toLowerCase().replace(D,""),E=null!==(f=null===C||void 0===C?void 0:C.toUpperCase())&&void 0!==f?f:"",A=null!==(y=null===(h=null===(m=null===(g=e.getPeripheralDescription())||void 0===g?void 0:g.registers)||void 0===m?void 0:m[E])||void 0===h?void 0:h.name)&&void 0!==y?y:"",O=E==A?E:A;return n.replace("${deviceName}",null!==I&&void 0!==I?I:"").replace("${registerName}",null!==O&&void 0!==O?O:"").replace("${moduleName}",null!==_&&void 0!==_?_:"").replace("${dosId}",null!==w&&void 0!==w?w:"")}},9696:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPrototypeImports=void 0;var r=n(6074),o=n(2102);t.createPrototypeImports=function(e,t,n){var l,u,d,s={};return(n=null===(l=t.getModuleConfig)||void 0===l?void 0:l.call(t))?((null===n||void 0===n?void 0:n.peripherals)&&n.peripherals.forEach(function(e){var t,o=a(e.interfaceId.name),l=(0,r.createPrototypeImport)(o,n);l&&(s=i(i({},s),((t={})[o]=i(i({},l),{isRequired:!0}),t)))}),null===(d=(0,o.getKeys)(null!==(u=null===n||void 0===n?void 0:n.imports)&&void 0!==u?u:{}))||void 0===d||d.forEach(function(r){var o,a,l,u,d,c,v,p=null===(l=null===n||void 0===n?void 0:n.imports)||void 0===l?void 0:l[r],f=null===(u=null===t||void 0===t?void 0:t.getCreatorImportArgs)||void 0===u?void 0:u.call(t,r,e),g=null!==(c=null===(d=t.updateImportWithShouldAssignDescOrder)||void 0===d?void 0:d.call(t,r))&&void 0!==c?c:null===p||void 0===p?void 0:p.import.shouldAssignDescendantsInOrder;p&&(0!=(null===(v=null===t||void 0===t?void 0:t.shouldImport)||void 0===v?void 0:v.call(t,r,e))&&(s=i(i({},s),((o={})[r]=i(i({},p.import),{args:f}),o))),g&&g.length>0&&(s=i(i({},s),((a={})[r]=i(i({},p.import),{args:f,shouldAssignDescendantsInOrder:g}),a))))}),s):s};var a=function(e){return e=e.replace(/ /g,"").replace(/-/g,"_")}},9809:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TABID=t.COMPTYPE=void 0,function(e){e.SOFTWARE="SW",e.REGISTER="REG",e.INTERRUPT="INT",e.SETTING="SET"}(n||(t.COMPTYPE=n={})),function(e){e.MAIN="main",e.REGISTER="register"}(i||(t.TABID=i={}))},9943:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigData=void 0;var r=n(5056);t.getConfigData=function(e,t){var n,i,r=null===(i=null===e||void 0===e?void 0:(n=e.getDerivedData()).getModuleConfig)||void 0===i?void 0:i.call(n);return r=t?o.for(r).withDynamicConfigData(e).withDynamicComponents(e).build():o.for(r).build()};var o=function(){function e(t){var n=this;this.build=function(){return n.config},this.withDynamicConfigData=function(t){var i;return new e(null!==(i=null===t||void 0===t?void 0:t.getDerivedFunction("getDynamicConfigData",n.config))&&void 0!==i?i:n.config)},this.withDynamicComponents=function(t){var o,a,l=null===(a=null===t||void 0===t?void 0:(o=t.getDerivedFunctions()).getDynamicComponents)||void 0===a?void 0:a.call(o);if(l){var u=(0,r.toDictionary)(l,function(e){var t;return n.config.UIGroups[e.group]=null!==(t=n.config.UIGroups[e.group])&&void 0!==t?t:e.group,e.name},function(e){return e});n.config.softwareData=i(i({},n.config.softwareData),u)}return new e(n.config)},this.config=t}return e.for=function(t){if(!t)throw console.error("Cannot find ModuleConfig");return new e(t)},e}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var i={};!function(){"use strict";n.r(i),n.d(i,{process:function(){return S}});var e=n(629),t=n(2645);function r(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r,a=!0,l=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw r}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"dataModel",void 0),a(this,"getGeneratableItems",function(){return n.getFlashGeneratableItems()}),a(this,"getFlashGeneratableItems",function(){var e,t,i,r,o,a,l,s,c,v,p,g,m,y,b,I,_,w,S,D,C,E,A=h(n.dataModel);if(A){var O=A.getInterruptDrivenStatus(),P={generatePLIBVersion:!0,PLIBVersion:"1.0.6",disclaimer:"/*disclaimer*/",generateInterfaceContent:A.enableInterfaceDefinitionGeneration(),moduleNameUpperCase:n.dataModel.getName().toLocaleUpperCase(),moduleNameLowerCase:n.dataModel.getName().toLocaleLowerCase(),generateBlockingAPI:A.getBlockingAPIGenerationStatus(),generateNonBlockingAPI:A.getNonBlockingAPIGenerationStatus(),interruptDriven:O,interfaceApi:A.basic_flash_payload(),properties:A.getProperties(),flashWordWriteSizeInInstructions:A.getFlashWordWriteSizeInInstructions(),flashInstructionType:f,flashWriteInstructionCount:String(A.getFlashWriteInstructionCount()).replace(/,/g,""),flashInterface:A.getFlashInterface(),flashEraseInstructionCount:String(A.getFlashEraseInstructionCount()).replace(/,/g,""),flashHasAuxiliary:A.getFlashHasAuxiliary(),flashEnduranceMinimum:A.getFlashEnduranceMinimum(),flashBytesPerInstruction:A.getFlashBytesPerInstruction(),flashPcUnitsPerInstruction:A.getFlashPcUnitsPerInstruction(),flashWordWriteOpCode:A.getFlashWordWriteOpCodeHexString(),flashRowWriteOpcode:A.getFlashWriteRowOpCodeHexString(),flashOpCodeMask:A.getFlashOpCodeMaskHexString(),flashErasePageSizeInInstructions:String(A.getFlashErasePageSizeInInstructions()).replace(/,/g,""),flashPageEraseOpcode:A.getFlashErasePageOpCodeHexString(),flashHasEcc:A.getFlashHasEcc(),flashHasRowProgramming:A.getFlashHasRowProgramming(),flashWriteRowSizeInInstructions:String(A.getFlashWriteRowSizeInInstructions()).replace(/,/g,""),flashEndAddress:A.getFlashEndAddressHexString(),flashProgramBeginAddress:A.getFlashProgramBeginAddressHexString(),flashUnlockKey:A.getFlashUnlockKey(),doxyDriverGroupName:"Flash Driver",suppressMisraWarning:!0},M=null===(e=n.dataModel.getHardware())||void 0===e?void 0:e.getPeripheral().interrupts;if(void 0!=M){var N=M.NVMI;if(O){var R,F,V,T,H=u(n.dataModel);P.flashInterruptEnable=null!==(R=null===N||void 0===N?void 0:N.enable)&&void 0!==R?R:"",P.flashInterruptFlag=null!==(F=null===N||void 0===N?void 0:N.flag)&&void 0!==F?F:"",P.flashIsrHandlerName=null!==(V=null===N||void 0===N?void 0:N.handlerName)&&void 0!==V?V:"",P.isFlashContextSupported=d(H,null!==(T=null===N||void 0===N?void 0:N.name)&&void 0!==T?T:"")}}return P.nvmControlRegister=null===(t=n.dataModel)||void 0===t||null===(i=t.getRegisters())||void 0===i||null===(r=i.NVMCON)||void 0===r?void 0:r.name,P.nvmAddressRegister=null===(o=n.dataModel)||void 0===o||null===(a=o.getRegisters())||void 0===a||null===(l=a.NVMADR)||void 0===l?void 0:l.name,P.nvmDataRegister0=null===(s=n.dataModel)||void 0===s||null===(c=s.getRegisters())||void 0===c||null===(v=c.NVMDATA0)||void 0===v?void 0:v.name,P.nvmDataRegister1=null===(p=n.dataModel)||void 0===p||null===(g=p.getRegisters())||void 0===g||null===(m=g.NVMDATA1)||void 0===m?void 0:m.name,P.nvmDataRegister2=null===(y=n.dataModel)||void 0===y||null===(b=y.getRegisters())||void 0===b||null===(I=b.NVMDATA2)||void 0===I?void 0:I.name,P.nvmDataRegister3=null===(_=n.dataModel)||void 0===_||null===(w=_.getRegisters())||void 0===w||null===(S=w.NVMDATA3)||void 0===S?void 0:S.name,P.nvmSrcAddressRegister=null===(D=n.dataModel)||void 0===D||null===(C=D.getRegisters())||void 0===C||null===(E=C.NVMSRCADR)||void 0===E?void 0:E.name,P}}),this.dataModel=t},u=function(e){var t=e.getImportValue("interrupt_service"),n=[];return t&&(null===t||void 0===t?void 0:t.contextEnabledInterruptList)&&(n=t.contextEnabledInterruptList),n},d=function(e,t){var n,i=!1,o=r(e);try{for(o.s();!(n=o.n()).done;){if(n.value===t){i=!0;break}}}catch(a){o.e(a)}finally{o.f()}return i},s=n(7557),c=n.n(s);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f="uint32_t",g="flashWriteInstructionCount",m="generateAPI",h=function(e){return e?new b(e):new y},y=function e(){v(this,e),p(this,"getMyFunctions",function(){return{}}),p(this,"getModel",function(){})},b=function e(n){var i=this;v(this,e),p(this,"dataModel",void 0),p(this,"getMyFunctions",function(){return{exportApi:i.getMyExportApi,templateData:i.getMyTemplateData,alerts:i.getMyAlerts,blockingAPIGenerate:i.getBlockingAPIGenerationStatus,nonBlockingAPIGenerate:i.getNonBlockingAPIGenerationStatus,overrideOptions:i.overrideOptions,overrideDefaultValues:i.overrideDefaultValue,"flash-interface_payload":i.basic_flash_payload,importName:i.friendlyImportName,exportName:i.friendlyExportName,isInterfaceUsed:i.isFlashInterfaceUsed,enableInterfaceDefinitionGeneration:i.enableInterfaceDefinitionGeneration,interrupt_service_results:i.getFlashInterruptData,system_16bit_initializer_results:i.system_16bit_initializer_results,config_16bit_interface_args:i.getConfigBitArgs,config_16bit_interface_results:i.getConfigBitArgs,calculatedFunction:i.calculatedFunction}}),p(this,"getMyExportApi",function(e){if(e.name===t.K.getInterfaceId().name&&e.version===t.K.getInterfaceId().version){var n=t.K.createFirmwareApi("FLASH");return{api:n.api,headerFiles:n.headerFiles}}}),p(this,"getMyTemplateData",function(){return function(e){if(e)return new l(e)}(i.dataModel).getGeneratableItems()}),p(this,"getMyProcessedArgValue",function(e,n){var r;return n.some(function(n){if(n.interface===t.K.getInterfaceId().name&&void 0!=(r=i.basic_flash_args(e,n)))return!0}),r}),p(this,"overrideOptions",function(e){return e===g?[String(i.getFlashWordWriteSizeInInstructions()),String(i.getFlashWriteRowSizeInInstructions())]:[]}),p(this,"overrideDefaultValue",function(e){var t;if(e===g)t=String(i.getFlashWordWriteSizeInInstructions());return t}),p(this,"friendlyImportName",function(e){var t;switch(e){case"nvm_ctrl_32bit_v1":t="Flash Hardware";break;case"system_16bit_initializer":t="System Initializer";break;case"config_16bit_interface":t="Configuration Bits";break;default:t=e}return t}),p(this,"friendlyExportName",function(e){var t=e;return"flash"===e&&(t="Flash"),t}),p(this,"getActiveName",function(){return"Flash PLIB"}),p(this,"isFlashInterfaceUsed",function(){var e,n,r=i.dataModel.getExportInterfaces().getInterfaceData(),o=c()(r,function(e){return e.interface===t.K.getInterfaceId().name}),a=null===(e=i.dataModel)||void 0===e||null===(n=e.getExportInterfaces().getInterface("flash_interface",t.K.getInterfaceId()))||void 0===n?void 0:n.results;return!(!o&&!a)}),p(this,"getModuleNameForInterrupt",function(){var e,t;return null!==(e=null===(t=i.getFlashHardwareData())||void 0===t?void 0:t.name.toLocaleUpperCase())&&void 0!==e?e:"FLASH"}),p(this,"getInterruptData",function(e){var t=[],n=i.isInterruptMode();return e.forEach(function(e){var r,o,a,l,u,d;t.push({interruptName:null!==(r=null===(o=i.dataModel)||void 0===o||null===(a=o.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.interrupts)||void 0===u||null===(d=u[e])||void 0===d?void 0:d.name)&&void 0!==r?r:"",isEnabled:n})}),t}),p(this,"getFlashHardwareData",function(){return i.getModel().getImportValue("nvm_ctrl_32bit_upb_v1")}),p(this,"basic_flash_args",function(e,t){var n;if(e===g)void 0!=t&&t.name===g&&(n={interface:t.interface,name:t.name,value:i.getFlashWriteInstructionCountToImpl(t.value),module:t.module});return n}),p(this,"getFlashWriteInstructionCountToImpl",function(e){if(void 0!=e){var t=e,n=i.getFlashWordWriteSizeInInstructions(),r=i.getFlashWriteRowSizeInInstructions();return e!=n&&e!=r&&(t=n),t}return 4}),p(this,"isGenerateNonBlockingAPI",function(){var e=!1,t=i.getFlashResults(m);return void 0!=t&&(e="Blocking"!=t),e}),p(this,"system_16bit_initializer_results",function(){return i.isFlashInterfaceUsed()&&i.getNonBlockingAPIGenerationStatus()&&i.getInterruptDrivenStatus()?{initializer:[{funcName:"FLASH_Initialize",header:{name:"flash_nonblocking.h",path:"../flash/"}}]}:{}}),p(this,"getExportArg",function(e){var n=i.dataModel.getExportInterfaces().getInterfaceData();return c()(n,function(n){return n.interface===t.K.getInterfaceId().name&&n.name===e})}),p(this,"getConfigBitArgs",function(){return{configBitByAliasFilter:["BTMODE"],configBitSet:{}}}),p(this,"getDualPartitionDetails",function(){if(i.getFlashHasDualPartition())return{flashFirstPartitionEndAddress:i.getFlashFirstPartitionEndAddress(),flashSecondPartitionBeginAddress:i.getFlashSecondPartitionStartAddress(),flashSecondPartitionProgramBeginAddress:i.getFlashSecondPartitionProgramStartAddress(),flashSecondPartitionEndAddress:i.getFlashSecondPartitionEndAddress()}}),p(this,"getMyAlerts",function(){return[]}),p(this,"calculatedFunction",function(){}),p(this,"basic_flash_payload",function(){var e=[];return e=i.getFlashHasDualPartition()&&i.getFlashDualPartitionEnabled()?[{name:"flash_nonblocking.h",path:"flash/"}]:t.K.createFirmwareApi(i.dataModel.getName()).headerFiles,{interfaceApi:t.K.createFirmwareApi(i.dataModel.getName(),e),flashWriteInstructionCount:i.getFlashWriteInstructionCount(),flashInterface:i.getFlashInterface(),flashWordWriteSizeInInstructions:i.getFlashWordWriteSizeInInstructions(),flashEraseInstructionCount:i.getFlashEraseInstructionCount(),flashHasAuxiliary:i.getFlashHasAuxiliary(),flashEnduranceMinimum:i.getFlashEnduranceMinimum(),flashBytesPerInstruction:i.getFlashBytesPerInstruction(),flashPcUnitsPerInstruction:i.getFlashPcUnitsPerInstruction(),flashWordWriteOpCode:i.getFlashWordWriteOpCode(),flashOpCodeMask:i.getFlashOpCodeMask(),flashErasePageSizeInInstructions:i.getFlashErasePageSizeInInstructions(),flashErasePageOpCode:i.getFlashErasePageOpCode(),flashHasEcc:i.getFlashHasEcc(),flashHasRowProgramming:i.getFlashHasRowProgramming(),flashWriteRowSizeInInstructions:i.getFlashWriteRowSizeInInstructions(),flashWriteRowOpCode:i.getFlashWriteRowOpCode(),flashEndAddress:i.getFlashEndAddress(),flashProgramBeginAddress:i.getFlashProgramBeginAddress(),flashUnlockKey:i.getFlashUnlockKey(),flashHasDualPartition:i.getFlashHasDualPartition(),flashBootMode:i.getFlashBootModeValue(),flashDualPartitionDetails:i.getDualPartitionDetails()}}),p(this,"getFlashInterface",function(){return"FLASH_UNIFIED_MEMORY_MAP_QUAD_WORD_v1.0"}),p(this,"enableInterfaceDefinitionGeneration",function(){var e,t,n=!1;return i.isFlashInterfaceUsed()&&(null===(e=i.dataModel)||void 0===e||null===(t=e.getImportValue("system_16bit_initializer"))||void 0===t?void 0:t.enableInterfaceDefinitionGeneration)&&(n=!0),n}),p(this,"getFlashInterruptData",function(){var e,t=[],n=null===(e=i.getFlashHardwareData())||void 0===e?void 0:e.interrupts;for(var r in n)t.push(r);return{moduleName:i.getModuleNameForInterrupt(),interruptData:i.getInterruptData(t)}}),p(this,"isInterruptMode",function(){return!!i.isFlashInterfaceUsed()&&i.getInterruptDrivenStatus()}),p(this,"getInterruptDrivenStatus",function(){var e=!1,t=i.getFlashResults("interruptDriven");return void 0!=t&&(e=t),e}),p(this,"getFlashWordWriteSizeInInstructions",function(){return i.getFlashWordWriteSizeInInstructionsValue(i.dataModel)}),p(this,"getFlashWordWriteSizeInInstructionsValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WORD_WRITE_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WORD_WRITE_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashEraseInstructionCount",function(){return i.getFlashEraseInstructionCountValue(i.dataModel)}),p(this,"getFlashEraseInstructionCountValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashHasAuxiliary",function(){return i.getFlashHasAuxiliaryValue(i.dataModel)}),p(this,"getFlashHasAuxiliaryValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_AUXILIARY)||void 0===r?void 0:r.value)&&(o="TRUE"==(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_HAS_AUXILIARY)||void 0===d?void 0:d.value)?1:0);return o}),p(this,"getFlashEnduranceMinimum",function(){return i.getFlashEnduranceMinimumValue(i.dataModel)}),p(this,"getFlashEnduranceMinimumValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ENDURANCE_MINIMUM)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ENDURANCE_MINIMUM)||void 0===d?void 0:d.value));return o}),p(this,"getFlashBytesPerInstruction",function(){return i.getFlashBytesPerInstructionValue(i.dataModel)}),p(this,"getFlashBytesPerInstructionValue",function(e){var t,n,i,r,o,a,l,u,d=4;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_BYTES_PER_INSTRUCTION)||void 0===r?void 0:r.value)&&(d=Number(null===(o=e.getHardware())||void 0===o||null===(a=o.getPeripheral())||void 0===a||null===(l=a.properties)||void 0===l||null===(u=l.FLASH_BYTES_PER_INSTRUCTION)||void 0===u?void 0:u.value));return d}),p(this,"getFlashPcUnitsPerInstruction",function(){return i.getFlashPcUnitsPerInstructionValue(i.dataModel)}),p(this,"getFlashPcUnitsPerInstructionValue",function(e){var t,n,i,r,o,a,l,u,d=1;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_PC_UNITS_PER_INSTRUCTION)||void 0===r?void 0:r.value)&&(d=Number(null===(o=e.getHardware())||void 0===o||null===(a=o.getPeripheral())||void 0===a||null===(l=a.properties)||void 0===l||null===(u=l.FLASH_PC_UNITS_PER_INSTRUCTION)||void 0===u?void 0:u.value));return d}),p(this,"getFlashWordWriteOpCode",function(){return i.getFlashWordWriteOpCodeValue(i.dataModel)}),p(this,"getFlashWordWriteOpCodeValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WORD_WRITE_OP_CODE)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WORD_WRITE_OP_CODE)||void 0===d?void 0:d.value));return o}),p(this,"getFlashOpCodeMask",function(){return i.getFlashOpCodeMaskValue(i.dataModel)}),p(this,"getFlashOpCodeMaskValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_OP_CODE_MASK)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_OP_CODE_MASK)||void 0===d?void 0:d.value));return o}),p(this,"getFlashErasePageSizeInInstructions",function(){return i.getFlashErasePageSizeInInstructionsValue(i.dataModel)}),p(this,"getFlashErasePageSizeInInstructionsValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashErasePageOpCode",function(){return i.getFlashErasePageOpCodeValue(i.dataModel)}),p(this,"getFlashErasePageOpCodeValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_ERASE_PAGE_OP_CODE)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_ERASE_PAGE_OP_CODE)||void 0===d?void 0:d.value));return o}),p(this,"getFlashHasEcc",function(){return i.getFlashHasEccValue(i.dataModel)}),p(this,"getFlashHasEccValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_ECC)||void 0===r?void 0:r.value)&&(o="TRUE"==(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_HAS_ECC)||void 0===d?void 0:d.value)?1:0);return o}),p(this,"getFlashHasRowProgramming",function(){return i.getFlashHasRowProgrammingValue(i.dataModel)}),p(this,"getFlashHasRowProgrammingValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_ROW_PROGRAMMING)||void 0===r?void 0:r.value)&&(o="TRUE"==(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_HAS_ROW_PROGRAMMING)||void 0===d?void 0:d.value)?1:0);return o}),p(this,"getFlashWriteRowSizeInInstructions",function(){return i.getFlashWriteRowSizeInInstructionsValue(i.dataModel)}),p(this,"getFlashWriteRowSizeInInstructionsValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WRITE_ROW_SIZE_IN_INSTRUCTIONS)||void 0===r?void 0:r.value)&&(o=Number(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WRITE_ROW_SIZE_IN_INSTRUCTIONS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashWriteRowOpCode",function(){return i.getFlashWriteRowOpCodeValue(i.dataModel)}),p(this,"getFlashWriteRowOpCodeValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_WRITE_ROW_OP_CODE)||void 0===r?void 0:r.value)&&(o=Number(null===e||void 0===e||null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_WRITE_ROW_OP_CODE)||void 0===d?void 0:d.value));return o}),p(this,"getFlashEndAddress",function(){return i.getFlashEndAddressValue(i.dataModel)}),p(this,"getFlashEndAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_END_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_END_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashProgramBeginAddress",function(){return i.getFlashProgramBeginAddressValue(i.dataModel)}),p(this,"getFlashProgramBeginAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.PROGRAM_BEGIN_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.PROGRAM_BEGIN_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashUnlockKey",function(){return"0x00AA0055"}),p(this,"getFlashHasDualPartition",function(){return i.getHasDualPartitionValue(i.dataModel)}),p(this,"getHasDualPartitionValue",function(e){var t,n,i,r,o,a=null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_HAS_DUAL_PARTITION)||void 0===r?void 0:r.value;return void 0!=a&&(o="TRUE"==a),o}),p(this,"getFlashBootModeValue",function(){var e,t=i.dataModel.getImportValue("config_16bit_interface");return void 0!=t&&(e=t.configBitSettingValueAliasMap.BTMODE),e}),p(this,"getFlashFirstPartitionEndAddress",function(){return i.getFlashFirstPartitionEndAddressValue(i.dataModel)}),p(this,"getFlashFirstPartitionEndAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_FIRST_PARTITION_END_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_FIRST_PARTITION_END_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashSecondPartitionStartAddress",function(){return i.getFlashSecondPartitionStartAddressValue(i.getModel())}),p(this,"getFlashSecondPartitionStartAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_SECOND_PARTITION_START_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_SECOND_PARTITION_START_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashSecondPartitionProgramStartAddress",function(){return i.getFlashSecondPartitionProgramStartAddressValue(i.getModel())}),p(this,"getFlashSecondPartitionProgramStartAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_SECOND_PARTITION_PROGRAM_START_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_SECOND_PARTITION_PROGRAM_START_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashSecondPartitionEndAddress",function(){return i.getFlashSecondPartitionEndAddressValue(i.getModel())}),p(this,"getFlashSecondPartitionEndAddressValue",function(e){var t,n,i,r,o,a,l,u,d;void 0!=(null===e||void 0===e||null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.FLASH_SECOND_PARTITION_END_ADDRESS)||void 0===r?void 0:r.value)&&(o=Number(null===(a=e.getHardware())||void 0===a||null===(l=a.getPeripheral())||void 0===l||null===(u=l.properties)||void 0===u||null===(d=u.FLASH_SECOND_PARTITION_END_ADDRESS)||void 0===d?void 0:d.value));return o}),p(this,"getFlashDualPartitionEnabled",function(){return i.getDualPartitionEnabledValue(i.dataModel)}),p(this,"getDualPartitionEnabledValue",function(e){var t=!1,n=i.getFlashBootModeValue();return void 0!=n&&"SINGLE"!=n&&(t=!0),t}),p(this,"getFlashWriteInstructionCount",function(){var e=i.basic_flash_args(g,i.getExportArg(g));return Number(void 0!=e?e.value:i.getFlashWordWriteSizeInInstructions())}),p(this,"getBlockingAPIGenerationStatus",function(){var e=!0,t=i.getFlashResults(m);return void 0!=t&&(e="Non-Blocking"!=t),e}),p(this,"getNonBlockingAPIGenerationStatus",function(){var e=i.isGenerateNonBlockingAPI();return e&&void 0==i.getFlashHasDualPartition()&&(e=!1),e}),p(this,"getFlashResults",function(e){var n,r,o,a=null===(n=i.dataModel)||void 0===n||null===(r=n.getExportInterfaces().getInterface("flash_interface",t.K.getInterfaceId()))||void 0===r?void 0:r.results;if(void 0!=a)for(var l in a){var u;o=null===(u=a[l])||void 0===u?void 0:u[e]}return o}),p(this,"getProperties",function(){return i.getPropertiesValue(i.dataModel)}),p(this,"getPropertiesValue",function(e){var t,n;if(void 0!=(null===e||void 0===e?void 0:e.getHardware()))return null===(t=e.getHardware())||void 0===t||null===(n=t.getPeripheral())||void 0===n?void 0:n.properties}),p(this,"getFlashWordWriteOpCodeHexString",function(){var e=i.getFlashWordWriteOpCode();return i.getHexaDecimalString(e)}),p(this,"getFlashOpCodeMaskHexString",function(){var e=i.getFlashOpCodeMask();return i.getHexaDecimalString(e)}),p(this,"getFlashErasePageOpCodeHexString",function(){var e=i.getFlashErasePageOpCode();return i.getHexaDecimalString(e)}),p(this,"getFlashWriteRowOpCodeHexString",function(){var e=i.getFlashWriteRowOpCode();return i.getHexaDecimalString(e)}),p(this,"getFlashEndAddressHexString",function(){var e=i.getFlashEndAddress();return i.getHexaDecimalString(e)}),p(this,"getFlashProgramBeginAddressHexString",function(){var e=i.getFlashProgramBeginAddress();return i.getHexaDecimalString(e)}),p(this,"getHexaDecimalString",function(e){return void 0!=e?"0x"+e.toString(16):"0x"+(e=0).toString(16)}),p(this,"getModel",function(){return i.dataModel}),this.dataModel=n},I=function(){try{return n(4139)}catch(e){return}};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(t){return function(n,i){return(0,e.eh)(n,i,function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({getModuleConfig:I},t(e))})}}(function(e){return e?new b(e):new y})}(),processor=i}();
2
2
  //# sourceMappingURL=processor.js.map