@abi-software/simulationvuer 3.0.6 → 3.0.7
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.
- package/dist/{index-CxyMFRSV.js → index-Bkmcm34g.js} +162 -164
- package/dist/{quill-ZWdpIhA1-C71nSqhg.js → quill-CNUBlgYr-80jSqpZl.js} +1 -1
- package/dist/simulationvuer.js +1 -1
- package/dist/simulationvuer.umd.cjs +31 -31
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/SimulationVuer.vue +5 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Ct,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("@abi-software/plotvuer"),require("https://cdn.jsdelivr.net/npm/plotly.js-gl2d-dist-min@3.1.1/+esm"),require("https://cdn.jsdelivr.net/npm/mathjs@14.9.1/+esm")):typeof define=="function"&&define.amd?define(["exports","vue","@abi-software/plotvuer","https://cdn.jsdelivr.net/npm/plotly.js-gl2d-dist-min@3.1.1/+esm","https://cdn.jsdelivr.net/npm/mathjs@14.9.1/+esm"],a):(Ct=typeof globalThis<"u"?globalThis:Ct||self,a(Ct.SimulationVuer={},Ct.Vue,Ct["@abi-software/plotvuer"],Ct.Sa$1,Ct.xa$1))})(this,function(Ct,a,Ds,Ub,DA){"use strict";var
|
|
1
|
+
(function(Ct,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("@abi-software/plotvuer"),require("https://cdn.jsdelivr.net/npm/plotly.js-gl2d-dist-min@3.1.1/+esm"),require("https://cdn.jsdelivr.net/npm/mathjs@14.9.1/+esm")):typeof define=="function"&&define.amd?define(["exports","vue","@abi-software/plotvuer","https://cdn.jsdelivr.net/npm/plotly.js-gl2d-dist-min@3.1.1/+esm","https://cdn.jsdelivr.net/npm/mathjs@14.9.1/+esm"],a):(Ct=typeof globalThis<"u"?globalThis:Ct||self,a(Ct.SimulationVuer={},Ct.Vue,Ct["@abi-software/plotvuer"],Ct.Sa$1,Ct.xa$1))})(this,function(Ct,a,Ds,Ub,DA){"use strict";var REe=Object.defineProperty;var PEe=(Ct,a,Ds)=>a in Ct?REe(Ct,a,{enumerable:!0,configurable:!0,writable:!0,value:Ds}):Ct[a]=Ds;var Fe=(Ct,a,Ds)=>PEe(Ct,typeof a!="symbol"?a+"":a,Ds);var Eo,No;function qb(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ke=qb(a),Vb=qb(DA),ui=(e,t,{checkForDefaultPrevented:r=!0}={})=>i=>{const o=e==null?void 0:e(i);if(r===!1||!o)return t==null?void 0:t(i)};var jb;const gr=typeof window<"u",MA=e=>typeof e=="string",Qb=()=>{},xm=gr&&((jb=window==null?void 0:window.navigator)==null?void 0:jb.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Hb(e){return typeof e=="function"?e():a.unref(e)}function TA(e){return e}function vd(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function FA(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function ci(e){var t;const r=Hb(e);return(t=r==null?void 0:r.$el)!=null?t:r}const bd=gr?window:void 0;function Jr(...e){let t,r,n,i;if(MA(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=bd):[t,r,n,i]=e,!t)return Qb;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),c=a.watch(()=>[ci(t),Hb(i)],([d,f])=>{s(),d&&o.push(...r.flatMap(p=>n.map(m=>l(d,p,m,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return vd(u),u}let Wb=!1;function OA(e,t,r={}){const{window:n=bd,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;xm&&!Wb&&(Wb=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",Qb)));let l=!0;const c=p=>i.some(m=>{if(typeof m=="string")return Array.from(n.document.querySelectorAll(m)).some(h=>h===p.target||p.composedPath().includes(h));{const h=ci(m);return h&&(p.target===h||p.composedPath().includes(h))}}),d=[Jr(n,"click",p=>{const m=ci(e);if(!(!m||m===p.target||p.composedPath().includes(m))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:o}),Jr(n,"pointerdown",p=>{const m=ci(e);m&&(l=!p.composedPath().includes(m)&&!c(p))},{passive:!0}),s&&Jr(n,"blur",p=>{var m;const h=ci(e);((m=n.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(h!=null&&h.contains(n.document.activeElement))&&t(p)})].filter(Boolean);return()=>d.forEach(p=>p())}function Zb(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),FA(n,t),r}const Gb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kb="__vueuse_ssr_handlers__";Gb[Kb]=Gb[Kb]||{};var Yb=Object.getOwnPropertySymbols,IA=Object.prototype.hasOwnProperty,_A=Object.prototype.propertyIsEnumerable,$A=(e,t)=>{var r={};for(var n in e)IA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Yb)for(var n of Yb(e))t.indexOf(n)<0&&_A.call(e,n)&&(r[n]=e[n]);return r};function di(e,t,r={}){const n=r,{window:i=bd}=n,o=$A(n,["window"]);let s;const l=Zb(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>ci(e),f=>{c(),l.value&&i&&f&&(s=new ResizeObserver(t),s.observe(f,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return vd(d),{isSupported:l,stop:d}}var Jb=Object.getOwnPropertySymbols,RA=Object.prototype.hasOwnProperty,PA=Object.prototype.propertyIsEnumerable,zA=(e,t)=>{var r={};for(var n in e)RA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Jb)for(var n of Jb(e))t.indexOf(n)<0&&PA.call(e,n)&&(r[n]=e[n]);return r};function UA(e,t,r={}){const n=r,{window:i=bd}=n,o=zA(n,["window"]);let s;const l=Zb(()=>i&&"MutationObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>ci(e),f=>{c(),l.value&&i&&f&&(s=new MutationObserver(t),s.observe(f,o))},{immediate:!0}),d=()=>{c(),u()};return vd(d),{isSupported:l,stop:d}}var Xb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Xb||(Xb={}));var qA=Object.defineProperty,Lb=Object.getOwnPropertySymbols,VA=Object.prototype.hasOwnProperty,jA=Object.prototype.propertyIsEnumerable,e1=(e,t,r)=>t in e?qA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QA=(e,t)=>{for(var r in t||(t={}))VA.call(t,r)&&e1(e,r,t[r]);if(Lb)for(var r of Lb(t))jA.call(t,r)&&e1(e,r,t[r]);return e};QA({linear:TA},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const HA=()=>gr&&/firefox/i.test(window.navigator.userAgent);/**
|
|
2
2
|
* @vue/shared v3.5.20
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
@@ -1267,7 +1267,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1267
1267
|
}
|
|
1268
1268
|
`)},mae={root:function(e){var t=e.instance;return["p-progressbar p-component",{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}]},value:"p-progressbar-value",label:"p-progressbar-label"},hae=Ge.extend({name:"progressbar",theme:pae,classes:mae}),gae={name:"BaseProgressBar",extends:it,props:{value:{type:Number,default:null},mode:{type:String,default:"determinate"},showValue:{type:Boolean,default:!0}},style:hae,provide:function(){return{$pcProgressBar:this,$parentInstance:this}}},dE={name:"ProgressBar",extends:gae,inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+"%",display:"flex"}},indeterminate:function(){return this.mode==="indeterminate"},determinate:function(){return this.mode==="determinate"}}},vae=["aria-valuenow"];function bae(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",a.mergeProps({role:"progressbar",class:e.cx("root"),"aria-valuemin":"0","aria-valuenow":e.value,"aria-valuemax":"100"},e.ptmi("root")),[o.determinate?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("value"),style:o.progressStyle},e.ptm("value")),[e.value!=null&&e.value!==0&&e.showValue?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("label")},e.ptm("label")),[a.renderSlot(e.$slots,"default",{},function(){return[a.createTextVNode(a.toDisplayString(e.value+"%"),1)]})],16)):a.createCommentVNode("",!0)],16)):o.indeterminate?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("value")},e.ptm("value")),null,16)):a.createCommentVNode("",!0)],16,vae)}dE.render=bae;const yae=a.defineComponent({__name:"UpdateDownloadProgressDialog",props:{percent:{}},setup(e){return(t,r)=>{const n=dE,i=Tl;return a.openBlock(),a.createBlock(i,{header:"Downloading Update...",closable:!1,closeOnEscape:!1,style:{width:"39rem"}},{default:a.withCtx(()=>[a.createVNode(n,{class:"no-animation",showValue:!1,value:t.percent},null,8,["value"])]),_:1})}}}),wae={class:"mt-2 mb-4"},xae=a.defineComponent({__name:"OkMessageDialog",props:{title:{},message:{}},emits:["ok"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:t.title},{footer:a.withCtx(()=>[a.createVNode(n,{autofocus:"",label:"OK",onClick:r[0]||(r[0]=o=>t.$emit("ok"))})]),default:a.withCtx(()=>[a.createElementVNode("div",wae,a.toDisplayString(t.message),1)]),_:1},8,["header"])}}}),Cae="opencor",Sae=`${Cae}://`,Yo=69,Tv=3e3,fE=new Date().getFullYear(),kae=fE===2025?"2025":`2025-${String(fE)}`;var Dt=(e=>(e[e.ERROR=0]="ERROR",e[e.WARNING=1]="WARNING",e))(Dt||{});function Fv(e){const t=[];for(let r=0;r<e.size();++r){const n=e.get(r);t.push({type:n.type.value,description:n.description})}return t}const Eae=(Eo=class{constructor(){Fe(this,"_fileManager",null)}static instance(){return Eo._instance??(Eo._instance=new Eo),Eo._instance}fileManager(){return this._fileManager??(this._fileManager=Ii.FileManager.instance()),this._fileManager}unmanage(t){if(at())nt.fileManagerUnmanage(t);else{const r=this.fileManager(),n=r.files;for(let i=0;i<n.size();++i){const o=n.get(i);if(o.fileName===t){r.unmanage(o);break}}}}},Fe(Eo,"_instance",null),Eo).instance();var Fl=(e=>(e[e.UNKNOWN_FILE=0]="UNKNOWN_FILE",e[e.CELLML_FILE=1]="CELLML_FILE",e[e.SEDML_FILE=2]="SEDML_FILE",e[e.COMBINE_ARCHIVE=3]="COMBINE_ARCHIVE",e[e.IRRETRIEVABLE_FILE=4]="IRRETRIEVABLE_FILE",e))(Fl||{});let wp=class{constructor(e,t=void 0){Fe(this,"_path");Fe(this,"_wasmFile",{});Fe(this,"_issues",[]);if(this._path=e,at())nt.fileCreate(e,t),this._issues=nt.fileIssues(e);else if(t!==void 0){this._wasmFile=ke.markRaw(new Ii.File(e));const r=Ii._malloc(t.length);new Uint8Array(Ii.HEAPU8.buffer,r,t.length).set(t),this._wasmFile.setContents(r,t.length),Ii._free(r),this._issues=Fv(this._wasmFile.issues)}else{console.error(`No contents provided for file '${e}'.`);return}}type(){return at()?nt.fileType(this._path):this._wasmFile.type.value}path(){return this._path}issues(){return this._issues}contents(){return at()?nt.fileContents(this._path):this._wasmFile.contents()}document(){return new Nae(this._path,this._wasmFile)}uiJson(){let e;if(at()){if(e=nt.fileUiJson(this._path),e===void 0)return}else{const r=this._wasmFile.childFileFromFileName("simulation.json");if(r===null)return;e=r.contents()}const t=new TextDecoder;return JSON.parse(t.decode(e))}},Ov=class{constructor(t){Fe(this,"_index");this._index=t}},Nae=class{constructor(t,r){Fe(this,"_cppDocumentId",-1);Fe(this,"_wasmSedDocument",{});Fe(this,"_issues",[]);if(at()?this._cppDocumentId=nt.sedDocumentCreate(t):this._wasmSedDocument=new Ii.SedDocument(r),this._issues=at()?nt.sedDocumentIssues(this._cppDocumentId):Fv(this._wasmSedDocument.issues),this.modelCount()!==1){this._issues.push({type:Dt.WARNING,description:"Only SED-ML files with one model are currently supported."});return}if(this.simulationCount()!==1){this._issues.push({type:Dt.WARNING,description:"Only SED-ML files with one simulation are currently supported."});return}const n=this.simulation(0);if(n.type()!==3){this._issues.push({type:Dt.WARNING,description:"Only uniform time course simulations are currently supported."});return}const i=n.initialTime(),o=n.outputStartTime(),s=n.outputEndTime(),l=n.numberOfSteps();i!==o&&this._issues.push({type:Dt.WARNING,description:`Only uniform time course simulations with the same values for 'initialTime' (${String(i)}) and 'outputStartTime' (${String(o)}) are currently supported.`}),o===s&&this._issues.push({type:Dt.ERROR,description:`The uniform time course simulation must have different values for 'outputStartTime' (${String(o)}) and 'outputEndTime' (${String(s)}).`}),l<=0&&this._issues.push({type:Dt.ERROR,description:`The uniform time course simulation must have a positive value for 'numberOfSteps' (${String(l)}).`})}issues(){return this._issues}modelCount(){return at()?nt.sedDocumentModelCount(this._cppDocumentId):this._wasmSedDocument.modelCount}model(t){return new Bae(this._cppDocumentId,this._wasmSedDocument,t)}simulationCount(){return at()?nt.sedDocumentSimulationCount(this._cppDocumentId):this._wasmSedDocument.simulationCount}simulation(t){let r;if(at())r=nt.sedDocumentSimulationType(this._cppDocumentId,t);else switch(this._wasmSedDocument.simulation(t).constructor.name){case"SedAnalysis":r=0;break;case"SedSteadyState":r=1;break;case"SedOneStep":r=2;break;default:r=3}return r===0?new Aae(this._cppDocumentId,this._wasmSedDocument,t,r):r===1?new Dae(this._cppDocumentId,this._wasmSedDocument,t,r):r===2?new Mae(this._cppDocumentId,this._wasmSedDocument,t,r):new Tae(this._cppDocumentId,this._wasmSedDocument,t,r)}instantiate(){return new Fae(this._cppDocumentId,this._wasmSedDocument)}},Bae=class extends Ov{constructor(r,n,i){super(i);Fe(this,"_cppDocumentId");Fe(this,"_wasmSedModel",{});this._cppDocumentId=r,Sp()&&(this._wasmSedModel=n.model(i))}addChange(r,n,i){at()?nt.sedDocumentModelAddChange(this._cppDocumentId,this._index,r,n,i):this._wasmSedModel.addChange(new Ii.SedChangeAttribute(r,n,i))}removeAllChanges(){at()?nt.sedDocumentModelRemoveAllChanges(this._cppDocumentId,this._index):this._wasmSedModel.removeAllChanges()}};class xp extends Ov{constructor(r,n,i,o){super(i);Fe(this,"_cppDocumentId");Fe(this,"_type");this._cppDocumentId=r,this._type=o}type(){return this._type}}let Aae=class extends xp{},Dae=class extends xp{},Mae=class extends xp{constructor(r,n,i,o){super(r,n,i,o);Fe(this,"_wasmSedSimulationOneStep",{});Sp()&&(this._wasmSedSimulationOneStep=n.simulation(i))}step(){return at()?nt.sedDocumentSimulationOneStepStep(this._cppDocumentId,this._index):this._wasmSedSimulationOneStep.step}},Tae=class extends xp{constructor(r,n,i,o){super(r,n,i,o);Fe(this,"_wasmSedSimulationUniformTimeCourse",{});Sp()&&(this._wasmSedSimulationUniformTimeCourse=n.simulation(i))}initialTime(){return at()?nt.sedDocumentSimulationUniformTimeCourseInitialTime(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.initialTime}outputStartTime(){return at()?nt.sedDocumentSimulationUniformTimeCourseOutputStartTime(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.outputStartTime}setOutputStartTime(r){at()?nt.sedDocumentSimulationUniformTimeCourseSetOutputStartTime(this._cppDocumentId,this._index,r):this._wasmSedSimulationUniformTimeCourse.outputStartTime=r}outputEndTime(){return at()?nt.sedDocumentSimulationUniformTimeCourseOutputEndTime(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.outputEndTime}setOutputEndTime(r){at()?nt.sedDocumentSimulationUniformTimeCourseSetOutputEndTime(this._cppDocumentId,this._index,r):this._wasmSedSimulationUniformTimeCourse.outputEndTime=r}numberOfSteps(){return at()?nt.sedDocumentSimulationUniformTimeCourseNumberOfSteps(this._cppDocumentId,this._index):this._wasmSedSimulationUniformTimeCourse.numberOfSteps}setNumberOfSteps(r){at()?nt.sedDocumentSimulationUniformTimeCourseSetNumberOfSteps(this._cppDocumentId,this._index,r):this._wasmSedSimulationUniformTimeCourse.numberOfSteps=r}},Fae=class{constructor(t,r){Fe(this,"_cppInstanceId",-1);Fe(this,"_wasmSedInstance",{});at()?this._cppInstanceId=nt.sedDocumentInstantiate(t):this._wasmSedInstance=ke.markRaw(r.instantiate())}hasIssues(){return at()?nt.sedInstanceHasIssues(this._cppInstanceId):this._wasmSedInstance.hasIssues}issues(){return at()?nt.sedInstanceIssues(this._cppInstanceId):Fv(this._wasmSedInstance.issues)}task(t){return new Oae(this._cppInstanceId,t,this._wasmSedInstance)}run(){return at()?nt.sedInstanceRun(this._cppInstanceId):this._wasmSedInstance.run()}},Oae=class extends Ov{constructor(r,n,i){super(n);Fe(this,"_cppInstanceId");Fe(this,"_wasmSedInstanceTask",{});this._cppInstanceId=r,Sp()&&(this._wasmSedInstanceTask=i.task(n))}voiName(){return at()?nt.sedInstanceTaskVoiName(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiName}voiUnit(){return at()?nt.sedInstanceTaskVoiUnit(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiUnit}voi(){return at()?nt.sedInstanceTaskVoi(this._cppInstanceId,this._index):this._wasmSedInstanceTask.voiAsArray}stateCount(){return at()?nt.sedInstanceTaskStateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.stateCount}stateName(r){return at()?nt.sedInstanceTaskStateName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.stateName(r)}stateUnit(r){return at()?nt.sedInstanceTaskStateUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.stateUnit(r)}state(r){return at()?nt.sedInstanceTaskState(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.stateAsArray(r)}rateCount(){return at()?nt.sedInstanceTaskRateCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.rateCount}rateName(r){return at()?nt.sedInstanceTaskRateName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.rateName(r)}rateUnit(r){return at()?nt.sedInstanceTaskRateUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.rateUnit(r)}rate(r){return at()?nt.sedInstanceTaskRate(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.rateAsArray(r)}constantCount(){return at()?nt.sedInstanceTaskConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.constantCount}constantName(r){return at()?nt.sedInstanceTaskConstantName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.constantName(r)}constantUnit(r){return at()?nt.sedInstanceTaskConstantUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.constantUnit(r)}constant(r){return at()?nt.sedInstanceTaskConstant(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.constantAsArray(r)}computedConstantCount(){return at()?nt.sedInstanceTaskComputedConstantCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.computedConstantCount}computedConstantName(r){return at()?nt.sedInstanceTaskComputedConstantName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.computedConstantName(r)}computedConstantUnit(r){return at()?nt.sedInstanceTaskComputedConstantUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.computedConstantUnit(r)}computedConstant(r){return at()?nt.sedInstanceTaskComputedConstant(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.computedConstantAsArray(r)}algebraicVariableCount(){return at()?nt.sedInstanceTaskAlgebraicVariableCount(this._cppInstanceId,this._index):this._wasmSedInstanceTask.algebraicVariableCount}algebraicVariableName(r){return at()?nt.sedInstanceTaskAlgebraicVariableName(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.algebraicVariableName(r)}algebraicVariableUnit(r){return at()?nt.sedInstanceTaskAlgebraicVariableUnit(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.algebraicVariableUnit(r)}algebraicVariable(r){return at()?nt.sedInstanceTaskAlgebraicVariable(this._cppInstanceId,this._index,r):this._wasmSedInstanceTask.algebraicVariableAsArray(r)}};var Jo={},_r={},pE;function ms(){if(pE)return _r;pE=1;var e=_r.ValidationError=function(h,g,v,b,w,y){if(Array.isArray(b)?(this.path=b,this.property=b.reduce(function(x,C){return x+l(C)},"instance")):b!==void 0&&(this.property=b),h&&(this.message=h),v){var S=v.$id||v.id;this.schema=S||v}g!==void 0&&(this.instance=g),this.name=w,this.argument=y,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=_r.ValidatorResult=function(h,g,v,b){this.instance=h,this.schema=g,this.options=v,this.path=b.path,this.propertyPath=b.propertyPath,this.errors=[],this.throwError=v&&v.throwError,this.throwFirst=v&&v.throwFirst,this.throwAll=v&&v.throwAll,this.disableFormat=v&&v.disableFormat===!0};t.prototype.addError=function(h){var g;if(typeof h=="string")g=new e(h,this.instance,this.schema,this.path);else{if(!h)throw new Error("Missing error detail");if(!h.message)throw new Error("Missing error message");if(!h.name)throw new Error("Missing validator type");g=new e(h.message,this.instance,this.schema,this.path,h.name,h.argument)}if(this.errors.push(g),this.throwFirst)throw new n(this);if(this.throwError)throw g;return g},t.prototype.importErrors=function(h){typeof h=="string"||h&&h.validatorType?this.addError(h):h&&h.errors&&(this.errors=this.errors.concat(h.errors))};function r(h,g){return g+": "+h.toString()+`
|
|
1269
1269
|
`}t.prototype.toString=function(h){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),_r.ValidatorResultError=n;function n(h){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=h.instance,this.schema=h.schema,this.options=h.options,this.errors=h.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var i=_r.SchemaError=function h(g,v){this.message=g,this.schema=v,Error.call(this,g),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,h)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var o=_r.SchemaContext=function(h,g,v,b,w){this.schema=h,this.options=g,Array.isArray(v)?(this.path=v,this.propertyPath=v.reduce(function(y,S){return y+l(S)},"instance")):this.propertyPath=v,this.base=b,this.schemas=w};o.prototype.resolve=function(h){return m(this.base,h)},o.prototype.makeChild=function(h,g){var v=g===void 0?this.path:this.path.concat([g]),b=h.$id||h.id;let w=m(this.base,b||"");var y=new o(h,this.options,v,w,Object.create(this.schemas));return b&&!y.schemas[w]&&(y.schemas[w]=h),y};var s=_r.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]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-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(h){return typeof h=="string"&&parseFloat(h)===parseInt(h,10)&&!isNaN(h)},regex:function(h){var g=!0;try{new RegExp(h)}catch{g=!1}return g},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"],_r.isFormat=function(h,g,v){if(typeof h=="string"&&s[g]!==void 0){if(s[g]instanceof RegExp)return s[g].test(h);if(typeof s[g]=="function")return s[g](h)}else if(v&&v.customFormats&&typeof v.customFormats[g]=="function")return v.customFormats[g](h);return!0};var l=_r.makeSuffix=function(h){return h=h.toString(),!h.match(/[.\s\[\]]/)&&!h.match(/^[\d]/)?"."+h:h.match(/^\d+$/)?"["+h+"]":"["+JSON.stringify(h)+"]"};_r.deepCompareStrict=function h(g,v){if(typeof g!=typeof v)return!1;if(Array.isArray(g))return!Array.isArray(v)||g.length!==v.length?!1:g.every(function(y,S){return h(g[S],v[S])});if(typeof g=="object"){if(!g||!v)return g===v;var b=Object.keys(g),w=Object.keys(v);return b.length!==w.length?!1:b.every(function(y){return h(g[y],v[y])})}return g===v};function c(h,g,v,b){typeof v=="object"?g[b]=f(h[b],v):h.indexOf(v)===-1&&g.push(v)}function u(h,g,v){g[v]=h[v]}function d(h,g,v,b){typeof g[b]!="object"||!g[b]?v[b]=g[b]:h[b]?v[b]=f(h[b],g[b]):v[b]=g[b]}function f(h,g){var v=Array.isArray(g),b=v&&[]||{};return v?(h=h||[],b=b.concat(h),g.forEach(c.bind(null,h,b))):(h&&typeof h=="object"&&Object.keys(h).forEach(u.bind(null,h,b)),Object.keys(g).forEach(d.bind(null,h,g,b))),b}_r.deepMerge=f,_r.objectGetPath=function(h,g){for(var v=g.split("/").slice(1),b;typeof(b=v.shift())=="string";){var w=decodeURIComponent(b.replace(/~0/,"~").replace(/~1/g,"/"));if(!(w in h))return;h=h[w]}return h};function p(h){return"/"+encodeURIComponent(h).replace(/~/g,"%7E")}_r.encodePath=function(h){return h.map(p).join("")},_r.getDecimalPlaces=function(h){var g=0;if(isNaN(h))return g;typeof h!="number"&&(h=Number(h));var v=h.toString().split("e");if(v.length===2){if(v[1][0]!=="-")return g;g=Number(v[1].slice(1))}var b=v[0].split(".");return b.length===2&&(g+=b[1].length),g},_r.isSchema=function(h){return typeof h=="object"&&h||typeof h=="boolean"};var m=_r.resolveUrl=function(h,g){const v=new URL(g,new URL(h,"resolve://"));if(v.protocol==="resolve:"){const{pathname:b,search:w,hash:y}=v;return b+w+y}return v.toString()};return _r}var Iv,mE;function Iae(){if(mE)return Iv;mE=1;var e=ms(),t=e.ValidatorResult,r=e.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(d,f,p,m){if(d===void 0)return null;var h=new t(d,f,p,m),g=Array.isArray(f.type)?f.type:[f.type];if(!g.some(this.testType.bind(this,d,f,p,m))){var v=g.map(function(b){if(b){var w=b.$id||b.id;return w?"<"+w+">":b+""}});h.addError({name:"type",argument:v,message:"is not of a type(s) "+v})}return h};function o(d,f,p,m,h){var g=f.throwError,v=f.throwAll;f.throwError=!1,f.throwAll=!1;var b=this.validateSchema(d,h,f,p);return f.throwError=g,f.throwAll=v,!b.valid&&m instanceof Function&&m(b),b.valid}i.anyOf=function(d,f,p,m){if(d===void 0)return null;var h=new t(d,f,p,m),g=new t(d,f,p,m);if(!Array.isArray(f.anyOf))throw new r("anyOf must be an array");if(!f.anyOf.some(o.bind(this,d,p,m,function(b){g.importErrors(b)}))){var v=f.anyOf.map(function(b,w){var y=b.$id||b.id;return y?"<"+y+">":b.title&&JSON.stringify(b.title)||b.$ref&&"<"+b.$ref+">"||"[subschema "+w+"]"});p.nestedErrors&&h.importErrors(g),h.addError({name:"anyOf",argument:v,message:"is not any of "+v.join(",")})}return h},i.allOf=function(d,f,p,m){if(d===void 0)return null;if(!Array.isArray(f.allOf))throw new r("allOf must be an array");var h=new t(d,f,p,m),g=this;return f.allOf.forEach(function(v,b){var w=g.validateSchema(d,v,p,m);if(!w.valid){var y=v.$id||v.id,S=y||v.title&&JSON.stringify(v.title)||v.$ref&&"<"+v.$ref+">"||"[subschema "+b+"]";h.addError({name:"allOf",argument:{id:S,length:w.errors.length,valid:w},message:"does not match allOf schema "+S+" with "+w.errors.length+" error[s]:"}),h.importErrors(w)}}),h},i.oneOf=function(d,f,p,m){if(d===void 0)return null;if(!Array.isArray(f.oneOf))throw new r("oneOf must be an array");var h=new t(d,f,p,m),g=new t(d,f,p,m),v=f.oneOf.filter(o.bind(this,d,p,m,function(w){g.importErrors(w)})).length,b=f.oneOf.map(function(w,y){var S=w.$id||w.id;return S||w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+y+"]"});return v!==1&&(p.nestedErrors&&h.importErrors(g),h.addError({name:"oneOf",argument:b,message:"is not exactly one from "+b.join(",")})),h},i.if=function(d,f,p,m){if(d===void 0)return null;if(!e.isSchema(f.if))throw new Error('Expected "if" keyword to be a schema');var h=o.call(this,d,p,m,null,f.if),g=new t(d,f,p,m),v;if(h){if(f.then===void 0)return;if(!e.isSchema(f.then))throw new Error('Expected "then" keyword to be a schema');v=this.validateSchema(d,f.then,p,m.makeChild(f.then)),g.importErrors(v)}else{if(f.else===void 0)return;if(!e.isSchema(f.else))throw new Error('Expected "else" keyword to be a schema');v=this.validateSchema(d,f.else,p,m.makeChild(f.else)),g.importErrors(v)}return g};function s(d,f){if(Object.hasOwnProperty.call(d,f))return d[f];if(f in d){for(;d=Object.getPrototypeOf(d);)if(Object.propertyIsEnumerable.call(d,f))return d[f]}}i.propertyNames=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=f.propertyNames!==void 0?f.propertyNames:{};if(!e.isSchema(g))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var v in d)if(s(d,v)!==void 0){var b=this.validateSchema(v,g,p,m.makeChild(g));h.importErrors(b)}return h}},i.properties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=f.properties||{};for(var v in g){var b=g[v];if(b!==void 0){if(b===null)throw new r('Unexpected null, expected schema in "properties"');typeof p.preValidateProperty=="function"&&p.preValidateProperty(d,v,b,p,m);var w=s(d,v),y=this.validateSchema(w,b,p,m.makeChild(b,v));y.instance!==h.instance[v]&&(h.instance[v]=y.instance),h.importErrors(y)}}return h}};function l(d,f,p,m,h,g){if(this.types.object(d)&&!(f.properties&&f.properties[h]!==void 0))if(f.additionalProperties===!1)g.addError({name:"additionalProperties",argument:h,message:"is not allowed to have the additional property "+JSON.stringify(h)});else{var v=f.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(d,h,v,p,m);var b=this.validateSchema(d[h],v,p,m.makeChild(v,h));b.instance!==g.instance[h]&&(g.instance[h]=b.instance),g.importErrors(b)}}i.patternProperties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=f.patternProperties||{};for(var v in d){var b=!0;for(var w in g){var y=g[w];if(y!==void 0){if(y===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var S=new RegExp(w,"u")}catch{S=new RegExp(w)}if(S.test(v)){b=!1,typeof p.preValidateProperty=="function"&&p.preValidateProperty(d,v,y,p,m);var x=this.validateSchema(d[v],y,p,m.makeChild(y,v));x.instance!==h.instance[v]&&(h.instance[v]=x.instance),h.importErrors(x)}}}b&&l.call(this,d,f,p,m,v,h)}return h}},i.additionalProperties=function(d,f,p,m){if(this.types.object(d)){if(f.patternProperties)return null;var h=new t(d,f,p,m);for(var g in d)l.call(this,d,f,p,m,g,h);return h}},i.minProperties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=Object.keys(d);return g.length>=f.minProperties||h.addError({name:"minProperties",argument:f.minProperties,message:"does not meet minimum property length of "+f.minProperties}),h}},i.maxProperties=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m),g=Object.keys(d);return g.length<=f.maxProperties||h.addError({name:"maxProperties",argument:f.maxProperties,message:"does not meet maximum property length of "+f.maxProperties}),h}},i.items=function(d,f,p,m){var h=this;if(this.types.array(d)&&f.items!==void 0){var g=new t(d,f,p,m);return d.every(function(v,b){if(Array.isArray(f.items))var w=f.items[b]===void 0?f.additionalItems:f.items[b];else var w=f.items;if(w===void 0)return!0;if(w===!1)return g.addError({name:"items",message:"additionalItems not permitted"}),!1;var y=h.validateSchema(v,w,p,m.makeChild(w,b));return y.instance!==g.instance[b]&&(g.instance[b]=y.instance),g.importErrors(y),!0}),g}},i.contains=function(d,f,p,m){var h=this;if(this.types.array(d)&&f.contains!==void 0){if(!e.isSchema(f.contains))throw new Error('Expected "contains" keyword to be a schema');var g=new t(d,f,p,m),v=d.some(function(b,w){var y=h.validateSchema(b,f.contains,p,m.makeChild(f.contains,w));return y.errors.length===0});return v===!1&&g.addError({name:"contains",argument:f.contains,message:"must contain an item matching given schema"}),g}},i.minimum=function(d,f,p,m){if(this.types.number(d)){var h=new t(d,f,p,m);return f.exclusiveMinimum&&f.exclusiveMinimum===!0?d>f.minimum||h.addError({name:"minimum",argument:f.minimum,message:"must be greater than "+f.minimum}):d>=f.minimum||h.addError({name:"minimum",argument:f.minimum,message:"must be greater than or equal to "+f.minimum}),h}},i.maximum=function(d,f,p,m){if(this.types.number(d)){var h=new t(d,f,p,m);return f.exclusiveMaximum&&f.exclusiveMaximum===!0?d<f.maximum||h.addError({name:"maximum",argument:f.maximum,message:"must be less than "+f.maximum}):d<=f.maximum||h.addError({name:"maximum",argument:f.maximum,message:"must be less than or equal to "+f.maximum}),h}},i.exclusiveMinimum=function(d,f,p,m){if(typeof f.exclusiveMinimum!="boolean"&&this.types.number(d)){var h=new t(d,f,p,m),g=d>f.exclusiveMinimum;return g||h.addError({name:"exclusiveMinimum",argument:f.exclusiveMinimum,message:"must be strictly greater than "+f.exclusiveMinimum}),h}},i.exclusiveMaximum=function(d,f,p,m){if(typeof f.exclusiveMaximum!="boolean"&&this.types.number(d)){var h=new t(d,f,p,m),g=d<f.exclusiveMaximum;return g||h.addError({name:"exclusiveMaximum",argument:f.exclusiveMaximum,message:"must be strictly less than "+f.exclusiveMaximum}),h}};var c=function(d,f,p,m,h,g){if(this.types.number(d)){var v=f[h];if(v==0)throw new r(h+" cannot be zero");var b=new t(d,f,p,m),w=e.getDecimalPlaces(d),y=e.getDecimalPlaces(v),S=Math.max(w,y),x=Math.pow(10,S);return Math.round(d*x)%Math.round(v*x)!==0&&b.addError({name:h,argument:v,message:g+JSON.stringify(v)}),b}};i.multipleOf=function(d,f,p,m){return c.call(this,d,f,p,m,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(d,f,p,m){return c.call(this,d,f,p,m,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(d,f,p,m){var h=new t(d,f,p,m);return d===void 0&&f.required===!0?h.addError({name:"required",message:"is required"}):this.types.object(d)&&Array.isArray(f.required)&&f.required.forEach(function(g){s(d,g)===void 0&&h.addError({name:"required",argument:g,message:"requires property "+JSON.stringify(g)})}),h},i.pattern=function(d,f,p,m){if(this.types.string(d)){var h=new t(d,f,p,m),g=f.pattern;try{var v=new RegExp(g,"u")}catch{v=new RegExp(g)}return d.match(v)||h.addError({name:"pattern",argument:f.pattern,message:"does not match pattern "+JSON.stringify(f.pattern.toString())}),h}},i.format=function(d,f,p,m){if(d!==void 0){var h=new t(d,f,p,m);return!h.disableFormat&&!e.isFormat(d,f.format,this)&&h.addError({name:"format",argument:f.format,message:"does not conform to the "+JSON.stringify(f.format)+" format"}),h}},i.minLength=function(d,f,p,m){if(this.types.string(d)){var h=new t(d,f,p,m),g=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(g?g.length:0);return v>=f.minLength||h.addError({name:"minLength",argument:f.minLength,message:"does not meet minimum length of "+f.minLength}),h}},i.maxLength=function(d,f,p,m){if(this.types.string(d)){var h=new t(d,f,p,m),g=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(g?g.length:0);return v<=f.maxLength||h.addError({name:"maxLength",argument:f.maxLength,message:"does not meet maximum length of "+f.maxLength}),h}},i.minItems=function(d,f,p,m){if(this.types.array(d)){var h=new t(d,f,p,m);return d.length>=f.minItems||h.addError({name:"minItems",argument:f.minItems,message:"does not meet minimum length of "+f.minItems}),h}},i.maxItems=function(d,f,p,m){if(this.types.array(d)){var h=new t(d,f,p,m);return d.length<=f.maxItems||h.addError({name:"maxItems",argument:f.maxItems,message:"does not meet maximum length of "+f.maxItems}),h}};function u(d,f,p){var m,h=p.length;for(m=f+1,h;m<h;m++)if(e.deepCompareStrict(d,p[m]))return!1;return!0}return i.uniqueItems=function(d,f,p,m){if(f.uniqueItems===!0&&this.types.array(d)){var h=new t(d,f,p,m);return d.every(u)||h.addError({name:"uniqueItems",message:"contains duplicate item"}),h}},i.dependencies=function(d,f,p,m){if(this.types.object(d)){var h=new t(d,f,p,m);for(var g in f.dependencies)if(d[g]!==void 0){var v=f.dependencies[g],b=m.makeChild(v,g);if(typeof v=="string"&&(v=[v]),Array.isArray(v))v.forEach(function(y){d[y]===void 0&&h.addError({name:"dependencies",argument:b.propertyPath,message:"property "+y+" not found, required by "+b.propertyPath})});else{var w=this.validateSchema(d,v,p,b);h.instance!==w.instance&&(h.instance=w.instance),w&&w.errors.length&&(h.addError({name:"dependencies",argument:b.propertyPath,message:"does not meet dependency required by "+b.propertyPath}),h.importErrors(w))}}return h}},i.enum=function(d,f,p,m){if(d===void 0)return null;if(!Array.isArray(f.enum))throw new r("enum expects an array",f);var h=new t(d,f,p,m);return f.enum.some(e.deepCompareStrict.bind(null,d))||h.addError({name:"enum",argument:f.enum,message:"is not one of enum values: "+f.enum.map(String).join(",")}),h},i.const=function(d,f,p,m){if(d===void 0)return null;var h=new t(d,f,p,m);return e.deepCompareStrict(f.const,d)||h.addError({name:"const",argument:f.const,message:"does not exactly match expected constant: "+f.const}),h},i.not=i.disallow=function(d,f,p,m){var h=this;if(d===void 0)return null;var g=new t(d,f,p,m),v=f.not||f.disallow;return v?(Array.isArray(v)||(v=[v]),v.forEach(function(b){if(h.testType(d,f,p,m,b)){var w=b&&(b.$id||b.id),y=w||b;g.addError({name:"not",argument:y,message:"is of prohibited type "+y})}}),g):null},Iv=n,Iv}var Cp={},hE;function _v(){if(hE)return Cp;hE=1;var e=ms();Cp.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return Cp.scan=function(r,n){function i(u,d){if(!d||typeof d!="object")return;if(d.$ref){let h=e.resolveUrl(u,d.$ref);c[h]=c[h]?c[h]+1:0;return}var f=d.$id||d.id;let p=e.resolveUrl(u,f);var m=f?p:u;if(m){if(m.indexOf("#")<0&&(m+="#"),l[m]){if(!e.deepCompareStrict(l[m],d))throw new Error("Schema <"+m+"> already exists with different definition");return l[m]}l[m]=d,m[m.length-1]=="#"&&(l[m.substring(0,m.length-1)]=d)}o(m+"/items",Array.isArray(d.items)?d.items:[d.items]),o(m+"/extends",Array.isArray(d.extends)?d.extends:[d.extends]),i(m+"/additionalItems",d.additionalItems),s(m+"/properties",d.properties),i(m+"/additionalProperties",d.additionalProperties),s(m+"/definitions",d.definitions),s(m+"/patternProperties",d.patternProperties),s(m+"/dependencies",d.dependencies),o(m+"/disallow",d.disallow),o(m+"/allOf",d.allOf),o(m+"/anyOf",d.anyOf),o(m+"/oneOf",d.oneOf),i(m+"/not",d.not)}function o(u,d){if(Array.isArray(d))for(var f=0;f<d.length;f++)i(u+"/"+f,d[f])}function s(u,d){if(!(!d||typeof d!="object"))for(var f in d)i(u+"/"+f,d[f])}var l={},c={};return i(r,n),new t(l,c)},Cp}var $v,gE;function _ae(){if(gE)return $v;gE=1;var e=Iae(),t=ms(),r=_v().scan,n=t.ValidatorResult,i=t.ValidatorResultError,o=t.SchemaError,s=t.SchemaContext,l="/",c=function f(){this.customFormats=Object.create(f.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(d),this.attributes=Object.create(e.validators)};c.prototype.customFormats={},c.prototype.schemas=null,c.prototype.types=null,c.prototype.attributes=null,c.prototype.unresolvedRefs=null,c.prototype.addSchema=function(f,p){var m=this;if(!f)return null;var h=r(p||l,f),g=p||f.$id||f.id;for(var v in h.id)this.schemas[v]=h.id[v];for(var v in h.ref)this.unresolvedRefs.push(v);return this.unresolvedRefs=this.unresolvedRefs.filter(function(b){return typeof m.schemas[b]>"u"}),this.schemas[g]},c.prototype.addSubSchemaArray=function(f,p){if(Array.isArray(p))for(var m=0;m<p.length;m++)this.addSubSchema(f,p[m])},c.prototype.addSubSchemaObject=function(f,p){if(!(!p||typeof p!="object"))for(var m in p)this.addSubSchema(f,p[m])},c.prototype.setSchemas=function(f){this.schemas=f},c.prototype.getSchema=function(f){return this.schemas[f]},c.prototype.validate=function(f,p,m,h){if(typeof p!="boolean"&&typeof p!="object"||p===null)throw new o("Expected `schema` to be an object or boolean");m||(m={});var g=p.$id||p.id;let v=t.resolveUrl(m.base,g||"");if(!h){h=new s(p,m,[],v,Object.create(this.schemas)),h.schemas[v]||(h.schemas[v]=p);var b=r(v,p);for(var w in b.id){var y=b.id[w];h.schemas[w]=y}}if(m.required&&f===void 0){var S=new n(f,p,m,h);return S.addError("is required, but is undefined"),S}var S=this.validateSchema(f,p,m,h);if(S){if(m.throwAll&&S.errors.length)throw new i(S)}else throw new Error("Result undefined");return S};function u(f){var p=typeof f=="string"?f:f.$ref;return typeof p=="string"?p:!1}c.prototype.validateSchema=function(f,p,m,h){var g=new n(f,p,m,h);if(typeof p=="boolean")p===!0?p={}:p===!1&&(p={type:[]});else if(!p)throw new Error("schema is undefined");if(p.extends)if(Array.isArray(p.extends)){var v={schema:p,ctx:h};p.extends.forEach(this.schemaTraverser.bind(this,v)),p=v.schema,v.schema=null,v.ctx=null,v=null}else p=t.deepMerge(p,this.superResolve(p.extends,h));var b=u(p);if(b){var w=this.resolve(p,b,h),y=new s(w.subschema,m,h.path,w.switchSchema,h.schemas);return this.validateSchema(f,w.subschema,m,y)}var S=m&&m.skipAttributes||[];for(var x in p)if(!e.ignoreProperties[x]&&S.indexOf(x)<0){var C=null,N=this.attributes[x];if(N)C=N.call(this,f,p,m,h);else if(m.allowUnknownAttributes===!1)throw new o("Unsupported attribute: "+x,p);C&&g.importErrors(C)}if(typeof m.rewrite=="function"){var E=m.rewrite.call(this,f,p,m,h);g.instance=E}return g},c.prototype.schemaTraverser=function(f,p){f.schema=t.deepMerge(f.schema,this.superResolve(p,f.ctx))},c.prototype.superResolve=function(f,p){var m=u(f);return m?this.resolve(f,m,p).subschema:f},c.prototype.resolve=function(f,p,m){if(p=m.resolve(p),m.schemas[p])return{subschema:m.schemas[p],switchSchema:p};let h=new URL(p,"thismessage::/").hash;var g=h&&h.length&&p.substr(0,p.length-h.length);if(!g||!m.schemas[g])throw new o("no such schema <"+p+">",f);var v=t.objectGetPath(m.schemas[g],h.substr(1));if(v===void 0)throw new o("no such schema "+h+" located in <"+g+">",f);return{subschema:v,switchSchema:p}},c.prototype.testType=function(f,p,m,h,g){if(g!==void 0){if(g===null)throw new o('Unexpected null in "type" keyword');if(typeof this.types[g]=="function")return this.types[g].call(this,f);if(g&&typeof g=="object"){var v=this.validateSchema(f,g,m,h);return v===void 0||!(v&&v.errors.length)}return!0}};var d=c.prototype.types={};return d.string=function(f){return typeof f=="string"},d.number=function(f){return typeof f=="number"&&isFinite(f)},d.integer=function(f){return typeof f=="number"&&f%1===0},d.boolean=function(f){return typeof f=="boolean"},d.array=function(f){return Array.isArray(f)},d.null=function(f){return f===null},d.date=function(f){return f instanceof Date},d.any=function(f){return!0},d.object=function(f){return f&&typeof f=="object"&&!Array.isArray(f)&&!(f instanceof Date)},$v=c,$v}var vE;function $ae(){if(vE)return Jo;vE=1;var e=Jo.Validator=_ae();return Jo.ValidatorResult=ms().ValidatorResult,Jo.ValidatorResultError=ms().ValidatorResultError,Jo.ValidationError=ms().ValidationError,Jo.SchemaError=ms().SchemaError,Jo.SchemaScanResult=_v().SchemaScanResult,Jo.scan=_v().scan,Jo.validate=function(t,r,n){var i=new e;return i.validate(t,r,n)},Jo}var Rae=$ae();function bE(e,t){const r=e/t;return Math.abs(r-Math.round(r))<1e-9}function Pae(e){if(e===void 0)return[{type:Dt.WARNING,description:"UI JSON: no UI JSON was provided."}];const t=new Rae.Validator,r={additionalProperties:!1,properties:{input:{items:{oneOf:[{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{required:!0,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:{required:!0,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=t.validate(e,r,{nestedErrors:!0});if(!n.valid){const l=[];for(const c of String(n).split(`
|
|
1270
|
-
`))c!==""&&l.push({type:Dt.WARNING,description:`UI JSON: ${pc(c)}`});return l}const i=[],o={};for(const l of e.input){let c=function(u){return"minimumValue"in u&&"maximumValue"in u};if(l.id!==void 0&&(l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input id must not be empty."}),o[l.id]&&i.push({type:Dt.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),o[l.id]=!0),l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input name must not be empty."}),"possibleValues"in l){for(const f of l.possibleValues)f.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value name must not be empty."});const u=l.possibleValues.map(f=>f.value),d={};for(const f of u)d[f]&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(f)+" is used more than once)."}),d[f]=!0;u.includes(l.defaultValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+u.join(", ")+")."})}if(c(l)){l.minimumValue>=l.maximumValue&&i.push({type:Dt.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:Dt.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 u=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>u)&&i.push({type:Dt.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(u)+")."}),bE(u,l.stepValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(u)+")."})):bE(u,1)||i.push({type:Dt.WARNING,description:`UI JSON: a (default) input step value (1) must be a factor of the range value (${String(u)}).`})}l.visible!==void 0&&l.visible===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of e.output.data)l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:Dt.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:Dt.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of e.output.plots)l.xAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of e.parameters)l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function at(){return Ae!==void 0}function Sp(){return!at()}function zae(){return at()?nt.version():Ii.versionString()}let nt={},Ii={};async function Uae(){if(window.locApi!==void 0)nt=window.locApi;else try{const e=(await import(cE("https://opencor.ws/libopencor/downloads/wasm/libopencor-0.20251204.0.js"))).default;Ii=await e()}catch(e){console.error("Failed to load libOpenCOR's WebAssembly module:",e)}}const qae="0.20251207.0",Vae={class:"space-y-7"},jae={class:"text-center"},Qae={class:"text-3xl font-bold"},Hae={key:0,class:"text-xl italic font-bold"},Wae={class:"text-sm italic"},Zae={class:"space-y-2"},Gae=a.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1),Kae=a.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1),Yae=a.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1),Jae=a.createElementVNode("div",{class:"space-y-0"},[a.createElementVNode("div",null,"There are two versions of OpenCOR:"),a.createElementVNode("ol",{class:"list-decimal list-inside ml-2"},[a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR:"),a.createTextVNode(" a desktop application that can be run on "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors"},"Intel"),a.createTextVNode("-based and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family"},"ARM"),a.createTextVNode("-based "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Microsoft_Windows",target:"_blank",rel:"noopener"},"Windows"),a.createTextVNode(", "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Linux",target:"_blank",rel:"noopener"},"Linux"),a.createTextVNode(", and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/MacOS",target:"_blank",rel:"noopener"},"macOS"),a.createTextVNode(" machines; and ")]),a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR's Web app:"),a.createTextVNode(" a "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Web_application",target:"_blank",rel:"noopener"},"Web app"),a.createTextVNode(" that can be run on a Web browser. ")])])],-1),Xae=a.defineComponent({__name:"AboutDialog",emits:["close"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:" ",class:"w-169"},{footer:a.withCtx(()=>[a.createVNode(n,{label:"OK",autofocus:"",onClick:r[0]||(r[0]=o=>t.$emit("close"))})]),default:a.withCtx(()=>[a.createElementVNode("div",Vae,[a.createElementVNode("div",jae,[a.createElementVNode("div",Qae,"OpenCOR "+a.toDisplayString(a.unref(qae)),1),a.unref(Ae)!==void 0?(a.openBlock(),a.createElementBlock("div",Hae,a.toDisplayString(a.unref(Ae).operatingSystem()),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Wae,"Copyright "+a.toDisplayString(kae),1)]),a.createElementVNode("div",Zae,[a.createElementVNode("div",null,[Gae,a.createTextVNode(" is a frontend to "),Kae,a.createTextVNode(" "+a.toDisplayString(zae())+", a library that can be used to organise, edit, simulate, and analyse ",1),Yae,a.createTextVNode(" files. ")]),Jae])])]),_:1})}}}),Lae={class:"mt-2 mb-4"},ese=a.defineComponent({__name:"YesNoQuestionDialog",props:{title:{},question:{}},emits:["yes","no"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:t.title},{footer:a.withCtx(()=>[a.createVNode(n,{autofocus:"",label:"Yes",severity:"danger",onClick:r[0]||(r[0]=o=>t.$emit("yes"))}),a.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=o=>t.$emit("no"))})]),default:a.withCtx(()=>[a.createElementVNode("div",Lae,a.toDisplayString(t.question),1)]),_:1},8,["header"])}}});var Sa={name:"CheckIcon",extends:Rt};function tse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.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)}Sa.render=tse;var Rv={name:"MinusIcon",extends:Rt};function rse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.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)}Rv.render=rse;var kp={name:"BaseEditableHolder",extends:it,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 t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,t){var r,n;this.controlled&&(this.d_value=e,this.$emit("update:modelValue",e)),this.$emit("value-change",e),(r=(n=this.formField).onChange)===null||r===void 0||r.call(n,{originalEvent:t,value:e})}},computed:{$filled:function(){return rt(this.d_value)},$invalid:function(){var e,t,r,n;return(e=(t=this.invalid)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0||(r=r.$field)===null||r===void 0?void 0:r.invalid)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.states)===null||n===void 0||(n=n[this.$formName])===null||n===void 0?void 0:n.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,t,r,n;return(e=(t=this.d_value)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0?void 0:r.initialValue)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.initialValues)===null||n===void 0?void 0:n[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},mc={name:"BaseInput",extends:kp,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}}},nse=function(e){var t=e.dt;return`
|
|
1270
|
+
`))c!==""&&l.push({type:Dt.WARNING,description:`UI JSON: ${pc(c)}`});return l}const i=[],o={};for(const l of e.input){let c=function(u){return"minimumValue"in u&&"maximumValue"in u};if(l.id!==void 0&&(l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input id must not be empty."}),o[l.id]&&i.push({type:Dt.WARNING,description:`UI JSON: an input id must be unique (${l.id} is used more than once).`}),o[l.id]=!0),l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input name must not be empty."}),"possibleValues"in l){for(const f of l.possibleValues)f.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value name must not be empty."});const u=l.possibleValues.map(f=>f.value),d={};for(const f of u)d[f]&&i.push({type:Dt.WARNING,description:"UI JSON: an input possible value must have a unique value ("+String(f)+" is used more than once)."}),d[f]=!0;u.includes(l.defaultValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input default value ("+String(l.defaultValue)+") must be one of the possible values ("+u.join(", ")+")."})}if(c(l)){l.minimumValue>=l.maximumValue&&i.push({type:Dt.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:Dt.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 u=l.maximumValue-l.minimumValue;l.stepValue!==void 0?((l.stepValue<=0||l.stepValue>u)&&i.push({type:Dt.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(u)+")."}),bE(u,l.stepValue)||i.push({type:Dt.WARNING,description:"UI JSON: an input step value ("+String(l.stepValue)+") must be a factor of the range value ("+String(u)+")."})):bE(u,1)||i.push({type:Dt.WARNING,description:`UI JSON: a (default) input step value (1) must be a factor of the range value (${String(u)}).`})}l.visible!==void 0&&l.visible===""&&i.push({type:Dt.WARNING,description:"UI JSON: an input visible must not be empty."})}const s={};for(const l of e.output.data)l.id===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output data id must not be empty."}),s[l.id]&&i.push({type:Dt.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:Dt.WARNING,description:"UI JSON: an output data name must not be empty."});for(const l of e.output.plots)l.xAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X axis title must not be empty."}),l.xValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot X value must not be empty."}),l.yAxisTitle===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y axis title must not be empty."}),l.yValue===""&&i.push({type:Dt.WARNING,description:"UI JSON: an output plot Y value must not be empty."});for(const l of e.parameters)l.name===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter name must not be empty."}),l.value===""&&i.push({type:Dt.WARNING,description:"UI JSON: a parameter value must not be empty."});return i}function at(){return Ae!==void 0}function Sp(){return!at()}function zae(){return at()?nt.version():Ii.versionString()}let nt={},Ii={};async function Uae(){if(window.locApi!==void 0)nt=window.locApi;else try{const e=(await import(cE("https://opencor.ws/libopencor/downloads/wasm/libopencor-0.20251204.0.js"))).default;Ii=await e()}catch(e){console.error("Failed to load libOpenCOR's WebAssembly module:",e)}}const qae="0.20251210.0",Vae={class:"space-y-7"},jae={class:"text-center"},Qae={class:"text-3xl font-bold"},Hae={key:0,class:"text-xl italic font-bold"},Wae={class:"text-sm italic"},Zae={class:"space-y-2"},Gae=a.createElementVNode("a",{href:"https://opencor.ws/",target:"_blank",rel:"noopener"},"OpenCOR",-1),Kae=a.createElementVNode("a",{href:"https://opencor.ws/libopencor/",target:"_blank",rel:"noopener"},"libOpenCOR",-1),Yae=a.createElementVNode("a",{href:"https://cellml.org/",target:"_blank",rel:"noopener"},"CellML",-1),Jae=a.createElementVNode("div",{class:"space-y-0"},[a.createElementVNode("div",null,"There are two versions of OpenCOR:"),a.createElementVNode("ol",{class:"list-decimal list-inside ml-2"},[a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR:"),a.createTextVNode(" a desktop application that can be run on "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/List_of_Intel_processors"},"Intel"),a.createTextVNode("-based and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/ARM_architecture_family"},"ARM"),a.createTextVNode("-based "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Microsoft_Windows",target:"_blank",rel:"noopener"},"Windows"),a.createTextVNode(", "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Linux",target:"_blank",rel:"noopener"},"Linux"),a.createTextVNode(", and "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/MacOS",target:"_blank",rel:"noopener"},"macOS"),a.createTextVNode(" machines; and ")]),a.createElementVNode("li",null,[a.createElementVNode("span",{class:"font-bold"},"OpenCOR's Web app:"),a.createTextVNode(" a "),a.createElementVNode("a",{href:"https://en.wikipedia.org/wiki/Web_application",target:"_blank",rel:"noopener"},"Web app"),a.createTextVNode(" that can be run on a Web browser. ")])])],-1),Xae=a.defineComponent({__name:"AboutDialog",emits:["close"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:" ",class:"w-169"},{footer:a.withCtx(()=>[a.createVNode(n,{label:"OK",autofocus:"",onClick:r[0]||(r[0]=o=>t.$emit("close"))})]),default:a.withCtx(()=>[a.createElementVNode("div",Vae,[a.createElementVNode("div",jae,[a.createElementVNode("div",Qae,"OpenCOR "+a.toDisplayString(a.unref(qae)),1),a.unref(Ae)!==void 0?(a.openBlock(),a.createElementBlock("div",Hae,a.toDisplayString(a.unref(Ae).operatingSystem()),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Wae,"Copyright "+a.toDisplayString(kae),1)]),a.createElementVNode("div",Zae,[a.createElementVNode("div",null,[Gae,a.createTextVNode(" is a frontend to "),Kae,a.createTextVNode(" "+a.toDisplayString(zae())+", a library that can be used to organise, edit, simulate, and analyse ",1),Yae,a.createTextVNode(" files. ")]),Jae])])]),_:1})}}}),Lae={class:"mt-2 mb-4"},ese=a.defineComponent({__name:"YesNoQuestionDialog",props:{title:{},question:{}},emits:["yes","no"],setup(e){return(t,r)=>{const n=Wo,i=Tl;return a.openBlock(),a.createBlock(i,{header:t.title},{footer:a.withCtx(()=>[a.createVNode(n,{autofocus:"",label:"Yes",severity:"danger",onClick:r[0]||(r[0]=o=>t.$emit("yes"))}),a.createVNode(n,{label:"No",severity:"secondary",onClick:r[1]||(r[1]=o=>t.$emit("no"))})]),default:a.withCtx(()=>[a.createElementVNode("div",Lae,a.toDisplayString(t.question),1)]),_:1},8,["header"])}}});var Sa={name:"CheckIcon",extends:Rt};function tse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.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)}Sa.render=tse;var Rv={name:"MinusIcon",extends:Rt};function rse(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[a.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)}Rv.render=rse;var kp={name:"BaseEditableHolder",extends:it,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 t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,r;this.formField=((t=this.$pcForm)===null||t===void 0||(r=t.register)===null||r===void 0?void 0:r.call(t,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,t){var r,n;this.controlled&&(this.d_value=e,this.$emit("update:modelValue",e)),this.$emit("value-change",e),(r=(n=this.formField).onChange)===null||r===void 0||r.call(n,{originalEvent:t,value:e})}},computed:{$filled:function(){return rt(this.d_value)},$invalid:function(){var e,t,r,n;return(e=(t=this.invalid)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0||(r=r.$field)===null||r===void 0?void 0:r.invalid)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.states)===null||n===void 0||(n=n[this.$formName])===null||n===void 0?void 0:n.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,t,r,n;return(e=(t=this.d_value)!==null&&t!==void 0?t:(r=this.$pcFormField)===null||r===void 0?void 0:r.initialValue)!==null&&e!==void 0?e:(n=this.$pcForm)===null||n===void 0||(n=n.initialValues)===null||n===void 0?void 0:n[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},mc={name:"BaseInput",extends:kp,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}}},nse=function(e){var t=e.dt;return`
|
|
1271
1271
|
.p-checkbox {
|
|
1272
1272
|
position: relative;
|
|
1273
1273
|
display: inline-flex;
|
|
@@ -3524,7 +3524,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3524
3524
|
.p-editor .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label {
|
|
3525
3525
|
color: `).concat(t("editor.toolbar.item.active.color"),`;
|
|
3526
3526
|
}
|
|
3527
|
-
`)},Zue={root:function(e){var t=e.instance;return["p-editor",{"p-invalid":t.$invalid}]},toolbar:"p-editor-toolbar",content:"p-editor-content"},Gue=Ge.extend({name:"editor",theme:Wue,classes:Zue}),Kue={name:"BaseEditor",extends:kp,props:{placeholder:String,readonly:Boolean,formats:Array,editorStyle:null,modules:null},style:Gue,provide:function(){return{$pcEditor:this,$parentInstance:this}}};function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function jE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jE(Object(r),!0).forEach(function(n){Jue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jue(e,t,r){return(t=Xue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xue(e){var t=Lue(e,"string");return Cc(t)=="symbol"?t:t+""}function Lue(e,t){if(Cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QE=function(){try{return window.Quill}catch{return null}}(),HE={name:"Editor",extends:Kue,inheritAttrs:!1,emits:["text-change","selection-change","load"],data:function(){return{reRenderColorKey:0}},quill:null,watch:{modelValue:function(e,t){e!==t&&this.quill&&!this.quill.hasFocus()&&(this.reRenderColorKey++,this.renderValue(e))},readonly:function(){this.handleReadOnlyChange()}},mounted:function(){var e=this,t={modules:Yue({toolbar:this.$refs.toolbarElement},this.modules),readOnly:this.readonly,theme:"snow",formats:this.formats,placeholder:this.placeholder};QE?(this.quill=new QE(this.$refs.editorElement,t),this.initQuill(),this.handleLoad()):Promise.resolve().then(()
|
|
3527
|
+
`)},Zue={root:function(e){var t=e.instance;return["p-editor",{"p-invalid":t.$invalid}]},toolbar:"p-editor-toolbar",content:"p-editor-content"},Gue=Ge.extend({name:"editor",theme:Wue,classes:Zue}),Kue={name:"BaseEditor",extends:kp,props:{placeholder:String,readonly:Boolean,formats:Array,editorStyle:null,modules:null},style:Gue,provide:function(){return{$pcEditor:this,$parentInstance:this}}};function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function jE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jE(Object(r),!0).forEach(function(n){Jue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jue(e,t,r){return(t=Xue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xue(e){var t=Lue(e,"string");return Cc(t)=="symbol"?t:t+""}function Lue(e,t){if(Cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QE=function(){try{return window.Quill}catch{return null}}(),HE={name:"Editor",extends:Kue,inheritAttrs:!1,emits:["text-change","selection-change","load"],data:function(){return{reRenderColorKey:0}},quill:null,watch:{modelValue:function(e,t){e!==t&&this.quill&&!this.quill.hasFocus()&&(this.reRenderColorKey++,this.renderValue(e))},readonly:function(){this.handleReadOnlyChange()}},mounted:function(){var e=this,t={modules:Yue({toolbar:this.$refs.toolbarElement},this.modules),readOnly:this.readonly,theme:"snow",formats:this.formats,placeholder:this.placeholder};QE?(this.quill=new QE(this.$refs.editorElement,t),this.initQuill(),this.handleLoad()):Promise.resolve().then(()=>$Ee).then(function(r){r&&K3(e.$refs.editorElement)&&(r.default?e.quill=new r.default(e.$refs.editorElement,t):e.quill=new r(e.$refs.editorElement,t),e.initQuill())}).then(function(){e.handleLoad()})},beforeUnmount:function(){this.quill=null},methods:{renderValue:function(e){this.quill&&(e?this.quill.clipboard.dangerouslyPasteHTML(e):this.quill.setText(""))},initQuill:function(){var e=this;this.renderValue(this.d_value),this.quill.on("text-change",function(t,r,n){if(n==="user"){var i=e.$refs.editorElement.children[0].innerHTML,o=e.quill.getText().trim();i==="<p><br></p>"&&(i=""),e.writeValue(i),e.$emit("text-change",{htmlValue:i,textValue:o,delta:t,source:n,instance:e.quill})}}),this.quill.on("selection-change",function(t,r,n){var i=e.$refs.editorElement.children[0].innerHTML,o=e.quill.getText().trim();e.$emit("selection-change",{htmlValue:i,textValue:o,range:t,oldRange:r,source:n,instance:e.quill})})},handleLoad:function(){this.quill&&this.quill.getModule("toolbar")&&this.$emit("load",{instance:this.quill})},handleReadOnlyChange:function(){this.quill&&this.quill.enable(!this.readonly)}}};function ece(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptmi("root")),[a.createElementVNode("div",a.mergeProps({ref:"toolbarElement",class:e.cx("toolbar")},e.ptm("toolbar")),[a.renderSlot(e.$slots,"toolbar",{},function(){return[a.createElementVNode("span",a.mergeProps({class:"ql-formats"},e.ptm("formats")),[a.createElementVNode("select",a.mergeProps({class:"ql-header",defaultValue:"0"},e.ptm("header")),[a.createElementVNode("option",a.mergeProps({value:"1"},e.ptm("option")),"Heading",16),a.createElementVNode("option",a.mergeProps({value:"2"},e.ptm("option")),"Subheading",16),a.createElementVNode("option",a.mergeProps({value:"0"},e.ptm("option")),"Normal",16)],16),a.createElementVNode("select",a.mergeProps({class:"ql-font"},e.ptm("font")),[a.createElementVNode("option",a.normalizeProps(a.guardReactiveProps(e.ptm("option"))),null,16),a.createElementVNode("option",a.mergeProps({value:"serif"},e.ptm("option")),null,16),a.createElementVNode("option",a.mergeProps({value:"monospace"},e.ptm("option")),null,16)],16)],16),a.createElementVNode("span",a.mergeProps({class:"ql-formats"},e.ptm("formats")),[a.createElementVNode("button",a.mergeProps({class:"ql-bold",type:"button"},e.ptm("bold")),null,16),a.createElementVNode("button",a.mergeProps({class:"ql-italic",type:"button"},e.ptm("italic")),null,16),a.createElementVNode("button",a.mergeProps({class:"ql-underline",type:"button"},e.ptm("underline")),null,16)],16),(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:i.reRenderColorKey,class:"ql-formats"},e.ptm("formats")),[a.createElementVNode("select",a.mergeProps({class:"ql-color"},e.ptm("color")),null,16),a.createElementVNode("select",a.mergeProps({class:"ql-background"},e.ptm("background")),null,16)],16)),a.createElementVNode("span",a.mergeProps({class:"ql-formats"},e.ptm("formats")),[a.createElementVNode("button",a.mergeProps({class:"ql-list",value:"ordered",type:"button"},e.ptm("list")),null,16),a.createElementVNode("button",a.mergeProps({class:"ql-list",value:"bullet",type:"button"},e.ptm("list")),null,16),a.createElementVNode("select",a.mergeProps({class:"ql-align"},e.ptm("select")),[a.createElementVNode("option",a.mergeProps({defaultValue:""},e.ptm("option")),null,16),a.createElementVNode("option",a.mergeProps({value:"center"},e.ptm("option")),null,16),a.createElementVNode("option",a.mergeProps({value:"right"},e.ptm("option")),null,16),a.createElementVNode("option",a.mergeProps({value:"justify"},e.ptm("option")),null,16)],16)],16),a.createElementVNode("span",a.mergeProps({class:"ql-formats"},e.ptm("formats")),[a.createElementVNode("button",a.mergeProps({class:"ql-link",type:"button"},e.ptm("link")),null,16),a.createElementVNode("button",a.mergeProps({class:"ql-image",type:"button"},e.ptm("image")),null,16),a.createElementVNode("button",a.mergeProps({class:"ql-code-block",type:"button"},e.ptm("codeBlock")),null,16)],16),a.createElementVNode("span",a.mergeProps({class:"ql-formats"},e.ptm("formats")),[a.createElementVNode("button",a.mergeProps({class:"ql-clean",type:"button"},e.ptm("clean")),null,16)],16)]})],16),a.createElementVNode("div",a.mergeProps({ref:"editorElement",class:e.cx("content"),style:e.editorStyle},e.ptm("content")),null,16)],16)}HE.render=ece;var tce=function(e){var t=e.dt;return`
|
|
3528
3528
|
.p-splitter {
|
|
3529
3529
|
display: flex;
|
|
3530
3530
|
flex-wrap: nowrap;
|
|
@@ -5020,7 +5020,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5020
5020
|
padding-inline-start: `).concat(t("menubar.submenu.mobile.indent"),`;
|
|
5021
5021
|
padding-inline-end: 0;
|
|
5022
5022
|
}
|
|
5023
|
-
`)},Kpe={submenu:function(e){var t=e.instance,r=e.processedItem;return{display:t.isItemActive(r)?"flex":"none"}}},Ype={root:function(e){var t=e.instance;return["p-menubar p-component",{"p-menubar-mobile":t.queryMatches,"p-menubar-mobile-active":t.mobileActive}]},start:"p-menubar-start",button:"p-menubar-button",rootList:"p-menubar-root-list",item:function(e){var t=e.instance,r=e.processedItem;return["p-menubar-item",{"p-menubar-item-active":t.isItemActive(r),"p-focus":t.isItemFocused(r),"p-disabled":t.isItemDisabled(r)}]},itemContent:"p-menubar-item-content",itemLink:"p-menubar-item-link",itemIcon:"p-menubar-item-icon",itemLabel:"p-menubar-item-label",submenuIcon:"p-menubar-submenu-icon",submenu:"p-menubar-submenu",separator:"p-menubar-separator",end:"p-menubar-end"},Jpe=Ge.extend({name:"menubar",theme:Gpe,classes:Ype,inlineStyles:Kpe}),Xpe={name:"BaseMenubar",extends:it,props:{model:{type:Array,default:null},buttonProps:{type:null,default:null},breakpoint:{type:String,default:"960px"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Jpe,provide:function(){return{$pcMenubar:this,$parentInstance:this}}},tB={name:"MenubarSub",hostName:"Menubar",extends:it,emits:["item-mouseenter","item-click","item-mousemove"],props:{items:{type:Array,default:null},root:{type:Boolean,default:!1},popup:{type:Boolean,default:!1},mobileActive:{type:Boolean,default:!1},templates:{type:Object,default:null},level:{type:Number,default:0},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},activeItemPath:{type:Object,default:null}},list:null,methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,t,r){return e&&e.item?hn(e.item[t],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,r){return this.ptm(r,{context:{item:e.item,index:t,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),level:this.level}})},isItemActive:function(e){return this.activeItemPath.some(function(t){return t.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return rt(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},onItemMouseMove:function(e,t){this.$emit("item-mousemove",{originalEvent:e,processedItem:t})},getAriaPosInset:function(e){return e-this.calculateAriaSetSize.slice(0,e).length+1},getMenuItemProps:function(e,t){return{action:a.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,t,"itemLink")),icon:a.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,t,"itemIcon")),label:a.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,t,"itemLabel")),submenuicon:a.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,t,"submenuIcon"))}}},computed:{calculateAriaSetSize:function(){var e=this;return this.items.filter(function(t){return e.isItemVisible(t)&&e.getItemProp(t,"separator")})},getAriaSetSize:function(){var e=this;return this.items.filter(function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")}).length}},components:{AngleRightIcon:n0,AngleDownIcon:e0},directives:{ripple:Qr}},Lpe=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],eme=["onClick","onMouseenter","onMousemove"],tme=["href","target"],rme=["id"],nme=["id"];function ome(e,t,r,n,i,o){var s=a.resolveComponent("MenubarSub",!0),l=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("ul",a.mergeProps({class:r.level===0?e.cx("rootList"):e.cx("submenu")},r.level===0?e.ptm("rootList"):e.ptm("submenu")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.items,function(c,u){return a.openBlock(),a.createElementBlock(a.Fragment,{key:o.getItemKey(c)},[o.isItemVisible(c)&&!o.getItemProp(c,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:o.getItemId(c),style:o.getItemProp(c,"style"),class:[e.cx("item",{processedItem:c}),o.getItemProp(c,"class")],role:"menuitem","aria-label":o.getItemLabel(c),"aria-disabled":o.isItemDisabled(c)||void 0,"aria-expanded":o.isItemGroup(c)?o.isItemActive(c):void 0,"aria-haspopup":o.isItemGroup(c)&&!o.getItemProp(c,"to")?"menu":void 0,"aria-level":r.level+1,"aria-setsize":o.getAriaSetSize,"aria-posinset":o.getAriaPosInset(u),ref_for:!0},o.getPTOptions(c,u,"item"),{"data-p-active":o.isItemActive(c),"data-p-focused":o.isItemFocused(c),"data-p-disabled":o.isItemDisabled(c)}),[a.createElementVNode("div",a.mergeProps({class:e.cx("itemContent"),onClick:function(d){return o.onItemClick(d,c)},onMouseenter:function(d){return o.onItemMouseEnter(d,c)},onMousemove:function(d){return o.onItemMouseMove(d,c)},ref_for:!0},o.getPTOptions(c,u,"itemContent")),[r.templates.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.templates.item),{key:1,item:c.item,root:r.root,hasSubmenu:o.getItemProp(c,"items"),label:o.getItemLabel(c),props:o.getMenuItemProps(c,u)},null,8,["item","root","hasSubmenu","label","props"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:o.getItemProp(c,"url"),class:e.cx("itemLink"),target:o.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},o.getPTOptions(c,u,"itemLink")),[r.templates.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.templates.itemicon),{key:0,item:c.item,class:a.normalizeClass(e.cx("itemIcon"))},null,8,["item","class"])):o.getItemProp(c,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:[e.cx("itemIcon"),o.getItemProp(c,"icon")],ref_for:!0},o.getPTOptions(c,u,"itemIcon")),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({id:o.getItemLabelId(c),class:e.cx("itemLabel"),ref_for:!0},o.getPTOptions(c,u,"itemLabel")),a.toDisplayString(o.getItemLabel(c)),17,rme),o.getItemProp(c,"items")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[r.templates.submenuicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.templates.submenuicon),{key:0,root:r.root,active:o.isItemActive(c),class:a.normalizeClass(e.cx("submenuIcon"))},null,8,["root","active","class"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.root?"AngleDownIcon":"AngleRightIcon"),a.mergeProps({key:1,class:e.cx("submenuIcon"),ref_for:!0},o.getPTOptions(c,u,"submenuIcon")),null,16,["class"]))],64)):a.createCommentVNode("",!0)],16,tme)),[[l]])],16,eme),o.isItemVisible(c)&&o.isItemGroup(c)?(a.openBlock(),a.createBlock(s,{key:0,id:o.getItemId(c)+"_list",menuId:r.menuId,role:"menu",style:a.normalizeStyle(e.sx("submenu",!0,{processedItem:c})),focusedItemId:r.focusedItemId,items:c.items,mobileActive:r.mobileActive,activeItemPath:r.activeItemPath,templates:r.templates,level:r.level+1,"aria-labelledby":o.getItemLabelId(c),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(d){return e.$emit("item-click",d)}),onItemMouseenter:t[1]||(t[1]=function(d){return e.$emit("item-mouseenter",d)}),onItemMousemove:t[2]||(t[2]=function(d){return e.$emit("item-mousemove",d)})},null,8,["id","menuId","style","focusedItemId","items","mobileActive","activeItemPath","templates","level","aria-labelledby","pt","unstyled"])):a.createCommentVNode("",!0)],16,Lpe)):a.createCommentVNode("",!0),o.isItemVisible(c)&&o.getItemProp(c,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,id:o.getItemId(c),class:[e.cx("separator"),o.getItemProp(c,"class")],style:o.getItemProp(c,"style"),role:"separator",ref_for:!0},e.ptm("separator")),null,16,nme)):a.createCommentVNode("",!0)],64)}),128))],16)}tB.render=ome;var rB={name:"Menubar",extends:Xpe,inheritAttrs:!1,emits:["focus","blur"],matchMediaListener:null,data:function(){return{id:this.$attrs.id,mobileActive:!1,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],dirty:!1,query:null,queryMatches:!1}},watch:{"$attrs.id":function(e){this.id=e||jr()},activeItemPath:function(e){rt(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())}},outsideClickListener:null,container:null,menubar:null,mounted:function(){this.id=this.id||jr(),this.bindMatchMediaListener()},beforeUnmount:function(){this.mobileActive=!1,this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMatchMediaListener(),this.container&&Or.clear(this.container),this.container=null},methods:{getItemProp:function(e,t){return e?hn(e[t]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemGroup:function(e){return rt(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&rt(e.items)},toggle:function(e){var t=this;this.mobileActive?(this.mobileActive=!1,Or.clear(this.menubar),this.hide()):(this.mobileActive=!0,Or.set("menu",this.menubar,this.$primevue.config.zIndex.menu),setTimeout(function(){t.show()},1)),this.bindOutsideClickListener(),e.preventDefault()},show:function(){ar(this.menubar)},hide:function(e,t){var r=this;this.mobileActive&&(this.mobileActive=!1,setTimeout(function(){ar(r.$refs.menubutton)},0)),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},t&&ar(this.menubar),this.dirty=!1},onFocus:function(e){this.focused=!0,this.focusedItemInfo=this.focusedItemInfo.index!==-1?this.focusedItemInfo:{index:this.findFirstFocusedItemIndex(),level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.dirty=!1,this.$emit("blur",e)},onKeyDown:function(e){var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!t&&t5(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,t){var r=e.processedItem,n=e.isFocus;if(!Ir(r)){var i=r.index,o=r.key,s=r.level,l=r.parentKey,c=r.items,u=rt(c),d=this.activeItemPath.filter(function(f){return f.parentKey!==l&&f.parentKey!==o});u&&d.push(r),this.focusedItemInfo={index:i,level:s,parentKey:l},u&&(this.dirty=!0),n&&ar(this.menubar),!(t==="hover"&&this.queryMatches)&&(this.activeItemPath=d)}},onItemClick:function(e){var t=e.originalEvent,r=e.processedItem,n=this.isProccessedItemGroup(r),i=Ir(r.parent),o=this.isSelected(r);if(o){var s=r.index,l=r.key,c=r.level,u=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(f){return l!==f.key&&l.startsWith(f.key)}),this.focusedItemInfo={index:s,level:c,parentKey:u},this.dirty=!i,ar(this.menubar)}else if(n)this.onItemChange(e);else{var d=i?r:this.activeItemPath.find(function(f){return f.parentKey===""});this.hide(t),this.changeFocusedItemIndex(t,d?d.index:-1),this.mobileActive=!1,ar(this.menubar)}},onItemMouseEnter:function(e){this.dirty&&this.onItemChange(e,"hover")},onItemMouseMove:function(e){this.focused&&this.changeFocusedItemIndex(e,e.processedItem.index)},menuButtonClick:function(e){this.toggle(e)},menuButtonKeydown:function(e){(e.code==="Enter"||e.code==="NumpadEnter"||e.code==="Space")&&this.menuButtonClick(e)},onArrowDownKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index],r=t?Ir(t.parent):null;if(r){var n=this.isProccessedItemGroup(t);n&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.onArrowRightKey(e))}else{var i=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,i)}e.preventDefault()},onArrowUpKey:function(e){var t=this,r=this.visibleItems[this.focusedItemInfo.index],n=Ir(r.parent);if(n){var i=this.isProccessedItemGroup(r);if(i){this.onItemChange({originalEvent:e,processedItem:r}),this.focusedItemInfo={index:-1,parentKey:r.key};var o=this.findLastItemIndex();this.changeFocusedItemIndex(e,o)}}else{var s=this.activeItemPath.find(function(c){return c.key===r.parentKey});if(this.focusedItemInfo.index===0)this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowLeftKey(e),this.activeItemPath=this.activeItemPath.filter(function(c){return c.parentKey!==t.focusedItemInfo.parentKey});else{var l=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,l)}}e.preventDefault()},onArrowLeftKey:function(e){var t=this,r=this.visibleItems[this.focusedItemInfo.index],n=r?this.activeItemPath.find(function(o){return o.key===r.parentKey}):null;if(n)this.onItemChange({originalEvent:e,processedItem:n}),this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==t.focusedItemInfo.parentKey}),e.preventDefault();else{var i=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index],r=t?this.activeItemPath.find(function(o){return o.key===t.parentKey}):null;if(r){var n=this.isProccessedItemGroup(t);n&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.onArrowDownKey(e))}else{var i=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(this.focusedItemInfo.index!==-1){var t=mn(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=t&&mn(t,'a[data-pc-section="itemlink"]');r?r.click():t&&t.click();var n=this.visibleItems[this.focusedItemInfo.index],i=this.isProccessedItemGroup(n);!i&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){if(this.focusedItemInfo.level!==0){var t=this.focusedItemInfo;this.hide(e,!1),this.focusedItemInfo={index:Number(t.parentKey.split("_")[0]),level:0,parentKey:""}}e.preventDefault()},onTabKey:function(e){if(this.focusedItemInfo.index!==-1){var t=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(t);!r&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var r=e.container&&!e.container.contains(t.target),n=!(e.target&&(e.target===t.target||e.target.contains(t.target)));r&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(t){Lg()||e.hide(t,!0),e.mobileActive=!1},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindMatchMediaListener:function(){var e=this;if(!this.matchMediaListener){var t=matchMedia("(max-width: ".concat(this.breakpoint,")"));this.query=t,this.queryMatches=t.matches,this.matchMediaListener=function(){e.queryMatches=t.matches,e.mobileActive=!1},this.query.addEventListener("change",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&((t=this.getProccessedItemLabel(e))===null||t===void 0?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)&&this.isItemVisible(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some(function(t){return t.key===e.key})},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(t){return e.isValidItem(t)})},findLastItemIndex:function(){var e=this;return sp(this.visibleItems,function(t){return e.isValidItem(t)})},findNextItemIndex:function(e){var t=this,r=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(function(n){return t.isValidItem(n)}):-1;return r>-1?r+e+1:e},findPrevItemIndex:function(e){var t=this,r=e>0?sp(this.visibleItems.slice(0,e),function(n){return t.isValidItem(n)}):-1;return r>-1?r:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(t){return e.isValidSelectedItem(t)})},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var r=this;this.searchValue=(this.searchValue||"")+t;var n=-1,i=!1;return this.focusedItemInfo.index!==-1?(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function(o){return r.isItemMatched(o)}),n=n===-1?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex(function(o){return r.isItemMatched(o)}):n+this.focusedItemInfo.index):n=this.visibleItems.findIndex(function(o){return r.isItemMatched(o)}),n!==-1&&(i=!0),n===-1&&this.focusedItemInfo.index===-1&&(n=this.findFirstFocusedItemIndex()),n!==-1&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,t=e!==-1?"".concat(this.id,"_").concat(e):this.focusedItemId,r=mn(this.menubar,'li[id="'.concat(t,'"]'));r&&r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",o=[];return e&&e.forEach(function(s,l){var c=(i!==""?i+"_":"")+l,u={item:s,index:l,level:r,key:c,parent:n,parentKey:i};u.items=t.createProcessedItems(s.items,r+1,u,c),o.push(u)}),o},containerRef:function(e){this.container=e},menubarRef:function(e){this.menubar=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find(function(r){return r.key===e.focusedItemInfo.parentKey});return t?t.items:this.processedItems},focusedItemId:function(){return this.focusedItemInfo.index!==-1?"".concat(this.id).concat(rt(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{MenubarSub:tB,BarsIcon:i0}};function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function nB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nB(Object(r),!0).forEach(function(n){ime(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ime(e,t,r){return(t=ame(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ame(e){var t=sme(e,"string");return Pc(t)=="symbol"?t:t+""}function sme(e,t){if(Pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lme=["aria-haspopup","aria-expanded","aria-controls","aria-label"];function ume(e,t,r,n,i,o){var s=a.resolveComponent("BarsIcon"),l=a.resolveComponent("MenubarSub");return a.openBlock(),a.createElementBlock("div",a.mergeProps({ref:o.containerRef,class:e.cx("root")},e.ptmi("root")),[e.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("start")},e.ptm("start")),[a.renderSlot(e.$slots,"start")],16)):a.createCommentVNode("",!0),a.renderSlot(e.$slots,e.$slots.button?"button":"menubutton",{id:i.id,class:a.normalizeClass(e.cx("button")),toggleCallback:function(c){return o.menuButtonClick(c)}},function(){var c;return[e.model&&e.model.length>0?(a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,ref:"menubutton",role:"button",tabindex:"0",class:e.cx("button"),"aria-haspopup":!!(e.model.length&&e.model.length>0),"aria-expanded":i.mobileActive,"aria-controls":i.id,"aria-label":(c=e.$primevue.config.locale.aria)===null||c===void 0?void 0:c.navigation,onClick:t[0]||(t[0]=function(u){return o.menuButtonClick(u)}),onKeydown:t[1]||(t[1]=function(u){return o.menuButtonKeydown(u)})},oB(oB({},e.buttonProps),e.ptm("button"))),[a.renderSlot(e.$slots,e.$slots.buttonicon?"buttonicon":"menubuttonicon",{},function(){return[a.createVNode(s,a.normalizeProps(a.guardReactiveProps(e.ptm("buttonicon"))),null,16)]})],16,lme)):a.createCommentVNode("",!0)]}),a.createVNode(l,{ref:o.menubarRef,id:i.id+"_list",role:"menubar",items:o.processedItems,templates:e.$slots,root:!0,mobileActive:i.mobileActive,tabindex:"0","aria-activedescendant":i.focused?o.focusedItemId:void 0,menuId:i.id,focusedItemId:i.focused?o.focusedItemId:void 0,activeItemPath:i.activeItemPath,level:0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter,onItemMousemove:o.onItemMouseMove},null,8,["id","items","templates","mobileActive","aria-activedescendant","menuId","focusedItemId","activeItemPath","aria-labelledby","aria-label","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter","onItemMousemove"]),e.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("end")},e.ptm("end")),[a.renderSlot(e.$slots,"end")],16)):a.createCommentVNode("",!0)],16)}rB.render=ume;const cme=e=>(a.pushScopeId("data-v-ea69e8a8"),e=e(),a.popScopeId(),e),dme={class:"p-menubar-item-label"},fme={key:0,width:"14",height:"14",viewBox:"0 0 14 14",class:"ml-auto p-icon p-menubar-submenu-icon"},pme=cme(()=>a.createElementVNode("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)),mme=[pme],hme={key:1,class:"ml-auto border rounded shortcut text-xs/3"},gme=a.defineComponent({__name:"MainMenu",props:{isActive:{type:Boolean},hasFiles:{type:Boolean},uiEnabled:{type:Boolean}},emits:["about","close","closeAll","open","openRemote","openSampleLorenz","openSampleInteractiveLorenz","settings"],setup(e,{emit:t}){const r=e,n=t,i=uae()||cae(),o=lE(),s=[{label:"File",items:[{label:"Open...",shortcut:i?"Ctrl+Alt+O":o?"⌘⌥O":void 0,command:()=>{n("open")}},{label:"Open Remote...",shortcut:i?"Ctrl+Shift+Alt+O":o?"⇧⌘⌥O":void 0,command:()=>{n("openRemote")}},{label:"Open Sample",items:[{label:"Lorenz",command:()=>{n("openSampleLorenz")}},{label:"Interactive Lorenz",command:()=>{n("openSampleInteractiveLorenz")}}]},{separator:!0},{label:"Close",shortcut:i?"Ctrl+Alt+W":o?"⌘⌥W":void 0,command:()=>{n("close")},disabled:()=>!r.hasFiles},{label:"Close All",command:()=>{n("closeAll")},disabled:()=>!r.hasFiles}]},{label:"Help",items:[{label:"Home Page",command:()=>{window.open("https://opencor.ws/")}},{separator:!0},{label:"Report Issue",command:()=>{window.open("https://github.com/opencor/webapp/issues/new")}},{separator:!0},{label:"About OpenCOR",command:()=>{n("about")}}]}],l=ke.ref(null);return ke.onMounted(()=>{if(l.value!==null){let c=function(f){var m,h;const p=f.target;u.contains(p)&&!((m=u.querySelector(".p-menubar-root-list"))!=null&&m.contains(p))&&!Array.from(document.querySelectorAll(".p-menubar-submenu")).some(g=>g.contains(p))&&((h=l.value)==null||h.hide())};const u=l.value.$el,d=new MutationObserver(()=>{u.classList.contains("p-menubar-mobile")&&u.classList.remove("p-menubar-mobile")});d.observe(u,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("click",c),ke.onBeforeUnmount(()=>{d.disconnect(),document.removeEventListener("click",c)})}}),Mv()&&Xv(c=>{!r.isActive||!r.uiEnabled||(yp(c)&&!c.shiftKey&&c.code==="KeyO"?(c.preventDefault(),n("open")):yp(c)&&c.shiftKey&&c.code==="KeyO"?(c.preventDefault(),n("openRemote")):r.hasFiles&&yp(c)&&!c.shiftKey&&c.code==="KeyW"?(c.preventDefault(),n("close")):yp(c)&&!c.shiftKey&&c.code==="Comma"&&(c.preventDefault(),n("settings")))}),(c,u)=>{const d=rB;return a.openBlock(),a.createBlock(d,{ref_key:"menuBar",ref:l,model:s},{item:a.withCtx(({item:f,props:p})=>[a.createElementVNode("a",a.normalizeProps(a.guardReactiveProps(p.action)),[a.createElementVNode("div",dme,a.toDisplayString(f.label),1),f.items!==void 0?(a.openBlock(),a.createElementBlock("svg",fme,mme)):a.createCommentVNode("",!0),f.shortcut!==void 0?(a.openBlock(),a.createElementBlock("div",hme,a.toDisplayString(f.shortcut),1)):a.createCommentVNode("",!0)],16)]),_:1},512)}}}),vme=$l(gme,[["__scopeId","data-v-ea69e8a8"]]),bme={},yme=e=>(a.pushScopeId("data-v-b7b0507d"),e=e(),a.popScopeId(),e),wme={class:"absolute w-full h-full border-[0.375rem] border-dashed border-(--p-primary-color) z-99999"},xme=yme(()=>a.createElementVNode("div",{class:"message absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-[1.5rem] leading-[1.25] text-center rounded-[1rem] p-[0.5rem_1rem] bg-(--p-primary-color) text-(--p-primary-contrast-color) whitespace-nowrap"},[a.createTextVNode(" CellML files, SED-ML files, and COMBINE archives"),a.createElementVNode("br"),a.createTextVNode(" can be dropped here. ")],-1)),Cme=[xme];function Sme(e,t){return a.openBlock(),a.createElementBlock("div",wme,Cme)}const kme=$l(bme,[["render",Sme],["__scopeId","data-v-b7b0507d"]]),Eme=a.createElementVNode("i",{class:"block! pi pi-cog pi-spin text-center! text-[3rem]!"},null,-1),Nme=a.createElementVNode("br",null,null,-1),Bme={class:"block text-center text-[1.5rem]"},Ame=a.defineComponent({__name:"BlockingMessageComponent",props:{message:{}},setup(e){return(t,r)=>{const n=Zv;return a.openBlock(),a.createBlock(n,{class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-[1rem] pt-[1.5rem] pb-[0.75rem] z-[99999]",severity:"secondary"},{default:a.withCtx(()=>[Eme,Nme,a.createElementVNode("span",Bme,a.toDisplayString(t.message),1)]),_:1})}}});var Wn=Uu();function zc(e){"@babel/helpers - typeof";return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Rp(e,t,r){return(t=Dme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dme(e){var t=Mme(e,"string");return zc(t)=="symbol"?t:t+""}function Mme(e,t){if(zc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tme=function(e){var t=e.dt;return`
|
|
5023
|
+
`)},Kpe={submenu:function(e){var t=e.instance,r=e.processedItem;return{display:t.isItemActive(r)?"flex":"none"}}},Ype={root:function(e){var t=e.instance;return["p-menubar p-component",{"p-menubar-mobile":t.queryMatches,"p-menubar-mobile-active":t.mobileActive}]},start:"p-menubar-start",button:"p-menubar-button",rootList:"p-menubar-root-list",item:function(e){var t=e.instance,r=e.processedItem;return["p-menubar-item",{"p-menubar-item-active":t.isItemActive(r),"p-focus":t.isItemFocused(r),"p-disabled":t.isItemDisabled(r)}]},itemContent:"p-menubar-item-content",itemLink:"p-menubar-item-link",itemIcon:"p-menubar-item-icon",itemLabel:"p-menubar-item-label",submenuIcon:"p-menubar-submenu-icon",submenu:"p-menubar-submenu",separator:"p-menubar-separator",end:"p-menubar-end"},Jpe=Ge.extend({name:"menubar",theme:Gpe,classes:Ype,inlineStyles:Kpe}),Xpe={name:"BaseMenubar",extends:it,props:{model:{type:Array,default:null},buttonProps:{type:null,default:null},breakpoint:{type:String,default:"960px"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Jpe,provide:function(){return{$pcMenubar:this,$parentInstance:this}}},tB={name:"MenubarSub",hostName:"Menubar",extends:it,emits:["item-mouseenter","item-click","item-mousemove"],props:{items:{type:Array,default:null},root:{type:Boolean,default:!1},popup:{type:Boolean,default:!1},mobileActive:{type:Boolean,default:!1},templates:{type:Object,default:null},level:{type:Number,default:0},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},activeItemPath:{type:Object,default:null}},list:null,methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,t,r){return e&&e.item?hn(e.item[t],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,r){return this.ptm(r,{context:{item:e.item,index:t,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),level:this.level}})},isItemActive:function(e){return this.activeItemPath.some(function(t){return t.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return rt(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},onItemMouseMove:function(e,t){this.$emit("item-mousemove",{originalEvent:e,processedItem:t})},getAriaPosInset:function(e){return e-this.calculateAriaSetSize.slice(0,e).length+1},getMenuItemProps:function(e,t){return{action:a.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,t,"itemLink")),icon:a.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,t,"itemIcon")),label:a.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,t,"itemLabel")),submenuicon:a.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,t,"submenuIcon"))}}},computed:{calculateAriaSetSize:function(){var e=this;return this.items.filter(function(t){return e.isItemVisible(t)&&e.getItemProp(t,"separator")})},getAriaSetSize:function(){var e=this;return this.items.filter(function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")}).length}},components:{AngleRightIcon:n0,AngleDownIcon:e0},directives:{ripple:Qr}},Lpe=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],eme=["onClick","onMouseenter","onMousemove"],tme=["href","target"],rme=["id"],nme=["id"];function ome(e,t,r,n,i,o){var s=a.resolveComponent("MenubarSub",!0),l=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("ul",a.mergeProps({class:r.level===0?e.cx("rootList"):e.cx("submenu")},r.level===0?e.ptm("rootList"):e.ptm("submenu")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.items,function(c,u){return a.openBlock(),a.createElementBlock(a.Fragment,{key:o.getItemKey(c)},[o.isItemVisible(c)&&!o.getItemProp(c,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:o.getItemId(c),style:o.getItemProp(c,"style"),class:[e.cx("item",{processedItem:c}),o.getItemProp(c,"class")],role:"menuitem","aria-label":o.getItemLabel(c),"aria-disabled":o.isItemDisabled(c)||void 0,"aria-expanded":o.isItemGroup(c)?o.isItemActive(c):void 0,"aria-haspopup":o.isItemGroup(c)&&!o.getItemProp(c,"to")?"menu":void 0,"aria-level":r.level+1,"aria-setsize":o.getAriaSetSize,"aria-posinset":o.getAriaPosInset(u),ref_for:!0},o.getPTOptions(c,u,"item"),{"data-p-active":o.isItemActive(c),"data-p-focused":o.isItemFocused(c),"data-p-disabled":o.isItemDisabled(c)}),[a.createElementVNode("div",a.mergeProps({class:e.cx("itemContent"),onClick:function(d){return o.onItemClick(d,c)},onMouseenter:function(d){return o.onItemMouseEnter(d,c)},onMousemove:function(d){return o.onItemMouseMove(d,c)},ref_for:!0},o.getPTOptions(c,u,"itemContent")),[r.templates.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.templates.item),{key:1,item:c.item,root:r.root,hasSubmenu:o.getItemProp(c,"items"),label:o.getItemLabel(c),props:o.getMenuItemProps(c,u)},null,8,["item","root","hasSubmenu","label","props"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:o.getItemProp(c,"url"),class:e.cx("itemLink"),target:o.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},o.getPTOptions(c,u,"itemLink")),[r.templates.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.templates.itemicon),{key:0,item:c.item,class:a.normalizeClass(e.cx("itemIcon"))},null,8,["item","class"])):o.getItemProp(c,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:[e.cx("itemIcon"),o.getItemProp(c,"icon")],ref_for:!0},o.getPTOptions(c,u,"itemIcon")),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({id:o.getItemLabelId(c),class:e.cx("itemLabel"),ref_for:!0},o.getPTOptions(c,u,"itemLabel")),a.toDisplayString(o.getItemLabel(c)),17,rme),o.getItemProp(c,"items")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[r.templates.submenuicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.templates.submenuicon),{key:0,root:r.root,active:o.isItemActive(c),class:a.normalizeClass(e.cx("submenuIcon"))},null,8,["root","active","class"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.root?"AngleDownIcon":"AngleRightIcon"),a.mergeProps({key:1,class:e.cx("submenuIcon"),ref_for:!0},o.getPTOptions(c,u,"submenuIcon")),null,16,["class"]))],64)):a.createCommentVNode("",!0)],16,tme)),[[l]])],16,eme),o.isItemVisible(c)&&o.isItemGroup(c)?(a.openBlock(),a.createBlock(s,{key:0,id:o.getItemId(c)+"_list",menuId:r.menuId,role:"menu",style:a.normalizeStyle(e.sx("submenu",!0,{processedItem:c})),focusedItemId:r.focusedItemId,items:c.items,mobileActive:r.mobileActive,activeItemPath:r.activeItemPath,templates:r.templates,level:r.level+1,"aria-labelledby":o.getItemLabelId(c),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(d){return e.$emit("item-click",d)}),onItemMouseenter:t[1]||(t[1]=function(d){return e.$emit("item-mouseenter",d)}),onItemMousemove:t[2]||(t[2]=function(d){return e.$emit("item-mousemove",d)})},null,8,["id","menuId","style","focusedItemId","items","mobileActive","activeItemPath","templates","level","aria-labelledby","pt","unstyled"])):a.createCommentVNode("",!0)],16,Lpe)):a.createCommentVNode("",!0),o.isItemVisible(c)&&o.getItemProp(c,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,id:o.getItemId(c),class:[e.cx("separator"),o.getItemProp(c,"class")],style:o.getItemProp(c,"style"),role:"separator",ref_for:!0},e.ptm("separator")),null,16,nme)):a.createCommentVNode("",!0)],64)}),128))],16)}tB.render=ome;var rB={name:"Menubar",extends:Xpe,inheritAttrs:!1,emits:["focus","blur"],matchMediaListener:null,data:function(){return{id:this.$attrs.id,mobileActive:!1,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],dirty:!1,query:null,queryMatches:!1}},watch:{"$attrs.id":function(e){this.id=e||jr()},activeItemPath:function(e){rt(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())}},outsideClickListener:null,container:null,menubar:null,mounted:function(){this.id=this.id||jr(),this.bindMatchMediaListener()},beforeUnmount:function(){this.mobileActive=!1,this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMatchMediaListener(),this.container&&Or.clear(this.container),this.container=null},methods:{getItemProp:function(e,t){return e?hn(e[t]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemGroup:function(e){return rt(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&rt(e.items)},toggle:function(e){var t=this;this.mobileActive?(this.mobileActive=!1,Or.clear(this.menubar),this.hide()):(this.mobileActive=!0,Or.set("menu",this.menubar,this.$primevue.config.zIndex.menu),setTimeout(function(){t.show()},1)),this.bindOutsideClickListener(),e.preventDefault()},show:function(){ar(this.menubar)},hide:function(e,t){var r=this;this.mobileActive&&(this.mobileActive=!1,setTimeout(function(){ar(r.$refs.menubutton)},0)),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},t&&ar(this.menubar),this.dirty=!1},onFocus:function(e){this.focused=!0,this.focusedItemInfo=this.focusedItemInfo.index!==-1?this.focusedItemInfo:{index:this.findFirstFocusedItemIndex(),level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.dirty=!1,this.$emit("blur",e)},onKeyDown:function(e){var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!t&&t5(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,t){var r=e.processedItem,n=e.isFocus;if(!Ir(r)){var i=r.index,o=r.key,s=r.level,l=r.parentKey,c=r.items,u=rt(c),d=this.activeItemPath.filter(function(f){return f.parentKey!==l&&f.parentKey!==o});u&&d.push(r),this.focusedItemInfo={index:i,level:s,parentKey:l},u&&(this.dirty=!0),n&&ar(this.menubar),!(t==="hover"&&this.queryMatches)&&(this.activeItemPath=d)}},onItemClick:function(e){var t=e.originalEvent,r=e.processedItem,n=this.isProccessedItemGroup(r),i=Ir(r.parent),o=this.isSelected(r);if(o){var s=r.index,l=r.key,c=r.level,u=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(f){return l!==f.key&&l.startsWith(f.key)}),this.focusedItemInfo={index:s,level:c,parentKey:u},this.dirty=!i,ar(this.menubar)}else if(n)this.onItemChange(e);else{var d=i?r:this.activeItemPath.find(function(f){return f.parentKey===""});this.hide(t),this.changeFocusedItemIndex(t,d?d.index:-1),this.mobileActive=!1,ar(this.menubar)}},onItemMouseEnter:function(e){this.dirty&&this.onItemChange(e,"hover")},onItemMouseMove:function(e){this.focused&&this.changeFocusedItemIndex(e,e.processedItem.index)},menuButtonClick:function(e){this.toggle(e)},menuButtonKeydown:function(e){(e.code==="Enter"||e.code==="NumpadEnter"||e.code==="Space")&&this.menuButtonClick(e)},onArrowDownKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index],r=t?Ir(t.parent):null;if(r){var n=this.isProccessedItemGroup(t);n&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.onArrowRightKey(e))}else{var i=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,i)}e.preventDefault()},onArrowUpKey:function(e){var t=this,r=this.visibleItems[this.focusedItemInfo.index],n=Ir(r.parent);if(n){var i=this.isProccessedItemGroup(r);if(i){this.onItemChange({originalEvent:e,processedItem:r}),this.focusedItemInfo={index:-1,parentKey:r.key};var o=this.findLastItemIndex();this.changeFocusedItemIndex(e,o)}}else{var s=this.activeItemPath.find(function(c){return c.key===r.parentKey});if(this.focusedItemInfo.index===0)this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowLeftKey(e),this.activeItemPath=this.activeItemPath.filter(function(c){return c.parentKey!==t.focusedItemInfo.parentKey});else{var l=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,l)}}e.preventDefault()},onArrowLeftKey:function(e){var t=this,r=this.visibleItems[this.focusedItemInfo.index],n=r?this.activeItemPath.find(function(o){return o.key===r.parentKey}):null;if(n)this.onItemChange({originalEvent:e,processedItem:n}),this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==t.focusedItemInfo.parentKey}),e.preventDefault();else{var i=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index],r=t?this.activeItemPath.find(function(o){return o.key===t.parentKey}):null;if(r){var n=this.isProccessedItemGroup(t);n&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.onArrowDownKey(e))}else{var i=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(this.focusedItemInfo.index!==-1){var t=mn(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=t&&mn(t,'a[data-pc-section="itemlink"]');r?r.click():t&&t.click();var n=this.visibleItems[this.focusedItemInfo.index],i=this.isProccessedItemGroup(n);!i&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){if(this.focusedItemInfo.level!==0){var t=this.focusedItemInfo;this.hide(e,!1),this.focusedItemInfo={index:Number(t.parentKey.split("_")[0]),level:0,parentKey:""}}e.preventDefault()},onTabKey:function(e){if(this.focusedItemInfo.index!==-1){var t=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(t);!r&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var r=e.container&&!e.container.contains(t.target),n=!(e.target&&(e.target===t.target||e.target.contains(t.target)));r&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(t){Lg()||e.hide(t,!0),e.mobileActive=!1},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindMatchMediaListener:function(){var e=this;if(!this.matchMediaListener){var t=matchMedia("(max-width: ".concat(this.breakpoint,")"));this.query=t,this.queryMatches=t.matches,this.matchMediaListener=function(){e.queryMatches=t.matches,e.mobileActive=!1},this.query.addEventListener("change",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&((t=this.getProccessedItemLabel(e))===null||t===void 0?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)&&this.isItemVisible(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some(function(t){return t.key===e.key})},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(t){return e.isValidItem(t)})},findLastItemIndex:function(){var e=this;return sp(this.visibleItems,function(t){return e.isValidItem(t)})},findNextItemIndex:function(e){var t=this,r=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(function(n){return t.isValidItem(n)}):-1;return r>-1?r+e+1:e},findPrevItemIndex:function(e){var t=this,r=e>0?sp(this.visibleItems.slice(0,e),function(n){return t.isValidItem(n)}):-1;return r>-1?r:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(t){return e.isValidSelectedItem(t)})},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var r=this;this.searchValue=(this.searchValue||"")+t;var n=-1,i=!1;return this.focusedItemInfo.index!==-1?(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function(o){return r.isItemMatched(o)}),n=n===-1?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex(function(o){return r.isItemMatched(o)}):n+this.focusedItemInfo.index):n=this.visibleItems.findIndex(function(o){return r.isItemMatched(o)}),n!==-1&&(i=!0),n===-1&&this.focusedItemInfo.index===-1&&(n=this.findFirstFocusedItemIndex()),n!==-1&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,t=e!==-1?"".concat(this.id,"_").concat(e):this.focusedItemId,r=mn(this.menubar,'li[id="'.concat(t,'"]'));r&&r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",o=[];return e&&e.forEach(function(s,l){var c=(i!==""?i+"_":"")+l,u={item:s,index:l,level:r,key:c,parent:n,parentKey:i};u.items=t.createProcessedItems(s.items,r+1,u,c),o.push(u)}),o},containerRef:function(e){this.container=e},menubarRef:function(e){this.menubar=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find(function(r){return r.key===e.focusedItemInfo.parentKey});return t?t.items:this.processedItems},focusedItemId:function(){return this.focusedItemInfo.index!==-1?"".concat(this.id).concat(rt(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{MenubarSub:tB,BarsIcon:i0}};function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function nB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nB(Object(r),!0).forEach(function(n){ime(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ime(e,t,r){return(t=ame(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ame(e){var t=sme(e,"string");return Pc(t)=="symbol"?t:t+""}function sme(e,t){if(Pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lme=["aria-haspopup","aria-expanded","aria-controls","aria-label"];function ume(e,t,r,n,i,o){var s=a.resolveComponent("BarsIcon"),l=a.resolveComponent("MenubarSub");return a.openBlock(),a.createElementBlock("div",a.mergeProps({ref:o.containerRef,class:e.cx("root")},e.ptmi("root")),[e.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("start")},e.ptm("start")),[a.renderSlot(e.$slots,"start")],16)):a.createCommentVNode("",!0),a.renderSlot(e.$slots,e.$slots.button?"button":"menubutton",{id:i.id,class:a.normalizeClass(e.cx("button")),toggleCallback:function(c){return o.menuButtonClick(c)}},function(){var c;return[e.model&&e.model.length>0?(a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,ref:"menubutton",role:"button",tabindex:"0",class:e.cx("button"),"aria-haspopup":!!(e.model.length&&e.model.length>0),"aria-expanded":i.mobileActive,"aria-controls":i.id,"aria-label":(c=e.$primevue.config.locale.aria)===null||c===void 0?void 0:c.navigation,onClick:t[0]||(t[0]=function(u){return o.menuButtonClick(u)}),onKeydown:t[1]||(t[1]=function(u){return o.menuButtonKeydown(u)})},oB(oB({},e.buttonProps),e.ptm("button"))),[a.renderSlot(e.$slots,e.$slots.buttonicon?"buttonicon":"menubuttonicon",{},function(){return[a.createVNode(s,a.normalizeProps(a.guardReactiveProps(e.ptm("buttonicon"))),null,16)]})],16,lme)):a.createCommentVNode("",!0)]}),a.createVNode(l,{ref:o.menubarRef,id:i.id+"_list",role:"menubar",items:o.processedItems,templates:e.$slots,root:!0,mobileActive:i.mobileActive,tabindex:"0","aria-activedescendant":i.focused?o.focusedItemId:void 0,menuId:i.id,focusedItemId:i.focused?o.focusedItemId:void 0,activeItemPath:i.activeItemPath,level:0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter,onItemMousemove:o.onItemMouseMove},null,8,["id","items","templates","mobileActive","aria-activedescendant","menuId","focusedItemId","activeItemPath","aria-labelledby","aria-label","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter","onItemMousemove"]),e.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("end")},e.ptm("end")),[a.renderSlot(e.$slots,"end")],16)):a.createCommentVNode("",!0)],16)}rB.render=ume;const cme=e=>(a.pushScopeId("data-v-afe00129"),e=e(),a.popScopeId(),e),dme={class:"p-menubar-item-label"},fme={key:0,width:"14",height:"14",viewBox:"0 0 14 14",class:"ml-auto p-icon p-menubar-submenu-icon"},pme=cme(()=>a.createElementVNode("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)),mme=[pme],hme={key:1,class:"ml-auto border rounded shortcut text-xs/3"},gme=a.defineComponent({__name:"MainMenu",props:{isActive:{type:Boolean},hasFiles:{type:Boolean},uiEnabled:{type:Boolean}},emits:["about","close","closeAll","open","openRemote","openSampleLorenz","openSampleInteractiveLorenz","settings"],setup(e,{emit:t}){const r=e,n=t,i=uae()||cae(),o=lE(),s=[{label:"File",items:[{label:"Open...",shortcut:i?"Ctrl+Alt+O":o?"⌘⌥O":void 0,command:()=>{n("open")}},{label:"Open Remote...",shortcut:i?"Ctrl+Shift+Alt+O":o?"⇧⌘⌥O":void 0,command:()=>{n("openRemote")}},{label:"Open Sample",items:[{label:"Lorenz",command:()=>{n("openSampleLorenz")}},{label:"Interactive Lorenz",command:()=>{n("openSampleInteractiveLorenz")}}]},{separator:!0},{label:"Close",shortcut:i?"Ctrl+Alt+W":o?"⌘⌥W":void 0,command:()=>{n("close")},disabled:()=>!r.hasFiles},{label:"Close All",command:()=>{n("closeAll")},disabled:()=>!r.hasFiles}]},{label:"Help",items:[{label:"Home Page",command:()=>{window.open("https://opencor.ws/")}},{separator:!0},{label:"Report Issue",command:()=>{window.open("https://github.com/opencor/webapp/issues/new")}},{separator:!0},{label:"About OpenCOR",command:()=>{n("about")}}]}],l=ke.ref(null);return ke.onMounted(()=>{if(l.value!==null){let c=function(f){var m,h;const p=f.target;u.contains(p)&&!((m=u.querySelector(".p-menubar-root-list"))!=null&&m.contains(p))&&!Array.from(document.querySelectorAll(".p-menubar-submenu")).some(g=>g.contains(p))&&((h=l.value)==null||h.hide())};const u=l.value.$el,d=new MutationObserver(()=>{u.classList.contains("p-menubar-mobile")&&u.classList.remove("p-menubar-mobile")});d.observe(u,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("click",c),ke.onBeforeUnmount(()=>{d.disconnect(),document.removeEventListener("click",c)})}}),Mv()&&Xv(c=>{!r.isActive||!r.uiEnabled||(yp(c)&&!c.shiftKey&&c.code==="KeyO"?(c.preventDefault(),n("open")):yp(c)&&c.shiftKey&&c.code==="KeyO"?(c.preventDefault(),n("openRemote")):r.hasFiles&&yp(c)&&!c.shiftKey&&c.code==="KeyW"?(c.preventDefault(),n("close")):yp(c)&&!c.shiftKey&&c.code==="Comma"&&(c.preventDefault(),n("settings")))}),(c,u)=>{const d=rB;return a.openBlock(),a.createBlock(d,{ref_key:"menuBar",ref:l,model:s},{item:a.withCtx(({item:f,props:p})=>[a.createElementVNode("a",a.normalizeProps(a.guardReactiveProps(p.action)),[a.createElementVNode("div",dme,a.toDisplayString(f.label),1),f.items!==void 0?(a.openBlock(),a.createElementBlock("svg",fme,mme)):a.createCommentVNode("",!0),f.shortcut!==void 0?(a.openBlock(),a.createElementBlock("div",hme,a.toDisplayString(f.shortcut),1)):a.createCommentVNode("",!0)],16)]),_:1},512)}}}),vme=$l(gme,[["__scopeId","data-v-afe00129"]]),bme={},yme=e=>(a.pushScopeId("data-v-b7b0507d"),e=e(),a.popScopeId(),e),wme={class:"absolute w-full h-full border-[0.375rem] border-dashed border-(--p-primary-color) z-99999"},xme=yme(()=>a.createElementVNode("div",{class:"message absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-[1.5rem] leading-[1.25] text-center rounded-[1rem] p-[0.5rem_1rem] bg-(--p-primary-color) text-(--p-primary-contrast-color) whitespace-nowrap"},[a.createTextVNode(" CellML files, SED-ML files, and COMBINE archives"),a.createElementVNode("br"),a.createTextVNode(" can be dropped here. ")],-1)),Cme=[xme];function Sme(e,t){return a.openBlock(),a.createElementBlock("div",wme,Cme)}const kme=$l(bme,[["render",Sme],["__scopeId","data-v-b7b0507d"]]),Eme=a.createElementVNode("i",{class:"block! pi pi-cog pi-spin text-center! text-[3rem]!"},null,-1),Nme=a.createElementVNode("br",null,null,-1),Bme={class:"block text-center text-[1.5rem]"},Ame=a.defineComponent({__name:"BlockingMessageComponent",props:{message:{}},setup(e){return(t,r)=>{const n=Zv;return a.openBlock(),a.createBlock(n,{class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-[1rem] pt-[1.5rem] pb-[0.75rem] z-[99999]",severity:"secondary"},{default:a.withCtx(()=>[Eme,Nme,a.createElementVNode("span",Bme,a.toDisplayString(t.message),1)]),_:1})}}});var Wn=Uu();function zc(e){"@babel/helpers - typeof";return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Rp(e,t,r){return(t=Dme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dme(e){var t=Mme(e,"string");return zc(t)=="symbol"?t:t+""}function Mme(e,t){if(zc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tme=function(e){var t=e.dt;return`
|
|
5024
5024
|
.p-toast {
|
|
5025
5025
|
width: `.concat(t("toast.width"),`;
|
|
5026
5026
|
white-space: pre-line;
|
|
@@ -5276,59 +5276,59 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5276
5276
|
`).concat(n,`
|
|
5277
5277
|
}
|
|
5278
5278
|
}
|
|
5279
|
-
`)}this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},components:{ToastMessage:iB,Portal:tc}};function qc(e){"@babel/helpers - typeof";return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}function uB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yme(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uB(Object(r),!0).forEach(function(n){Jme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jme(e,t,r){return(t=Xme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xme(e){var t=Lme(e,"string");return qc(t)=="symbol"?t:t+""}function Lme(e,t){if(qc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ehe(e,t,r,n,i,o){var s=a.resolveComponent("ToastMessage"),l=a.resolveComponent("Portal");return a.openBlock(),a.createBlock(l,null,{default:a.withCtx(function(){return[a.createElementVNode("div",a.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root",!0,{position:e.position})},e.ptmi("root")),[a.createVNode(a.TransitionGroup,a.mergeProps({name:"p-toast-message",tag:"div",onEnter:o.onEnter,onLeave:o.onLeave},Yme({},e.ptm("transition"))),{default:a.withCtx(function(){return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.messages,function(c){return a.openBlock(),a.createBlock(s,{key:c.id,message:c,templates:e.$slots,closeIcon:e.closeIcon,infoIcon:e.infoIcon,warnIcon:e.warnIcon,errorIcon:e.errorIcon,successIcon:e.successIcon,closeButtonProps:e.closeButtonProps,unstyled:e.unstyled,onClose:t[0]||(t[0]=function(u){return o.remove(u)}),pt:e.pt},null,8,["message","templates","closeIcon","infoIcon","warnIcon","errorIcon","successIcon","closeButtonProps","unstyled","pt"])}),128))]}),_:1},16,["onEnter","onLeave"])],16)]}),_:1})}lB.render=ehe;var the={transitionDuration:"{transition.duration}"},rhe={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},nhe={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},ohe={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},ihe={root:the,panel:rhe,header:nhe,content:ohe},ahe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},she={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},lhe={padding:"{list.padding}",gap:"{list.gap}"},uhe={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},che={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dhe={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},fhe={borderRadius:"{border.radius.sm}"},phe={padding:"{list.option.padding}"},mhe={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},hhe={root:ahe,overlay:she,list:lhe,option:uhe,optionGroup:che,dropdown:dhe,chip:fhe,emptyMessage:phe,colorScheme:mhe},ghe={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},vhe={size:"1rem"},bhe={borderColor:"{content.background}",offset:"-0.75rem"},yhe={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},whe={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}},xhe={root:ghe,icon:vhe,group:bhe,lg:yhe,xl:whe},Che={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},She={size:"0.5rem"},khe={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},Ehe={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},Nhe={fontSize:"1rem",minWidth:"2rem",height:"2rem"},Bhe={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},Ahe={root:Che,dot:She,sm:khe,lg:Ehe,xl:Nhe,colorScheme:Bhe},Dhe={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},Mhe={transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},The={primitive:Dhe,semantic:Mhe},Fhe={borderRadius:"{content.border.radius}"},Ohe={root:Fhe},Ihe={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},_he={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$he={color:"{navigation.item.icon.color}"},Rhe={root:Ihe,item:_he,separator:$he},Phe={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},zhe={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},Uhe={root:Phe,colorScheme:zhe},qhe={background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Vhe={padding:"1.25rem",gap:"0.5rem"},jhe={gap:"0.5rem"},Qhe={fontSize:"1.25rem",fontWeight:"500"},Hhe={color:"{text.muted.color}"},Whe={root:qhe,body:Vhe,caption:jhe,title:Qhe,subtitle:Hhe},Zhe={transitionDuration:"{transition.duration}"},Ghe={gap:"0.25rem"},Khe={padding:"1rem",gap:"0.5rem"},Yhe={width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Jhe={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},Xhe={root:Zhe,content:Ghe,indicatorList:Khe,indicator:Yhe,colorScheme:Jhe},Lhe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},ege={width:"2.5rem",color:"{form.field.icon.color}"},tge={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},rge={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},nge={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},oge={color:"{form.field.icon.color}"},ige={root:Lhe,dropdown:ege,overlay:tge,list:rge,option:nge,clearIcon:oge},age={borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},sge={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},lge={root:age,icon:sge},uge={borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},cge={width:"2rem",height:"2rem"},dge={size:"1rem"},fge={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},pge={light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}},mge={root:uge,image:cge,icon:dge,removeIcon:fge,colorScheme:pge},hge={transitionDuration:"{transition.duration}"},gge={width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},vge={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},bge={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}},yge={root:hge,preview:gge,panel:vge,colorScheme:bge},wge={size:"2rem",color:"{overlay.modal.color}"},xge={gap:"1rem"},Cge={icon:wge,content:xge},Sge={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},kge={padding:"{overlay.popover.padding}",gap:"1rem"},Ege={size:"1.5rem",color:"{overlay.popover.color}"},Nge={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"},Bge={root:Sge,content:kge,icon:Ege,footer:Nge},Age={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Dge={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Mge={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Tge={mobileIndent:"1rem"},Fge={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Oge={borderColor:"{content.border.color}"},Ige={root:Age,list:Dge,item:Mge,submenu:Tge,submenuIcon:Fge,separator:Oge},_ge={transitionDuration:"{transition.duration}"},$ge={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Rge={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Pge={fontWeight:"600"},zge={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Uge={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},qge={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Vge={fontWeight:"600"},jge={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Qge={color:"{primary.color}"},Hge={width:"0.5rem"},Wge={width:"1px",color:"{primary.color}"},Zge={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},Gge={size:"2rem"},Kge={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Yge={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},Jge={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Xge={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Lge={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},eve={root:_ge,header:$ge,headerCell:Rge,columnTitle:Pge,row:zge,bodyCell:Uge,footerCell:qge,columnFooter:Vge,footer:jge,dropPoint:Qge,columnResizer:Hge,resizeIndicator:Wge,sortIcon:Zge,loadingIcon:Gge,rowToggleButton:Kge,filter:Yge,paginatorTop:Jge,paginatorBottom:Xge,colorScheme:Lge},tve={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},rve={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},nve={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},ove={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},ive={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},ave={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},sve={root:tve,header:rve,content:nve,footer:ove,paginatorTop:ive,paginatorBottom:ave},lve={transitionDuration:"{transition.duration}"},uve={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},cve={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},dve={gap:"0.5rem",fontWeight:"500"},fve={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},pve={color:"{form.field.icon.color}"},mve={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},hve={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},gve={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},vve={margin:"0.5rem 0 0 0"},bve={padding:"0.25rem",fontWeight:"500",color:"{content.color}"},yve={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},wve={margin:"0.5rem 0 0 0"},xve={padding:"0.375rem",borderRadius:"{content.border.radius}"},Cve={margin:"0.5rem 0 0 0"},Sve={padding:"0.375rem",borderRadius:"{content.border.radius}"},kve={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},Eve={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},Nve={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},Bve={root:lve,panel:uve,header:cve,title:dve,dropdown:fve,inputIcon:pve,selectMonth:mve,selectYear:hve,group:gve,dayView:vve,weekDay:bve,date:yve,monthView:wve,month:xve,yearView:Cve,year:Sve,buttonbar:kve,timePicker:Eve,colorScheme:Nve},Ave={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},Dve={padding:"{overlay.modal.padding}",gap:"0.5rem"},Mve={fontSize:"1.25rem",fontWeight:"600"},Tve={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},Fve={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"},Ove={root:Ave,header:Dve,title:Mve,content:Tve,footer:Fve},Ive={borderColor:"{content.border.color}"},_ve={background:"{content.background}",color:"{text.color}"},$ve={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},Rve={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}},Pve={root:Ive,content:_ve,horizontal:$ve,vertical:Rve},zve={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},Uve={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qve={root:zve,item:Uve},Vve={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},jve={padding:"{overlay.modal.padding}"},Qve={fontSize:"1.5rem",fontWeight:"600"},Hve={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},Wve={padding:"{overlay.modal.padding}"},Zve={root:Vve,header:jve,title:Qve,content:Hve,footer:Wve},Gve={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},Kve={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},Yve={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},Jve={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Xve={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Lve={toolbar:Gve,toolbarItem:Kve,overlay:Yve,overlayOption:Jve,content:Xve},e0e={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},t0e={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},r0e={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},n0e={padding:"0"},o0e={root:e0e,legend:t0e,toggleIcon:r0e,content:n0e},i0e={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},a0e={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},s0e={highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},l0e={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},u0e={gap:"0.5rem"},c0e={height:"0.25rem"},d0e={gap:"0.5rem"},f0e={root:i0e,header:a0e,content:s0e,file:l0e,fileList:u0e,progressbar:c0e,basic:d0e},p0e={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},m0e={active:{top:"-1.25rem"}},h0e={input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},g0e={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}},v0e={root:p0e,over:m0e,in:h0e,on:g0e},b0e={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},y0e={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},w0e={size:"1.5rem"},x0e={background:"{content.background}",padding:"1rem 0.25rem"},C0e={size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},S0e={size:"1rem"},k0e={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},E0e={gap:"0.5rem",padding:"1rem"},N0e={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},B0e={background:"rgba(0, 0, 0, 0.5)"},A0e={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},D0e={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},M0e={size:"1.5rem"},T0e={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}},F0e={root:b0e,navButton:y0e,navIcon:w0e,thumbnailsContent:x0e,thumbnailNavButton:C0e,thumbnailNavButtonIcon:S0e,caption:k0e,indicatorList:E0e,indicatorButton:N0e,insetIndicatorList:B0e,insetIndicatorButton:A0e,closeButton:D0e,closeButtonIcon:M0e,colorScheme:T0e},O0e={color:"{form.field.icon.color}"},I0e={icon:O0e},_0e={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},$0e={paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},R0e={root:_0e,input:$0e},P0e={transitionDuration:"{transition.duration}"},z0e={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},U0e={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},q0e={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},V0e={root:P0e,preview:z0e,toolbar:U0e,action:q0e},j0e={size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Q0e={handle:j0e},H0e={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},W0e={fontWeight:"500"},Z0e={size:"1rem"},G0e={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}},K0e={root:H0e,text:W0e,icon:Z0e,colorScheme:G0e},Y0e={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},J0e={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"},X0e={root:Y0e,display:J0e},L0e={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},ebe={borderRadius:"{border.radius.sm}"},tbe={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}},rbe={root:L0e,chip:ebe,colorScheme:tbe},nbe={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"},obe={addon:nbe},ibe={transitionDuration:"{transition.duration}"},abe={width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},sbe={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},lbe={root:ibe,button:abe,colorScheme:sbe},ube={gap:"0.5rem"},cbe={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}},dbe={root:ube,input:cbe},fbe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},pbe={root:fbe},mbe={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},hbe={background:"{primary.color}"},gbe={background:"{content.border.color}"},vbe={color:"{text.muted.color}"},bbe={root:mbe,value:hbe,range:gbe,text:vbe},ybe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},wbe={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},xbe={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Cbe={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Sbe={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},kbe={padding:"{list.option.padding}"},Ebe={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},Nbe={root:ybe,list:wbe,option:xbe,optionGroup:Cbe,checkmark:Sbe,emptyMessage:kbe,colorScheme:Ebe},Bbe={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},Abe={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Dbe={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Mbe={padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},Tbe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Fbe={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},Obe={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Ibe={borderColor:"{content.border.color}"},_be={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$be={root:Bbe,baseItem:Abe,item:Dbe,overlay:Mbe,submenu:Tbe,submenuLabel:Fbe,submenuIcon:Obe,separator:Ibe,mobileButton:_be},Rbe={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Pbe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},zbe={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Ube={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},qbe={borderColor:"{content.border.color}"},Vbe={root:Rbe,list:Pbe,item:zbe,submenuLabel:Ube,separator:qbe},jbe={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},Qbe={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Hbe={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Wbe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},Zbe={borderColor:"{content.border.color}"},Gbe={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Kbe={root:jbe,baseItem:Qbe,item:Hbe,submenu:Wbe,separator:Zbe,mobileButton:Gbe},Ybe={borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},Jbe={padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},Xbe={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},Lbe={size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},e1e={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},t1e={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},r1e={root:{borderWidth:"1px"}},n1e={content:{padding:"0"}},o1e={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}},i1e={root:Ybe,content:Jbe,text:Xbe,icon:Lbe,closeButton:e1e,closeIcon:t1e,outlined:r1e,simple:n1e,colorScheme:o1e},a1e={borderRadius:"{content.border.radius}",gap:"1rem"},s1e={background:"{content.border.color}",size:"0.5rem"},l1e={gap:"0.5rem"},u1e={size:"0.5rem"},c1e={size:"1rem"},d1e={verticalGap:"0.5rem",horizontalGap:"1rem"},f1e={root:a1e,meters:s1e,label:l1e,labelMarker:u1e,labelIcon:c1e,labelList:d1e},p1e={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},m1e={width:"2.5rem",color:"{form.field.icon.color}"},h1e={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},g1e={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},v1e={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},b1e={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},y1e={color:"{form.field.icon.color}"},w1e={borderRadius:"{border.radius.sm}"},x1e={padding:"{list.option.padding}"},C1e={root:p1e,dropdown:m1e,overlay:h1e,list:g1e,option:v1e,optionGroup:b1e,chip:w1e,clearIcon:y1e,emptyMessage:x1e},S1e={gap:"1.125rem"},k1e={gap:"0.5rem"},E1e={root:S1e,controls:k1e},N1e={gutter:"0.75rem",transitionDuration:"{transition.duration}"},B1e={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},A1e={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},D1e={color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"},M1e={root:N1e,node:B1e,nodeToggleButton:A1e,connector:D1e},T1e={outline:{width:"2px",color:"{content.background}"}},F1e={root:T1e},O1e={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},I1e={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},_1e={color:"{text.muted.color}"},$1e={maxWidth:"2.5rem"},R1e={root:O1e,navButton:I1e,currentPageReport:_1e,jumpToPageInput:$1e},P1e={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},z1e={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},U1e={padding:"0.375rem 1.125rem"},q1e={fontWeight:"600"},V1e={padding:"0 1.125rem 1.125rem 1.125rem"},j1e={padding:"0 1.125rem 1.125rem 1.125rem"},Q1e={root:P1e,header:z1e,toggleableHeader:U1e,title:q1e,content:V1e,footer:j1e},H1e={gap:"0.5rem",transitionDuration:"{transition.duration}"},W1e={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},Z1e={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},G1e={indent:"1rem"},K1e={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},Y1e={root:H1e,panel:W1e,item:Z1e,submenu:G1e,submenuIcon:K1e},J1e={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},X1e={color:"{form.field.icon.color}"},L1e={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},eye={gap:"0.5rem"},tye={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}},rye={meter:J1e,icon:X1e,overlay:L1e,content:eye,colorScheme:tye},nye={gap:"1.125rem"},oye={gap:"0.5rem"},iye={root:nye,controls:oye},aye={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},sye={padding:"{overlay.popover.padding}"},lye={root:aye,content:sye},uye={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},cye={background:"{primary.color}"},dye={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"},fye={root:uye,value:cye,label:dye},pye={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}},mye={colorScheme:pye},hye={width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},gye={size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}},vye={root:hye,icon:gye},bye={gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},yye={size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},wye={root:bye,icon:yye},xye={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}},Cye={colorScheme:xye},Sye={transitionDuration:"{transition.duration}"},kye={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Eye={light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}},Nye={root:Sye,bar:kye,colorScheme:Eye},Bye={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Aye={width:"2.5rem",color:"{form.field.icon.color}"},Dye={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Mye={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Tye={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Fye={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Oye={color:"{form.field.icon.color}"},Iye={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},_ye={padding:"{list.option.padding}"},$ye={root:Bye,dropdown:Aye,overlay:Dye,list:Mye,option:Tye,optionGroup:Fye,clearIcon:Oye,checkmark:Iye,emptyMessage:_ye},Rye={borderRadius:"{form.field.border.radius}"},Pye={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}},zye={root:Rye,colorScheme:Pye},Uye={borderRadius:"{content.border.radius}"},qye={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}},Vye={root:Uye,colorScheme:qye},jye={transitionDuration:"{transition.duration}"},Qye={background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},Hye={background:"{primary.color}"},Wye={width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Zye={light:{handle:{content:{background:"{surface.0}"}}},dark:{handle:{content:{background:"{surface.950}"}}}},Gye={root:jye,track:Qye,range:Hye,handle:Wye,colorScheme:Zye},Kye={gap:"0.5rem",transitionDuration:"{transition.duration}"},Yye={root:Kye},Jye={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"},Xye={root:Jye},Lye={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},ewe={background:"{content.border.color}"},twe={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},rwe={root:Lye,gutter:ewe,handle:twe},nwe={transitionDuration:"{transition.duration}"},owe={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},iwe={padding:"0.5rem",gap:"1rem"},awe={padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},swe={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},lwe={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},uwe={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},cwe={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},dwe={root:nwe,separator:owe,step:iwe,stepHeader:awe,stepTitle:swe,stepNumber:lwe,steppanels:uwe,steppanel:cwe},fwe={transitionDuration:"{transition.duration}"},pwe={background:"{content.border.color}"},mwe={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},hwe={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},gwe={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},vwe={root:fwe,separator:pwe,itemLink:mwe,itemLabel:hwe,itemNumber:gwe},bwe={transitionDuration:"{transition.duration}"},ywe={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},wwe={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},xwe={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},Cwe={height:"1px",bottom:"-1px",background:"{primary.color}"},Swe={root:bwe,tablist:ywe,item:wwe,itemIcon:xwe,activeBar:Cwe},kwe={transitionDuration:"{transition.duration}"},Ewe={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},Nwe={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Bwe={background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},Awe={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Dwe={height:"1px",bottom:"-1px",background:"{primary.color}"},Mwe={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},Twe={root:kwe,tablist:Ewe,tab:Nwe,tabpanel:Bwe,navButton:Awe,activeBar:Dwe,colorScheme:Mwe},Fwe={transitionDuration:"{transition.duration}"},Owe={background:"{content.background}",borderColor:"{content.border.color}"},Iwe={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},_we={background:"{content.background}",color:"{content.color}"},$we={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},Rwe={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},Pwe={root:Fwe,tabList:Owe,tab:Iwe,tabPanel:_we,navButton:$we,colorScheme:Rwe},zwe={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},Uwe={size:"0.75rem"},qwe={light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},Vwe={root:zwe,icon:Uwe,colorScheme:qwe},jwe={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},Qwe={gap:"0.25rem"},Hwe={margin:"2px 0"},Wwe={root:jwe,prompt:Qwe,commandResponse:Hwe},Zwe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Gwe={root:Zwe},Kwe={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Ywe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Jwe={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Xwe={mobileIndent:"1rem"},Lwe={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},exe={borderColor:"{content.border.color}"},txe={root:Kwe,list:Ywe,item:Jwe,submenu:Xwe,submenuIcon:Lwe,separator:exe},rxe={minHeight:"5rem"},nxe={eventContent:{padding:"1rem 0"}},oxe={eventContent:{padding:"0 1rem"}},ixe={size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},axe={color:"{content.border.color}",size:"2px"},sxe={event:rxe,horizontal:nxe,vertical:oxe,eventMarker:ixe,eventConnector:axe},lxe={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},uxe={size:"1.125rem"},cxe={padding:"{overlay.popover.padding}",gap:"0.5rem"},dxe={gap:"0.5rem"},fxe={fontWeight:"500",fontSize:"1rem"},pxe={fontWeight:"500",fontSize:"0.875rem"},mxe={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},hxe={size:"1rem"},gxe={light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}},vxe={root:lxe,icon:uxe,content:cxe,text:dxe,summary:fxe,detail:pxe,closeButton:mxe,closeIcon:hxe,colorScheme:gxe},bxe={padding:"0.25rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.25rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.25rem"}},yxe={disabledColor:"{form.field.disabled.color}"},wxe={padding:"0.25rem 0.75rem",borderRadius:"{content.border.radius}",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",sm:{padding:"0.25rem 0.75rem"},lg:{padding:"0.25rem 0.75rem"}},xxe={light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}},Cxe={root:bxe,icon:yxe,content:wxe,colorScheme:xxe},Sxe={width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},kxe={borderRadius:"50%",size:"1rem"},Exe={light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}},Nxe={root:Sxe,handle:kxe,colorScheme:Exe},Bxe={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},Axe={root:Bxe},Dxe={maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},Mxe={light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}},Txe={root:Dxe,colorScheme:Mxe},Fxe={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},Oxe={padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},Ixe={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},_xe={borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$xe={size:"2rem"},Rxe={margin:"0 0 0.5rem 0"},Pxe={root:Fxe,node:Oxe,nodeIcon:Ixe,nodeToggleButton:_xe,loadingIcon:$xe,filter:Rxe},zxe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Uxe={width:"2.5rem",color:"{form.field.icon.color}"},qxe={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Vxe={padding:"{list.padding}"},jxe={padding:"{list.option.padding}"},Qxe={borderRadius:"{border.radius.sm}"},Hxe={color:"{form.field.icon.color}"},Wxe={root:zxe,dropdown:Uxe,overlay:qxe,tree:Vxe,emptyMessage:jxe,chip:Qxe,clearIcon:Hxe},Zxe={transitionDuration:"{transition.duration}"},Gxe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},Kxe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Yxe={fontWeight:"600"},Jxe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Xxe={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},Lxe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},e2e={fontWeight:"600"},t2e={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},r2e={width:"0.5rem"},n2e={width:"1px",color:"{primary.color}"},o2e={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},i2e={size:"2rem"},a2e={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},s2e={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},l2e={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},u2e={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},c2e={root:Zxe,header:Gxe,headerCell:Kxe,columnTitle:Yxe,row:Jxe,bodyCell:Xxe,footerCell:Lxe,columnFooter:e2e,footer:t2e,columnResizer:r2e,resizeIndicator:n2e,sortIcon:o2e,loadingIcon:i2e,nodeToggleButton:a2e,paginatorTop:s2e,paginatorBottom:l2e,colorScheme:u2e},d2e={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}},f2e={loader:d2e},p2e=Object.defineProperty,m2e=Object.defineProperties,h2e=Object.getOwnPropertyDescriptors,cB=Object.getOwnPropertySymbols,g2e=Object.prototype.hasOwnProperty,v2e=Object.prototype.propertyIsEnumerable,dB=(e,t,r)=>t in e?p2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fB,b2e=(fB=((e,t)=>{for(var r in t||(t={}))g2e.call(t,r)&&dB(e,r,t[r]);if(cB)for(var r of cB(t))v2e.call(t,r)&&dB(e,r,t[r]);return e})({},The),m2e(fB,h2e({components:{accordion:ihe,autocomplete:hhe,avatar:xhe,badge:Ahe,blockui:Ohe,breadcrumb:Rhe,button:Uhe,card:Whe,carousel:Xhe,cascadeselect:ige,checkbox:lge,chip:mge,colorpicker:yge,confirmdialog:Cge,confirmpopup:Bge,contextmenu:Ige,datatable:eve,dataview:sve,datepicker:Bve,dialog:Ove,divider:Pve,dock:qve,drawer:Zve,editor:Lve,fieldset:o0e,fileupload:f0e,floatlabel:v0e,galleria:F0e,iconfield:I0e,iftalabel:R0e,image:V0e,imagecompare:Q0e,inlinemessage:K0e,inplace:X0e,inputchips:rbe,inputgroup:obe,inputnumber:lbe,inputotp:dbe,inputtext:pbe,knob:bbe,listbox:Nbe,megamenu:$be,menu:Vbe,menubar:Kbe,message:i1e,metergroup:f1e,multiselect:C1e,orderlist:E1e,organizationchart:M1e,overlaybadge:F1e,paginator:R1e,panel:Q1e,panelmenu:Y1e,password:rye,picklist:iye,popover:lye,progressbar:fye,progressspinner:mye,radiobutton:vye,rating:wye,ripple:Cye,scrollpanel:Nye,select:$ye,selectbutton:zye,skeleton:Vye,slider:Gye,speeddial:Yye,splitbutton:Xye,splitter:rwe,stepper:dwe,steps:vwe,tabmenu:Swe,tabs:Twe,tabview:Pwe,tag:Vwe,terminal:Wwe,textarea:Gwe,tieredmenu:txe,timeline:sxe,toast:vxe,togglebutton:Cxe,toggleswitch:Nxe,toolbar:Axe,tooltip:Txe,tree:Pxe,treeselect:Wxe,treetable:c2e,virtualscroller:f2e}})));function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}function pB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pB(Object(r),!0).forEach(function(n){y2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y2e(e,t,r){return(t=w2e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w2e(e){var t=x2e(e,"string");return Vc(t)=="symbol"?t:t+""}function x2e(e,t){if(Vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C2e={ripple:!1,inputStyle:null,inputVariant:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",fileChosenMessage:"{0} files",noFileChosenMessage:"No file chosen",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},filterMatchModeOptions:{text:[Ar.STARTS_WITH,Ar.CONTAINS,Ar.NOT_CONTAINS,Ar.ENDS_WITH,Ar.EQUALS,Ar.NOT_EQUALS],numeric:[Ar.EQUALS,Ar.NOT_EQUALS,Ar.LESS_THAN,Ar.LESS_THAN_OR_EQUAL_TO,Ar.GREATER_THAN,Ar.GREATER_THAN_OR_EQUAL_TO],date:[Ar.DATE_IS,Ar.DATE_IS_NOT,Ar.DATE_BEFORE,Ar.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},theme:void 0,unstyled:!1,pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},csp:{nonce:void 0}},S2e=Symbol();function k2e(e,t){var r={config:a.reactive(t)};return e.config.globalProperties.$primevue=r,e.provide(S2e,r),E2e(),N2e(e,r),r}var Rl=[];function E2e(){mo.clear(),Rl.forEach(function(e){return e==null?void 0:e()}),Rl=[]}function N2e(e,t){var r=a.ref(!1),n=function(){var c;if(((c=t.config)===null||c===void 0?void 0:c.theme)!=="none"&&!Qt.isStyleNameLoaded("common")){var u,d,f=((u=Ge.getCommonTheme)===null||u===void 0?void 0:u.call(Ge))||{},p=f.primitive,m=f.semantic,h=f.global,g=f.style,v={nonce:(d=t.config)===null||d===void 0||(d=d.csp)===null||d===void 0?void 0:d.nonce};Ge.load(p==null?void 0:p.css,Pp({name:"primitive-variables"},v)),Ge.load(m==null?void 0:m.css,Pp({name:"semantic-variables"},v)),Ge.load(h==null?void 0:h.css,Pp({name:"global-variables"},v)),Ge.loadTheme(Pp({name:"global-style"},v),g),Qt.setLoadedStyleName("common")}};mo.on("theme:change",function(c){r.value||(e.config.globalProperties.$primevue.config.theme=c,r.value=!0)});var i=a.watch(t.config,function(c,u){Cl.emit("config:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!0}),o=a.watch(function(){return t.config.ripple},function(c,u){Cl.emit("config:ripple:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!0}),s=a.watch(function(){return t.config.theme},function(c,u){r.value||Qt.setTheme(c),t.config.unstyled||n(),r.value=!1,Cl.emit("config:theme:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!1}),l=a.watch(function(){return t.config.unstyled},function(c,u){!c&&t.config.theme&&n(),Cl.emit("config:unstyled:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!0});Rl.push(i),Rl.push(o),Rl.push(s),Rl.push(l)}var B2e={install:function(e,t){var r=Pne(C2e,t);k2e(e,r)}},mB=Uu(),A2e=Symbol(),D2e={install:function(e){var t={require:function(r){mB.emit("confirm",r)},close:function(){mB.emit("close")}};e.config.globalProperties.$confirm=t,e.provide(A2e,t)}},hB=Symbol();function M2e(){var e=a.inject(hB);if(!e)throw new Error("No PrimeVue Toast provided!");return e}var T2e={install:function(e){var t={add:function(r){Wn.emit("add",r)},remove:function(r){Wn.emit("remove",r)},removeGroup:function(r){Wn.emit("remove-group",r)},removeAllGroups:function(){Wn.emit("remove-all-groups")}};e.config.globalProperties.$toast=t,e.provide(hB,t)}};const F2e={class:"opencor-scoped-styles h-full"},O2e=a.defineComponent({__name:"OpenCOR",props:{omex:{},theme:{}},setup(e){const t=e,r=ke.ref(null),n=ke.ref("opencorToast"),i=ke.ref("opencorMainMenu"),o=ke.ref(null),s=ke.ref(null),l=ke.ref([]),c=Ice(),u=ke.ref(!1);function d(){c.value=String(h==null?void 0:h.uid)}const f=ke.computed(()=>c.value===String(h==null?void 0:h.uid)),p=ke.computed(()=>!y.value||b.value||x.value||u.value),m=ke.computed(()=>!p.value&&!J.value&&!V.value&&!U.value&&!Ee.value&&!q.value&&!E.value&&!D.value&&!T.value&&!_.value),h=ke.getCurrentInstance();if(h!==null){const X=h.appContext.app;X.config.globalProperties.$primevue===void 0&&X.use(B2e,{theme:{preset:b2e,options:{darkModeSelector:".opencor-dark-mode"}}}),X.config.globalProperties.$confirm===void 0&&X.use(D2e),X.config.globalProperties.$toast===void 0&&X.use(T2e)}JE().setTheme(t.theme);const g=M2e(),v=ke.ref(!1),b=ke.ref(!1);window.locApi===void 0&&(b.value=!0,ke.watch(v,X=>{X&&(b.value=!1)})),Uae().then(()=>{v.value=!0}),Ae==null||Ae.onAction(X=>{w(X)});function w(X){function P(le,ue){return le.localeCompare(ue,void 0,{sensitivity:"base"})===0}const W=X.indexOf("/"),Z=W!==-1?X.substring(0,W):X,re=W!==-1?X.substring(W+1):"";if(P(Z,"openAboutDialog"))z();else if(P(Z,"openSettingsDialog"))H();else{const le=re.split("%7C");if(P(Z,"openFile")&&le.length===1||P(Z,"openFiles")&&le.length>1)for(const ue of le)Q(ue);else g.add({severity:"error",group:n.value,summary:"Handling an action",detail:`${X}
|
|
5279
|
+
`)}this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},components:{ToastMessage:iB,Portal:tc}};function qc(e){"@babel/helpers - typeof";return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}function uB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yme(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uB(Object(r),!0).forEach(function(n){Jme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jme(e,t,r){return(t=Xme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xme(e){var t=Lme(e,"string");return qc(t)=="symbol"?t:t+""}function Lme(e,t){if(qc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ehe(e,t,r,n,i,o){var s=a.resolveComponent("ToastMessage"),l=a.resolveComponent("Portal");return a.openBlock(),a.createBlock(l,null,{default:a.withCtx(function(){return[a.createElementVNode("div",a.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root",!0,{position:e.position})},e.ptmi("root")),[a.createVNode(a.TransitionGroup,a.mergeProps({name:"p-toast-message",tag:"div",onEnter:o.onEnter,onLeave:o.onLeave},Yme({},e.ptm("transition"))),{default:a.withCtx(function(){return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.messages,function(c){return a.openBlock(),a.createBlock(s,{key:c.id,message:c,templates:e.$slots,closeIcon:e.closeIcon,infoIcon:e.infoIcon,warnIcon:e.warnIcon,errorIcon:e.errorIcon,successIcon:e.successIcon,closeButtonProps:e.closeButtonProps,unstyled:e.unstyled,onClose:t[0]||(t[0]=function(u){return o.remove(u)}),pt:e.pt},null,8,["message","templates","closeIcon","infoIcon","warnIcon","errorIcon","successIcon","closeButtonProps","unstyled","pt"])}),128))]}),_:1},16,["onEnter","onLeave"])],16)]}),_:1})}lB.render=ehe;var the={transitionDuration:"{transition.duration}"},rhe={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},nhe={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},ohe={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},ihe={root:the,panel:rhe,header:nhe,content:ohe},ahe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},she={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},lhe={padding:"{list.padding}",gap:"{list.gap}"},uhe={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},che={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dhe={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},fhe={borderRadius:"{border.radius.sm}"},phe={padding:"{list.option.padding}"},mhe={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},hhe={root:ahe,overlay:she,list:lhe,option:uhe,optionGroup:che,dropdown:dhe,chip:fhe,emptyMessage:phe,colorScheme:mhe},ghe={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},vhe={size:"1rem"},bhe={borderColor:"{content.background}",offset:"-0.75rem"},yhe={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},whe={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}},xhe={root:ghe,icon:vhe,group:bhe,lg:yhe,xl:whe},Che={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},She={size:"0.5rem"},khe={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},Ehe={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},Nhe={fontSize:"1rem",minWidth:"2rem",height:"2rem"},Bhe={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},Ahe={root:Che,dot:She,sm:khe,lg:Ehe,xl:Nhe,colorScheme:Bhe},Dhe={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},Mhe={transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},The={primitive:Dhe,semantic:Mhe},Fhe={borderRadius:"{content.border.radius}"},Ohe={root:Fhe},Ihe={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},_he={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$he={color:"{navigation.item.icon.color}"},Rhe={root:Ihe,item:_he,separator:$he},Phe={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},zhe={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},Uhe={root:Phe,colorScheme:zhe},qhe={background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Vhe={padding:"1.25rem",gap:"0.5rem"},jhe={gap:"0.5rem"},Qhe={fontSize:"1.25rem",fontWeight:"500"},Hhe={color:"{text.muted.color}"},Whe={root:qhe,body:Vhe,caption:jhe,title:Qhe,subtitle:Hhe},Zhe={transitionDuration:"{transition.duration}"},Ghe={gap:"0.25rem"},Khe={padding:"1rem",gap:"0.5rem"},Yhe={width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Jhe={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},Xhe={root:Zhe,content:Ghe,indicatorList:Khe,indicator:Yhe,colorScheme:Jhe},Lhe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},ege={width:"2.5rem",color:"{form.field.icon.color}"},tge={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},rge={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},nge={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},oge={color:"{form.field.icon.color}"},ige={root:Lhe,dropdown:ege,overlay:tge,list:rge,option:nge,clearIcon:oge},age={borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},sge={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},lge={root:age,icon:sge},uge={borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},cge={width:"2rem",height:"2rem"},dge={size:"1rem"},fge={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},pge={light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}},mge={root:uge,image:cge,icon:dge,removeIcon:fge,colorScheme:pge},hge={transitionDuration:"{transition.duration}"},gge={width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},vge={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},bge={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}},yge={root:hge,preview:gge,panel:vge,colorScheme:bge},wge={size:"2rem",color:"{overlay.modal.color}"},xge={gap:"1rem"},Cge={icon:wge,content:xge},Sge={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},kge={padding:"{overlay.popover.padding}",gap:"1rem"},Ege={size:"1.5rem",color:"{overlay.popover.color}"},Nge={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"},Bge={root:Sge,content:kge,icon:Ege,footer:Nge},Age={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Dge={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Mge={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Tge={mobileIndent:"1rem"},Fge={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Oge={borderColor:"{content.border.color}"},Ige={root:Age,list:Dge,item:Mge,submenu:Tge,submenuIcon:Fge,separator:Oge},_ge={transitionDuration:"{transition.duration}"},$ge={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Rge={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Pge={fontWeight:"600"},zge={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Uge={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},qge={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Vge={fontWeight:"600"},jge={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Qge={color:"{primary.color}"},Hge={width:"0.5rem"},Wge={width:"1px",color:"{primary.color}"},Zge={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},Gge={size:"2rem"},Kge={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Yge={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},Jge={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Xge={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Lge={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},eve={root:_ge,header:$ge,headerCell:Rge,columnTitle:Pge,row:zge,bodyCell:Uge,footerCell:qge,columnFooter:Vge,footer:jge,dropPoint:Qge,columnResizer:Hge,resizeIndicator:Wge,sortIcon:Zge,loadingIcon:Gge,rowToggleButton:Kge,filter:Yge,paginatorTop:Jge,paginatorBottom:Xge,colorScheme:Lge},tve={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},rve={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},nve={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},ove={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},ive={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},ave={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},sve={root:tve,header:rve,content:nve,footer:ove,paginatorTop:ive,paginatorBottom:ave},lve={transitionDuration:"{transition.duration}"},uve={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},cve={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},dve={gap:"0.5rem",fontWeight:"500"},fve={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},pve={color:"{form.field.icon.color}"},mve={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},hve={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},gve={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},vve={margin:"0.5rem 0 0 0"},bve={padding:"0.25rem",fontWeight:"500",color:"{content.color}"},yve={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},wve={margin:"0.5rem 0 0 0"},xve={padding:"0.375rem",borderRadius:"{content.border.radius}"},Cve={margin:"0.5rem 0 0 0"},Sve={padding:"0.375rem",borderRadius:"{content.border.radius}"},kve={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},Eve={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},Nve={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},Bve={root:lve,panel:uve,header:cve,title:dve,dropdown:fve,inputIcon:pve,selectMonth:mve,selectYear:hve,group:gve,dayView:vve,weekDay:bve,date:yve,monthView:wve,month:xve,yearView:Cve,year:Sve,buttonbar:kve,timePicker:Eve,colorScheme:Nve},Ave={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},Dve={padding:"{overlay.modal.padding}",gap:"0.5rem"},Mve={fontSize:"1.25rem",fontWeight:"600"},Tve={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},Fve={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"},Ove={root:Ave,header:Dve,title:Mve,content:Tve,footer:Fve},Ive={borderColor:"{content.border.color}"},_ve={background:"{content.background}",color:"{text.color}"},$ve={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},Rve={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}},Pve={root:Ive,content:_ve,horizontal:$ve,vertical:Rve},zve={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},Uve={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qve={root:zve,item:Uve},Vve={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},jve={padding:"{overlay.modal.padding}"},Qve={fontSize:"1.5rem",fontWeight:"600"},Hve={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},Wve={padding:"{overlay.modal.padding}"},Zve={root:Vve,header:jve,title:Qve,content:Hve,footer:Wve},Gve={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},Kve={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},Yve={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},Jve={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Xve={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Lve={toolbar:Gve,toolbarItem:Kve,overlay:Yve,overlayOption:Jve,content:Xve},e0e={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},t0e={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},r0e={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},n0e={padding:"0"},o0e={root:e0e,legend:t0e,toggleIcon:r0e,content:n0e},i0e={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},a0e={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},s0e={highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},l0e={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},u0e={gap:"0.5rem"},c0e={height:"0.25rem"},d0e={gap:"0.5rem"},f0e={root:i0e,header:a0e,content:s0e,file:l0e,fileList:u0e,progressbar:c0e,basic:d0e},p0e={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},m0e={active:{top:"-1.25rem"}},h0e={input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},g0e={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}},v0e={root:p0e,over:m0e,in:h0e,on:g0e},b0e={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},y0e={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},w0e={size:"1.5rem"},x0e={background:"{content.background}",padding:"1rem 0.25rem"},C0e={size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},S0e={size:"1rem"},k0e={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},E0e={gap:"0.5rem",padding:"1rem"},N0e={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},B0e={background:"rgba(0, 0, 0, 0.5)"},A0e={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},D0e={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},M0e={size:"1.5rem"},T0e={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}},F0e={root:b0e,navButton:y0e,navIcon:w0e,thumbnailsContent:x0e,thumbnailNavButton:C0e,thumbnailNavButtonIcon:S0e,caption:k0e,indicatorList:E0e,indicatorButton:N0e,insetIndicatorList:B0e,insetIndicatorButton:A0e,closeButton:D0e,closeButtonIcon:M0e,colorScheme:T0e},O0e={color:"{form.field.icon.color}"},I0e={icon:O0e},_0e={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},$0e={paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},R0e={root:_0e,input:$0e},P0e={transitionDuration:"{transition.duration}"},z0e={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},U0e={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},q0e={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},V0e={root:P0e,preview:z0e,toolbar:U0e,action:q0e},j0e={size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Q0e={handle:j0e},H0e={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},W0e={fontWeight:"500"},Z0e={size:"1rem"},G0e={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}},K0e={root:H0e,text:W0e,icon:Z0e,colorScheme:G0e},Y0e={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},J0e={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"},X0e={root:Y0e,display:J0e},L0e={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},ebe={borderRadius:"{border.radius.sm}"},tbe={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}},rbe={root:L0e,chip:ebe,colorScheme:tbe},nbe={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"},obe={addon:nbe},ibe={transitionDuration:"{transition.duration}"},abe={width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},sbe={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},lbe={root:ibe,button:abe,colorScheme:sbe},ube={gap:"0.5rem"},cbe={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}},dbe={root:ube,input:cbe},fbe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},pbe={root:fbe},mbe={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},hbe={background:"{primary.color}"},gbe={background:"{content.border.color}"},vbe={color:"{text.muted.color}"},bbe={root:mbe,value:hbe,range:gbe,text:vbe},ybe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},wbe={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},xbe={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Cbe={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Sbe={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},kbe={padding:"{list.option.padding}"},Ebe={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},Nbe={root:ybe,list:wbe,option:xbe,optionGroup:Cbe,checkmark:Sbe,emptyMessage:kbe,colorScheme:Ebe},Bbe={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},Abe={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Dbe={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Mbe={padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},Tbe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Fbe={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},Obe={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Ibe={borderColor:"{content.border.color}"},_be={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$be={root:Bbe,baseItem:Abe,item:Dbe,overlay:Mbe,submenu:Tbe,submenuLabel:Fbe,submenuIcon:Obe,separator:Ibe,mobileButton:_be},Rbe={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Pbe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},zbe={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Ube={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},qbe={borderColor:"{content.border.color}"},Vbe={root:Rbe,list:Pbe,item:zbe,submenuLabel:Ube,separator:qbe},jbe={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},Qbe={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Hbe={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Wbe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},Zbe={borderColor:"{content.border.color}"},Gbe={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Kbe={root:jbe,baseItem:Qbe,item:Hbe,submenu:Wbe,separator:Zbe,mobileButton:Gbe},Ybe={borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},Jbe={padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},Xbe={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},Lbe={size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},e1e={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},t1e={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},r1e={root:{borderWidth:"1px"}},n1e={content:{padding:"0"}},o1e={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}},i1e={root:Ybe,content:Jbe,text:Xbe,icon:Lbe,closeButton:e1e,closeIcon:t1e,outlined:r1e,simple:n1e,colorScheme:o1e},a1e={borderRadius:"{content.border.radius}",gap:"1rem"},s1e={background:"{content.border.color}",size:"0.5rem"},l1e={gap:"0.5rem"},u1e={size:"0.5rem"},c1e={size:"1rem"},d1e={verticalGap:"0.5rem",horizontalGap:"1rem"},f1e={root:a1e,meters:s1e,label:l1e,labelMarker:u1e,labelIcon:c1e,labelList:d1e},p1e={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},m1e={width:"2.5rem",color:"{form.field.icon.color}"},h1e={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},g1e={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},v1e={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},b1e={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},y1e={color:"{form.field.icon.color}"},w1e={borderRadius:"{border.radius.sm}"},x1e={padding:"{list.option.padding}"},C1e={root:p1e,dropdown:m1e,overlay:h1e,list:g1e,option:v1e,optionGroup:b1e,chip:w1e,clearIcon:y1e,emptyMessage:x1e},S1e={gap:"1.125rem"},k1e={gap:"0.5rem"},E1e={root:S1e,controls:k1e},N1e={gutter:"0.75rem",transitionDuration:"{transition.duration}"},B1e={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},A1e={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},D1e={color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"},M1e={root:N1e,node:B1e,nodeToggleButton:A1e,connector:D1e},T1e={outline:{width:"2px",color:"{content.background}"}},F1e={root:T1e},O1e={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},I1e={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},_1e={color:"{text.muted.color}"},$1e={maxWidth:"2.5rem"},R1e={root:O1e,navButton:I1e,currentPageReport:_1e,jumpToPageInput:$1e},P1e={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},z1e={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},U1e={padding:"0.375rem 1.125rem"},q1e={fontWeight:"600"},V1e={padding:"0 1.125rem 1.125rem 1.125rem"},j1e={padding:"0 1.125rem 1.125rem 1.125rem"},Q1e={root:P1e,header:z1e,toggleableHeader:U1e,title:q1e,content:V1e,footer:j1e},H1e={gap:"0.5rem",transitionDuration:"{transition.duration}"},W1e={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},Z1e={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},G1e={indent:"1rem"},K1e={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},Y1e={root:H1e,panel:W1e,item:Z1e,submenu:G1e,submenuIcon:K1e},J1e={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},X1e={color:"{form.field.icon.color}"},L1e={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},eye={gap:"0.5rem"},tye={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}},rye={meter:J1e,icon:X1e,overlay:L1e,content:eye,colorScheme:tye},nye={gap:"1.125rem"},oye={gap:"0.5rem"},iye={root:nye,controls:oye},aye={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},sye={padding:"{overlay.popover.padding}"},lye={root:aye,content:sye},uye={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},cye={background:"{primary.color}"},dye={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"},fye={root:uye,value:cye,label:dye},pye={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}},mye={colorScheme:pye},hye={width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},gye={size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}},vye={root:hye,icon:gye},bye={gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},yye={size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},wye={root:bye,icon:yye},xye={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}},Cye={colorScheme:xye},Sye={transitionDuration:"{transition.duration}"},kye={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Eye={light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}},Nye={root:Sye,bar:kye,colorScheme:Eye},Bye={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Aye={width:"2.5rem",color:"{form.field.icon.color}"},Dye={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Mye={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Tye={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Fye={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Oye={color:"{form.field.icon.color}"},Iye={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},_ye={padding:"{list.option.padding}"},$ye={root:Bye,dropdown:Aye,overlay:Dye,list:Mye,option:Tye,optionGroup:Fye,clearIcon:Oye,checkmark:Iye,emptyMessage:_ye},Rye={borderRadius:"{form.field.border.radius}"},Pye={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}},zye={root:Rye,colorScheme:Pye},Uye={borderRadius:"{content.border.radius}"},qye={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}},Vye={root:Uye,colorScheme:qye},jye={transitionDuration:"{transition.duration}"},Qye={background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},Hye={background:"{primary.color}"},Wye={width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Zye={light:{handle:{content:{background:"{surface.0}"}}},dark:{handle:{content:{background:"{surface.950}"}}}},Gye={root:jye,track:Qye,range:Hye,handle:Wye,colorScheme:Zye},Kye={gap:"0.5rem",transitionDuration:"{transition.duration}"},Yye={root:Kye},Jye={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"},Xye={root:Jye},Lye={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},ewe={background:"{content.border.color}"},twe={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},rwe={root:Lye,gutter:ewe,handle:twe},nwe={transitionDuration:"{transition.duration}"},owe={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},iwe={padding:"0.5rem",gap:"1rem"},awe={padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},swe={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},lwe={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},uwe={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},cwe={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},dwe={root:nwe,separator:owe,step:iwe,stepHeader:awe,stepTitle:swe,stepNumber:lwe,steppanels:uwe,steppanel:cwe},fwe={transitionDuration:"{transition.duration}"},pwe={background:"{content.border.color}"},mwe={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},hwe={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},gwe={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},vwe={root:fwe,separator:pwe,itemLink:mwe,itemLabel:hwe,itemNumber:gwe},bwe={transitionDuration:"{transition.duration}"},ywe={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},wwe={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},xwe={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},Cwe={height:"1px",bottom:"-1px",background:"{primary.color}"},Swe={root:bwe,tablist:ywe,item:wwe,itemIcon:xwe,activeBar:Cwe},kwe={transitionDuration:"{transition.duration}"},Ewe={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},Nwe={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Bwe={background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},Awe={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Dwe={height:"1px",bottom:"-1px",background:"{primary.color}"},Mwe={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},Twe={root:kwe,tablist:Ewe,tab:Nwe,tabpanel:Bwe,navButton:Awe,activeBar:Dwe,colorScheme:Mwe},Fwe={transitionDuration:"{transition.duration}"},Owe={background:"{content.background}",borderColor:"{content.border.color}"},Iwe={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},_we={background:"{content.background}",color:"{content.color}"},$we={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},Rwe={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},Pwe={root:Fwe,tabList:Owe,tab:Iwe,tabPanel:_we,navButton:$we,colorScheme:Rwe},zwe={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},Uwe={size:"0.75rem"},qwe={light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},Vwe={root:zwe,icon:Uwe,colorScheme:qwe},jwe={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},Qwe={gap:"0.25rem"},Hwe={margin:"2px 0"},Wwe={root:jwe,prompt:Qwe,commandResponse:Hwe},Zwe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Gwe={root:Zwe},Kwe={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Ywe={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Jwe={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Xwe={mobileIndent:"1rem"},Lwe={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},exe={borderColor:"{content.border.color}"},txe={root:Kwe,list:Ywe,item:Jwe,submenu:Xwe,submenuIcon:Lwe,separator:exe},rxe={minHeight:"5rem"},nxe={eventContent:{padding:"1rem 0"}},oxe={eventContent:{padding:"0 1rem"}},ixe={size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},axe={color:"{content.border.color}",size:"2px"},sxe={event:rxe,horizontal:nxe,vertical:oxe,eventMarker:ixe,eventConnector:axe},lxe={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},uxe={size:"1.125rem"},cxe={padding:"{overlay.popover.padding}",gap:"0.5rem"},dxe={gap:"0.5rem"},fxe={fontWeight:"500",fontSize:"1rem"},pxe={fontWeight:"500",fontSize:"0.875rem"},mxe={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},hxe={size:"1rem"},gxe={light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}},vxe={root:lxe,icon:uxe,content:cxe,text:dxe,summary:fxe,detail:pxe,closeButton:mxe,closeIcon:hxe,colorScheme:gxe},bxe={padding:"0.25rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.25rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.25rem"}},yxe={disabledColor:"{form.field.disabled.color}"},wxe={padding:"0.25rem 0.75rem",borderRadius:"{content.border.radius}",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",sm:{padding:"0.25rem 0.75rem"},lg:{padding:"0.25rem 0.75rem"}},xxe={light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}},Cxe={root:bxe,icon:yxe,content:wxe,colorScheme:xxe},Sxe={width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},kxe={borderRadius:"50%",size:"1rem"},Exe={light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}},Nxe={root:Sxe,handle:kxe,colorScheme:Exe},Bxe={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},Axe={root:Bxe},Dxe={maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},Mxe={light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}},Txe={root:Dxe,colorScheme:Mxe},Fxe={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},Oxe={padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},Ixe={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},_xe={borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$xe={size:"2rem"},Rxe={margin:"0 0 0.5rem 0"},Pxe={root:Fxe,node:Oxe,nodeIcon:Ixe,nodeToggleButton:_xe,loadingIcon:$xe,filter:Rxe},zxe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Uxe={width:"2.5rem",color:"{form.field.icon.color}"},qxe={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Vxe={padding:"{list.padding}"},jxe={padding:"{list.option.padding}"},Qxe={borderRadius:"{border.radius.sm}"},Hxe={color:"{form.field.icon.color}"},Wxe={root:zxe,dropdown:Uxe,overlay:qxe,tree:Vxe,emptyMessage:jxe,chip:Qxe,clearIcon:Hxe},Zxe={transitionDuration:"{transition.duration}"},Gxe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},Kxe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Yxe={fontWeight:"600"},Jxe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Xxe={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},Lxe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},e2e={fontWeight:"600"},t2e={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},r2e={width:"0.5rem"},n2e={width:"1px",color:"{primary.color}"},o2e={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},i2e={size:"2rem"},a2e={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},s2e={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},l2e={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},u2e={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},c2e={root:Zxe,header:Gxe,headerCell:Kxe,columnTitle:Yxe,row:Jxe,bodyCell:Xxe,footerCell:Lxe,columnFooter:e2e,footer:t2e,columnResizer:r2e,resizeIndicator:n2e,sortIcon:o2e,loadingIcon:i2e,nodeToggleButton:a2e,paginatorTop:s2e,paginatorBottom:l2e,colorScheme:u2e},d2e={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}},f2e={loader:d2e},p2e=Object.defineProperty,m2e=Object.defineProperties,h2e=Object.getOwnPropertyDescriptors,cB=Object.getOwnPropertySymbols,g2e=Object.prototype.hasOwnProperty,v2e=Object.prototype.propertyIsEnumerable,dB=(e,t,r)=>t in e?p2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fB,b2e=(fB=((e,t)=>{for(var r in t||(t={}))g2e.call(t,r)&&dB(e,r,t[r]);if(cB)for(var r of cB(t))v2e.call(t,r)&&dB(e,r,t[r]);return e})({},The),m2e(fB,h2e({components:{accordion:ihe,autocomplete:hhe,avatar:xhe,badge:Ahe,blockui:Ohe,breadcrumb:Rhe,button:Uhe,card:Whe,carousel:Xhe,cascadeselect:ige,checkbox:lge,chip:mge,colorpicker:yge,confirmdialog:Cge,confirmpopup:Bge,contextmenu:Ige,datatable:eve,dataview:sve,datepicker:Bve,dialog:Ove,divider:Pve,dock:qve,drawer:Zve,editor:Lve,fieldset:o0e,fileupload:f0e,floatlabel:v0e,galleria:F0e,iconfield:I0e,iftalabel:R0e,image:V0e,imagecompare:Q0e,inlinemessage:K0e,inplace:X0e,inputchips:rbe,inputgroup:obe,inputnumber:lbe,inputotp:dbe,inputtext:pbe,knob:bbe,listbox:Nbe,megamenu:$be,menu:Vbe,menubar:Kbe,message:i1e,metergroup:f1e,multiselect:C1e,orderlist:E1e,organizationchart:M1e,overlaybadge:F1e,paginator:R1e,panel:Q1e,panelmenu:Y1e,password:rye,picklist:iye,popover:lye,progressbar:fye,progressspinner:mye,radiobutton:vye,rating:wye,ripple:Cye,scrollpanel:Nye,select:$ye,selectbutton:zye,skeleton:Vye,slider:Gye,speeddial:Yye,splitbutton:Xye,splitter:rwe,stepper:dwe,steps:vwe,tabmenu:Swe,tabs:Twe,tabview:Pwe,tag:Vwe,terminal:Wwe,textarea:Gwe,tieredmenu:txe,timeline:sxe,toast:vxe,togglebutton:Cxe,toggleswitch:Nxe,toolbar:Axe,tooltip:Txe,tree:Pxe,treeselect:Wxe,treetable:c2e,virtualscroller:f2e}})));function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}function pB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pB(Object(r),!0).forEach(function(n){y2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y2e(e,t,r){return(t=w2e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w2e(e){var t=x2e(e,"string");return Vc(t)=="symbol"?t:t+""}function x2e(e,t){if(Vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C2e={ripple:!1,inputStyle:null,inputVariant:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",fileChosenMessage:"{0} files",noFileChosenMessage:"No file chosen",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},filterMatchModeOptions:{text:[Ar.STARTS_WITH,Ar.CONTAINS,Ar.NOT_CONTAINS,Ar.ENDS_WITH,Ar.EQUALS,Ar.NOT_EQUALS],numeric:[Ar.EQUALS,Ar.NOT_EQUALS,Ar.LESS_THAN,Ar.LESS_THAN_OR_EQUAL_TO,Ar.GREATER_THAN,Ar.GREATER_THAN_OR_EQUAL_TO],date:[Ar.DATE_IS,Ar.DATE_IS_NOT,Ar.DATE_BEFORE,Ar.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},theme:void 0,unstyled:!1,pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},csp:{nonce:void 0}},S2e=Symbol();function k2e(e,t){var r={config:a.reactive(t)};return e.config.globalProperties.$primevue=r,e.provide(S2e,r),E2e(),N2e(e,r),r}var Rl=[];function E2e(){mo.clear(),Rl.forEach(function(e){return e==null?void 0:e()}),Rl=[]}function N2e(e,t){var r=a.ref(!1),n=function(){var c;if(((c=t.config)===null||c===void 0?void 0:c.theme)!=="none"&&!Qt.isStyleNameLoaded("common")){var u,d,f=((u=Ge.getCommonTheme)===null||u===void 0?void 0:u.call(Ge))||{},p=f.primitive,m=f.semantic,h=f.global,g=f.style,v={nonce:(d=t.config)===null||d===void 0||(d=d.csp)===null||d===void 0?void 0:d.nonce};Ge.load(p==null?void 0:p.css,Pp({name:"primitive-variables"},v)),Ge.load(m==null?void 0:m.css,Pp({name:"semantic-variables"},v)),Ge.load(h==null?void 0:h.css,Pp({name:"global-variables"},v)),Ge.loadTheme(Pp({name:"global-style"},v),g),Qt.setLoadedStyleName("common")}};mo.on("theme:change",function(c){r.value||(e.config.globalProperties.$primevue.config.theme=c,r.value=!0)});var i=a.watch(t.config,function(c,u){Cl.emit("config:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!0}),o=a.watch(function(){return t.config.ripple},function(c,u){Cl.emit("config:ripple:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!0}),s=a.watch(function(){return t.config.theme},function(c,u){r.value||Qt.setTheme(c),t.config.unstyled||n(),r.value=!1,Cl.emit("config:theme:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!1}),l=a.watch(function(){return t.config.unstyled},function(c,u){!c&&t.config.theme&&n(),Cl.emit("config:unstyled:change",{newValue:c,oldValue:u})},{immediate:!0,deep:!0});Rl.push(i),Rl.push(o),Rl.push(s),Rl.push(l)}var B2e={install:function(e,t){var r=Pne(C2e,t);k2e(e,r)}},mB=Uu(),A2e=Symbol(),D2e={install:function(e){var t={require:function(r){mB.emit("confirm",r)},close:function(){mB.emit("close")}};e.config.globalProperties.$confirm=t,e.provide(A2e,t)}},hB=Symbol();function M2e(){var e=a.inject(hB);if(!e)throw new Error("No PrimeVue Toast provided!");return e}var T2e={install:function(e){var t={add:function(r){Wn.emit("add",r)},remove:function(r){Wn.emit("remove",r)},removeGroup:function(r){Wn.emit("remove-group",r)},removeAllGroups:function(){Wn.emit("remove-all-groups")}};e.config.globalProperties.$toast=t,e.provide(hB,t)}};const F2e=a.defineComponent({__name:"OpenCOR",props:{omex:{},theme:{}},setup(e){const t=e,r=ke.ref(null),n=ke.ref("opencorToast"),i=ke.ref("opencorMainMenu"),o=ke.ref(null),s=ke.ref(null),l=ke.ref([]),c=Ice(),u=ke.ref(!1);function d(){c.value=String(h==null?void 0:h.uid)}const f=ke.computed(()=>c.value===String(h==null?void 0:h.uid)),p=ke.computed(()=>!y.value||b.value||x.value||u.value),m=ke.computed(()=>!p.value&&!J.value&&!V.value&&!U.value&&!Ee.value&&!q.value&&!E.value&&!D.value&&!T.value&&!_.value),h=ke.getCurrentInstance();if(h!==null){const X=h.appContext.app;X.config.globalProperties.$primevue===void 0&&X.use(B2e,{theme:{preset:b2e,options:{darkModeSelector:".opencor-dark-mode"}}}),X.config.globalProperties.$confirm===void 0&&X.use(D2e),X.config.globalProperties.$toast===void 0&&X.use(T2e)}JE().setTheme(t.theme);const g=M2e(),v=ke.ref(!1),b=ke.ref(!1);window.locApi===void 0&&(b.value=!0,ke.watch(v,X=>{X&&(b.value=!1)})),Uae().then(()=>{v.value=!0}),Ae==null||Ae.onAction(X=>{w(X)});function w(X){function P(le,ue){return le.localeCompare(ue,void 0,{sensitivity:"base"})===0}const W=X.indexOf("/"),Z=W!==-1?X.substring(0,W):X,re=W!==-1?X.substring(W+1):"";if(P(Z,"openAboutDialog"))z();else if(P(Z,"openSettingsDialog"))H();else{const le=re.split("%7C");if(P(Z,"openFile")&&le.length===1||P(Z,"openFiles")&&le.length>1)for(const ue of le)Q(ue);else g.add({severity:"error",group:n.value,summary:"Handling an action",detail:`${X}
|
|
5280
5280
|
|
|
5281
5281
|
The action could not be handled.`,life:Tv})}}const y=ke.ref(!0);Ae==null||Ae.onEnableDisableUi(X=>{y.value=X});const S=ke.computed(()=>{var X;return((X=s.value)==null?void 0:X.hasFiles())??!1});ke.watch(S,X=>{Ae==null||Ae.enableDisableFileCloseAndCloseAllMenuItems(X)});const x=ke.ref(!1);function C(){x.value=!0}function N(){x.value=!1}Ae==null||Ae.onCheckForUpdates(()=>{Ae==null||Ae.checkForUpdates(!1)});const E=ke.ref(!1),B=ke.ref(""),M=ke.ref("");function k(){E.value=!1,T.value=!1}const D=ke.ref(!1),T=ke.ref(!1),R=ke.ref(""),$=ke.ref(0);Ae==null||Ae.onUpdateAvailable(X=>{D.value=!0,R.value=X});function A(){$.value=0,T.value=!0,D.value=!1,Ae==null||Ae.downloadAndInstallUpdate()}Ae==null||Ae.onUpdateDownloadError(X=>{B.value="Downloading Update...",M.value=`An error occurred while downloading the update (${pc(X,!1)}).`,E.value=!0}),Ae==null||Ae.onUpdateDownloadProgress(X=>{$.value=X}),Ae==null||Ae.onUpdateDownloaded(()=>{$.value=100,Ae==null||Ae.installUpdateAndRestart()});const _=ke.ref(!1);Ae==null||Ae.onUpdateNotAvailable(()=>{_.value=!0}),Ae==null||Ae.onUpdateCheckError(X=>{B.value="Checking For Updates...",M.value=`An error occurred while checking for updates (${pc(X,!1)}).`,E.value=!0});const q=ke.ref(!1);Ae==null||Ae.onAbout(()=>{z()});function z(){t.omex===void 0&&(q.value=!0)}const U=ke.ref(!1);Ae==null||Ae.onSettings(()=>{H()});function H(){t.omex===void 0&&(U.value=!0)}function Q(X){var W,Z;const P=Rc(X);if(((W=s.value)==null?void 0:W.hasFile(P))??!1){(Z=s.value)==null||Z.selectFile(P);return}$p(P)&&C(),Ipe(X).then(re=>{var ue;const le=re.type();le===Fl.IRRETRIEVABLE_FILE||le===Fl.UNKNOWN_FILE||t.omex!==void 0&&le!==Fl.COMBINE_ARCHIVE?(t.omex!==void 0?ke.nextTick(()=>{l.value.push({type:Dt.ERROR,description:le===Fl.IRRETRIEVABLE_FILE?"The file could not be retrieved.":"Only COMBINE archives are supported."})}):g.add({severity:"error",group:n.value,summary:"Opening a file",detail:P+`
|
|
5282
5282
|
|
|
5283
5283
|
`+(le===Fl.IRRETRIEVABLE_FILE?"The file could not be retrieved.":"Only CellML files, SED-ML files, and COMBINE archives are supported."),life:Tv}),Ae==null||Ae.fileIssue(P)):(ue=s.value)==null||ue.openFile(re),$p(P)&&N()}).catch(re=>{$p(P)&&N(),t.omex!==void 0?ke.nextTick(()=>{l.value.push({type:Dt.ERROR,description:pc(re instanceof Error?re.message:String(re))})}):g.add({severity:"error",group:n.value,summary:"Opening a file",detail:`${P}
|
|
5284
5284
|
|
|
5285
|
-
${pc(re instanceof Error?re.message:String(re))}`,life:Tv}),Ae==null||Ae.fileIssue(P)})}function F(X){const P=X.target.files;if(P!==null)for(const W of Array.from(P))Q(W)}const L=ke.ref(0);function j(){!m.value||t.omex!==void 0||(L.value+=1)}function ae(X){var W;if(L.value===0)return;L.value=0;const P=(W=X.dataTransfer)==null?void 0:W.files;if(P!==void 0)for(const Z of Array.from(P))Q(Z)}function oe(){L.value!==0&&(L.value-=1)}Ae==null||Ae.onOpen(X=>{Q(X)});function Y(){var X;t.omex===void 0&&((X=o.value)==null||X.click())}const V=ke.ref(!1);Ae==null||Ae.onOpenRemote(()=>{V.value=!0});function ee(){t.omex===void 0&&(V.value=!0)}function ie(X){Q(X)}Ae==null||Ae.onOpenSampleLorenz(()=>{te()});function te(){t.omex===void 0&&Q("https://github.com/opencor/webapp/raw/refs/heads/main/tests/models/lorenz.omex")}Ae==null||Ae.onOpenSampleInteractiveLorenz(()=>{ce()});function ce(){t.omex===void 0&&Q("https://github.com/opencor/webapp/raw/refs/heads/main/tests/models/ui/lorenz.omex")}Ae==null||Ae.onClose(()=>{de()});function de(){var X;t.omex===void 0&&((X=s.value)==null||X.closeCurrentFile())}Ae==null||Ae.onCloseAll(()=>{me()});function me(){var X;t.omex===void 0&&((X=s.value)==null||X.closeAllFiles())}const Ee=ke.ref(!1);Ae==null||Ae.onResetAll(()=>{Ee.value=!0});function Ie(){Ae==null||Ae.resetAll()}Ae==null||Ae.onSelect(X=>{var P;(P=s.value)==null||P.selectFile(X)});const Te=ke.ref(0),Pe=ke.ref(0),$e=ke.ref(0);ke.onMounted(()=>{var ue,be,he,Oe;const X=(ue=r.value)==null?void 0:ue.$el;(Oe=(he=(be=X.parentElement)==null?void 0:be.parentElement)==null?void 0:he.parentElement)==null||Oe.parentElement,n.value=`opencorToast${String(h==null?void 0:h.uid)}`,i.value=`opencorMainMenu${String(h==null?void 0:h.uid)}`,setTimeout(()=>{d()},Yo);let P;setTimeout(()=>{P=Lv(i.value)},Yo),setTimeout(()=>{const ve=document.getElementById(n.value);ve!==null&&X.appendChild(ve)},Yo),window.addEventListener("resize",W),ke.onUnmounted(()=>{window.removeEventListener("resize",W)});function W(){const ve=window.getComputedStyle(X);Te.value=parseFloat(ve.width),Pe.value=parseFloat(ve.height),$e.value=Pe.value-_i(i.value)}const Z=new ResizeObserver(()=>{setTimeout(()=>{W()},Yo)});let re=_i(i.value);const le=new MutationObserver(()=>{const ve=_i(i.value);ve!==re&&(re=ve,W())});Z.observe(X),le.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),ke.onUnmounted(()=>{Z.disconnect(),le.disconnect(),P==null||P.disconnect()})}),t.omex!==void 0?ke.watch(v,X=>{X&&t.omex!==void 0&&Q(t.omex)}):ke.onMounted(()=>{setTimeout(()=>{Ae!==void 0?Ae.checkForUpdates(!0):ke.watch(v,X=>{if(X){const P=Oce("action","");window.location.search!==""?(P.value=window.location.search.substring(1),window.location.search=""):P.value!==""&&setTimeout(()=>{w(P.value.slice(Sae.length)),P.value=""},Yo)}})},Yo)}),ke.watch(p,X=>{X||setTimeout(()=>{var Z;const P=(Z=r.value)==null?void 0:Z.$el,W=P.querySelector(".p-blockui-mask");W!==null&&W.parentElement===P&&P.removeChild(W)},Yo)});const J=ke.ref(!1);return(X,P)=>{const W=lB,Z=EE,re=Ame,le=Gv,ue=kme,be=vme,he=Zpe,Oe=Tse,ve=vse,qe=ese,ot=Xae,ft=xae,Xe=yae,Et=k5;return a.openBlock(),a.createElementBlock("div",F2e,[a.createVNode(Et,{ref_key:"blockUi",ref:r,blocked:a.unref(p),class:"overflow-hidden h-full",onClick:d,onFocus:d,onFocusin:d,onKeydown:d,onMousedown:d},{default:a.withCtx(()=>[a.createVNode(W,{id:a.unref(n),group:a.unref(n),"pt:root:style":{position:"absolute"},class:a.normalizeClass(a.unref(f)?"visible":"invisible")},null,8,["id","group","class"]),a.withDirectives(a.createVNode(Z,null,null,512),[[a.vShow,(a.unref(b)||a.unref(x))&&X.omex!==void 0]]),a.withDirectives(a.createVNode(re,{message:"Loading OpenCOR..."},null,512),[[a.vShow,a.unref(b)]]),a.withDirectives(a.createVNode(re,{message:"Loading model..."},null,512),[[a.vShow,a.unref(x)]]),a.unref(l).length!==0?(a.openBlock(),a.createBlock(le,{key:0,class:"h-full",issues:a.unref(l),width:a.unref(Te),height:a.unref(Pe)},null,8,["issues","width","height"])):(a.openBlock(),a.createElementBlock("div",{key:1,onDragenter:j,class:"h-full",onDragover:P[8]||(P[8]=a.withModifiers(()=>{},["prevent"])),onDrop:a.withModifiers(ae,["prevent"]),onDragleave:oe},[a.createElementVNode("input",{ref_key:"files",ref:o,type:"file",multiple:"",style:{display:"none"},onChange:F},null,544),a.withDirectives(a.createVNode(ue,null,null,512),[[a.vShow,a.unref(L)>0]]),a.unref(Ae)===void 0&&X.omex===void 0?(a.openBlock(),a.createBlock(be,{key:0,id:a.unref(i),isActive:a.unref(f),uiEnabled:a.unref(m),hasFiles:a.unref(S),onAbout:z,onOpen:Y,onOpenRemote:ee,onOpenSampleLorenz:te,onOpenSampleInteractiveLorenz:ce,onClose:de,onCloseAll:me,onSettings:H},null,8,["id","isActive","uiEnabled","hasFiles"])):a.createCommentVNode("",!0),a.createVNode(he,{ref_key:"contents",ref:s,isActive:a.unref(f),uiEnabled:a.unref(m),simulationOnly:X.omex!==void 0,width:a.unref(Te),height:a.unref($e)},null,8,["isActive","uiEnabled","simulationOnly","width","height"]),a.createVNode(Oe,{visible:a.unref(V),"onUpdate:visible":P[0]||(P[0]=O=>a.isRef(V)?V.value=O:null),onOpenRemote:ie,onClose:P[1]||(P[1]=O=>V.value=!1)},null,8,["visible"]),a.createVNode(ve,{visible:a.unref(U),"onUpdate:visible":P[2]||(P[2]=O=>a.isRef(U)?U.value=O:null),onClose:P[3]||(P[3]=O=>U.value=!1)},null,8,["visible"]),a.createVNode(qe,{visible:a.unref(Ee),"onUpdate:visible":P[4]||(P[4]=O=>a.isRef(Ee)?Ee.value=O:null),title:"Reset All...",question:"You are about to reset all of your settings. Do you want to proceed?",onYes:Ie,onNo:P[5]||(P[5]=O=>Ee.value=!1)},null,8,["visible"]),a.createVNode(ot,{visible:a.unref(q),"onUpdate:visible":P[6]||(P[6]=O=>a.isRef(q)?q.value=O:null),onClose:P[7]||(P[7]=O=>q.value=!1)},null,8,["visible"])],32)),a.createVNode(ft,{visible:a.unref(E),"onUpdate:visible":P[9]||(P[9]=O=>a.isRef(E)?E.value=O:null),title:a.unref(B),message:a.unref(M),onOk:k},null,8,["visible","title","message"]),a.createVNode(qe,{visible:a.unref(D),"onUpdate:visible":P[10]||(P[10]=O=>a.isRef(D)?D.value=O:null),title:"Check for Updates...",question:"Version "+a.unref(R)+" is available. Do you want to download it and install it?",onYes:A,onNo:P[11]||(P[11]=O=>D.value=!1)},null,8,["visible","question"]),a.createVNode(Xe,{visible:a.unref(T),"onUpdate:visible":P[12]||(P[12]=O=>a.isRef(T)?T.value=O:null),percent:a.unref($)},null,8,["visible","percent"]),a.createVNode(ft,{visible:a.unref(_),"onUpdate:visible":P[13]||(P[13]=O=>a.isRef(_)?_.value=O:null),title:"Check for Updates...",message:"No updates are available at this time.",onOk:P[14]||(P[14]=O=>_.value=!1)},null,8,["visible"])]),_:1},8,["blocked"])])}}}),I2e=$l(O2e,[["__scopeId","data-v-c27cd936"]]),gB="https://models.physiomeproject.org/",_2e=Ig(k3,{}),Na=Object.freeze({DATASET_ID:"dataset_id",DATASET_URL:"dataset_url",PMR_PATH:"pmr_path",RAW_COMBINE_ARCHIVE:"raw_combine_archive"}),$2e={name:"SimulationVuer",components:{PlotVuer:Ds.PlotVuer,SimulationVuerInput:D3,ElButton:fw,ElDivider:hw,ElLoading:YI,OpenCOR:I2e},props:{apiLocation:{required:!0,type:String},id:{required:!0,type:[Number,String,Uint8Array]}},data:function(){let e;if(typeof this.id=="number"?e=Na.DATASET_ID:this.id instanceof Uint8Array?e=Na.RAW_COMBINE_ARCHIVE:this.id.startsWith("https://")?e=Na.DATASET_URL:e=Na.PMR_PATH,e===Na.DATASET_ID){const t=new XMLHttpRequest;t.open("GET",this.apiLocation+"/sim/dataset/"+this.id),t.onreadystatechange=()=>{if(t.readyState===4&&t.status===200){const r=JSON.parse(t.responseText);this.name=r.name,this.uuid=r.study!==void 0?r.study.uuid:void 0}},t.send()}return{errorMessage:"",fileManager:void 0,hasFinalisedUi:!1,hasValidSimulationUiInfo:!1,idType:e,instance:void 0,isMounted:!1,isSimulationValid:!0,layout:[],model:void 0,name:null,opencorBasedSimulation:!0,opencorOmexFile:null,output:void 0,perfectScollbarOptions:{suppressScrollX:!0},showUserMessage:!1,simulationResults:{},simulationResultsId:{},simulationUiInfo:{},solver:void 0,userMessage:"",ui:null,uuid:null}},methods:{plotMetadata(e){return{version:"1.1.0",type:"plot",attrs:{style:"timeseries",layout:this.layout[e]}}},buildSimulationUi(e){if(this.simulationUiInfo=e,this.hasValidSimulationUiInfo=bne(this.simulationUiInfo),!this.hasValidSimulationUiInfo){this.errorMessage="the simulation.json file is malformed";return}if(this.simulationUiInfo.simulation.solvers.forEach(r=>{(r.if===void 0||_g(this,r.if))&&(this.solver=r)}),this.solver===void 0){this.hasValidSimulationUiInfo=!1,this.errorMessage="no solver name and/or solver version specified";return}this.opencorBasedSimulation=this.solver.name===E3,this.simulationUiInfo.output.data.forEach(r=>{this.simulationResultsId[r.id]=r.name});let t=-1;this.simulationUiInfo.output.plots.forEach(r=>{++t,this.layout[t]={paper_bgcolor:"rgba(0, 0, 0, 0)",plot_bgcolor:"rgba(0, 0, 0, 0)",autosize:!0,margin:{t:25,l:55,r:25,b:30,pad:4},loading:!1,options:{responsive:!0,scrollZoom:!0},dragmode:"pan",xaxis:{title:{text:r.xAxisTitle,font:{size:10}}},yaxis:{title:{text:r.yAxisTitle,font:{size:10}}}}}),this.$nextTick(()=>{B3(this)})},runOnOsparc(){window.open(`https://osparc.io/study/${this.uuid}`,"_blank")},viewDataset(){window.open(`https://sparc.science/datasets/${this.id}?type=dataset`,"_blank")},viewWorkspace(){const e=gB+this.id;window.open(e.substring(0,e.lastIndexOf("/")),"_blank")},parametersData(){const e={};return this.simulationUiInfo.parameters.forEach(t=>{e[t.name]=_g(this,t.value)}),e},outputData(){return this.output===void 0&&this.simulationUiInfo.output.data!==void 0&&(this.output=[],this.simulationUiInfo.output.data.forEach(e=>{this.output.push(e.name)})),this.output},retrieveRequest(){const e={solver:this.solver};if(this.opencorBasedSimulation){e.opencor={model_url:this.simulationUiInfo.simulation.opencor.resource,json_config:{}},this.simulationUiInfo.simulation.opencor.endingPoint!==void 0&&this.simulationUiInfo.simulation.opencor.pointInterval!==void 0&&(e.opencor.json_config.simulation={"Ending point":this.simulationUiInfo.simulation.opencor.endingPoint,"Point interval":this.simulationUiInfo.simulation.opencor.pointInterval}),e.opencor.json_config.parameters=this.parametersData();const t=this.outputData();t!==void 0&&(e.opencor.json_config.output=t)}else e.osparc={},e.osparc.job_inputs=this.parametersData();return e},processSimulationResults(e){if(typeof e=="string"){const n=/[ \t]+/g,i=e.trim().split(`
|
|
5286
|
-
`),o=i[0].trim().split(n).length;e={};for(let l=0;l<o;++l)e[l]=[];let s=-1;i.forEach(l=>{++s;let c=-1;l.trim().split(n).forEach(d=>{e[++c][s]=Number(d)})})}const t=new _2e.parser;Object.keys(this.simulationResultsId).forEach(n=>{t.set(n,e[this.simulationResultsId[n]])});let r=-1;this.simulationUiInfo.output.plots.forEach(n=>{this.simulationResults[++r]=[{x:t.evaluate(n.xValue),y:t.evaluate(n.yValue),type:"scatter"}]})},showHttpIssue(e){this.isSimulationValid=!1,this.showUserMessage=!1,this.errorMessage=e.statusText.toLowerCase()+" (<a href='https://httpstatuses.com/"+e.status+"/' target='_blank'>"+e.status+"</a>)"},checkSimulation(e){const t=new XMLHttpRequest;t.open("POST",this.apiLocation+"/check_simulation"),t.setRequestHeader("Content-type","application/json"),t.onreadystatechange=()=>{if(t.readyState===4)if(t.status===200){let r=JSON.parse(t.responseText);if(this.isSimulationValid=r.status==="ok",this.isSimulationValid)if(r.results!==void 0)this.showUserMessage=!1,this.processSimulationResults(r.results);else{let n=this;setTimeout(function(){n.checkSimulation(e)},1e3)}else this.showUserMessage=!1,this.errorMessage=r.description}else this.showHttpIssue(t)},t.send(JSON.stringify(e))},startSimulation(){this.userMessage="Loading simulation results...",this.showUserMessage=!0,this.$nextTick(()=>{this.simulationResults={};const e=new XMLHttpRequest;e.open("POST",this.apiLocation+"/start_simulation"),e.setRequestHeader("Content-type","application/json"),e.onreadystatechange=()=>{if(e.readyState===4)if(e.status===200){let t=JSON.parse(e.responseText);this.isSimulationValid=t.status==="ok",this.isSimulationValid?this.checkSimulation(t.data):(this.showUserMessage=!1,this.errorMessage=t.description)}else this.showHttpIssue(e)},e.send(JSON.stringify(this.retrieveRequest()))})}},created:function(){this.idType===Na.DATASET_ID?(this.userMessage="Retrieving UI information...",this.showUserMessage=!0,this.$nextTick(()=>{const e=new XMLHttpRequest;e.open("GET",this.apiLocation+"/simulation_ui_file/"+this.id),e.onreadystatechange=()=>{e.readyState===4&&(this.showUserMessage=!1,e.status===200?this.$nextTick(()=>{this.buildSimulationUi(JSON.parse(e.responseText))}):this.errorMessage="the simulation dataset could not be retrieved")},e.send()})):this.idType===Na.DATASET_URL?this.opencorOmexFile=this.id:this.idType===Na.PMR_PATH?this.opencorOmexFile=gB+this.id:this.opencorOmexFile=this.id},mounted:function(){this.isMounted=!0,B3(this)}},R2e=["element-loading-text"],P2e={key:0,class:"container"},z2e={key:0,class:"default error"},U2e={key:1,class:"main"},q2e={class:"default name"},V2e={class:"input scrollbar"},j2e={class:"buttons-container"},Q2e={class:"primary-button"},H2e={key:0,class:"secondary-button"},W2e={class:"secondary-button"},Z2e={key:1,class:"default note"},G2e={class:"main-right",ref:"output"},K2e={class:"main-right"},Y2e={class:"default error"},J2e=["innerHTML"],X2e={key:1,class:"opencor"};function L2e(e,t,r,n,i,o){const s=hw,l=D3,c=fw,u=a.resolveComponent("PlotVuer"),d=a.resolveComponent("OpenCOR"),f=Eh;return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"simulation-vuer","element-loading-text":e.userMessage},[e.opencorOmexFile===null?(a.openBlock(),a.createElementBlock("div",P2e,[!e.hasValidSimulationUiInfo&&!e.showUserMessage?(a.openBlock(),a.createElementBlock("p",z2e,[t[3]||(t[3]=a.createElementVNode("span",{class:"error"},"Error:",-1)),a.createTextVNode(" "+a.toDisplayString(e.errorMessage)+".",1)])):a.createCommentVNode("",!0),e.hasValidSimulationUiInfo?(a.openBlock(),a.createElementBlock("div",U2e,[a.createElementVNode("div",{class:a.normalizeClass(["main-left",{"with-buttons":e.uuid}])},[a.createElementVNode("p",q2e,a.toDisplayString(e.name),1),a.createVNode(s),t[7]||(t[7]=a.createElementVNode("p",{class:"default input-parameters"},"Input parameters",-1)),a.createElementVNode("div",V2e,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.simulationUiInfo.input,(p,m)=>(a.openBlock(),a.createBlock(l,{ref_for:!0,ref:"simInput",defaultValue:p.defaultValue,key:`input-${m}`,name:p.name,maximumValue:p.maximumValue,minimumValue:p.minimumValue,possibleValues:p.possibleValues,stepValue:p.stepValue},null,8,["defaultValue","name","maximumValue","minimumValue","possibleValues","stepValue"]))),128))]),a.createElementVNode("div",j2e,[a.createElementVNode("div",Q2e,[a.createVNode(c,{type:"primary",size:"small",onClick:t[0]||(t[0]=p=>o.startSimulation())},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("Run Simulation",-1)])]),_:1})]),e.uuid?(a.openBlock(),a.createElementBlock("div",H2e,[a.createVNode(c,{size:"small",onClick:t[1]||(t[1]=p=>o.runOnOsparc())},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode("Run on oSPARC",-1)])]),_:1})])):a.createCommentVNode("",!0),a.createElementVNode("div",W2e,[a.createVNode(c,{size:"small",onClick:t[2]||(t[2]=p=>o.viewDataset())},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode("View Dataset",-1)])]),_:1})]),e.uuid?(a.openBlock(),a.createElementBlock("p",Z2e,"Additional parameters are available on oSPARC")):a.createCommentVNode("",!0)])],2),a.withDirectives(a.createElementVNode("div",G2e,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.simulationUiInfo.output.plots,(p,m)=>(a.openBlock(),a.createBlock(u,{key:`output-${m}`,metadata:o.plotMetadata(m),"data-source":{data:e.simulationResults[m]},plotLayout:e.layout[m],plotType:"plotly-only",selectorUi:!1},null,8,["metadata","data-source","plotLayout"]))),128))],512),[[a.vShow,e.isSimulationValid]]),a.withDirectives(a.createElementVNode("div",K2e,[a.createElementVNode("p",Y2e,[t[8]||(t[8]=a.createElementVNode("span",{class:"error"},"Error:",-1)),t[9]||(t[9]=a.createTextVNode()),a.createElementVNode("span",{innerHTML:e.errorMessage},null,8,J2e),t[10]||(t[10]=a.createTextVNode(".",-1))])],512),[[a.vShow,!e.isSimulationValid]])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",X2e,[a.createVNode(d,{omex:e.opencorOmexFile,theme:"light"},null,8,["omex"])]))],8,R2e)),[[f,e.showUserMessage]])}const eCe=A3($2e,[["render",L2e],["__scopeId","data-v-aadc9aa1"]]);var vB=typeof global=="object"&&global&&global.Object===Object&&global,tCe=typeof self=="object"&&self&&self.Object===Object&&self,Xo=vB||tCe||Function("return this")(),Ba=Xo.Symbol,bB=Object.prototype,rCe=bB.hasOwnProperty,nCe=bB.toString,jc=Ba?Ba.toStringTag:void 0;function oCe(e){var t=rCe.call(e,jc),r=e[jc];try{e[jc]=void 0;var n=!0}catch{}var i=nCe.call(e);return n&&(t?e[jc]=r:delete e[jc]),i}var iCe=Object.prototype,aCe=iCe.toString;function sCe(e){return aCe.call(e)}var lCe="[object Null]",uCe="[object Undefined]",yB=Ba?Ba.toStringTag:void 0;function Pl(e){return e==null?e===void 0?uCe:lCe:yB&&yB in Object(e)?oCe(e):sCe(e)}function $i(e){return e!=null&&typeof e=="object"}var gs=Array.isArray;function Aa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function wB(e){return e}var cCe="[object AsyncFunction]",dCe="[object Function]",fCe="[object GeneratorFunction]",pCe="[object Proxy]";function y0(e){if(!Aa(e))return!1;var t=Pl(e);return t==dCe||t==fCe||t==cCe||t==pCe}var w0=Xo["__core-js_shared__"],xB=function(){var e=/[^.]+$/.exec(w0&&w0.keys&&w0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mCe(e){return!!xB&&xB in e}var hCe=Function.prototype,gCe=hCe.toString;function vs(e){if(e!=null){try{return gCe.call(e)}catch{}try{return e+""}catch{}}return""}var vCe=/[\\^$.*+?()[\]{}|]/g,bCe=/^\[object .+?Constructor\]$/,yCe=Function.prototype,wCe=Object.prototype,xCe=yCe.toString,CCe=wCe.hasOwnProperty,SCe=RegExp("^"+xCe.call(CCe).replace(vCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kCe(e){if(!Aa(e)||mCe(e))return!1;var t=y0(e)?SCe:bCe;return t.test(vs(e))}function ECe(e,t){return e==null?void 0:e[t]}function bs(e,t){var r=ECe(e,t);return kCe(r)?r:void 0}var x0=bs(Xo,"WeakMap"),CB=Object.create,NCe=function(){function e(){}return function(t){if(!Aa(t))return{};if(CB)return CB(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function BCe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ACe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var DCe=800,MCe=16,TCe=Date.now;function FCe(e){var t=0,r=0;return function(){var n=TCe(),i=MCe-(n-r);if(r=n,i>0){if(++t>=DCe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function OCe(e){return function(){return e}}var zp=function(){try{var e=bs(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ICe=zp?function(e,t){return zp(e,"toString",{configurable:!0,enumerable:!1,value:OCe(t),writable:!0})}:wB,_Ce=FCe(ICe);function $Ce(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var RCe=9007199254740991,PCe=/^(?:0|[1-9]\d*)$/;function SB(e,t){var r=typeof e;return t=t??RCe,!!t&&(r=="number"||r!="symbol"&&PCe.test(e))&&e>-1&&e%1==0&&e<t}function C0(e,t,r){t=="__proto__"&&zp?zp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Qc(e,t){return e===t||e!==e&&t!==t}var zCe=Object.prototype,UCe=zCe.hasOwnProperty;function kB(e,t,r){var n=e[t];(!(UCe.call(e,t)&&Qc(n,r))||r===void 0&&!(t in e))&&C0(e,t,r)}function qCe(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=void 0;c===void 0&&(c=e[l]),i?C0(r,l,c):kB(r,l,c)}return r}var EB=Math.max;function VCe(e,t,r){return t=EB(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=EB(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(s),BCe(e,this,l)}}function jCe(e,t){return _Ce(VCe(e,t,wB),e+"")}var QCe=9007199254740991;function NB(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=QCe}function Up(e){return e!=null&&NB(e.length)&&!y0(e)}function HCe(e,t,r){if(!Aa(r))return!1;var n=typeof t;return(n=="number"?Up(r)&&SB(t,r.length):n=="string"&&t in r)?Qc(r[t],e):!1}function WCe(e){return jCe(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&HCe(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,o)}return t})}var ZCe=Object.prototype;function S0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ZCe;return e===r}function GCe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var KCe="[object Arguments]";function BB(e){return $i(e)&&Pl(e)==KCe}var AB=Object.prototype,YCe=AB.hasOwnProperty,JCe=AB.propertyIsEnumerable,k0=BB(function(){return arguments}())?BB:function(e){return $i(e)&&YCe.call(e,"callee")&&!JCe.call(e,"callee")};function XCe(){return!1}var DB=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,MB=DB&&typeof module=="object"&&module&&!module.nodeType&&module,LCe=MB&&MB.exports===DB,TB=LCe?Xo.Buffer:void 0,eSe=TB?TB.isBuffer:void 0,Hc=eSe||XCe,tSe="[object Arguments]",rSe="[object Array]",nSe="[object Boolean]",oSe="[object Date]",iSe="[object Error]",aSe="[object Function]",sSe="[object Map]",lSe="[object Number]",uSe="[object Object]",cSe="[object RegExp]",dSe="[object Set]",fSe="[object String]",pSe="[object WeakMap]",mSe="[object ArrayBuffer]",hSe="[object DataView]",gSe="[object Float32Array]",vSe="[object Float64Array]",bSe="[object Int8Array]",ySe="[object Int16Array]",wSe="[object Int32Array]",xSe="[object Uint8Array]",CSe="[object Uint8ClampedArray]",SSe="[object Uint16Array]",kSe="[object Uint32Array]",Lt={};Lt[gSe]=Lt[vSe]=Lt[bSe]=Lt[ySe]=Lt[wSe]=Lt[xSe]=Lt[CSe]=Lt[SSe]=Lt[kSe]=!0,Lt[tSe]=Lt[rSe]=Lt[mSe]=Lt[nSe]=Lt[hSe]=Lt[oSe]=Lt[iSe]=Lt[aSe]=Lt[sSe]=Lt[lSe]=Lt[uSe]=Lt[cSe]=Lt[dSe]=Lt[fSe]=Lt[pSe]=!1;function ESe(e){return $i(e)&&NB(e.length)&&!!Lt[Pl(e)]}function E0(e){return function(t){return e(t)}}var FB=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,Wc=FB&&typeof module=="object"&&module&&!module.nodeType&&module,NSe=Wc&&Wc.exports===FB,N0=NSe&&vB.process,zl=function(){try{var e=Wc&&Wc.require&&Wc.require("util").types;return e||N0&&N0.binding&&N0.binding("util")}catch{}}(),OB=zl&&zl.isTypedArray,B0=OB?E0(OB):ESe,BSe=Object.prototype,ASe=BSe.hasOwnProperty;function IB(e,t){var r=gs(e),n=!r&&k0(e),i=!r&&!n&&Hc(e),o=!r&&!n&&!i&&B0(e),s=r||n||i||o,l=s?GCe(e.length,String):[],c=l.length;for(var u in e)(t||ASe.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||SB(u,c)))&&l.push(u);return l}function _B(e,t){return function(r){return e(t(r))}}var DSe=_B(Object.keys,Object),MSe=Object.prototype,TSe=MSe.hasOwnProperty;function FSe(e){if(!S0(e))return DSe(e);var t=[];for(var r in Object(e))TSe.call(e,r)&&r!="constructor"&&t.push(r);return t}function OSe(e){return Up(e)?IB(e):FSe(e)}function ISe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var _Se=Object.prototype,$Se=_Se.hasOwnProperty;function RSe(e){if(!Aa(e))return ISe(e);var t=S0(e),r=[];for(var n in e)n=="constructor"&&(t||!$Se.call(e,n))||r.push(n);return r}function $B(e){return Up(e)?IB(e,!0):RSe(e)}var Zc=bs(Object,"create");function PSe(){this.__data__=Zc?Zc(null):{},this.size=0}function zSe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var USe="__lodash_hash_undefined__",qSe=Object.prototype,VSe=qSe.hasOwnProperty;function jSe(e){var t=this.__data__;if(Zc){var r=t[e];return r===USe?void 0:r}return VSe.call(t,e)?t[e]:void 0}var QSe=Object.prototype,HSe=QSe.hasOwnProperty;function WSe(e){var t=this.__data__;return Zc?t[e]!==void 0:HSe.call(t,e)}var ZSe="__lodash_hash_undefined__";function GSe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zc&&t===void 0?ZSe:t,this}function ys(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ys.prototype.clear=PSe,ys.prototype.delete=zSe,ys.prototype.get=jSe,ys.prototype.has=WSe,ys.prototype.set=GSe;function KSe(){this.__data__=[],this.size=0}function qp(e,t){for(var r=e.length;r--;)if(Qc(e[r][0],t))return r;return-1}var YSe=Array.prototype,JSe=YSe.splice;function XSe(e){var t=this.__data__,r=qp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():JSe.call(t,r,1),--this.size,!0}function LSe(e){var t=this.__data__,r=qp(t,e);return r<0?void 0:t[r][1]}function e4e(e){return qp(this.__data__,e)>-1}function t4e(e,t){var r=this.__data__,n=qp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ri(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ri.prototype.clear=KSe,Ri.prototype.delete=XSe,Ri.prototype.get=LSe,Ri.prototype.has=e4e,Ri.prototype.set=t4e;var Gc=bs(Xo,"Map");function r4e(){this.size=0,this.__data__={hash:new ys,map:new(Gc||Ri),string:new ys}}function n4e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vp(e,t){var r=e.__data__;return n4e(t)?r[typeof t=="string"?"string":"hash"]:r.map}function o4e(e){var t=Vp(this,e).delete(e);return this.size-=t?1:0,t}function i4e(e){return Vp(this,e).get(e)}function a4e(e){return Vp(this,e).has(e)}function s4e(e,t){var r=Vp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ws(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ws.prototype.clear=r4e,ws.prototype.delete=o4e,ws.prototype.get=i4e,ws.prototype.has=a4e,ws.prototype.set=s4e;function l4e(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var RB=_B(Object.getPrototypeOf,Object),u4e="[object Object]",c4e=Function.prototype,d4e=Object.prototype,PB=c4e.toString,f4e=d4e.hasOwnProperty,p4e=PB.call(Object);function m4e(e){if(!$i(e)||Pl(e)!=u4e)return!1;var t=RB(e);if(t===null)return!0;var r=f4e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&PB.call(r)==p4e}function h4e(){this.__data__=new Ri,this.size=0}function g4e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function v4e(e){return this.__data__.get(e)}function b4e(e){return this.__data__.has(e)}var y4e=200;function w4e(e,t){var r=this.__data__;if(r instanceof Ri){var n=r.__data__;if(!Gc||n.length<y4e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ws(n)}return r.set(e,t),this.size=r.size,this}function Lo(e){var t=this.__data__=new Ri(e);this.size=t.size}Lo.prototype.clear=h4e,Lo.prototype.delete=g4e,Lo.prototype.get=v4e,Lo.prototype.has=b4e,Lo.prototype.set=w4e;var zB=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,UB=zB&&typeof module=="object"&&module&&!module.nodeType&&module,x4e=UB&&UB.exports===zB,qB=x4e?Xo.Buffer:void 0,VB=qB?qB.allocUnsafe:void 0;function jB(e,t){if(t)return e.slice();var r=e.length,n=VB?VB(r):new e.constructor(r);return e.copy(n),n}function C4e(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function S4e(){return[]}var k4e=Object.prototype,E4e=k4e.propertyIsEnumerable,QB=Object.getOwnPropertySymbols,N4e=QB?function(e){return e==null?[]:(e=Object(e),C4e(QB(e),function(t){return E4e.call(e,t)}))}:S4e;function B4e(e,t,r){var n=t(e);return gs(e)?n:l4e(n,r(e))}function A0(e){return B4e(e,OSe,N4e)}var D0=bs(Xo,"DataView"),M0=bs(Xo,"Promise"),T0=bs(Xo,"Set"),HB="[object Map]",A4e="[object Object]",WB="[object Promise]",ZB="[object Set]",GB="[object WeakMap]",KB="[object DataView]",D4e=vs(D0),M4e=vs(Gc),T4e=vs(M0),F4e=vs(T0),O4e=vs(x0),bo=Pl;(D0&&bo(new D0(new ArrayBuffer(1)))!=KB||Gc&&bo(new Gc)!=HB||M0&&bo(M0.resolve())!=WB||T0&&bo(new T0)!=ZB||x0&&bo(new x0)!=GB)&&(bo=function(e){var t=Pl(e),r=t==A4e?e.constructor:void 0,n=r?vs(r):"";if(n)switch(n){case D4e:return KB;case M4e:return HB;case T4e:return WB;case F4e:return ZB;case O4e:return GB}return t});var I4e=Object.prototype,_4e=I4e.hasOwnProperty;function $4e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&_4e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var jp=Xo.Uint8Array;function F0(e){var t=new e.constructor(e.byteLength);return new jp(t).set(new jp(e)),t}function R4e(e,t){var r=F0(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var P4e=/\w*$/;function z4e(e){var t=new e.constructor(e.source,P4e.exec(e));return t.lastIndex=e.lastIndex,t}var YB=Ba?Ba.prototype:void 0,JB=YB?YB.valueOf:void 0;function U4e(e){return JB?Object(JB.call(e)):{}}function XB(e,t){var r=t?F0(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var q4e="[object Boolean]",V4e="[object Date]",j4e="[object Map]",Q4e="[object Number]",H4e="[object RegExp]",W4e="[object Set]",Z4e="[object String]",G4e="[object Symbol]",K4e="[object ArrayBuffer]",Y4e="[object DataView]",J4e="[object Float32Array]",X4e="[object Float64Array]",L4e="[object Int8Array]",eke="[object Int16Array]",tke="[object Int32Array]",rke="[object Uint8Array]",nke="[object Uint8ClampedArray]",oke="[object Uint16Array]",ike="[object Uint32Array]";function ake(e,t,r){var n=e.constructor;switch(t){case K4e:return F0(e);case q4e:case V4e:return new n(+e);case Y4e:return R4e(e);case J4e:case X4e:case L4e:case eke:case tke:case rke:case nke:case oke:case ike:return XB(e,r);case j4e:return new n;case Q4e:case Z4e:return new n(e);case H4e:return z4e(e);case W4e:return new n;case G4e:return U4e(e)}}function LB(e){return typeof e.constructor=="function"&&!S0(e)?NCe(RB(e)):{}}var ske="[object Map]";function lke(e){return $i(e)&&bo(e)==ske}var e6=zl&&zl.isMap,uke=e6?E0(e6):lke,cke="[object Set]";function dke(e){return $i(e)&&bo(e)==cke}var t6=zl&&zl.isSet,fke=t6?E0(t6):dke,pke=1,r6="[object Arguments]",mke="[object Array]",hke="[object Boolean]",gke="[object Date]",vke="[object Error]",n6="[object Function]",bke="[object GeneratorFunction]",yke="[object Map]",wke="[object Number]",o6="[object Object]",xke="[object RegExp]",Cke="[object Set]",Ske="[object String]",kke="[object Symbol]",Eke="[object WeakMap]",Nke="[object ArrayBuffer]",Bke="[object DataView]",Ake="[object Float32Array]",Dke="[object Float64Array]",Mke="[object Int8Array]",Tke="[object Int16Array]",Fke="[object Int32Array]",Oke="[object Uint8Array]",Ike="[object Uint8ClampedArray]",_ke="[object Uint16Array]",$ke="[object Uint32Array]",Zt={};Zt[r6]=Zt[mke]=Zt[Nke]=Zt[Bke]=Zt[hke]=Zt[gke]=Zt[Ake]=Zt[Dke]=Zt[Mke]=Zt[Tke]=Zt[Fke]=Zt[yke]=Zt[wke]=Zt[o6]=Zt[xke]=Zt[Cke]=Zt[Ske]=Zt[kke]=Zt[Oke]=Zt[Ike]=Zt[_ke]=Zt[$ke]=!0,Zt[vke]=Zt[n6]=Zt[Eke]=!1;function Qp(e,t,r,n,i,o){var s,l=t&pke;if(s!==void 0)return s;if(!Aa(e))return e;var c=gs(e);if(c)s=$4e(e);else{var u=bo(e),d=u==n6||u==bke;if(Hc(e))return jB(e,l);if(u==o6||u==r6||d&&!i)s=d?{}:LB(e);else{if(!Zt[u])return i?e:{};s=ake(e,u,l)}}o||(o=new Lo);var f=o.get(e);if(f)return f;o.set(e,s),fke(e)?e.forEach(function(h){s.add(Qp(h,t,r,h,e,o))}):uke(e)&&e.forEach(function(h,g){s.set(g,Qp(h,t,r,g,e,o))});var p=A0,m=c?void 0:p(e);return $Ce(m||e,function(h,g){m&&(g=h,h=e[g]),kB(s,g,Qp(h,t,r,g,e,o))}),s}var Rke=1,Pke=4;function Ul(e){return Qp(e,Rke|Pke)}var zke="__lodash_hash_undefined__";function Uke(e){return this.__data__.set(e,zke),this}function qke(e){return this.__data__.has(e)}function Hp(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ws;++t<r;)this.add(e[t])}Hp.prototype.add=Hp.prototype.push=Uke,Hp.prototype.has=qke;function Vke(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function jke(e,t){return e.has(t)}var Qke=1,Hke=2;function i6(e,t,r,n,i,o){var s=r&Qke,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&Hke?new Hp:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var h=e[f],g=t[f];if(n)var v=s?n(g,h,f,t,e,o):n(h,g,f,e,t,o);if(v!==void 0){if(v)continue;p=!1;break}if(m){if(!Vke(t,function(b,w){if(!jke(m,w)&&(h===b||i(h,b,r,n,o)))return m.push(w)})){p=!1;break}}else if(!(h===g||i(h,g,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Wke(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Zke(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Gke=1,Kke=2,Yke="[object Boolean]",Jke="[object Date]",Xke="[object Error]",Lke="[object Map]",e3e="[object Number]",t3e="[object RegExp]",r3e="[object Set]",n3e="[object String]",o3e="[object Symbol]",i3e="[object ArrayBuffer]",a3e="[object DataView]",a6=Ba?Ba.prototype:void 0,O0=a6?a6.valueOf:void 0;function s3e(e,t,r,n,i,o,s){switch(r){case a3e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case i3e:return!(e.byteLength!=t.byteLength||!o(new jp(e),new jp(t)));case Yke:case Jke:case e3e:return Qc(+e,+t);case Xke:return e.name==t.name&&e.message==t.message;case t3e:case n3e:return e==t+"";case Lke:var l=Wke;case r3e:var c=n&Gke;if(l||(l=Zke),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=Kke,s.set(e,t);var d=i6(l(e),l(t),n,i,o,s);return s.delete(e),d;case o3e:if(O0)return O0.call(e)==O0.call(t)}return!1}var l3e=1,u3e=Object.prototype,c3e=u3e.hasOwnProperty;function d3e(e,t,r,n,i,o){var s=r&l3e,l=A0(e),c=l.length,u=A0(t),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in t:c3e.call(t,p)))return!1}var m=o.get(e),h=o.get(t);if(m&&h)return m==t&&h==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=s;++f<c;){p=l[f];var b=e[p],w=t[p];if(n)var y=s?n(w,b,p,t,e,o):n(b,w,p,e,t,o);if(!(y===void 0?b===w||i(b,w,r,n,o):y)){g=!1;break}v||(v=p=="constructor")}if(g&&!v){var S=e.constructor,x=t.constructor;S!=x&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof x=="function"&&x instanceof x)&&(g=!1)}return o.delete(e),o.delete(t),g}var f3e=1,s6="[object Arguments]",l6="[object Array]",Wp="[object Object]",p3e=Object.prototype,u6=p3e.hasOwnProperty;function m3e(e,t,r,n,i,o){var s=gs(e),l=gs(t),c=s?l6:bo(e),u=l?l6:bo(t);c=c==s6?Wp:c,u=u==s6?Wp:u;var d=c==Wp,f=u==Wp,p=c==u;if(p&&Hc(e)){if(!Hc(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new Lo),s||B0(e)?i6(e,t,r,n,i,o):s3e(e,t,c,r,n,i,o);if(!(r&f3e)){var m=d&&u6.call(e,"__wrapped__"),h=f&&u6.call(t,"__wrapped__");if(m||h){var g=m?e.value():e,v=h?t.value():t;return o||(o=new Lo),i(g,v,r,n,o)}}return p?(o||(o=new Lo),d3e(e,t,r,n,i,o)):!1}function c6(e,t,r,n,i){return e===t?!0:e==null||t==null||!$i(e)&&!$i(t)?e!==e&&t!==t:m3e(e,t,r,n,c6,i)}function h3e(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),l=s.length;l--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var g3e=h3e();function I0(e,t,r){(r!==void 0&&!Qc(e[t],r)||r===void 0&&!(t in e))&&C0(e,t,r)}function v3e(e){return $i(e)&&Up(e)}function _0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function b3e(e){return qCe(e,$B(e))}function y3e(e,t,r,n,i,o,s){var l=_0(e,r),c=_0(t,r),u=s.get(c);if(u){I0(e,r,u);return}var d=o?o(l,c,r+"",e,t,s):void 0,f=d===void 0;if(f){var p=gs(c),m=!p&&Hc(c),h=!p&&!m&&B0(c);d=c,p||m||h?gs(l)?d=l:v3e(l)?d=ACe(l):m?(f=!1,d=jB(c,!0)):h?(f=!1,d=XB(c,!0)):d=[]:m4e(c)||k0(c)?(d=l,k0(l)?d=b3e(l):(!Aa(l)||y0(l))&&(d=LB(c))):f=!1}f&&(s.set(c,d),i(d,c,n,o,s),s.delete(c)),I0(e,r,d)}function d6(e,t,r,n,i){e!==t&&g3e(t,function(o,s){if(i||(i=new Lo),Aa(o))y3e(e,t,s,r,d6,n,i);else{var l=n?n(_0(e,s),o,s+"",e,t,i):void 0;l===void 0&&(l=o),I0(e,s,l)}},$B)}function $0(e,t){return c6(e,t)}var Da=WCe(function(e,t,r){d6(e,t,r)}),He=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(He||{});class ei{constructor(t,r,n={}){this.attrName=t,this.keyName=r;const i=He.TYPE&He.ATTRIBUTE;this.scope=n.scope!=null?n.scope&He.LEVEL|i:He.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(r=>r.name)}add(t,r){return this.canAdd(t,r)?(t.setAttribute(this.keyName,r),!0):!1}canAdd(t,r){return this.whitelist==null?!0:typeof r=="string"?this.whitelist.indexOf(r.replace(/["']/g,""))>-1:this.whitelist.indexOf(r)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const r=t.getAttribute(this.keyName);return this.canAdd(t,r)&&r?r:""}}class ql extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const f6=class Pb{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,r=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(r){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,r)}return null}create(t,r,n){const i=this.query(r);if(i==null)throw new ql(`Unable to create ${r} blot`);const o=i,s=r instanceof Node||r.nodeType===Node.TEXT_NODE?r:o.create(n),l=new o(t,s,n);return Pb.blots.set(l.domNode,l),l}find(t,r=!1){return Pb.find(t,r)}query(t,r=He.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&He.LEVEL&He.BLOCK?n=this.types.block:t&He.LEVEL&He.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&r&He.LEVEL&n.scope&&r&He.TYPE&n.scope?n:null}register(...t){return t.map(r=>{const n="blotName"in r,i="attrName"in r;if(!n&&!i)throw new ql("Invalid definition");if(n&&r.blotName==="abstract")throw new ql("Cannot register abstract class");const o=n?r.blotName:i?r.attrName:void 0;return this.types[o]=r,i?typeof r.keyName=="string"&&(this.attributes[r.keyName]=r):n&&(r.className&&(this.classes[r.className]=r),r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(s=>s.toUpperCase()):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(s=>{(this.tags[s]==null||r.className==null)&&(this.tags[s]=r)}))),r})}};f6.blots=new WeakMap;let Vl=f6;function p6(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(r=>r.indexOf(`${t}-`)===0)}class w3e extends ei{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(r=>r.split("-").slice(0,-1).join("-"))}add(t,r){return this.canAdd(t,r)?(this.remove(t),t.classList.add(`${this.keyName}-${r}`),!0):!1}remove(t){p6(t,this.keyName).forEach(r=>{t.classList.remove(r)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const r=(p6(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,r)?r:""}}const yo=w3e;function R0(e){const t=e.split("-"),r=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+r}class x3e extends ei{static keys(t){return(t.getAttribute("style")||"").split(";").map(r=>r.split(":")[0].trim())}add(t,r){return this.canAdd(t,r)?(t.style[R0(this.keyName)]=r,!0):!1}remove(t){t.style[R0(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const r=t.style[R0(this.keyName)];return this.canAdd(t,r)?r:""}}const Ma=x3e;class C3e{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,r){r?t.add(this.domNode,r)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=Vl.find(this.domNode);if(t==null)return;const r=ei.keys(this.domNode),n=yo.keys(this.domNode),i=Ma.keys(this.domNode);r.concat(n).concat(i).forEach(o=>{const s=t.scroll.query(o,He.ATTRIBUTE);s instanceof ei&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(r=>{const n=this.attributes[r].value(this.domNode);t.format(r,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(r=>{this.attributes[r].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,r)=>(t[r]=this.attributes[r].value(this.domNode),t),{})}}const Zp=C3e,m6=class{constructor(e,t){this.scroll=e,this.domNode=t,Vl.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new ql("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Vl.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,n){const i=this.isolate(e,t);if(this.scroll.query(r,He.BLOT)!=null&&n)i.wrap(r,n);else if(this.scroll.query(r,He.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(r,n)}}insertAt(e,t,r){const n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),i=this.split(e);this.parent.insertBefore(n,i||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new ql(`Cannot wrap ${e}`);return r.appendChild(this),r}};m6.blotName="abstract";let h6=m6;const g6=class extends h6{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};g6.scope=He.INLINE_BLOT;const Hr=g6;class S3e{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const r=t.slice(1);this.append(...r)}}at(t){const r=this.iterator();let n=r();for(;n&&t>0;)t-=1,n=r();return n}contains(t){const r=this.iterator();let n=r();for(;n;){if(n===t)return!0;n=r()}return!1}indexOf(t){const r=this.iterator();let n=r(),i=0;for(;n;){if(n===t)return i;i+=1,n=r()}return-1}insertBefore(t,r){t!=null&&(this.remove(t),t.next=r,r!=null?(t.prev=r.prev,r.prev!=null&&(r.prev.next=t),r.prev=t,r===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let r=0,n=this.head;for(;n!=null;){if(n===t)return r;r+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const r=t;return t!=null&&(t=t.next),r}}find(t,r=!1){const n=this.iterator();let i=n();for(;i;){const o=i.length();if(t<o||r&&t===o&&(i.next==null||i.next.length()!==0))return[i,t];t-=o,i=n()}return[null,0]}forEach(t){const r=this.iterator();let n=r();for(;n;)t(n),n=r()}forEachAt(t,r,n){if(r<=0)return;const[i,o]=this.find(t);let s=t-o;const l=this.iterator(i);let c=l();for(;c&&s<t+r;){const u=c.length();t>s?n(c,t-s,Math.min(r,s+u-t)):n(c,0,Math.min(u,t+r-s)),s+=u,c=l()}}map(t){return this.reduce((r,n)=>(r.push(t(n)),r),[])}reduce(t,r){const n=this.iterator();let i=n();for(;i;)r=t(r,i),i=n();return r}}function v6(e,t){const r=t.find(e);if(r)return r;try{return t.create(e)}catch{const n=t.create(He.INLINE);return Array.from(e.childNodes).forEach(i=>{n.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}const b6=class Ua extends h6{constructor(t,r){super(t,r),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,Ua.uiClass&&this.uiNode.classList.add(Ua.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new S3e,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const r=v6(t,this.scroll);this.insertBefore(r,this.children.head||void 0)}catch(r){if(r instanceof ql)return;throw r}})}deleteAt(t,r){if(t===0&&r===this.length())return this.remove();this.children.forEachAt(t,r,(n,i,o)=>{n.deleteAt(i,o)})}descendant(t,r=0){const[n,i]=this.children.find(r);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,i]:n instanceof Ua?n.descendant(t,i):[null,-1]}descendants(t,r=0,n=Number.MAX_VALUE){let i=[],o=n;return this.children.forEachAt(r,n,(s,l,c)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&i.push(s),s instanceof Ua&&(i=i.concat(s.descendants(t,l,o))),o-=c}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(r=>{t||this.statics.allowedChildren.some(n=>r instanceof n)||(r.statics.scope===He.BLOCK_BLOT?(r.next!=null&&this.splitAfter(r),r.prev!=null&&this.splitAfter(r.prev),r.parent.unwrap(),t=!0):r instanceof Ua?r.unwrap():r.remove())})}formatAt(t,r,n,i){this.children.forEachAt(t,r,(o,s,l)=>{o.formatAt(s,l,n,i)})}insertAt(t,r,n){const[i,o]=this.children.find(t);if(i)i.insertAt(o,r,n);else{const s=n==null?this.scroll.create("text",r):this.scroll.create(r,n);this.appendChild(s)}}insertBefore(t,r){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,r||null),t.parent=this,r!=null&&(n=r.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,r)=>t+r.length(),0)}moveChildren(t,r){this.children.forEach(n=>{t.insertBefore(n,r)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r)}else this.remove()}path(t,r=!1){const[n,i]=this.children.find(t,r),o=[[this,t]];return n instanceof Ua?o.concat(n.path(i,r)):(n!=null&&o.push([n,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,r){const n=typeof t=="string"?this.scroll.create(t,r):t;return n instanceof Ua&&this.moveChildren(n),super.replaceWith(n)}split(t,r=!1){if(!r){if(t===0)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(i,o,s)=>{const l=i.split(o,r);l!=null&&n.appendChild(l)}),n}splitAfter(t){const r=this.clone();for(;t.next!=null;)r.appendChild(t.next);return this.parent&&this.parent.insertBefore(r,this.next||void 0),r}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,r){const n=[],i=[];t.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(n.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(o);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),n.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,s)=>o===s?0:o.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let s=null;o.nextSibling!=null&&(s=this.scroll.find(o.nextSibling));const l=v6(o,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};b6.uiClass="";const wo=b6;function k3e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}const jl=class tu extends wo{static create(t){return super.create(t)}static formats(t,r){const n=r.query(tu.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,r){super(t,r),this.attributes=new Zp(this.domNode)}format(t,r){if(t===this.statics.blotName&&!r)this.children.forEach(n=>{n instanceof tu||(n=n.wrap(tu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,He.INLINE);if(n==null)return;n instanceof ei?this.attributes.attribute(n,r):r&&(t!==this.statics.blotName||this.formats()[t]!==r)&&this.replaceWith(t,r)}}formats(){const t=this.attributes.values(),r=this.statics.formats(this.domNode,this.scroll);return r!=null&&(t[this.statics.blotName]=r),t}formatAt(t,r,n,i){this.formats()[n]!=null||this.scroll.query(n,He.ATTRIBUTE)?this.isolate(t,r).format(n,i):super.formatAt(t,r,n,i)}optimize(t){super.optimize(t);const r=this.formats();if(Object.keys(r).length===0)return this.unwrap();const n=this.next;n instanceof tu&&n.prev===this&&k3e(r,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,r){const n=super.replaceWith(t,r);return this.attributes.copy(n),n}update(t,r){super.update(t,r),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,r){const n=super.wrap(t,r);return n instanceof tu&&this.attributes.move(n),n}};jl.allowedChildren=[jl,Hr],jl.blotName="inline",jl.scope=He.INLINE_BLOT,jl.tagName="SPAN";const P0=jl,Ql=class zb extends wo{static create(t){return super.create(t)}static formats(t,r){const n=r.query(zb.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,r){super(t,r),this.attributes=new Zp(this.domNode)}format(t,r){const n=this.scroll.query(t,He.BLOCK);n!=null&&(n instanceof ei?this.attributes.attribute(n,r):t===this.statics.blotName&&!r?this.replaceWith(zb.blotName):r&&(t!==this.statics.blotName||this.formats()[t]!==r)&&this.replaceWith(t,r))}formats(){const t=this.attributes.values(),r=this.statics.formats(this.domNode,this.scroll);return r!=null&&(t[this.statics.blotName]=r),t}formatAt(t,r,n,i){this.scroll.query(n,He.BLOCK)!=null?this.format(n,i):super.formatAt(t,r,n,i)}insertAt(t,r,n){if(n==null||this.scroll.query(r,He.INLINE)!=null)super.insertAt(t,r,n);else{const i=this.split(t);if(i!=null){const o=this.scroll.create(r,n);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,r){const n=super.replaceWith(t,r);return this.attributes.copy(n),n}update(t,r){super.update(t,r),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Ql.blotName="block",Ql.scope=He.BLOCK_BLOT,Ql.tagName="P",Ql.allowedChildren=[P0,Ql,Hr];const Kc=Ql,z0=class extends wo{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,n){super.formatAt(e,t,r,n),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};z0.blotName="container",z0.scope=He.BLOCK_BLOT;const Gp=z0;class E3e extends Hr{static formats(t,r){}format(t,r){super.formatAt(0,this.length(),t,r)}formatAt(t,r,n,i){t===0&&r===this.length()?this.format(n,i):super.formatAt(t,r,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Mn=E3e,N3e={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},B3e=100,Hl=class extends wo{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,N3e),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=He.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,n){this.update(),super.formatAt(e,t,r,n)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)e.push(n.pop());const i=(l,c=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),c&&i(l.parent))},o=l=>{r.has(l.domNode)&&(l instanceof wo&&l.children.forEach(o),r.delete(l.domNode),l.optimize(t))};let s=e;for(let l=0;s.length>0;l+=1){if(l>=B3e)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(c=>{const u=this.find(c.target,!0);u!=null&&(u.domNode===c.target&&(c.type==="childList"?(i(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(d=>{const f=this.find(d,!1);i(f,!1),f instanceof wo&&f.children.forEach(p=>{i(p,!1)})})):c.type==="attributes"&&i(u.prev)),i(u))}),this.children.forEach(o),s=Array.from(this.observer.takeRecords()),n=s.slice();n.length>0;)e.push(n.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(n=>{const i=this.find(n.target,!0);return i==null?null:r.has(i.domNode)?(r.get(i.domNode).push(n),null):(r.set(i.domNode,[n]),i)}).forEach(n=>{n!=null&&n!==this&&r.has(n.domNode)&&n.update(r.get(n.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};Hl.blotName="scroll",Hl.defaultChild=Kc,Hl.allowedChildren=[Kc,Gp],Hl.scope=He.BLOCK_BLOT,Hl.tagName="DIV";const U0=Hl,q0=class AA extends Hr{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,r){super(t,r),this.text=this.statics.value(this.domNode)}deleteAt(t,r){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+r)}index(t,r){return this.domNode===t?r:-1}insertAt(t,r,n){n==null?(this.text=this.text.slice(0,t)+r+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,r,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof AA&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,r=!1){return[this.domNode,t]}split(t,r=!1){if(!r){if(t===0)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,r){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};q0.blotName="text",q0.scope=He.INLINE_BLOT;const Kp=q0,y6=Object.freeze(Object.defineProperty({__proto__:null,Attributor:ei,AttributorStore:Zp,BlockBlot:Kc,ClassAttributor:yo,ContainerBlot:Gp,EmbedBlot:Mn,InlineBlot:P0,LeafBlot:Hr,ParentBlot:wo,Registry:Vl,Scope:He,ScrollBlot:U0,StyleAttributor:Ma,TextBlot:Kp},Symbol.toStringTag,{value:"Module"}));var V0={exports:{}},j0,w6;function A3e(){if(w6)return j0;w6=1;var e=-1,t=1,r=0;function n(k,D,T,R,$){if(k===D)return k?[[r,k]]:[];if(T!=null){var A=B(k,D,T);if(A)return A}var _=l(k,D),q=k.substring(0,_);k=k.substring(_),D=D.substring(_),_=u(k,D);var z=k.substring(k.length-_);k=k.substring(0,k.length-_),D=D.substring(0,D.length-_);var U=i(k,D);return q&&U.unshift([r,q]),z&&U.push([r,z]),w(U,$),R&&f(U),U}function i(k,D){var T;if(!k)return[[t,D]];if(!D)return[[e,k]];var R=k.length>D.length?k:D,$=k.length>D.length?D:k,A=R.indexOf($);if(A!==-1)return T=[[t,R.substring(0,A)],[r,$],[t,R.substring(A+$.length)]],k.length>D.length&&(T[0][0]=T[2][0]=e),T;if($.length===1)return[[e,k],[t,D]];var _=d(k,D);if(_){var q=_[0],z=_[1],U=_[2],H=_[3],Q=_[4],F=n(q,U),L=n(z,H);return F.concat([[r,Q]],L)}return o(k,D)}function o(k,D){for(var T=k.length,R=D.length,$=Math.ceil((T+R)/2),A=$,_=2*$,q=new Array(_),z=new Array(_),U=0;U<_;U++)q[U]=-1,z[U]=-1;q[A+1]=0,z[A+1]=0;for(var H=T-R,Q=H%2!==0,F=0,L=0,j=0,ae=0,oe=0;oe<$;oe++){for(var Y=-oe+F;Y<=oe-L;Y+=2){var V=A+Y,ee;Y===-oe||Y!==oe&&q[V-1]<q[V+1]?ee=q[V+1]:ee=q[V-1]+1;for(var ie=ee-Y;ee<T&&ie<R&&k.charAt(ee)===D.charAt(ie);)ee++,ie++;if(q[V]=ee,ee>T)L+=2;else if(ie>R)F+=2;else if(Q){var te=A+H-Y;if(te>=0&&te<_&&z[te]!==-1){var ce=T-z[te];if(ee>=ce)return s(k,D,ee,ie)}}}for(var de=-oe+j;de<=oe-ae;de+=2){var te=A+de,ce;de===-oe||de!==oe&&z[te-1]<z[te+1]?ce=z[te+1]:ce=z[te-1]+1;for(var me=ce-de;ce<T&&me<R&&k.charAt(T-ce-1)===D.charAt(R-me-1);)ce++,me++;if(z[te]=ce,ce>T)ae+=2;else if(me>R)j+=2;else if(!Q){var V=A+H-de;if(V>=0&&V<_&&q[V]!==-1){var ee=q[V],ie=A+ee-V;if(ce=T-ce,ee>=ce)return s(k,D,ee,ie)}}}}return[[e,k],[t,D]]}function s(k,D,T,R){var $=k.substring(0,T),A=D.substring(0,R),_=k.substring(T),q=D.substring(R),z=n($,A),U=n(_,q);return z.concat(U)}function l(k,D){if(!k||!D||k.charAt(0)!==D.charAt(0))return 0;for(var T=0,R=Math.min(k.length,D.length),$=R,A=0;T<$;)k.substring(A,$)==D.substring(A,$)?(T=$,A=T):R=$,$=Math.floor((R-T)/2+T);return y(k.charCodeAt($-1))&&$--,$}function c(k,D){var T=k.length,R=D.length;if(T==0||R==0)return 0;T>R?k=k.substring(T-R):T<R&&(D=D.substring(0,T));var $=Math.min(T,R);if(k==D)return $;for(var A=0,_=1;;){var q=k.substring($-_),z=D.indexOf(q);if(z==-1)return A;_+=z,(z==0||k.substring($-_)==D.substring(0,_))&&(A=_,_++)}}function u(k,D){if(!k||!D||k.slice(-1)!==D.slice(-1))return 0;for(var T=0,R=Math.min(k.length,D.length),$=R,A=0;T<$;)k.substring(k.length-$,k.length-A)==D.substring(D.length-$,D.length-A)?(T=$,A=T):R=$,$=Math.floor((R-T)/2+T);return S(k.charCodeAt(k.length-$))&&$--,$}function d(k,D){var T=k.length>D.length?k:D,R=k.length>D.length?D:k;if(T.length<4||R.length*2<T.length)return null;function $(L,j,ae){for(var oe=L.substring(ae,ae+Math.floor(L.length/4)),Y=-1,V="",ee,ie,te,ce;(Y=j.indexOf(oe,Y+1))!==-1;){var de=l(L.substring(ae),j.substring(Y)),me=u(L.substring(0,ae),j.substring(0,Y));V.length<me+de&&(V=j.substring(Y-me,Y)+j.substring(Y,Y+de),ee=L.substring(0,ae-me),ie=L.substring(ae+de),te=j.substring(0,Y-me),ce=j.substring(Y+de))}return V.length*2>=L.length?[ee,ie,te,ce,V]:null}var A=$(T,R,Math.ceil(T.length/4)),_=$(T,R,Math.ceil(T.length/2)),q;if(!A&&!_)return null;_?A?q=A[4].length>_[4].length?A:_:q=_:q=A;var z,U,H,Q;k.length>D.length?(z=q[0],U=q[1],H=q[2],Q=q[3]):(H=q[0],Q=q[1],z=q[2],U=q[3]);var F=q[4];return[z,U,H,Q,F]}function f(k){for(var D=!1,T=[],R=0,$=null,A=0,_=0,q=0,z=0,U=0;A<k.length;)k[A][0]==r?(T[R++]=A,_=z,q=U,z=0,U=0,$=k[A][1]):(k[A][0]==t?z+=k[A][1].length:U+=k[A][1].length,$&&$.length<=Math.max(_,q)&&$.length<=Math.max(z,U)&&(k.splice(T[R-1],0,[e,$]),k[T[R-1]+1][0]=t,R--,R--,A=R>0?T[R-1]:-1,_=0,q=0,z=0,U=0,$=null,D=!0)),A++;for(D&&w(k),b(k),A=1;A<k.length;){if(k[A-1][0]==e&&k[A][0]==t){var H=k[A-1][1],Q=k[A][1],F=c(H,Q),L=c(Q,H);F>=L?(F>=H.length/2||F>=Q.length/2)&&(k.splice(A,0,[r,Q.substring(0,F)]),k[A-1][1]=H.substring(0,H.length-F),k[A+1][1]=Q.substring(F),A++):(L>=H.length/2||L>=Q.length/2)&&(k.splice(A,0,[r,H.substring(0,L)]),k[A-1][0]=t,k[A-1][1]=Q.substring(0,Q.length-L),k[A+1][0]=e,k[A+1][1]=H.substring(L),A++),A++}A++}}var p=/[^a-zA-Z0-9]/,m=/\s/,h=/[\r\n]/,g=/\n\r?\n$/,v=/^\r?\n\r?\n/;function b(k){function D(L,j){if(!L||!j)return 6;var ae=L.charAt(L.length-1),oe=j.charAt(0),Y=ae.match(p),V=oe.match(p),ee=Y&&ae.match(m),ie=V&&oe.match(m),te=ee&&ae.match(h),ce=ie&&oe.match(h),de=te&&L.match(g),me=ce&&j.match(v);return de||me?5:te||ce?4:Y&&!ee&&ie?3:ee||ie?2:Y||V?1:0}for(var T=1;T<k.length-1;){if(k[T-1][0]==r&&k[T+1][0]==r){var R=k[T-1][1],$=k[T][1],A=k[T+1][1],_=u(R,$);if(_){var q=$.substring($.length-_);R=R.substring(0,R.length-_),$=q+$.substring(0,$.length-_),A=q+A}for(var z=R,U=$,H=A,Q=D(R,$)+D($,A);$.charAt(0)===A.charAt(0);){R+=$.charAt(0),$=$.substring(1)+A.charAt(0),A=A.substring(1);var F=D(R,$)+D($,A);F>=Q&&(Q=F,z=R,U=$,H=A)}k[T-1][1]!=z&&(z?k[T-1][1]=z:(k.splice(T-1,1),T--),k[T][1]=U,H?k[T+1][1]=H:(k.splice(T+1,1),T--))}T++}}function w(k,D){k.push([r,""]);for(var T=0,R=0,$=0,A="",_="",q;T<k.length;){if(T<k.length-1&&!k[T][1]){k.splice(T,1);continue}switch(k[T][0]){case t:$++,_+=k[T][1],T++;break;case e:R++,A+=k[T][1],T++;break;case r:var z=T-$-R-1;if(D){if(z>=0&&C(k[z][1])){var U=k[z][1].slice(-1);if(k[z][1]=k[z][1].slice(0,-1),A=U+A,_=U+_,!k[z][1]){k.splice(z,1),T--;var H=z-1;k[H]&&k[H][0]===t&&($++,_=k[H][1]+_,H--),k[H]&&k[H][0]===e&&(R++,A=k[H][1]+A,H--),z=H}}if(x(k[T][1])){var U=k[T][1].charAt(0);k[T][1]=k[T][1].slice(1),A+=U,_+=U}}if(T<k.length-1&&!k[T][1]){k.splice(T,1);break}if(A.length>0||_.length>0){A.length>0&&_.length>0&&(q=l(_,A),q!==0&&(z>=0?k[z][1]+=_.substring(0,q):(k.splice(0,0,[r,_.substring(0,q)]),T++),_=_.substring(q),A=A.substring(q)),q=u(_,A),q!==0&&(k[T][1]=_.substring(_.length-q)+k[T][1],_=_.substring(0,_.length-q),A=A.substring(0,A.length-q)));var Q=$+R;A.length===0&&_.length===0?(k.splice(T-Q,Q),T=T-Q):A.length===0?(k.splice(T-Q,Q,[t,_]),T=T-Q+1):_.length===0?(k.splice(T-Q,Q,[e,A]),T=T-Q+1):(k.splice(T-Q,Q,[e,A],[t,_]),T=T-Q+2)}T!==0&&k[T-1][0]===r?(k[T-1][1]+=k[T][1],k.splice(T,1)):T++,$=0,R=0,A="",_="";break}}k[k.length-1][1]===""&&k.pop();var F=!1;for(T=1;T<k.length-1;)k[T-1][0]===r&&k[T+1][0]===r&&(k[T][1].substring(k[T][1].length-k[T-1][1].length)===k[T-1][1]?(k[T][1]=k[T-1][1]+k[T][1].substring(0,k[T][1].length-k[T-1][1].length),k[T+1][1]=k[T-1][1]+k[T+1][1],k.splice(T-1,1),F=!0):k[T][1].substring(0,k[T+1][1].length)==k[T+1][1]&&(k[T-1][1]+=k[T+1][1],k[T][1]=k[T][1].substring(k[T+1][1].length)+k[T+1][1],k.splice(T+1,1),F=!0)),T++;F&&w(k,D)}function y(k){return k>=55296&&k<=56319}function S(k){return k>=56320&&k<=57343}function x(k){return S(k.charCodeAt(0))}function C(k){return y(k.charCodeAt(k.length-1))}function N(k){for(var D=[],T=0;T<k.length;T++)k[T][1].length>0&&D.push(k[T]);return D}function E(k,D,T,R){return C(k)||x(R)?null:N([[r,k],[e,D],[t,T],[r,R]])}function B(k,D,T){var R=typeof T=="number"?{index:T,length:0}:T.oldRange,$=typeof T=="number"?null:T.newRange,A=k.length,_=D.length;if(R.length===0&&($===null||$.length===0)){var q=R.index,z=k.slice(0,q),U=k.slice(q),H=$?$.index:null;e:{var Q=q+_-A;if(H!==null&&H!==Q||Q<0||Q>_)break e;var F=D.slice(0,Q),L=D.slice(Q);if(L!==U)break e;var j=Math.min(q,Q),ae=z.slice(0,j),oe=F.slice(0,j);if(ae!==oe)break e;var Y=z.slice(j),V=F.slice(j);return E(ae,Y,V,U)}e:{if(H!==null&&H!==q)break e;var ee=q,F=D.slice(0,ee),L=D.slice(ee);if(F!==z)break e;var ie=Math.min(A-ee,_-ee),te=U.slice(U.length-ie),ce=L.slice(L.length-ie);if(te!==ce)break e;var Y=U.slice(0,U.length-ie),V=L.slice(0,L.length-ie);return E(z,Y,V,te)}}if(R.length>0&&$&&$.length===0)e:{var ae=k.slice(0,R.index),te=k.slice(R.index+R.length),j=ae.length,ie=te.length;if(_<j+ie)break e;var oe=D.slice(0,j),ce=D.slice(_-ie);if(ae!==oe||te!==ce)break e;var Y=k.slice(j,A-ie),V=D.slice(j,_-ie);return E(ae,Y,V,te)}return null}function M(k,D,T,R){return n(k,D,T,R,!0)}return M.INSERT=t,M.DELETE=e,M.EQUAL=r,j0=M,j0}var Yp={exports:{}};Yp.exports;var x6;function C6(){return x6||(x6=1,function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",p="[object Map]",m="[object Number]",h="[object Object]",g="[object Promise]",v="[object RegExp]",b="[object Set]",w="[object String]",y="[object Symbol]",S="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",N="[object Float32Array]",E="[object Float64Array]",B="[object Int8Array]",M="[object Int16Array]",k="[object Int32Array]",D="[object Uint8Array]",T="[object Uint8ClampedArray]",R="[object Uint16Array]",$="[object Uint32Array]",A=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,q=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,U={};U[o]=U[s]=U[x]=U[C]=U[l]=U[c]=U[N]=U[E]=U[B]=U[M]=U[k]=U[p]=U[m]=U[h]=U[v]=U[b]=U[w]=U[y]=U[D]=U[T]=U[R]=U[$]=!0,U[u]=U[d]=U[S]=!1;var H=typeof go=="object"&&go&&go.Object===Object&&go,Q=typeof self=="object"&&self&&self.Object===Object&&self,F=H||Q||Function("return this")(),L=t&&!t.nodeType&&t,j=L&&!0&&e&&!e.nodeType&&e,ae=j&&j.exports===L;function oe(I,K){return I.set(K[0],K[1]),I}function Y(I,K){return I.add(K),I}function V(I,K){for(var se=-1,ye=I?I.length:0;++se<ye&&K(I[se],se,I)!==!1;);return I}function ee(I,K){for(var se=-1,ye=K.length,gt=I.length;++se<ye;)I[gt+se]=K[se];return I}function ie(I,K,se,ye){for(var gt=-1,Le=I?I.length:0;++gt<Le;)se=K(se,I[gt],gt,I);return se}function te(I,K){for(var se=-1,ye=Array(I);++se<I;)ye[se]=K(se);return ye}function ce(I,K){return I==null?void 0:I[K]}function de(I){var K=!1;if(I!=null&&typeof I.toString!="function")try{K=!!(I+"")}catch{}return K}function me(I){var K=-1,se=Array(I.size);return I.forEach(function(ye,gt){se[++K]=[gt,ye]}),se}function Ee(I,K){return function(se){return I(K(se))}}function Ie(I){var K=-1,se=Array(I.size);return I.forEach(function(ye){se[++K]=ye}),se}var Te=Array.prototype,Pe=Function.prototype,$e=Object.prototype,J=F["__core-js_shared__"],X=function(){var I=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),P=Pe.toString,W=$e.hasOwnProperty,Z=$e.toString,re=RegExp("^"+P.call(W).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=ae?F.Buffer:void 0,ue=F.Symbol,be=F.Uint8Array,he=Ee(Object.getPrototypeOf,Object),Oe=Object.create,ve=$e.propertyIsEnumerable,qe=Te.splice,ot=Object.getOwnPropertySymbols,ft=le?le.isBuffer:void 0,Xe=Ee(Object.keys,Object),Et=Do(F,"DataView"),O=Do(F,"Map"),ne=Do(F,"Promise"),fe=Do(F,"Set"),Se=Do(F,"WeakMap"),Ue=Do(Object,"create"),Je=on(Et),er=on(O),yn=on(ne),Xn=on(fe),Vi=on(Se),wn=ue?ue.prototype:void 0,Ia=wn?wn.valueOf:void 0;function Tn(I){var K=-1,se=I?I.length:0;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ks(){this.__data__=Ue?Ue(null):{}}function _a(I){return this.has(I)&&delete this.__data__[I]}function Es(I){var K=this.__data__;if(Ue){var se=K[I];return se===n?void 0:se}return W.call(K,I)?K[I]:void 0}function $a(I){var K=this.__data__;return Ue?K[I]!==void 0:W.call(K,I)}function ji(I,K){var se=this.__data__;return se[I]=Ue&&K===void 0?n:K,this}Tn.prototype.clear=ks,Tn.prototype.delete=_a,Tn.prototype.get=Es,Tn.prototype.has=$a,Tn.prototype.set=ji;function dr(I){var K=-1,se=I?I.length:0;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ge(){this.__data__=[]}function _e(I){var K=this.__data__,se=Pa(K,I);if(se<0)return!1;var ye=K.length-1;return se==ye?K.pop():qe.call(K,se,1),!0}function ht(I){var K=this.__data__,se=Pa(K,I);return se<0?void 0:K[se][1]}function It(I){return Pa(this.__data__,I)>-1}function xn(I,K){var se=this.__data__,ye=Pa(se,I);return ye<0?se.push([I,K]):se[ye][1]=K,this}dr.prototype.clear=ge,dr.prototype.delete=_e,dr.prototype.get=ht,dr.prototype.has=It,dr.prototype.set=xn;function tr(I){var K=-1,se=I?I.length:0;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function oi(){this.__data__={hash:new Tn,map:new(O||dr),string:new Tn}}function Fn(I){return Bs(this,I).delete(I)}function Zr(I){return Bs(this,I).get(I)}function Ra(I){return Bs(this,I).has(I)}function ld(I,K){return Bs(this,I).set(I,K),this}tr.prototype.clear=oi,tr.prototype.delete=Fn,tr.prototype.get=Zr,tr.prototype.has=Ra,tr.prototype.set=ld;function Gr(I){this.__data__=new dr(I)}function ud(){this.__data__=new dr}function Qi(I){return this.__data__.delete(I)}function Mt(I){return this.__data__.get(I)}function Dr(I){return this.__data__.has(I)}function cd(I,K){var se=this.__data__;if(se instanceof dr){var ye=se.__data__;if(!O||ye.length<r-1)return ye.push([I,K]),this;se=this.__data__=new tr(ye)}return se.set(I,K),this}Gr.prototype.clear=ud,Gr.prototype.delete=Qi,Gr.prototype.get=Mt,Gr.prototype.has=Dr,Gr.prototype.set=cd;function Ao(I,K){var se=md(I)||Ll(I)?te(I.length,String):[],ye=se.length,gt=!!ye;for(var Le in I)W.call(I,Le)&&!(gt&&(Le=="length"||Fb(Le,ye)))&&se.push(Le);return se}function ii(I,K,se){var ye=I[K];(!(W.call(I,K)&&hm(ye,se))||se===void 0&&!(K in I))&&(I[K]=se)}function Pa(I,K){for(var se=I.length;se--;)if(hm(I[se][0],K))return se;return-1}function ai(I,K){return I&&pd(K,gd(K),I)}function dd(I,K,se,ye,gt,Le,_t){var Tt;if(ye&&(Tt=Le?ye(I,gt,Le,_t):ye(I)),Tt!==void 0)return Tt;if(!li(I))return I;var hr=md(I);if(hr){if(Tt=Mb(I),!K)return Bb(I,Tt)}else{var zt=Wi(I),Kr=zt==d||zt==f;if(gm(I))return Xl(I,K);if(zt==h||zt==o||Kr&&!Le){if(de(I))return Le?I:{};if(Tt=si(Kr?{}:I),!K)return Ab(I,ai(Tt,I))}else{if(!U[zt])return Le?I:{};Tt=Tb(I,zt,dd,K)}}_t||(_t=new Gr);var Cn=_t.get(I);if(Cn)return Cn;if(_t.set(I,Tt),!hr)var wr=se?Db(I):gd(I);return V(wr||I,function(Yr,Rr){wr&&(Rr=Yr,Yr=I[Rr]),ii(Tt,Rr,dd(Yr,K,se,ye,Rr,I,_t))}),Tt}function yb(I){return li(I)?Oe(I):{}}function wb(I,K,se){var ye=K(I);return md(I)?ye:ee(ye,se(I))}function xb(I){return Z.call(I)}function Cb(I){if(!li(I)||Ib(I))return!1;var K=hd(I)||de(I)?re:q;return K.test(on(I))}function Sb(I){if(!pm(I))return Xe(I);var K=[];for(var se in Object(I))W.call(I,se)&&se!="constructor"&&K.push(se);return K}function Xl(I,K){if(K)return I.slice();var se=new I.constructor(I.length);return I.copy(se),se}function fd(I){var K=new I.constructor(I.byteLength);return new be(K).set(new be(I)),K}function Ns(I,K){var se=K?fd(I.buffer):I.buffer;return new I.constructor(se,I.byteOffset,I.byteLength)}function dm(I,K,se){var ye=K?se(me(I),!0):me(I);return ie(ye,oe,new I.constructor)}function fm(I){var K=new I.constructor(I.source,_.exec(I));return K.lastIndex=I.lastIndex,K}function kb(I,K,se){var ye=K?se(Ie(I),!0):Ie(I);return ie(ye,Y,new I.constructor)}function Eb(I){return Ia?Object(Ia.call(I)):{}}function Nb(I,K){var se=K?fd(I.buffer):I.buffer;return new I.constructor(se,I.byteOffset,I.length)}function Bb(I,K){var se=-1,ye=I.length;for(K||(K=Array(ye));++se<ye;)K[se]=I[se];return K}function pd(I,K,se,ye){se||(se={});for(var gt=-1,Le=K.length;++gt<Le;){var _t=K[gt],Tt=void 0;ii(se,_t,Tt===void 0?I[_t]:Tt)}return se}function Ab(I,K){return pd(I,Hi(I),K)}function Db(I){return wb(I,gd,Hi)}function Bs(I,K){var se=I.__data__;return Ob(K)?se[typeof K=="string"?"string":"hash"]:se.map}function Do(I,K){var se=ce(I,K);return Cb(se)?se:void 0}var Hi=ot?Ee(ot,Object):$b,Wi=xb;(Et&&Wi(new Et(new ArrayBuffer(1)))!=C||O&&Wi(new O)!=p||ne&&Wi(ne.resolve())!=g||fe&&Wi(new fe)!=b||Se&&Wi(new Se)!=S)&&(Wi=function(I){var K=Z.call(I),se=K==h?I.constructor:void 0,ye=se?on(se):void 0;if(ye)switch(ye){case Je:return C;case er:return p;case yn:return g;case Xn:return b;case Vi:return S}return K});function Mb(I){var K=I.length,se=I.constructor(K);return K&&typeof I[0]=="string"&&W.call(I,"index")&&(se.index=I.index,se.input=I.input),se}function si(I){return typeof I.constructor=="function"&&!pm(I)?yb(he(I)):{}}function Tb(I,K,se,ye){var gt=I.constructor;switch(K){case x:return fd(I);case l:case c:return new gt(+I);case C:return Ns(I,ye);case N:case E:case B:case M:case k:case D:case T:case R:case $:return Nb(I,ye);case p:return dm(I,ye,se);case m:case w:return new gt(I);case v:return fm(I);case b:return kb(I,ye,se);case y:return Eb(I)}}function Fb(I,K){return K=K??i,!!K&&(typeof I=="number"||z.test(I))&&I>-1&&I%1==0&&I<K}function Ob(I){var K=typeof I;return K=="string"||K=="number"||K=="symbol"||K=="boolean"?I!=="__proto__":I===null}function Ib(I){return!!X&&X in I}function pm(I){var K=I&&I.constructor,se=typeof K=="function"&&K.prototype||$e;return I===se}function on(I){if(I!=null){try{return P.call(I)}catch{}try{return I+""}catch{}}return""}function mm(I){return dd(I,!0,!0)}function hm(I,K){return I===K||I!==I&&K!==K}function Ll(I){return _b(I)&&W.call(I,"callee")&&(!ve.call(I,"callee")||Z.call(I)==o)}var md=Array.isArray;function eu(I){return I!=null&&vm(I.length)&&!hd(I)}function _b(I){return bm(I)&&eu(I)}var gm=ft||Rb;function hd(I){var K=li(I)?Z.call(I):"";return K==d||K==f}function vm(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=i}function li(I){var K=typeof I;return!!I&&(K=="object"||K=="function")}function bm(I){return!!I&&typeof I=="object"}function gd(I){return eu(I)?Ao(I):Sb(I)}function $b(){return[]}function Rb(){return!1}e.exports=mm}(Yp,Yp.exports)),Yp.exports}var Jp={exports:{}};Jp.exports;var S6;function k6(){return S6||(S6=1,function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Function]",h="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Null]",w="[object Object]",y="[object Promise]",S="[object Proxy]",x="[object RegExp]",C="[object Set]",N="[object String]",E="[object Symbol]",B="[object Undefined]",M="[object WeakMap]",k="[object ArrayBuffer]",D="[object DataView]",T="[object Float32Array]",R="[object Float64Array]",$="[object Int8Array]",A="[object Int16Array]",_="[object Int32Array]",q="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",H="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,j={};j[T]=j[R]=j[$]=j[A]=j[_]=j[q]=j[z]=j[U]=j[H]=!0,j[l]=j[c]=j[k]=j[d]=j[D]=j[f]=j[p]=j[m]=j[g]=j[v]=j[w]=j[x]=j[C]=j[N]=j[M]=!1;var ae=typeof go=="object"&&go&&go.Object===Object&&go,oe=typeof self=="object"&&self&&self.Object===Object&&self,Y=ae||oe||Function("return this")(),V=t&&!t.nodeType&&t,ee=V&&!0&&e&&!e.nodeType&&e,ie=ee&&ee.exports===V,te=ie&&ae.process,ce=function(){try{return te&&te.binding&&te.binding("util")}catch{}}(),de=ce&&ce.isTypedArray;function me(I,K){for(var se=-1,ye=I==null?0:I.length,gt=0,Le=[];++se<ye;){var _t=I[se];K(_t,se,I)&&(Le[gt++]=_t)}return Le}function Ee(I,K){for(var se=-1,ye=K.length,gt=I.length;++se<ye;)I[gt+se]=K[se];return I}function Ie(I,K){for(var se=-1,ye=I==null?0:I.length;++se<ye;)if(K(I[se],se,I))return!0;return!1}function Te(I,K){for(var se=-1,ye=Array(I);++se<I;)ye[se]=K(se);return ye}function Pe(I){return function(K){return I(K)}}function $e(I,K){return I.has(K)}function J(I,K){return I==null?void 0:I[K]}function X(I){var K=-1,se=Array(I.size);return I.forEach(function(ye,gt){se[++K]=[gt,ye]}),se}function P(I,K){return function(se){return I(K(se))}}function W(I){var K=-1,se=Array(I.size);return I.forEach(function(ye){se[++K]=ye}),se}var Z=Array.prototype,re=Function.prototype,le=Object.prototype,ue=Y["__core-js_shared__"],be=re.toString,he=le.hasOwnProperty,Oe=function(){var I=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),ve=le.toString,qe=RegExp("^"+be.call(he).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=ie?Y.Buffer:void 0,ft=Y.Symbol,Xe=Y.Uint8Array,Et=le.propertyIsEnumerable,O=Z.splice,ne=ft?ft.toStringTag:void 0,fe=Object.getOwnPropertySymbols,Se=ot?ot.isBuffer:void 0,Ue=P(Object.keys,Object),Je=Hi(Y,"DataView"),er=Hi(Y,"Map"),yn=Hi(Y,"Promise"),Xn=Hi(Y,"Set"),Vi=Hi(Y,"WeakMap"),wn=Hi(Object,"create"),Ia=on(Je),Tn=on(er),ks=on(yn),_a=on(Xn),Es=on(Vi),$a=ft?ft.prototype:void 0,ji=$a?$a.valueOf:void 0;function dr(I){var K=-1,se=I==null?0:I.length;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ge(){this.__data__=wn?wn(null):{},this.size=0}function _e(I){var K=this.has(I)&&delete this.__data__[I];return this.size-=K?1:0,K}function ht(I){var K=this.__data__;if(wn){var se=K[I];return se===n?void 0:se}return he.call(K,I)?K[I]:void 0}function It(I){var K=this.__data__;return wn?K[I]!==void 0:he.call(K,I)}function xn(I,K){var se=this.__data__;return this.size+=this.has(I)?0:1,se[I]=wn&&K===void 0?n:K,this}dr.prototype.clear=ge,dr.prototype.delete=_e,dr.prototype.get=ht,dr.prototype.has=It,dr.prototype.set=xn;function tr(I){var K=-1,se=I==null?0:I.length;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function oi(){this.__data__=[],this.size=0}function Fn(I){var K=this.__data__,se=Xl(K,I);if(se<0)return!1;var ye=K.length-1;return se==ye?K.pop():O.call(K,se,1),--this.size,!0}function Zr(I){var K=this.__data__,se=Xl(K,I);return se<0?void 0:K[se][1]}function Ra(I){return Xl(this.__data__,I)>-1}function ld(I,K){var se=this.__data__,ye=Xl(se,I);return ye<0?(++this.size,se.push([I,K])):se[ye][1]=K,this}tr.prototype.clear=oi,tr.prototype.delete=Fn,tr.prototype.get=Zr,tr.prototype.has=Ra,tr.prototype.set=ld;function Gr(I){var K=-1,se=I==null?0:I.length;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ud(){this.size=0,this.__data__={hash:new dr,map:new(er||tr),string:new dr}}function Qi(I){var K=Do(this,I).delete(I);return this.size-=K?1:0,K}function Mt(I){return Do(this,I).get(I)}function Dr(I){return Do(this,I).has(I)}function cd(I,K){var se=Do(this,I),ye=se.size;return se.set(I,K),this.size+=se.size==ye?0:1,this}Gr.prototype.clear=ud,Gr.prototype.delete=Qi,Gr.prototype.get=Mt,Gr.prototype.has=Dr,Gr.prototype.set=cd;function Ao(I){var K=-1,se=I==null?0:I.length;for(this.__data__=new Gr;++K<se;)this.add(I[K])}function ii(I){return this.__data__.set(I,n),this}function Pa(I){return this.__data__.has(I)}Ao.prototype.add=Ao.prototype.push=ii,Ao.prototype.has=Pa;function ai(I){var K=this.__data__=new tr(I);this.size=K.size}function dd(){this.__data__=new tr,this.size=0}function yb(I){var K=this.__data__,se=K.delete(I);return this.size=K.size,se}function wb(I){return this.__data__.get(I)}function xb(I){return this.__data__.has(I)}function Cb(I,K){var se=this.__data__;if(se instanceof tr){var ye=se.__data__;if(!er||ye.length<r-1)return ye.push([I,K]),this.size=++se.size,this;se=this.__data__=new Gr(ye)}return se.set(I,K),this.size=se.size,this}ai.prototype.clear=dd,ai.prototype.delete=yb,ai.prototype.get=wb,ai.prototype.has=xb,ai.prototype.set=Cb;function Sb(I,K){var se=Ll(I),ye=!se&&hm(I),gt=!se&&!ye&&eu(I),Le=!se&&!ye&&!gt&&bm(I),_t=se||ye||gt||Le,Tt=_t?Te(I.length,String):[],hr=Tt.length;for(var zt in I)he.call(I,zt)&&!(_t&&(zt=="length"||gt&&(zt=="offset"||zt=="parent")||Le&&(zt=="buffer"||zt=="byteLength"||zt=="byteOffset")||Tb(zt,hr)))&&Tt.push(zt);return Tt}function Xl(I,K){for(var se=I.length;se--;)if(mm(I[se][0],K))return se;return-1}function fd(I,K,se){var ye=K(I);return Ll(I)?ye:Ee(ye,se(I))}function Ns(I){return I==null?I===void 0?B:b:ne&&ne in Object(I)?Wi(I):pm(I)}function dm(I){return li(I)&&Ns(I)==l}function fm(I,K,se,ye,gt){return I===K?!0:I==null||K==null||!li(I)&&!li(K)?I!==I&&K!==K:kb(I,K,se,ye,fm,gt)}function kb(I,K,se,ye,gt,Le){var _t=Ll(I),Tt=Ll(K),hr=_t?c:si(I),zt=Tt?c:si(K);hr=hr==l?w:hr,zt=zt==l?w:zt;var Kr=hr==w,Cn=zt==w,wr=hr==zt;if(wr&&eu(I)){if(!eu(K))return!1;_t=!0,Kr=!1}if(wr&&!Kr)return Le||(Le=new ai),_t||bm(I)?pd(I,K,se,ye,gt,Le):Ab(I,K,hr,se,ye,gt,Le);if(!(se&i)){var Yr=Kr&&he.call(I,"__wrapped__"),Rr=Cn&&he.call(K,"__wrapped__");if(Yr||Rr){var za=Yr?I.value():I,Zi=Rr?K.value():K;return Le||(Le=new ai),gt(za,Zi,se,ye,Le)}}return wr?(Le||(Le=new ai),Db(I,K,se,ye,gt,Le)):!1}function Eb(I){if(!vm(I)||Ob(I))return!1;var K=gm(I)?qe:F;return K.test(on(I))}function Nb(I){return li(I)&&hd(I.length)&&!!j[Ns(I)]}function Bb(I){if(!Ib(I))return Ue(I);var K=[];for(var se in Object(I))he.call(I,se)&&se!="constructor"&&K.push(se);return K}function pd(I,K,se,ye,gt,Le){var _t=se&i,Tt=I.length,hr=K.length;if(Tt!=hr&&!(_t&&hr>Tt))return!1;var zt=Le.get(I);if(zt&&Le.get(K))return zt==K;var Kr=-1,Cn=!0,wr=se&o?new Ao:void 0;for(Le.set(I,K),Le.set(K,I);++Kr<Tt;){var Yr=I[Kr],Rr=K[Kr];if(ye)var za=_t?ye(Rr,Yr,Kr,K,I,Le):ye(Yr,Rr,Kr,I,K,Le);if(za!==void 0){if(za)continue;Cn=!1;break}if(wr){if(!Ie(K,function(Zi,As){if(!$e(wr,As)&&(Yr===Zi||gt(Yr,Zi,se,ye,Le)))return wr.push(As)})){Cn=!1;break}}else if(!(Yr===Rr||gt(Yr,Rr,se,ye,Le))){Cn=!1;break}}return Le.delete(I),Le.delete(K),Cn}function Ab(I,K,se,ye,gt,Le,_t){switch(se){case D:if(I.byteLength!=K.byteLength||I.byteOffset!=K.byteOffset)return!1;I=I.buffer,K=K.buffer;case k:return!(I.byteLength!=K.byteLength||!Le(new Xe(I),new Xe(K)));case d:case f:case v:return mm(+I,+K);case p:return I.name==K.name&&I.message==K.message;case x:case N:return I==K+"";case g:var Tt=X;case C:var hr=ye&i;if(Tt||(Tt=W),I.size!=K.size&&!hr)return!1;var zt=_t.get(I);if(zt)return zt==K;ye|=o,_t.set(I,K);var Kr=pd(Tt(I),Tt(K),ye,gt,Le,_t);return _t.delete(I),Kr;case E:if(ji)return ji.call(I)==ji.call(K)}return!1}function Db(I,K,se,ye,gt,Le){var _t=se&i,Tt=Bs(I),hr=Tt.length,zt=Bs(K),Kr=zt.length;if(hr!=Kr&&!_t)return!1;for(var Cn=hr;Cn--;){var wr=Tt[Cn];if(!(_t?wr in K:he.call(K,wr)))return!1}var Yr=Le.get(I);if(Yr&&Le.get(K))return Yr==K;var Rr=!0;Le.set(I,K),Le.set(K,I);for(var za=_t;++Cn<hr;){wr=Tt[Cn];var Zi=I[wr],As=K[wr];if(ye)var BA=_t?ye(As,Zi,wr,K,I,Le):ye(Zi,As,wr,I,K,Le);if(!(BA===void 0?Zi===As||gt(Zi,As,se,ye,Le):BA)){Rr=!1;break}za||(za=wr=="constructor")}if(Rr&&!za){var ym=I.constructor,wm=K.constructor;ym!=wm&&"constructor"in I&&"constructor"in K&&!(typeof ym=="function"&&ym instanceof ym&&typeof wm=="function"&&wm instanceof wm)&&(Rr=!1)}return Le.delete(I),Le.delete(K),Rr}function Bs(I){return fd(I,gd,Mb)}function Do(I,K){var se=I.__data__;return Fb(K)?se[typeof K=="string"?"string":"hash"]:se.map}function Hi(I,K){var se=J(I,K);return Eb(se)?se:void 0}function Wi(I){var K=he.call(I,ne),se=I[ne];try{I[ne]=void 0;var ye=!0}catch{}var gt=ve.call(I);return ye&&(K?I[ne]=se:delete I[ne]),gt}var Mb=fe?function(I){return I==null?[]:(I=Object(I),me(fe(I),function(K){return Et.call(I,K)}))}:$b,si=Ns;(Je&&si(new Je(new ArrayBuffer(1)))!=D||er&&si(new er)!=g||yn&&si(yn.resolve())!=y||Xn&&si(new Xn)!=C||Vi&&si(new Vi)!=M)&&(si=function(I){var K=Ns(I),se=K==w?I.constructor:void 0,ye=se?on(se):"";if(ye)switch(ye){case Ia:return D;case Tn:return g;case ks:return y;case _a:return C;case Es:return M}return K});function Tb(I,K){return K=K??s,!!K&&(typeof I=="number"||L.test(I))&&I>-1&&I%1==0&&I<K}function Fb(I){var K=typeof I;return K=="string"||K=="number"||K=="symbol"||K=="boolean"?I!=="__proto__":I===null}function Ob(I){return!!Oe&&Oe in I}function Ib(I){var K=I&&I.constructor,se=typeof K=="function"&&K.prototype||le;return I===se}function pm(I){return ve.call(I)}function on(I){if(I!=null){try{return be.call(I)}catch{}try{return I+""}catch{}}return""}function mm(I,K){return I===K||I!==I&&K!==K}var hm=dm(function(){return arguments}())?dm:function(I){return li(I)&&he.call(I,"callee")&&!Et.call(I,"callee")},Ll=Array.isArray;function md(I){return I!=null&&hd(I.length)&&!gm(I)}var eu=Se||Rb;function _b(I,K){return fm(I,K)}function gm(I){if(!vm(I))return!1;var K=Ns(I);return K==m||K==h||K==u||K==S}function hd(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=s}function vm(I){var K=typeof I;return I!=null&&(K=="object"||K=="function")}function li(I){return I!=null&&typeof I=="object"}var bm=de?Pe(de):Nb;function gd(I){return md(I)?Sb(I):Bb(I)}function $b(){return[]}function Rb(){return!1}e.exports=_b}(Jp,Jp.exports)),Jp.exports}var Xp={},E6;function D3e(){if(E6)return Xp;E6=1,Object.defineProperty(Xp,"__esModule",{value:!0});const e=C6(),t=k6();var r;return function(n){function i(c={},u={},d=!1){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});let f=e(u);d||(f=Object.keys(f).reduce((p,m)=>(f[m]!=null&&(p[m]=f[m]),p),{}));for(const p in c)c[p]!==void 0&&u[p]===void 0&&(f[p]=c[p]);return Object.keys(f).length>0?f:void 0}n.compose=i;function o(c={},u={}){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});const d=Object.keys(c).concat(Object.keys(u)).reduce((f,p)=>(t(c[p],u[p])||(f[p]=u[p]===void 0?null:u[p]),f),{});return Object.keys(d).length>0?d:void 0}n.diff=o;function s(c={},u={}){c=c||{};const d=Object.keys(u).reduce((f,p)=>(u[p]!==c[p]&&c[p]!==void 0&&(f[p]=u[p]),f),{});return Object.keys(c).reduce((f,p)=>(c[p]!==u[p]&&u[p]===void 0&&(f[p]=null),f),d)}n.invert=s;function l(c,u,d=!1){if(typeof c!="object")return u;if(typeof u!="object")return;if(!d)return u;const f=Object.keys(u).reduce((p,m)=>(c[m]===void 0&&(p[m]=u[m]),p),{});return Object.keys(f).length>0?f:void 0}n.transform=l}(r||(r={})),Xp.default=r,Xp}var Lp={},N6;function B6(){if(N6)return Lp;N6=1,Object.defineProperty(Lp,"__esModule",{value:!0});var e;return function(t){function r(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=r}(e||(e={})),Lp.default=e,Lp}var em={},A6;function M3e(){if(A6)return em;A6=1,Object.defineProperty(em,"__esModule",{value:!0});const e=B6();class t{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const i=this.ops[this.index];if(i){const o=this.offset,s=e.default.length(i);if(n>=s-o?(n=s-o,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const l={};return i.attributes&&(l.attributes=i.attributes),typeof i.retain=="number"?l.retain=n:typeof i.retain=="object"&&i.retain!==null?l.retain=i.retain:typeof i.insert=="string"?l.insert=i.insert.substr(o,n):l.insert=i.insert,l}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,i=this.index,o=this.next(),s=this.ops.slice(this.index);return this.offset=n,this.index=i,[o].concat(s)}}else return[]}}return em.default=t,em}var D6;function T3e(){return D6||(D6=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const r=A3e(),n=C6(),i=k6(),o=D3e();t.AttributeMap=o.default;const s=B6();t.Op=s.default;const l=M3e();t.OpIterator=l.default;const c="\0",u=(f,p)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);const m=Object.keys(f)[0];if(!m||m!==Object.keys(p)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(p)[0]}`);return[m,f[m],p[m]]};class d{constructor(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]}static registerEmbed(p,m){this.handlers[p]=m}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const m=this.handlers[p];if(!m)throw new Error(`no handlers for embed type "${p}"`);return m}insert(p,m){const h={};return typeof p=="string"&&p.length===0?this:(h.insert=p,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(h.attributes=m),this.push(h))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,m){if(typeof p=="number"&&p<=0)return this;const h={retain:p};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(h.attributes=m),this.push(h)}push(p){let m=this.ops.length,h=this.ops[m-1];if(p=n(p),typeof h=="object"){if(typeof p.delete=="number"&&typeof h.delete=="number")return this.ops[m-1]={delete:h.delete+p.delete},this;if(typeof h.delete=="number"&&p.insert!=null&&(m-=1,h=this.ops[m-1],typeof h!="object"))return this.ops.unshift(p),this;if(i(p.attributes,h.attributes)){if(typeof p.insert=="string"&&typeof h.insert=="string")return this.ops[m-1]={insert:h.insert+p.insert},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof h.retain=="number")return this.ops[m-1]={retain:h.retain+p.retain},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this}}return m===this.ops.length?this.ops.push(p):this.ops.splice(m,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&typeof p.retain=="number"&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const m=[],h=[];return this.forEach(g=>{(p(g)?m:h).push(g)}),[m,h]}reduce(p,m){return this.ops.reduce(p,m)}changeLength(){return this.reduce((p,m)=>m.insert?p+s.default.length(m):m.delete?p-m.delete:p,0)}length(){return this.reduce((p,m)=>p+s.default.length(m),0)}slice(p=0,m=1/0){const h=[],g=new l.default(this.ops);let v=0;for(;v<m&&g.hasNext();){let b;v<p?b=g.next(p-v):(b=g.next(m-v),h.push(b)),v+=s.default.length(b)}return new d(h)}compose(p){const m=new l.default(this.ops),h=new l.default(p.ops),g=[],v=h.peek();if(v!=null&&typeof v.retain=="number"&&v.attributes==null){let w=v.retain;for(;m.peekType()==="insert"&&m.peekLength()<=w;)w-=m.peekLength(),g.push(m.next());v.retain-w>0&&h.next(v.retain-w)}const b=new d(g);for(;m.hasNext()||h.hasNext();)if(h.peekType()==="insert")b.push(h.next());else if(m.peekType()==="delete")b.push(m.next());else{const w=Math.min(m.peekLength(),h.peekLength()),y=m.next(w),S=h.next(w);if(S.retain){const x={};if(typeof y.retain=="number")x.retain=typeof S.retain=="number"?w:S.retain;else if(typeof S.retain=="number")y.retain==null?x.insert=y.insert:x.retain=y.retain;else{const N=y.retain==null?"insert":"retain",[E,B,M]=u(y[N],S.retain),k=d.getHandler(E);x[N]={[E]:k.compose(B,M,N==="retain")}}const C=o.default.compose(y.attributes,S.attributes,typeof y.retain=="number");if(C&&(x.attributes=C),b.push(x),!h.hasNext()&&i(b.ops[b.ops.length-1],x)){const N=new d(m.rest());return b.concat(N).chop()}}else typeof S.delete=="number"&&(typeof y.retain=="number"||typeof y.retain=="object"&&y.retain!==null)&&b.push(S)}return b.chop()}concat(p){const m=new d(this.ops.slice());return p.ops.length>0&&(m.push(p.ops[0]),m.ops=m.ops.concat(p.ops.slice(1))),m}diff(p,m){if(this.ops===p.ops)return new d;const h=[this,p].map(y=>y.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:c;const x=y===p?"on":"with";throw new Error("diff() called "+x+" non-document")}).join("")),g=new d,v=r(h[0],h[1],m,!0),b=new l.default(this.ops),w=new l.default(p.ops);return v.forEach(y=>{let S=y[1].length;for(;S>0;){let x=0;switch(y[0]){case r.INSERT:x=Math.min(w.peekLength(),S),g.push(w.next(x));break;case r.DELETE:x=Math.min(S,b.peekLength()),b.next(x),g.delete(x);break;case r.EQUAL:x=Math.min(b.peekLength(),w.peekLength(),S);const C=b.next(x),N=w.next(x);i(C.insert,N.insert)?g.retain(x,o.default.diff(C.attributes,N.attributes)):g.push(N).delete(x);break}S-=x}}),g.chop()}eachLine(p,m=`
|
|
5287
|
-
`){const h=new l.default(this.ops);let g=new d,v=0;for(;h.hasNext();){if(h.peekType()!=="insert")return;const b=h.peek(),w=s.default.length(b)-h.peekLength(),y=typeof b.insert=="string"?b.insert.indexOf(m,w)-w:-1;if(y<0)g.push(h.next());else if(y>0)g.push(h.next(y));else{if(p(g,h.next(1).attributes||{},v)===!1)return;v+=1,g=new d}}g.length()>0&&p(g,{},v)}invert(p){const m=new d;return this.reduce((h,g)=>{if(g.insert)m.delete(s.default.length(g));else{if(typeof g.retain=="number"&&g.attributes==null)return m.retain(g.retain),h+g.retain;if(g.delete||typeof g.retain=="number"){const v=g.delete||g.retain;return p.slice(h,h+v).forEach(b=>{g.delete?m.push(b):g.retain&&g.attributes&&m.retain(s.default.length(b),o.default.invert(g.attributes,b.attributes))}),h+v}else if(typeof g.retain=="object"&&g.retain!==null){const v=p.slice(h,h+1),b=new l.default(v.ops).next(),[w,y,S]=u(g.retain,b.insert),x=d.getHandler(w);return m.retain({[w]:x.invert(y,S)},o.default.invert(g.attributes,b.attributes)),h+1}}return h},0),m.chop()}transform(p,m=!1){if(m=!!m,typeof p=="number")return this.transformPosition(p,m);const h=p,g=new l.default(this.ops),v=new l.default(h.ops),b=new d;for(;g.hasNext()||v.hasNext();)if(g.peekType()==="insert"&&(m||v.peekType()!=="insert"))b.retain(s.default.length(g.next()));else if(v.peekType()==="insert")b.push(v.next());else{const w=Math.min(g.peekLength(),v.peekLength()),y=g.next(w),S=v.next(w);if(y.delete)continue;if(S.delete)b.push(S);else{const x=y.retain,C=S.retain;let N=typeof C=="object"&&C!==null?C:w;if(typeof x=="object"&&x!==null&&typeof C=="object"&&C!==null){const E=Object.keys(x)[0];if(E===Object.keys(C)[0]){const B=d.getHandler(E);B&&(N={[E]:B.transform(x[E],C[E],m)})}}b.retain(N,o.default.transform(y.attributes,S.attributes,m))}}return b.chop()}transformPosition(p,m=!1){m=!!m;const h=new l.default(this.ops);let g=0;for(;h.hasNext()&&g<=p;){const v=h.peekLength(),b=h.peekType();if(h.next(),b==="delete"){p-=Math.min(v,p-g);continue}else b==="insert"&&(g<p||!m)&&(p+=v);g+=v}return p}}d.Op=s.default,d.OpIterator=l.default,d.AttributeMap=o.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d}(V0,V0.exports)),V0.exports}var nn=
|
|
5285
|
+
${pc(re instanceof Error?re.message:String(re))}`,life:Tv}),Ae==null||Ae.fileIssue(P)})}function F(X){const P=X.target.files;if(P!==null)for(const W of Array.from(P))Q(W)}const L=ke.ref(0);function j(){!m.value||t.omex!==void 0||(L.value+=1)}function ae(X){var W;if(L.value===0)return;L.value=0;const P=(W=X.dataTransfer)==null?void 0:W.files;if(P!==void 0)for(const Z of Array.from(P))Q(Z)}function oe(){L.value!==0&&(L.value-=1)}Ae==null||Ae.onOpen(X=>{Q(X)});function Y(){var X;t.omex===void 0&&((X=o.value)==null||X.click())}const V=ke.ref(!1);Ae==null||Ae.onOpenRemote(()=>{V.value=!0});function ee(){t.omex===void 0&&(V.value=!0)}function ie(X){Q(X)}Ae==null||Ae.onOpenSampleLorenz(()=>{te()});function te(){t.omex===void 0&&Q("https://github.com/opencor/webapp/raw/refs/heads/main/tests/models/lorenz.omex")}Ae==null||Ae.onOpenSampleInteractiveLorenz(()=>{ce()});function ce(){t.omex===void 0&&Q("https://github.com/opencor/webapp/raw/refs/heads/main/tests/models/ui/lorenz.omex")}Ae==null||Ae.onClose(()=>{de()});function de(){var X;t.omex===void 0&&((X=s.value)==null||X.closeCurrentFile())}Ae==null||Ae.onCloseAll(()=>{me()});function me(){var X;t.omex===void 0&&((X=s.value)==null||X.closeAllFiles())}const Ee=ke.ref(!1);Ae==null||Ae.onResetAll(()=>{Ee.value=!0});function Ie(){Ae==null||Ae.resetAll()}Ae==null||Ae.onSelect(X=>{var P;(P=s.value)==null||P.selectFile(X)});const Te=ke.ref(0),Pe=ke.ref(0),$e=ke.ref(0);ke.onMounted(()=>{var ue,be,he,Oe;const X=(ue=r.value)==null?void 0:ue.$el;(Oe=(he=(be=X.parentElement)==null?void 0:be.parentElement)==null?void 0:he.parentElement)==null||Oe.parentElement,n.value=`opencorToast${String(h==null?void 0:h.uid)}`,i.value=`opencorMainMenu${String(h==null?void 0:h.uid)}`,setTimeout(()=>{d()},Yo);let P;setTimeout(()=>{P=Lv(i.value)},Yo),setTimeout(()=>{const ve=document.getElementById(n.value);ve!==null&&X.appendChild(ve)},Yo),window.addEventListener("resize",W),ke.onUnmounted(()=>{window.removeEventListener("resize",W)});function W(){const ve=window.getComputedStyle(X);Te.value=parseFloat(ve.width),Pe.value=parseFloat(ve.height),$e.value=Pe.value-_i(i.value)}const Z=new ResizeObserver(()=>{setTimeout(()=>{W()},Yo)});let re=_i(i.value);const le=new MutationObserver(()=>{const ve=_i(i.value);ve!==re&&(re=ve,W())});Z.observe(X),le.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),ke.onUnmounted(()=>{Z.disconnect(),le.disconnect(),P==null||P.disconnect()})}),t.omex!==void 0?ke.watch(v,X=>{X&&t.omex!==void 0&&Q(t.omex)}):ke.onMounted(()=>{setTimeout(()=>{Ae!==void 0?Ae.checkForUpdates(!0):ke.watch(v,X=>{if(X){const P=Oce("action","");window.location.search!==""?(P.value=window.location.search.substring(1),window.location.search=""):P.value!==""&&setTimeout(()=>{w(P.value.slice(Sae.length)),P.value=""},Yo)}})},Yo)}),ke.watch(p,X=>{X||setTimeout(()=>{var Z;const P=(Z=r.value)==null?void 0:Z.$el,W=P.querySelector(".p-blockui-mask");W!==null&&W.parentElement===P&&P.removeChild(W)},Yo)});const J=ke.ref(!1);return(X,P)=>{const W=lB,Z=EE,re=Ame,le=Gv,ue=kme,be=vme,he=Zpe,Oe=Tse,ve=vse,qe=ese,ot=Xae,ft=xae,Xe=yae,Et=k5;return a.openBlock(),a.createBlock(Et,{ref_key:"blockUi",ref:r,blocked:a.unref(p),class:"opencor overflow-hidden h-full",onClick:d,onFocus:d,onFocusin:d,onKeydown:d,onMousedown:d},{default:a.withCtx(()=>[a.createVNode(W,{id:a.unref(n),group:a.unref(n),"pt:root:style":{position:"absolute"},class:a.normalizeClass(a.unref(f)?"visible":"invisible")},null,8,["id","group","class"]),a.withDirectives(a.createVNode(Z,null,null,512),[[a.vShow,(a.unref(b)||a.unref(x))&&X.omex!==void 0]]),a.withDirectives(a.createVNode(re,{message:"Loading OpenCOR..."},null,512),[[a.vShow,a.unref(b)]]),a.withDirectives(a.createVNode(re,{message:"Loading model..."},null,512),[[a.vShow,a.unref(x)]]),a.unref(l).length!==0?(a.openBlock(),a.createBlock(le,{key:0,class:"h-full",issues:a.unref(l),width:a.unref(Te),height:a.unref(Pe)},null,8,["issues","width","height"])):(a.openBlock(),a.createElementBlock("div",{key:1,onDragenter:j,class:"h-full",onDragover:P[8]||(P[8]=a.withModifiers(()=>{},["prevent"])),onDrop:a.withModifiers(ae,["prevent"]),onDragleave:oe},[a.createElementVNode("input",{ref_key:"files",ref:o,type:"file",multiple:"",style:{display:"none"},onChange:F},null,544),a.withDirectives(a.createVNode(ue,null,null,512),[[a.vShow,a.unref(L)>0]]),a.unref(Ae)===void 0&&X.omex===void 0?(a.openBlock(),a.createBlock(be,{key:0,id:a.unref(i),isActive:a.unref(f),uiEnabled:a.unref(m),hasFiles:a.unref(S),onAbout:z,onOpen:Y,onOpenRemote:ee,onOpenSampleLorenz:te,onOpenSampleInteractiveLorenz:ce,onClose:de,onCloseAll:me,onSettings:H},null,8,["id","isActive","uiEnabled","hasFiles"])):a.createCommentVNode("",!0),a.createVNode(he,{ref_key:"contents",ref:s,isActive:a.unref(f),uiEnabled:a.unref(m),simulationOnly:X.omex!==void 0,width:a.unref(Te),height:a.unref($e)},null,8,["isActive","uiEnabled","simulationOnly","width","height"]),a.createVNode(Oe,{visible:a.unref(V),"onUpdate:visible":P[0]||(P[0]=O=>a.isRef(V)?V.value=O:null),onOpenRemote:ie,onClose:P[1]||(P[1]=O=>V.value=!1)},null,8,["visible"]),a.createVNode(ve,{visible:a.unref(U),"onUpdate:visible":P[2]||(P[2]=O=>a.isRef(U)?U.value=O:null),onClose:P[3]||(P[3]=O=>U.value=!1)},null,8,["visible"]),a.createVNode(qe,{visible:a.unref(Ee),"onUpdate:visible":P[4]||(P[4]=O=>a.isRef(Ee)?Ee.value=O:null),title:"Reset All...",question:"You are about to reset all of your settings. Do you want to proceed?",onYes:Ie,onNo:P[5]||(P[5]=O=>Ee.value=!1)},null,8,["visible"]),a.createVNode(ot,{visible:a.unref(q),"onUpdate:visible":P[6]||(P[6]=O=>a.isRef(q)?q.value=O:null),onClose:P[7]||(P[7]=O=>q.value=!1)},null,8,["visible"])],32)),a.createVNode(ft,{visible:a.unref(E),"onUpdate:visible":P[9]||(P[9]=O=>a.isRef(E)?E.value=O:null),title:a.unref(B),message:a.unref(M),onOk:k},null,8,["visible","title","message"]),a.createVNode(qe,{visible:a.unref(D),"onUpdate:visible":P[10]||(P[10]=O=>a.isRef(D)?D.value=O:null),title:"Check for Updates...",question:"Version "+a.unref(R)+" is available. Do you want to download it and install it?",onYes:A,onNo:P[11]||(P[11]=O=>D.value=!1)},null,8,["visible","question"]),a.createVNode(Xe,{visible:a.unref(T),"onUpdate:visible":P[12]||(P[12]=O=>a.isRef(T)?T.value=O:null),percent:a.unref($)},null,8,["visible","percent"]),a.createVNode(ft,{visible:a.unref(_),"onUpdate:visible":P[13]||(P[13]=O=>a.isRef(_)?_.value=O:null),title:"Check for Updates...",message:"No updates are available at this time.",onOk:P[14]||(P[14]=O=>_.value=!1)},null,8,["visible"])]),_:1},8,["blocked"])}}}),O2e=$l(F2e,[["__scopeId","data-v-b99760af"]]),gB="https://models.physiomeproject.org/",I2e=Ig(k3,{}),Na=Object.freeze({DATASET_ID:"dataset_id",DATASET_URL:"dataset_url",PMR_PATH:"pmr_path",RAW_COMBINE_ARCHIVE:"raw_combine_archive"}),_2e={name:"SimulationVuer",components:{PlotVuer:Ds.PlotVuer,SimulationVuerInput:D3,ElButton:fw,ElDivider:hw,ElLoading:YI,OpenCOR:O2e},props:{apiLocation:{required:!0,type:String},id:{required:!0,type:[Number,String,Uint8Array]}},data:function(){let e;if(typeof this.id=="number"?e=Na.DATASET_ID:this.id instanceof Uint8Array?e=Na.RAW_COMBINE_ARCHIVE:this.id.startsWith("https://")?e=Na.DATASET_URL:e=Na.PMR_PATH,e===Na.DATASET_ID){const t=new XMLHttpRequest;t.open("GET",this.apiLocation+"/sim/dataset/"+this.id),t.onreadystatechange=()=>{if(t.readyState===4&&t.status===200){const r=JSON.parse(t.responseText);this.name=r.name,this.uuid=r.study!==void 0?r.study.uuid:void 0}},t.send()}return{errorMessage:"",fileManager:void 0,hasFinalisedUi:!1,hasValidSimulationUiInfo:!1,idType:e,instance:void 0,isMounted:!1,isSimulationValid:!0,layout:[],model:void 0,name:null,opencorBasedSimulation:!0,opencorOmexFile:null,output:void 0,perfectScollbarOptions:{suppressScrollX:!0},showUserMessage:!1,simulationResults:{},simulationResultsId:{},simulationUiInfo:{},solver:void 0,userMessage:"",ui:null,uuid:null}},methods:{plotMetadata(e){return{version:"1.1.0",type:"plot",attrs:{style:"timeseries",layout:this.layout[e]}}},buildSimulationUi(e){if(this.simulationUiInfo=e,this.hasValidSimulationUiInfo=bne(this.simulationUiInfo),!this.hasValidSimulationUiInfo){this.errorMessage="the simulation.json file is malformed";return}if(this.simulationUiInfo.simulation.solvers.forEach(r=>{(r.if===void 0||_g(this,r.if))&&(this.solver=r)}),this.solver===void 0){this.hasValidSimulationUiInfo=!1,this.errorMessage="no solver name and/or solver version specified";return}this.opencorBasedSimulation=this.solver.name===E3,this.simulationUiInfo.output.data.forEach(r=>{this.simulationResultsId[r.id]=r.name});let t=-1;this.simulationUiInfo.output.plots.forEach(r=>{++t,this.layout[t]={paper_bgcolor:"rgba(0, 0, 0, 0)",plot_bgcolor:"rgba(0, 0, 0, 0)",autosize:!0,margin:{t:25,l:55,r:25,b:30,pad:4},loading:!1,options:{responsive:!0,scrollZoom:!0},dragmode:"pan",xaxis:{title:{text:r.xAxisTitle,font:{size:10}}},yaxis:{title:{text:r.yAxisTitle,font:{size:10}}}}}),this.$nextTick(()=>{B3(this)})},runOnOsparc(){window.open(`https://osparc.io/study/${this.uuid}`,"_blank")},viewDataset(){window.open(`https://sparc.science/datasets/${this.id}?type=dataset`,"_blank")},viewWorkspace(){const e=gB+this.id;window.open(e.substring(0,e.lastIndexOf("/")),"_blank")},parametersData(){const e={};return this.simulationUiInfo.parameters.forEach(t=>{e[t.name]=_g(this,t.value)}),e},outputData(){return this.output===void 0&&this.simulationUiInfo.output.data!==void 0&&(this.output=[],this.simulationUiInfo.output.data.forEach(e=>{this.output.push(e.name)})),this.output},retrieveRequest(){const e={solver:this.solver};if(this.opencorBasedSimulation){e.opencor={model_url:this.simulationUiInfo.simulation.opencor.resource,json_config:{}},this.simulationUiInfo.simulation.opencor.endingPoint!==void 0&&this.simulationUiInfo.simulation.opencor.pointInterval!==void 0&&(e.opencor.json_config.simulation={"Ending point":this.simulationUiInfo.simulation.opencor.endingPoint,"Point interval":this.simulationUiInfo.simulation.opencor.pointInterval}),e.opencor.json_config.parameters=this.parametersData();const t=this.outputData();t!==void 0&&(e.opencor.json_config.output=t)}else e.osparc={},e.osparc.job_inputs=this.parametersData();return e},processSimulationResults(e){if(typeof e=="string"){const n=/[ \t]+/g,i=e.trim().split(`
|
|
5286
|
+
`),o=i[0].trim().split(n).length;e={};for(let l=0;l<o;++l)e[l]=[];let s=-1;i.forEach(l=>{++s;let c=-1;l.trim().split(n).forEach(d=>{e[++c][s]=Number(d)})})}const t=new I2e.parser;Object.keys(this.simulationResultsId).forEach(n=>{t.set(n,e[this.simulationResultsId[n]])});let r=-1;this.simulationUiInfo.output.plots.forEach(n=>{this.simulationResults[++r]=[{x:t.evaluate(n.xValue),y:t.evaluate(n.yValue),type:"scatter"}]})},showHttpIssue(e){this.isSimulationValid=!1,this.showUserMessage=!1,this.errorMessage=e.statusText.toLowerCase()+" (<a href='https://httpstatuses.com/"+e.status+"/' target='_blank'>"+e.status+"</a>)"},checkSimulation(e){const t=new XMLHttpRequest;t.open("POST",this.apiLocation+"/check_simulation"),t.setRequestHeader("Content-type","application/json"),t.onreadystatechange=()=>{if(t.readyState===4)if(t.status===200){let r=JSON.parse(t.responseText);if(this.isSimulationValid=r.status==="ok",this.isSimulationValid)if(r.results!==void 0)this.showUserMessage=!1,this.processSimulationResults(r.results);else{let n=this;setTimeout(function(){n.checkSimulation(e)},1e3)}else this.showUserMessage=!1,this.errorMessage=r.description}else this.showHttpIssue(t)},t.send(JSON.stringify(e))},startSimulation(){this.userMessage="Loading simulation results...",this.showUserMessage=!0,this.$nextTick(()=>{this.simulationResults={};const e=new XMLHttpRequest;e.open("POST",this.apiLocation+"/start_simulation"),e.setRequestHeader("Content-type","application/json"),e.onreadystatechange=()=>{if(e.readyState===4)if(e.status===200){let t=JSON.parse(e.responseText);this.isSimulationValid=t.status==="ok",this.isSimulationValid?this.checkSimulation(t.data):(this.showUserMessage=!1,this.errorMessage=t.description)}else this.showHttpIssue(e)},e.send(JSON.stringify(this.retrieveRequest()))})}},created:function(){this.idType===Na.DATASET_ID?(this.userMessage="Retrieving UI information...",this.showUserMessage=!0,this.$nextTick(()=>{const e=new XMLHttpRequest;e.open("GET",this.apiLocation+"/simulation_ui_file/"+this.id),e.onreadystatechange=()=>{e.readyState===4&&(this.showUserMessage=!1,e.status===200?this.$nextTick(()=>{this.buildSimulationUi(JSON.parse(e.responseText))}):this.errorMessage="the simulation dataset could not be retrieved")},e.send()})):this.idType===Na.DATASET_URL?this.opencorOmexFile=this.id:this.idType===Na.PMR_PATH?this.opencorOmexFile=gB+this.id:this.opencorOmexFile=this.id},mounted:function(){this.isMounted=!0,B3(this)}},$2e=["element-loading-text"],R2e={key:0,class:"container"},P2e={key:0,class:"default error"},z2e={key:1,class:"main"},U2e={class:"default name"},q2e={class:"input scrollbar"},V2e={class:"buttons-container"},j2e={class:"primary-button"},Q2e={key:0,class:"secondary-button"},H2e={class:"secondary-button"},W2e={key:1,class:"default note"},Z2e={class:"main-right",ref:"output"},G2e={class:"main-right"},K2e={class:"default error"},Y2e=["innerHTML"],J2e={key:1,class:"opencor"};function X2e(e,t,r,n,i,o){const s=hw,l=D3,c=fw,u=a.resolveComponent("PlotVuer"),d=a.resolveComponent("OpenCOR"),f=Eh;return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"simulation-vuer","element-loading-text":e.userMessage},[e.opencorOmexFile===null?(a.openBlock(),a.createElementBlock("div",R2e,[!e.hasValidSimulationUiInfo&&!e.showUserMessage?(a.openBlock(),a.createElementBlock("p",P2e,[t[3]||(t[3]=a.createElementVNode("span",{class:"error"},"Error:",-1)),a.createTextVNode(" "+a.toDisplayString(e.errorMessage)+".",1)])):a.createCommentVNode("",!0),e.hasValidSimulationUiInfo?(a.openBlock(),a.createElementBlock("div",z2e,[a.createElementVNode("div",{class:a.normalizeClass(["main-left",{"with-buttons":e.uuid}])},[a.createElementVNode("p",U2e,a.toDisplayString(e.name),1),a.createVNode(s),t[7]||(t[7]=a.createElementVNode("p",{class:"default input-parameters"},"Input parameters",-1)),a.createElementVNode("div",q2e,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.simulationUiInfo.input,(p,m)=>(a.openBlock(),a.createBlock(l,{ref_for:!0,ref:"simInput",defaultValue:p.defaultValue,key:`input-${m}`,name:p.name,maximumValue:p.maximumValue,minimumValue:p.minimumValue,possibleValues:p.possibleValues,stepValue:p.stepValue},null,8,["defaultValue","name","maximumValue","minimumValue","possibleValues","stepValue"]))),128))]),a.createElementVNode("div",V2e,[a.createElementVNode("div",j2e,[a.createVNode(c,{type:"primary",size:"small",onClick:t[0]||(t[0]=p=>o.startSimulation())},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("Run Simulation",-1)])]),_:1})]),e.uuid?(a.openBlock(),a.createElementBlock("div",Q2e,[a.createVNode(c,{size:"small",onClick:t[1]||(t[1]=p=>o.runOnOsparc())},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode("Run on oSPARC",-1)])]),_:1})])):a.createCommentVNode("",!0),a.createElementVNode("div",H2e,[a.createVNode(c,{size:"small",onClick:t[2]||(t[2]=p=>o.viewDataset())},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode("View Dataset",-1)])]),_:1})]),e.uuid?(a.openBlock(),a.createElementBlock("p",W2e,"Additional parameters are available on oSPARC")):a.createCommentVNode("",!0)])],2),a.withDirectives(a.createElementVNode("div",Z2e,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.simulationUiInfo.output.plots,(p,m)=>(a.openBlock(),a.createBlock(u,{key:`output-${m}`,metadata:o.plotMetadata(m),"data-source":{data:e.simulationResults[m]},plotLayout:e.layout[m],plotType:"plotly-only",selectorUi:!1},null,8,["metadata","data-source","plotLayout"]))),128))],512),[[a.vShow,e.isSimulationValid]]),a.withDirectives(a.createElementVNode("div",G2e,[a.createElementVNode("p",K2e,[t[8]||(t[8]=a.createElementVNode("span",{class:"error"},"Error:",-1)),t[9]||(t[9]=a.createTextVNode()),a.createElementVNode("span",{innerHTML:e.errorMessage},null,8,Y2e),t[10]||(t[10]=a.createTextVNode(".",-1))])],512),[[a.vShow,!e.isSimulationValid]])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",J2e,[a.createVNode(d,{omex:e.opencorOmexFile,theme:"light"},null,8,["omex"])]))],8,$2e)),[[f,e.showUserMessage]])}const L2e=A3(_2e,[["render",X2e],["__scopeId","data-v-b2ffc0f9"]]);var vB=typeof global=="object"&&global&&global.Object===Object&&global,eCe=typeof self=="object"&&self&&self.Object===Object&&self,Xo=vB||eCe||Function("return this")(),Ba=Xo.Symbol,bB=Object.prototype,tCe=bB.hasOwnProperty,rCe=bB.toString,jc=Ba?Ba.toStringTag:void 0;function nCe(e){var t=tCe.call(e,jc),r=e[jc];try{e[jc]=void 0;var n=!0}catch{}var i=rCe.call(e);return n&&(t?e[jc]=r:delete e[jc]),i}var oCe=Object.prototype,iCe=oCe.toString;function aCe(e){return iCe.call(e)}var sCe="[object Null]",lCe="[object Undefined]",yB=Ba?Ba.toStringTag:void 0;function Pl(e){return e==null?e===void 0?lCe:sCe:yB&&yB in Object(e)?nCe(e):aCe(e)}function $i(e){return e!=null&&typeof e=="object"}var gs=Array.isArray;function Aa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function wB(e){return e}var uCe="[object AsyncFunction]",cCe="[object Function]",dCe="[object GeneratorFunction]",fCe="[object Proxy]";function y0(e){if(!Aa(e))return!1;var t=Pl(e);return t==cCe||t==dCe||t==uCe||t==fCe}var w0=Xo["__core-js_shared__"],xB=function(){var e=/[^.]+$/.exec(w0&&w0.keys&&w0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pCe(e){return!!xB&&xB in e}var mCe=Function.prototype,hCe=mCe.toString;function vs(e){if(e!=null){try{return hCe.call(e)}catch{}try{return e+""}catch{}}return""}var gCe=/[\\^$.*+?()[\]{}|]/g,vCe=/^\[object .+?Constructor\]$/,bCe=Function.prototype,yCe=Object.prototype,wCe=bCe.toString,xCe=yCe.hasOwnProperty,CCe=RegExp("^"+wCe.call(xCe).replace(gCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SCe(e){if(!Aa(e)||pCe(e))return!1;var t=y0(e)?CCe:vCe;return t.test(vs(e))}function kCe(e,t){return e==null?void 0:e[t]}function bs(e,t){var r=kCe(e,t);return SCe(r)?r:void 0}var x0=bs(Xo,"WeakMap"),CB=Object.create,ECe=function(){function e(){}return function(t){if(!Aa(t))return{};if(CB)return CB(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function NCe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function BCe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ACe=800,DCe=16,MCe=Date.now;function TCe(e){var t=0,r=0;return function(){var n=MCe(),i=DCe-(n-r);if(r=n,i>0){if(++t>=ACe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function FCe(e){return function(){return e}}var zp=function(){try{var e=bs(Object,"defineProperty");return e({},"",{}),e}catch{}}(),OCe=zp?function(e,t){return zp(e,"toString",{configurable:!0,enumerable:!1,value:FCe(t),writable:!0})}:wB,ICe=TCe(OCe);function _Ce(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var $Ce=9007199254740991,RCe=/^(?:0|[1-9]\d*)$/;function SB(e,t){var r=typeof e;return t=t??$Ce,!!t&&(r=="number"||r!="symbol"&&RCe.test(e))&&e>-1&&e%1==0&&e<t}function C0(e,t,r){t=="__proto__"&&zp?zp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Qc(e,t){return e===t||e!==e&&t!==t}var PCe=Object.prototype,zCe=PCe.hasOwnProperty;function kB(e,t,r){var n=e[t];(!(zCe.call(e,t)&&Qc(n,r))||r===void 0&&!(t in e))&&C0(e,t,r)}function UCe(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=void 0;c===void 0&&(c=e[l]),i?C0(r,l,c):kB(r,l,c)}return r}var EB=Math.max;function qCe(e,t,r){return t=EB(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=EB(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(s),NCe(e,this,l)}}function VCe(e,t){return ICe(qCe(e,t,wB),e+"")}var jCe=9007199254740991;function NB(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=jCe}function Up(e){return e!=null&&NB(e.length)&&!y0(e)}function QCe(e,t,r){if(!Aa(r))return!1;var n=typeof t;return(n=="number"?Up(r)&&SB(t,r.length):n=="string"&&t in r)?Qc(r[t],e):!1}function HCe(e){return VCe(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&QCe(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,o)}return t})}var WCe=Object.prototype;function S0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||WCe;return e===r}function ZCe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var GCe="[object Arguments]";function BB(e){return $i(e)&&Pl(e)==GCe}var AB=Object.prototype,KCe=AB.hasOwnProperty,YCe=AB.propertyIsEnumerable,k0=BB(function(){return arguments}())?BB:function(e){return $i(e)&&KCe.call(e,"callee")&&!YCe.call(e,"callee")};function JCe(){return!1}var DB=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,MB=DB&&typeof module=="object"&&module&&!module.nodeType&&module,XCe=MB&&MB.exports===DB,TB=XCe?Xo.Buffer:void 0,LCe=TB?TB.isBuffer:void 0,Hc=LCe||JCe,eSe="[object Arguments]",tSe="[object Array]",rSe="[object Boolean]",nSe="[object Date]",oSe="[object Error]",iSe="[object Function]",aSe="[object Map]",sSe="[object Number]",lSe="[object Object]",uSe="[object RegExp]",cSe="[object Set]",dSe="[object String]",fSe="[object WeakMap]",pSe="[object ArrayBuffer]",mSe="[object DataView]",hSe="[object Float32Array]",gSe="[object Float64Array]",vSe="[object Int8Array]",bSe="[object Int16Array]",ySe="[object Int32Array]",wSe="[object Uint8Array]",xSe="[object Uint8ClampedArray]",CSe="[object Uint16Array]",SSe="[object Uint32Array]",Lt={};Lt[hSe]=Lt[gSe]=Lt[vSe]=Lt[bSe]=Lt[ySe]=Lt[wSe]=Lt[xSe]=Lt[CSe]=Lt[SSe]=!0,Lt[eSe]=Lt[tSe]=Lt[pSe]=Lt[rSe]=Lt[mSe]=Lt[nSe]=Lt[oSe]=Lt[iSe]=Lt[aSe]=Lt[sSe]=Lt[lSe]=Lt[uSe]=Lt[cSe]=Lt[dSe]=Lt[fSe]=!1;function kSe(e){return $i(e)&&NB(e.length)&&!!Lt[Pl(e)]}function E0(e){return function(t){return e(t)}}var FB=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,Wc=FB&&typeof module=="object"&&module&&!module.nodeType&&module,ESe=Wc&&Wc.exports===FB,N0=ESe&&vB.process,zl=function(){try{var e=Wc&&Wc.require&&Wc.require("util").types;return e||N0&&N0.binding&&N0.binding("util")}catch{}}(),OB=zl&&zl.isTypedArray,B0=OB?E0(OB):kSe,NSe=Object.prototype,BSe=NSe.hasOwnProperty;function IB(e,t){var r=gs(e),n=!r&&k0(e),i=!r&&!n&&Hc(e),o=!r&&!n&&!i&&B0(e),s=r||n||i||o,l=s?ZCe(e.length,String):[],c=l.length;for(var u in e)(t||BSe.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||SB(u,c)))&&l.push(u);return l}function _B(e,t){return function(r){return e(t(r))}}var ASe=_B(Object.keys,Object),DSe=Object.prototype,MSe=DSe.hasOwnProperty;function TSe(e){if(!S0(e))return ASe(e);var t=[];for(var r in Object(e))MSe.call(e,r)&&r!="constructor"&&t.push(r);return t}function FSe(e){return Up(e)?IB(e):TSe(e)}function OSe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ISe=Object.prototype,_Se=ISe.hasOwnProperty;function $Se(e){if(!Aa(e))return OSe(e);var t=S0(e),r=[];for(var n in e)n=="constructor"&&(t||!_Se.call(e,n))||r.push(n);return r}function $B(e){return Up(e)?IB(e,!0):$Se(e)}var Zc=bs(Object,"create");function RSe(){this.__data__=Zc?Zc(null):{},this.size=0}function PSe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zSe="__lodash_hash_undefined__",USe=Object.prototype,qSe=USe.hasOwnProperty;function VSe(e){var t=this.__data__;if(Zc){var r=t[e];return r===zSe?void 0:r}return qSe.call(t,e)?t[e]:void 0}var jSe=Object.prototype,QSe=jSe.hasOwnProperty;function HSe(e){var t=this.__data__;return Zc?t[e]!==void 0:QSe.call(t,e)}var WSe="__lodash_hash_undefined__";function ZSe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zc&&t===void 0?WSe:t,this}function ys(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ys.prototype.clear=RSe,ys.prototype.delete=PSe,ys.prototype.get=VSe,ys.prototype.has=HSe,ys.prototype.set=ZSe;function GSe(){this.__data__=[],this.size=0}function qp(e,t){for(var r=e.length;r--;)if(Qc(e[r][0],t))return r;return-1}var KSe=Array.prototype,YSe=KSe.splice;function JSe(e){var t=this.__data__,r=qp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():YSe.call(t,r,1),--this.size,!0}function XSe(e){var t=this.__data__,r=qp(t,e);return r<0?void 0:t[r][1]}function LSe(e){return qp(this.__data__,e)>-1}function e4e(e,t){var r=this.__data__,n=qp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ri(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ri.prototype.clear=GSe,Ri.prototype.delete=JSe,Ri.prototype.get=XSe,Ri.prototype.has=LSe,Ri.prototype.set=e4e;var Gc=bs(Xo,"Map");function t4e(){this.size=0,this.__data__={hash:new ys,map:new(Gc||Ri),string:new ys}}function r4e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vp(e,t){var r=e.__data__;return r4e(t)?r[typeof t=="string"?"string":"hash"]:r.map}function n4e(e){var t=Vp(this,e).delete(e);return this.size-=t?1:0,t}function o4e(e){return Vp(this,e).get(e)}function i4e(e){return Vp(this,e).has(e)}function a4e(e,t){var r=Vp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ws(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ws.prototype.clear=t4e,ws.prototype.delete=n4e,ws.prototype.get=o4e,ws.prototype.has=i4e,ws.prototype.set=a4e;function s4e(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var RB=_B(Object.getPrototypeOf,Object),l4e="[object Object]",u4e=Function.prototype,c4e=Object.prototype,PB=u4e.toString,d4e=c4e.hasOwnProperty,f4e=PB.call(Object);function p4e(e){if(!$i(e)||Pl(e)!=l4e)return!1;var t=RB(e);if(t===null)return!0;var r=d4e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&PB.call(r)==f4e}function m4e(){this.__data__=new Ri,this.size=0}function h4e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function g4e(e){return this.__data__.get(e)}function v4e(e){return this.__data__.has(e)}var b4e=200;function y4e(e,t){var r=this.__data__;if(r instanceof Ri){var n=r.__data__;if(!Gc||n.length<b4e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ws(n)}return r.set(e,t),this.size=r.size,this}function Lo(e){var t=this.__data__=new Ri(e);this.size=t.size}Lo.prototype.clear=m4e,Lo.prototype.delete=h4e,Lo.prototype.get=g4e,Lo.prototype.has=v4e,Lo.prototype.set=y4e;var zB=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,UB=zB&&typeof module=="object"&&module&&!module.nodeType&&module,w4e=UB&&UB.exports===zB,qB=w4e?Xo.Buffer:void 0,VB=qB?qB.allocUnsafe:void 0;function jB(e,t){if(t)return e.slice();var r=e.length,n=VB?VB(r):new e.constructor(r);return e.copy(n),n}function x4e(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function C4e(){return[]}var S4e=Object.prototype,k4e=S4e.propertyIsEnumerable,QB=Object.getOwnPropertySymbols,E4e=QB?function(e){return e==null?[]:(e=Object(e),x4e(QB(e),function(t){return k4e.call(e,t)}))}:C4e;function N4e(e,t,r){var n=t(e);return gs(e)?n:s4e(n,r(e))}function A0(e){return N4e(e,FSe,E4e)}var D0=bs(Xo,"DataView"),M0=bs(Xo,"Promise"),T0=bs(Xo,"Set"),HB="[object Map]",B4e="[object Object]",WB="[object Promise]",ZB="[object Set]",GB="[object WeakMap]",KB="[object DataView]",A4e=vs(D0),D4e=vs(Gc),M4e=vs(M0),T4e=vs(T0),F4e=vs(x0),bo=Pl;(D0&&bo(new D0(new ArrayBuffer(1)))!=KB||Gc&&bo(new Gc)!=HB||M0&&bo(M0.resolve())!=WB||T0&&bo(new T0)!=ZB||x0&&bo(new x0)!=GB)&&(bo=function(e){var t=Pl(e),r=t==B4e?e.constructor:void 0,n=r?vs(r):"";if(n)switch(n){case A4e:return KB;case D4e:return HB;case M4e:return WB;case T4e:return ZB;case F4e:return GB}return t});var O4e=Object.prototype,I4e=O4e.hasOwnProperty;function _4e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&I4e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var jp=Xo.Uint8Array;function F0(e){var t=new e.constructor(e.byteLength);return new jp(t).set(new jp(e)),t}function $4e(e,t){var r=F0(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var R4e=/\w*$/;function P4e(e){var t=new e.constructor(e.source,R4e.exec(e));return t.lastIndex=e.lastIndex,t}var YB=Ba?Ba.prototype:void 0,JB=YB?YB.valueOf:void 0;function z4e(e){return JB?Object(JB.call(e)):{}}function XB(e,t){var r=t?F0(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var U4e="[object Boolean]",q4e="[object Date]",V4e="[object Map]",j4e="[object Number]",Q4e="[object RegExp]",H4e="[object Set]",W4e="[object String]",Z4e="[object Symbol]",G4e="[object ArrayBuffer]",K4e="[object DataView]",Y4e="[object Float32Array]",J4e="[object Float64Array]",X4e="[object Int8Array]",L4e="[object Int16Array]",eke="[object Int32Array]",tke="[object Uint8Array]",rke="[object Uint8ClampedArray]",nke="[object Uint16Array]",oke="[object Uint32Array]";function ike(e,t,r){var n=e.constructor;switch(t){case G4e:return F0(e);case U4e:case q4e:return new n(+e);case K4e:return $4e(e);case Y4e:case J4e:case X4e:case L4e:case eke:case tke:case rke:case nke:case oke:return XB(e,r);case V4e:return new n;case j4e:case W4e:return new n(e);case Q4e:return P4e(e);case H4e:return new n;case Z4e:return z4e(e)}}function LB(e){return typeof e.constructor=="function"&&!S0(e)?ECe(RB(e)):{}}var ake="[object Map]";function ske(e){return $i(e)&&bo(e)==ake}var e6=zl&&zl.isMap,lke=e6?E0(e6):ske,uke="[object Set]";function cke(e){return $i(e)&&bo(e)==uke}var t6=zl&&zl.isSet,dke=t6?E0(t6):cke,fke=1,r6="[object Arguments]",pke="[object Array]",mke="[object Boolean]",hke="[object Date]",gke="[object Error]",n6="[object Function]",vke="[object GeneratorFunction]",bke="[object Map]",yke="[object Number]",o6="[object Object]",wke="[object RegExp]",xke="[object Set]",Cke="[object String]",Ske="[object Symbol]",kke="[object WeakMap]",Eke="[object ArrayBuffer]",Nke="[object DataView]",Bke="[object Float32Array]",Ake="[object Float64Array]",Dke="[object Int8Array]",Mke="[object Int16Array]",Tke="[object Int32Array]",Fke="[object Uint8Array]",Oke="[object Uint8ClampedArray]",Ike="[object Uint16Array]",_ke="[object Uint32Array]",Zt={};Zt[r6]=Zt[pke]=Zt[Eke]=Zt[Nke]=Zt[mke]=Zt[hke]=Zt[Bke]=Zt[Ake]=Zt[Dke]=Zt[Mke]=Zt[Tke]=Zt[bke]=Zt[yke]=Zt[o6]=Zt[wke]=Zt[xke]=Zt[Cke]=Zt[Ske]=Zt[Fke]=Zt[Oke]=Zt[Ike]=Zt[_ke]=!0,Zt[gke]=Zt[n6]=Zt[kke]=!1;function Qp(e,t,r,n,i,o){var s,l=t&fke;if(s!==void 0)return s;if(!Aa(e))return e;var c=gs(e);if(c)s=_4e(e);else{var u=bo(e),d=u==n6||u==vke;if(Hc(e))return jB(e,l);if(u==o6||u==r6||d&&!i)s=d?{}:LB(e);else{if(!Zt[u])return i?e:{};s=ike(e,u,l)}}o||(o=new Lo);var f=o.get(e);if(f)return f;o.set(e,s),dke(e)?e.forEach(function(h){s.add(Qp(h,t,r,h,e,o))}):lke(e)&&e.forEach(function(h,g){s.set(g,Qp(h,t,r,g,e,o))});var p=A0,m=c?void 0:p(e);return _Ce(m||e,function(h,g){m&&(g=h,h=e[g]),kB(s,g,Qp(h,t,r,g,e,o))}),s}var $ke=1,Rke=4;function Ul(e){return Qp(e,$ke|Rke)}var Pke="__lodash_hash_undefined__";function zke(e){return this.__data__.set(e,Pke),this}function Uke(e){return this.__data__.has(e)}function Hp(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ws;++t<r;)this.add(e[t])}Hp.prototype.add=Hp.prototype.push=zke,Hp.prototype.has=Uke;function qke(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Vke(e,t){return e.has(t)}var jke=1,Qke=2;function i6(e,t,r,n,i,o){var s=r&jke,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&Qke?new Hp:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var h=e[f],g=t[f];if(n)var v=s?n(g,h,f,t,e,o):n(h,g,f,e,t,o);if(v!==void 0){if(v)continue;p=!1;break}if(m){if(!qke(t,function(b,w){if(!Vke(m,w)&&(h===b||i(h,b,r,n,o)))return m.push(w)})){p=!1;break}}else if(!(h===g||i(h,g,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Hke(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Wke(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Zke=1,Gke=2,Kke="[object Boolean]",Yke="[object Date]",Jke="[object Error]",Xke="[object Map]",Lke="[object Number]",e3e="[object RegExp]",t3e="[object Set]",r3e="[object String]",n3e="[object Symbol]",o3e="[object ArrayBuffer]",i3e="[object DataView]",a6=Ba?Ba.prototype:void 0,O0=a6?a6.valueOf:void 0;function a3e(e,t,r,n,i,o,s){switch(r){case i3e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case o3e:return!(e.byteLength!=t.byteLength||!o(new jp(e),new jp(t)));case Kke:case Yke:case Lke:return Qc(+e,+t);case Jke:return e.name==t.name&&e.message==t.message;case e3e:case r3e:return e==t+"";case Xke:var l=Hke;case t3e:var c=n&Zke;if(l||(l=Wke),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=Gke,s.set(e,t);var d=i6(l(e),l(t),n,i,o,s);return s.delete(e),d;case n3e:if(O0)return O0.call(e)==O0.call(t)}return!1}var s3e=1,l3e=Object.prototype,u3e=l3e.hasOwnProperty;function c3e(e,t,r,n,i,o){var s=r&s3e,l=A0(e),c=l.length,u=A0(t),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in t:u3e.call(t,p)))return!1}var m=o.get(e),h=o.get(t);if(m&&h)return m==t&&h==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=s;++f<c;){p=l[f];var b=e[p],w=t[p];if(n)var y=s?n(w,b,p,t,e,o):n(b,w,p,e,t,o);if(!(y===void 0?b===w||i(b,w,r,n,o):y)){g=!1;break}v||(v=p=="constructor")}if(g&&!v){var S=e.constructor,x=t.constructor;S!=x&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof x=="function"&&x instanceof x)&&(g=!1)}return o.delete(e),o.delete(t),g}var d3e=1,s6="[object Arguments]",l6="[object Array]",Wp="[object Object]",f3e=Object.prototype,u6=f3e.hasOwnProperty;function p3e(e,t,r,n,i,o){var s=gs(e),l=gs(t),c=s?l6:bo(e),u=l?l6:bo(t);c=c==s6?Wp:c,u=u==s6?Wp:u;var d=c==Wp,f=u==Wp,p=c==u;if(p&&Hc(e)){if(!Hc(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new Lo),s||B0(e)?i6(e,t,r,n,i,o):a3e(e,t,c,r,n,i,o);if(!(r&d3e)){var m=d&&u6.call(e,"__wrapped__"),h=f&&u6.call(t,"__wrapped__");if(m||h){var g=m?e.value():e,v=h?t.value():t;return o||(o=new Lo),i(g,v,r,n,o)}}return p?(o||(o=new Lo),c3e(e,t,r,n,i,o)):!1}function c6(e,t,r,n,i){return e===t?!0:e==null||t==null||!$i(e)&&!$i(t)?e!==e&&t!==t:p3e(e,t,r,n,c6,i)}function m3e(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),l=s.length;l--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var h3e=m3e();function I0(e,t,r){(r!==void 0&&!Qc(e[t],r)||r===void 0&&!(t in e))&&C0(e,t,r)}function g3e(e){return $i(e)&&Up(e)}function _0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function v3e(e){return UCe(e,$B(e))}function b3e(e,t,r,n,i,o,s){var l=_0(e,r),c=_0(t,r),u=s.get(c);if(u){I0(e,r,u);return}var d=o?o(l,c,r+"",e,t,s):void 0,f=d===void 0;if(f){var p=gs(c),m=!p&&Hc(c),h=!p&&!m&&B0(c);d=c,p||m||h?gs(l)?d=l:g3e(l)?d=BCe(l):m?(f=!1,d=jB(c,!0)):h?(f=!1,d=XB(c,!0)):d=[]:p4e(c)||k0(c)?(d=l,k0(l)?d=v3e(l):(!Aa(l)||y0(l))&&(d=LB(c))):f=!1}f&&(s.set(c,d),i(d,c,n,o,s),s.delete(c)),I0(e,r,d)}function d6(e,t,r,n,i){e!==t&&h3e(t,function(o,s){if(i||(i=new Lo),Aa(o))b3e(e,t,s,r,d6,n,i);else{var l=n?n(_0(e,s),o,s+"",e,t,i):void 0;l===void 0&&(l=o),I0(e,s,l)}},$B)}function $0(e,t){return c6(e,t)}var Da=HCe(function(e,t,r){d6(e,t,r)}),He=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(He||{});class ei{constructor(t,r,n={}){this.attrName=t,this.keyName=r;const i=He.TYPE&He.ATTRIBUTE;this.scope=n.scope!=null?n.scope&He.LEVEL|i:He.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(r=>r.name)}add(t,r){return this.canAdd(t,r)?(t.setAttribute(this.keyName,r),!0):!1}canAdd(t,r){return this.whitelist==null?!0:typeof r=="string"?this.whitelist.indexOf(r.replace(/["']/g,""))>-1:this.whitelist.indexOf(r)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const r=t.getAttribute(this.keyName);return this.canAdd(t,r)&&r?r:""}}class ql extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const f6=class Pb{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,r=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(r){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,r)}return null}create(t,r,n){const i=this.query(r);if(i==null)throw new ql(`Unable to create ${r} blot`);const o=i,s=r instanceof Node||r.nodeType===Node.TEXT_NODE?r:o.create(n),l=new o(t,s,n);return Pb.blots.set(l.domNode,l),l}find(t,r=!1){return Pb.find(t,r)}query(t,r=He.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&He.LEVEL&He.BLOCK?n=this.types.block:t&He.LEVEL&He.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&r&He.LEVEL&n.scope&&r&He.TYPE&n.scope?n:null}register(...t){return t.map(r=>{const n="blotName"in r,i="attrName"in r;if(!n&&!i)throw new ql("Invalid definition");if(n&&r.blotName==="abstract")throw new ql("Cannot register abstract class");const o=n?r.blotName:i?r.attrName:void 0;return this.types[o]=r,i?typeof r.keyName=="string"&&(this.attributes[r.keyName]=r):n&&(r.className&&(this.classes[r.className]=r),r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(s=>s.toUpperCase()):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(s=>{(this.tags[s]==null||r.className==null)&&(this.tags[s]=r)}))),r})}};f6.blots=new WeakMap;let Vl=f6;function p6(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(r=>r.indexOf(`${t}-`)===0)}class y3e extends ei{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(r=>r.split("-").slice(0,-1).join("-"))}add(t,r){return this.canAdd(t,r)?(this.remove(t),t.classList.add(`${this.keyName}-${r}`),!0):!1}remove(t){p6(t,this.keyName).forEach(r=>{t.classList.remove(r)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const r=(p6(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,r)?r:""}}const yo=y3e;function R0(e){const t=e.split("-"),r=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+r}class w3e extends ei{static keys(t){return(t.getAttribute("style")||"").split(";").map(r=>r.split(":")[0].trim())}add(t,r){return this.canAdd(t,r)?(t.style[R0(this.keyName)]=r,!0):!1}remove(t){t.style[R0(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const r=t.style[R0(this.keyName)];return this.canAdd(t,r)?r:""}}const Ma=w3e;class x3e{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,r){r?t.add(this.domNode,r)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=Vl.find(this.domNode);if(t==null)return;const r=ei.keys(this.domNode),n=yo.keys(this.domNode),i=Ma.keys(this.domNode);r.concat(n).concat(i).forEach(o=>{const s=t.scroll.query(o,He.ATTRIBUTE);s instanceof ei&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(r=>{const n=this.attributes[r].value(this.domNode);t.format(r,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(r=>{this.attributes[r].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,r)=>(t[r]=this.attributes[r].value(this.domNode),t),{})}}const Zp=x3e,m6=class{constructor(e,t){this.scroll=e,this.domNode=t,Vl.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new ql("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Vl.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,n){const i=this.isolate(e,t);if(this.scroll.query(r,He.BLOT)!=null&&n)i.wrap(r,n);else if(this.scroll.query(r,He.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(r,n)}}insertAt(e,t,r){const n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),i=this.split(e);this.parent.insertBefore(n,i||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new ql(`Cannot wrap ${e}`);return r.appendChild(this),r}};m6.blotName="abstract";let h6=m6;const g6=class extends h6{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};g6.scope=He.INLINE_BLOT;const Hr=g6;class C3e{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const r=t.slice(1);this.append(...r)}}at(t){const r=this.iterator();let n=r();for(;n&&t>0;)t-=1,n=r();return n}contains(t){const r=this.iterator();let n=r();for(;n;){if(n===t)return!0;n=r()}return!1}indexOf(t){const r=this.iterator();let n=r(),i=0;for(;n;){if(n===t)return i;i+=1,n=r()}return-1}insertBefore(t,r){t!=null&&(this.remove(t),t.next=r,r!=null?(t.prev=r.prev,r.prev!=null&&(r.prev.next=t),r.prev=t,r===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let r=0,n=this.head;for(;n!=null;){if(n===t)return r;r+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const r=t;return t!=null&&(t=t.next),r}}find(t,r=!1){const n=this.iterator();let i=n();for(;i;){const o=i.length();if(t<o||r&&t===o&&(i.next==null||i.next.length()!==0))return[i,t];t-=o,i=n()}return[null,0]}forEach(t){const r=this.iterator();let n=r();for(;n;)t(n),n=r()}forEachAt(t,r,n){if(r<=0)return;const[i,o]=this.find(t);let s=t-o;const l=this.iterator(i);let c=l();for(;c&&s<t+r;){const u=c.length();t>s?n(c,t-s,Math.min(r,s+u-t)):n(c,0,Math.min(u,t+r-s)),s+=u,c=l()}}map(t){return this.reduce((r,n)=>(r.push(t(n)),r),[])}reduce(t,r){const n=this.iterator();let i=n();for(;i;)r=t(r,i),i=n();return r}}function v6(e,t){const r=t.find(e);if(r)return r;try{return t.create(e)}catch{const n=t.create(He.INLINE);return Array.from(e.childNodes).forEach(i=>{n.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}const b6=class Ua extends h6{constructor(t,r){super(t,r),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,Ua.uiClass&&this.uiNode.classList.add(Ua.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new C3e,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const r=v6(t,this.scroll);this.insertBefore(r,this.children.head||void 0)}catch(r){if(r instanceof ql)return;throw r}})}deleteAt(t,r){if(t===0&&r===this.length())return this.remove();this.children.forEachAt(t,r,(n,i,o)=>{n.deleteAt(i,o)})}descendant(t,r=0){const[n,i]=this.children.find(r);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,i]:n instanceof Ua?n.descendant(t,i):[null,-1]}descendants(t,r=0,n=Number.MAX_VALUE){let i=[],o=n;return this.children.forEachAt(r,n,(s,l,c)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&i.push(s),s instanceof Ua&&(i=i.concat(s.descendants(t,l,o))),o-=c}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(r=>{t||this.statics.allowedChildren.some(n=>r instanceof n)||(r.statics.scope===He.BLOCK_BLOT?(r.next!=null&&this.splitAfter(r),r.prev!=null&&this.splitAfter(r.prev),r.parent.unwrap(),t=!0):r instanceof Ua?r.unwrap():r.remove())})}formatAt(t,r,n,i){this.children.forEachAt(t,r,(o,s,l)=>{o.formatAt(s,l,n,i)})}insertAt(t,r,n){const[i,o]=this.children.find(t);if(i)i.insertAt(o,r,n);else{const s=n==null?this.scroll.create("text",r):this.scroll.create(r,n);this.appendChild(s)}}insertBefore(t,r){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,r||null),t.parent=this,r!=null&&(n=r.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,r)=>t+r.length(),0)}moveChildren(t,r){this.children.forEach(n=>{t.insertBefore(n,r)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r)}else this.remove()}path(t,r=!1){const[n,i]=this.children.find(t,r),o=[[this,t]];return n instanceof Ua?o.concat(n.path(i,r)):(n!=null&&o.push([n,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,r){const n=typeof t=="string"?this.scroll.create(t,r):t;return n instanceof Ua&&this.moveChildren(n),super.replaceWith(n)}split(t,r=!1){if(!r){if(t===0)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(i,o,s)=>{const l=i.split(o,r);l!=null&&n.appendChild(l)}),n}splitAfter(t){const r=this.clone();for(;t.next!=null;)r.appendChild(t.next);return this.parent&&this.parent.insertBefore(r,this.next||void 0),r}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,r){const n=[],i=[];t.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(n.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(o);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),n.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,s)=>o===s?0:o.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let s=null;o.nextSibling!=null&&(s=this.scroll.find(o.nextSibling));const l=v6(o,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};b6.uiClass="";const wo=b6;function S3e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}const jl=class tu extends wo{static create(t){return super.create(t)}static formats(t,r){const n=r.query(tu.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,r){super(t,r),this.attributes=new Zp(this.domNode)}format(t,r){if(t===this.statics.blotName&&!r)this.children.forEach(n=>{n instanceof tu||(n=n.wrap(tu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,He.INLINE);if(n==null)return;n instanceof ei?this.attributes.attribute(n,r):r&&(t!==this.statics.blotName||this.formats()[t]!==r)&&this.replaceWith(t,r)}}formats(){const t=this.attributes.values(),r=this.statics.formats(this.domNode,this.scroll);return r!=null&&(t[this.statics.blotName]=r),t}formatAt(t,r,n,i){this.formats()[n]!=null||this.scroll.query(n,He.ATTRIBUTE)?this.isolate(t,r).format(n,i):super.formatAt(t,r,n,i)}optimize(t){super.optimize(t);const r=this.formats();if(Object.keys(r).length===0)return this.unwrap();const n=this.next;n instanceof tu&&n.prev===this&&S3e(r,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,r){const n=super.replaceWith(t,r);return this.attributes.copy(n),n}update(t,r){super.update(t,r),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,r){const n=super.wrap(t,r);return n instanceof tu&&this.attributes.move(n),n}};jl.allowedChildren=[jl,Hr],jl.blotName="inline",jl.scope=He.INLINE_BLOT,jl.tagName="SPAN";const P0=jl,Ql=class zb extends wo{static create(t){return super.create(t)}static formats(t,r){const n=r.query(zb.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,r){super(t,r),this.attributes=new Zp(this.domNode)}format(t,r){const n=this.scroll.query(t,He.BLOCK);n!=null&&(n instanceof ei?this.attributes.attribute(n,r):t===this.statics.blotName&&!r?this.replaceWith(zb.blotName):r&&(t!==this.statics.blotName||this.formats()[t]!==r)&&this.replaceWith(t,r))}formats(){const t=this.attributes.values(),r=this.statics.formats(this.domNode,this.scroll);return r!=null&&(t[this.statics.blotName]=r),t}formatAt(t,r,n,i){this.scroll.query(n,He.BLOCK)!=null?this.format(n,i):super.formatAt(t,r,n,i)}insertAt(t,r,n){if(n==null||this.scroll.query(r,He.INLINE)!=null)super.insertAt(t,r,n);else{const i=this.split(t);if(i!=null){const o=this.scroll.create(r,n);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,r){const n=super.replaceWith(t,r);return this.attributes.copy(n),n}update(t,r){super.update(t,r),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Ql.blotName="block",Ql.scope=He.BLOCK_BLOT,Ql.tagName="P",Ql.allowedChildren=[P0,Ql,Hr];const Kc=Ql,z0=class extends wo{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,n){super.formatAt(e,t,r,n),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};z0.blotName="container",z0.scope=He.BLOCK_BLOT;const Gp=z0;class k3e extends Hr{static formats(t,r){}format(t,r){super.formatAt(0,this.length(),t,r)}formatAt(t,r,n,i){t===0&&r===this.length()?this.format(n,i):super.formatAt(t,r,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Mn=k3e,E3e={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},N3e=100,Hl=class extends wo{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,E3e),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=He.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,n){this.update(),super.formatAt(e,t,r,n)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)e.push(n.pop());const i=(l,c=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),c&&i(l.parent))},o=l=>{r.has(l.domNode)&&(l instanceof wo&&l.children.forEach(o),r.delete(l.domNode),l.optimize(t))};let s=e;for(let l=0;s.length>0;l+=1){if(l>=N3e)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(c=>{const u=this.find(c.target,!0);u!=null&&(u.domNode===c.target&&(c.type==="childList"?(i(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(d=>{const f=this.find(d,!1);i(f,!1),f instanceof wo&&f.children.forEach(p=>{i(p,!1)})})):c.type==="attributes"&&i(u.prev)),i(u))}),this.children.forEach(o),s=Array.from(this.observer.takeRecords()),n=s.slice();n.length>0;)e.push(n.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(n=>{const i=this.find(n.target,!0);return i==null?null:r.has(i.domNode)?(r.get(i.domNode).push(n),null):(r.set(i.domNode,[n]),i)}).forEach(n=>{n!=null&&n!==this&&r.has(n.domNode)&&n.update(r.get(n.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};Hl.blotName="scroll",Hl.defaultChild=Kc,Hl.allowedChildren=[Kc,Gp],Hl.scope=He.BLOCK_BLOT,Hl.tagName="DIV";const U0=Hl,q0=class AA extends Hr{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,r){super(t,r),this.text=this.statics.value(this.domNode)}deleteAt(t,r){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+r)}index(t,r){return this.domNode===t?r:-1}insertAt(t,r,n){n==null?(this.text=this.text.slice(0,t)+r+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,r,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof AA&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,r=!1){return[this.domNode,t]}split(t,r=!1){if(!r){if(t===0)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,r){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};q0.blotName="text",q0.scope=He.INLINE_BLOT;const Kp=q0,y6=Object.freeze(Object.defineProperty({__proto__:null,Attributor:ei,AttributorStore:Zp,BlockBlot:Kc,ClassAttributor:yo,ContainerBlot:Gp,EmbedBlot:Mn,InlineBlot:P0,LeafBlot:Hr,ParentBlot:wo,Registry:Vl,Scope:He,ScrollBlot:U0,StyleAttributor:Ma,TextBlot:Kp},Symbol.toStringTag,{value:"Module"}));var V0={exports:{}},j0,w6;function B3e(){if(w6)return j0;w6=1;var e=-1,t=1,r=0;function n(k,D,T,R,$){if(k===D)return k?[[r,k]]:[];if(T!=null){var A=B(k,D,T);if(A)return A}var _=l(k,D),q=k.substring(0,_);k=k.substring(_),D=D.substring(_),_=u(k,D);var z=k.substring(k.length-_);k=k.substring(0,k.length-_),D=D.substring(0,D.length-_);var U=i(k,D);return q&&U.unshift([r,q]),z&&U.push([r,z]),w(U,$),R&&f(U),U}function i(k,D){var T;if(!k)return[[t,D]];if(!D)return[[e,k]];var R=k.length>D.length?k:D,$=k.length>D.length?D:k,A=R.indexOf($);if(A!==-1)return T=[[t,R.substring(0,A)],[r,$],[t,R.substring(A+$.length)]],k.length>D.length&&(T[0][0]=T[2][0]=e),T;if($.length===1)return[[e,k],[t,D]];var _=d(k,D);if(_){var q=_[0],z=_[1],U=_[2],H=_[3],Q=_[4],F=n(q,U),L=n(z,H);return F.concat([[r,Q]],L)}return o(k,D)}function o(k,D){for(var T=k.length,R=D.length,$=Math.ceil((T+R)/2),A=$,_=2*$,q=new Array(_),z=new Array(_),U=0;U<_;U++)q[U]=-1,z[U]=-1;q[A+1]=0,z[A+1]=0;for(var H=T-R,Q=H%2!==0,F=0,L=0,j=0,ae=0,oe=0;oe<$;oe++){for(var Y=-oe+F;Y<=oe-L;Y+=2){var V=A+Y,ee;Y===-oe||Y!==oe&&q[V-1]<q[V+1]?ee=q[V+1]:ee=q[V-1]+1;for(var ie=ee-Y;ee<T&&ie<R&&k.charAt(ee)===D.charAt(ie);)ee++,ie++;if(q[V]=ee,ee>T)L+=2;else if(ie>R)F+=2;else if(Q){var te=A+H-Y;if(te>=0&&te<_&&z[te]!==-1){var ce=T-z[te];if(ee>=ce)return s(k,D,ee,ie)}}}for(var de=-oe+j;de<=oe-ae;de+=2){var te=A+de,ce;de===-oe||de!==oe&&z[te-1]<z[te+1]?ce=z[te+1]:ce=z[te-1]+1;for(var me=ce-de;ce<T&&me<R&&k.charAt(T-ce-1)===D.charAt(R-me-1);)ce++,me++;if(z[te]=ce,ce>T)ae+=2;else if(me>R)j+=2;else if(!Q){var V=A+H-de;if(V>=0&&V<_&&q[V]!==-1){var ee=q[V],ie=A+ee-V;if(ce=T-ce,ee>=ce)return s(k,D,ee,ie)}}}}return[[e,k],[t,D]]}function s(k,D,T,R){var $=k.substring(0,T),A=D.substring(0,R),_=k.substring(T),q=D.substring(R),z=n($,A),U=n(_,q);return z.concat(U)}function l(k,D){if(!k||!D||k.charAt(0)!==D.charAt(0))return 0;for(var T=0,R=Math.min(k.length,D.length),$=R,A=0;T<$;)k.substring(A,$)==D.substring(A,$)?(T=$,A=T):R=$,$=Math.floor((R-T)/2+T);return y(k.charCodeAt($-1))&&$--,$}function c(k,D){var T=k.length,R=D.length;if(T==0||R==0)return 0;T>R?k=k.substring(T-R):T<R&&(D=D.substring(0,T));var $=Math.min(T,R);if(k==D)return $;for(var A=0,_=1;;){var q=k.substring($-_),z=D.indexOf(q);if(z==-1)return A;_+=z,(z==0||k.substring($-_)==D.substring(0,_))&&(A=_,_++)}}function u(k,D){if(!k||!D||k.slice(-1)!==D.slice(-1))return 0;for(var T=0,R=Math.min(k.length,D.length),$=R,A=0;T<$;)k.substring(k.length-$,k.length-A)==D.substring(D.length-$,D.length-A)?(T=$,A=T):R=$,$=Math.floor((R-T)/2+T);return S(k.charCodeAt(k.length-$))&&$--,$}function d(k,D){var T=k.length>D.length?k:D,R=k.length>D.length?D:k;if(T.length<4||R.length*2<T.length)return null;function $(L,j,ae){for(var oe=L.substring(ae,ae+Math.floor(L.length/4)),Y=-1,V="",ee,ie,te,ce;(Y=j.indexOf(oe,Y+1))!==-1;){var de=l(L.substring(ae),j.substring(Y)),me=u(L.substring(0,ae),j.substring(0,Y));V.length<me+de&&(V=j.substring(Y-me,Y)+j.substring(Y,Y+de),ee=L.substring(0,ae-me),ie=L.substring(ae+de),te=j.substring(0,Y-me),ce=j.substring(Y+de))}return V.length*2>=L.length?[ee,ie,te,ce,V]:null}var A=$(T,R,Math.ceil(T.length/4)),_=$(T,R,Math.ceil(T.length/2)),q;if(!A&&!_)return null;_?A?q=A[4].length>_[4].length?A:_:q=_:q=A;var z,U,H,Q;k.length>D.length?(z=q[0],U=q[1],H=q[2],Q=q[3]):(H=q[0],Q=q[1],z=q[2],U=q[3]);var F=q[4];return[z,U,H,Q,F]}function f(k){for(var D=!1,T=[],R=0,$=null,A=0,_=0,q=0,z=0,U=0;A<k.length;)k[A][0]==r?(T[R++]=A,_=z,q=U,z=0,U=0,$=k[A][1]):(k[A][0]==t?z+=k[A][1].length:U+=k[A][1].length,$&&$.length<=Math.max(_,q)&&$.length<=Math.max(z,U)&&(k.splice(T[R-1],0,[e,$]),k[T[R-1]+1][0]=t,R--,R--,A=R>0?T[R-1]:-1,_=0,q=0,z=0,U=0,$=null,D=!0)),A++;for(D&&w(k),b(k),A=1;A<k.length;){if(k[A-1][0]==e&&k[A][0]==t){var H=k[A-1][1],Q=k[A][1],F=c(H,Q),L=c(Q,H);F>=L?(F>=H.length/2||F>=Q.length/2)&&(k.splice(A,0,[r,Q.substring(0,F)]),k[A-1][1]=H.substring(0,H.length-F),k[A+1][1]=Q.substring(F),A++):(L>=H.length/2||L>=Q.length/2)&&(k.splice(A,0,[r,H.substring(0,L)]),k[A-1][0]=t,k[A-1][1]=Q.substring(0,Q.length-L),k[A+1][0]=e,k[A+1][1]=H.substring(L),A++),A++}A++}}var p=/[^a-zA-Z0-9]/,m=/\s/,h=/[\r\n]/,g=/\n\r?\n$/,v=/^\r?\n\r?\n/;function b(k){function D(L,j){if(!L||!j)return 6;var ae=L.charAt(L.length-1),oe=j.charAt(0),Y=ae.match(p),V=oe.match(p),ee=Y&&ae.match(m),ie=V&&oe.match(m),te=ee&&ae.match(h),ce=ie&&oe.match(h),de=te&&L.match(g),me=ce&&j.match(v);return de||me?5:te||ce?4:Y&&!ee&&ie?3:ee||ie?2:Y||V?1:0}for(var T=1;T<k.length-1;){if(k[T-1][0]==r&&k[T+1][0]==r){var R=k[T-1][1],$=k[T][1],A=k[T+1][1],_=u(R,$);if(_){var q=$.substring($.length-_);R=R.substring(0,R.length-_),$=q+$.substring(0,$.length-_),A=q+A}for(var z=R,U=$,H=A,Q=D(R,$)+D($,A);$.charAt(0)===A.charAt(0);){R+=$.charAt(0),$=$.substring(1)+A.charAt(0),A=A.substring(1);var F=D(R,$)+D($,A);F>=Q&&(Q=F,z=R,U=$,H=A)}k[T-1][1]!=z&&(z?k[T-1][1]=z:(k.splice(T-1,1),T--),k[T][1]=U,H?k[T+1][1]=H:(k.splice(T+1,1),T--))}T++}}function w(k,D){k.push([r,""]);for(var T=0,R=0,$=0,A="",_="",q;T<k.length;){if(T<k.length-1&&!k[T][1]){k.splice(T,1);continue}switch(k[T][0]){case t:$++,_+=k[T][1],T++;break;case e:R++,A+=k[T][1],T++;break;case r:var z=T-$-R-1;if(D){if(z>=0&&C(k[z][1])){var U=k[z][1].slice(-1);if(k[z][1]=k[z][1].slice(0,-1),A=U+A,_=U+_,!k[z][1]){k.splice(z,1),T--;var H=z-1;k[H]&&k[H][0]===t&&($++,_=k[H][1]+_,H--),k[H]&&k[H][0]===e&&(R++,A=k[H][1]+A,H--),z=H}}if(x(k[T][1])){var U=k[T][1].charAt(0);k[T][1]=k[T][1].slice(1),A+=U,_+=U}}if(T<k.length-1&&!k[T][1]){k.splice(T,1);break}if(A.length>0||_.length>0){A.length>0&&_.length>0&&(q=l(_,A),q!==0&&(z>=0?k[z][1]+=_.substring(0,q):(k.splice(0,0,[r,_.substring(0,q)]),T++),_=_.substring(q),A=A.substring(q)),q=u(_,A),q!==0&&(k[T][1]=_.substring(_.length-q)+k[T][1],_=_.substring(0,_.length-q),A=A.substring(0,A.length-q)));var Q=$+R;A.length===0&&_.length===0?(k.splice(T-Q,Q),T=T-Q):A.length===0?(k.splice(T-Q,Q,[t,_]),T=T-Q+1):_.length===0?(k.splice(T-Q,Q,[e,A]),T=T-Q+1):(k.splice(T-Q,Q,[e,A],[t,_]),T=T-Q+2)}T!==0&&k[T-1][0]===r?(k[T-1][1]+=k[T][1],k.splice(T,1)):T++,$=0,R=0,A="",_="";break}}k[k.length-1][1]===""&&k.pop();var F=!1;for(T=1;T<k.length-1;)k[T-1][0]===r&&k[T+1][0]===r&&(k[T][1].substring(k[T][1].length-k[T-1][1].length)===k[T-1][1]?(k[T][1]=k[T-1][1]+k[T][1].substring(0,k[T][1].length-k[T-1][1].length),k[T+1][1]=k[T-1][1]+k[T+1][1],k.splice(T-1,1),F=!0):k[T][1].substring(0,k[T+1][1].length)==k[T+1][1]&&(k[T-1][1]+=k[T+1][1],k[T][1]=k[T][1].substring(k[T+1][1].length)+k[T+1][1],k.splice(T+1,1),F=!0)),T++;F&&w(k,D)}function y(k){return k>=55296&&k<=56319}function S(k){return k>=56320&&k<=57343}function x(k){return S(k.charCodeAt(0))}function C(k){return y(k.charCodeAt(k.length-1))}function N(k){for(var D=[],T=0;T<k.length;T++)k[T][1].length>0&&D.push(k[T]);return D}function E(k,D,T,R){return C(k)||x(R)?null:N([[r,k],[e,D],[t,T],[r,R]])}function B(k,D,T){var R=typeof T=="number"?{index:T,length:0}:T.oldRange,$=typeof T=="number"?null:T.newRange,A=k.length,_=D.length;if(R.length===0&&($===null||$.length===0)){var q=R.index,z=k.slice(0,q),U=k.slice(q),H=$?$.index:null;e:{var Q=q+_-A;if(H!==null&&H!==Q||Q<0||Q>_)break e;var F=D.slice(0,Q),L=D.slice(Q);if(L!==U)break e;var j=Math.min(q,Q),ae=z.slice(0,j),oe=F.slice(0,j);if(ae!==oe)break e;var Y=z.slice(j),V=F.slice(j);return E(ae,Y,V,U)}e:{if(H!==null&&H!==q)break e;var ee=q,F=D.slice(0,ee),L=D.slice(ee);if(F!==z)break e;var ie=Math.min(A-ee,_-ee),te=U.slice(U.length-ie),ce=L.slice(L.length-ie);if(te!==ce)break e;var Y=U.slice(0,U.length-ie),V=L.slice(0,L.length-ie);return E(z,Y,V,te)}}if(R.length>0&&$&&$.length===0)e:{var ae=k.slice(0,R.index),te=k.slice(R.index+R.length),j=ae.length,ie=te.length;if(_<j+ie)break e;var oe=D.slice(0,j),ce=D.slice(_-ie);if(ae!==oe||te!==ce)break e;var Y=k.slice(j,A-ie),V=D.slice(j,_-ie);return E(ae,Y,V,te)}return null}function M(k,D,T,R){return n(k,D,T,R,!0)}return M.INSERT=t,M.DELETE=e,M.EQUAL=r,j0=M,j0}var Yp={exports:{}};Yp.exports;var x6;function C6(){return x6||(x6=1,function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",p="[object Map]",m="[object Number]",h="[object Object]",g="[object Promise]",v="[object RegExp]",b="[object Set]",w="[object String]",y="[object Symbol]",S="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",N="[object Float32Array]",E="[object Float64Array]",B="[object Int8Array]",M="[object Int16Array]",k="[object Int32Array]",D="[object Uint8Array]",T="[object Uint8ClampedArray]",R="[object Uint16Array]",$="[object Uint32Array]",A=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,q=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,U={};U[o]=U[s]=U[x]=U[C]=U[l]=U[c]=U[N]=U[E]=U[B]=U[M]=U[k]=U[p]=U[m]=U[h]=U[v]=U[b]=U[w]=U[y]=U[D]=U[T]=U[R]=U[$]=!0,U[u]=U[d]=U[S]=!1;var H=typeof go=="object"&&go&&go.Object===Object&&go,Q=typeof self=="object"&&self&&self.Object===Object&&self,F=H||Q||Function("return this")(),L=t&&!t.nodeType&&t,j=L&&!0&&e&&!e.nodeType&&e,ae=j&&j.exports===L;function oe(I,K){return I.set(K[0],K[1]),I}function Y(I,K){return I.add(K),I}function V(I,K){for(var se=-1,ye=I?I.length:0;++se<ye&&K(I[se],se,I)!==!1;);return I}function ee(I,K){for(var se=-1,ye=K.length,gt=I.length;++se<ye;)I[gt+se]=K[se];return I}function ie(I,K,se,ye){for(var gt=-1,Le=I?I.length:0;++gt<Le;)se=K(se,I[gt],gt,I);return se}function te(I,K){for(var se=-1,ye=Array(I);++se<I;)ye[se]=K(se);return ye}function ce(I,K){return I==null?void 0:I[K]}function de(I){var K=!1;if(I!=null&&typeof I.toString!="function")try{K=!!(I+"")}catch{}return K}function me(I){var K=-1,se=Array(I.size);return I.forEach(function(ye,gt){se[++K]=[gt,ye]}),se}function Ee(I,K){return function(se){return I(K(se))}}function Ie(I){var K=-1,se=Array(I.size);return I.forEach(function(ye){se[++K]=ye}),se}var Te=Array.prototype,Pe=Function.prototype,$e=Object.prototype,J=F["__core-js_shared__"],X=function(){var I=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),P=Pe.toString,W=$e.hasOwnProperty,Z=$e.toString,re=RegExp("^"+P.call(W).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=ae?F.Buffer:void 0,ue=F.Symbol,be=F.Uint8Array,he=Ee(Object.getPrototypeOf,Object),Oe=Object.create,ve=$e.propertyIsEnumerable,qe=Te.splice,ot=Object.getOwnPropertySymbols,ft=le?le.isBuffer:void 0,Xe=Ee(Object.keys,Object),Et=Do(F,"DataView"),O=Do(F,"Map"),ne=Do(F,"Promise"),fe=Do(F,"Set"),Se=Do(F,"WeakMap"),Ue=Do(Object,"create"),Je=on(Et),er=on(O),yn=on(ne),Xn=on(fe),Vi=on(Se),wn=ue?ue.prototype:void 0,Ia=wn?wn.valueOf:void 0;function Tn(I){var K=-1,se=I?I.length:0;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ks(){this.__data__=Ue?Ue(null):{}}function _a(I){return this.has(I)&&delete this.__data__[I]}function Es(I){var K=this.__data__;if(Ue){var se=K[I];return se===n?void 0:se}return W.call(K,I)?K[I]:void 0}function $a(I){var K=this.__data__;return Ue?K[I]!==void 0:W.call(K,I)}function ji(I,K){var se=this.__data__;return se[I]=Ue&&K===void 0?n:K,this}Tn.prototype.clear=ks,Tn.prototype.delete=_a,Tn.prototype.get=Es,Tn.prototype.has=$a,Tn.prototype.set=ji;function dr(I){var K=-1,se=I?I.length:0;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ge(){this.__data__=[]}function _e(I){var K=this.__data__,se=Pa(K,I);if(se<0)return!1;var ye=K.length-1;return se==ye?K.pop():qe.call(K,se,1),!0}function ht(I){var K=this.__data__,se=Pa(K,I);return se<0?void 0:K[se][1]}function It(I){return Pa(this.__data__,I)>-1}function xn(I,K){var se=this.__data__,ye=Pa(se,I);return ye<0?se.push([I,K]):se[ye][1]=K,this}dr.prototype.clear=ge,dr.prototype.delete=_e,dr.prototype.get=ht,dr.prototype.has=It,dr.prototype.set=xn;function tr(I){var K=-1,se=I?I.length:0;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function oi(){this.__data__={hash:new Tn,map:new(O||dr),string:new Tn}}function Fn(I){return Bs(this,I).delete(I)}function Zr(I){return Bs(this,I).get(I)}function Ra(I){return Bs(this,I).has(I)}function ld(I,K){return Bs(this,I).set(I,K),this}tr.prototype.clear=oi,tr.prototype.delete=Fn,tr.prototype.get=Zr,tr.prototype.has=Ra,tr.prototype.set=ld;function Gr(I){this.__data__=new dr(I)}function ud(){this.__data__=new dr}function Qi(I){return this.__data__.delete(I)}function Mt(I){return this.__data__.get(I)}function Dr(I){return this.__data__.has(I)}function cd(I,K){var se=this.__data__;if(se instanceof dr){var ye=se.__data__;if(!O||ye.length<r-1)return ye.push([I,K]),this;se=this.__data__=new tr(ye)}return se.set(I,K),this}Gr.prototype.clear=ud,Gr.prototype.delete=Qi,Gr.prototype.get=Mt,Gr.prototype.has=Dr,Gr.prototype.set=cd;function Ao(I,K){var se=md(I)||Ll(I)?te(I.length,String):[],ye=se.length,gt=!!ye;for(var Le in I)W.call(I,Le)&&!(gt&&(Le=="length"||Fb(Le,ye)))&&se.push(Le);return se}function ii(I,K,se){var ye=I[K];(!(W.call(I,K)&&hm(ye,se))||se===void 0&&!(K in I))&&(I[K]=se)}function Pa(I,K){for(var se=I.length;se--;)if(hm(I[se][0],K))return se;return-1}function ai(I,K){return I&&pd(K,gd(K),I)}function dd(I,K,se,ye,gt,Le,_t){var Tt;if(ye&&(Tt=Le?ye(I,gt,Le,_t):ye(I)),Tt!==void 0)return Tt;if(!li(I))return I;var hr=md(I);if(hr){if(Tt=Mb(I),!K)return Bb(I,Tt)}else{var zt=Wi(I),Kr=zt==d||zt==f;if(gm(I))return Xl(I,K);if(zt==h||zt==o||Kr&&!Le){if(de(I))return Le?I:{};if(Tt=si(Kr?{}:I),!K)return Ab(I,ai(Tt,I))}else{if(!U[zt])return Le?I:{};Tt=Tb(I,zt,dd,K)}}_t||(_t=new Gr);var Cn=_t.get(I);if(Cn)return Cn;if(_t.set(I,Tt),!hr)var wr=se?Db(I):gd(I);return V(wr||I,function(Yr,Rr){wr&&(Rr=Yr,Yr=I[Rr]),ii(Tt,Rr,dd(Yr,K,se,ye,Rr,I,_t))}),Tt}function yb(I){return li(I)?Oe(I):{}}function wb(I,K,se){var ye=K(I);return md(I)?ye:ee(ye,se(I))}function xb(I){return Z.call(I)}function Cb(I){if(!li(I)||Ib(I))return!1;var K=hd(I)||de(I)?re:q;return K.test(on(I))}function Sb(I){if(!pm(I))return Xe(I);var K=[];for(var se in Object(I))W.call(I,se)&&se!="constructor"&&K.push(se);return K}function Xl(I,K){if(K)return I.slice();var se=new I.constructor(I.length);return I.copy(se),se}function fd(I){var K=new I.constructor(I.byteLength);return new be(K).set(new be(I)),K}function Ns(I,K){var se=K?fd(I.buffer):I.buffer;return new I.constructor(se,I.byteOffset,I.byteLength)}function dm(I,K,se){var ye=K?se(me(I),!0):me(I);return ie(ye,oe,new I.constructor)}function fm(I){var K=new I.constructor(I.source,_.exec(I));return K.lastIndex=I.lastIndex,K}function kb(I,K,se){var ye=K?se(Ie(I),!0):Ie(I);return ie(ye,Y,new I.constructor)}function Eb(I){return Ia?Object(Ia.call(I)):{}}function Nb(I,K){var se=K?fd(I.buffer):I.buffer;return new I.constructor(se,I.byteOffset,I.length)}function Bb(I,K){var se=-1,ye=I.length;for(K||(K=Array(ye));++se<ye;)K[se]=I[se];return K}function pd(I,K,se,ye){se||(se={});for(var gt=-1,Le=K.length;++gt<Le;){var _t=K[gt],Tt=void 0;ii(se,_t,Tt===void 0?I[_t]:Tt)}return se}function Ab(I,K){return pd(I,Hi(I),K)}function Db(I){return wb(I,gd,Hi)}function Bs(I,K){var se=I.__data__;return Ob(K)?se[typeof K=="string"?"string":"hash"]:se.map}function Do(I,K){var se=ce(I,K);return Cb(se)?se:void 0}var Hi=ot?Ee(ot,Object):$b,Wi=xb;(Et&&Wi(new Et(new ArrayBuffer(1)))!=C||O&&Wi(new O)!=p||ne&&Wi(ne.resolve())!=g||fe&&Wi(new fe)!=b||Se&&Wi(new Se)!=S)&&(Wi=function(I){var K=Z.call(I),se=K==h?I.constructor:void 0,ye=se?on(se):void 0;if(ye)switch(ye){case Je:return C;case er:return p;case yn:return g;case Xn:return b;case Vi:return S}return K});function Mb(I){var K=I.length,se=I.constructor(K);return K&&typeof I[0]=="string"&&W.call(I,"index")&&(se.index=I.index,se.input=I.input),se}function si(I){return typeof I.constructor=="function"&&!pm(I)?yb(he(I)):{}}function Tb(I,K,se,ye){var gt=I.constructor;switch(K){case x:return fd(I);case l:case c:return new gt(+I);case C:return Ns(I,ye);case N:case E:case B:case M:case k:case D:case T:case R:case $:return Nb(I,ye);case p:return dm(I,ye,se);case m:case w:return new gt(I);case v:return fm(I);case b:return kb(I,ye,se);case y:return Eb(I)}}function Fb(I,K){return K=K??i,!!K&&(typeof I=="number"||z.test(I))&&I>-1&&I%1==0&&I<K}function Ob(I){var K=typeof I;return K=="string"||K=="number"||K=="symbol"||K=="boolean"?I!=="__proto__":I===null}function Ib(I){return!!X&&X in I}function pm(I){var K=I&&I.constructor,se=typeof K=="function"&&K.prototype||$e;return I===se}function on(I){if(I!=null){try{return P.call(I)}catch{}try{return I+""}catch{}}return""}function mm(I){return dd(I,!0,!0)}function hm(I,K){return I===K||I!==I&&K!==K}function Ll(I){return _b(I)&&W.call(I,"callee")&&(!ve.call(I,"callee")||Z.call(I)==o)}var md=Array.isArray;function eu(I){return I!=null&&vm(I.length)&&!hd(I)}function _b(I){return bm(I)&&eu(I)}var gm=ft||Rb;function hd(I){var K=li(I)?Z.call(I):"";return K==d||K==f}function vm(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=i}function li(I){var K=typeof I;return!!I&&(K=="object"||K=="function")}function bm(I){return!!I&&typeof I=="object"}function gd(I){return eu(I)?Ao(I):Sb(I)}function $b(){return[]}function Rb(){return!1}e.exports=mm}(Yp,Yp.exports)),Yp.exports}var Jp={exports:{}};Jp.exports;var S6;function k6(){return S6||(S6=1,function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Function]",h="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Null]",w="[object Object]",y="[object Promise]",S="[object Proxy]",x="[object RegExp]",C="[object Set]",N="[object String]",E="[object Symbol]",B="[object Undefined]",M="[object WeakMap]",k="[object ArrayBuffer]",D="[object DataView]",T="[object Float32Array]",R="[object Float64Array]",$="[object Int8Array]",A="[object Int16Array]",_="[object Int32Array]",q="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",H="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,j={};j[T]=j[R]=j[$]=j[A]=j[_]=j[q]=j[z]=j[U]=j[H]=!0,j[l]=j[c]=j[k]=j[d]=j[D]=j[f]=j[p]=j[m]=j[g]=j[v]=j[w]=j[x]=j[C]=j[N]=j[M]=!1;var ae=typeof go=="object"&&go&&go.Object===Object&&go,oe=typeof self=="object"&&self&&self.Object===Object&&self,Y=ae||oe||Function("return this")(),V=t&&!t.nodeType&&t,ee=V&&!0&&e&&!e.nodeType&&e,ie=ee&&ee.exports===V,te=ie&&ae.process,ce=function(){try{return te&&te.binding&&te.binding("util")}catch{}}(),de=ce&&ce.isTypedArray;function me(I,K){for(var se=-1,ye=I==null?0:I.length,gt=0,Le=[];++se<ye;){var _t=I[se];K(_t,se,I)&&(Le[gt++]=_t)}return Le}function Ee(I,K){for(var se=-1,ye=K.length,gt=I.length;++se<ye;)I[gt+se]=K[se];return I}function Ie(I,K){for(var se=-1,ye=I==null?0:I.length;++se<ye;)if(K(I[se],se,I))return!0;return!1}function Te(I,K){for(var se=-1,ye=Array(I);++se<I;)ye[se]=K(se);return ye}function Pe(I){return function(K){return I(K)}}function $e(I,K){return I.has(K)}function J(I,K){return I==null?void 0:I[K]}function X(I){var K=-1,se=Array(I.size);return I.forEach(function(ye,gt){se[++K]=[gt,ye]}),se}function P(I,K){return function(se){return I(K(se))}}function W(I){var K=-1,se=Array(I.size);return I.forEach(function(ye){se[++K]=ye}),se}var Z=Array.prototype,re=Function.prototype,le=Object.prototype,ue=Y["__core-js_shared__"],be=re.toString,he=le.hasOwnProperty,Oe=function(){var I=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),ve=le.toString,qe=RegExp("^"+be.call(he).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=ie?Y.Buffer:void 0,ft=Y.Symbol,Xe=Y.Uint8Array,Et=le.propertyIsEnumerable,O=Z.splice,ne=ft?ft.toStringTag:void 0,fe=Object.getOwnPropertySymbols,Se=ot?ot.isBuffer:void 0,Ue=P(Object.keys,Object),Je=Hi(Y,"DataView"),er=Hi(Y,"Map"),yn=Hi(Y,"Promise"),Xn=Hi(Y,"Set"),Vi=Hi(Y,"WeakMap"),wn=Hi(Object,"create"),Ia=on(Je),Tn=on(er),ks=on(yn),_a=on(Xn),Es=on(Vi),$a=ft?ft.prototype:void 0,ji=$a?$a.valueOf:void 0;function dr(I){var K=-1,se=I==null?0:I.length;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ge(){this.__data__=wn?wn(null):{},this.size=0}function _e(I){var K=this.has(I)&&delete this.__data__[I];return this.size-=K?1:0,K}function ht(I){var K=this.__data__;if(wn){var se=K[I];return se===n?void 0:se}return he.call(K,I)?K[I]:void 0}function It(I){var K=this.__data__;return wn?K[I]!==void 0:he.call(K,I)}function xn(I,K){var se=this.__data__;return this.size+=this.has(I)?0:1,se[I]=wn&&K===void 0?n:K,this}dr.prototype.clear=ge,dr.prototype.delete=_e,dr.prototype.get=ht,dr.prototype.has=It,dr.prototype.set=xn;function tr(I){var K=-1,se=I==null?0:I.length;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function oi(){this.__data__=[],this.size=0}function Fn(I){var K=this.__data__,se=Xl(K,I);if(se<0)return!1;var ye=K.length-1;return se==ye?K.pop():O.call(K,se,1),--this.size,!0}function Zr(I){var K=this.__data__,se=Xl(K,I);return se<0?void 0:K[se][1]}function Ra(I){return Xl(this.__data__,I)>-1}function ld(I,K){var se=this.__data__,ye=Xl(se,I);return ye<0?(++this.size,se.push([I,K])):se[ye][1]=K,this}tr.prototype.clear=oi,tr.prototype.delete=Fn,tr.prototype.get=Zr,tr.prototype.has=Ra,tr.prototype.set=ld;function Gr(I){var K=-1,se=I==null?0:I.length;for(this.clear();++K<se;){var ye=I[K];this.set(ye[0],ye[1])}}function ud(){this.size=0,this.__data__={hash:new dr,map:new(er||tr),string:new dr}}function Qi(I){var K=Do(this,I).delete(I);return this.size-=K?1:0,K}function Mt(I){return Do(this,I).get(I)}function Dr(I){return Do(this,I).has(I)}function cd(I,K){var se=Do(this,I),ye=se.size;return se.set(I,K),this.size+=se.size==ye?0:1,this}Gr.prototype.clear=ud,Gr.prototype.delete=Qi,Gr.prototype.get=Mt,Gr.prototype.has=Dr,Gr.prototype.set=cd;function Ao(I){var K=-1,se=I==null?0:I.length;for(this.__data__=new Gr;++K<se;)this.add(I[K])}function ii(I){return this.__data__.set(I,n),this}function Pa(I){return this.__data__.has(I)}Ao.prototype.add=Ao.prototype.push=ii,Ao.prototype.has=Pa;function ai(I){var K=this.__data__=new tr(I);this.size=K.size}function dd(){this.__data__=new tr,this.size=0}function yb(I){var K=this.__data__,se=K.delete(I);return this.size=K.size,se}function wb(I){return this.__data__.get(I)}function xb(I){return this.__data__.has(I)}function Cb(I,K){var se=this.__data__;if(se instanceof tr){var ye=se.__data__;if(!er||ye.length<r-1)return ye.push([I,K]),this.size=++se.size,this;se=this.__data__=new Gr(ye)}return se.set(I,K),this.size=se.size,this}ai.prototype.clear=dd,ai.prototype.delete=yb,ai.prototype.get=wb,ai.prototype.has=xb,ai.prototype.set=Cb;function Sb(I,K){var se=Ll(I),ye=!se&&hm(I),gt=!se&&!ye&&eu(I),Le=!se&&!ye&&!gt&&bm(I),_t=se||ye||gt||Le,Tt=_t?Te(I.length,String):[],hr=Tt.length;for(var zt in I)he.call(I,zt)&&!(_t&&(zt=="length"||gt&&(zt=="offset"||zt=="parent")||Le&&(zt=="buffer"||zt=="byteLength"||zt=="byteOffset")||Tb(zt,hr)))&&Tt.push(zt);return Tt}function Xl(I,K){for(var se=I.length;se--;)if(mm(I[se][0],K))return se;return-1}function fd(I,K,se){var ye=K(I);return Ll(I)?ye:Ee(ye,se(I))}function Ns(I){return I==null?I===void 0?B:b:ne&&ne in Object(I)?Wi(I):pm(I)}function dm(I){return li(I)&&Ns(I)==l}function fm(I,K,se,ye,gt){return I===K?!0:I==null||K==null||!li(I)&&!li(K)?I!==I&&K!==K:kb(I,K,se,ye,fm,gt)}function kb(I,K,se,ye,gt,Le){var _t=Ll(I),Tt=Ll(K),hr=_t?c:si(I),zt=Tt?c:si(K);hr=hr==l?w:hr,zt=zt==l?w:zt;var Kr=hr==w,Cn=zt==w,wr=hr==zt;if(wr&&eu(I)){if(!eu(K))return!1;_t=!0,Kr=!1}if(wr&&!Kr)return Le||(Le=new ai),_t||bm(I)?pd(I,K,se,ye,gt,Le):Ab(I,K,hr,se,ye,gt,Le);if(!(se&i)){var Yr=Kr&&he.call(I,"__wrapped__"),Rr=Cn&&he.call(K,"__wrapped__");if(Yr||Rr){var za=Yr?I.value():I,Zi=Rr?K.value():K;return Le||(Le=new ai),gt(za,Zi,se,ye,Le)}}return wr?(Le||(Le=new ai),Db(I,K,se,ye,gt,Le)):!1}function Eb(I){if(!vm(I)||Ob(I))return!1;var K=gm(I)?qe:F;return K.test(on(I))}function Nb(I){return li(I)&&hd(I.length)&&!!j[Ns(I)]}function Bb(I){if(!Ib(I))return Ue(I);var K=[];for(var se in Object(I))he.call(I,se)&&se!="constructor"&&K.push(se);return K}function pd(I,K,se,ye,gt,Le){var _t=se&i,Tt=I.length,hr=K.length;if(Tt!=hr&&!(_t&&hr>Tt))return!1;var zt=Le.get(I);if(zt&&Le.get(K))return zt==K;var Kr=-1,Cn=!0,wr=se&o?new Ao:void 0;for(Le.set(I,K),Le.set(K,I);++Kr<Tt;){var Yr=I[Kr],Rr=K[Kr];if(ye)var za=_t?ye(Rr,Yr,Kr,K,I,Le):ye(Yr,Rr,Kr,I,K,Le);if(za!==void 0){if(za)continue;Cn=!1;break}if(wr){if(!Ie(K,function(Zi,As){if(!$e(wr,As)&&(Yr===Zi||gt(Yr,Zi,se,ye,Le)))return wr.push(As)})){Cn=!1;break}}else if(!(Yr===Rr||gt(Yr,Rr,se,ye,Le))){Cn=!1;break}}return Le.delete(I),Le.delete(K),Cn}function Ab(I,K,se,ye,gt,Le,_t){switch(se){case D:if(I.byteLength!=K.byteLength||I.byteOffset!=K.byteOffset)return!1;I=I.buffer,K=K.buffer;case k:return!(I.byteLength!=K.byteLength||!Le(new Xe(I),new Xe(K)));case d:case f:case v:return mm(+I,+K);case p:return I.name==K.name&&I.message==K.message;case x:case N:return I==K+"";case g:var Tt=X;case C:var hr=ye&i;if(Tt||(Tt=W),I.size!=K.size&&!hr)return!1;var zt=_t.get(I);if(zt)return zt==K;ye|=o,_t.set(I,K);var Kr=pd(Tt(I),Tt(K),ye,gt,Le,_t);return _t.delete(I),Kr;case E:if(ji)return ji.call(I)==ji.call(K)}return!1}function Db(I,K,se,ye,gt,Le){var _t=se&i,Tt=Bs(I),hr=Tt.length,zt=Bs(K),Kr=zt.length;if(hr!=Kr&&!_t)return!1;for(var Cn=hr;Cn--;){var wr=Tt[Cn];if(!(_t?wr in K:he.call(K,wr)))return!1}var Yr=Le.get(I);if(Yr&&Le.get(K))return Yr==K;var Rr=!0;Le.set(I,K),Le.set(K,I);for(var za=_t;++Cn<hr;){wr=Tt[Cn];var Zi=I[wr],As=K[wr];if(ye)var BA=_t?ye(As,Zi,wr,K,I,Le):ye(Zi,As,wr,I,K,Le);if(!(BA===void 0?Zi===As||gt(Zi,As,se,ye,Le):BA)){Rr=!1;break}za||(za=wr=="constructor")}if(Rr&&!za){var ym=I.constructor,wm=K.constructor;ym!=wm&&"constructor"in I&&"constructor"in K&&!(typeof ym=="function"&&ym instanceof ym&&typeof wm=="function"&&wm instanceof wm)&&(Rr=!1)}return Le.delete(I),Le.delete(K),Rr}function Bs(I){return fd(I,gd,Mb)}function Do(I,K){var se=I.__data__;return Fb(K)?se[typeof K=="string"?"string":"hash"]:se.map}function Hi(I,K){var se=J(I,K);return Eb(se)?se:void 0}function Wi(I){var K=he.call(I,ne),se=I[ne];try{I[ne]=void 0;var ye=!0}catch{}var gt=ve.call(I);return ye&&(K?I[ne]=se:delete I[ne]),gt}var Mb=fe?function(I){return I==null?[]:(I=Object(I),me(fe(I),function(K){return Et.call(I,K)}))}:$b,si=Ns;(Je&&si(new Je(new ArrayBuffer(1)))!=D||er&&si(new er)!=g||yn&&si(yn.resolve())!=y||Xn&&si(new Xn)!=C||Vi&&si(new Vi)!=M)&&(si=function(I){var K=Ns(I),se=K==w?I.constructor:void 0,ye=se?on(se):"";if(ye)switch(ye){case Ia:return D;case Tn:return g;case ks:return y;case _a:return C;case Es:return M}return K});function Tb(I,K){return K=K??s,!!K&&(typeof I=="number"||L.test(I))&&I>-1&&I%1==0&&I<K}function Fb(I){var K=typeof I;return K=="string"||K=="number"||K=="symbol"||K=="boolean"?I!=="__proto__":I===null}function Ob(I){return!!Oe&&Oe in I}function Ib(I){var K=I&&I.constructor,se=typeof K=="function"&&K.prototype||le;return I===se}function pm(I){return ve.call(I)}function on(I){if(I!=null){try{return be.call(I)}catch{}try{return I+""}catch{}}return""}function mm(I,K){return I===K||I!==I&&K!==K}var hm=dm(function(){return arguments}())?dm:function(I){return li(I)&&he.call(I,"callee")&&!Et.call(I,"callee")},Ll=Array.isArray;function md(I){return I!=null&&hd(I.length)&&!gm(I)}var eu=Se||Rb;function _b(I,K){return fm(I,K)}function gm(I){if(!vm(I))return!1;var K=Ns(I);return K==m||K==h||K==u||K==S}function hd(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=s}function vm(I){var K=typeof I;return I!=null&&(K=="object"||K=="function")}function li(I){return I!=null&&typeof I=="object"}var bm=de?Pe(de):Nb;function gd(I){return md(I)?Sb(I):Bb(I)}function $b(){return[]}function Rb(){return!1}e.exports=_b}(Jp,Jp.exports)),Jp.exports}var Xp={},E6;function A3e(){if(E6)return Xp;E6=1,Object.defineProperty(Xp,"__esModule",{value:!0});const e=C6(),t=k6();var r;return function(n){function i(c={},u={},d=!1){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});let f=e(u);d||(f=Object.keys(f).reduce((p,m)=>(f[m]!=null&&(p[m]=f[m]),p),{}));for(const p in c)c[p]!==void 0&&u[p]===void 0&&(f[p]=c[p]);return Object.keys(f).length>0?f:void 0}n.compose=i;function o(c={},u={}){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});const d=Object.keys(c).concat(Object.keys(u)).reduce((f,p)=>(t(c[p],u[p])||(f[p]=u[p]===void 0?null:u[p]),f),{});return Object.keys(d).length>0?d:void 0}n.diff=o;function s(c={},u={}){c=c||{};const d=Object.keys(u).reduce((f,p)=>(u[p]!==c[p]&&c[p]!==void 0&&(f[p]=u[p]),f),{});return Object.keys(c).reduce((f,p)=>(c[p]!==u[p]&&u[p]===void 0&&(f[p]=null),f),d)}n.invert=s;function l(c,u,d=!1){if(typeof c!="object")return u;if(typeof u!="object")return;if(!d)return u;const f=Object.keys(u).reduce((p,m)=>(c[m]===void 0&&(p[m]=u[m]),p),{});return Object.keys(f).length>0?f:void 0}n.transform=l}(r||(r={})),Xp.default=r,Xp}var Lp={},N6;function B6(){if(N6)return Lp;N6=1,Object.defineProperty(Lp,"__esModule",{value:!0});var e;return function(t){function r(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=r}(e||(e={})),Lp.default=e,Lp}var em={},A6;function D3e(){if(A6)return em;A6=1,Object.defineProperty(em,"__esModule",{value:!0});const e=B6();class t{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const i=this.ops[this.index];if(i){const o=this.offset,s=e.default.length(i);if(n>=s-o?(n=s-o,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const l={};return i.attributes&&(l.attributes=i.attributes),typeof i.retain=="number"?l.retain=n:typeof i.retain=="object"&&i.retain!==null?l.retain=i.retain:typeof i.insert=="string"?l.insert=i.insert.substr(o,n):l.insert=i.insert,l}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,i=this.index,o=this.next(),s=this.ops.slice(this.index);return this.offset=n,this.index=i,[o].concat(s)}}else return[]}}return em.default=t,em}var D6;function M3e(){return D6||(D6=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const r=B3e(),n=C6(),i=k6(),o=A3e();t.AttributeMap=o.default;const s=B6();t.Op=s.default;const l=D3e();t.OpIterator=l.default;const c="\0",u=(f,p)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);const m=Object.keys(f)[0];if(!m||m!==Object.keys(p)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(p)[0]}`);return[m,f[m],p[m]]};class d{constructor(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]}static registerEmbed(p,m){this.handlers[p]=m}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const m=this.handlers[p];if(!m)throw new Error(`no handlers for embed type "${p}"`);return m}insert(p,m){const h={};return typeof p=="string"&&p.length===0?this:(h.insert=p,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(h.attributes=m),this.push(h))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,m){if(typeof p=="number"&&p<=0)return this;const h={retain:p};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(h.attributes=m),this.push(h)}push(p){let m=this.ops.length,h=this.ops[m-1];if(p=n(p),typeof h=="object"){if(typeof p.delete=="number"&&typeof h.delete=="number")return this.ops[m-1]={delete:h.delete+p.delete},this;if(typeof h.delete=="number"&&p.insert!=null&&(m-=1,h=this.ops[m-1],typeof h!="object"))return this.ops.unshift(p),this;if(i(p.attributes,h.attributes)){if(typeof p.insert=="string"&&typeof h.insert=="string")return this.ops[m-1]={insert:h.insert+p.insert},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof h.retain=="number")return this.ops[m-1]={retain:h.retain+p.retain},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this}}return m===this.ops.length?this.ops.push(p):this.ops.splice(m,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&typeof p.retain=="number"&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const m=[],h=[];return this.forEach(g=>{(p(g)?m:h).push(g)}),[m,h]}reduce(p,m){return this.ops.reduce(p,m)}changeLength(){return this.reduce((p,m)=>m.insert?p+s.default.length(m):m.delete?p-m.delete:p,0)}length(){return this.reduce((p,m)=>p+s.default.length(m),0)}slice(p=0,m=1/0){const h=[],g=new l.default(this.ops);let v=0;for(;v<m&&g.hasNext();){let b;v<p?b=g.next(p-v):(b=g.next(m-v),h.push(b)),v+=s.default.length(b)}return new d(h)}compose(p){const m=new l.default(this.ops),h=new l.default(p.ops),g=[],v=h.peek();if(v!=null&&typeof v.retain=="number"&&v.attributes==null){let w=v.retain;for(;m.peekType()==="insert"&&m.peekLength()<=w;)w-=m.peekLength(),g.push(m.next());v.retain-w>0&&h.next(v.retain-w)}const b=new d(g);for(;m.hasNext()||h.hasNext();)if(h.peekType()==="insert")b.push(h.next());else if(m.peekType()==="delete")b.push(m.next());else{const w=Math.min(m.peekLength(),h.peekLength()),y=m.next(w),S=h.next(w);if(S.retain){const x={};if(typeof y.retain=="number")x.retain=typeof S.retain=="number"?w:S.retain;else if(typeof S.retain=="number")y.retain==null?x.insert=y.insert:x.retain=y.retain;else{const N=y.retain==null?"insert":"retain",[E,B,M]=u(y[N],S.retain),k=d.getHandler(E);x[N]={[E]:k.compose(B,M,N==="retain")}}const C=o.default.compose(y.attributes,S.attributes,typeof y.retain=="number");if(C&&(x.attributes=C),b.push(x),!h.hasNext()&&i(b.ops[b.ops.length-1],x)){const N=new d(m.rest());return b.concat(N).chop()}}else typeof S.delete=="number"&&(typeof y.retain=="number"||typeof y.retain=="object"&&y.retain!==null)&&b.push(S)}return b.chop()}concat(p){const m=new d(this.ops.slice());return p.ops.length>0&&(m.push(p.ops[0]),m.ops=m.ops.concat(p.ops.slice(1))),m}diff(p,m){if(this.ops===p.ops)return new d;const h=[this,p].map(y=>y.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:c;const x=y===p?"on":"with";throw new Error("diff() called "+x+" non-document")}).join("")),g=new d,v=r(h[0],h[1],m,!0),b=new l.default(this.ops),w=new l.default(p.ops);return v.forEach(y=>{let S=y[1].length;for(;S>0;){let x=0;switch(y[0]){case r.INSERT:x=Math.min(w.peekLength(),S),g.push(w.next(x));break;case r.DELETE:x=Math.min(S,b.peekLength()),b.next(x),g.delete(x);break;case r.EQUAL:x=Math.min(b.peekLength(),w.peekLength(),S);const C=b.next(x),N=w.next(x);i(C.insert,N.insert)?g.retain(x,o.default.diff(C.attributes,N.attributes)):g.push(N).delete(x);break}S-=x}}),g.chop()}eachLine(p,m=`
|
|
5287
|
+
`){const h=new l.default(this.ops);let g=new d,v=0;for(;h.hasNext();){if(h.peekType()!=="insert")return;const b=h.peek(),w=s.default.length(b)-h.peekLength(),y=typeof b.insert=="string"?b.insert.indexOf(m,w)-w:-1;if(y<0)g.push(h.next());else if(y>0)g.push(h.next(y));else{if(p(g,h.next(1).attributes||{},v)===!1)return;v+=1,g=new d}}g.length()>0&&p(g,{},v)}invert(p){const m=new d;return this.reduce((h,g)=>{if(g.insert)m.delete(s.default.length(g));else{if(typeof g.retain=="number"&&g.attributes==null)return m.retain(g.retain),h+g.retain;if(g.delete||typeof g.retain=="number"){const v=g.delete||g.retain;return p.slice(h,h+v).forEach(b=>{g.delete?m.push(b):g.retain&&g.attributes&&m.retain(s.default.length(b),o.default.invert(g.attributes,b.attributes))}),h+v}else if(typeof g.retain=="object"&&g.retain!==null){const v=p.slice(h,h+1),b=new l.default(v.ops).next(),[w,y,S]=u(g.retain,b.insert),x=d.getHandler(w);return m.retain({[w]:x.invert(y,S)},o.default.invert(g.attributes,b.attributes)),h+1}}return h},0),m.chop()}transform(p,m=!1){if(m=!!m,typeof p=="number")return this.transformPosition(p,m);const h=p,g=new l.default(this.ops),v=new l.default(h.ops),b=new d;for(;g.hasNext()||v.hasNext();)if(g.peekType()==="insert"&&(m||v.peekType()!=="insert"))b.retain(s.default.length(g.next()));else if(v.peekType()==="insert")b.push(v.next());else{const w=Math.min(g.peekLength(),v.peekLength()),y=g.next(w),S=v.next(w);if(y.delete)continue;if(S.delete)b.push(S);else{const x=y.retain,C=S.retain;let N=typeof C=="object"&&C!==null?C:w;if(typeof x=="object"&&x!==null&&typeof C=="object"&&C!==null){const E=Object.keys(x)[0];if(E===Object.keys(C)[0]){const B=d.getHandler(E);B&&(N={[E]:B.transform(x[E],C[E],m)})}}b.retain(N,o.default.transform(y.attributes,S.attributes,m))}}return b.chop()}transformPosition(p,m=!1){m=!!m;const h=new l.default(this.ops);let g=0;for(;h.hasNext()&&g<=p;){const v=h.peekLength(),b=h.peekType();if(h.next(),b==="delete"){p-=Math.min(v,p-g);continue}else b==="insert"&&(g<p||!m)&&(p+=v);g+=v}return p}}d.Op=s.default,d.OpIterator=l.default,d.AttributeMap=o.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d}(V0,V0.exports)),V0.exports}var nn=M3e();const Qe=dv(nn);class xo extends Mn{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}xo.blotName="break",xo.tagName="BR";let Co=class extends Kp{};const T3e={"&":"&","<":"<",">":">",'"':""","'":"'"};function tm(e){return e.replace(/[&<>"']/g,t=>T3e[t])}const ni=class ni extends P0{static compare(t,r){const n=ni.order.indexOf(t),i=ni.order.indexOf(r);return n>=0||i>=0?n-i:t===r?0:t<r?-1:1}formatAt(t,r,n,i){if(ni.compare(this.statics.blotName,n)<0&&this.scroll.query(n,He.BLOT)){const o=this.isolate(t,r);i&&o.wrap(n,i)}else super.formatAt(t,r,n,i)}optimize(t){if(super.optimize(t),this.parent instanceof ni&&ni.compare(this.statics.blotName,this.parent.statics.blotName)>0){const r=this.parent.isolate(this.offset(),this.length());this.moveChildren(r),r.wrap(this)}}};Fe(ni,"allowedChildren",[ni,xo,Mn,Co]),Fe(ni,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let ti=ni;const M6=1;class $r extends Kc{constructor(){super(...arguments);Fe(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=T6(this)),this.cache.delta}deleteAt(r,n){super.deleteAt(r,n),this.cache={}}formatAt(r,n,i,o){n<=0||(this.scroll.query(i,He.BLOCK)?r+n===this.length()&&this.format(i,o):super.formatAt(r,Math.min(n,this.length()-r-1),i,o),this.cache={})}insertAt(r,n,i){if(i!=null){super.insertAt(r,n,i),this.cache={};return}if(n.length===0)return;const o=n.split(`
|
|
5288
5288
|
`),s=o.shift();s.length>0&&(r<this.length()-1||this.children.tail==null?super.insertAt(Math.min(r,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;o.reduce((c,u)=>(l=l.split(c,!0),l.insertAt(0,u),u.length),r+s.length)}insertBefore(r,n){const{head:i}=this.children;super.insertBefore(r,n),i instanceof xo&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+M6),this.cache.length}moveChildren(r,n){super.moveChildren(r,n),this.cache={}}optimize(r){super.optimize(r),this.cache={}}path(r){return super.path(r,!0)}removeChild(r){super.removeChild(r),this.cache={}}split(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(r===0||r>=this.length()-M6)){const o=this.clone();return r===0?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}const i=super.split(r,n);return this.cache={},i}}$r.blotName="block",$r.tagName="P",$r.defaultChild=xo,$r.allowedChildren=[xo,ti,Mn,Co];class Zn extends Mn{attach(){super.attach(),this.attributes=new Zp(this.domNode)}delta(){return new Qe().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,r){const n=this.scroll.query(t,He.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,r)}formatAt(t,r,n,i){this.format(n,i)}insertAt(t,r,n){if(n!=null){super.insertAt(t,r,n);return}const i=r.split(`
|
|
5289
5289
|
`),o=i.pop(),s=i.map(c=>{const u=this.scroll.create($r.blotName);return u.insertAt(0,c),u}),l=this.split(t);s.forEach(c=>{this.parent.insertBefore(c,l)}),o&&this.parent.insertBefore(this.scroll.create("text",o),l)}}Zn.scope=He.BLOCK_BLOT;function T6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.descendants(Hr).reduce((r,n)=>n.length()===0?r:r.insert(n.value(),Gn(n,{},t)),new Qe).insert(`
|
|
5290
|
-
`,Gn(e))}function Gn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e==null||("formats"in e&&typeof e.formats=="function"&&(t={...t,...e.formats()},r&&delete t["code-token"]),e.parent==null||e.parent.statics.blotName==="scroll"||e.parent.statics.scope!==e.statics.scope)?t:Gn(e.parent,t,r)}const Jn=class Jn extends Mn{static value(){}constructor(t,r,n){super(t,r),this.selection=n,this.textNode=document.createTextNode(Jn.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,r){if(this.savedLength!==0){super.format(t,r);return}let n=this,i=0;for(;n!=null&&n.statics.scope!==He.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=Jn.CONTENTS.length,n.optimize(),n.formatAt(i,Jn.CONTENTS.length,t,r),this.savedLength=0)}index(t,r){return t===this.textNode?0:super.index(t,r)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const r=this.prev instanceof Co?this.prev:null,n=r?r.length():0,i=this.next instanceof Co?this.next:null,o=i?i.text:"",{textNode:s}=this,l=s.data.split(Jn.CONTENTS).join("");s.data=Jn.CONTENTS;let c;if(r)c=r,(l||i)&&(r.insertAt(r.length(),l+o),i&&i.remove());else if(i)c=i,i.insertAt(0,l);else{const u=document.createTextNode(l);c=this.scroll.create(u),this.parent.insertBefore(c,this)}if(this.remove(),t){const u=(p,m)=>r&&p===r.domNode?m:p===s?n+m-1:i&&p===i.domNode?n+l.length+m:null,d=u(t.start.node,t.start.offset),f=u(t.end.node,t.end.offset);if(d!==null&&f!==null)return{startNode:c.domNode,startOffset:d,endNode:c.domNode,endOffset:f}}return null}update(t,r){if(t.some(n=>n.type==="characterData"&&n.target===this.textNode)){const n=this.restore();n&&(r.range=n)}}optimize(t){super.optimize(t);let{parent:r}=this;for(;r;){if(r.domNode.tagName==="A"){this.savedLength=Jn.CONTENTS.length,r.isolate(this.offset(r),this.length()).unwrap(),this.savedLength=0;break}r=r.parent}}value(){return""}};Fe(Jn,"blotName","cursor"),Fe(Jn,"className","ql-cursor"),Fe(Jn,"tagName","span"),Fe(Jn,"CONTENTS","\uFEFF");let Wl=Jn;var F6={exports:{}},O6;function O3e(){return O6||(O6=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function o(c,u,d,f,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new i(d,f||c,p),h=r?r+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],m]:c._events[h].push(m):(c._events[h]=m,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,m=new Array(p);f<p;f++)m[f]=d[f].fn;return m},l.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},l.prototype.emit=function(c,u,d,f,p,m){var h=r?r+c:c;if(!this._events[h])return!1;var g=this._events[h],v=arguments.length,b,w;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,f),!0;case 5:return g.fn.call(g.context,u,d,f,p),!0;case 6:return g.fn.call(g.context,u,d,f,p,m),!0}for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];g.fn.apply(g.context,b)}else{var y=g.length,S;for(w=0;w<y;w++)switch(g[w].once&&this.removeListener(c,g[w].fn,void 0,!0),v){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,u);break;case 3:g[w].fn.call(g[w].context,u,d);break;case 4:g[w].fn.call(g[w].context,u,d,f);break;default:if(!b)for(S=1,b=new Array(v-1);S<v;S++)b[S-1]=arguments[S];g[w].fn.apply(g[w].context,b)}}return!0},l.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},l.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},l.prototype.removeListener=function(c,u,d,f){var p=r?r+c:c;if(!this._events[p])return this;if(!u)return s(this,p),this;var m=this._events[p];if(m.fn)m.fn===u&&(!f||m.once)&&(!d||m.context===d)&&s(this,p);else{for(var h=0,g=[],v=m.length;h<v;h++)(m[h].fn!==u||f&&!m[h].once||d&&m[h].context!==d)&&g.push(m[h]);g.length?this._events[p]=g.length===1?g[0]:g:s(this,p)}return this},l.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&s(this,u)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}(F6)),F6.exports}var I3e=O3e();const _3e=dv(I3e),Q0=new WeakMap,H0=["error","warn","log","info"];let W0="warn";function I6(e){if(W0&&H0.indexOf(e)<=H0.indexOf(W0)){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console[e](...r)}}function Pi(e){return H0.reduce((t,r)=>(t[r]=I6.bind(console,r,e),t),{})}Pi.level=e=>{W0=e},I6.level=Pi.level;const Z0=Pi("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(e=>{document.addEventListener(e,function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const o=Q0.get(i);o&&o.emitter&&o.emitter.handleDOM(...r)})})});class Ve extends _3e{constructor(){super(),this.domListeners={},this.on("error",Z0.error)}emit(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Z0.log.call(Z0,...r),super.emit(...r)}handleDOM(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(this.domListeners[t.type]||[]).forEach(o=>{let{node:s,handler:l}=o;(t.target===s||s.contains(t.target))&&l(t,...n)})}listenDOM(t,r,n){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:r,handler:n})}}Fe(Ve,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Fe(Ve,"sources",{API:"api",SILENT:"silent",USER:"user"});const G0=Pi("quill:selection");class Ta{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=r}}class $3e{constructor(t,r){this.emitter=r,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Ta(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Ve.sources.USER),1)}),this.emitter.on(Ve.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once(Ve.events.SCROLL_UPDATE,(i,o)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const s=o.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?Ve.sources.SILENT:i)}catch{}})}),this.emitter.on(Ve.events.SCROLL_OPTIMIZE,(n,i)=>{if(i.range){const{startNode:o,startOffset:s,endNode:l,endOffset:c}=i.range;this.setNativeRange(o,s,l,c),this.update(Ve.sources.SILENT)}}),this.update(Ve.sources.SILENT)}handleComposition(){this.emitter.on(Ve.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Ve.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Ve.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,r){this.scroll.update();const n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(t,He.BLOCK))){if(n.start.node!==this.cursor.textNode){const i=this.scroll.find(n.start.node,!1);if(i==null)return;if(i instanceof Hr){const o=i.split(n.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,r),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=this.scroll.length();t=Math.min(t,n-1),r=Math.min(t+r,n-1)-t;let i,[o,s]=this.scroll.leaf(t);if(o==null)return null;if(r>0&&s===o.length()){const[d]=this.scroll.leaf(t+1);if(d){const[f]=this.scroll.line(t),[p]=this.scroll.line(t+1);f===p&&(o=d,s=0)}}[i,s]=o.position(s,!0);const l=document.createRange();if(r>0)return l.setStart(i,s),[o,s]=this.scroll.leaf(t+r),o==null?null:([i,s]=o.position(s,!0),l.setEnd(i,s),l.getBoundingClientRect());let c="left",u;if(i instanceof Text){if(!i.data.length)return null;s<i.data.length?(l.setStart(i,s),l.setEnd(i,s+1)):(l.setStart(i,s-1),l.setEnd(i,s),c="right"),u=l.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;u=o.domNode.getBoundingClientRect(),s>0&&(c="right")}return{bottom:u.top+u.height,height:u.height,left:u[c],right:u[c],top:u.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const r=t.getRangeAt(0);if(r==null)return null;const n=this.normalizeNative(r);return G0.info("getNativeRange",n),n}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const r=this.getNativeRange();return r==null?[null,null]:[this.normalizedToRange(r),r]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&K0(this.root,document.activeElement)}normalizedToRange(t){const r=[[t.start.node,t.start.offset]];t.native.collapsed||r.push([t.end.node,t.end.offset]);const n=r.map(s=>{const[l,c]=s,u=this.scroll.find(l,!0),d=u.offset(this.scroll);return c===0?d:u instanceof Hr?d+u.index(l,c):d+u.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),o=Math.min(i,...n);return new Ta(o,i-o)}normalizeNative(t){if(!K0(this.root,t.startContainer)||!t.collapsed&&!K0(this.root,t.endContainer))return null;const r={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[r.start,r.end].forEach(n=>{let{node:i,offset:o}=n;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>o)i=i.childNodes[o],o=0;else if(i.childNodes.length===o)i=i.lastChild,i instanceof Text?o=i.data.length:i.childNodes.length>0?o=i.childNodes.length:o=i.childNodes.length+1;else break;n.node=i,n.offset=o}),r}rangeToNative(t){const r=this.scroll.length(),n=(i,o)=>{i=Math.min(r-1,i);const[s,l]=this.scroll.leaf(i);return s?s.position(l,o):[null,-1]};return[...n(t.index,!1),...n(t.index+t.length,!0)]}setNativeRange(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(G0.info("setNativeRange",t,r,n,i),t!=null&&(this.root.parentNode==null||t.parentNode==null||n.parentNode==null))return;const s=document.getSelection();if(s!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:l}=this.getNativeRange()||{};if(l==null||o||t!==l.startContainer||r!==l.startOffset||n!==l.endContainer||i!==l.endOffset){t instanceof Element&&t.tagName==="BR"&&(r=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),n instanceof Element&&n.tagName==="BR"&&(i=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const c=document.createRange();c.setStart(t,r),c.setEnd(n,i),s.removeAllRanges(),s.addRange(c)}}else s.removeAllRanges(),this.root.blur()}setRange(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve.sources.API;if(typeof r=="string"&&(n=r,r=!1),G0.info("setRange",t),t!=null){const i=this.rangeToNative(t);this.setNativeRange(...i,r)}else this.setNativeRange(null);this.update(n)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ve.sources.USER;const r=this.lastRange,[n,i]=this.getRange();if(this.lastRange=n,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!$0(r,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}const o=[Ve.events.SELECTION_CHANGE,Ul(this.lastRange),Ul(r),t];this.emitter.emit(Ve.events.EDITOR_CHANGE,...o),t!==Ve.sources.SILENT&&this.emitter.emit(...o)}}}function K0(e,t){try{t.parentNode}catch{return!1}return e.contains(t)}const R3e=/^[ -~]*$/;class P3e{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let r=this.scroll.length();this.scroll.batchStart();const n=_6(t),i=new Qe;return U3e(n.ops.slice()).reduce((o,s)=>{const l=nn.Op.length(s);let c=s.attributes||{},u=!1,d=!1;if(s.insert!=null){if(i.retain(l),typeof s.insert=="string"){const m=s.insert;d=!m.endsWith(`
|
|
5290
|
+
`,Gn(e))}function Gn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e==null||("formats"in e&&typeof e.formats=="function"&&(t={...t,...e.formats()},r&&delete t["code-token"]),e.parent==null||e.parent.statics.blotName==="scroll"||e.parent.statics.scope!==e.statics.scope)?t:Gn(e.parent,t,r)}const Jn=class Jn extends Mn{static value(){}constructor(t,r,n){super(t,r),this.selection=n,this.textNode=document.createTextNode(Jn.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,r){if(this.savedLength!==0){super.format(t,r);return}let n=this,i=0;for(;n!=null&&n.statics.scope!==He.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=Jn.CONTENTS.length,n.optimize(),n.formatAt(i,Jn.CONTENTS.length,t,r),this.savedLength=0)}index(t,r){return t===this.textNode?0:super.index(t,r)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const r=this.prev instanceof Co?this.prev:null,n=r?r.length():0,i=this.next instanceof Co?this.next:null,o=i?i.text:"",{textNode:s}=this,l=s.data.split(Jn.CONTENTS).join("");s.data=Jn.CONTENTS;let c;if(r)c=r,(l||i)&&(r.insertAt(r.length(),l+o),i&&i.remove());else if(i)c=i,i.insertAt(0,l);else{const u=document.createTextNode(l);c=this.scroll.create(u),this.parent.insertBefore(c,this)}if(this.remove(),t){const u=(p,m)=>r&&p===r.domNode?m:p===s?n+m-1:i&&p===i.domNode?n+l.length+m:null,d=u(t.start.node,t.start.offset),f=u(t.end.node,t.end.offset);if(d!==null&&f!==null)return{startNode:c.domNode,startOffset:d,endNode:c.domNode,endOffset:f}}return null}update(t,r){if(t.some(n=>n.type==="characterData"&&n.target===this.textNode)){const n=this.restore();n&&(r.range=n)}}optimize(t){super.optimize(t);let{parent:r}=this;for(;r;){if(r.domNode.tagName==="A"){this.savedLength=Jn.CONTENTS.length,r.isolate(this.offset(r),this.length()).unwrap(),this.savedLength=0;break}r=r.parent}}value(){return""}};Fe(Jn,"blotName","cursor"),Fe(Jn,"className","ql-cursor"),Fe(Jn,"tagName","span"),Fe(Jn,"CONTENTS","\uFEFF");let Wl=Jn;var F6={exports:{}},O6;function F3e(){return O6||(O6=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function o(c,u,d,f,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new i(d,f||c,p),h=r?r+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],m]:c._events[h].push(m):(c._events[h]=m,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,m=new Array(p);f<p;f++)m[f]=d[f].fn;return m},l.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},l.prototype.emit=function(c,u,d,f,p,m){var h=r?r+c:c;if(!this._events[h])return!1;var g=this._events[h],v=arguments.length,b,w;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,f),!0;case 5:return g.fn.call(g.context,u,d,f,p),!0;case 6:return g.fn.call(g.context,u,d,f,p,m),!0}for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];g.fn.apply(g.context,b)}else{var y=g.length,S;for(w=0;w<y;w++)switch(g[w].once&&this.removeListener(c,g[w].fn,void 0,!0),v){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,u);break;case 3:g[w].fn.call(g[w].context,u,d);break;case 4:g[w].fn.call(g[w].context,u,d,f);break;default:if(!b)for(S=1,b=new Array(v-1);S<v;S++)b[S-1]=arguments[S];g[w].fn.apply(g[w].context,b)}}return!0},l.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},l.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},l.prototype.removeListener=function(c,u,d,f){var p=r?r+c:c;if(!this._events[p])return this;if(!u)return s(this,p),this;var m=this._events[p];if(m.fn)m.fn===u&&(!f||m.once)&&(!d||m.context===d)&&s(this,p);else{for(var h=0,g=[],v=m.length;h<v;h++)(m[h].fn!==u||f&&!m[h].once||d&&m[h].context!==d)&&g.push(m[h]);g.length?this._events[p]=g.length===1?g[0]:g:s(this,p)}return this},l.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&s(this,u)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}(F6)),F6.exports}var O3e=F3e();const I3e=dv(O3e),Q0=new WeakMap,H0=["error","warn","log","info"];let W0="warn";function I6(e){if(W0&&H0.indexOf(e)<=H0.indexOf(W0)){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console[e](...r)}}function Pi(e){return H0.reduce((t,r)=>(t[r]=I6.bind(console,r,e),t),{})}Pi.level=e=>{W0=e},I6.level=Pi.level;const Z0=Pi("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(e=>{document.addEventListener(e,function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const o=Q0.get(i);o&&o.emitter&&o.emitter.handleDOM(...r)})})});class Ve extends I3e{constructor(){super(),this.domListeners={},this.on("error",Z0.error)}emit(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Z0.log.call(Z0,...r),super.emit(...r)}handleDOM(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(this.domListeners[t.type]||[]).forEach(o=>{let{node:s,handler:l}=o;(t.target===s||s.contains(t.target))&&l(t,...n)})}listenDOM(t,r,n){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:r,handler:n})}}Fe(Ve,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Fe(Ve,"sources",{API:"api",SILENT:"silent",USER:"user"});const G0=Pi("quill:selection");class Ta{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=r}}class _3e{constructor(t,r){this.emitter=r,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Ta(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Ve.sources.USER),1)}),this.emitter.on(Ve.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once(Ve.events.SCROLL_UPDATE,(i,o)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const s=o.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?Ve.sources.SILENT:i)}catch{}})}),this.emitter.on(Ve.events.SCROLL_OPTIMIZE,(n,i)=>{if(i.range){const{startNode:o,startOffset:s,endNode:l,endOffset:c}=i.range;this.setNativeRange(o,s,l,c),this.update(Ve.sources.SILENT)}}),this.update(Ve.sources.SILENT)}handleComposition(){this.emitter.on(Ve.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Ve.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Ve.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,r){this.scroll.update();const n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(t,He.BLOCK))){if(n.start.node!==this.cursor.textNode){const i=this.scroll.find(n.start.node,!1);if(i==null)return;if(i instanceof Hr){const o=i.split(n.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,r),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=this.scroll.length();t=Math.min(t,n-1),r=Math.min(t+r,n-1)-t;let i,[o,s]=this.scroll.leaf(t);if(o==null)return null;if(r>0&&s===o.length()){const[d]=this.scroll.leaf(t+1);if(d){const[f]=this.scroll.line(t),[p]=this.scroll.line(t+1);f===p&&(o=d,s=0)}}[i,s]=o.position(s,!0);const l=document.createRange();if(r>0)return l.setStart(i,s),[o,s]=this.scroll.leaf(t+r),o==null?null:([i,s]=o.position(s,!0),l.setEnd(i,s),l.getBoundingClientRect());let c="left",u;if(i instanceof Text){if(!i.data.length)return null;s<i.data.length?(l.setStart(i,s),l.setEnd(i,s+1)):(l.setStart(i,s-1),l.setEnd(i,s),c="right"),u=l.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;u=o.domNode.getBoundingClientRect(),s>0&&(c="right")}return{bottom:u.top+u.height,height:u.height,left:u[c],right:u[c],top:u.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const r=t.getRangeAt(0);if(r==null)return null;const n=this.normalizeNative(r);return G0.info("getNativeRange",n),n}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const r=this.getNativeRange();return r==null?[null,null]:[this.normalizedToRange(r),r]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&K0(this.root,document.activeElement)}normalizedToRange(t){const r=[[t.start.node,t.start.offset]];t.native.collapsed||r.push([t.end.node,t.end.offset]);const n=r.map(s=>{const[l,c]=s,u=this.scroll.find(l,!0),d=u.offset(this.scroll);return c===0?d:u instanceof Hr?d+u.index(l,c):d+u.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),o=Math.min(i,...n);return new Ta(o,i-o)}normalizeNative(t){if(!K0(this.root,t.startContainer)||!t.collapsed&&!K0(this.root,t.endContainer))return null;const r={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[r.start,r.end].forEach(n=>{let{node:i,offset:o}=n;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>o)i=i.childNodes[o],o=0;else if(i.childNodes.length===o)i=i.lastChild,i instanceof Text?o=i.data.length:i.childNodes.length>0?o=i.childNodes.length:o=i.childNodes.length+1;else break;n.node=i,n.offset=o}),r}rangeToNative(t){const r=this.scroll.length(),n=(i,o)=>{i=Math.min(r-1,i);const[s,l]=this.scroll.leaf(i);return s?s.position(l,o):[null,-1]};return[...n(t.index,!1),...n(t.index+t.length,!0)]}setNativeRange(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(G0.info("setNativeRange",t,r,n,i),t!=null&&(this.root.parentNode==null||t.parentNode==null||n.parentNode==null))return;const s=document.getSelection();if(s!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:l}=this.getNativeRange()||{};if(l==null||o||t!==l.startContainer||r!==l.startOffset||n!==l.endContainer||i!==l.endOffset){t instanceof Element&&t.tagName==="BR"&&(r=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),n instanceof Element&&n.tagName==="BR"&&(i=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const c=document.createRange();c.setStart(t,r),c.setEnd(n,i),s.removeAllRanges(),s.addRange(c)}}else s.removeAllRanges(),this.root.blur()}setRange(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve.sources.API;if(typeof r=="string"&&(n=r,r=!1),G0.info("setRange",t),t!=null){const i=this.rangeToNative(t);this.setNativeRange(...i,r)}else this.setNativeRange(null);this.update(n)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ve.sources.USER;const r=this.lastRange,[n,i]=this.getRange();if(this.lastRange=n,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!$0(r,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}const o=[Ve.events.SELECTION_CHANGE,Ul(this.lastRange),Ul(r),t];this.emitter.emit(Ve.events.EDITOR_CHANGE,...o),t!==Ve.sources.SILENT&&this.emitter.emit(...o)}}}function K0(e,t){try{t.parentNode}catch{return!1}return e.contains(t)}const $3e=/^[ -~]*$/;class R3e{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let r=this.scroll.length();this.scroll.batchStart();const n=_6(t),i=new Qe;return z3e(n.ops.slice()).reduce((o,s)=>{const l=nn.Op.length(s);let c=s.attributes||{},u=!1,d=!1;if(s.insert!=null){if(i.retain(l),typeof s.insert=="string"){const m=s.insert;d=!m.endsWith(`
|
|
5291
5291
|
`)&&(r<=o||!!this.scroll.descendant(Zn,o)[0]),this.scroll.insertAt(o,m);const[h,g]=this.scroll.line(o);let v=Da({},Gn(h));if(h instanceof $r){const[b]=h.descendant(Hr,g);b&&(v=Da(v,Gn(b)))}c=nn.AttributeMap.diff(v,c)||{}}else if(typeof s.insert=="object"){const m=Object.keys(s.insert)[0];if(m==null)return o;const h=this.scroll.query(m,He.INLINE)!=null;if(h)(r<=o||this.scroll.descendant(Zn,o)[0])&&(d=!0);else if(o>0){const[g,v]=this.scroll.descendant(Hr,o-1);g instanceof Co?g.value()[v]!==`
|
|
5292
|
-
`&&(u=!0):g instanceof Mn&&g.statics.scope===He.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(o,m,s.insert[m]),h){const[g]=this.scroll.descendant(Hr,o);if(g){const v=Da({},Gn(g));c=nn.AttributeMap.diff(v,c)||{}}}}r+=l}else if(i.push(s),s.retain!==null&&typeof s.retain=="object"){const m=Object.keys(s.retain)[0];if(m==null)return o;this.scroll.updateEmbedAt(o,m,s.retain[m])}Object.keys(c).forEach(m=>{this.scroll.formatAt(o,l,m,c[m])});const f=u?1:0,p=d?1:0;return r+=f+p,i.retain(f),i.delete(p),o+l+f+p},0),i.reduce((o,s)=>typeof s.delete=="number"?(this.scroll.deleteAt(o,s.delete),o):o+nn.Op.length(s),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(t,r){return this.scroll.deleteAt(t,r),this.update(new Qe().retain(t).delete(r))}formatLine(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(o=>{this.scroll.lines(t,Math.max(r,1)).forEach(s=>{s.format(o,n[o])})}),this.scroll.optimize();const i=new Qe().retain(t).retain(r,Ul(n));return this.update(i)}formatText(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(n).forEach(o=>{this.scroll.formatAt(t,r,o,n[o])});const i=new Qe().retain(t).retain(r,Ul(n));return this.update(i)}getContents(t,r){return this.delta.slice(t,t+r)}getDelta(){return this.scroll.lines().reduce((t,r)=>t.concat(r.delta()),new Qe)}getFormat(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[],i=[];r===0?this.scroll.path(t).forEach(l=>{const[c]=l;c instanceof $r?n.push(c):c instanceof Hr&&i.push(c)}):(n=this.scroll.lines(t,r),i=this.scroll.descendants(Hr,t,r));const[o,s]=[n,i].map(l=>{const c=l.shift();if(c==null)return{};let u=Gn(c);for(;Object.keys(u).length>0;){const d=l.shift();if(d==null)return u;u=
|
|
5292
|
+
`&&(u=!0):g instanceof Mn&&g.statics.scope===He.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(o,m,s.insert[m]),h){const[g]=this.scroll.descendant(Hr,o);if(g){const v=Da({},Gn(g));c=nn.AttributeMap.diff(v,c)||{}}}}r+=l}else if(i.push(s),s.retain!==null&&typeof s.retain=="object"){const m=Object.keys(s.retain)[0];if(m==null)return o;this.scroll.updateEmbedAt(o,m,s.retain[m])}Object.keys(c).forEach(m=>{this.scroll.formatAt(o,l,m,c[m])});const f=u?1:0,p=d?1:0;return r+=f+p,i.retain(f),i.delete(p),o+l+f+p},0),i.reduce((o,s)=>typeof s.delete=="number"?(this.scroll.deleteAt(o,s.delete),o):o+nn.Op.length(s),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(t,r){return this.scroll.deleteAt(t,r),this.update(new Qe().retain(t).delete(r))}formatLine(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(o=>{this.scroll.lines(t,Math.max(r,1)).forEach(s=>{s.format(o,n[o])})}),this.scroll.optimize();const i=new Qe().retain(t).retain(r,Ul(n));return this.update(i)}formatText(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(n).forEach(o=>{this.scroll.formatAt(t,r,o,n[o])});const i=new Qe().retain(t).retain(r,Ul(n));return this.update(i)}getContents(t,r){return this.delta.slice(t,t+r)}getDelta(){return this.scroll.lines().reduce((t,r)=>t.concat(r.delta()),new Qe)}getFormat(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[],i=[];r===0?this.scroll.path(t).forEach(l=>{const[c]=l;c instanceof $r?n.push(c):c instanceof Hr&&i.push(c)}):(n=this.scroll.lines(t,r),i=this.scroll.descendants(Hr,t,r));const[o,s]=[n,i].map(l=>{const c=l.shift();if(c==null)return{};let u=Gn(c);for(;Object.keys(u).length>0;){const d=l.shift();if(d==null)return u;u=P3e(Gn(d),u)}return u});return{...o,...s}}getHTML(t,r){const[n,i]=this.scroll.line(t);if(n){const o=n.length();return n.length()>=i+r&&!(i===0&&r===o)?Yc(n,i,r,!0):Yc(this.scroll,t,r,!0)}return""}getText(t,r){return this.getContents(t,r).filter(n=>typeof n.insert=="string").map(n=>n.insert).join("")}insertContents(t,r){const n=_6(r),i=new Qe().retain(t).concat(n);return this.scroll.insertContents(t,n),this.update(i)}insertEmbed(t,r,n){return this.scroll.insertAt(t,r,n),this.update(new Qe().retain(t).insert({[r]:n}))}insertText(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r=r.replace(/\r\n/g,`
|
|
5293
5293
|
`).replace(/\r/g,`
|
|
5294
5294
|
`),this.scroll.insertAt(t,r),Object.keys(n).forEach(i=>{this.scroll.formatAt(t,r.length,i,n[i])}),this.update(new Qe().retain(t).insert(r,Ul(n)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==$r.blotName)return!1;const r=t;return r.children.length>1?!1:r.children.head instanceof xo}removeFormat(t,r){const n=this.getText(t,r),[i,o]=this.scroll.line(t+r);let s=0,l=new Qe;i!=null&&(s=i.length()-o,l=i.delta().slice(o,o+s-1).insert(`
|
|
5295
|
-
`));const c=this.getContents(t,r+s).diff(new Qe().insert(n).concat(l)),u=new Qe().retain(t).concat(c);return this.applyDelta(u)}update(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(r.length===1&&r[0].type==="characterData"&&r[0].target.data.match(
|
|
5295
|
+
`));const c=this.getContents(t,r+s).diff(new Qe().insert(n).concat(l)),u=new Qe().retain(t).concat(c);return this.applyDelta(u)}update(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(r.length===1&&r[0].type==="characterData"&&r[0].target.data.match($3e)&&this.scroll.find(r[0].target)){const o=this.scroll.find(r[0].target),s=Gn(o),l=o.offset(this.scroll),c=r[0].oldValue.replace(Wl.CONTENTS,""),u=new Qe().insert(c),d=new Qe().insert(o.value()),f=n&&{oldRange:$6(n.oldRange,-l),newRange:$6(n.newRange,-l)};t=new Qe().retain(l).concat(u.diff(d,f)).reduce((p,m)=>m.insert?p.insert(m.insert,s):p.push(m),new Qe),this.delta=i.compose(t)}else this.delta=this.getDelta(),(!t||!$0(i.compose(t),this.delta))&&(t=i.diff(this.delta,n));return t}}function Zl(e,t,r){if(e.length===0){const[m]=Y0(r.pop());return t<=0?`</li></${m}>`:`</li></${m}>${Zl([],t-1,r)}`}const[{child:n,offset:i,length:o,indent:s,type:l},...c]=e,[u,d]=Y0(l);if(s>t)return r.push(l),s===t+1?`<${u}><li${d}>${Yc(n,i,o)}${Zl(c,s,r)}`:`<${u}><li>${Zl(e,t+1,r)}`;const f=r[r.length-1];if(s===t&&l===f)return`</li><li${d}>${Yc(n,i,o)}${Zl(c,s,r)}`;const[p]=Y0(r.pop());return`</li></${p}>${Zl(e,t-1,r)}`}function Yc(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in e&&typeof e.html=="function")return e.html(t,r);if(e instanceof Co)return tm(e.value().slice(t,t+r)).replaceAll(" "," ");if(e instanceof wo){if(e.statics.blotName==="list-container"){const u=[];return e.children.forEachAt(t,r,(d,f,p)=>{const m="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:f,length:p,indent:m.indent||0,type:m.list})}),Zl(u,-1,[])}const i=[];if(e.children.forEachAt(t,r,(u,d,f)=>{i.push(Yc(u,d,f))}),n||e.statics.blotName==="list")return i.join("");const{outerHTML:o,innerHTML:s}=e.domNode,[l,c]=o.split(`>${s}<`);return l==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${c}`:`${l}>${i.join("")}<${c}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function P3e(e,t){return Object.keys(t).reduce((r,n)=>{if(e[n]==null)return r;const i=t[n];return i===e[n]?r[n]=i:Array.isArray(i)?i.indexOf(e[n])<0?r[n]=i.concat([e[n]]):r[n]=i:r[n]=[i,e[n]],r},{})}function Y0(e){const t=e==="ordered"?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function _6(e){return e.reduce((t,r)=>{if(typeof r.insert=="string"){const n=r.insert.replace(/\r\n/g,`
|
|
5296
5296
|
`).replace(/\r/g,`
|
|
5297
|
-
`);return t.insert(n,r.attributes)}return t.push(r)},new Qe)}function $6(e,t){let{index:r,length:n}=e;return new Ta(r+t,n)}function
|
|
5297
|
+
`);return t.insert(n,r.attributes)}return t.push(r)},new Qe)}function $6(e,t){let{index:r,length:n}=e;return new Ta(r+t,n)}function z3e(e){const t=[];return e.forEach(r=>{typeof r.insert=="string"?r.insert.split(`
|
|
5298
5298
|
`).forEach((n,i)=>{i&&t.push({insert:`
|
|
5299
|
-
`,attributes:r.attributes}),n&&t.push({insert:n,attributes:r.attributes})}):t.push(r)}),t}class Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=r}}Fe(Kn,"DEFAULTS",{});const rm="\uFEFF";class J0 extends Mn{constructor(t,r){super(t,r),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode(rm),this.rightGuard=document.createTextNode(rm),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,r){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,r)}restore(t){let r=null,n;const i=t.data.split(rm).join("");if(t===this.leftGuard)if(this.prev instanceof Co){const o=this.prev.length();this.prev.insertAt(o,i),r={startNode:this.prev.domNode,startOffset:o+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this),r={startNode:n,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof Co?(this.next.insertAt(0,i),r={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this.next),r={startNode:n,startOffset:i.length}));return t.data=rm,r}update(t,r){t.forEach(n=>{if(n.type==="characterData"&&(n.target===this.leftGuard||n.target===this.rightGuard)){const i=this.restore(n.target);i&&(r.range=i)}})}}class
|
|
5300
|
-
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,r),t}blur(){this.selection.setRange(null)}deleteText(t,r,n){return[t,r,,n]=zi(t,r,n),So.call(this,()=>this.editor.deleteText(t,r),n,t,-1*r)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const r=t();return this.allowReadOnlyEdits=!1,r}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve.sources.API;return So.call(this,()=>{const i=this.getSelection(!0);let o=new Qe;if(i==null)return o;if(this.scroll.query(t,He.BLOCK))o=this.editor.formatLine(i.index,i.length,{[t]:r});else{if(i.length===0)return this.selection.format(t,r),o;o=this.editor.formatText(i.index,i.length,{[t]:r})}return this.setSelection(i,Ve.sources.SILENT),o},n)}formatLine(t,r,n,i,o){let s;return[t,r,s,o]=zi(t,r,n,i,o),So.call(this,()=>this.editor.formatLine(t,r,s),o,t,0)}formatText(t,r,n,i,o){let s;return[t,r,s,o]=zi(t,r,n,i,o),So.call(this,()=>this.editor.formatText(t,r,s),o,t,0)}getBounds(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof t=="number"?n=this.selection.getBounds(t,r):n=this.selection.getBounds(t.index,t.length),!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,r]=zi(t,r),this.editor.getContents(t,r)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,r):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,r)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(r=r??this.getLength()-t),[t,r]=zi(t,r),this.editor.getHTML(t,r)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(r=r??this.getLength()-t),[t,r]=zi(t,r),this.editor.getText(t,r)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Bo.sources.API;return So.call(this,()=>this.editor.insertEmbed(t,r,n),i,t)}insertText(t,r,n,i,o){let s;return[t,,s,o]=zi(t,0,n,i,o),So.call(this,()=>this.editor.insertText(t,r,s),o,t,r.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,r,n){return[t,r,,n]=zi(t,r,n),So.call(this,()=>this.editor.removeFormat(t,r),n,t)}scrollRectIntoView(t){
|
|
5299
|
+
`,attributes:r.attributes}),n&&t.push({insert:n,attributes:r.attributes})}):t.push(r)}),t}class Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=r}}Fe(Kn,"DEFAULTS",{});const rm="\uFEFF";class J0 extends Mn{constructor(t,r){super(t,r),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode(rm),this.rightGuard=document.createTextNode(rm),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,r){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,r)}restore(t){let r=null,n;const i=t.data.split(rm).join("");if(t===this.leftGuard)if(this.prev instanceof Co){const o=this.prev.length();this.prev.insertAt(o,i),r={startNode:this.prev.domNode,startOffset:o+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this),r={startNode:n,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof Co?(this.next.insertAt(0,i),r={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this.next),r={startNode:n,startOffset:i.length}));return t.data=rm,r}update(t,r){t.forEach(n=>{if(n.type==="characterData"&&(n.target===this.leftGuard||n.target===this.rightGuard)){const i=this.restore(n.target);i&&(r.range=i)}})}}class U3e{constructor(t,r){Fe(this,"isComposing",!1);this.scroll=t,this.emitter=r,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const r=t.target instanceof Node?this.scroll.find(t.target,!0):null;r&&!(r instanceof J0)&&(this.emitter.emit(Ve.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(Ve.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(Ve.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(Ve.events.COMPOSITION_END,t),this.isComposing=!1}}const ad=class ad{constructor(t,r){Fe(this,"modules",{});this.quill=t,this.options=r}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const r=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new r(this.quill,this.options.modules[t]||{}),this.modules[t]}};Fe(ad,"DEFAULTS",{modules:{}}),Fe(ad,"themes",{default:ad});let Gl=ad;const q3e=e=>e.parentElement||e.getRootNode().host||null,V3e=e=>{const t=e.getBoundingClientRect(),r="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,n="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*r,bottom:t.top+e.clientHeight*n,left:t.left}},nm=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},R6=(e,t,r,n,i,o)=>e<r&&t>n?0:e<r?-(r-e+i):t>n?t-e>n-r?e+i-r:t-n+o:0,j3e=(e,t)=>{var o,s,l;const r=e.ownerDocument;let n=t,i=e;for(;i;){const c=i===r.body,u=c?{top:0,right:((o=window.visualViewport)==null?void 0:o.width)??r.documentElement.clientWidth,bottom:((s=window.visualViewport)==null?void 0:s.height)??r.documentElement.clientHeight,left:0}:V3e(i),d=getComputedStyle(i),f=R6(n.left,n.right,u.left,u.right,nm(d.scrollPaddingLeft),nm(d.scrollPaddingRight)),p=R6(n.top,n.bottom,u.top,u.bottom,nm(d.scrollPaddingTop),nm(d.scrollPaddingBottom));if(f||p)if(c)(l=r.defaultView)==null||l.scrollBy(f,p);else{const{scrollLeft:m,scrollTop:h}=i;p&&(i.scrollTop+=p),f&&(i.scrollLeft+=f);const g=i.scrollLeft-m,v=i.scrollTop-h;n={left:n.left-g,top:n.top-v,right:n.right-g,bottom:n.bottom-v}}i=c||d.position==="fixed"?null:q3e(i)}},Q3e=100,H3e=["block","break","cursor","inline","scroll","text"],W3e=(e,t,r)=>{const n=new Vl;return H3e.forEach(i=>{const o=t.query(i);o&&n.register(o)}),e.forEach(i=>{let o=t.query(i);o||r.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;o;)if(n.register(o),o="blotName"in o?o.requiredContainer??null:null,s+=1,s>Q3e){r.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),n},Kl=Pi("quill"),om=new Vl;wo.uiClass="ql-ui";const Bo=class Bo{static debug(t){t===!0&&(t="log"),Pi.level(t)}static find(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Q0.get(t)||om.find(t,r)}static import(t){return this.imports[t]==null&&Kl.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const t=arguments.length<=0?void 0:arguments[0],r=!!(!(arguments.length<=1)&&arguments[1]),n="attrName"in t?t.attrName:t.blotName;typeof n=="string"?this.register(`formats/${n}`,t,r):Object.keys(t).forEach(i=>{this.register(i,t[i],r)})}else{const t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],n=!!(!(arguments.length<=2)&&arguments[2]);this.imports[t]!=null&&!n&&Kl.warn(`Overwriting ${t} with`,r),this.imports[t]=r,(t.startsWith("blots/")||t.startsWith("formats/"))&&r&&typeof r!="boolean"&&r.blotName!=="abstract"&&om.register(r),typeof r.register=="function"&&r.register(om)}}constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Z3e(t,r),this.container=this.options.container,this.container==null){Kl.error("Invalid Quill container",t);return}this.options.debug&&Bo.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Q0.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Ve;const i=U0.blotName,o=this.options.registry.query(i);if(!o||!("blotName"in o))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new R3e(this.scroll),this.selection=new _3e(this.scroll,this.emitter),this.composition=new U3e(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Ve.events.EDITOR_CHANGE,s=>{s===Ve.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Ve.events.SCROLL_UPDATE,(s,l)=>{const c=this.selection.lastRange,[u]=this.selection.getRange(),d=c&&u?{oldRange:c,newRange:u}:void 0;So.call(this,()=>this.editor.update(null,l,d),s)}),this.emitter.on(Ve.events.SCROLL_EMBED_UPDATE,(s,l)=>{const c=this.selection.lastRange,[u]=this.selection.getRange(),d=c&&u?{oldRange:c,newRange:u}:void 0;So.call(this,()=>{const f=new Qe().retain(s.offset(this)).retain({[s.statics.blotName]:l});return this.editor.update(f,[],d)},Bo.sources.USER)}),n){const s=this.clipboard.convert({html:`${n}<p><br></p>`,text:`
|
|
5300
|
+
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,r),t}blur(){this.selection.setRange(null)}deleteText(t,r,n){return[t,r,,n]=zi(t,r,n),So.call(this,()=>this.editor.deleteText(t,r),n,t,-1*r)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const r=t();return this.allowReadOnlyEdits=!1,r}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve.sources.API;return So.call(this,()=>{const i=this.getSelection(!0);let o=new Qe;if(i==null)return o;if(this.scroll.query(t,He.BLOCK))o=this.editor.formatLine(i.index,i.length,{[t]:r});else{if(i.length===0)return this.selection.format(t,r),o;o=this.editor.formatText(i.index,i.length,{[t]:r})}return this.setSelection(i,Ve.sources.SILENT),o},n)}formatLine(t,r,n,i,o){let s;return[t,r,s,o]=zi(t,r,n,i,o),So.call(this,()=>this.editor.formatLine(t,r,s),o,t,0)}formatText(t,r,n,i,o){let s;return[t,r,s,o]=zi(t,r,n,i,o),So.call(this,()=>this.editor.formatText(t,r,s),o,t,0)}getBounds(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof t=="number"?n=this.selection.getBounds(t,r):n=this.selection.getBounds(t.index,t.length),!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,r]=zi(t,r),this.editor.getContents(t,r)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,r):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,r)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(r=r??this.getLength()-t),[t,r]=zi(t,r),this.editor.getHTML(t,r)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(r=r??this.getLength()-t),[t,r]=zi(t,r),this.editor.getText(t,r)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Bo.sources.API;return So.call(this,()=>this.editor.insertEmbed(t,r,n),i,t)}insertText(t,r,n,i,o){let s;return[t,,s,o]=zi(t,0,n,i,o),So.call(this,()=>this.editor.insertText(t,r,s),o,t,r.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,r,n){return[t,r,,n]=zi(t,r,n),So.call(this,()=>this.editor.removeFormat(t,r),n,t)}scrollRectIntoView(t){j3e(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,r=t&&this.selection.getBounds(t.index,t.length);r&&this.scrollRectIntoView(r)}setContents(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve.sources.API;return So.call(this,()=>{t=new Qe(t);const n=this.getLength(),i=this.editor.deleteText(0,n),o=this.editor.insertContents(0,t),s=this.editor.deleteText(this.getLength()-1,1);return i.compose(o).compose(s)},r)}setSelection(t,r,n){t==null?this.selection.setRange(null,r||Bo.sources.API):([t,r,,n]=zi(t,r,n),this.selection.setRange(new Ta(Math.max(0,t),r),n),n!==Ve.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve.sources.API;const n=new Qe().insert(t);return this.setContents(n,r)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ve.sources.USER;const r=this.scroll.update(t);return this.selection.update(t),r}updateContents(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve.sources.API;return So.call(this,()=>(t=new Qe(t),this.editor.applyDelta(t)),r,!0)}};Fe(Bo,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:om,theme:"default"}),Fe(Bo,"events",Ve.events),Fe(Bo,"sources",Ve.sources),Fe(Bo,"version","2.0.3"),Fe(Bo,"imports",{delta:Qe,parchment:y6,"core/module":Kn,"core/theme":Gl});let xe=Bo;function P6(e){return typeof e=="string"?document.querySelector(e):e}function X0(e){return Object.entries(e??{}).reduce((t,r)=>{let[n,i]=r;return{...t,[n]:i===!0?{}:i}},{})}function z6(e){return Object.fromEntries(Object.entries(e).filter(t=>t[1]!==void 0))}function Z3e(e,t){const r=P6(e);if(!r)throw new Error("Invalid Quill container");const n=!t.theme||t.theme===xe.DEFAULTS.theme?Gl:xe.import(`themes/${t.theme}`);if(!n)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:i,...o}=xe.DEFAULTS,{modules:s,...l}=n.DEFAULTS;let c=X0(t.modules);c!=null&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const u=Da({},X0(i),X0(s),c),d={...o,...z6(l),...z6(t)};let f=t.registry;return f?t.formats&&Kl.warn('Ignoring "formats" option because "registry" is specified'):f=t.formats?W3e(t.formats,d.registry,Kl):d.registry,{...d,registry:f,container:r,theme:n,modules:Object.entries(u).reduce((p,m)=>{let[h,g]=m;if(!g)return p;const v=xe.import(`modules/${h}`);return v==null?(Kl.error(`Cannot load ${h} module. Are you sure you registered it?`),p):{...p,[h]:Da({},v.DEFAULTS||{},g)}},{}),bounds:P6(d.bounds)}}function So(e,t,r,n){if(!this.isEnabled()&&t===Ve.sources.USER&&!this.allowReadOnlyEdits)return new Qe;let i=r==null?null:this.getSelection();const o=this.editor.delta,s=e();if(i!=null&&(r===!0&&(r=i.index),n==null?i=U6(i,s,t):n!==0&&(i=U6(i,r,n,t)),this.setSelection(i,Ve.sources.SILENT)),s.length()>0){const l=[Ve.events.TEXT_CHANGE,s,o,t];this.emitter.emit(Ve.events.EDITOR_CHANGE,...l),t!==Ve.sources.SILENT&&this.emitter.emit(...l)}return s}function zi(e,t,r,n,i){let o={};return typeof e.index=="number"&&typeof e.length=="number"?typeof t!="number"?(i=n,n=r,r=t,t=e.length,e=e.index):(t=e.length,e=e.index):typeof t!="number"&&(i=n,n=r,r=t,t=0),typeof r=="object"?(o=r,i=n):typeof r=="string"&&(n!=null?o[r]=n:i=r),i=i||Ve.sources.API,[e,t,o,i]}function U6(e,t,r,n){const i=typeof r=="number"?r:0;if(e==null)return null;let o,s;return t&&typeof t.transformPosition=="function"?[o,s]=[e.index,e.index+e.length].map(l=>t.transformPosition(l,n!==Ve.sources.USER)):[o,s]=[e.index,e.index+e.length].map(l=>l<t||l===t&&n===Ve.sources.USER?l:i>=0?l+i:Math.max(t,l+i)),new Ta(o,s-o)}class xs extends Gp{}function q6(e){return e instanceof $r||e instanceof Zn}function V6(e){return typeof e.updateContent=="function"}class Yl extends U0{constructor(t,r,n){let{emitter:i}=n;super(t,r),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",o=>this.handleDragStart(o))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(Ve.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(Ve.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,r){this.emitter.emit(Ve.events.SCROLL_EMBED_UPDATE,t,r)}deleteAt(t,r){const[n,i]=this.line(t),[o]=this.line(t+r);if(super.deleteAt(t,r),o!=null&&n!==o&&i>0){if(n instanceof Zn||o instanceof Zn){this.optimize();return}const s=o.children.head instanceof xo?null:o.children.head;n.moveChildren(o,s),n.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,r,n,i){super.formatAt(t,r,n,i),this.optimize()}insertAt(t,r,n){if(t>=this.length())if(n==null||this.scroll.query(r,He.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),n==null&&r.endsWith(`
|
|
5301
5301
|
`)?i.insertAt(0,r.slice(0,-1),n):i.insertAt(0,r,n)}else{const i=this.scroll.create(r,n);this.appendChild(i)}else super.insertAt(t,r,n);this.optimize()}insertBefore(t,r){if(t.statics.scope===He.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(t),super.insertBefore(n,r)}else super.insertBefore(t,r)}insertContents(t,r){const n=this.deltaToRenderBlocks(r.concat(new Qe().insert(`
|
|
5302
5302
|
`))),i=n.pop();if(i==null)return;this.batchStart();const o=n.shift();if(o){const c=o.type==="block"&&(o.delta.length()===0||!this.descendant(Zn,t)[0]&&t<this.length()),u=o.type==="block"?o.delta:new Qe().insert({[o.key]:o.value});L0(this,t,u);const d=o.type==="block"?1:0,f=t+u.length()+d;c&&this.insertAt(f-1,`
|
|
5303
5303
|
`);const p=Gn(this.line(t)[0]),m=nn.AttributeMap.diff(p,o.attributes)||{};Object.keys(m).forEach(h=>{this.formatAt(f-1,1,h,m[h])}),t=f}let[s,l]=this.children.find(t);if(n.length&&(s&&(s=s.split(l),l=0),n.forEach(c=>{if(c.type==="block"){const u=this.createBlock(c.attributes,s||void 0);L0(u,0,c.delta)}else{const u=this.create(c.key,c.value);this.insertBefore(u,s||void 0),Object.keys(c.attributes).forEach(d=>{u.format(d,c.attributes[d])})}})),i.type==="block"&&i.delta.length()){const c=s?s.offset(s.scroll)+l:this.length();L0(this,c,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const r=this.path(t).pop();if(!r)return[null,-1];const[n,i]=r;return n instanceof Hr?[n,i]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(q6,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const n=(i,o,s)=>{let l=[],c=s;return i.children.forEachAt(o,s,(u,d,f)=>{q6(u)?l.push(u):u instanceof Gp&&(l=l.concat(n(u,d,c))),c-=f}),l};return n(this,t,r)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,r),t.length>0&&this.emitter.emit(Ve.events.SCROLL_OPTIMIZE,t,r))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let r=Ve.sources.USER;typeof t=="string"&&(r=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(n=>{let{target:i}=n;const o=this.find(i,!0);return o&&!V6(o)}),t.length>0&&this.emitter.emit(Ve.events.SCROLL_BEFORE_UPDATE,r,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(Ve.events.SCROLL_UPDATE,r,t)}updateEmbedAt(t,r,n){const[i]=this.descendant(o=>o instanceof Zn,t);i&&i.statics.blotName===r&&V6(i)&&i.updateContent(n)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const r=[];let n=new Qe;return t.forEach(i=>{const o=i==null?void 0:i.insert;if(o)if(typeof o=="string"){const s=o.split(`
|
|
5304
|
-
`);s.slice(0,-1).forEach(c=>{n.insert(c,i.attributes),r.push({type:"block",delta:n,attributes:i.attributes??{}}),n=new Qe});const l=s[s.length-1];l&&n.insert(l,i.attributes)}else{const s=Object.keys(o)[0];if(!s)return;this.query(s,He.INLINE)?n.push(i):(n.length()&&r.push({type:"block",delta:n,attributes:{}}),n=new Qe,r.push({type:"blockEmbed",key:s,value:o[s],attributes:i.attributes??{}}))}}),n.length()&&r.push({type:"block",delta:n,attributes:{}}),r}createBlock(t,r){let n;const i={};Object.entries(t).forEach(l=>{let[c,u]=l;this.query(c,He.BLOCK&He.BLOT)!=null?n=c:i[c]=u});const o=this.create(n||this.statics.defaultChild.blotName,n?t[n]:void 0);this.insertBefore(o,r||void 0);const s=o.length();return Object.entries(i).forEach(l=>{let[c,u]=l;o.formatAt(0,s,c,u)}),o}}Fe(Yl,"blotName","scroll"),Fe(Yl,"className","ql-editor"),Fe(Yl,"tagName","DIV"),Fe(Yl,"defaultChild",$r),Fe(Yl,"allowedChildren",[$r,Zn,xs]);function L0(e,t,r){r.reduce((n,i)=>{const o=nn.Op.length(i);let s=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const l=i.insert;e.insertAt(n,l);const[c]=e.descendant(Hr,n),u=Gn(c);s=nn.AttributeMap.diff(u,s)||{}}else if(typeof i.insert=="object"){const l=Object.keys(i.insert)[0];if(l==null)return n;if(e.insertAt(n,l,i.insert[l]),e.scroll.query(l,He.INLINE)!=null){const[c]=e.descendant(Hr,n),u=Gn(c);s=nn.AttributeMap.diff(u,s)||{}}}}return Object.keys(s).forEach(l=>{e.formatAt(n,o,l,s[l])}),n+o},t)}const eb={scope:He.BLOCK,whitelist:["right","center","justify"]},
|
|
5304
|
+
`);s.slice(0,-1).forEach(c=>{n.insert(c,i.attributes),r.push({type:"block",delta:n,attributes:i.attributes??{}}),n=new Qe});const l=s[s.length-1];l&&n.insert(l,i.attributes)}else{const s=Object.keys(o)[0];if(!s)return;this.query(s,He.INLINE)?n.push(i):(n.length()&&r.push({type:"block",delta:n,attributes:{}}),n=new Qe,r.push({type:"blockEmbed",key:s,value:o[s],attributes:i.attributes??{}}))}}),n.length()&&r.push({type:"block",delta:n,attributes:{}}),r}createBlock(t,r){let n;const i={};Object.entries(t).forEach(l=>{let[c,u]=l;this.query(c,He.BLOCK&He.BLOT)!=null?n=c:i[c]=u});const o=this.create(n||this.statics.defaultChild.blotName,n?t[n]:void 0);this.insertBefore(o,r||void 0);const s=o.length();return Object.entries(i).forEach(l=>{let[c,u]=l;o.formatAt(0,s,c,u)}),o}}Fe(Yl,"blotName","scroll"),Fe(Yl,"className","ql-editor"),Fe(Yl,"tagName","DIV"),Fe(Yl,"defaultChild",$r),Fe(Yl,"allowedChildren",[$r,Zn,xs]);function L0(e,t,r){r.reduce((n,i)=>{const o=nn.Op.length(i);let s=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const l=i.insert;e.insertAt(n,l);const[c]=e.descendant(Hr,n),u=Gn(c);s=nn.AttributeMap.diff(u,s)||{}}else if(typeof i.insert=="object"){const l=Object.keys(i.insert)[0];if(l==null)return n;if(e.insertAt(n,l,i.insert[l]),e.scroll.query(l,He.INLINE)!=null){const[c]=e.descendant(Hr,n),u=Gn(c);s=nn.AttributeMap.diff(u,s)||{}}}}return Object.keys(s).forEach(l=>{e.formatAt(n,o,l,s[l])}),n+o},t)}const eb={scope:He.BLOCK,whitelist:["right","center","justify"]},G3e=new ei("align","align",eb),j6=new yo("align","ql-align",eb),Q6=new Ma("align","text-align",eb);class H6 extends Ma{value(t){let r=super.value(t);return r.startsWith("rgb(")?(r=r.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${r.split(",").map(n=>`00${parseInt(n,10).toString(16)}`.slice(-2)).join("")}`):r}}const K3e=new yo("color","ql-color",{scope:He.INLINE}),tb=new H6("color","color",{scope:He.INLINE}),Y3e=new yo("background","ql-bg",{scope:He.INLINE}),rb=new H6("background","background-color",{scope:He.INLINE});class Cs extends xs{static create(t){const r=super.create(t);return r.setAttribute("spellcheck","false"),r}code(t,r){return this.children.map(n=>n.length()<=1?"":n.domNode.innerText).join(`
|
|
5305
5305
|
`).slice(t,t+r)}html(t,r){return`<pre>
|
|
5306
5306
|
${tm(this.code(t,r))}
|
|
5307
|
-
</pre>`}}class Wr extends $r{static register(){xe.register(Cs)}}Fe(Wr,"TAB"," ");class nb extends ti{}nb.blotName="code",nb.tagName="CODE",Wr.blotName="code-block",Wr.className="ql-code-block",Wr.tagName="DIV",Cs.blotName="code-block-container",Cs.className="ql-code-block-container",Cs.tagName="DIV",Cs.allowedChildren=[Wr],Wr.allowedChildren=[Co,xo,Wl],Wr.requiredContainer=Cs;const ob={scope:He.BLOCK,whitelist:["rtl"]},W6=new ei("direction","dir",ob),Z6=new yo("direction","ql-direction",ob),G6=new Ma("direction","direction",ob),K6={scope:He.INLINE,whitelist:["serif","monospace"]},Y6=new yo("font","ql-font",K6);class
|
|
5308
|
-
`,n);this.quill.updateContents(i,xe.sources.USER),this.quill.setSelection(t.index+1,xe.sources.SILENT),this.quill.focus()}}const
|
|
5307
|
+
</pre>`}}class Wr extends $r{static register(){xe.register(Cs)}}Fe(Wr,"TAB"," ");class nb extends ti{}nb.blotName="code",nb.tagName="CODE",Wr.blotName="code-block",Wr.className="ql-code-block",Wr.tagName="DIV",Cs.blotName="code-block-container",Cs.className="ql-code-block-container",Cs.tagName="DIV",Cs.allowedChildren=[Wr],Wr.allowedChildren=[Co,xo,Wl],Wr.requiredContainer=Cs;const ob={scope:He.BLOCK,whitelist:["rtl"]},W6=new ei("direction","dir",ob),Z6=new yo("direction","ql-direction",ob),G6=new Ma("direction","direction",ob),K6={scope:He.INLINE,whitelist:["serif","monospace"]},Y6=new yo("font","ql-font",K6);class J3e extends Ma{value(t){return super.value(t).replace(/["']/g,"")}}const J6=new J3e("font","font-family",K6),X6=new yo("size","ql-size",{scope:He.INLINE,whitelist:["small","large","huge"]}),L6=new Ma("size","font-size",{scope:He.INLINE,whitelist:["10px","18px","32px"]}),X3e=Pi("quill:keyboard"),L3e=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class im extends Kn{static match(t,r){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!r[n]!==t[n]&&r[n]!==null)?!1:r.key===t.key||r.key===t.which}constructor(t,r){super(t,r),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=t5e(t);if(i==null){X3e.warn("Attempted to add invalid keyboard binding",i);return}typeof r=="function"&&(r={handler:r}),typeof n=="function"&&(n={handler:n}),(Array.isArray(i.key)?i.key:[i.key]).forEach(o=>{const s={...i,key:o,...r,...n};this.bindings[s.key]=this.bindings[s.key]||[],this.bindings[s.key].push(s)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;const r=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(h=>im.match(t,h));if(r.length===0)return;const n=xe.find(t.target,!0);if(n&&n.scroll!==this.quill.scroll)return;const i=this.quill.getSelection();if(i==null||!this.quill.hasFocus())return;const[o,s]=this.quill.getLine(i.index),[l,c]=this.quill.getLeaf(i.index),[u,d]=i.length===0?[l,c]:this.quill.getLeaf(i.index+i.length),f=l instanceof Kp?l.value().slice(0,c):"",p=u instanceof Kp?u.value().slice(d):"",m={collapsed:i.length===0,empty:i.length===0&&o.length()<=1,format:this.quill.getFormat(i),line:o,offset:s,prefix:f,suffix:p,event:t};r.some(h=>{if(h.collapsed!=null&&h.collapsed!==m.collapsed||h.empty!=null&&h.empty!==m.empty||h.offset!=null&&h.offset!==m.offset)return!1;if(Array.isArray(h.format)){if(h.format.every(g=>m.format[g]==null))return!1}else if(typeof h.format=="object"&&!Object.keys(h.format).every(g=>h.format[g]===!0?m.format[g]!=null:h.format[g]===!1?m.format[g]==null:$0(h.format[g],m.format[g])))return!1;return h.prefix!=null&&!h.prefix.test(m.prefix)||h.suffix!=null&&!h.suffix.test(m.suffix)?!1:h.handler.call(this,i,m,h)!==!0})&&t.preventDefault()})}handleBackspace(t,r){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(r.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let i={};const[o]=this.quill.getLine(t.index);let s=new Qe().retain(t.index-n).delete(n);if(r.offset===0){const[l]=this.quill.getLine(t.index-1);if(l&&!(l.statics.blotName==="block"&&l.length()<=1)){const c=o.formats(),u=this.quill.getFormat(t.index-1,1);if(i=nn.AttributeMap.diff(c,u)||{},Object.keys(i).length>0){const d=new Qe().retain(t.index+o.length()-2).retain(1,i);s=s.compose(d)}}}this.quill.updateContents(s,xe.sources.USER),this.quill.focus()}handleDelete(t,r){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(r.suffix)?2:1;if(t.index>=this.quill.getLength()-n)return;let i={};const[o]=this.quill.getLine(t.index);let s=new Qe().retain(t.index).delete(n);if(r.offset>=o.length()-1){const[l]=this.quill.getLine(t.index+1);if(l){const c=o.formats(),u=this.quill.getFormat(t.index,1);i=nn.AttributeMap.diff(c,u)||{},Object.keys(i).length>0&&(s=s.retain(l.length()-1).retain(1,i))}}this.quill.updateContents(s,xe.sources.USER),this.quill.focus()}handleDeleteRange(t){ab({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,r){const n=Object.keys(r.format).reduce((o,s)=>(this.quill.scroll.query(s,He.BLOCK)&&!Array.isArray(r.format[s])&&(o[s]=r.format[s]),o),{}),i=new Qe().retain(t.index).delete(t.length).insert(`
|
|
5308
|
+
`,n);this.quill.updateContents(i,xe.sources.USER),this.quill.setSelection(t.index+1,xe.sources.SILENT),this.quill.focus()}}const e5e={bindings:{bold:ib("bold"),italic:ib("italic"),underline:ib("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",xe.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",xe.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){t.format.indent!=null?this.quill.format("indent","-1",xe.sources.USER):t.format.list!=null&&this.quill.format("list",!1,xe.sources.USER)}},"indent code-block":eA(!0),"outdent code-block":eA(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,xe.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const r=new Qe().retain(e.index).delete(e.length).insert(" ");return this.quill.updateContents(r,xe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,xe.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,xe.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){const r={list:!1};t.format.indent&&(r.indent=!1),this.quill.formatLine(e.index,e.length,r,xe.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){const[t,r]=this.quill.getLine(e.index),n={...t.formats(),list:"checked"},i=new Qe().retain(e.index).insert(`
|
|
5309
5309
|
`,n).retain(t.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,xe.sources.USER),this.quill.setSelection(e.index+1,xe.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){const[r,n]=this.quill.getLine(e.index),i=new Qe().retain(e.index).insert(`
|
|
5310
|
-
`,t.format).retain(r.length()-n-1).retain(1,{header:null});this.quill.updateContents(i,xe.sources.USER),this.quill.setSelection(e.index+1,xe.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[r,n,i,o]=t.getTable(e),s=
|
|
5310
|
+
`,t.format).retain(r.length()-n-1).retain(1,{header:null});this.quill.updateContents(i,xe.sources.USER),this.quill.setSelection(e.index+1,xe.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[r,n,i,o]=t.getTable(e),s=r5e(r,n,i,o);if(s==null)return;let l=r.offset();if(s<0){const c=new Qe().retain(l).insert(`
|
|
5311
5311
|
`);this.quill.updateContents(c,xe.sources.USER),this.quill.setSelection(e.index+1,e.length,xe.sources.SILENT)}else if(s>0){l+=r.length();const c=new Qe().retain(l).insert(`
|
|
5312
|
-
`);this.quill.updateContents(c,xe.sources.USER),this.quill.setSelection(l,xe.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:r,line:n}=t,i=n.offset(this.quill.scroll);r.shiftKey?this.quill.setSelection(i-1,xe.sources.USER):this.quill.setSelection(i+n.length(),xe.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(this.quill.scroll.query("list")==null)return!0;const{length:r}=t.prefix,[n,i]=this.quill.getLine(e.index);if(i>r)return!0;let o;switch(t.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(e.index," ",xe.sources.USER),this.quill.history.cutoff();const s=new Qe().retain(e.index-i).delete(r+1).retain(n.length()-2-i).retain(1,{list:o});return this.quill.updateContents(s,xe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-r,xe.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,r]=this.quill.getLine(e.index);let n=2,i=t;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,n-=1,n<=0){const o=new Qe().retain(e.index+t.length()-r-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,xe.sources.USER),this.quill.setSelection(e.index-1,xe.sources.SILENT),!1}return!0}},"embed left":am("ArrowLeft",!1),"embed left shift":am("ArrowLeft",!0),"embed right":am("ArrowRight",!1),"embed right shift":am("ArrowRight",!0),"table down":tA(!1),"table up":tA(!0)}};im.DEFAULTS=
|
|
5313
|
-
`)&&(o.ops[o.ops.length-1].attributes==null||i.table)?o.compose(new Qe().retain(o.length()-1).delete(1)):o}normalizeHTML(t){
|
|
5314
|
-
`)}onCapturePaste(t){var s,l,c,u,d;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const r=this.quill.getSelection(!0);if(r==null)return;const n=(s=t.clipboardData)==null?void 0:s.getData("text/html");let i=(l=t.clipboardData)==null?void 0:l.getData("text/plain");if(!n&&!i){const f=(c=t.clipboardData)==null?void 0:c.getData("text/uri-list");f&&(i=this.normalizeURIList(f))}const o=Array.from(((u=t.clipboardData)==null?void 0:u.files)||[]);if(!n&&o.length>0){this.quill.uploader.upload(r,o);return}if(n&&o.length>0){const f=new DOMParser().parseFromString(n,"text/html");if(f.body.childElementCount===1&&((d=f.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(r,o);return}}this.onPaste(r,{html:n,text:i})}onCopy(t){const r=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:r}}onPaste(t,r){let{text:n,html:i}=r;const o=this.quill.getFormat(t.index),s=this.convert({text:n,html:i},o);
|
|
5312
|
+
`);this.quill.updateContents(c,xe.sources.USER),this.quill.setSelection(l,xe.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:r,line:n}=t,i=n.offset(this.quill.scroll);r.shiftKey?this.quill.setSelection(i-1,xe.sources.USER):this.quill.setSelection(i+n.length(),xe.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(this.quill.scroll.query("list")==null)return!0;const{length:r}=t.prefix,[n,i]=this.quill.getLine(e.index);if(i>r)return!0;let o;switch(t.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(e.index," ",xe.sources.USER),this.quill.history.cutoff();const s=new Qe().retain(e.index-i).delete(r+1).retain(n.length()-2-i).retain(1,{list:o});return this.quill.updateContents(s,xe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-r,xe.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,r]=this.quill.getLine(e.index);let n=2,i=t;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,n-=1,n<=0){const o=new Qe().retain(e.index+t.length()-r-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,xe.sources.USER),this.quill.setSelection(e.index-1,xe.sources.SILENT),!1}return!0}},"embed left":am("ArrowLeft",!1),"embed left shift":am("ArrowLeft",!0),"embed right":am("ArrowRight",!1),"embed right shift":am("ArrowRight",!0),"table down":tA(!1),"table up":tA(!0)}};im.DEFAULTS=e5e;function eA(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,r){let{event:n}=r;const i=this.quill.scroll.query("code-block"),{TAB:o}=i;if(t.length===0&&!n.shiftKey){this.quill.insertText(t.index,o,xe.sources.USER),this.quill.setSelection(t.index+o.length,xe.sources.SILENT);return}const s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:l,length:c}=t;s.forEach((u,d)=>{e?(u.insertAt(0,o),d===0?l+=o.length:c+=o.length):u.domNode.textContent.startsWith(o)&&(u.deleteAt(0,o.length),d===0?l-=o.length:c-=o.length)}),this.quill.update(xe.sources.USER),this.quill.setSelection(l,c,xe.sources.SILENT)}}}function am(e,t){return{key:e,shiftKey:t,altKey:null,[e==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:n}=r;e==="ArrowRight"&&(n+=r.length+1);const[i]=this.quill.getLeaf(n);return i instanceof Mn?(e==="ArrowLeft"?t?this.quill.setSelection(r.index-1,r.length+1,xe.sources.USER):this.quill.setSelection(r.index-1,xe.sources.USER):t?this.quill.setSelection(r.index,r.length+1,xe.sources.USER):this.quill.setSelection(r.index+r.length+1,xe.sources.USER),!1):!0}}}function ib(e){return{key:e[0],shortKey:!0,handler(t,r){this.quill.format(e,!r.format[e],xe.sources.USER)}}}function tA(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,r){const n=e?"prev":"next",i=r.line,o=i.parent[n];if(o!=null){if(o.statics.blotName==="table-row"){let s=o.children.head,l=i;for(;l.prev!=null;)l=l.prev,s=s.next;const c=s.offset(this.quill.scroll)+Math.min(r.offset,s.length()-1);this.quill.setSelection(c,0,xe.sources.USER)}}else{const s=i.table()[n];s!=null&&(e?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,xe.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,xe.sources.USER))}return!1}}}function t5e(e){if(typeof e=="string"||typeof e=="number")e={key:e};else if(typeof e=="object")e=Ul(e);else return null;return e.shortKey&&(e[L3e]=e.shortKey,delete e.shortKey),e}function ab(e){let{quill:t,range:r}=e;const n=t.getLines(r);let i={};if(n.length>1){const o=n[0].formats(),s=n[n.length-1].formats();i=nn.AttributeMap.diff(s,o)||{}}t.deleteText(r,xe.sources.USER),Object.keys(i).length>0&&t.formatLine(r.index,1,i,xe.sources.USER),t.setSelection(r.index,xe.sources.SILENT)}function r5e(e,t,r,n){return t.prev==null&&t.next==null?r.prev==null&&r.next==null?n===0?-1:1:r.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}const n5e=/font-weight:\s*normal/,o5e=["P","OL","UL"],rA=e=>e&&o5e.includes(e.tagName),i5e=e=>{Array.from(e.querySelectorAll("br")).filter(t=>rA(t.previousElementSibling)&&rA(t.nextElementSibling)).forEach(t=>{var r;(r=t.parentNode)==null||r.removeChild(t)})},a5e=e=>{Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var r;return(r=t.getAttribute("style"))==null?void 0:r.match(n5e)}).forEach(t=>{var n;const r=e.createDocumentFragment();r.append(...t.childNodes),(n=t.parentNode)==null||n.replaceChild(r,t)})};function s5e(e){e.querySelector('[id^="docs-internal-guid-"]')&&(a5e(e),i5e(e))}const l5e=/\bmso-list:[^;]*ignore/i,u5e=/\bmso-list:[^;]*\bl(\d+)/i,c5e=/\bmso-list:[^;]*\blevel(\d+)/i,d5e=(e,t)=>{const r=e.getAttribute("style"),n=r==null?void 0:r.match(u5e);if(!n)return null;const i=Number(n[1]),o=r==null?void 0:r.match(c5e),s=o?Number(o[1]):1,l=new RegExp(`@list l${i}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),c=t.match(l),u=c&&c[1]==="bullet"?"bullet":"ordered";return{id:i,indent:s,type:u,element:e}},f5e=e=>{var s,l;const t=Array.from(e.querySelectorAll("[style*=mso-list]")),r=[],n=[];t.forEach(c=>{(c.getAttribute("style")||"").match(l5e)?r.push(c):n.push(c)}),r.forEach(c=>{var u;return(u=c.parentNode)==null?void 0:u.removeChild(c)});const i=e.documentElement.innerHTML,o=n.map(c=>d5e(c,i)).filter(c=>c);for(;o.length;){const c=[];let u=o.shift();for(;u;)c.push(u),u=o.length&&((s=o[0])==null?void 0:s.element)===u.element.nextElementSibling&&o[0].id===u.id?o.shift():null;const d=document.createElement("ul");c.forEach(m=>{const h=document.createElement("li");h.setAttribute("data-list",m.type),m.indent>1&&h.setAttribute("class",`ql-indent-${m.indent-1}`),h.innerHTML=m.element.innerHTML,d.appendChild(h)});const f=(l=c[0])==null?void 0:l.element,{parentNode:p}=f??{};f&&(p==null||p.replaceChild(d,f)),c.slice(1).forEach(m=>{let{element:h}=m;p==null||p.removeChild(h)})}};function p5e(e){e.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&f5e(e)}const m5e=[p5e,s5e],h5e=e=>{e.documentElement&&m5e.forEach(t=>{t(e)})},g5e=Pi("quill:clipboard"),v5e=[[Node.TEXT_NODE,D5e],[Node.TEXT_NODE,aA],["br",C5e],[Node.ELEMENT_NODE,aA],[Node.ELEMENT_NODE,x5e],[Node.ELEMENT_NODE,w5e],[Node.ELEMENT_NODE,B5e],["li",E5e],["ol, ul",N5e],["pre",S5e],["tr",A5e],["b",lb("bold")],["i",lb("italic")],["strike",lb("strike")],["style",k5e]],b5e=[G3e,W6].reduce((e,t)=>(e[t.keyName]=t,e),{}),nA=[Q6,rb,tb,G6,J6,L6].reduce((e,t)=>(e[t.keyName]=t,e),{});class oA extends Kn{constructor(t,r){super(t,r),this.quill.root.addEventListener("copy",n=>this.onCaptureCopy(n,!1)),this.quill.root.addEventListener("cut",n=>this.onCaptureCopy(n,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],v5e.concat(this.options.matchers??[]).forEach(n=>{let[i,o]=n;this.addMatcher(i,o)})}addMatcher(t,r){this.matchers.push([t,r])}convert(t){let{html:r,text:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[Wr.blotName])return new Qe().insert(n||"",{[Wr.blotName]:i[Wr.blotName]});if(!r)return new Qe().insert(n||"",i);const o=this.convertHTML(r);return Jc(o,`
|
|
5313
|
+
`)&&(o.ops[o.ops.length-1].attributes==null||i.table)?o.compose(new Qe().retain(o.length()-1).delete(1)):o}normalizeHTML(t){h5e(t)}convertHTML(t){const r=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(r);const n=r.body,i=new WeakMap,[o,s]=this.prepareMatching(n,i);return sb(this.quill.scroll,n,o,s,i)}dangerouslyPasteHTML(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe.sources.API;if(typeof t=="string"){const i=this.convert({html:t,text:""});this.quill.setContents(i,r),this.quill.setSelection(0,xe.sources.SILENT)}else{const i=this.convert({html:r,text:""});this.quill.updateContents(new Qe().retain(t).concat(i),n),this.quill.setSelection(t+i.length(),xe.sources.SILENT)}}onCaptureCopy(t){var s,l;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[n]=this.quill.selection.getRange();if(n==null)return;const{html:i,text:o}=this.onCopy(n,r);(s=t.clipboardData)==null||s.setData("text/plain",o),(l=t.clipboardData)==null||l.setData("text/html",i),r&&ab({range:n,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(r=>r[0]!=="#").join(`
|
|
5314
|
+
`)}onCapturePaste(t){var s,l,c,u,d;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const r=this.quill.getSelection(!0);if(r==null)return;const n=(s=t.clipboardData)==null?void 0:s.getData("text/html");let i=(l=t.clipboardData)==null?void 0:l.getData("text/plain");if(!n&&!i){const f=(c=t.clipboardData)==null?void 0:c.getData("text/uri-list");f&&(i=this.normalizeURIList(f))}const o=Array.from(((u=t.clipboardData)==null?void 0:u.files)||[]);if(!n&&o.length>0){this.quill.uploader.upload(r,o);return}if(n&&o.length>0){const f=new DOMParser().parseFromString(n,"text/html");if(f.body.childElementCount===1&&((d=f.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(r,o);return}}this.onPaste(r,{html:n,text:i})}onCopy(t){const r=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:r}}onPaste(t,r){let{text:n,html:i}=r;const o=this.quill.getFormat(t.index),s=this.convert({text:n,html:i},o);g5e.log("onPaste",s,{text:n,html:i});const l=new Qe().retain(t.index).delete(t.length).concat(s);this.quill.updateContents(l,xe.sources.USER),this.quill.setSelection(l.length()-t.length,xe.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,r){const n=[],i=[];return this.matchers.forEach(o=>{const[s,l]=o;switch(s){case Node.TEXT_NODE:i.push(l);break;case Node.ELEMENT_NODE:n.push(l);break;default:Array.from(t.querySelectorAll(s)).forEach(c=>{var u;r.has(c)?(u=r.get(c))==null||u.push(l):r.set(c,[l])});break}}),[n,i]}}Fe(oA,"DEFAULTS",{matchers:[]});function Ss(e,t,r,n){return n.query(t)?e.reduce((i,o)=>{if(!o.insert)return i;if(o.attributes&&o.attributes[t])return i.push(o);const s=r?{[t]:r}:{};return i.insert(o.insert,{...s,...o.attributes})},new Qe):e}function Jc(e,t){let r="";for(let n=e.ops.length-1;n>=0&&r.length<t.length;--n){const i=e.ops[n];if(typeof i.insert!="string")break;r=i.insert+r}return r.slice(-1*t.length)===t}function Fa(e,t){if(!(e instanceof Element))return!1;const r=t.query(e);return r&&r.prototype instanceof Mn?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}function y5e(e,t){return e.previousElementSibling&&e.nextElementSibling&&!Fa(e.previousElementSibling,t)&&!Fa(e.nextElementSibling,t)}const sm=new WeakMap;function iA(e){return e==null?!1:(sm.has(e)||(e.tagName==="PRE"?sm.set(e,!0):sm.set(e,iA(e.parentNode))),sm.get(e))}function sb(e,t,r,n,i){return t.nodeType===t.TEXT_NODE?n.reduce((o,s)=>s(t,o,e),new Qe):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((o,s)=>{let l=sb(e,s,r,n,i);return s.nodeType===t.ELEMENT_NODE&&(l=r.reduce((c,u)=>u(s,c,e),l),l=(i.get(s)||[]).reduce((c,u)=>u(s,c,e),l)),o.concat(l)},new Qe):new Qe}function lb(e){return(t,r,n)=>Ss(r,e,!0,n)}function w5e(e,t,r){const n=ei.keys(e),i=yo.keys(e),o=Ma.keys(e),s={};return n.concat(i).concat(o).forEach(l=>{let c=r.query(l,He.ATTRIBUTE);c!=null&&(s[c.attrName]=c.value(e),s[c.attrName])||(c=b5e[l],c!=null&&(c.attrName===l||c.keyName===l)&&(s[c.attrName]=c.value(e)||void 0),c=nA[l],c!=null&&(c.attrName===l||c.keyName===l)&&(c=nA[l],s[c.attrName]=c.value(e)||void 0))}),Object.entries(s).reduce((l,c)=>{let[u,d]=c;return Ss(l,u,d,r)},t)}function x5e(e,t,r){const n=r.query(e);if(n==null)return t;if(n.prototype instanceof Mn){const i={},o=n.value(e);if(o!=null)return i[n.blotName]=o,new Qe().insert(i,n.formats(e,r))}else if(n.prototype instanceof Kc&&!Jc(t,`
|
|
5315
5315
|
`)&&t.insert(`
|
|
5316
|
-
`),"blotName"in n&&"formats"in n&&typeof n.formats=="function")return Ss(t,n.blotName,n.formats(e,r),r);return t}function
|
|
5316
|
+
`),"blotName"in n&&"formats"in n&&typeof n.formats=="function")return Ss(t,n.blotName,n.formats(e,r),r);return t}function C5e(e,t){return Jc(t,`
|
|
5317
5317
|
`)||t.insert(`
|
|
5318
|
-
`),t}function
|
|
5319
|
-
`))return t;let i=-1,o=e.parentNode;for(;o!=null;)["OL","UL"].includes(o.tagName)&&(i+=1),o=o.parentNode;return i<=0?t:t.reduce((s,l)=>l.insert?l.attributes&&typeof l.attributes.indent=="number"?s.push(l):s.insert(l.insert,{indent:i,...l.attributes||{}}):s,new Qe)}function
|
|
5318
|
+
`),t}function S5e(e,t,r){const n=r.query("code-block"),i=n&&"formats"in n&&typeof n.formats=="function"?n.formats(e,r):!0;return Ss(t,"code-block",i,r)}function k5e(){return new Qe}function E5e(e,t,r){const n=r.query(e);if(n==null||n.blotName!=="list"||!Jc(t,`
|
|
5319
|
+
`))return t;let i=-1,o=e.parentNode;for(;o!=null;)["OL","UL"].includes(o.tagName)&&(i+=1),o=o.parentNode;return i<=0?t:t.reduce((s,l)=>l.insert?l.attributes&&typeof l.attributes.indent=="number"?s.push(l):s.insert(l.insert,{indent:i,...l.attributes||{}}):s,new Qe)}function N5e(e,t,r){const n=e;let i=n.tagName==="OL"?"ordered":"bullet";const o=n.getAttribute("data-checked");return o&&(i=o==="true"?"checked":"unchecked"),Ss(t,"list",i,r)}function aA(e,t,r){if(!Jc(t,`
|
|
5320
5320
|
`)){if(Fa(e,r)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert(`
|
|
5321
5321
|
`);if(t.length()>0&&e.nextSibling){let n=e.nextSibling;for(;n!=null;){if(Fa(n,r))return t.insert(`
|
|
5322
5322
|
`);const i=r.query(n);if(i&&i.prototype instanceof Zn)return t.insert(`
|
|
5323
|
-
`);n=n.firstChild}}}return t}function
|
|
5324
|
-
`)&&!
|
|
5325
|
-
`):r.attributes!=null?Object.keys(r.attributes).some(n=>e.query(n,He.BLOCK)!=null):!1}function F5e(e,t){const r=t.reduce((i,o)=>i+(o.delete||0),0);let n=t.length()-r;return T5e(e,t)&&(n-=1),n}function ub(e,t){if(!e)return e;const r=t.transformPosition(e.index),n=t.transformPosition(e.index+e.length);return{index:r,length:n-r}}class uA extends Kn{constructor(t,r){super(t,r),t.root.addEventListener("drop",n=>{var s;n.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){const l=document.caretPositionFromPoint(n.clientX,n.clientY);i=document.createRange(),i.setStart(l.offsetNode,l.offset),i.setEnd(l.offsetNode,l.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const l=t.selection.normalizedToRange(o);(s=n.dataTransfer)!=null&&s.files&&this.upload(l,n.dataTransfer.files)}})}upload(t,r){const n=[];Array.from(r).forEach(i=>{var o;i&&((o=this.options.mimetypes)!=null&&o.includes(i.type))&&n.push(i)}),n.length>0&&this.options.handler.call(this,t,n)}}uA.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const r=t.map(n=>new Promise(i=>{const o=new FileReader;o.onload=()=>{i(o.result)},o.readAsDataURL(n)}));Promise.all(r).then(n=>{const i=n.reduce((o,s)=>o.insert({image:s}),new Qe().retain(e.index).delete(e.length));this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(e.index+n.length,Ve.sources.SILENT)})}};const O5e=["insertText","insertReplacementText"];class I5e extends Kn{constructor(t,r){super(t,r),t.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||t.on(xe.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){ab({range:t,quill:this.quill})}replaceText(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(r){const n=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new Qe().retain(t.index).insert(r,n),xe.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+r.length,0,xe.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!O5e.includes(t.inputType))return;const r=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!r||r.collapsed===!0)return;const n=_5e(t);if(n==null)return;const i=this.quill.selection.normalizeNative(r),o=i?this.quill.selection.normalizedToRange(i):null;o&&this.replaceText(o,n)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function _5e(e){var t;return typeof e.data=="string"?e.data:(t=e.dataTransfer)!=null&&t.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null}const $5e=/Mac/i.test(navigator.platform),R5e=100,P5e=e=>!!(e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"||e.key==="ArrowDown"||e.key==="Home"||$5e&&e.key==="a"&&e.ctrlKey===!0);class z5e extends Kn{constructor(r,n){super(r,n);Fe(this,"isListening",!1);Fe(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(r,n){let{line:i,event:o}=n;if(!(i instanceof wo)||!i.uiNode)return!0;const s=getComputedStyle(i.domNode).direction==="rtl";return s&&o.key!=="ArrowRight"||!s&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(r.index-1,r.length+(o.shiftKey?1:0),xe.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",r=>{!r.defaultPrevented&&P5e(r)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+R5e,this.isListening)return;this.isListening=!0;const r=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",r,{once:!0})}handleSelectionChange(){const r=document.getSelection();if(!r)return;const n=r.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const i=this.quill.scroll.find(n.startContainer);if(!(i instanceof wo)||!i.uiNode)return;const o=document.createRange();o.setStartAfter(i.uiNode),o.setEndAfter(i.uiNode),r.removeAllRanges(),r.addRange(o)}}xe.register({"blots/block":$r,"blots/block/embed":Zn,"blots/break":xo,"blots/container":xs,"blots/cursor":Wl,"blots/embed":J0,"blots/inline":ti,"blots/scroll":Yl,"blots/text":Co,"modules/clipboard":oA,"modules/history":sA,"modules/keyboard":im,"modules/uploader":uA,"modules/input":I5e,"modules/uiNode":z5e});class U5e extends yo{add(t,r){let n=0;if(r==="+1"||r==="-1"){const i=this.value(t)||0;n=r==="+1"?i+1:i-1}else typeof r=="number"&&(n=r);return n===0?(this.remove(t),!0):super.add(t,n.toString())}canAdd(t,r){return super.canAdd(t,r)||super.canAdd(t,parseInt(r,10))}value(t){return parseInt(super.value(t),10)||void 0}}const q5e=new U5e("indent","ql-indent",{scope:He.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class cb extends $r{}Fe(cb,"blotName","blockquote"),Fe(cb,"tagName","blockquote");class db extends $r{static formats(t){return this.tagName.indexOf(t.tagName)+1}}Fe(db,"blotName","header"),Fe(db,"tagName",["H1","H2","H3","H4","H5","H6"]);class Xc extends xs{}Xc.blotName="list-container",Xc.tagName="OL";class Lc extends $r{static create(t){const r=super.create();return r.setAttribute("data-list",t),r}static formats(t){return t.getAttribute("data-list")||void 0}static register(){xe.register(Xc)}constructor(t,r){super(t,r);const n=r.ownerDocument.createElement("span"),i=o=>{if(!t.isEnabled())return;const s=this.statics.formats(r,t);s==="checked"?(this.format("list","unchecked"),o.preventDefault()):s==="unchecked"&&(this.format("list","checked"),o.preventDefault())};n.addEventListener("mousedown",i),n.addEventListener("touchstart",i),this.attachUI(n)}format(t,r){t===this.statics.blotName&&r?this.domNode.setAttribute("data-list",r):super.format(t,r)}}Lc.blotName="list",Lc.tagName="LI",Xc.allowedChildren=[Lc],Lc.requiredContainer=Xc;class ed extends ti{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Fe(ed,"blotName","bold"),Fe(ed,"tagName",["STRONG","B"]);class fb extends ed{}Fe(fb,"blotName","italic"),Fe(fb,"tagName",["EM","I"]);class Oa extends ti{static create(t){const r=super.create(t);return r.setAttribute("href",this.sanitize(t)),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}static formats(t){return t.getAttribute("href")}static sanitize(t){return cA(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,r){t!==this.statics.blotName||!r?super.format(t,r):this.domNode.setAttribute("href",this.constructor.sanitize(r))}}Fe(Oa,"blotName","link"),Fe(Oa,"tagName","A"),Fe(Oa,"SANITIZED_URL","about:blank"),Fe(Oa,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function cA(e,t){const r=document.createElement("a");r.href=e;const n=r.href.slice(0,r.href.indexOf(":"));return t.indexOf(n)>-1}class pb extends ti{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}Fe(pb,"blotName","script"),Fe(pb,"tagName",["SUB","SUP"]);class mb extends ed{}Fe(mb,"blotName","strike"),Fe(mb,"tagName",["S","STRIKE"]);class hb extends ti{}Fe(hb,"blotName","underline"),Fe(hb,"tagName","U");class lm extends J0{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const r=super.create(t);return typeof t=="string"&&(window.katex.render(t,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",t)),r}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}Fe(lm,"blotName","formula"),Fe(lm,"className","ql-formula"),Fe(lm,"tagName","SPAN");const dA=["alt","height","width"];class gb extends Mn{static create(t){const r=super.create(t);return typeof t=="string"&&r.setAttribute("src",this.sanitize(t)),r}static formats(t){return dA.reduce((r,n)=>(t.hasAttribute(n)&&(r[n]=t.getAttribute(n)),r),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return cA(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,r){dA.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):super.format(t,r)}}Fe(gb,"blotName","image"),Fe(gb,"tagName","IMG");const fA=["height","width"];class um extends Zn{static create(t){const r=super.create(t);return r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen","true"),r.setAttribute("src",this.sanitize(t)),r}static formats(t){return fA.reduce((r,n)=>(t.hasAttribute(n)&&(r[n]=t.getAttribute(n)),r),{})}static sanitize(t){return Oa.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,r){fA.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):super.format(t,r)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}Fe(um,"blotName","video"),Fe(um,"className","ql-video"),Fe(um,"tagName","IFRAME");const td=new yo("code-token","hljs",{scope:He.INLINE});class Ui extends ti{static formats(t,r){for(;t!=null&&t!==r.domNode;){if(t.classList&&t.classList.contains(Wr.className))return super.formats(t,r);t=t.parentNode}}constructor(t,r,n){super(t,r,n),td.add(this.domNode,n)}format(t,r){t!==Ui.blotName?super.format(t,r):r?td.add(this.domNode,r):(td.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),td.value(this.domNode)||this.unwrap()}}Ui.blotName="code-token",Ui.className="ql-token";class Yn extends Wr{static create(t){const r=super.create(t);return typeof t=="string"&&r.setAttribute("data-language",t),r}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,r){t===this.statics.blotName&&r?this.domNode.setAttribute("data-language",r):super.format(t,r)}replaceWith(t,r){return this.formatAt(0,this.length(),Ui.blotName,!1),super.replaceWith(t,r)}}class rd extends Cs{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,r){t===Yn.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(t,r)}))}formatAt(t,r,n,i){n===Yn.blotName&&(this.forceNext=!0),super.formatAt(t,r,n,i)}highlight(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const n=`${Array.from(this.domNode.childNodes).filter(o=>o!==this.uiNode).map(o=>o.textContent).join(`
|
|
5323
|
+
`);n=n.firstChild}}}return t}function B5e(e,t,r){var o;const n={},i=e.style||{};return i.fontStyle==="italic"&&(n.italic=!0),i.textDecoration==="underline"&&(n.underline=!0),i.textDecoration==="line-through"&&(n.strike=!0),((o=i.fontWeight)!=null&&o.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(n.bold=!0),t=Object.entries(n).reduce((s,l)=>{let[c,u]=l;return Ss(s,c,u,r)},t),parseFloat(i.textIndent||0)>0?new Qe().insert(" ").concat(t):t}function A5e(e,t,r){var i,o;const n=((i=e.parentElement)==null?void 0:i.tagName)==="TABLE"?e.parentElement:(o=e.parentElement)==null?void 0:o.parentElement;if(n!=null){const s=Array.from(n.querySelectorAll("tr")).indexOf(e)+1;return Ss(t,"table",s,r)}return t}function D5e(e,t,r){var i;let n=e.data;if(((i=e.parentElement)==null?void 0:i.tagName)==="O:P")return t.insert(n.trim());if(!iA(e)){if(n.trim().length===0&&n.includes(`
|
|
5324
|
+
`)&&!y5e(e,r))return t;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(e.previousSibling==null&&e.parentElement!=null&&Fa(e.parentElement,r)||e.previousSibling instanceof Element&&Fa(e.previousSibling,r))&&(n=n.replace(/^ /,"")),(e.nextSibling==null&&e.parentElement!=null&&Fa(e.parentElement,r)||e.nextSibling instanceof Element&&Fa(e.nextSibling,r))&&(n=n.replace(/ $/,"")),n=n.replaceAll(" "," ")}return t.insert(n)}class sA extends Kn{constructor(r,n){super(r,n);Fe(this,"lastRecorded",0);Fe(this,"ignoreChange",!1);Fe(this,"stack",{undo:[],redo:[]});Fe(this,"currentRange",null);this.quill.on(xe.events.EDITOR_CHANGE,(i,o,s,l)=>{i===xe.events.SELECTION_CHANGE?o&&l!==xe.sources.SILENT&&(this.currentRange=o):i===xe.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===xe.sources.USER?this.record(o,s):this.transform(o)),this.currentRange=ub(this.currentRange,o))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(r,n){if(this.stack[r].length===0)return;const i=this.stack[r].pop();if(!i)return;const o=this.quill.getContents(),s=i.delta.invert(o);this.stack[n].push({delta:s,range:ub(i.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,xe.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(r,n){if(r.ops.length===0)return;this.stack.redo=[];let i=r.invert(n),o=this.currentRange;const s=Date.now();if(this.lastRecorded+this.options.delay>s&&this.stack.undo.length>0){const l=this.stack.undo.pop();l&&(i=i.compose(l.delta),o=l.range)}else this.lastRecorded=s;i.length()!==0&&(this.stack.undo.push({delta:i,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(r){lA(this.stack.undo,r),lA(this.stack.redo,r)}undo(){this.change("undo","redo")}restoreSelection(r){if(r.range)this.quill.setSelection(r.range,xe.sources.USER);else{const n=T5e(this.quill.scroll,r.delta);this.quill.setSelection(n,xe.sources.USER)}}}Fe(sA,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function lA(e,t){let r=t;for(let n=e.length-1;n>=0;n-=1){const i=e[n];e[n]={delta:r.transform(i.delta,!0),range:i.range&&ub(i.range,r)},r=i.delta.transform(r),e[n].delta.length()===0&&e.splice(n,1)}}function M5e(e,t){const r=t.ops[t.ops.length-1];return r==null?!1:r.insert!=null?typeof r.insert=="string"&&r.insert.endsWith(`
|
|
5325
|
+
`):r.attributes!=null?Object.keys(r.attributes).some(n=>e.query(n,He.BLOCK)!=null):!1}function T5e(e,t){const r=t.reduce((i,o)=>i+(o.delete||0),0);let n=t.length()-r;return M5e(e,t)&&(n-=1),n}function ub(e,t){if(!e)return e;const r=t.transformPosition(e.index),n=t.transformPosition(e.index+e.length);return{index:r,length:n-r}}class uA extends Kn{constructor(t,r){super(t,r),t.root.addEventListener("drop",n=>{var s;n.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){const l=document.caretPositionFromPoint(n.clientX,n.clientY);i=document.createRange(),i.setStart(l.offsetNode,l.offset),i.setEnd(l.offsetNode,l.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const l=t.selection.normalizedToRange(o);(s=n.dataTransfer)!=null&&s.files&&this.upload(l,n.dataTransfer.files)}})}upload(t,r){const n=[];Array.from(r).forEach(i=>{var o;i&&((o=this.options.mimetypes)!=null&&o.includes(i.type))&&n.push(i)}),n.length>0&&this.options.handler.call(this,t,n)}}uA.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const r=t.map(n=>new Promise(i=>{const o=new FileReader;o.onload=()=>{i(o.result)},o.readAsDataURL(n)}));Promise.all(r).then(n=>{const i=n.reduce((o,s)=>o.insert({image:s}),new Qe().retain(e.index).delete(e.length));this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(e.index+n.length,Ve.sources.SILENT)})}};const F5e=["insertText","insertReplacementText"];class O5e extends Kn{constructor(t,r){super(t,r),t.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||t.on(xe.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){ab({range:t,quill:this.quill})}replaceText(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(r){const n=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new Qe().retain(t.index).insert(r,n),xe.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+r.length,0,xe.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!F5e.includes(t.inputType))return;const r=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!r||r.collapsed===!0)return;const n=I5e(t);if(n==null)return;const i=this.quill.selection.normalizeNative(r),o=i?this.quill.selection.normalizedToRange(i):null;o&&this.replaceText(o,n)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function I5e(e){var t;return typeof e.data=="string"?e.data:(t=e.dataTransfer)!=null&&t.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null}const _5e=/Mac/i.test(navigator.platform),$5e=100,R5e=e=>!!(e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"||e.key==="ArrowDown"||e.key==="Home"||_5e&&e.key==="a"&&e.ctrlKey===!0);class P5e extends Kn{constructor(r,n){super(r,n);Fe(this,"isListening",!1);Fe(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(r,n){let{line:i,event:o}=n;if(!(i instanceof wo)||!i.uiNode)return!0;const s=getComputedStyle(i.domNode).direction==="rtl";return s&&o.key!=="ArrowRight"||!s&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(r.index-1,r.length+(o.shiftKey?1:0),xe.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",r=>{!r.defaultPrevented&&R5e(r)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+$5e,this.isListening)return;this.isListening=!0;const r=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",r,{once:!0})}handleSelectionChange(){const r=document.getSelection();if(!r)return;const n=r.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const i=this.quill.scroll.find(n.startContainer);if(!(i instanceof wo)||!i.uiNode)return;const o=document.createRange();o.setStartAfter(i.uiNode),o.setEndAfter(i.uiNode),r.removeAllRanges(),r.addRange(o)}}xe.register({"blots/block":$r,"blots/block/embed":Zn,"blots/break":xo,"blots/container":xs,"blots/cursor":Wl,"blots/embed":J0,"blots/inline":ti,"blots/scroll":Yl,"blots/text":Co,"modules/clipboard":oA,"modules/history":sA,"modules/keyboard":im,"modules/uploader":uA,"modules/input":O5e,"modules/uiNode":P5e});class z5e extends yo{add(t,r){let n=0;if(r==="+1"||r==="-1"){const i=this.value(t)||0;n=r==="+1"?i+1:i-1}else typeof r=="number"&&(n=r);return n===0?(this.remove(t),!0):super.add(t,n.toString())}canAdd(t,r){return super.canAdd(t,r)||super.canAdd(t,parseInt(r,10))}value(t){return parseInt(super.value(t),10)||void 0}}const U5e=new z5e("indent","ql-indent",{scope:He.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class cb extends $r{}Fe(cb,"blotName","blockquote"),Fe(cb,"tagName","blockquote");class db extends $r{static formats(t){return this.tagName.indexOf(t.tagName)+1}}Fe(db,"blotName","header"),Fe(db,"tagName",["H1","H2","H3","H4","H5","H6"]);class Xc extends xs{}Xc.blotName="list-container",Xc.tagName="OL";class Lc extends $r{static create(t){const r=super.create();return r.setAttribute("data-list",t),r}static formats(t){return t.getAttribute("data-list")||void 0}static register(){xe.register(Xc)}constructor(t,r){super(t,r);const n=r.ownerDocument.createElement("span"),i=o=>{if(!t.isEnabled())return;const s=this.statics.formats(r,t);s==="checked"?(this.format("list","unchecked"),o.preventDefault()):s==="unchecked"&&(this.format("list","checked"),o.preventDefault())};n.addEventListener("mousedown",i),n.addEventListener("touchstart",i),this.attachUI(n)}format(t,r){t===this.statics.blotName&&r?this.domNode.setAttribute("data-list",r):super.format(t,r)}}Lc.blotName="list",Lc.tagName="LI",Xc.allowedChildren=[Lc],Lc.requiredContainer=Xc;class ed extends ti{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Fe(ed,"blotName","bold"),Fe(ed,"tagName",["STRONG","B"]);class fb extends ed{}Fe(fb,"blotName","italic"),Fe(fb,"tagName",["EM","I"]);class Oa extends ti{static create(t){const r=super.create(t);return r.setAttribute("href",this.sanitize(t)),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}static formats(t){return t.getAttribute("href")}static sanitize(t){return cA(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,r){t!==this.statics.blotName||!r?super.format(t,r):this.domNode.setAttribute("href",this.constructor.sanitize(r))}}Fe(Oa,"blotName","link"),Fe(Oa,"tagName","A"),Fe(Oa,"SANITIZED_URL","about:blank"),Fe(Oa,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function cA(e,t){const r=document.createElement("a");r.href=e;const n=r.href.slice(0,r.href.indexOf(":"));return t.indexOf(n)>-1}class pb extends ti{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}Fe(pb,"blotName","script"),Fe(pb,"tagName",["SUB","SUP"]);class mb extends ed{}Fe(mb,"blotName","strike"),Fe(mb,"tagName",["S","STRIKE"]);class hb extends ti{}Fe(hb,"blotName","underline"),Fe(hb,"tagName","U");class lm extends J0{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const r=super.create(t);return typeof t=="string"&&(window.katex.render(t,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",t)),r}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}Fe(lm,"blotName","formula"),Fe(lm,"className","ql-formula"),Fe(lm,"tagName","SPAN");const dA=["alt","height","width"];class gb extends Mn{static create(t){const r=super.create(t);return typeof t=="string"&&r.setAttribute("src",this.sanitize(t)),r}static formats(t){return dA.reduce((r,n)=>(t.hasAttribute(n)&&(r[n]=t.getAttribute(n)),r),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return cA(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,r){dA.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):super.format(t,r)}}Fe(gb,"blotName","image"),Fe(gb,"tagName","IMG");const fA=["height","width"];class um extends Zn{static create(t){const r=super.create(t);return r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen","true"),r.setAttribute("src",this.sanitize(t)),r}static formats(t){return fA.reduce((r,n)=>(t.hasAttribute(n)&&(r[n]=t.getAttribute(n)),r),{})}static sanitize(t){return Oa.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,r){fA.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):super.format(t,r)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}Fe(um,"blotName","video"),Fe(um,"className","ql-video"),Fe(um,"tagName","IFRAME");const td=new yo("code-token","hljs",{scope:He.INLINE});class Ui extends ti{static formats(t,r){for(;t!=null&&t!==r.domNode;){if(t.classList&&t.classList.contains(Wr.className))return super.formats(t,r);t=t.parentNode}}constructor(t,r,n){super(t,r,n),td.add(this.domNode,n)}format(t,r){t!==Ui.blotName?super.format(t,r):r?td.add(this.domNode,r):(td.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),td.value(this.domNode)||this.unwrap()}}Ui.blotName="code-token",Ui.className="ql-token";class Yn extends Wr{static create(t){const r=super.create(t);return typeof t=="string"&&r.setAttribute("data-language",t),r}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,r){t===this.statics.blotName&&r?this.domNode.setAttribute("data-language",r):super.format(t,r)}replaceWith(t,r){return this.formatAt(0,this.length(),Ui.blotName,!1),super.replaceWith(t,r)}}class rd extends Cs{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,r){t===Yn.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(t,r)}))}formatAt(t,r,n,i){n===Yn.blotName&&(this.forceNext=!0),super.formatAt(t,r,n,i)}highlight(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const n=`${Array.from(this.domNode.childNodes).filter(o=>o!==this.uiNode).map(o=>o.textContent).join(`
|
|
5326
5326
|
`)}
|
|
5327
5327
|
`,i=Yn.formats(this.children.head.domNode);if(r||this.forceNext||this.cachedText!==n){if(n.trim().length>0||this.cachedText==null){const o=this.children.reduce((l,c)=>l.concat(T6(c,!1)),new Qe),s=t(n,i);o.diff(s).reduce((l,c)=>{let{retain:u,attributes:d}=c;return u?(d&&Object.keys(d).forEach(f=>{[Yn.blotName,Ui.blotName].includes(f)&&this.formatAt(l,u,f,d[f])}),l+u):l},0)}this.cachedText=n,this.forceNext=!1}}html(t,r){const[n]=this.children.find(t);return`<pre data-language="${n?Yn.formats(n.domNode):"plain"}">
|
|
5328
5328
|
${tm(this.code(t,r))}
|
|
5329
|
-
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const r=Yn.formats(this.children.head.domNode);r!==this.uiNode.value&&(this.uiNode.value=r)}}}rd.allowedChildren=[Yn],Yn.requiredContainer=rd,Yn.allowedChildren=[Ui,Wl,Co,xo];const
|
|
5329
|
+
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const r=Yn.formats(this.children.head.domNode);r!==this.uiNode.value&&(this.uiNode.value=r)}}}rd.allowedChildren=[Yn],Yn.requiredContainer=rd,Yn.allowedChildren=[Ui,Wl,Co,xo];const q5e=(e,t,r)=>{if(typeof e.versionString=="string"){const n=e.versionString.split(".")[0];if(parseInt(n,10)>=11)return e.highlight(r,{language:t}).value}return e.highlight(t,r).value};class pA extends Kn{static register(){xe.register(Ui,!0),xe.register(Yn,!0),xe.register(rd,!0)}constructor(t,r){if(super(t,r),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,i)=>{let{key:o}=i;return n[o]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(xe.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof rd))return;const r=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(n=>{let{key:i,label:o}=n;const s=r.ownerDocument.createElement("option");s.textContent=o,s.setAttribute("value",i),r.appendChild(s)}),r.addEventListener("change",()=>{t.format(Yn.blotName,r.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(r),t.children.head&&(r.value=Yn.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(xe.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(xe.sources.USER);const n=this.quill.getSelection();(t==null?this.quill.scroll.descendants(rd):[t]).forEach(i=>{i.highlight(this.highlightBlot,r)}),this.quill.update(xe.sources.SILENT),n!=null&&this.quill.setSelection(n,xe.sources.SILENT)}highlightBlot(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(r=this.languages[r]?r:"plain",r==="plain")return tm(t).split(`
|
|
5330
5330
|
`).reduce((i,o,s)=>(s!==0&&i.insert(`
|
|
5331
|
-
`,{[Wr.blotName]:r}),i.insert(o)),new Qe);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(Wr.className),n.innerHTML=
|
|
5331
|
+
`,{[Wr.blotName]:r}),i.insert(o)),new Qe);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(Wr.className),n.innerHTML=q5e(this.options.hljs,r,t),sb(this.quill.scroll,n,[(i,o)=>{const s=td.value(i);return s?o.compose(new Qe().retain(o.length(),{[Ui.blotName]:s})):o}],[(i,o)=>i.data.split(`
|
|
5332
5332
|
`).reduce((s,l,c)=>(c!==0&&s.insert(`
|
|
5333
|
-
`,{[Wr.blotName]:r}),s.insert(l)),o)],new WeakMap)}}pA.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const sd=class sd extends $r{static create(t){const r=super.create();return t?r.setAttribute("data-row",t):r.setAttribute("data-row",vb()),r}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,r){t===sd.blotName&&r?this.domNode.setAttribute("data-row",r):super.format(t,r)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Fe(sd,"blotName","table"),Fe(sd,"tagName","TD");let ko=sd;class qi extends xs{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),r=this.children.tail.formats(),n=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===r.table&&t.table===n.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(r=>{if(r.next==null)return;const n=r.formats(),i=r.next.formats();if(n.table!==i.table){const o=this.splitAfter(r);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Fe(qi,"blotName","table-row"),Fe(qi,"tagName","TR");class ri extends xs{}Fe(ri,"blotName","table-body"),Fe(ri,"tagName","TBODY");class Jl extends xs{balanceCells(){const t=this.descendants(qi),r=t.reduce((n,i)=>Math.max(i.children.length,n),0);t.forEach(n=>{new Array(r-n.children.length).fill(0).forEach(()=>{let i;n.children.head!=null&&(i=ko.formats(n.children.head.domNode));const o=this.scroll.create(ko.blotName,i);n.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(r=>r.children.at(t))}deleteColumn(t){const[r]=this.descendant(ri);r==null||r.children.head==null||r.children.forEach(n=>{const i=n.children.at(t);i==null||i.remove()})}insertColumn(t){const[r]=this.descendant(ri);r==null||r.children.head==null||r.children.forEach(n=>{const i=n.children.at(t),o=ko.formats(n.children.head.domNode),s=this.scroll.create(ko.blotName,o);n.insertBefore(s,i)})}insertRow(t){const[r]=this.descendant(ri);if(r==null||r.children.head==null)return;const n=vb(),i=this.scroll.create(qi.blotName);r.children.head.children.forEach(()=>{const s=this.scroll.create(ko.blotName,n);i.appendChild(s)});const o=r.children.at(t);r.insertBefore(i,o)}rows(){const t=this.children.head;return t==null?[]:t.children.map(r=>r)}}Fe(Jl,"blotName","table-container"),Fe(Jl,"tagName","TABLE"),Jl.allowedChildren=[ri],ri.requiredContainer=Jl,ri.allowedChildren=[qi],qi.requiredContainer=ri,qi.allowedChildren=[ko],ko.requiredContainer=qi;function vb(){return`row-${Math.random().toString(36).slice(2,6)}`}class
|
|
5334
|
-
`).join("");return o.insert(s,{table:vb()})},new Qe().retain(n.index));this.quill.updateContents(i,xe.sources.USER),this.quill.setSelection(n.index,xe.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(xe.events.SCROLL_OPTIMIZE,t=>{t.some(r=>["TD","TR","TBODY","TABLE"].includes(r.target.tagName)?(this.quill.once(xe.events.TEXT_CHANGE,(n,i,o)=>{o===xe.sources.USER&&this.balanceTables()}),!0):!1)})}}const mA=Pi("quill:toolbar");class bb extends Kn{constructor(t,r){var n,i;if(super(t,r),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),Q5e(o,this.options.container),(i=(n=t.container)==null?void 0:n.parentNode)==null||i.insertBefore(o,t.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){mA.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var l;const s=(l=this.options.handlers)==null?void 0:l[o];s&&this.addHandler(o,s)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(xe.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(t,r){this.handlers[t]=r}attach(t){let r=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!r)return;if(r=r.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[r]==null&&this.quill.scroll.query(r)==null){mA.warn("ignoring attaching to nonexistent format",r,t);return}const n=t.tagName==="SELECT"?"change":"click";t.addEventListener(n,i=>{let o;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const l=t.options[t.selectedIndex];l.hasAttribute("selected")?o=!1:o=l.value||!1}else t.classList.contains("ql-active")?o=!1:o=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[r]!=null)this.handlers[r].call(this,o);else if(this.quill.scroll.query(r).prototype instanceof Mn){if(o=prompt(`Enter ${r}`),!o)return;this.quill.updateContents(new Qe().retain(s.index).delete(s.length).insert({[r]:o}),xe.sources.USER)}else this.quill.format(r,o,xe.sources.USER);this.update(s)}),this.controls.push([r,t])}update(t){const r=t==null?{}:this.quill.getFormat(t);this.controls.forEach(n=>{const[i,o]=n;if(o.tagName==="SELECT"){let s=null;if(t==null)s=null;else if(r[i]==null)s=o.querySelector("option[selected]");else if(!Array.isArray(r[i])){let l=r[i];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),s=o.querySelector(`option[value="${l}"]`)}s==null?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(t==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const s=r[i],l=s===o.getAttribute("value")||s!=null&&s.toString()===o.getAttribute("value")||s==null&&!o.getAttribute("value");o.classList.toggle("ql-active",l),o.setAttribute("aria-pressed",l.toString())}else{const s=r[i]!=null;o.classList.toggle("ql-active",s),o.setAttribute("aria-pressed",s.toString())}})}}bb.DEFAULTS={};function hA(e,t,r){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${t}`),n.setAttribute("aria-pressed","false"),r!=null?(n.value=r,n.setAttribute("aria-label",`${t}: ${r}`)):n.setAttribute("aria-label",t),e.appendChild(n)}function Q5e(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(r=>{const n=document.createElement("span");n.classList.add("ql-formats"),r.forEach(i=>{if(typeof i=="string")hA(n,i);else{const o=Object.keys(i)[0],s=i[o];Array.isArray(s)?H5e(n,o,s):hA(n,o,s)}}),e.appendChild(n)})}function H5e(e,t,r){const n=document.createElement("select");n.classList.add(`ql-${t}`),r.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),n.appendChild(o)}),e.appendChild(n)}bb.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(r=>{this.quill.scroll.query(r,He.INLINE)!=null&&this.quill.format(r,!1,xe.sources.USER)})}else this.quill.removeFormat(e.index,e.length,xe.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",xe.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,xe.sources.USER),this.quill.format("direction",e,xe.sources.USER)},indent(e){const t=this.quill.getSelection(),r=this.quill.getFormat(t),n=parseInt(r.indent||0,10);if(e==="+1"||e==="-1"){let i=e==="+1"?1:-1;r.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,xe.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,xe.sources.USER)},list(e){const t=this.quill.getSelection(),r=this.quill.getFormat(t);e==="check"?r.list==="checked"||r.list==="unchecked"?this.quill.format("list",!1,xe.sources.USER):this.quill.format("list","unchecked",xe.sources.USER):this.quill.format("list",e,xe.sources.USER)}}};const W5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Z5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',G5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',K5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Y5e='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',J5e='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',X5e='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',L5e='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',gA='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',eEe='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',tEe='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rEe='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',nEe='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',oEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',iEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',aEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',sEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',lEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',uEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',cEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',dEe='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',fEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',pEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',mEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',hEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',gEe='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',vEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',bEe='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',yEe='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',wEe='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',xEe='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',CEe='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',SEe='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',nd={align:{"":W5e,center:Z5e,right:G5e,justify:K5e},background:Y5e,blockquote:J5e,bold:X5e,clean:L5e,code:gA,"code-block":gA,color:eEe,direction:{"":tEe,rtl:rEe},formula:nEe,header:{1:oEe,2:iEe,3:aEe,4:sEe,5:lEe,6:uEe},italic:cEe,image:dEe,indent:{"+1":fEe,"-1":pEe},link:mEe,list:{bullet:hEe,check:gEe,ordered:vEe},script:{sub:bEe,super:yEe},strike:wEe,table:xEe,underline:CEe,video:SEe},kEe='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let vA=0;function bA(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class cm{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",r=>{switch(r.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),bA(this.label,"aria-expanded"),bA(this.options,"aria-hidden")}buildItem(t){const r=document.createElement("span");r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item");const n=t.getAttribute("value");return n&&r.setAttribute("data-value",n),t.textContent&&r.setAttribute("data-label",t.textContent),r.addEventListener("click",()=>{this.selectItem(r,!0)}),r.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(r,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),r}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=kEe,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${vA}`,vA+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(r=>{const n=this.buildItem(r);t.appendChild(n),r.selected===!0&&this.selectItem(n)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");t!==n&&(n==null||n.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),r&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const r=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}class yA extends cm{constructor(t,r){super(t),this.label.innerHTML=r,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(t){const r=super.buildItem(t);return r.style.backgroundColor=t.getAttribute("value")||"",r}selectItem(t,r){super.selectItem(t,r);const n=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class wA extends cm{constructor(t,r){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=r[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,r){super.selectItem(t,r);const n=t||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const EEe=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};class xA{constructor(t,r){this.quill=t,this.boundsContainer=r||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,EEe(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const r=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${r}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let s=0;if(o.right>i.right&&(s=i.right-o.right,this.root.style.left=`${r+s}px`),o.left<i.left&&(s=i.left-o.left,this.root.style.left=`${r+s}px`),o.bottom>i.bottom){const l=o.bottom-o.top,c=t.bottom-t.top+l;this.root.style.top=`${n-c}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const NEe=[!1,"center","right","justify"],BEe=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],AEe=[!1,"serif","monospace"],DEe=["1","2","3",!1],MEe=["small",!1,"large","huge"];class od extends Gl{constructor(t,r){super(t,r);const n=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(i.target)||o.close()})};t.emitter.listenDOM("click",document.body,n)}addModule(t){const r=super.addModule(t);return t==="toolbar"&&this.extendToolbar(r),r}buildButtons(t,r){Array.from(t).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),r[i]!=null))if(i==="direction")n.innerHTML=r[i][""]+r[i].rtl;else if(typeof r[i]=="string")n.innerHTML=r[i];else{const o=n.value||"";o!=null&&r[i][o]&&(n.innerHTML=r[i][o])}})})}buildPickers(t,r){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&id(i,NEe),typeof r.align=="object"))return new wA(i,r.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&id(i,BEe,o==="background"?"#ffffff":"#000000"),new yA(i,r[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?id(i,AEe):i.classList.contains("ql-header")?id(i,DEe):i.classList.contains("ql-size")&&id(i,MEe)),new cm(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Ve.events.EDITOR_CHANGE,n)}}od.DEFAULTS=Da({},Gl.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class CA extends xA{constructor(t,r){super(t,r),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;r!=null?this.textbox.value=r:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:r}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Ve.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Ve.sources.USER)),this.quill.root.scrollTop=r;break}case"video":t=TEe(t);case"formula":{if(!t)break;const r=this.quill.getSelection(!0);if(r!=null){const n=r.index+r.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,Ve.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Ve.sources.USER),this.quill.setSelection(n+2,Ve.sources.USER)}break}}this.textbox.value="",this.hide()}}function TEe(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function id(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(n=>{const i=document.createElement("option");n===r?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),e.appendChild(i)})}const FEe=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class SA extends CA{constructor(t,r){super(t,r),this.quill.on(Ve.events.EDITOR_CHANGE,(n,i,o,s)=>{if(n===Ve.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&s===Ve.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const l=this.quill.getLines(i.index,i.length);if(l.length===1){const c=this.quill.getBounds(i);c!=null&&this.position(c)}else{const c=l[l.length-1],u=this.quill.getIndex(c),d=Math.min(c.length()-1,i.index+i.length-u),f=this.quill.getBounds(new Ta(u,d));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Ve.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const r=this.quill.getBounds(t);r!=null&&this.position(r)}},1)})}cancel(){this.show()}position(t){const r=super.position(t),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",r!==0&&(n.style.marginLeft=`${-1*r-n.offsetWidth/2}px`),r}}Fe(SA,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class kA extends od{constructor(t,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=FEe),super(t,r),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new SA(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),nd),this.buildPickers(t.container.querySelectorAll("select"),nd))}}kA.DEFAULTS=Da({},od.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,xe.sources.USER)}}}}});const OEe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class EA extends CA{constructor(){super(...arguments);Fe(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",r=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),r.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",r=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,Ve.sources.USER),delete this.linkRange}r.preventDefault(),this.hide()}),this.quill.on(Ve.events.SELECTION_CHANGE,(r,n,i)=>{if(r!=null){if(r.length===0&&i===Ve.sources.USER){const[o,s]=this.quill.scroll.descendant(Oa,r.index);if(o!=null){this.linkRange=new Ta(r.index-s,o.length());const l=Oa.formats(o.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();const c=this.quill.getBounds(this.linkRange);c!=null&&this.position(c);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Fe(EA,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class NA extends od{constructor(t,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=OEe),super(t,r),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),nd),this.buildPickers(t.container.querySelectorAll("select"),nd),this.tooltip=new EA(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(r,n)=>{t.handlers.link.call(t,!n.format.link)}))}}NA.DEFAULTS=Da({},od.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let r=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(r)&&r.indexOf("mailto:")!==0&&(r=`mailto:${r}`);const{tooltip:n}=this.quill.theme;n.edit("link",r)}else this.quill.format("link",!1,xe.sources.USER)}}}}}),xe.register({"attributors/attribute/direction":W6,"attributors/class/align":j6,"attributors/class/background":J3e,"attributors/class/color":Y3e,"attributors/class/direction":Z6,"attributors/class/font":Y6,"attributors/class/size":X6,"attributors/style/align":Q6,"attributors/style/background":rb,"attributors/style/color":tb,"attributors/style/direction":G6,"attributors/style/font":J6,"attributors/style/size":L6},!0),xe.register({"formats/align":j6,"formats/direction":Z6,"formats/indent":q5e,"formats/background":rb,"formats/color":tb,"formats/font":Y6,"formats/size":X6,"formats/blockquote":cb,"formats/code-block":Wr,"formats/header":db,"formats/list":Lc,"formats/bold":ed,"formats/code":nb,"formats/italic":fb,"formats/link":Oa,"formats/script":pb,"formats/strike":mb,"formats/underline":hb,"formats/formula":lm,"formats/image":gb,"formats/video":um,"modules/syntax":pA,"modules/table":j5e,"modules/toolbar":bb,"themes/bubble":kA,"themes/snow":NA,"ui/icons":nd,"ui/picker":cm,"ui/icon-picker":wA,"ui/color-picker":yA,"ui/tooltip":xA},!0);const IEe=nn.AttributeMap,_Ee=nn.Op,$Ee=nn.OpIterator,REe=Object.freeze(Object.defineProperty({__proto__:null,AttributeMap:IEe,Delta:Qe,Module:Kn,Op:_Ee,OpIterator:$Ee,Parchment:y6,Range:Ta,default:xe},Symbol.toStringTag,{value:"Module"}));Ct.SimulationVuer=eCe,Object.defineProperty(Ct,Symbol.toStringTag,{value:"Module"})});
|
|
5333
|
+
`,{[Wr.blotName]:r}),s.insert(l)),o)],new WeakMap)}}pA.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const sd=class sd extends $r{static create(t){const r=super.create();return t?r.setAttribute("data-row",t):r.setAttribute("data-row",vb()),r}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,r){t===sd.blotName&&r?this.domNode.setAttribute("data-row",r):super.format(t,r)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Fe(sd,"blotName","table"),Fe(sd,"tagName","TD");let ko=sd;class qi extends xs{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),r=this.children.tail.formats(),n=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===r.table&&t.table===n.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(r=>{if(r.next==null)return;const n=r.formats(),i=r.next.formats();if(n.table!==i.table){const o=this.splitAfter(r);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Fe(qi,"blotName","table-row"),Fe(qi,"tagName","TR");class ri extends xs{}Fe(ri,"blotName","table-body"),Fe(ri,"tagName","TBODY");class Jl extends xs{balanceCells(){const t=this.descendants(qi),r=t.reduce((n,i)=>Math.max(i.children.length,n),0);t.forEach(n=>{new Array(r-n.children.length).fill(0).forEach(()=>{let i;n.children.head!=null&&(i=ko.formats(n.children.head.domNode));const o=this.scroll.create(ko.blotName,i);n.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(r=>r.children.at(t))}deleteColumn(t){const[r]=this.descendant(ri);r==null||r.children.head==null||r.children.forEach(n=>{const i=n.children.at(t);i==null||i.remove()})}insertColumn(t){const[r]=this.descendant(ri);r==null||r.children.head==null||r.children.forEach(n=>{const i=n.children.at(t),o=ko.formats(n.children.head.domNode),s=this.scroll.create(ko.blotName,o);n.insertBefore(s,i)})}insertRow(t){const[r]=this.descendant(ri);if(r==null||r.children.head==null)return;const n=vb(),i=this.scroll.create(qi.blotName);r.children.head.children.forEach(()=>{const s=this.scroll.create(ko.blotName,n);i.appendChild(s)});const o=r.children.at(t);r.insertBefore(i,o)}rows(){const t=this.children.head;return t==null?[]:t.children.map(r=>r)}}Fe(Jl,"blotName","table-container"),Fe(Jl,"tagName","TABLE"),Jl.allowedChildren=[ri],ri.requiredContainer=Jl,ri.allowedChildren=[qi],qi.requiredContainer=ri,qi.allowedChildren=[ko],ko.requiredContainer=qi;function vb(){return`row-${Math.random().toString(36).slice(2,6)}`}class V5e extends Kn{static register(){xe.register(ko),xe.register(qi),xe.register(ri),xe.register(Jl)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Jl).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,r]=this.getTable();r!=null&&(t.deleteColumn(r.cellOffset()),this.quill.update(xe.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(xe.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const r=t.offset();t.remove(),this.quill.update(xe.sources.USER),this.quill.setSelection(r,xe.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[r,n]=this.quill.getLine(t.index);if(r==null||r.statics.blotName!==ko.blotName)return[null,null,null,-1];const i=r.parent;return[i.parent.parent,i,r,n]}insertColumn(t){const r=this.quill.getSelection();if(!r)return;const[n,i,o]=this.getTable(r);if(o==null)return;const s=o.cellOffset();n.insertColumn(s+t),this.quill.update(xe.sources.USER);let l=i.rowOffset();t===0&&(l+=1),this.quill.setSelection(r.index+l,r.length,xe.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const r=this.quill.getSelection();if(!r)return;const[n,i,o]=this.getTable(r);if(o==null)return;const s=i.rowOffset();n.insertRow(s+t),this.quill.update(xe.sources.USER),t>0?this.quill.setSelection(r,xe.sources.SILENT):this.quill.setSelection(r.index+i.children.length,r.length,xe.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,r){const n=this.quill.getSelection();if(n==null)return;const i=new Array(t).fill(0).reduce(o=>{const s=new Array(r).fill(`
|
|
5334
|
+
`).join("");return o.insert(s,{table:vb()})},new Qe().retain(n.index));this.quill.updateContents(i,xe.sources.USER),this.quill.setSelection(n.index,xe.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(xe.events.SCROLL_OPTIMIZE,t=>{t.some(r=>["TD","TR","TBODY","TABLE"].includes(r.target.tagName)?(this.quill.once(xe.events.TEXT_CHANGE,(n,i,o)=>{o===xe.sources.USER&&this.balanceTables()}),!0):!1)})}}const mA=Pi("quill:toolbar");class bb extends Kn{constructor(t,r){var n,i;if(super(t,r),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),j5e(o,this.options.container),(i=(n=t.container)==null?void 0:n.parentNode)==null||i.insertBefore(o,t.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){mA.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var l;const s=(l=this.options.handlers)==null?void 0:l[o];s&&this.addHandler(o,s)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(xe.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(t,r){this.handlers[t]=r}attach(t){let r=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!r)return;if(r=r.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[r]==null&&this.quill.scroll.query(r)==null){mA.warn("ignoring attaching to nonexistent format",r,t);return}const n=t.tagName==="SELECT"?"change":"click";t.addEventListener(n,i=>{let o;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const l=t.options[t.selectedIndex];l.hasAttribute("selected")?o=!1:o=l.value||!1}else t.classList.contains("ql-active")?o=!1:o=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[r]!=null)this.handlers[r].call(this,o);else if(this.quill.scroll.query(r).prototype instanceof Mn){if(o=prompt(`Enter ${r}`),!o)return;this.quill.updateContents(new Qe().retain(s.index).delete(s.length).insert({[r]:o}),xe.sources.USER)}else this.quill.format(r,o,xe.sources.USER);this.update(s)}),this.controls.push([r,t])}update(t){const r=t==null?{}:this.quill.getFormat(t);this.controls.forEach(n=>{const[i,o]=n;if(o.tagName==="SELECT"){let s=null;if(t==null)s=null;else if(r[i]==null)s=o.querySelector("option[selected]");else if(!Array.isArray(r[i])){let l=r[i];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),s=o.querySelector(`option[value="${l}"]`)}s==null?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(t==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const s=r[i],l=s===o.getAttribute("value")||s!=null&&s.toString()===o.getAttribute("value")||s==null&&!o.getAttribute("value");o.classList.toggle("ql-active",l),o.setAttribute("aria-pressed",l.toString())}else{const s=r[i]!=null;o.classList.toggle("ql-active",s),o.setAttribute("aria-pressed",s.toString())}})}}bb.DEFAULTS={};function hA(e,t,r){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${t}`),n.setAttribute("aria-pressed","false"),r!=null?(n.value=r,n.setAttribute("aria-label",`${t}: ${r}`)):n.setAttribute("aria-label",t),e.appendChild(n)}function j5e(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(r=>{const n=document.createElement("span");n.classList.add("ql-formats"),r.forEach(i=>{if(typeof i=="string")hA(n,i);else{const o=Object.keys(i)[0],s=i[o];Array.isArray(s)?Q5e(n,o,s):hA(n,o,s)}}),e.appendChild(n)})}function Q5e(e,t,r){const n=document.createElement("select");n.classList.add(`ql-${t}`),r.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),n.appendChild(o)}),e.appendChild(n)}bb.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(r=>{this.quill.scroll.query(r,He.INLINE)!=null&&this.quill.format(r,!1,xe.sources.USER)})}else this.quill.removeFormat(e.index,e.length,xe.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",xe.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,xe.sources.USER),this.quill.format("direction",e,xe.sources.USER)},indent(e){const t=this.quill.getSelection(),r=this.quill.getFormat(t),n=parseInt(r.indent||0,10);if(e==="+1"||e==="-1"){let i=e==="+1"?1:-1;r.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,xe.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,xe.sources.USER)},list(e){const t=this.quill.getSelection(),r=this.quill.getFormat(t);e==="check"?r.list==="checked"||r.list==="unchecked"?this.quill.format("list",!1,xe.sources.USER):this.quill.format("list","unchecked",xe.sources.USER):this.quill.format("list",e,xe.sources.USER)}}};const H5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',W5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Z5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',G5e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',K5e='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Y5e='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',J5e='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',X5e='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',gA='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',L5e='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',eEe='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',tEe='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',rEe='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',nEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',oEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',iEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',aEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',sEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',lEe='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',uEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',cEe='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',dEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',fEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',pEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',mEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',hEe='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',gEe='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',vEe='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',bEe='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',yEe='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',wEe='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',xEe='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',CEe='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',nd={align:{"":H5e,center:W5e,right:Z5e,justify:G5e},background:K5e,blockquote:Y5e,bold:J5e,clean:X5e,code:gA,"code-block":gA,color:L5e,direction:{"":eEe,rtl:tEe},formula:rEe,header:{1:nEe,2:oEe,3:iEe,4:aEe,5:sEe,6:lEe},italic:uEe,image:cEe,indent:{"+1":dEe,"-1":fEe},link:pEe,list:{bullet:mEe,check:hEe,ordered:gEe},script:{sub:vEe,super:bEe},strike:yEe,table:wEe,underline:xEe,video:CEe},SEe='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let vA=0;function bA(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class cm{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",r=>{switch(r.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),bA(this.label,"aria-expanded"),bA(this.options,"aria-hidden")}buildItem(t){const r=document.createElement("span");r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item");const n=t.getAttribute("value");return n&&r.setAttribute("data-value",n),t.textContent&&r.setAttribute("data-label",t.textContent),r.addEventListener("click",()=>{this.selectItem(r,!0)}),r.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(r,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),r}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=SEe,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${vA}`,vA+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(r=>{const n=this.buildItem(r);t.appendChild(n),r.selected===!0&&this.selectItem(n)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");t!==n&&(n==null||n.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),r&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const r=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}class yA extends cm{constructor(t,r){super(t),this.label.innerHTML=r,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(t){const r=super.buildItem(t);return r.style.backgroundColor=t.getAttribute("value")||"",r}selectItem(t,r){super.selectItem(t,r);const n=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class wA extends cm{constructor(t,r){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=r[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,r){super.selectItem(t,r);const n=t||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const kEe=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};class xA{constructor(t,r){this.quill=t,this.boundsContainer=r||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,kEe(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const r=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${r}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let s=0;if(o.right>i.right&&(s=i.right-o.right,this.root.style.left=`${r+s}px`),o.left<i.left&&(s=i.left-o.left,this.root.style.left=`${r+s}px`),o.bottom>i.bottom){const l=o.bottom-o.top,c=t.bottom-t.top+l;this.root.style.top=`${n-c}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const EEe=[!1,"center","right","justify"],NEe=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],BEe=[!1,"serif","monospace"],AEe=["1","2","3",!1],DEe=["small",!1,"large","huge"];class od extends Gl{constructor(t,r){super(t,r);const n=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(i.target)||o.close()})};t.emitter.listenDOM("click",document.body,n)}addModule(t){const r=super.addModule(t);return t==="toolbar"&&this.extendToolbar(r),r}buildButtons(t,r){Array.from(t).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),r[i]!=null))if(i==="direction")n.innerHTML=r[i][""]+r[i].rtl;else if(typeof r[i]=="string")n.innerHTML=r[i];else{const o=n.value||"";o!=null&&r[i][o]&&(n.innerHTML=r[i][o])}})})}buildPickers(t,r){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&id(i,EEe),typeof r.align=="object"))return new wA(i,r.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&id(i,NEe,o==="background"?"#ffffff":"#000000"),new yA(i,r[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?id(i,BEe):i.classList.contains("ql-header")?id(i,AEe):i.classList.contains("ql-size")&&id(i,DEe)),new cm(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Ve.events.EDITOR_CHANGE,n)}}od.DEFAULTS=Da({},Gl.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class CA extends xA{constructor(t,r){super(t,r),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;r!=null?this.textbox.value=r:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:r}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Ve.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Ve.sources.USER)),this.quill.root.scrollTop=r;break}case"video":t=MEe(t);case"formula":{if(!t)break;const r=this.quill.getSelection(!0);if(r!=null){const n=r.index+r.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,Ve.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Ve.sources.USER),this.quill.setSelection(n+2,Ve.sources.USER)}break}}this.textbox.value="",this.hide()}}function MEe(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function id(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(n=>{const i=document.createElement("option");n===r?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),e.appendChild(i)})}const TEe=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class SA extends CA{constructor(t,r){super(t,r),this.quill.on(Ve.events.EDITOR_CHANGE,(n,i,o,s)=>{if(n===Ve.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&s===Ve.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const l=this.quill.getLines(i.index,i.length);if(l.length===1){const c=this.quill.getBounds(i);c!=null&&this.position(c)}else{const c=l[l.length-1],u=this.quill.getIndex(c),d=Math.min(c.length()-1,i.index+i.length-u),f=this.quill.getBounds(new Ta(u,d));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Ve.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const r=this.quill.getBounds(t);r!=null&&this.position(r)}},1)})}cancel(){this.show()}position(t){const r=super.position(t),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",r!==0&&(n.style.marginLeft=`${-1*r-n.offsetWidth/2}px`),r}}Fe(SA,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class kA extends od{constructor(t,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=TEe),super(t,r),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new SA(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),nd),this.buildPickers(t.container.querySelectorAll("select"),nd))}}kA.DEFAULTS=Da({},od.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,xe.sources.USER)}}}}});const FEe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class EA extends CA{constructor(){super(...arguments);Fe(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",r=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),r.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",r=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,Ve.sources.USER),delete this.linkRange}r.preventDefault(),this.hide()}),this.quill.on(Ve.events.SELECTION_CHANGE,(r,n,i)=>{if(r!=null){if(r.length===0&&i===Ve.sources.USER){const[o,s]=this.quill.scroll.descendant(Oa,r.index);if(o!=null){this.linkRange=new Ta(r.index-s,o.length());const l=Oa.formats(o.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();const c=this.quill.getBounds(this.linkRange);c!=null&&this.position(c);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Fe(EA,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class NA extends od{constructor(t,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=FEe),super(t,r),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),nd),this.buildPickers(t.container.querySelectorAll("select"),nd),this.tooltip=new EA(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(r,n)=>{t.handlers.link.call(t,!n.format.link)}))}}NA.DEFAULTS=Da({},od.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let r=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(r)&&r.indexOf("mailto:")!==0&&(r=`mailto:${r}`);const{tooltip:n}=this.quill.theme;n.edit("link",r)}else this.quill.format("link",!1,xe.sources.USER)}}}}}),xe.register({"attributors/attribute/direction":W6,"attributors/class/align":j6,"attributors/class/background":Y3e,"attributors/class/color":K3e,"attributors/class/direction":Z6,"attributors/class/font":Y6,"attributors/class/size":X6,"attributors/style/align":Q6,"attributors/style/background":rb,"attributors/style/color":tb,"attributors/style/direction":G6,"attributors/style/font":J6,"attributors/style/size":L6},!0),xe.register({"formats/align":j6,"formats/direction":Z6,"formats/indent":U5e,"formats/background":rb,"formats/color":tb,"formats/font":Y6,"formats/size":X6,"formats/blockquote":cb,"formats/code-block":Wr,"formats/header":db,"formats/list":Lc,"formats/bold":ed,"formats/code":nb,"formats/italic":fb,"formats/link":Oa,"formats/script":pb,"formats/strike":mb,"formats/underline":hb,"formats/formula":lm,"formats/image":gb,"formats/video":um,"modules/syntax":pA,"modules/table":V5e,"modules/toolbar":bb,"themes/bubble":kA,"themes/snow":NA,"ui/icons":nd,"ui/picker":cm,"ui/icon-picker":wA,"ui/color-picker":yA,"ui/tooltip":xA},!0);const OEe=nn.AttributeMap,IEe=nn.Op,_Ee=nn.OpIterator,$Ee=Object.freeze(Object.defineProperty({__proto__:null,AttributeMap:OEe,Delta:Qe,Module:Kn,Op:IEe,OpIterator:_Ee,Parchment:y6,Range:Ta,default:xe},Symbol.toStringTag,{value:"Module"}));Ct.SimulationVuer=L2e,Object.defineProperty(Ct,Symbol.toStringTag,{value:"Module"})});
|