@opencor/opencor 0.20250822.0 → 0.20250822.1

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,4 +1,4 @@
1
- import { _ as f, _ as o } from "./index-Bo9Lkhfn.js";
1
+ import { _ as f, _ as o } from "./index-Bf8mb7fA.js";
2
2
  export {
3
3
  f as OpenCOR,
4
4
  o as default
@@ -1195,7 +1195,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1195
1195
  }
1196
1196
  `)},lF={root:function(e){var r=e.instance;return["p-progressbar p-component",{"p-progressbar-determinate":r.determinate,"p-progressbar-indeterminate":r.indeterminate}]},value:"p-progressbar-value",label:"p-progressbar-label"},uF=Ei.extend({name:"progressbar",theme:sF,classes:lF}),cF={name:"BaseProgressBar",extends:qi,props:{value:{type:Number,default:null},mode:{type:String,default:"determinate"},showValue:{type:Boolean,default:!0}},style:uF,provide:function(){return{$pcProgressBar:this,$parentInstance:this}}},pC={name:"ProgressBar",extends:cF,inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+"%",display:"flex"}},indeterminate:function(){return this.mode==="indeterminate"},determinate:function(){return this.mode==="determinate"}}},fF=["aria-valuenow"];function dF(t,e,r,n,i,a){return x.openBlock(),x.createElementBlock("div",x.mergeProps({role:"progressbar",class:t.cx("root"),"aria-valuemin":"0","aria-valuenow":t.value,"aria-valuemax":"100"},t.ptmi("root")),[a.determinate?(x.openBlock(),x.createElementBlock("div",x.mergeProps({key:0,class:t.cx("value"),style:a.progressStyle},t.ptm("value")),[t.value!=null&&t.value!==0&&t.showValue?(x.openBlock(),x.createElementBlock("div",x.mergeProps({key:0,class:t.cx("label")},t.ptm("label")),[x.renderSlot(t.$slots,"default",{},function(){return[x.createTextVNode(x.toDisplayString(t.value+"%"),1)]})],16)):x.createCommentVNode("",!0)],16)):a.indeterminate?(x.openBlock(),x.createElementBlock("div",x.mergeProps({key:1,class:t.cx("value")},t.ptm("value")),null,16)):x.createCommentVNode("",!0)],16,fF)}pC.render=dF;const pF=x.defineComponent({__name:"UpdateDownloadProgressDialog",props:{percent:{}},setup(t){return(e,r)=>{const n=pC,i=Jd;return x.openBlock(),x.createBlock(i,{header:"Downloading Update...",closable:!1,closeOnEscape:!1,style:{width:"39rem"}},{default:x.withCtx(()=>[x.createVNode(n,{class:"no-animation",showValue:!1,value:e.percent},null,8,["value"])]),_:1})}}}),hF={class:"mt-2 mb-4"},mF=x.defineComponent({__name:"UpdateAvailableDialog",props:{version:{}},emits:["downloadAndInstall","close"],setup(t){return(e,r)=>{const n=ic,i=Jd;return x.openBlock(),x.createBlock(i,{header:"Check For Updates..."},{footer:x.withCtx(()=>[x.createVNode(n,{autofocus:"",label:"Yes",onClick:r[0]||(r[0]=a=>e.$emit("downloadAndInstall"))}),x.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[x.createElementVNode("div",hF,"Version "+x.toDisplayString(e.version)+" is available. Do you want to download it and install it?",1)]),_:1})}}}),gF={class:"mt-2 mb-4"},vF=x.defineComponent({__name:"UpdateErrorDialog",props:{title:{},issue:{}},emits:["close"],setup(t){return(e,r)=>{const n=ic,i=Jd;return x.openBlock(),x.createBlock(i,{header:e.title},{footer:x.withCtx(()=>[x.createVNode(n,{autofocus:"",label:"OK",onClick:r[0]||(r[0]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[x.createElementVNode("div",gF,x.toDisplayString(e.issue),1)]),_:1},8,["header"])}}}),hC=69,yF=169,wx=3e3,mC=new Date().getFullYear(),bF=mC===2025?"2025":`2025-${String(mC)}`;function gC(t){return`https://corsproxy.io/?url=${encodeURIComponent(t)}`}function fy(t){return t.startsWith("http://")||t.startsWith("https://")}function dy(t){return t instanceof File?io!==void 0?io.filePath(t):t.name:t}function xF(t){return typeof t=="string"?fy(t)?new Promise((e,r)=>{fetch(gC(t)).then(n=>{if(n.ok)return n.arrayBuffer();throw new Error(`The server responded with a status of ${String(n.status)}.`)}).then(n=>{const i=new Uint8Array(n);e(new Ax(dy(t),i))}).catch(n=>{r(n instanceof Error?n:new Error(String(n)))})}):new Promise((e,r)=>{io!==void 0?e(new Ax(dy(t))):r(new Error("Local files cannot be opened."))}):new Promise((e,r)=>{t.arrayBuffer().then(n=>{const i=new Uint8Array(n);e(new Ax(dy(t),i))}).catch(n=>{r(n instanceof Error?n:new Error(String(n)))})})}function Cx(t,e){if(e==="")return{type:0,index:-1};if(e===t.voiName())return{type:1,index:-1};for(let r=0;r<t.stateCount();r++)if(e===t.stateName(r))return{type:2,index:r};for(let r=0;r<t.rateCount();r++)if(e===t.rateName(r))return{type:3,index:r};for(let r=0;r<t.constantCount();r++)if(e===t.constantName(r))return{type:4,index:r};for(let r=0;r<t.computedConstantCount();r++)if(e===t.computedConstantName(r))return{type:5,index:r};for(let r=0;r<t.algebraicCount();r++)if(e===t.algebraicName(r))return{type:6,index:r};return{type:0,index:-1}}function kx(t,e){switch(e.type){case 1:return t.voi();case 2:return t.state(e.index);case 3:return t.rate(e.index);case 4:return t.constant(e.index);case 5:return t.computedConstant(e.index);case 6:return t.algebraic(e.index);default:return[]}}class wF{_fileManager=void 0;fileManager(){return this._fileManager===void 0&&!ji()&&(this._fileManager=Xd.FileManager.instance()),this._fileManager}unmanage(e){if(ji())Vi.fileManagerUnmanage(e);else{const r=this.fileManager();if(r!==void 0){const n=r.files;for(let i=0;i<n.size();++i){const a=n.get(i);if(a.fileName===e){r.unmanage(a);break}}}}}}const CF=new wF;var Ym=(t=>(t[t.UNKNOWN_FILE=0]="UNKNOWN_FILE",t[t.CELLML_FILE=1]="CELLML_FILE",t[t.SEDML_FILE=2]="SEDML_FILE",t[t.COMBINE_ARCHIVE=3]="COMBINE_ARCHIVE",t[t.IRRETRIEVABLE_FILE=4]="IRRETRIEVABLE_FILE",t))(Ym||{});let Ax=class{_path;_wasmFile={};_document={};_instance={};_issues=[];constructor(e,r=void 0){if(this._path=e,ji())Vi.fileCreate(e,r),this._issues=Vi.fileIssues(e);else if(r!==void 0){this._wasmFile=new Xd.File(e);const v=Xd._malloc(r.length);new Uint8Array(Xd.HEAPU8.buffer,v,r.length).set(r),this._wasmFile.setContents(v,r.length),this._issues=_x(this._wasmFile.issues)}else{console.error(`No contents provided for file '${e}'.`);return}if(this._issues.length!==0||(this._document=si.markRaw(new kF(this._path,this._wasmFile)),this._issues=this._document.issues(),this._issues.length!==0))return;if(this._document.modelCount()!==1){this._issues.push({type:jo.WARNING,description:"Only SED-ML files with one model are currently supported."});return}if(this._document.simulationCount()!==1){this._issues.push({type:jo.WARNING,description:"Only SED-ML files with one simulation are currently supported."});return}const a=this._document.simulation(0);if(a.type()!==vC.UNIFORM_TIME_COURSE){this._issues.push({type:jo.WARNING,description:"Only uniform time course simulations are currently supported."});return}const s=a.initialTime(),l=a.outputStartTime(),c=a.outputEndTime(),o=a.numberOfSteps();s!==l&&this._issues.push({type:jo.WARNING,description:`Only uniform time course simulations with the same values for 'initialTime' (${String(s)}) and 'outputStartTime' (${String(l)}) are currently supported.`}),l===c&&this._issues.push({type:jo.ERROR,description:`The uniform time course simulation must have different values for 'outputStartTime' (${String(l)}) and 'outputEndTime' (${String(c)}).`}),o<=0&&this._issues.push({type:jo.ERROR,description:`The uniform time course simulation must have a positive value for 'numberOfSteps' (${String(o)}).`}),this._issues.length===0&&(this._instance=this._document.instantiate(),this._issues=this._instance.issues())}type(){return ji()?Vi.fileType(this._path):this._wasmFile.type.value}path(){return this._path}issues(){return this._issues}contents(){return ji()?Vi.fileContents(this._path):this._wasmFile.contents()}document(){return this._document}instance(){return this._instance}uiJson(){let e;if(ji()){if(e=Vi.fileUiJson(this._path),e===void 0)return}else{const n=this._wasmFile.childFileFromFileName("simulation.json");if(n===null)return;e=n.contents()}const r=new TextDecoder;return JSON.parse(r.decode(e))}};var jo=(t=>(t[t.ERROR=0]="ERROR",t[t.WARNING=1]="WARNING",t))(jo||{});function _x(t){const e=[];for(let r=0;r<t.size();++r){const n=t.get(r);e.push({type:n.type.value,description:n.description})}return e}class Sx{_filePath;constructor(e){this._filePath=e}}class Tx extends Sx{_index;constructor(e,r){super(e),this._index=r}}class kF extends Sx{_wasmSedDocument={};constructor(e,r){super(e),ji()?Vi.sedDocumentCreate(this._filePath):this._wasmSedDocument=new Xd.SedDocument(r)}issues(){return ji()?Vi.sedDocumentIssues(this._filePath):_x(this._wasmSedDocument.issues)}modelCount(){return ji()?Vi.sedDocumentModelCount(this._filePath):this._wasmSedDocument.modelCount}model(e){return new AF(this._filePath,e,this._wasmSedDocument)}simulationCount(){return ji()?Vi.sedDocumentSimulationCount(this._filePath):this._wasmSedDocument.simulationCount}simulation(e){let r;if(ji())r=Vi.sedDocumentSimulationType(this._filePath,e);else switch(this._wasmSedDocument.simulation(e).constructor.name){case"SedAnalysis":r=0;break;case"SedSteadyState":r=1;break;case"SedOneStep":r=2;break;default:r=3}return r===0?new _F(this._filePath,e,this._wasmSedDocument,r):r===1?new SF(this._filePath,e,this._wasmSedDocument,r):r===2?new TF(this._filePath,e,this._wasmSedDocument,r):new MF(this._filePath,e,this._wasmSedDocument,r)}instantiate(){return new EF(this._filePath,this._wasmSedDocument)}}class AF extends Tx{_wasmSedModel={};constructor(e,r,n){super(e,r),my()&&(this._wasmSedModel=n.model(r))}addChange(e,r,n){ji()?Vi.sedDocumentModelAddChange(this._filePath,this._index,e,r,n):this._wasmSedModel.addChange(new Xd.SedChangeAttribute(e,r,n))}removeAllChanges(){ji()?Vi.sedDocumentModelRemoveAllChanges(this._filePath,this._index):this._wasmSedModel.removeAllChanges()}}var vC=(t=>(t[t.ANALYSIS=0]="ANALYSIS",t[t.STEADY_STATE=1]="STEADY_STATE",t[t.ONE_STEP=2]="ONE_STEP",t[t.UNIFORM_TIME_COURSE=3]="UNIFORM_TIME_COURSE",t))(vC||{});class py extends Tx{_type;constructor(e,r,n,i){super(e,r),this._type=i}type(){return this._type}}class _F extends py{}class SF extends py{}class TF extends py{_wasmSedSimulationOneStep={};constructor(e,r,n,i){super(e,r,n,i),my()&&(this._wasmSedSimulationOneStep=n.simulation(r))}step(){return ji()?Vi.sedDocumentSimulationOneStepStep(this._filePath,this._index):this._wasmSedSimulationOneStep.step}}class MF extends py{_wasmSedSimulationUniformTimeCourse={};constructor(e,r,n,i){super(e,r,n,i),my()&&(this._wasmSedSimulationUniformTimeCourse=n.simulation(r))}initialTime(){return ji()?Vi.sedDocumentSimulationUniformTimeCourseInitialTime(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.initialTime}outputStartTime(){return ji()?Vi.sedDocumentSimulationUniformTimeCourseOutputStartTime(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.outputStartTime}setOutputStartTime(e){ji()?Vi.sedDocumentSimulationUniformTimeCourseSetOutputStartTime(this._filePath,this._index,e):this._wasmSedSimulationUniformTimeCourse.outputStartTime=e}outputEndTime(){return ji()?Vi.sedDocumentSimulationUniformTimeCourseOutputEndTime(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.outputEndTime}setOutputEndTime(e){ji()?Vi.sedDocumentSimulationUniformTimeCourseSetOutputEndTime(this._filePath,this._index,e):this._wasmSedSimulationUniformTimeCourse.outputEndTime=e}numberOfSteps(){return ji()?Vi.sedDocumentSimulationUniformTimeCourseNumberOfSteps(this._filePath,this._index):this._wasmSedSimulationUniformTimeCourse.numberOfSteps}setNumberOfSteps(e){ji()?Vi.sedDocumentSimulationUniformTimeCourseSetNumberOfSteps(this._filePath,this._index,e):this._wasmSedSimulationUniformTimeCourse.numberOfSteps=e}}class EF extends Sx{_wasmSedInstance={};constructor(e,r){super(e),ji()?Vi.sedDocumentInstantiate(this._filePath):this._wasmSedInstance=si.markRaw(r.instantiate())}issues(){return ji()?Vi.sedInstanceIssues(this._filePath):_x(this._wasmSedInstance.issues)}task(e){return new DF(this._filePath,e,this._wasmSedInstance)}run(){return ji()?Vi.sedInstanceRun(this._filePath):this._wasmSedInstance.run()}}class DF extends Tx{_wasmSedInstanceTask={};constructor(e,r,n){super(e,r),my()&&(this._wasmSedInstanceTask=n.task(r))}voiName(){return ji()?Vi.sedInstanceTaskVoiName(this._filePath,this._index):this._wasmSedInstanceTask.voiName}voiUnit(){return ji()?Vi.sedInstanceTaskVoiUnit(this._filePath,this._index):this._wasmSedInstanceTask.voiUnit}voi(){return ji()?Vi.sedInstanceTaskVoi(this._filePath,this._index):this._wasmSedInstanceTask.voiAsArray}stateCount(){return ji()?Vi.sedInstanceTaskStateCount(this._filePath,this._index):this._wasmSedInstanceTask.stateCount}stateName(e){return ji()?Vi.sedInstanceTaskStateName(this._filePath,this._index,e):this._wasmSedInstanceTask.stateName(e)}stateUnit(e){return ji()?Vi.sedInstanceTaskStateUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.stateUnit(e)}state(e){return ji()?Vi.sedInstanceTaskState(this._filePath,this._index,e):this._wasmSedInstanceTask.stateAsArray(e)}rateCount(){return ji()?Vi.sedInstanceTaskRateCount(this._filePath,this._index):this._wasmSedInstanceTask.rateCount}rateName(e){return ji()?Vi.sedInstanceTaskRateName(this._filePath,this._index,e):this._wasmSedInstanceTask.rateName(e)}rateUnit(e){return ji()?Vi.sedInstanceTaskRateUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.rateUnit(e)}rate(e){return ji()?Vi.sedInstanceTaskRate(this._filePath,this._index,e):this._wasmSedInstanceTask.rateAsArray(e)}constantCount(){return ji()?Vi.sedInstanceTaskConstantCount(this._filePath,this._index):this._wasmSedInstanceTask.constantCount}constantName(e){return ji()?Vi.sedInstanceTaskConstantName(this._filePath,this._index,e):this._wasmSedInstanceTask.constantName(e)}constantUnit(e){return ji()?Vi.sedInstanceTaskConstantUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.constantUnit(e)}constant(e){return ji()?Vi.sedInstanceTaskConstant(this._filePath,this._index,e):this._wasmSedInstanceTask.constantAsArray(e)}computedConstantCount(){return ji()?Vi.sedInstanceTaskComputedConstantCount(this._filePath,this._index):this._wasmSedInstanceTask.computedConstantCount}computedConstantName(e){return ji()?Vi.sedInstanceTaskComputedConstantName(this._filePath,this._index,e):this._wasmSedInstanceTask.computedConstantName(e)}computedConstantUnit(e){return ji()?Vi.sedInstanceTaskComputedConstantUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.computedConstantUnit(e)}computedConstant(e){return ji()?Vi.sedInstanceTaskComputedConstant(this._filePath,this._index,e):this._wasmSedInstanceTask.computedConstantAsArray(e)}algebraicCount(){return ji()?Vi.sedInstanceTaskAlgebraicCount(this._filePath,this._index):this._wasmSedInstanceTask.algebraicCount}algebraicName(e){return ji()?Vi.sedInstanceTaskAlgebraicName(this._filePath,this._index,e):this._wasmSedInstanceTask.algebraicName(e)}algebraicUnit(e){return ji()?Vi.sedInstanceTaskAlgebraicUnit(this._filePath,this._index,e):this._wasmSedInstanceTask.algebraicUnit(e)}algebraic(e){return ji()?Vi.sedInstanceTaskAlgebraic(this._filePath,this._index,e):this._wasmSedInstanceTask.algebraicAsArray(e)}}var Kd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function NF(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Cf={},Ol={},yC;function ch(){if(yC)return Ol;yC=1;var t=Ol.ValidationError=function(L,J,te,Ce,fe,ge){if(Array.isArray(Ce)?(this.path=Ce,this.property=Ce.reduce(function(xe,Re){return xe+l(Re)},"instance")):Ce!==void 0&&(this.property=Ce),L&&(this.message=L),te){var be=te.$id||te.id;this.schema=be||te}J!==void 0&&(this.instance=J),this.name=fe,this.argument=ge,this.stack=this.toString()};t.prototype.toString=function(){return this.property+" "+this.message};var e=Ol.ValidatorResult=function(L,J,te,Ce){this.instance=L,this.schema=J,this.options=te,this.path=Ce.path,this.propertyPath=Ce.propertyPath,this.errors=[],this.throwError=te&&te.throwError,this.throwFirst=te&&te.throwFirst,this.throwAll=te&&te.throwAll,this.disableFormat=te&&te.disableFormat===!0};e.prototype.addError=function(L){var J;if(typeof L=="string")J=new t(L,this.instance,this.schema,this.path);else{if(!L)throw new Error("Missing error detail");if(!L.message)throw new Error("Missing error message");if(!L.name)throw new Error("Missing validator type");J=new t(L.message,this.instance,this.schema,this.path,L.name,L.argument)}if(this.errors.push(J),this.throwFirst)throw new n(this);if(this.throwError)throw J;return J},e.prototype.importErrors=function(L){typeof L=="string"||L&&L.validatorType?this.addError(L):L&&L.errors&&(this.errors=this.errors.concat(L.errors))};function r(P,L){return L+": "+P.toString()+`
1197
1197
  `}e.prototype.toString=function(L){return this.errors.map(r).join("")},Object.defineProperty(e.prototype,"valid",{get:function(){return!this.errors.length}}),Ol.ValidatorResultError=n;function n(P){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=P.instance,this.schema=P.schema,this.options=P.options,this.errors=P.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var i=Ol.SchemaError=function P(L,J){this.message=L,this.schema=J,Error.call(this,L),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,P)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=Ol.SchemaContext=function(L,J,te,Ce,fe){this.schema=L,this.options=J,Array.isArray(te)?(this.path=te,this.propertyPath=te.reduce(function(ge,be){return ge+l(be)},"instance")):this.propertyPath=te,this.base=Ce,this.schemas=fe};a.prototype.resolve=function(L){return S(this.base,L)},a.prototype.makeChild=function(L,J){var te=J===void 0?this.path:this.path.concat([J]),Ce=L.$id||L.id;let fe=S(this.base,Ce||"");var ge=new a(L,this.options,te,fe,Object.create(this.schemas));return Ce&&!ge.schemas[fe]&&(ge.schemas[fe]=L),ge};var s=Ol.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|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-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(P){return typeof P=="string"&&parseFloat(P)===parseInt(P,10)&&!isNaN(P)},regex:function(P){var L=!0;try{new RegExp(P)}catch{L=!1}return L},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};s.regexp=s.regex,s.pattern=s.regex,s.ipv4=s["ip-address"],Ol.isFormat=function(L,J,te){if(typeof L=="string"&&s[J]!==void 0){if(s[J]instanceof RegExp)return s[J].test(L);if(typeof s[J]=="function")return s[J](L)}else if(te&&te.customFormats&&typeof te.customFormats[J]=="function")return te.customFormats[J](L);return!0};var l=Ol.makeSuffix=function(L){return L=L.toString(),!L.match(/[.\s\[\]]/)&&!L.match(/^[\d]/)?"."+L:L.match(/^\d+$/)?"["+L+"]":"["+JSON.stringify(L)+"]"};Ol.deepCompareStrict=function P(L,J){if(typeof L!=typeof J)return!1;if(Array.isArray(L))return!Array.isArray(J)||L.length!==J.length?!1:L.every(function(fe,ge){return P(L[ge],J[ge])});if(typeof L=="object"){if(!L||!J)return L===J;var te=Object.keys(L),Ce=Object.keys(J);return te.length!==Ce.length?!1:te.every(function(fe){return P(L[fe],J[fe])})}return L===J};function c(P,L,J,te){typeof J=="object"?L[te]=b(P[te],J):P.indexOf(J)===-1&&L.push(J)}function o(P,L,J){L[J]=P[J]}function v(P,L,J,te){typeof L[te]!="object"||!L[te]?J[te]=L[te]:P[te]?J[te]=b(P[te],L[te]):J[te]=L[te]}function b(P,L){var J=Array.isArray(L),te=J&&[]||{};return J?(P=P||[],te=te.concat(P),L.forEach(c.bind(null,P,te))):(P&&typeof P=="object"&&Object.keys(P).forEach(o.bind(null,P,te)),Object.keys(L).forEach(v.bind(null,P,L,te))),te}Ol.deepMerge=b,Ol.objectGetPath=function(L,J){for(var te=J.split("/").slice(1),Ce;typeof(Ce=te.shift())=="string";){var fe=decodeURIComponent(Ce.replace(/~0/,"~").replace(/~1/g,"/"));if(!(fe in L))return;L=L[fe]}return L};function k(P){return"/"+encodeURIComponent(P).replace(/~/g,"%7E")}Ol.encodePath=function(L){return L.map(k).join("")},Ol.getDecimalPlaces=function(L){var J=0;if(isNaN(L))return J;typeof L!="number"&&(L=Number(L));var te=L.toString().split("e");if(te.length===2){if(te[1][0]!=="-")return J;J=Number(te[1].slice(1))}var Ce=te[0].split(".");return Ce.length===2&&(J+=Ce[1].length),J},Ol.isSchema=function(L){return typeof L=="object"&&L||typeof L=="boolean"};var S=Ol.resolveUrl=function(L,J){const te=new URL(J,new URL(L,"resolve://"));if(te.protocol==="resolve:"){const{pathname:Ce,search:fe,hash:ge}=te;return Ce+fe+ge}return te.toString()};return Ol}var Mx,bC;function OF(){if(bC)return Mx;bC=1;var t=ch(),e=t.ValidatorResult,r=t.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var i=n.validators={};i.type=function(b,k,S,P){if(b===void 0)return null;var L=new e(b,k,S,P),J=Array.isArray(k.type)?k.type:[k.type];if(!J.some(this.testType.bind(this,b,k,S,P))){var te=J.map(function(Ce){if(Ce){var fe=Ce.$id||Ce.id;return fe?"<"+fe+">":Ce+""}});L.addError({name:"type",argument:te,message:"is not of a type(s) "+te})}return L};function a(v,b,k,S,P){var L=b.throwError,J=b.throwAll;b.throwError=!1,b.throwAll=!1;var te=this.validateSchema(v,P,b,k);return b.throwError=L,b.throwAll=J,!te.valid&&S instanceof Function&&S(te),te.valid}i.anyOf=function(b,k,S,P){if(b===void 0)return null;var L=new e(b,k,S,P),J=new e(b,k,S,P);if(!Array.isArray(k.anyOf))throw new r("anyOf must be an array");if(!k.anyOf.some(a.bind(this,b,S,P,function(Ce){J.importErrors(Ce)}))){var te=k.anyOf.map(function(Ce,fe){var ge=Ce.$id||Ce.id;return ge?"<"+ge+">":Ce.title&&JSON.stringify(Ce.title)||Ce.$ref&&"<"+Ce.$ref+">"||"[subschema "+fe+"]"});S.nestedErrors&&L.importErrors(J),L.addError({name:"anyOf",argument:te,message:"is not any of "+te.join(",")})}return L},i.allOf=function(b,k,S,P){if(b===void 0)return null;if(!Array.isArray(k.allOf))throw new r("allOf must be an array");var L=new e(b,k,S,P),J=this;return k.allOf.forEach(function(te,Ce){var fe=J.validateSchema(b,te,S,P);if(!fe.valid){var ge=te.$id||te.id,be=ge||te.title&&JSON.stringify(te.title)||te.$ref&&"<"+te.$ref+">"||"[subschema "+Ce+"]";L.addError({name:"allOf",argument:{id:be,length:fe.errors.length,valid:fe},message:"does not match allOf schema "+be+" with "+fe.errors.length+" error[s]:"}),L.importErrors(fe)}}),L},i.oneOf=function(b,k,S,P){if(b===void 0)return null;if(!Array.isArray(k.oneOf))throw new r("oneOf must be an array");var L=new e(b,k,S,P),J=new e(b,k,S,P),te=k.oneOf.filter(a.bind(this,b,S,P,function(fe){J.importErrors(fe)})).length,Ce=k.oneOf.map(function(fe,ge){var be=fe.$id||fe.id;return be||fe.title&&JSON.stringify(fe.title)||fe.$ref&&"<"+fe.$ref+">"||"[subschema "+ge+"]"});return te!==1&&(S.nestedErrors&&L.importErrors(J),L.addError({name:"oneOf",argument:Ce,message:"is not exactly one from "+Ce.join(",")})),L},i.if=function(b,k,S,P){if(b===void 0)return null;if(!t.isSchema(k.if))throw new Error('Expected "if" keyword to be a schema');var L=a.call(this,b,S,P,null,k.if),J=new e(b,k,S,P),te;if(L){if(k.then===void 0)return;if(!t.isSchema(k.then))throw new Error('Expected "then" keyword to be a schema');te=this.validateSchema(b,k.then,S,P.makeChild(k.then)),J.importErrors(te)}else{if(k.else===void 0)return;if(!t.isSchema(k.else))throw new Error('Expected "else" keyword to be a schema');te=this.validateSchema(b,k.else,S,P.makeChild(k.else)),J.importErrors(te)}return J};function s(v,b){if(Object.hasOwnProperty.call(v,b))return v[b];if(b in v){for(;v=Object.getPrototypeOf(v);)if(Object.propertyIsEnumerable.call(v,b))return v[b]}}i.propertyNames=function(b,k,S,P){if(this.types.object(b)){var L=new e(b,k,S,P),J=k.propertyNames!==void 0?k.propertyNames:{};if(!t.isSchema(J))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var te in b)if(s(b,te)!==void 0){var Ce=this.validateSchema(te,J,S,P.makeChild(J));L.importErrors(Ce)}return L}},i.properties=function(b,k,S,P){if(this.types.object(b)){var L=new e(b,k,S,P),J=k.properties||{};for(var te in J){var Ce=J[te];if(Ce!==void 0){if(Ce===null)throw new r('Unexpected null, expected schema in "properties"');typeof S.preValidateProperty=="function"&&S.preValidateProperty(b,te,Ce,S,P);var fe=s(b,te),ge=this.validateSchema(fe,Ce,S,P.makeChild(Ce,te));ge.instance!==L.instance[te]&&(L.instance[te]=ge.instance),L.importErrors(ge)}}return L}};function l(v,b,k,S,P,L){if(this.types.object(v)&&!(b.properties&&b.properties[P]!==void 0))if(b.additionalProperties===!1)L.addError({name:"additionalProperties",argument:P,message:"is not allowed to have the additional property "+JSON.stringify(P)});else{var J=b.additionalProperties||{};typeof k.preValidateProperty=="function"&&k.preValidateProperty(v,P,J,k,S);var te=this.validateSchema(v[P],J,k,S.makeChild(J,P));te.instance!==L.instance[P]&&(L.instance[P]=te.instance),L.importErrors(te)}}i.patternProperties=function(b,k,S,P){if(this.types.object(b)){var L=new e(b,k,S,P),J=k.patternProperties||{};for(var te in b){var Ce=!0;for(var fe in J){var ge=J[fe];if(ge!==void 0){if(ge===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var be=new RegExp(fe,"u")}catch{be=new RegExp(fe)}if(be.test(te)){Ce=!1,typeof S.preValidateProperty=="function"&&S.preValidateProperty(b,te,ge,S,P);var xe=this.validateSchema(b[te],ge,S,P.makeChild(ge,te));xe.instance!==L.instance[te]&&(L.instance[te]=xe.instance),L.importErrors(xe)}}}Ce&&l.call(this,b,k,S,P,te,L)}return L}},i.additionalProperties=function(b,k,S,P){if(this.types.object(b)){if(k.patternProperties)return null;var L=new e(b,k,S,P);for(var J in b)l.call(this,b,k,S,P,J,L);return L}},i.minProperties=function(b,k,S,P){if(this.types.object(b)){var L=new e(b,k,S,P),J=Object.keys(b);return J.length>=k.minProperties||L.addError({name:"minProperties",argument:k.minProperties,message:"does not meet minimum property length of "+k.minProperties}),L}},i.maxProperties=function(b,k,S,P){if(this.types.object(b)){var L=new e(b,k,S,P),J=Object.keys(b);return J.length<=k.maxProperties||L.addError({name:"maxProperties",argument:k.maxProperties,message:"does not meet maximum property length of "+k.maxProperties}),L}},i.items=function(b,k,S,P){var L=this;if(this.types.array(b)&&k.items!==void 0){var J=new e(b,k,S,P);return b.every(function(te,Ce){if(Array.isArray(k.items))var fe=k.items[Ce]===void 0?k.additionalItems:k.items[Ce];else var fe=k.items;if(fe===void 0)return!0;if(fe===!1)return J.addError({name:"items",message:"additionalItems not permitted"}),!1;var ge=L.validateSchema(te,fe,S,P.makeChild(fe,Ce));return ge.instance!==J.instance[Ce]&&(J.instance[Ce]=ge.instance),J.importErrors(ge),!0}),J}},i.contains=function(b,k,S,P){var L=this;if(this.types.array(b)&&k.contains!==void 0){if(!t.isSchema(k.contains))throw new Error('Expected "contains" keyword to be a schema');var J=new e(b,k,S,P),te=b.some(function(Ce,fe){var ge=L.validateSchema(Ce,k.contains,S,P.makeChild(k.contains,fe));return ge.errors.length===0});return te===!1&&J.addError({name:"contains",argument:k.contains,message:"must contain an item matching given schema"}),J}},i.minimum=function(b,k,S,P){if(this.types.number(b)){var L=new e(b,k,S,P);return k.exclusiveMinimum&&k.exclusiveMinimum===!0?b>k.minimum||L.addError({name:"minimum",argument:k.minimum,message:"must be greater than "+k.minimum}):b>=k.minimum||L.addError({name:"minimum",argument:k.minimum,message:"must be greater than or equal to "+k.minimum}),L}},i.maximum=function(b,k,S,P){if(this.types.number(b)){var L=new e(b,k,S,P);return k.exclusiveMaximum&&k.exclusiveMaximum===!0?b<k.maximum||L.addError({name:"maximum",argument:k.maximum,message:"must be less than "+k.maximum}):b<=k.maximum||L.addError({name:"maximum",argument:k.maximum,message:"must be less than or equal to "+k.maximum}),L}},i.exclusiveMinimum=function(b,k,S,P){if(typeof k.exclusiveMinimum!="boolean"&&this.types.number(b)){var L=new e(b,k,S,P),J=b>k.exclusiveMinimum;return J||L.addError({name:"exclusiveMinimum",argument:k.exclusiveMinimum,message:"must be strictly greater than "+k.exclusiveMinimum}),L}},i.exclusiveMaximum=function(b,k,S,P){if(typeof k.exclusiveMaximum!="boolean"&&this.types.number(b)){var L=new e(b,k,S,P),J=b<k.exclusiveMaximum;return J||L.addError({name:"exclusiveMaximum",argument:k.exclusiveMaximum,message:"must be strictly less than "+k.exclusiveMaximum}),L}};var c=function(b,k,S,P,L,J){if(this.types.number(b)){var te=k[L];if(te==0)throw new r(L+" cannot be zero");var Ce=new e(b,k,S,P),fe=t.getDecimalPlaces(b),ge=t.getDecimalPlaces(te),be=Math.max(fe,ge),xe=Math.pow(10,be);return Math.round(b*xe)%Math.round(te*xe)!==0&&Ce.addError({name:L,argument:te,message:J+JSON.stringify(te)}),Ce}};i.multipleOf=function(b,k,S,P){return c.call(this,b,k,S,P,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(b,k,S,P){return c.call(this,b,k,S,P,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(b,k,S,P){var L=new e(b,k,S,P);return b===void 0&&k.required===!0?L.addError({name:"required",message:"is required"}):this.types.object(b)&&Array.isArray(k.required)&&k.required.forEach(function(J){s(b,J)===void 0&&L.addError({name:"required",argument:J,message:"requires property "+JSON.stringify(J)})}),L},i.pattern=function(b,k,S,P){if(this.types.string(b)){var L=new e(b,k,S,P),J=k.pattern;try{var te=new RegExp(J,"u")}catch{te=new RegExp(J)}return b.match(te)||L.addError({name:"pattern",argument:k.pattern,message:"does not match pattern "+JSON.stringify(k.pattern.toString())}),L}},i.format=function(b,k,S,P){if(b!==void 0){var L=new e(b,k,S,P);return!L.disableFormat&&!t.isFormat(b,k.format,this)&&L.addError({name:"format",argument:k.format,message:"does not conform to the "+JSON.stringify(k.format)+" format"}),L}},i.minLength=function(b,k,S,P){if(this.types.string(b)){var L=new e(b,k,S,P),J=b.match(/[\uDC00-\uDFFF]/g),te=b.length-(J?J.length:0);return te>=k.minLength||L.addError({name:"minLength",argument:k.minLength,message:"does not meet minimum length of "+k.minLength}),L}},i.maxLength=function(b,k,S,P){if(this.types.string(b)){var L=new e(b,k,S,P),J=b.match(/[\uDC00-\uDFFF]/g),te=b.length-(J?J.length:0);return te<=k.maxLength||L.addError({name:"maxLength",argument:k.maxLength,message:"does not meet maximum length of "+k.maxLength}),L}},i.minItems=function(b,k,S,P){if(this.types.array(b)){var L=new e(b,k,S,P);return b.length>=k.minItems||L.addError({name:"minItems",argument:k.minItems,message:"does not meet minimum length of "+k.minItems}),L}},i.maxItems=function(b,k,S,P){if(this.types.array(b)){var L=new e(b,k,S,P);return b.length<=k.maxItems||L.addError({name:"maxItems",argument:k.maxItems,message:"does not meet maximum length of "+k.maxItems}),L}};function o(v,b,k){var S,P=k.length;for(S=b+1,P;S<P;S++)if(t.deepCompareStrict(v,k[S]))return!1;return!0}return i.uniqueItems=function(b,k,S,P){if(k.uniqueItems===!0&&this.types.array(b)){var L=new e(b,k,S,P);return b.every(o)||L.addError({name:"uniqueItems",message:"contains duplicate item"}),L}},i.dependencies=function(b,k,S,P){if(this.types.object(b)){var L=new e(b,k,S,P);for(var J in k.dependencies)if(b[J]!==void 0){var te=k.dependencies[J],Ce=P.makeChild(te,J);if(typeof te=="string"&&(te=[te]),Array.isArray(te))te.forEach(function(ge){b[ge]===void 0&&L.addError({name:"dependencies",argument:Ce.propertyPath,message:"property "+ge+" not found, required by "+Ce.propertyPath})});else{var fe=this.validateSchema(b,te,S,Ce);L.instance!==fe.instance&&(L.instance=fe.instance),fe&&fe.errors.length&&(L.addError({name:"dependencies",argument:Ce.propertyPath,message:"does not meet dependency required by "+Ce.propertyPath}),L.importErrors(fe))}}return L}},i.enum=function(b,k,S,P){if(b===void 0)return null;if(!Array.isArray(k.enum))throw new r("enum expects an array",k);var L=new e(b,k,S,P);return k.enum.some(t.deepCompareStrict.bind(null,b))||L.addError({name:"enum",argument:k.enum,message:"is not one of enum values: "+k.enum.map(String).join(",")}),L},i.const=function(b,k,S,P){if(b===void 0)return null;var L=new e(b,k,S,P);return t.deepCompareStrict(k.const,b)||L.addError({name:"const",argument:k.const,message:"does not exactly match expected constant: "+k.const}),L},i.not=i.disallow=function(b,k,S,P){var L=this;if(b===void 0)return null;var J=new e(b,k,S,P),te=k.not||k.disallow;return te?(Array.isArray(te)||(te=[te]),te.forEach(function(Ce){if(L.testType(b,k,S,P,Ce)){var fe=Ce&&(Ce.$id||Ce.id),ge=fe||Ce;J.addError({name:"not",argument:ge,message:"is of prohibited type "+ge})}}),J):null},Mx=n,Mx}var hy={},xC;function Ex(){if(xC)return hy;xC=1;var t=ch();hy.SchemaScanResult=e;function e(r,n){this.id=r,this.ref=n}return hy.scan=function(n,i){function a(v,b){if(!b||typeof b!="object")return;if(b.$ref){let L=t.resolveUrl(v,b.$ref);o[L]=o[L]?o[L]+1:0;return}var k=b.$id||b.id;let S=t.resolveUrl(v,k);var P=k?S:v;if(P){if(P.indexOf("#")<0&&(P+="#"),c[P]){if(!t.deepCompareStrict(c[P],b))throw new Error("Schema <"+P+"> already exists with different definition");return c[P]}c[P]=b,P[P.length-1]=="#"&&(c[P.substring(0,P.length-1)]=b)}s(P+"/items",Array.isArray(b.items)?b.items:[b.items]),s(P+"/extends",Array.isArray(b.extends)?b.extends:[b.extends]),a(P+"/additionalItems",b.additionalItems),l(P+"/properties",b.properties),a(P+"/additionalProperties",b.additionalProperties),l(P+"/definitions",b.definitions),l(P+"/patternProperties",b.patternProperties),l(P+"/dependencies",b.dependencies),s(P+"/disallow",b.disallow),s(P+"/allOf",b.allOf),s(P+"/anyOf",b.anyOf),s(P+"/oneOf",b.oneOf),a(P+"/not",b.not)}function s(v,b){if(Array.isArray(b))for(var k=0;k<b.length;k++)a(v+"/"+k,b[k])}function l(v,b){if(!(!b||typeof b!="object"))for(var k in b)a(v+"/"+k,b[k])}var c={},o={};return a(n,i),new e(c,o)},hy}var Dx,wC;function BF(){if(wC)return Dx;wC=1;var t=OF(),e=ch(),r=Ex().scan,n=e.ValidatorResult,i=e.ValidatorResultError,a=e.SchemaError,s=e.SchemaContext,l="/",c=function b(){this.customFormats=Object.create(b.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(v),this.attributes=Object.create(t.validators)};c.prototype.customFormats={},c.prototype.schemas=null,c.prototype.types=null,c.prototype.attributes=null,c.prototype.unresolvedRefs=null,c.prototype.addSchema=function(k,S){var P=this;if(!k)return null;var L=r(S||l,k),J=S||k.$id||k.id;for(var te in L.id)this.schemas[te]=L.id[te];for(var te in L.ref)this.unresolvedRefs.push(te);return this.unresolvedRefs=this.unresolvedRefs.filter(function(Ce){return typeof P.schemas[Ce]>"u"}),this.schemas[J]},c.prototype.addSubSchemaArray=function(k,S){if(Array.isArray(S))for(var P=0;P<S.length;P++)this.addSubSchema(k,S[P])},c.prototype.addSubSchemaObject=function(k,S){if(!(!S||typeof S!="object"))for(var P in S)this.addSubSchema(k,S[P])},c.prototype.setSchemas=function(k){this.schemas=k},c.prototype.getSchema=function(k){return this.schemas[k]},c.prototype.validate=function(k,S,P,L){if(typeof S!="boolean"&&typeof S!="object"||S===null)throw new a("Expected `schema` to be an object or boolean");P||(P={});var J=S.$id||S.id;let te=e.resolveUrl(P.base,J||"");if(!L){L=new s(S,P,[],te,Object.create(this.schemas)),L.schemas[te]||(L.schemas[te]=S);var Ce=r(te,S);for(var fe in Ce.id){var ge=Ce.id[fe];L.schemas[fe]=ge}}if(P.required&&k===void 0){var be=new n(k,S,P,L);return be.addError("is required, but is undefined"),be}var be=this.validateSchema(k,S,P,L);if(be){if(P.throwAll&&be.errors.length)throw new i(be)}else throw new Error("Result undefined");return be};function o(b){var k=typeof b=="string"?b:b.$ref;return typeof k=="string"?k:!1}c.prototype.validateSchema=function(k,S,P,L){var J=new n(k,S,P,L);if(typeof S=="boolean")S===!0?S={}:S===!1&&(S={type:[]});else if(!S)throw new Error("schema is undefined");if(S.extends)if(Array.isArray(S.extends)){var te={schema:S,ctx:L};S.extends.forEach(this.schemaTraverser.bind(this,te)),S=te.schema,te.schema=null,te.ctx=null,te=null}else S=e.deepMerge(S,this.superResolve(S.extends,L));var Ce=o(S);if(Ce){var fe=this.resolve(S,Ce,L),ge=new s(fe.subschema,P,L.path,fe.switchSchema,L.schemas);return this.validateSchema(k,fe.subschema,P,ge)}var be=P&&P.skipAttributes||[];for(var xe in S)if(!t.ignoreProperties[xe]&&be.indexOf(xe)<0){var Re=null,qe=this.attributes[xe];if(qe)Re=qe.call(this,k,S,P,L);else if(P.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+xe,S);Re&&J.importErrors(Re)}if(typeof P.rewrite=="function"){var $e=P.rewrite.call(this,k,S,P,L);J.instance=$e}return J},c.prototype.schemaTraverser=function(k,S){k.schema=e.deepMerge(k.schema,this.superResolve(S,k.ctx))},c.prototype.superResolve=function(k,S){var P=o(k);return P?this.resolve(k,P,S).subschema:k},c.prototype.resolve=function(k,S,P){if(S=P.resolve(S),P.schemas[S])return{subschema:P.schemas[S],switchSchema:S};let J=new URL(S,"thismessage::/").hash;var te=J&&J.length&&S.substr(0,S.length-J.length);if(!te||!P.schemas[te])throw new a("no such schema <"+S+">",k);var Ce=e.objectGetPath(P.schemas[te],J.substr(1));if(Ce===void 0)throw new a("no such schema "+J+" located in <"+te+">",k);return{subschema:Ce,switchSchema:S}},c.prototype.testType=function(k,S,P,L,J){if(J!==void 0){if(J===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[J]=="function")return this.types[J].call(this,k);if(J&&typeof J=="object"){var te=this.validateSchema(k,J,P,L);return te===void 0||!(te&&te.errors.length)}return!0}};var v=c.prototype.types={};return v.string=function(k){return typeof k=="string"},v.number=function(k){return typeof k=="number"&&isFinite(k)},v.integer=function(k){return typeof k=="number"&&k%1===0},v.boolean=function(k){return typeof k=="boolean"},v.array=function(k){return Array.isArray(k)},v.null=function(k){return k===null},v.date=function(k){return k instanceof Date},v.any=function(k){return!0},v.object=function(k){return k&&typeof k=="object"&&!Array.isArray(k)&&!(k instanceof Date)},Dx=c,Dx}var CC;function FF(){if(CC)return Cf;CC=1;var t=Cf.Validator=BF();return Cf.ValidatorResult=ch().ValidatorResult,Cf.ValidatorResultError=ch().ValidatorResultError,Cf.ValidationError=ch().ValidationError,Cf.SchemaError=ch().SchemaError,Cf.SchemaScanResult=Ex().SchemaScanResult,Cf.scan=Ex().scan,Cf.validate=function(e,r,n){var i=new t;return i.validate(e,r,n)},Cf}var IF=FF();function LF(t){if(t===void 0)return[{type:jo.WARNING,description:"UI JSON: no UI JSON was provided."}];const e=new IF.Validator,r={additionalProperties:!1,properties:{input:{items:{oneOf:[{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{type:"string"},name:{required:!0,type:"string"},possibleValues:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"number"}},type:"object"},minItems:1,required:!0,type:"array"},visible:{type:"string"}}},{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{type:"string"},maximumValue:{required:!0,type:"number"},minimumValue:{required:!0,type:"number"},name:{required:!0,type:"string"},stepValue:{type:"number"},visible:{type:"string"}}}],type:"object"},minItems:1,required:!0,type:"array"},output:{additionalProperties:!1,minItems:1,properties:{data:{items:{additionalProperties:!1,properties:{id:{required:!0,type:"string"},name:{required:!0,type:"string"}},type:"object"},minItems:1,required:!0,type:"array"},plots:{items:{additionalProperties:!1,properties:{xAxisTitle:{required:!0,type:"string"},xValue:{required:!0,type:"string"},yAxisTitle:{required:!0,type:"string"},yValue:{required:!0,type:"string"}},type:"object"},maxItems:9,minItems:1,required:!0,type:"array"}},required:!0,type:"object"},parameters:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"string"}},minItems:1,required:!0,type:"object"},required:!0,type:"array"}},type:"object"},n=e.validate(t,r,{nestedErrors:!0});if(!n.valid){const l=[];for(const c of String(n).split(`
1198
- `))c!==""&&l.push({type:jo.WARNING,description:`UI JSON: ${xx(c)}`});return l}const i=[],a={};for(const l of t.input){let c=function(v){return"possibleValues"in v},o=function(v){return"minimumValue"in v&&"maximumValue"in v};if(l.id!==void 0&&(l.id===""&&i.push({type:jo.WARNING,description:"UI JSON: an input id must not be empty."}),a[l.id]&&i.push({type:jo.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),a[l.id]=!0),l.name===""&&i.push({type:jo.WARNING,description:"UI JSON: an input name must not be empty."}),c(l)){for(const k of l.possibleValues)k.name===""&&i.push({type:jo.WARNING,description:"UI JSON: an input possible value name must not be empty."});const v=l.possibleValues.map(k=>k.value),b={};for(const k of v)b[k]&&i.push({type:jo.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(k)+" is used more than once)."}),b[k]=!0;v.includes(l.defaultValue)||i.push({type:jo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+v.join(", ")+")."})}if(o(l)){l.minimumValue>=l.maximumValue&&i.push({type:jo.WARNING,description:"UI JSON: an input minimum value ("+String(l.minimumValue)+") must be lower than the maximum value ("+String(l.maximumValue)+")."}),(l.defaultValue<l.minimumValue||l.defaultValue>l.maximumValue)&&i.push({type:jo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be greater or equal than the minimum value ("+String(l.minimumValue)+") and lower or equal than the maximum value ("+String(l.maximumValue)+")."});const v=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>v)&&i.push({type:jo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be greater than zero and lower or equal than the range value ("+String(v)+")."}),Number.isInteger(v/l.stepValue)||i.push({type:jo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(v)+")."})):Number.isInteger(v)||i.push({type:jo.WARNING,description:"UI JSON: a (default) input step value (1) must be a factor of the range value ("+String(v)+")."})}l.visible!==void 0&&l.visible===""&&i.push({type:jo.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of t.output.data)l.id===""&&i.push({type:jo.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:jo.WARNING,description:`UI JSON: an output data id must be unique (${l.id} is used more than once).`}),s[l.id]=!0,l.name===""&&i.push({type:jo.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of t.output.plots)l.xAxisTitle===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of t.parameters)l.name===""&&i.push({type:jo.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:jo.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function ji(){return io!==void 0}function my(){return!ji()}function PF(){return ji()?Vi.version():Xd.versionString()}let Vi={},Xd={};async function RF(){if(window.locApi!==void 0)Vi=window.locApi;else try{const t=(await import(gC("https://opencor.ws/libopencor/downloads/0.20250805.0/libopencor.js"))).default;Xd=await t()}catch(t){console.error("Failed to load libOpenCOR's WebAssembly module:",t)}}const zF="0.20250822.0",$F={class:"space-y-7"},UF={class:"text-center"},qF={class:"text-3xl font-bold"},jF={key:0,class:"text-xl italic font-bold"},VF={class:"text-sm italic"},HF={class:"space-y-2"},QF=x.defineComponent({__name:"AboutDialog",emits:["close"],setup(t){return(e,r)=>{const n=ic,i=Jd;return x.openBlock(),x.createBlock(i,{header:" ",style:{width:"39rem"}},{footer:x.withCtx(()=>[x.createVNode(n,{label:"OK",autofocus:"",onClick:r[0]||(r[0]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[x.createElementVNode("div",$F,[x.createElementVNode("div",UF,[x.createElementVNode("div",qF,"OpenCOR "+x.toDisplayString(x.unref(zF)),1),x.unref(io)!==void 0?(x.openBlock(),x.createElementBlock("div",jF,x.toDisplayString(x.unref(io).operatingSystem()),1)):x.createCommentVNode("",!0),x.createElementVNode("div",VF,"Copyright "+x.toDisplayString(bF),1)]),x.createElementVNode("div",HF,[x.createElementVNode("div",null,[r[1]||(r[1]=x.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1)),r[2]||(r[2]=x.createTextVNode(" is a frontend to ",-1)),r[3]||(r[3]=x.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1)),x.createTextVNode(" "+x.toDisplayString(PF())+", a library that can be used to organise, edit, simulate, and analyse ",1),r[4]||(r[4]=x.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1)),r[5]||(r[5]=x.createTextVNode(" files. ",-1))]),r[6]||(r[6]=x.createElementVNode("div",{class:"space-y-0"},[x.createElementVNode("div",null,"There are two versions of OpenCOR:"),x.createElementVNode("ol",{class:"list-decimal list-inside ml-2"},[x.createElementVNode("li",null,[x.createElementVNode("span",{class:"font-bold"},"OpenCOR:"),x.createTextVNode(" a desktop application that can be run on "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors"},"Intel"),x.createTextVNode("-based and "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family"},"ARM"),x.createTextVNode("-based "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Microsoft_Windows",target:"_blank",rel:"noopener"},"Windows"),x.createTextVNode(", "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Linux",target:"_blank",rel:"noopener"},"Linux"),x.createTextVNode(", and "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/MacOS",target:"_blank",rel:"noopener"},"macOS"),x.createTextVNode(" machines; and ")]),x.createElementVNode("li",null,[x.createElementVNode("span",{class:"font-bold"},"OpenCOR's Web app:"),x.createTextVNode(" a "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Web_application",target:"_blank",rel:"noopener"},"Web app"),x.createTextVNode(" that can be run on a Web browser. ")])])],-1))])])]),_:1})}}}),WF=x.defineComponent({__name:"ResetAllDialog",emits:["resetAll","close"],setup(t){return(e,r)=>{const n=ic,i=Jd;return x.openBlock(),x.createBlock(i,{header:"Reset All..."},{footer:x.withCtx(()=>[x.createVNode(n,{autofocus:"",label:"Yes",severity:"danger",onClick:r[0]||(r[0]=a=>e.$emit("resetAll"))}),x.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[r[2]||(r[2]=x.createElementVNode("div",{class:"mt-2 mb-4"},"You are about to reset all of your settings. Do you want to proceed?",-1))]),_:1})}}});var ep={name:"CheckIcon",extends:Wo};function GF(t,e,r,n,i,a){return x.openBlock(),x.createElementBlock("svg",x.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[x.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}ep.render=GF;var Nx={name:"MinusIcon",extends:Wo};function YF(t,e,r,n,i,a){return x.openBlock(),x.createElementBlock("svg",x.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[x.createElementVNode("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}Nx.render=YF;var Ox={name:"BaseEditableHolder",extends:qi,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(e){this.d_value=e},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var r,n;this.formField=((r=this.$pcForm)===null||r===void 0||(n=r.register)===null||n===void 0?void 0:n.call(r,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var r,n;this.formField=((r=this.$pcForm)===null||r===void 0||(n=r.register)===null||n===void 0?void 0:n.call(r,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,r){var n,i;this.controlled&&(this.d_value=e,this.$emit("update:modelValue",e)),this.$emit("value-change",e),(n=(i=this.formField).onChange)===null||n===void 0||n.call(i,{originalEvent:r,value:e})}},computed:{$filled:function(){return Ui(this.d_value)},$invalid:function(){var e,r,n,i;return(e=(r=this.invalid)!==null&&r!==void 0?r:(n=this.$pcFormField)===null||n===void 0||(n=n.$field)===null||n===void 0?void 0:n.invalid)!==null&&e!==void 0?e:(i=this.$pcForm)===null||i===void 0||(i=i.states)===null||i===void 0||(i=i[this.$formName])===null||i===void 0?void 0:i.invalid},$formName:function(){var e;return this.name||((e=this.$formControl)===null||e===void 0?void 0:e.name)},$formControl:function(){var e;return this.formControl||((e=this.$pcFormField)===null||e===void 0?void 0:e.formControl)},$formDefaultValue:function(){var e,r,n,i;return(e=(r=this.d_value)!==null&&r!==void 0?r:(n=this.$pcFormField)===null||n===void 0?void 0:n.initialValue)!==null&&e!==void 0?e:(i=this.$pcForm)===null||i===void 0||(i=i.initialValues)===null||i===void 0?void 0:i[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},G0={name:"BaseInput",extends:Ox,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var e;return(e=this.variant)!==null&&e!==void 0?e:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var e;return(e=this.fluid)!==null&&e!==void 0?e:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},ZF=function(e){var r=e.dt;return`
1198
+ `))c!==""&&l.push({type:jo.WARNING,description:`UI JSON: ${xx(c)}`});return l}const i=[],a={};for(const l of t.input){let c=function(v){return"possibleValues"in v},o=function(v){return"minimumValue"in v&&"maximumValue"in v};if(l.id!==void 0&&(l.id===""&&i.push({type:jo.WARNING,description:"UI JSON: an input id must not be empty."}),a[l.id]&&i.push({type:jo.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),a[l.id]=!0),l.name===""&&i.push({type:jo.WARNING,description:"UI JSON: an input name must not be empty."}),c(l)){for(const k of l.possibleValues)k.name===""&&i.push({type:jo.WARNING,description:"UI JSON: an input possible value name must not be empty."});const v=l.possibleValues.map(k=>k.value),b={};for(const k of v)b[k]&&i.push({type:jo.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(k)+" is used more than once)."}),b[k]=!0;v.includes(l.defaultValue)||i.push({type:jo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+v.join(", ")+")."})}if(o(l)){l.minimumValue>=l.maximumValue&&i.push({type:jo.WARNING,description:"UI JSON: an input minimum value ("+String(l.minimumValue)+") must be lower than the maximum value ("+String(l.maximumValue)+")."}),(l.defaultValue<l.minimumValue||l.defaultValue>l.maximumValue)&&i.push({type:jo.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be greater or equal than the minimum value ("+String(l.minimumValue)+") and lower or equal than the maximum value ("+String(l.maximumValue)+")."});const v=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>v)&&i.push({type:jo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be greater than zero and lower or equal than the range value ("+String(v)+")."}),Number.isInteger(v/l.stepValue)||i.push({type:jo.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(v)+")."})):Number.isInteger(v)||i.push({type:jo.WARNING,description:"UI JSON: a (default) input step value (1) must be a factor of the range value ("+String(v)+")."})}l.visible!==void 0&&l.visible===""&&i.push({type:jo.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of t.output.data)l.id===""&&i.push({type:jo.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:jo.WARNING,description:`UI JSON: an output data id must be unique (${l.id} is used more than once).`}),s[l.id]=!0,l.name===""&&i.push({type:jo.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of t.output.plots)l.xAxisTitle===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:jo.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of t.parameters)l.name===""&&i.push({type:jo.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:jo.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function ji(){return io!==void 0}function my(){return!ji()}function PF(){return ji()?Vi.version():Xd.versionString()}let Vi={},Xd={};async function RF(){if(window.locApi!==void 0)Vi=window.locApi;else try{const t=(await import(gC("https://opencor.ws/libopencor/downloads/0.20250805.0/libopencor.js"))).default;Xd=await t()}catch(t){console.error("Failed to load libOpenCOR's WebAssembly module:",t)}}const zF="0.20250822.1",$F={class:"space-y-7"},UF={class:"text-center"},qF={class:"text-3xl font-bold"},jF={key:0,class:"text-xl italic font-bold"},VF={class:"text-sm italic"},HF={class:"space-y-2"},QF=x.defineComponent({__name:"AboutDialog",emits:["close"],setup(t){return(e,r)=>{const n=ic,i=Jd;return x.openBlock(),x.createBlock(i,{header:" ",style:{width:"39rem"}},{footer:x.withCtx(()=>[x.createVNode(n,{label:"OK",autofocus:"",onClick:r[0]||(r[0]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[x.createElementVNode("div",$F,[x.createElementVNode("div",UF,[x.createElementVNode("div",qF,"OpenCOR "+x.toDisplayString(x.unref(zF)),1),x.unref(io)!==void 0?(x.openBlock(),x.createElementBlock("div",jF,x.toDisplayString(x.unref(io).operatingSystem()),1)):x.createCommentVNode("",!0),x.createElementVNode("div",VF,"Copyright "+x.toDisplayString(bF),1)]),x.createElementVNode("div",HF,[x.createElementVNode("div",null,[r[1]||(r[1]=x.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1)),r[2]||(r[2]=x.createTextVNode(" is a frontend to ",-1)),r[3]||(r[3]=x.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1)),x.createTextVNode(" "+x.toDisplayString(PF())+", a library that can be used to organise, edit, simulate, and analyse ",1),r[4]||(r[4]=x.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1)),r[5]||(r[5]=x.createTextVNode(" files. ",-1))]),r[6]||(r[6]=x.createElementVNode("div",{class:"space-y-0"},[x.createElementVNode("div",null,"There are two versions of OpenCOR:"),x.createElementVNode("ol",{class:"list-decimal list-inside ml-2"},[x.createElementVNode("li",null,[x.createElementVNode("span",{class:"font-bold"},"OpenCOR:"),x.createTextVNode(" a desktop application that can be run on "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors"},"Intel"),x.createTextVNode("-based and "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family"},"ARM"),x.createTextVNode("-based "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Microsoft_Windows",target:"_blank",rel:"noopener"},"Windows"),x.createTextVNode(", "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Linux",target:"_blank",rel:"noopener"},"Linux"),x.createTextVNode(", and "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/MacOS",target:"_blank",rel:"noopener"},"macOS"),x.createTextVNode(" machines; and ")]),x.createElementVNode("li",null,[x.createElementVNode("span",{class:"font-bold"},"OpenCOR's Web app:"),x.createTextVNode(" a "),x.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Web_application",target:"_blank",rel:"noopener"},"Web app"),x.createTextVNode(" that can be run on a Web browser. ")])])],-1))])])]),_:1})}}}),WF=x.defineComponent({__name:"ResetAllDialog",emits:["resetAll","close"],setup(t){return(e,r)=>{const n=ic,i=Jd;return x.openBlock(),x.createBlock(i,{header:"Reset All..."},{footer:x.withCtx(()=>[x.createVNode(n,{autofocus:"",label:"Yes",severity:"danger",onClick:r[0]||(r[0]=a=>e.$emit("resetAll"))}),x.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=a=>e.$emit("close"))})]),default:x.withCtx(()=>[r[2]||(r[2]=x.createElementVNode("div",{class:"mt-2 mb-4"},"You are about to reset all of your settings. Do you want to proceed?",-1))]),_:1})}}});var ep={name:"CheckIcon",extends:Wo};function GF(t,e,r,n,i,a){return x.openBlock(),x.createElementBlock("svg",x.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[x.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}ep.render=GF;var Nx={name:"MinusIcon",extends:Wo};function YF(t,e,r,n,i,a){return x.openBlock(),x.createElementBlock("svg",x.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[x.createElementVNode("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}Nx.render=YF;var Ox={name:"BaseEditableHolder",extends:qi,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(e){this.d_value=e},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var r,n;this.formField=((r=this.$pcForm)===null||r===void 0||(n=r.register)===null||n===void 0?void 0:n.call(r,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var r,n;this.formField=((r=this.$pcForm)===null||r===void 0||(n=r.register)===null||n===void 0?void 0:n.call(r,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,r){var n,i;this.controlled&&(this.d_value=e,this.$emit("update:modelValue",e)),this.$emit("value-change",e),(n=(i=this.formField).onChange)===null||n===void 0||n.call(i,{originalEvent:r,value:e})}},computed:{$filled:function(){return Ui(this.d_value)},$invalid:function(){var e,r,n,i;return(e=(r=this.invalid)!==null&&r!==void 0?r:(n=this.$pcFormField)===null||n===void 0||(n=n.$field)===null||n===void 0?void 0:n.invalid)!==null&&e!==void 0?e:(i=this.$pcForm)===null||i===void 0||(i=i.states)===null||i===void 0||(i=i[this.$formName])===null||i===void 0?void 0:i.invalid},$formName:function(){var e;return this.name||((e=this.$formControl)===null||e===void 0?void 0:e.name)},$formControl:function(){var e;return this.formControl||((e=this.$pcFormField)===null||e===void 0?void 0:e.formControl)},$formDefaultValue:function(){var e,r,n,i;return(e=(r=this.d_value)!==null&&r!==void 0?r:(n=this.$pcFormField)===null||n===void 0?void 0:n.initialValue)!==null&&e!==void 0?e:(i=this.$pcForm)===null||i===void 0||(i=i.initialValues)===null||i===void 0?void 0:i[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},G0={name:"BaseInput",extends:Ox,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var e;return(e=this.variant)!==null&&e!==void 0?e:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var e;return(e=this.fluid)!==null&&e!==void 0?e:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},ZF=function(e){var r=e.dt;return`
1199
1199
  .p-checkbox {
1200
1200
  position: relative;
1201
1201
  display: inline-flex;
@@ -1,4 +1,4 @@
1
- import { c as ce, g as gl } from "./index-Bo9Lkhfn.js";
1
+ import { c as ce, g as gl } from "./index-Bf8mb7fA.js";
2
2
  var pl = typeof global == "object" && global && global.Object === Object && global, yo = typeof self == "object" && self && self.Object === Object && self, Zt = pl || yo || Function("return this")(), de = Zt.Symbol, ml = Object.prototype, vo = ml.hasOwnProperty, Eo = ml.toString, yr = de ? de.toStringTag : void 0;
3
3
  function Ao(n) {
4
4
  var t = vo.call(n, yr), e = n[yr];
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "./style.css": "./dist/opencor.css"
44
44
  },
45
- "version": "0.20250822.0",
45
+ "version": "0.20250822.1",
46
46
  "peerDependencies": {
47
47
  "vue": "^3.4.21"
48
48
  },
package/src/App.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div id="app">
2
+ <div id="app" class="h-screen overflow-hidden">
3
3
  <OpenCOR />
4
4
  <!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/lorenz.cellml" /> -->
5
5
  <!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/lorenz.omex" /> -->