vue-spear-tip 0.5.21 → 0.5.22

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.
Files changed (45) hide show
  1. package/dist/.vite/manifest.json +37 -37
  2. package/dist/{Button-BsyAkwI4.cjs → Button-BGHALdZm.cjs} +1 -1
  3. package/dist/{Button-D7Qnedx4.js → Button-CCvy-cy_.js} +1 -1
  4. package/dist/{CodeHighlight-CsL_-VPg.cjs → CodeHighlight-C35U05E2.cjs} +1 -1
  5. package/dist/{CodeHighlight-BR51DfYR.js → CodeHighlight-th8_Yxdg.js} +1 -1
  6. package/dist/{DateField-DPDpfhfy.js → DateField-2X17prqy.js} +2 -2
  7. package/dist/{DateField-HT8ugca4.cjs → DateField-CqvX2C4r.cjs} +1 -1
  8. package/dist/{FieldComponent.vue_vue_type_script_lang-x1KgzKHr.cjs → FieldComponent.vue_vue_type_script_lang-BsagC47A.cjs} +1 -1
  9. package/dist/{FieldComponent.vue_vue_type_script_lang-BYq38Had.js → FieldComponent.vue_vue_type_script_lang-doAG-SHI.js} +1 -1
  10. package/dist/{FilesArea-DkQyEtk9.cjs → FilesArea-BJOZroeG.cjs} +1 -1
  11. package/dist/{FilesArea-CcXoi5UY.js → FilesArea-BwyHkqOV.js} +2 -2
  12. package/dist/{Scrollbar-Dr76VrNq.js → Scrollbar-BNrJnrNd.js} +1 -1
  13. package/dist/{Scrollbar-CMit0yAX.cjs → Scrollbar-Nh8PrA7U.cjs} +1 -1
  14. package/dist/{SelectField-DmBcTq0Y.cjs → SelectField-B12PuiuH.cjs} +2 -2
  15. package/dist/{SelectField-XBspwBC6.js → SelectField-Dc7OzO0a.js} +11 -11
  16. package/dist/{StringField-DDG5_e5O.js → StringField-BReWU9a3.js} +2 -2
  17. package/dist/{StringField-DO9JogeG.cjs → StringField-CFWsCaBO.cjs} +1 -1
  18. package/dist/{SwitchField-BtwwuiLa.cjs → SwitchField-DEFP2JIL.cjs} +1 -1
  19. package/dist/{SwitchField-B1fRr692.js → SwitchField-gG22KtSx.js} +2 -2
  20. package/dist/{Tabs-DFlsXjJD.cjs → Tabs-DA-hMEnD.cjs} +1 -1
  21. package/dist/{Tabs-DR_tkoGS.js → Tabs-DWHQAU96.js} +1 -1
  22. package/dist/{TextField-Dl0J6VOU.js → TextField-HMJ9gBFi.js} +2 -2
  23. package/dist/{TextField-Brbqd4g1.cjs → TextField-xYgH3sbg.cjs} +1 -1
  24. package/dist/{index-BbcNgwWy.cjs → index-OLIPwsTz.cjs} +2 -2
  25. package/dist/{index-BfGl0dSS.js → index-SCGYUD41.js} +473 -467
  26. package/dist/replaceable/FieldComponent.vue +4 -0
  27. package/dist/vue-spear-tip.cjs.js +1 -1
  28. package/dist/vue-spear-tip.es.js +1 -1
  29. package/docs/index.html +1 -1
  30. package/docs/static/{Button-DGqZ9zCY.js → Button-BChbxctm.js} +1 -1
  31. package/docs/static/{CodeHighlight-DRj80VIM.js → CodeHighlight-BIr_DhoA.js} +1 -1
  32. package/docs/static/{DateField-C6opq1eQ.js → DateField-BWQfUdXQ.js} +1 -1
  33. package/docs/static/{FieldComponent.vue_vue_type_script_lang-DO-YwttE.js → FieldComponent.vue_vue_type_script_lang-BQ3HqhNB.js} +1 -1
  34. package/docs/static/{FilesArea-CsmriGY9.js → FilesArea-CtfpjC2W.js} +1 -1
  35. package/docs/static/{NoSymbolIcon-DQdB4x0O.js → NoSymbolIcon-BCd2LQDd.js} +1 -1
  36. package/docs/static/{Scrollbar-Bu-XpWpS.js → Scrollbar-BsPNzhdW.js} +1 -1
  37. package/docs/static/{SelectField-BdlLyWlb.js → SelectField-CytEKVed.js} +2 -2
  38. package/docs/static/{StringField-Cltn4NHE.js → StringField-BWDIGven.js} +1 -1
  39. package/docs/static/{SwitchField-DSV32Cmi.js → SwitchField-CBp0C5l7.js} +1 -1
  40. package/docs/static/{Tabs-NGejgxPX.js → Tabs-BRAn2Nwi.js} +1 -1
  41. package/docs/static/{TextField-DscA-sQf.js → TextField-BPSVsCNm.js} +1 -1
  42. package/docs/static/index-C0632Xro.js +2 -0
  43. package/docs/static/{main-DSxgLdL7.js → main-DiGis_dK.js} +8 -8
  44. package/package.json +1 -1
  45. package/docs/static/index-C7IOCZuw.js +0 -2
@@ -1,7 +1,7 @@
1
1
  var Ct = Object.defineProperty;
2
2
  var r = (t, e) => Ct(t, "name", { value: e, configurable: !0 });
3
- import { P as J, W as Y, V as kt } from "./index-BfGl0dSS.js";
4
- import { F as Vt } from "./FieldComponent.vue_vue_type_script_lang-BYq38Had.js";
3
+ import { P as J, W as Y, V as kt } from "./index-SCGYUD41.js";
4
+ import { F as Vt } from "./FieldComponent.vue_vue_type_script_lang-doAG-SHI.js";
5
5
  import { createElementBlock as Lt, openBlock as st, normalizeClass as Pt, createElementVNode as jt, createBlock as pt, createCommentVNode as Ft, resolveDynamicComponent as ft, withCtx as mt, createTextVNode as vt, toDisplayString as P } from "vue";
6
6
  import { _ as Rt } from "./_plugin-vue_export-helper-B9nE8o7z.js";
7
7
  var yt = "​";
@@ -1842,18 +1842,18 @@ let M = (U = class extends Vt {
1842
1842
  onViewPortResize() {
1843
1843
  this.setTags();
1844
1844
  }
1845
- setTags() {
1845
+ setTags(e) {
1846
1846
  this.beforeUpdate(), this.nextTick(() => {
1847
1847
  if (this.tagify?.removeAllTags?.(), this.mode == "select") {
1848
- const e = this.itemsInner.find((i) => (i?.key === 0 ? i?.key : i?.key || i?.value) === (this.inputValue || this.modelValue))?.value ?? null;
1849
- (e || e === 0) && (this.isFirstValueSet = !0, this.value = e, this.tagify?.addTags(this.value ?? ""));
1848
+ const i = this.itemsInner.find((s) => (s?.key === 0 ? s?.key : s?.key || s?.value) === (e ?? (this.inputValue || this.modelValue)))?.value ?? null;
1849
+ (i || i === 0) && (this.isFirstValueSet = !0, this.value = i, this.tagify?.addTags(this.value ?? ""));
1850
1850
  } else if (this.mode == "multi") {
1851
- const e = this.inputValue || this.modelValue;
1852
- Array.isArray(e) && (this.isFirstValueSet = !0, this.value = JSON.parse(JSON.stringify(this.itemsInner))?.filter((i) => e.includes(i?.key)), this.tagify?.addTags(this.value ?? ""));
1851
+ const i = e ?? (this.inputValue || this.modelValue);
1852
+ Array.isArray(i) && (this.isFirstValueSet = !0, this.value = JSON.parse(JSON.stringify(this.itemsInner))?.filter((s) => i.includes(s?.key)), this.tagify?.addTags(this.value ?? ""));
1853
1853
  } else if (this.mode == "tags") {
1854
- const e = this.inputValue || this.modelValue;
1855
- Array.isArray(e) && (this.isFirstValueSet = !0, this.value = JSON.parse(JSON.stringify(this.itemsInner))?.filter(
1856
- (i) => e?.some((s) => (s?.key || s?.value) == (i?.key || i?.value))
1854
+ const i = e ?? (this.inputValue || this.modelValue);
1855
+ Array.isArray(i) && (this.isFirstValueSet = !0, this.value = JSON.parse(JSON.stringify(this.itemsInner))?.filter(
1856
+ (s) => i?.some((a) => (a?.key || a?.value) == (s?.key || s?.value))
1857
1857
  ), this.tagify?.addTags(this.value ?? ""));
1858
1858
  }
1859
1859
  });
@@ -1867,7 +1867,7 @@ let M = (U = class extends Vt {
1867
1867
  }
1868
1868
  modelValueWatch(e) {
1869
1869
  if (this.isIgnoreSetTags) return this.isIgnoreSetTags = !1;
1870
- this.nextTick(() => this.setTags(), 2);
1870
+ this.nextTick(() => this.setTags(e), 2);
1871
1871
  }
1872
1872
  disabledWatch(e) {
1873
1873
  this.tagify?.setDisabled?.(e), e && !this.value && (this.inputValue || this.modelValue) && (this.value = this.inputValue || this.modelValue) && this.nextTick(
@@ -1,7 +1,7 @@
1
1
  var Qt = Object.defineProperty;
2
2
  var g = (x, e) => Qt(x, "name", { value: e, configurable: !0 });
3
- import { P as ve, V as Jt } from "./index-BfGl0dSS.js";
4
- import { F as Xt } from "./FieldComponent.vue_vue_type_script_lang-BYq38Had.js";
3
+ import { P as ve, V as Jt } from "./index-SCGYUD41.js";
4
+ import { F as Xt } from "./FieldComponent.vue_vue_type_script_lang-doAG-SHI.js";
5
5
  import { r as ei } from "./NoSymbolIcon-aoAIVIx7.js";
6
6
  import { createElementBlock as _e, openBlock as be, createElementVNode as ge, resolveComponent as dt, normalizeClass as Fe, createBlock as Je, createCommentVNode as Ae, normalizeStyle as ze, renderSlot as $t, withKeys as Re, Fragment as ti, toDisplayString as mt, resolveDynamicComponent as ii, withCtx as ri, createTextVNode as ai } from "vue";
7
7
  import { _ as si } from "./_plugin-vue_export-helper-B9nE8o7z.js";
@@ -1,4 +1,4 @@
1
- "use strict";var $t=Object.defineProperty;var g=(x,e)=>$t(x,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("./index-BbcNgwWy.cjs"),Ht=require("./FieldComponent.vue_vue_type_script_lang-x1KgzKHr.cjs"),Ut=require("./NoSymbolIcon-BoH28Kep.cjs"),K=require("vue"),Gt=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function zt(x,e){return K.openBlock(),K.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[K.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}g(zt,"render$2");function Kt(x,e){return K.openBlock(),K.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[K.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.502 6h7.128A3.375 3.375 0 0 1 18 9.375v9.375a3 3 0 0 0 3-3V6.108c0-1.505-1.125-2.811-2.664-2.94a48.972 48.972 0 0 0-.673-.05A3 3 0 0 0 15 1.5h-1.5a3 3 0 0 0-2.663 1.618c-.225.015-.45.032-.673.05C8.662 3.295 7.554 4.542 7.502 6ZM13.5 3A1.5 1.5 0 0 0 12 4.5h4.5A1.5 1.5 0 0 0 15 3h-1.5Z","clip-rule":"evenodd"}),K.createElementVNode("path",{"fill-rule":"evenodd",d:"M3 9.375C3 8.339 3.84 7.5 4.875 7.5h9.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625V9.375ZM6 12a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V12Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 15a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V15Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 18a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V18Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}g(Kt,"render$1");(function(x,e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t=e();for(var s in t)(typeof exports=="object"?exports:x)[s]=t[s]}})(typeof self<"u"?self:void 0,(function(){return(function(){var x={3976:function(f,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:g(function(){},"oncomplete"),onincomplete:g(function(){},"onincomplete"),oncleared:g(function(){},"oncleared"),repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:g(function(){},"onKeyDown"),onBeforeMask:null,onBeforePaste:g(function(k,C){return typeof C.onBeforeMask=="function"?C.onBeforeMask.call(this,k,C):k},"onBeforePaste"),onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:g(function(){},"onKeyValidation"),skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(f,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(f,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(k,C,F){if(F===void 0)return k.__data?k.__data[C]:null;k.__data=k.__data||{},k.__data[C]=F}},3776:function(f,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.Event=void 0,c.off=function(v,y){var n,p;return A(this[0])&&v&&(n=this[0].eventRegistry,p=this[0],v.split(" ").forEach((function(r){var l=T(r.split("."),2);(function(o,a){var i,u,h=[];if(o.length>0)if(y===void 0)for(i=0,u=n[o][a].length;i<u;i++)h.push({ev:o,namespace:a&&a.length>0?a:"global",handler:n[o][a][i]});else h.push({ev:o,namespace:a&&a.length>0?a:"global",handler:y});else if(a.length>0){for(var m in n)for(var _ in n[m])if(_===a)if(y===void 0)for(i=0,u=n[m][_].length;i<u;i++)h.push({ev:m,namespace:_,handler:n[m][_][i]});else h.push({ev:m,namespace:_,handler:y})}return h})(l[0],l[1]).forEach((function(o){var a=o.ev,i=o.handler;(function(u,h,m){if(u in n==1)if(p.removeEventListener?p.removeEventListener(u,m,!1):p.detachEvent&&p.detachEvent("on".concat(u),m),h==="global")for(var _ in n[u])n[u][_].splice(n[u][_].indexOf(m),1);else n[u][h].splice(n[u][h].indexOf(m),1)})(a,o.namespace,i)}))}))),this},c.on=function(v,y){if(A(this[0])){var n=this[0].eventRegistry,p=this[0];v.split(" ").forEach((function(r){var l=T(r.split("."),2),o=l[0],a=l[1];(function(i,u){p.addEventListener?p.addEventListener(i,y,!1):p.attachEvent&&p.attachEvent("on".concat(i),y),n[i]=n[i]||{},n[i][u]=n[i][u]||[],n[i][u].push(y)})(o,a===void 0?"global":a)}))}return this},c.trigger=function(v){var y=arguments;if(A(this[0]))for(var n=this[0].eventRegistry,p=this[0],r=typeof v=="string"?v.split(" "):[v.type],l=0;l<r.length;l++){var o=r[l].split("."),a=o[0],i=o[1]||"global";if(S!==void 0&&i==="global"){var u,h={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(S.createEvent){try{a==="input"?(h.inputType="insertText",u=new InputEvent(a,h)):u=new CustomEvent(a,h)}catch{(u=S.createEvent("CustomEvent")).initCustomEvent(a,h.bubbles,h.cancelable,h.detail)}v.type&&(0,F.default)(u,v),p.dispatchEvent(u)}else(u=S.createEventObject()).eventType=a,u.detail=arguments[1],v.type&&(0,F.default)(u,v),p.fireEvent("on"+u.eventType,u)}else if(n[a]!==void 0){arguments[0]=arguments[0].type?arguments[0]:E.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var m=n[a];(i==="global"?Object.values(m).flat():m[i]).forEach((function(_){return _.apply(p,y)}))}}return this};var C=U(k(9380)),F=U(k(600)),E=U(k(4963));function T(v,y){return(function(n){if(Array.isArray(n))return n})(v)||(function(n,p){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var l,o,a,i,u=[],h=!0,m=!1;try{if(a=(r=r.call(n)).next,p!==0)for(;!(h=(l=a.call(r)).done)&&(u.push(l.value),u.length!==p);h=!0);}catch(_){m=!0,o=_}finally{try{if(!h&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(m)throw o}}return u}})(v,y)||(function(n,p){if(n){if(typeof n=="string")return G(n,p);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G(n,p)}})(v,y)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ "use strict";var $t=Object.defineProperty;var g=(x,e)=>$t(x,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("./index-OLIPwsTz.cjs"),Ht=require("./FieldComponent.vue_vue_type_script_lang-BsagC47A.cjs"),Ut=require("./NoSymbolIcon-BoH28Kep.cjs"),K=require("vue"),Gt=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function zt(x,e){return K.openBlock(),K.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[K.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}g(zt,"render$2");function Kt(x,e){return K.openBlock(),K.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[K.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.502 6h7.128A3.375 3.375 0 0 1 18 9.375v9.375a3 3 0 0 0 3-3V6.108c0-1.505-1.125-2.811-2.664-2.94a48.972 48.972 0 0 0-.673-.05A3 3 0 0 0 15 1.5h-1.5a3 3 0 0 0-2.663 1.618c-.225.015-.45.032-.673.05C8.662 3.295 7.554 4.542 7.502 6ZM13.5 3A1.5 1.5 0 0 0 12 4.5h4.5A1.5 1.5 0 0 0 15 3h-1.5Z","clip-rule":"evenodd"}),K.createElementVNode("path",{"fill-rule":"evenodd",d:"M3 9.375C3 8.339 3.84 7.5 4.875 7.5h9.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625V9.375ZM6 12a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V12Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 15a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V15Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 18a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V18Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}g(Kt,"render$1");(function(x,e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t=e();for(var s in t)(typeof exports=="object"?exports:x)[s]=t[s]}})(typeof self<"u"?self:void 0,(function(){return(function(){var x={3976:function(f,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:g(function(){},"oncomplete"),onincomplete:g(function(){},"onincomplete"),oncleared:g(function(){},"oncleared"),repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:g(function(){},"onKeyDown"),onBeforeMask:null,onBeforePaste:g(function(k,C){return typeof C.onBeforeMask=="function"?C.onBeforeMask.call(this,k,C):k},"onBeforePaste"),onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:g(function(){},"onKeyValidation"),skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(f,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(f,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(k,C,F){if(F===void 0)return k.__data?k.__data[C]:null;k.__data=k.__data||{},k.__data[C]=F}},3776:function(f,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.Event=void 0,c.off=function(v,y){var n,p;return A(this[0])&&v&&(n=this[0].eventRegistry,p=this[0],v.split(" ").forEach((function(r){var l=T(r.split("."),2);(function(o,a){var i,u,h=[];if(o.length>0)if(y===void 0)for(i=0,u=n[o][a].length;i<u;i++)h.push({ev:o,namespace:a&&a.length>0?a:"global",handler:n[o][a][i]});else h.push({ev:o,namespace:a&&a.length>0?a:"global",handler:y});else if(a.length>0){for(var m in n)for(var _ in n[m])if(_===a)if(y===void 0)for(i=0,u=n[m][_].length;i<u;i++)h.push({ev:m,namespace:_,handler:n[m][_][i]});else h.push({ev:m,namespace:_,handler:y})}return h})(l[0],l[1]).forEach((function(o){var a=o.ev,i=o.handler;(function(u,h,m){if(u in n==1)if(p.removeEventListener?p.removeEventListener(u,m,!1):p.detachEvent&&p.detachEvent("on".concat(u),m),h==="global")for(var _ in n[u])n[u][_].splice(n[u][_].indexOf(m),1);else n[u][h].splice(n[u][h].indexOf(m),1)})(a,o.namespace,i)}))}))),this},c.on=function(v,y){if(A(this[0])){var n=this[0].eventRegistry,p=this[0];v.split(" ").forEach((function(r){var l=T(r.split("."),2),o=l[0],a=l[1];(function(i,u){p.addEventListener?p.addEventListener(i,y,!1):p.attachEvent&&p.attachEvent("on".concat(i),y),n[i]=n[i]||{},n[i][u]=n[i][u]||[],n[i][u].push(y)})(o,a===void 0?"global":a)}))}return this},c.trigger=function(v){var y=arguments;if(A(this[0]))for(var n=this[0].eventRegistry,p=this[0],r=typeof v=="string"?v.split(" "):[v.type],l=0;l<r.length;l++){var o=r[l].split("."),a=o[0],i=o[1]||"global";if(S!==void 0&&i==="global"){var u,h={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(S.createEvent){try{a==="input"?(h.inputType="insertText",u=new InputEvent(a,h)):u=new CustomEvent(a,h)}catch{(u=S.createEvent("CustomEvent")).initCustomEvent(a,h.bubbles,h.cancelable,h.detail)}v.type&&(0,F.default)(u,v),p.dispatchEvent(u)}else(u=S.createEventObject()).eventType=a,u.detail=arguments[1],v.type&&(0,F.default)(u,v),p.fireEvent("on"+u.eventType,u)}else if(n[a]!==void 0){arguments[0]=arguments[0].type?arguments[0]:E.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var m=n[a];(i==="global"?Object.values(m).flat():m[i]).forEach((function(_){return _.apply(p,y)}))}}return this};var C=U(k(9380)),F=U(k(600)),E=U(k(4963));function T(v,y){return(function(n){if(Array.isArray(n))return n})(v)||(function(n,p){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var l,o,a,i,u=[],h=!0,m=!1;try{if(a=(r=r.call(n)).next,p!==0)for(;!(h=(l=a.call(r)).done)&&(u.push(l.value),u.length!==p);h=!0);}catch(_){m=!0,o=_}finally{try{if(!h&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(m)throw o}}return u}})(v,y)||(function(n,p){if(n){if(typeof n=="string")return G(n,p);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G(n,p)}})(v,y)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}g(T,"o");function G(v,y){(y==null||y>v.length)&&(y=v.length);for(var n=0,p=new Array(y);n<y;n++)p[n]=v[n];return p}g(G,"l");function U(v){return v&&v.__esModule?v:{default:v}}g(U,"s");var S=C.default.document;function A(v){return v instanceof Element}g(A,"u");var w=c.Event=void 0;typeof C.default.CustomEvent=="function"?c.Event=w=C.default.CustomEvent:C.default.Event&&S&&S.createEvent?(c.Event=w=g(function(v,y){y=y||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var n=S.createEvent("CustomEvent");return n.initCustomEvent(v,y.bubbles,y.cancelable,y.detail),n},"f"),w.prototype=C.default.Event.prototype):typeof Event<"u"&&(c.Event=w=Event)},600:function(f,c){function k(C){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},k(C)}g(k,"n"),Object.defineProperty(c,"__esModule",{value:!0}),c.default=g(function C(){var F,E,T,G,U,S,A=arguments[0]||{},w=1,v=arguments.length,y=!1;for(typeof A=="boolean"&&(y=A,A=arguments[w]||{},w++),k(A)!=="object"&&typeof A!="function"&&(A={});w<v;w++)if((F=arguments[w])!=null)for(E in F)T=A[E],A!==(G=F[E])&&(y&&G&&(Object.prototype.toString.call(G)==="[object Object]"||(U=Array.isArray(G)))?(U?(U=!1,S=T&&Array.isArray(T)?T:[]):S=T&&Object.prototype.toString.call(T)==="[object Object]"?T:{},A[E]=C(y,S,G)):G!==void 0&&(A[E]=G));return A},"e")},4963:function(f,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var C=G(k(9380)),F=G(k(253)),E=k(3776),T=G(k(600));function G(A){return A&&A.__esModule?A:{default:A}}g(G,"l");var U=C.default.document;function S(A){return A instanceof S?A:this instanceof S?void(A!=null&&A!==C.default&&(this[0]=A.nodeName?A:A[0]!==void 0&&A[0].nodeName?A[0]:U.querySelector(A),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new S(A)}g(S,"c"),S.prototype={on:E.on,off:E.off,trigger:E.trigger},S.extend=T.default,S.data=F.default,S.Event=E.Event,c.default=S},9845:function(f,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.mobile=c.iphone=c.ie=void 0;var C,F=(C=k(9380))&&C.__esModule?C:{default:C},E=F.default.navigator&&F.default.navigator.userAgent||"";c.ie=E.indexOf("MSIE ")>0||E.indexOf("Trident/")>0,c.mobile=F.default.navigator&&F.default.navigator.userAgentData&&F.default.navigator.userAgentData.mobile||F.default.navigator&&F.default.navigator.maxTouchPoints||"ontouchstart"in F.default,c.iphone=/iphone/i.test(E)},7184:function(f,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(C){return C.replace(k,"\\$1")};var k=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(f,c,k){function C(a){return C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},C(a)}g(C,"i"),Object.defineProperty(c,"__esModule",{value:!0}),c.EventHandlers=void 0;var F,E=k(9845),T=(F=k(9380))&&F.__esModule?F:{default:F},G=k(7760),U=k(2839),S=k(8711),A=k(7215),w=k(4713);function v(){v=g(function(){return i},"p");var a,i={},u=Object.prototype,h=u.hasOwnProperty,m=Object.defineProperty||function(W,V,$){W[V]=$.value},_=typeof Symbol=="function"?Symbol:{},I=_.iterator||"@@iterator",D=_.asyncIterator||"@@asyncIterator",B=_.toStringTag||"@@toStringTag";function O(W,V,$){return Object.defineProperty(W,V,{value:$,enumerable:!0,configurable:!0,writable:!0}),W[V]}g(O,"u");try{O({},"")}catch{O=g(function(V,$,J){return V[$]=J},"u")}function N(W,V,$,J){var Z=V&&V.prototype instanceof q?V:q,re=Object.create(Z.prototype),he=new ge(J||[]);return m(re,"_invoke",{value:ae(W,$,he)}),re}g(N,"f");function d(W,V,$){try{return{type:"normal",arg:W.call(V,$)}}catch(J){return{type:"throw",arg:J}}}g(d,"d"),i.wrap=N;var b="suspendedStart",P="suspendedYield",M="executing",L="completed",j={};function q(){}g(q,"k");function Q(){}g(Q,"b");function R(){}g(R,"x");var H={};O(H,I,(function(){return this}));var te=Object.getPrototypeOf,Y=te&&te(te(be([])));Y&&Y!==u&&h.call(Y,I)&&(H=Y);var z=R.prototype=q.prototype=Object.create(H);function ee(W){["next","throw","return"].forEach((function(V){O(W,V,(function($){return this._invoke(V,$)}))}))}g(ee,"_");function X(W,V){function $(Z,re,he,oe){var le=d(W[Z],W,re);if(le.type!=="throw"){var pe=le.arg,we=pe.value;return we&&C(we)=="object"&&h.call(we,"__await")?V.resolve(we.__await).then((function(fe){$("next",fe,he,oe)}),(function(fe){$("throw",fe,he,oe)})):V.resolve(we).then((function(fe){pe.value=fe,he(pe)}),(function(fe){return $("throw",fe,he,oe)}))}oe(le.arg)}g($,"n");var J;m(this,"_invoke",{value:g(function(Z,re){function he(){return new V((function(oe,le){$(Z,re,oe,le)}))}return g(he,"a"),J=J?J.then(he,he):he()},"value")})}g(X,"M");function ae(W,V,$){var J=b;return function(Z,re){if(J===M)throw new Error("Generator is already running");if(J===L){if(Z==="throw")throw re;return{value:a,done:!0}}for($.method=Z,$.arg=re;;){var he=$.delegate;if(he){var oe=se(he,$);if(oe){if(oe===j)continue;return oe}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(J===b)throw J=L,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);J=M;var le=d(W,V,$);if(le.type==="normal"){if(J=$.done?L:P,le.arg===j)continue;return{value:le.arg,done:$.done}}le.type==="throw"&&(J=L,$.method="throw",$.arg=le.arg)}}}g(ae,"E");function se(W,V){var $=V.method,J=W.iterator[$];if(J===a)return V.delegate=null,$==="throw"&&W.iterator.return&&(V.method="return",V.arg=a,se(W,V),V.method==="throw")||$!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+$+"' method")),j;var Z=d(J,W.iterator,V.arg);if(Z.type==="throw")return V.method="throw",V.arg=Z.arg,V.delegate=null,j;var re=Z.arg;return re?re.done?(V[W.resultName]=re.value,V.next=W.nextLoc,V.method!=="return"&&(V.method="next",V.arg=a),V.delegate=null,j):re:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,j)}g(se,"j");function ce(W){var V={tryLoc:W[0]};1 in W&&(V.catchLoc=W[1]),2 in W&&(V.finallyLoc=W[2],V.afterLoc=W[3]),this.tryEntries.push(V)}g(ce,"T");function ke(W){var V=W.completion||{};V.type="normal",delete V.arg,W.completion=V}g(ke,"A");function ge(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(ce,this),this.reset(!0)}g(ge,"D");function be(W){if(W||W===""){var V=W[I];if(V)return V.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var $=-1,J=g(function Z(){for(;++$<W.length;)if(h.call(W,$))return Z.value=W[$],Z.done=!1,Z;return Z.value=a,Z.done=!0,Z},"n");return J.next=J}}throw new TypeError(C(W)+" is not iterable")}return g(be,"L"),Q.prototype=R,m(z,"constructor",{value:R,configurable:!0}),m(R,"constructor",{value:Q,configurable:!0}),Q.displayName=O(R,B,"GeneratorFunction"),i.isGeneratorFunction=function(W){var V=typeof W=="function"&&W.constructor;return!!V&&(V===Q||(V.displayName||V.name)==="GeneratorFunction")},i.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,R):(W.__proto__=R,O(W,B,"GeneratorFunction")),W.prototype=Object.create(z),W},i.awrap=function(W){return{__await:W}},ee(X.prototype),O(X.prototype,D,(function(){return this})),i.AsyncIterator=X,i.async=function(W,V,$,J,Z){Z===void 0&&(Z=Promise);var re=new X(N(W,V,$,J),Z);return i.isGeneratorFunction(V)?re:re.next().then((function(he){return he.done?he.value:re.next()}))},ee(z),O(z,B,"Generator"),O(z,I,(function(){return this})),O(z,"toString",(function(){return"[object Generator]"})),i.keys=function(W){var V=Object(W),$=[];for(var J in V)$.push(J);return $.reverse(),g(function Z(){for(;$.length;){var re=$.pop();if(re in V)return Z.value=re,Z.done=!1,Z}return Z.done=!0,Z},"e")},i.values=be,ge.prototype={constructor:ge,reset:g(function(W){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(ke),!W)for(var V in this)V.charAt(0)==="t"&&h.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=a)},"reset"),stop:g(function(){this.done=!0;var W=this.tryEntries[0].completion;if(W.type==="throw")throw W.arg;return this.rval},"stop"),dispatchException:g(function(W){if(this.done)throw W;var V=this;function $(le,pe){return re.type="throw",re.arg=W,V.next=le,pe&&(V.method="next",V.arg=a),!!pe}g($,"i");for(var J=this.tryEntries.length-1;J>=0;--J){var Z=this.tryEntries[J],re=Z.completion;if(Z.tryLoc==="root")return $("end");if(Z.tryLoc<=this.prev){var he=h.call(Z,"catchLoc"),oe=h.call(Z,"finallyLoc");if(he&&oe){if(this.prev<Z.catchLoc)return $(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return $(Z.finallyLoc)}else if(he){if(this.prev<Z.catchLoc)return $(Z.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return $(Z.finallyLoc)}}}},"dispatchException"),abrupt:g(function(W,V){for(var $=this.tryEntries.length-1;$>=0;--$){var J=this.tryEntries[$];if(J.tryLoc<=this.prev&&h.call(J,"finallyLoc")&&this.prev<J.finallyLoc){var Z=J;break}}Z&&(W==="break"||W==="continue")&&Z.tryLoc<=V&&V<=Z.finallyLoc&&(Z=null);var re=Z?Z.completion:{};return re.type=W,re.arg=V,Z?(this.method="next",this.next=Z.finallyLoc,j):this.complete(re)},"abrupt"),complete:g(function(W,V){if(W.type==="throw")throw W.arg;return W.type==="break"||W.type==="continue"?this.next=W.arg:W.type==="return"?(this.rval=this.arg=W.arg,this.method="return",this.next="end"):W.type==="normal"&&V&&(this.next=V),j},"complete"),finish:g(function(W){for(var V=this.tryEntries.length-1;V>=0;--V){var $=this.tryEntries[V];if($.finallyLoc===W)return this.complete($.completion,$.afterLoc),ke($),j}},"finish"),catch:g(function(W){for(var V=this.tryEntries.length-1;V>=0;--V){var $=this.tryEntries[V];if($.tryLoc===W){var J=$.completion;if(J.type==="throw"){var Z=J.arg;ke($)}return Z}}throw new Error("illegal catch attempt")},"catch"),delegateYield:g(function(W,V,$){return this.delegate={iterator:be(W),resultName:V,nextLoc:$},this.method==="next"&&(this.arg=a),j},"delegateYield")},i}g(v,"p");function y(a,i){var u=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=(function(B,O){if(B){if(typeof B=="string")return n(B,O);var N=Object.prototype.toString.call(B).slice(8,-1);if(N==="Object"&&B.constructor&&(N=B.constructor.name),N==="Map"||N==="Set")return Array.from(B);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return n(B,O)}})(a))||i){u&&(a=u);var h=0,m=g(function(){},"a");return{s:m,n:g(function(){return h>=a.length?{done:!0}:{done:!1,value:a[h++]}},"n"),e:g(function(B){throw B},"e"),f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _,I=!0,D=!1;return{s:g(function(){u=u.call(a)},"s"),n:g(function(){var B=u.next();return I=B.done,B},"n"),e:g(function(B){D=!0,_=B},"e"),f:g(function(){try{I||u.return==null||u.return()}finally{if(D)throw _}},"f")}}g(y,"d");function n(a,i){(i==null||i>a.length)&&(i=a.length);for(var u=0,h=new Array(i);u<i;u++)h[u]=a[u];return h}g(n,"h");function p(a,i,u,h,m,_,I){try{var D=a[_](I),B=D.value}catch(O){return void u(O)}D.done?i(B):Promise.resolve(B).then(h,m)}g(p,"v");var r,l,o=c.EventHandlers={keyEvent:g(function(a,i,u,h,m){var _=this.inputmask,I=_.opts,D=_.dependencyLib,B=_.maskset,O=this,N=D(O),d=a.key,b=S.caret.call(_,O),P=I.onKeyDown.call(this,a,S.getBuffer.call(_),b,I);if(P!==void 0)return P;if(d===U.keys.Backspace||d===U.keys.Delete||E.iphone&&d===U.keys.BACKSPACE_SAFARI||a.ctrlKey&&d===U.keys.x&&!("oncut"in O))a.preventDefault(),A.handleRemove.call(_,O,d,b),(0,G.writeBuffer)(O,S.getBuffer.call(_,!0),B.p,a,O.inputmask._valueGet()!==S.getBuffer.call(_).join(""));else if(d===U.keys.End||d===U.keys.PageDown){a.preventDefault();var M=S.seekNext.call(_,S.getLastValidPosition.call(_));S.caret.call(_,O,a.shiftKey?b.begin:M,M,!0)}else d===U.keys.Home&&!a.shiftKey||d===U.keys.PageUp?(a.preventDefault(),S.caret.call(_,O,0,a.shiftKey?b.begin:0,!0)):I.undoOnEscape&&d===U.keys.Escape&&a.altKey!==!0?((0,G.checkVal)(O,!0,!1,_.undoValue.split("")),N.trigger("click")):d!==U.keys.Insert||a.shiftKey||a.ctrlKey||_.userOptions.insertMode!==void 0?I.tabThrough===!0&&d===U.keys.Tab?a.shiftKey===!0?(b.end=S.seekPrevious.call(_,b.end,!0),w.getTest.call(_,b.end-1).match.static===!0&&b.end--,b.begin=S.seekPrevious.call(_,b.end,!0),b.begin>=0&&b.end>0&&(a.preventDefault(),S.caret.call(_,O,b.begin,b.end))):(b.begin=S.seekNext.call(_,b.begin,!0),b.end=S.seekNext.call(_,b.begin,!0),b.end<B.maskLength&&b.end--,b.begin<=B.maskLength&&(a.preventDefault(),S.caret.call(_,O,b.begin,b.end))):a.shiftKey||(I.insertModeVisual&&I.insertMode===!1?d===U.keys.ArrowRight?setTimeout((function(){var L=S.caret.call(_,O);S.caret.call(_,O,L.begin)}),0):d===U.keys.ArrowLeft&&setTimeout((function(){var L=S.translatePosition.call(_,O.inputmask.caretPos.begin);S.translatePosition.call(_,O.inputmask.caretPos.end),_.isRTL?S.caret.call(_,O,L+(L===B.maskLength?0:1)):S.caret.call(_,O,L-(L===0?0:1))}),0):_.keyEventHook===void 0||_.keyEventHook(a)):A.isSelection.call(_,b)?I.insertMode=!I.insertMode:(I.insertMode=!I.insertMode,S.caret.call(_,O,b.begin,b.begin));return _.isComposing=d==U.keys.Process||d==U.keys.Unidentified,_.ignorable=d.length>1&&!(O.tagName.toLowerCase()==="textarea"&&d==U.keys.Enter),o.keypressEvent.call(this,a,i,u,h,m)},"keyEvent"),keypressEvent:g(function(a,i,u,h,m){var _=this.inputmask||this,I=_.opts,D=_.dependencyLib,B=_.maskset,O=_.el,N=D(O),d=a.key;if(i===!0||a.ctrlKey&&a.altKey&&!_.ignorable||!(a.ctrlKey||a.metaKey||_.ignorable)){if(d){var b,P=i?{begin:m,end:m}:S.caret.call(_,O);i||(d=I.substitutes[d]||d),B.writeOutBuffer=!0;var M=A.isValid.call(_,P,d,h,void 0,void 0,void 0,i);if(M!==!1&&(S.resetMaskSet.call(_,!0),b=M.caret!==void 0?M.caret:S.seekNext.call(_,M.pos.begin?M.pos.begin:M.pos),B.p=b),b=I.numericInput&&M.caret===void 0?S.seekPrevious.call(_,b):b,u!==!1&&(setTimeout((function(){I.onKeyValidation.call(O,d,M)}),0),B.writeOutBuffer&&M!==!1)){var L=S.getBuffer.call(_);(0,G.writeBuffer)(O,L,b,a,i!==!0)}if(a.preventDefault(),i)return M!==!1&&(M.forwardPosition=b),M}}else d===U.keys.Enter&&_.undoValue!==_._valueGet(!0)&&(_.undoValue=_._valueGet(!0),setTimeout((function(){N.trigger("change")}),0))},"keypressEvent"),pasteEvent:(r=v().mark(g((function a(i){var u,h,m,_,I,D;return v().wrap((function(B){for(;;)switch(B.prev=B.next){case 0:u=g(function(O,N,d,b,P){var M=S.caret.call(O,N,void 0,void 0,!0),L=d.substr(0,M.begin),j=d.substr(M.end,d.length);if(L==(O.isRTL?S.getBufferTemplate.call(O).slice().reverse():S.getBufferTemplate.call(O)).slice(0,M.begin).join("")&&(L=""),j==(O.isRTL?S.getBufferTemplate.call(O).slice().reverse():S.getBufferTemplate.call(O)).slice(M.end).join("")&&(j=""),b=L+b+j,O.isRTL&&_.numericInput!==!0){b=b.split("");var q,Q=y(S.getBufferTemplate.call(O));try{for(Q.s();!(q=Q.n()).done;){var R=q.value;b[0]===R&&b.shift()}}catch(te){Q.e(te)}finally{Q.f()}b=b.reverse().join("")}var H=b;if(typeof P=="function"){if((H=P.call(O,H,_))===!1)return!1;H||(H=d)}(0,G.checkVal)(N,!0,!1,H.toString().split(""),i)},"n"),h=this,m=this.inputmask,_=m.opts,I=m._valueGet(!0),m.skipInputEvent=!0,i.clipboardData&&i.clipboardData.getData?D=i.clipboardData.getData("text/plain"):T.default.clipboardData&&T.default.clipboardData.getData&&(D=T.default.clipboardData.getData("Text")),u(m,h,I,D,_.onBeforePaste),i.preventDefault();case 7:case"end":return B.stop()}}),a,this)}),"e")),l=g(function(){var a=this,i=arguments;return new Promise((function(u,h){var m=r.apply(a,i);function _(D){p(m,u,h,_,I,"next",D)}g(_,"r");function I(D){p(m,u,h,_,I,"throw",D)}g(I,"o"),_(void 0)}))},"g"),function(a){return l.apply(this,arguments)}),inputFallBackEvent:g(function(a){var i=this.inputmask,u=i.opts,h=i.dependencyLib,m,_=this,I=_.inputmask._valueGet(!0),D=(i.isRTL?S.getBuffer.call(i).slice().reverse():S.getBuffer.call(i)).join(""),B=S.caret.call(i,_,void 0,void 0,!0);if(D!==I){if(m=(function(N,d,b){for(var P,M,L,j=N.substr(0,b.begin).split(""),q=N.substr(b.begin).split(""),Q=d.substr(0,b.begin).split(""),R=d.substr(b.begin).split(""),H=j.length>=Q.length?j.length:Q.length,te=q.length>=R.length?q.length:R.length,Y="",z=[],ee="~";j.length<H;)j.push(ee);for(;Q.length<H;)Q.push(ee);for(;q.length<te;)q.unshift(ee);for(;R.length<te;)R.unshift(ee);var X=j.concat(q),ae=Q.concat(R);for(M=0,P=X.length;M<P;M++)switch(L=w.getPlaceholder.call(i,S.translatePosition.call(i,M)),Y){case"insertText":ae[M-1]===X[M]&&b.begin==X.length-1&&z.push(X[M]),M=P;break;case"insertReplacementText":case"deleteContentBackward":X[M]===ee?b.end++:M=P;break;default:X[M]!==ae[M]&&(X[M+1]!==ee&&X[M+1]!==L&&X[M+1]!==void 0||(ae[M]!==L||ae[M+1]!==ee)&&ae[M]!==ee?ae[M+1]===ee&&ae[M]===X[M+1]?(Y="insertText",z.push(X[M]),b.begin--,b.end--):X[M]!==L&&X[M]!==ee&&(X[M+1]===ee||ae[M]!==X[M]&&ae[M+1]===X[M+1])?(Y="insertReplacementText",z.push(X[M]),b.begin--):X[M]===ee?(Y="deleteContentBackward",(S.isMask.call(i,S.translatePosition.call(i,M),!0)||ae[M]===u.radixPoint)&&b.end++):M=P:(Y="insertText",z.push(X[M]),b.begin--,b.end--))}return{action:Y,data:z,caret:b}})(I,D,B),(_.inputmask.shadowRoot||_.ownerDocument).activeElement!==_&&_.focus(),(0,G.writeBuffer)(_,S.getBuffer.call(i)),S.caret.call(i,_,B.begin,B.end,!0),!E.mobile&&i.skipNextInsert&&a.inputType==="insertText"&&m.action==="insertText"&&i.isComposing)return!1;switch(a.inputType==="insertCompositionText"&&m.action==="insertText"&&i.isComposing?i.skipNextInsert=!0:i.skipNextInsert=!1,m.action){case"insertText":case"insertReplacementText":m.data.forEach((function(N,d){var b=new h.Event("keypress");b.key=N,i.ignorable=!1,o.keypressEvent.call(_,b)})),setTimeout((function(){i.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var O=new h.Event("keydown");O.key=U.keys.Backspace,o.keyEvent.call(_,O);break;default:(0,G.applyInputValue)(_,I),S.caret.call(i,_,B.begin,B.end,!0)}a.preventDefault()}},"inputFallBackEvent"),setValueEvent:g(function(a){var i=this.inputmask,u=i.dependencyLib,h=this,m=a&&a.detail?a.detail[0]:arguments[1];m===void 0&&(m=h.inputmask._valueGet(!0)),(0,G.applyInputValue)(h,m,new u.Event("input")),(a.detail&&a.detail[1]!==void 0||arguments[2]!==void 0)&&S.caret.call(i,h,a.detail?a.detail[1]:arguments[2])},"setValueEvent"),focusEvent:g(function(a){var i=this.inputmask,u=i.opts,h=i&&i._valueGet();u.showMaskOnFocus&&h!==S.getBuffer.call(i).join("")&&(0,G.writeBuffer)(this,S.getBuffer.call(i),S.seekNext.call(i,S.getLastValidPosition.call(i))),u.positionCaretOnTab!==!0||i.mouseEnter!==!1||A.isComplete.call(i,S.getBuffer.call(i))&&S.getLastValidPosition.call(i)!==-1||o.clickEvent.apply(this,[a,!0]),i.undoValue=i&&i._valueGet(!0)},"focusEvent"),invalidEvent:g(function(a){this.inputmask.validationEvent=!0},"invalidEvent"),mouseleaveEvent:g(function(){var a=this.inputmask,i=a.opts,u=this;a.mouseEnter=!1,i.clearMaskOnLostFocus&&(u.inputmask.shadowRoot||u.ownerDocument).activeElement!==u&&(0,G.HandleNativePlaceholder)(u,a.originalPlaceholder)},"mouseleaveEvent"),clickEvent:g(function(a,i){var u=this.inputmask;u.clicked++;var h=this;if((h.inputmask.shadowRoot||h.ownerDocument).activeElement===h){var m=S.determineNewCaretPosition.call(u,S.caret.call(u,h),i);m!==void 0&&S.caret.call(u,h,m)}},"clickEvent"),cutEvent:g(function(a){var i=this.inputmask,u=i.maskset,h=this,m=S.caret.call(i,h),_=i.isRTL?S.getBuffer.call(i).slice(m.end,m.begin):S.getBuffer.call(i).slice(m.begin,m.end),I=i.isRTL?_.reverse().join(""):_.join("");T.default.navigator&&T.default.navigator.clipboard?T.default.navigator.clipboard.writeText(I):T.default.clipboardData&&T.default.clipboardData.getData&&T.default.clipboardData.setData("Text",I),A.handleRemove.call(i,h,U.keys.Delete,m),(0,G.writeBuffer)(h,S.getBuffer.call(i),u.p,a,i.undoValue!==i._valueGet(!0))},"cutEvent"),blurEvent:g(function(a){var i=this.inputmask,u=i.opts,h=i.dependencyLib;i.clicked=0;var m=h(this),_=this;if(_.inputmask){(0,G.HandleNativePlaceholder)(_,i.originalPlaceholder);var I=_.inputmask._valueGet(),D=S.getBuffer.call(i).slice();I!==""&&(u.clearMaskOnLostFocus&&(S.getLastValidPosition.call(i)===-1&&I===S.getBufferTemplate.call(i).join("")?D=[]:G.clearOptionalTail.call(i,D)),A.isComplete.call(i,D)===!1&&(setTimeout((function(){m.trigger("incomplete")}),0),u.clearIncomplete&&(S.resetMaskSet.call(i,!1),D=u.clearMaskOnLostFocus?[]:S.getBufferTemplate.call(i).slice())),(0,G.writeBuffer)(_,D,void 0,a)),I=i._valueGet(!0),i.undoValue!==I&&(I!=""||i.undoValue!=S.getBufferTemplate.call(i).join("")||i.undoValue==S.getBufferTemplate.call(i).join("")&&i.maskset.validPositions.length>0)&&(i.undoValue=I,m.trigger("change"))}},"blurEvent"),mouseenterEvent:g(function(){var a=this.inputmask,i=a.opts.showMaskOnHover,u=this;if(a.mouseEnter=!0,(u.inputmask.shadowRoot||u.ownerDocument).activeElement!==u){var h=(a.isRTL?S.getBufferTemplate.call(a).slice().reverse():S.getBufferTemplate.call(a)).join("");i&&(0,G.HandleNativePlaceholder)(u,h)}},"mouseenterEvent"),submitEvent:g(function(){var a=this.inputmask,i=a.opts;a.undoValue!==a._valueGet(!0)&&a.$el.trigger("change"),S.getLastValidPosition.call(a)===-1&&a._valueGet&&a._valueGet()===S.getBufferTemplate.call(a).join("")&&a._valueSet(""),i.clearIncomplete&&A.isComplete.call(a,S.getBuffer.call(a))===!1&&a._valueSet(""),i.removeMaskOnSubmit&&(a._valueSet(a.unmaskedvalue(),!0),setTimeout((function(){(0,G.writeBuffer)(a.el,S.getBuffer.call(a))}),0))},"submitEvent"),resetEvent:g(function(){var a=this.inputmask;a.refreshValue=!0,setTimeout((function(){(0,G.applyInputValue)(a.el,a._valueGet(!0))}),0)},"resetEvent")}},9716:function(f,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.EventRuler=void 0;var C,F=k(7760),E=(C=k(2394))&&C.__esModule?C:{default:C},T=k(2839),G=k(8711);c.EventRuler={on:g(function(U,S,A){var w=U.inputmask.dependencyLib,v=g(function(y){y.originalEvent&&(y=y.originalEvent||y,arguments[0]=y);var n,p=this,r=p.inputmask,l=r?r.opts:void 0;if(r===void 0&&this.nodeName!=="FORM"){var o=w.data(p,"_inputmask_opts");w(p).off(),o&&new E.default(o).mask(p)}else{if(["submit","reset","setvalue"].includes(y.type)||this.nodeName==="FORM"||!(p.disabled||p.readOnly&&!(y.type==="keydown"&&y.ctrlKey&&y.key===T.keys.c||l.tabThrough===!1&&y.key===T.keys.Tab))){switch(y.type){case"input":if(r.skipInputEvent===!0)return r.skipInputEvent=!1,y.preventDefault();break;case"click":case"focus":return r.validationEvent?(r.validationEvent=!1,U.blur(),(0,F.HandleNativePlaceholder)(U,(r.isRTL?G.getBufferTemplate.call(r).slice().reverse():G.getBufferTemplate.call(r)).join("")),setTimeout((function(){U.focus()}),l.validationEventTimeOut),!1):(n=arguments,void setTimeout((function(){U.inputmask&&A.apply(p,n)}),0))}var a=A.apply(p,arguments);return a===!1&&(y.preventDefault(),y.stopPropagation()),a}y.preventDefault()}},"s");["submit","reset"].includes(S)?(v=v.bind(U),U.form!==null&&w(U.form).on(S,v)):w(U).on(S,v),U.inputmask.events[S]=U.inputmask.events[S]||[],U.inputmask.events[S].push(v)},"on"),off:g(function(U,S){if(U.inputmask&&U.inputmask.events){var A=U.inputmask.dependencyLib,w=U.inputmask.events;for(var v in S&&((w=[])[S]=U.inputmask.events[S]),w){for(var y=w[v];y.length>0;){var n=y.pop();["submit","reset"].includes(v)?U.form!==null&&A(U.form).off(v,n):A(U).off(v,n)}delete U.inputmask.events[v]}}},"off")}},219:function(f,c,k){var C=v(k(7184)),F=v(k(2394)),E=k(2839),T=k(8711),G=k(4713);function U(d,b){return(function(P){if(Array.isArray(P))return P})(d)||(function(P,M){var L=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(L!=null){var j,q,Q,R,H=[],te=!0,Y=!1;try{if(Q=(L=L.call(P)).next,M!==0)for(;!(te=(j=Q.call(L)).done)&&(H.push(j.value),H.length!==M);te=!0);}catch(z){Y=!0,q=z}finally{try{if(!te&&L.return!=null&&(R=L.return(),Object(R)!==R))return}finally{if(Y)throw q}}return H}})(d,b)||(function(P,M){if(P){if(typeof P=="string")return S(P,M);var L=Object.prototype.toString.call(P).slice(8,-1);if(L==="Object"&&P.constructor&&(L=P.constructor.name),L==="Map"||L==="Set")return Array.from(P);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return S(P,M)}})(d,b)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}g(U,"s");function S(d,b){(b==null||b>d.length)&&(b=d.length);for(var P=0,M=new Array(b);P<b;P++)M[P]=d[P];return M}g(S,"c");function A(d){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},A(d)}g(A,"u");function w(d,b){for(var P=0;P<b.length;P++){var M=b[P];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(d,(L=M.key,j=void 0,j=(function(q,Q){if(A(q)!=="object"||q===null)return q;var R=q[Symbol.toPrimitive];if(R!==void 0){var H=R.call(q,Q);if(A(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Q==="string"?String:Number)(q)})(L,"string"),A(j)==="symbol"?j:String(j)),M)}var L,j}g(w,"f");function v(d){return d&&d.__esModule?d:{default:d}}g(v,"p"),k(1313);var y=F.default.dependencyLib,n=(function(){function d(M,L,j,q){(function(Q,R){if(!(Q instanceof R))throw new TypeError("Cannot call a class as a function")})(this,d),this.mask=M,this.format=L,this.opts=j,this.inputmask=q,this._date=new Date(1,0,1),this.initDateObject(M,this.opts,this.inputmask)}g(d,"e");var b,P;return b=d,(P=[{key:"date",get:g(function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date},"get")},{key:"initDateObject",value:g(function(M,L,j){var q;for(m(L).lastIndex=0;q=m(L).exec(this.format);){var Q=/\d+$/.exec(q[0]),R=Q?q[0][0]+"x":q[0],H=void 0;if(M!==void 0){if(Q){var te=m(L).lastIndex,Y=N.call(j,q.index,L,j&&j.maskset);m(L).lastIndex=te,H=M.slice(0,M.indexOf(Y.nextMatch[0]))}else{for(var z=q[0][0],ee=q.index;j&&(L.placeholder[G.getTest.call(j,ee).match.placeholder]||G.getTest.call(j,ee).match.placeholder)===z;)ee++;var X=ee-q.index;H=M.slice(0,X||o[R]&&o[R][4]||R.length)}M=M.slice(H.length)}Object.prototype.hasOwnProperty.call(o,R)&&this.setValue(this,H,R,o[R][2],o[R][1])}},"value")},{key:"setValue",value:g(function(M,L,j,q,Q){if(L!==void 0)switch(q){case"ampm":M[q]=L,M["raw"+q]=L.replace(/\s/g,"_");break;case"month":if(j==="mmm"||j==="mmmm"){M[q]=D(j==="mmm"?r.monthNames.slice(0,12).findIndex((function(H){return L.toLowerCase()===H.toLowerCase()}))+1:r.monthNames.slice(12,24).findIndex((function(H){return L.toLowerCase()===H.toLowerCase()}))+1,2),M[q]=M[q]==="00"?"":M[q].toString(),M["raw"+q]=M[q];break}default:M[q]=L.replace(/[^0-9]/g,"0"),M["raw"+q]=L.replace(/\s/g,"_")}if(Q!==void 0){var R=M[q];(q==="day"&&parseInt(R)===29||q==="month"&&parseInt(R)===2)&&(parseInt(M.day)!==29||parseInt(M.month)!==2||M.year!==""&&M.year!==void 0||M._date.setFullYear(2012,1,29)),q==="day"&&(l=!0,parseInt(R)===0&&(R=1)),q==="month"&&(l=!0),q==="year"&&(l=!0,R.length<o[j][4]&&(R=D(R,o[j][4],!0))),(R!==""&&!isNaN(R)||q==="ampm")&&Q.call(M._date,R)}},"value")},{key:"reset",value:g(function(){this._date=new Date(1,0,1)},"value")},{key:"reInit",value:g(function(){this._date=void 0,this.date},"value")}])&&w(b.prototype,P),Object.defineProperty(b,"prototype",{writable:!1}),d})(),p=new Date().getFullYear(),r=F.default.prototype.i18n,l=!1,o={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return D(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(d){var b=d?parseInt(d):0;return b>0&&b--,Date.prototype.setMonth.call(this,b)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(d){var b=d?parseInt(d):0;return b>0&&b--,Date.prototype.setMonth.call(this,b)},"month",function(){return D(Date.prototype.getMonth.call(this)+1,2)}],mmm:[r.monthNames.slice(0,12).join("|"),function(d){var b=r.monthNames.slice(0,12).findIndex((function(P){return d.toLowerCase()===P.toLowerCase()}));return b!==-1&&Date.prototype.setMonth.call(this,b)},"month",function(){return r.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[r.monthNames.slice(12,24).join("|"),function(d){var b=r.monthNames.slice(12,24).findIndex((function(P){return d.toLowerCase()===P.toLowerCase()}));return b!==-1&&Date.prototype.setMonth.call(this,b)},"month",function(){return r.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(d){var b=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(b).concat(d))},"year",function(){return D(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return D(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return D(Date.prototype.getHours.call(this),2)}],hx:[function(d){return"[0-9]{".concat(d,"}")},Date.prototype.setHours,"hours",function(d){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return D(Date.prototype.getHours.call(this),2)}],Hx:[function(d){return"[0-9]{".concat(d,"}")},Date.prototype.setHours,"hours",function(d){return function(){return D(Date.prototype.getHours.call(this),d)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return D(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return D(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return D(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return D(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",i,"ampm",u,1],tt:["[ap]m",i,"ampm",u,2],T:["[AP]",i,"ampm",u,1],TT:["[AP]M",i,"ampm",u,2],Z:[".*",void 0,"Z",function(){var d=this.toString().match(/\((.+)\)/)[1];return d.includes(" ")&&(d=(d=d.replace("-"," ").toUpperCase()).split(" ").map((function(b){return U(b,1)[0]})).join("")),d}],o:[""],S:[""]},a={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function i(d){var b=this.getHours();d.toLowerCase().includes("p")?this.setHours(b+12):d.toLowerCase().includes("a")&&b>=12&&this.setHours(b-12)}g(i,"b");function u(){var d=this.getHours();return(d=d||12)>=12?"PM":"AM"}g(u,"x");function h(d){var b=/\d+$/.exec(d[0]);if(b&&b[0]!==void 0){var P=o[d[0][0]+"x"].slice("");return P[0]=P[0](b[0]),P[3]=P[3](b[0]),P}if(o[d[0]])return o[d[0]]}g(h,"w");function m(d){if(!d.tokenizer){var b=[],P=[];for(var M in o)if(/\.*x$/.test(M)){var L=M[0]+"\\d+";P.indexOf(L)===-1&&P.push(L)}else b.indexOf(M[0])===-1&&b.push(M[0]);d.tokenizer="("+(P.length>0?P.join("|")+"|":"")+b.join("+|")+")+?|.",d.tokenizer=new RegExp(d.tokenizer,"g")}return d.tokenizer}g(m,"P");function _(d,b,P){if(!l)return!0;if(d.rawday===void 0||!isFinite(d.rawday)&&new Date(d.date.getFullYear(),isFinite(d.rawmonth)?d.month:d.date.getMonth()+1,0).getDate()>=d.day||d.day=="29"&&(!isFinite(d.rawyear)||d.rawyear===void 0||d.rawyear==="")||new Date(d.date.getFullYear(),isFinite(d.rawmonth)?d.month:d.date.getMonth()+1,0).getDate()>=d.day)return b;if(d.day=="29"){var M=N.call(this,b.pos,P,this.maskset);if(M.targetMatch&&M.targetMatch[0]==="yyyy"&&b.pos-M.targetMatchIndex==2)return b.remove=b.pos+1,b}else if(d.date.getMonth()==2&&d.day=="30"&&b.c!==void 0)return d.day="03",d.date.setDate(3),d.date.setMonth(1),b.insert=[{pos:b.pos,c:"0"},{pos:b.pos+1,c:b.c}],b.caret=T.seekNext.call(this,b.pos+1),b;return!1}g(_,"S");function I(d,b,P,M){var L,j,q="",Q=0,R={};for(m(P).lastIndex=0;L=m(P).exec(d);){if(b===void 0)if(j=h(L))q+="("+j[0]+")",P.placeholder&&P.placeholder!==""?(R[Q]=P.placeholder[L.index%P.placeholder.length],R[P.placeholder[L.index%P.placeholder.length]]=L[0].charAt(0)):R[Q]=L[0].charAt(0);else switch(L[0]){case"[":q+="(";break;case"]":q+=")?";break;default:q+=(0,C.default)(L[0]),R[Q]=L[0].charAt(0)}else(j=h(L))?M!==!0&&j[3]?q+=j[3].call(b.date):j[2]?q+=b["raw"+j[2]]:q+=L[0]:q+=L[0];Q++}return b===void 0&&(P.placeholder=R),q}g(I,"O");function D(d,b,P){for(d=String(d),b=b||2;d.length<b;)d=P?d+"0":"0"+d;return d}g(D,"_");function B(d,b,P){return typeof d=="string"?new n(d,b,P,this):d&&A(d)==="object"&&Object.prototype.hasOwnProperty.call(d,"date")?d:void 0}g(B,"M");function O(d,b){return I(b.inputFormat,{date:d},b)}g(O,"E");function N(d,b,P){var M,L,j=this,q=P&&P.tests[d]?b.placeholder[P.tests[d][0].match.placeholder]||P.tests[d][0].match.placeholder:"",Q=0,R=0;for(m(b).lastIndex=0;L=m(b).exec(b.inputFormat);){var H=/\d+$/.exec(L[0]);if(H)R=parseInt(H[0]);else{for(var te=L[0][0],Y=Q;j&&(b.placeholder[G.getTest.call(j,Y).match.placeholder]||G.getTest.call(j,Y).match.placeholder)===te;)Y++;(R=Y-Q)===0&&(R=L[0].length)}if(Q+=R,L[0].indexOf(q)!=-1||Q>=d+1){M=L,L=m(b).exec(b.inputFormat);break}}return{targetMatchIndex:Q-R,nextMatch:L,targetMatch:M}}g(N,"j"),F.default.extendAliases({datetime:{mask:g(function(d){return d.numericInput=!1,o.S=r.ordinalSuffix.join("|"),d.inputFormat=a[d.inputFormat]||d.inputFormat,d.displayFormat=a[d.displayFormat]||d.displayFormat||d.inputFormat,d.outputFormat=a[d.outputFormat]||d.outputFormat||d.inputFormat,d.regex=I(d.inputFormat,void 0,d),d.min=B(d.min,d.inputFormat,d),d.max=B(d.max,d.inputFormat,d),null},"mask"),placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:g(function(d,b,P,M,L,j,q,Q){if(Q)return!0;if(isNaN(P)&&d[b]!==P){var R=N.call(this,b,L,j);if(R.nextMatch&&R.nextMatch[0]===P&&R.targetMatch[0].length>1){var H=h(R.targetMatch)[0];if(new RegExp(H).test("0"+d[b-1]))return d[b]=d[b-1],d[b-1]="0",{fuzzy:!0,buffer:d,refreshFromBuffer:{start:b-1,end:b+1},pos:b+1}}}return!0},"preValidation"),postValidation:g(function(d,b,P,M,L,j,q,Q){var R,H,te=this;if(q)return!0;if(M===!1&&(((R=N.call(te,b+1,L,j)).targetMatch&&R.targetMatchIndex===b&&R.targetMatch[0].length>1&&o[R.targetMatch[0]]!==void 0||(R=N.call(te,b+2,L,j)).targetMatch&&R.targetMatchIndex===b+1&&R.targetMatch[0].length>1&&o[R.targetMatch[0]]!==void 0)&&(H=h(R.targetMatch)[0]),H!==void 0&&(j.validPositions[b+1]!==void 0&&new RegExp(H).test(P+"0")?(d[b]=P,d[b+1]="0",M={pos:b+2,caret:b}):new RegExp(H).test("0"+P)&&(d[b]="0",d[b+1]=P,M={pos:b+2})),M===!1))return M;if(M.fuzzy&&(d=M.buffer,b=M.pos),(R=N.call(te,b,L,j)).targetMatch&&R.targetMatch[0]&&o[R.targetMatch[0]]!==void 0){var Y=h(R.targetMatch);H=Y[0];var z=d.slice(R.targetMatchIndex,R.targetMatchIndex+R.targetMatch[0].length);if(new RegExp(H).test(z.join(""))===!1&&R.targetMatch[0].length===2&&j.validPositions[R.targetMatchIndex]&&j.validPositions[R.targetMatchIndex+1]&&(j.validPositions[R.targetMatchIndex+1].input="0"),Y[2]=="year")for(var ee=G.getMaskTemplate.call(te,!1,1,void 0,!0),X=b+1;X<d.length;X++)d[X]=ee[X],j.validPositions.splice(b+1,1)}var ae=M,se=B.call(te,d.join(""),L.inputFormat,L);return ae&&!isNaN(se.date.getTime())&&(L.prefillYear&&(ae=(function(ce,ke,ge){if(ce.year!==ce.rawyear){var be=p.toString(),W=ce.rawyear.replace(/[^0-9]/g,""),V=be.slice(0,W.length),$=be.slice(W.length);if(W.length===2&&W===V){var J=new Date(p,ce.month-1,ce.day);ce.day==J.getDate()&&(!ge.max||ge.max.date.getTime()>=J.getTime())&&(ce.date.setFullYear(p),ce.year=be,ke.insert=[{pos:ke.pos+1,c:$[0]},{pos:ke.pos+2,c:$[1]}])}}return ke})(se,ae,L)),ae=(function(ce,ke,ge,be,W){if(!ke)return ke;if(ke&&ge.min&&!isNaN(ge.min.date.getTime())){var V;for(ce.reset(),m(ge).lastIndex=0;V=m(ge).exec(ge.inputFormat);){var $;if(($=h(V))&&$[3]){for(var J=$[1],Z=ce[$[2]],re=ge.min[$[2]],he=ge.max?ge.max[$[2]]:re+1,oe=[],le=!1,pe=0;pe<re.length;pe++)be.validPositions[pe+V.index]!==void 0||le?(oe[pe]=Z[pe],le=le||Z[pe]>re[pe]):(pe+V.index==0&&Z[pe]<re[pe]?(oe[pe]=Z[pe],le=!0):oe[pe]=re[pe],$[2]==="year"&&Z.length-1==pe&&re!=he&&(oe=(parseInt(oe.join(""))+1).toString().split("")),$[2]==="ampm"&&re!=he&&ge.min.date.getTime()>ce.date.getTime()&&(oe[pe]=he[pe]));J.call(ce._date,oe.join(""))}}ke=ge.min.date.getTime()<=ce.date.getTime(),ce.reInit()}return ke&&ge.max&&(isNaN(ge.max.date.getTime())||(ke=ge.max.date.getTime()>=ce.date.getTime())),ke})(se,ae=_.call(te,se,ae,L),L,j)),b!==void 0&&ae&&M.pos!==b?{buffer:I(L.inputFormat,se,L).split(""),refreshFromBuffer:{start:b,end:M.pos},pos:M.caret||M.pos}:ae},"postValidation"),onKeyDown:g(function(d,b,P,M){d.ctrlKey&&d.key===E.keys.ArrowRight&&(this.inputmask._valueSet(O(new Date,M)),y(this).trigger("setvalue"))},"onKeyDown"),onUnMask:g(function(d,b,P){return b&&I(P.outputFormat,B.call(this,d,P.inputFormat,P),P,!0)},"onUnMask"),casing:g(function(d,b,P,M){if(b.nativeDef.indexOf("[ap]")==0)return d.toLowerCase();if(b.nativeDef.indexOf("[AP]")==0)return d.toUpperCase();var L=G.getTest.call(this,[P-1]);return L.match.def.indexOf("[AP]")==0||P===0||L&&L.input===String.fromCharCode(E.keyCode.Space)||L&&L.match.def===String.fromCharCode(E.keyCode.Space)?d.toUpperCase():d.toLowerCase()},"casing"),onBeforeMask:g(function(d,b){return Object.prototype.toString.call(d)==="[object Date]"&&(d=O(d,b)),d},"onBeforeMask"),insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(f,c,k){var C,F=(C=k(2394))&&C.__esModule?C:{default:C};F.default.dependencyLib.extend(!0,F.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(f,c,k){var C,F=(C=k(2394))&&C.__esModule?C:{default:C},E=k(8711),T=k(4713);function G(w){return(function(v){if(Array.isArray(v))return U(v)})(w)||(function(v){if(typeof Symbol<"u"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)})(w)||(function(v,y){if(v){if(typeof v=="string")return U(v,y);var n=Object.prototype.toString.call(v).slice(8,-1);if(n==="Object"&&v.constructor&&(n=v.constructor.name),n==="Map"||n==="Set")return Array.from(v);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(v,y)}})(w)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var b=(o,l)=>m(o,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BbcNgwWy.cjs"),u=require("./FieldComponent.vue_vue_type_script_lang-x1KgzKHr.cjs"),e=require("vue"),h=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var y=Object.defineProperty,v=Object.getOwnPropertyDescriptor,i=b((o,l,p,s)=>{for(var n=s>1?void 0:s?v(l,p):l,g=o.length-1,a;g>=0;g--)(a=o[g])&&(n=(s?a(l,p,n):a(n))||n);return s&&n&&y(l,p,n),n},"__decorateClass"),d;let t=(d=class extends u.FieldComponentUnoCss{disabled=!1;bg="linear-gradient(330deg, #0aa86d 0%, #4eb18d 50%, #0ca86e 100%)";bgInactive="#a1a1a1";title=null;titleTheme="info";bgTogglerY="#3db37e";bgTogglerN="#FF3A19";titleTogglerY="Active";titleTogglerN="Inactive";togglerWidth="100px";togglerWidthActive="100px";togglerRevertColors=null;boxShadow="0 0 2px #1ca95e";disabledTitle="Disabled";disabledTitleTheme="grey";boxShadowHover="0 0 2px #9eeda8";labelColor="#fff";labelBoxShadow="0 0 4px #a4a4a4";type="switcher";modelValue=!1;value=!1;beforeMount(){this.value=this.inputValue||this.modelValue||!1,this.randomId=$VST.generateRandomKey(32)}emits=["update:modelValue","change"];onValueChange(){if(this.ignoreOuter)return this.ignoreOuter=!1;this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}randomId="";ignoreOuter=!1;modelValueChanged(l){this.ignoreOuter=!0,this.setValue(l)}},b(d,"SwitchField"),d);i([r.Prop(Boolean)],t.prototype,"disabled",2);i([r.Prop(String)],t.prototype,"bg",2);i([r.Prop(String)],t.prototype,"bgInactive",2);i([r.Prop(String)],t.prototype,"title",2);i([r.Prop(String)],t.prototype,"titleTheme",2);i([r.Prop(String)],t.prototype,"bgTogglerY",2);i([r.Prop(String)],t.prototype,"bgTogglerN",2);i([r.Prop(String)],t.prototype,"titleTogglerY",2);i([r.Prop(String)],t.prototype,"titleTogglerN",2);i([r.Prop(String)],t.prototype,"togglerWidth",2);i([r.Prop(String)],t.prototype,"togglerWidthActive",2);i([r.Prop(Boolean)],t.prototype,"togglerRevertColors",2);i([r.Prop(String)],t.prototype,"boxShadow",2);i([r.Prop(String)],t.prototype,"disabledTitle",2);i([r.Prop(String)],t.prototype,"disabledTitleTheme",2);i([r.Prop(String)],t.prototype,"boxShadowHover",2);i([r.Prop(String)],t.prototype,"labelColor",2);i([r.Prop(String)],t.prototype,"labelBoxShadow",2);i([r.Prop(String)],t.prototype,"type",2);i([r.Prop(Boolean,null)],t.prototype,"modelValue",2);i([r.Watch("modelValue",!0)],t.prototype,"modelValueChanged",1);t=i([r.VST],t);const c=["title","data-theme"],f={class:"switch_box"},S=["id","disabled"],w=["for"],k=["id","disabled"],C=["data-tg-off","data-tg-on","for"],V=["id","disabled"],T=["for"];function D(o,l,p,s,n,g){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container-switch",{"min-w64px":o.type!="checkbox","44px!":o.size=="lg","h25px!":o.size=="md"}]),title:o.disabled?o.disabledTitle:o.title,"data-theme":o.disabled?o.disabledTitleTheme:o.titleTheme,"data-offset":"[-15, 15]"},[l[6]||(l[6]=e.createTextVNode(" ",-1)),o.type=="switcher"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["switch",{"min-h25px! scale-80":o.size=="md",disabled:o.disabled}])},[e.createElementVNode("div",f,[e.createElementVNode("div",{class:"cursor-pointer fs-1rem mb2px",onClick:l[0]||(l[0]=a=>o.disabled?null:o.value=!o.value)},[e.renderSlot(o.$slots,"default")]),e.withDirectives(e.createElementVNode("input",{id:"switch-"+o.randomId,type:"checkbox","onUpdate:modelValue":l[1]||(l[1]=a=>o.value=a),disabled:o.disabled},null,8,S),[[e.vModelCheckbox,o.value]]),e.createElementVNode("label",{for:"switch-"+o.randomId,class:e.normalizeClass({disabled:o.disabled})},null,10,w)])],2)):o.type=="toggler"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["hybrid-checkbox",{["toggler-"+o.randomId]:!0}])},[e.withDirectives(e.createElementVNode("input",{class:"tgl tgl-flip",id:"toggler-"+o.randomId,type:"checkbox","onUpdate:modelValue":l[2]||(l[2]=a=>o.value=a),disabled:o.disabled},null,8,k),[[e.vModelCheckbox,o.value]]),e.createElementVNode("label",{class:"tgl-btn","data-tg-off":o.titleTogglerN,"data-tg-on":o.titleTogglerY,for:"toggler-"+o.randomId},null,8,C)],2)):o.type=="checkbox"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["typical-checkbox",{disabled:o.disabled}])},[e.createElementVNode("span",null,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",id:"checkbox-"+o.randomId,"onUpdate:modelValue":l[3]||(l[3]=a=>o.value=a),disabled:o.disabled},null,8,V),[[e.vModelCheckbox,o.value]]),e.createElementVNode("label",{class:e.normalizeClass(["check pb3px! w20px! p0!",{"bg-white":o.value,"mt3px!":!o.value}]),for:"checkbox-"+o.randomId},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w20px",{"svg-unchecked bg-white":!o.value}]),width:"20px",height:"20px",viewBox:"0 0 18 18"},[...l[5]||(l[5]=[e.createElementVNode("path",{d:"M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"},null,-1),e.createElementVNode("polyline",{points:"1 9 7 14 15 4"},null,-1)])],2))],10,T)]),o.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["cursor-pointer fs-1rem mx15px my2px whitespace-nowrap",{"fw-bold underline underline-black":o.value}]),onClick:l[4]||(l[4]=a=>o.disabled?null:o.value=!o.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.type=="toggler"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),{key:3},{default:e.withCtx(()=>[e.createTextVNode(".toggler-"+e.toDisplayString(o.randomId)+" .tgl-flip + .tgl-btn { perspective: "+e.toDisplayString(o.value?o.togglerWidthActive:o.togglerWidth)+" !important; width: "+e.toDisplayString(o.value?o.togglerWidthActive:o.togglerWidth)+" !important; } .toggler-"+e.toDisplayString(o.randomId)+" .tgl-flip + .tgl-btn:before { background: "+e.toDisplayString(o.togglerRevertColors?o.bgTogglerY:o.bgTogglerN)+" } .toggler-"+e.toDisplayString(o.randomId)+" .tgl-flip:checked + .tgl-btn:after { background: "+e.toDisplayString(o.togglerRevertColors?o.bgTogglerN:o.bgTogglerY)+" }",1)]),_:1})):e.createCommentVNode("",!0),o.type=="toggler"&&o.disabled?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),{key:4},{default:e.withCtx(()=>[e.createTextVNode(".toggler-"+e.toDisplayString(o.randomId)+" { opacity: 0.5 !important; }",1)]),_:1})):e.createCommentVNode("",!0),o.type=="checkbox"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),{key:5},{default:e.withCtx(()=>[e.createTextVNode("#checkbox-"+e.toDisplayString(o.randomId)+" { display: none; visibility: hidden; } #checkbox-"+e.toDisplayString(o.randomId)+" + label { box-sizing: content-box !important; }",1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),null,{default:e.withCtx(()=>[e.createTextVNode('[for="switch-'+e.toDisplayString(o.randomId)+'"]::before { background: '+e.toDisplayString(o.bg)+"; box-shadow: "+e.toDisplayString(o.boxShadow)+' !important; } [for="switch-'+e.toDisplayString(o.randomId)+'"]:not(.disabled):hover { box-shadow: '+e.toDisplayString(o.boxShadowHover)+'; } .switch_box [for="switch-'+e.toDisplayString(o.randomId)+'"]::after { background: '+e.toDisplayString(o.labelColor)+" !important; box-shadow: "+e.toDisplayString(o.labelBoxShadow)+'; } .switch_box [for="switch-'+e.toDisplayString(o.randomId)+'"] input { display: none !important; } .switch_box label[for="switch-'+e.toDisplayString(o.randomId)+'"] { background: '+e.toDisplayString(o.bgInactive)+" !important; }",1)]),_:1}))],10,c)}b(D,"render");const N=h._export_sfc(t,[["render",D]]);exports.default=N;
1
+ "use strict";var m=Object.defineProperty;var b=(o,l)=>m(o,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-OLIPwsTz.cjs"),u=require("./FieldComponent.vue_vue_type_script_lang-BsagC47A.cjs"),e=require("vue"),h=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var y=Object.defineProperty,v=Object.getOwnPropertyDescriptor,i=b((o,l,p,s)=>{for(var n=s>1?void 0:s?v(l,p):l,g=o.length-1,a;g>=0;g--)(a=o[g])&&(n=(s?a(l,p,n):a(n))||n);return s&&n&&y(l,p,n),n},"__decorateClass"),d;let t=(d=class extends u.FieldComponentUnoCss{disabled=!1;bg="linear-gradient(330deg, #0aa86d 0%, #4eb18d 50%, #0ca86e 100%)";bgInactive="#a1a1a1";title=null;titleTheme="info";bgTogglerY="#3db37e";bgTogglerN="#FF3A19";titleTogglerY="Active";titleTogglerN="Inactive";togglerWidth="100px";togglerWidthActive="100px";togglerRevertColors=null;boxShadow="0 0 2px #1ca95e";disabledTitle="Disabled";disabledTitleTheme="grey";boxShadowHover="0 0 2px #9eeda8";labelColor="#fff";labelBoxShadow="0 0 4px #a4a4a4";type="switcher";modelValue=!1;value=!1;beforeMount(){this.value=this.inputValue||this.modelValue||!1,this.randomId=$VST.generateRandomKey(32)}emits=["update:modelValue","change"];onValueChange(){if(this.ignoreOuter)return this.ignoreOuter=!1;this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}randomId="";ignoreOuter=!1;modelValueChanged(l){this.ignoreOuter=!0,this.setValue(l)}},b(d,"SwitchField"),d);i([r.Prop(Boolean)],t.prototype,"disabled",2);i([r.Prop(String)],t.prototype,"bg",2);i([r.Prop(String)],t.prototype,"bgInactive",2);i([r.Prop(String)],t.prototype,"title",2);i([r.Prop(String)],t.prototype,"titleTheme",2);i([r.Prop(String)],t.prototype,"bgTogglerY",2);i([r.Prop(String)],t.prototype,"bgTogglerN",2);i([r.Prop(String)],t.prototype,"titleTogglerY",2);i([r.Prop(String)],t.prototype,"titleTogglerN",2);i([r.Prop(String)],t.prototype,"togglerWidth",2);i([r.Prop(String)],t.prototype,"togglerWidthActive",2);i([r.Prop(Boolean)],t.prototype,"togglerRevertColors",2);i([r.Prop(String)],t.prototype,"boxShadow",2);i([r.Prop(String)],t.prototype,"disabledTitle",2);i([r.Prop(String)],t.prototype,"disabledTitleTheme",2);i([r.Prop(String)],t.prototype,"boxShadowHover",2);i([r.Prop(String)],t.prototype,"labelColor",2);i([r.Prop(String)],t.prototype,"labelBoxShadow",2);i([r.Prop(String)],t.prototype,"type",2);i([r.Prop(Boolean,null)],t.prototype,"modelValue",2);i([r.Watch("modelValue",!0)],t.prototype,"modelValueChanged",1);t=i([r.VST],t);const c=["title","data-theme"],f={class:"switch_box"},S=["id","disabled"],w=["for"],k=["id","disabled"],C=["data-tg-off","data-tg-on","for"],V=["id","disabled"],T=["for"];function D(o,l,p,s,n,g){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container-switch",{"min-w64px":o.type!="checkbox","44px!":o.size=="lg","h25px!":o.size=="md"}]),title:o.disabled?o.disabledTitle:o.title,"data-theme":o.disabled?o.disabledTitleTheme:o.titleTheme,"data-offset":"[-15, 15]"},[l[6]||(l[6]=e.createTextVNode(" ",-1)),o.type=="switcher"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["switch",{"min-h25px! scale-80":o.size=="md",disabled:o.disabled}])},[e.createElementVNode("div",f,[e.createElementVNode("div",{class:"cursor-pointer fs-1rem mb2px",onClick:l[0]||(l[0]=a=>o.disabled?null:o.value=!o.value)},[e.renderSlot(o.$slots,"default")]),e.withDirectives(e.createElementVNode("input",{id:"switch-"+o.randomId,type:"checkbox","onUpdate:modelValue":l[1]||(l[1]=a=>o.value=a),disabled:o.disabled},null,8,S),[[e.vModelCheckbox,o.value]]),e.createElementVNode("label",{for:"switch-"+o.randomId,class:e.normalizeClass({disabled:o.disabled})},null,10,w)])],2)):o.type=="toggler"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["hybrid-checkbox",{["toggler-"+o.randomId]:!0}])},[e.withDirectives(e.createElementVNode("input",{class:"tgl tgl-flip",id:"toggler-"+o.randomId,type:"checkbox","onUpdate:modelValue":l[2]||(l[2]=a=>o.value=a),disabled:o.disabled},null,8,k),[[e.vModelCheckbox,o.value]]),e.createElementVNode("label",{class:"tgl-btn","data-tg-off":o.titleTogglerN,"data-tg-on":o.titleTogglerY,for:"toggler-"+o.randomId},null,8,C)],2)):o.type=="checkbox"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["typical-checkbox",{disabled:o.disabled}])},[e.createElementVNode("span",null,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",id:"checkbox-"+o.randomId,"onUpdate:modelValue":l[3]||(l[3]=a=>o.value=a),disabled:o.disabled},null,8,V),[[e.vModelCheckbox,o.value]]),e.createElementVNode("label",{class:e.normalizeClass(["check pb3px! w20px! p0!",{"bg-white":o.value,"mt3px!":!o.value}]),for:"checkbox-"+o.randomId},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w20px",{"svg-unchecked bg-white":!o.value}]),width:"20px",height:"20px",viewBox:"0 0 18 18"},[...l[5]||(l[5]=[e.createElementVNode("path",{d:"M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"},null,-1),e.createElementVNode("polyline",{points:"1 9 7 14 15 4"},null,-1)])],2))],10,T)]),o.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["cursor-pointer fs-1rem mx15px my2px whitespace-nowrap",{"fw-bold underline underline-black":o.value}]),onClick:l[4]||(l[4]=a=>o.disabled?null:o.value=!o.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.type=="toggler"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),{key:3},{default:e.withCtx(()=>[e.createTextVNode(".toggler-"+e.toDisplayString(o.randomId)+" .tgl-flip + .tgl-btn { perspective: "+e.toDisplayString(o.value?o.togglerWidthActive:o.togglerWidth)+" !important; width: "+e.toDisplayString(o.value?o.togglerWidthActive:o.togglerWidth)+" !important; } .toggler-"+e.toDisplayString(o.randomId)+" .tgl-flip + .tgl-btn:before { background: "+e.toDisplayString(o.togglerRevertColors?o.bgTogglerY:o.bgTogglerN)+" } .toggler-"+e.toDisplayString(o.randomId)+" .tgl-flip:checked + .tgl-btn:after { background: "+e.toDisplayString(o.togglerRevertColors?o.bgTogglerN:o.bgTogglerY)+" }",1)]),_:1})):e.createCommentVNode("",!0),o.type=="toggler"&&o.disabled?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),{key:4},{default:e.withCtx(()=>[e.createTextVNode(".toggler-"+e.toDisplayString(o.randomId)+" { opacity: 0.5 !important; }",1)]),_:1})):e.createCommentVNode("",!0),o.type=="checkbox"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),{key:5},{default:e.withCtx(()=>[e.createTextVNode("#checkbox-"+e.toDisplayString(o.randomId)+" { display: none; visibility: hidden; } #checkbox-"+e.toDisplayString(o.randomId)+" + label { box-sizing: content-box !important; }",1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent("style"),null,{default:e.withCtx(()=>[e.createTextVNode('[for="switch-'+e.toDisplayString(o.randomId)+'"]::before { background: '+e.toDisplayString(o.bg)+"; box-shadow: "+e.toDisplayString(o.boxShadow)+' !important; } [for="switch-'+e.toDisplayString(o.randomId)+'"]:not(.disabled):hover { box-shadow: '+e.toDisplayString(o.boxShadowHover)+'; } .switch_box [for="switch-'+e.toDisplayString(o.randomId)+'"]::after { background: '+e.toDisplayString(o.labelColor)+" !important; box-shadow: "+e.toDisplayString(o.labelBoxShadow)+'; } .switch_box [for="switch-'+e.toDisplayString(o.randomId)+'"] input { display: none !important; } .switch_box label[for="switch-'+e.toDisplayString(o.randomId)+'"] { background: '+e.toDisplayString(o.bgInactive)+" !important; }",1)]),_:1}))],10,c)}b(D,"render");const N=h._export_sfc(t,[["render",D]]);exports.default=N;
@@ -1,7 +1,7 @@
1
1
  var V = Object.defineProperty;
2
2
  var y = (e, l) => V(e, "name", { value: l, configurable: !0 });
3
- import { P as a, W as $, V as c } from "./index-BfGl0dSS.js";
4
- import { F as B } from "./FieldComponent.vue_vue_type_script_lang-BYq38Had.js";
3
+ import { P as a, W as $, V as c } from "./index-SCGYUD41.js";
4
+ import { F as B } from "./FieldComponent.vue_vue_type_script_lang-doAG-SHI.js";
5
5
  import { createElementBlock as p, openBlock as s, normalizeClass as g, createTextVNode as h, createCommentVNode as m, createBlock as w, createElementVNode as d, withDirectives as T, renderSlot as I, vModelCheckbox as C, resolveDynamicComponent as S, withCtx as k, toDisplayString as r } from "vue";
6
6
  import { _ as N } from "./_plugin-vue_export-helper-B9nE8o7z.js";
7
7
  var W = Object.defineProperty, O = Object.getOwnPropertyDescriptor, t = /* @__PURE__ */ y((e, l, f, u) => {
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var l=(t,o)=>m(t,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index-BbcNgwWy.cjs"),e=require("vue"),_=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var b=Object.getOwnPropertyDescriptor,B=l((t,o,d,i)=>{for(var s=i>1?void 0:i?b(o,d):o,c=t.length-1,a;c>=0;c--)(a=t[c])&&(s=a(s)||s);return s},"__decorateClass"),n;let u=(n=class extends p.BaseComponent{currentTab="default";CommentT=Comment;mounted(){}setCurrentTab(o){this.currentTab=o}getTabTitle(o){return o.props?.title||"Без названия"}},l(n,"Tabs"),n);u=B([p.VST],u);const v={class:"tabs"},h={class:"tabs__headers"},$=["onClick"],C=["onClick"],T={key:0,class:"tabs__content"};function g(t,o,d,i,s,c){return e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$title-")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r.split("-")[1]}]),onClick:l(k=>t.setCurrentTab(r.split("-")[1]),"onClick")},[e.renderSlot(t.$slots,r,{},void 0,!0)],10,$)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!r.startsWith("$title")&&!t.$slots?.[`$title-${r}`]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r}]),onClick:l(k=>t.setCurrentTab(r),"onClick")},e.toDisplayString(r),11,C)):e.createCommentVNode("",!0)],64))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$")?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(t.$slots,r,{},void 0,!0)],512)),[[e.vShow,t.currentTab==r]])],64))),256))])}l(g,"render");const E=_._export_sfc(u,[["render",g],["__scopeId","data-v-f8d3de0a"]]);exports.default=E;
1
+ "use strict";var m=Object.defineProperty;var l=(t,o)=>m(t,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index-OLIPwsTz.cjs"),e=require("vue"),_=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var b=Object.getOwnPropertyDescriptor,B=l((t,o,d,i)=>{for(var s=i>1?void 0:i?b(o,d):o,c=t.length-1,a;c>=0;c--)(a=t[c])&&(s=a(s)||s);return s},"__decorateClass"),n;let u=(n=class extends p.BaseComponent{currentTab="default";CommentT=Comment;mounted(){}setCurrentTab(o){this.currentTab=o}getTabTitle(o){return o.props?.title||"Без названия"}},l(n,"Tabs"),n);u=B([p.VST],u);const v={class:"tabs"},h={class:"tabs__headers"},$=["onClick"],C=["onClick"],T={key:0,class:"tabs__content"};function g(t,o,d,i,s,c){return e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$title-")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r.split("-")[1]}]),onClick:l(k=>t.setCurrentTab(r.split("-")[1]),"onClick")},[e.renderSlot(t.$slots,r,{},void 0,!0)],10,$)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!r.startsWith("$title")&&!t.$slots?.[`$title-${r}`]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r}]),onClick:l(k=>t.setCurrentTab(r),"onClick")},e.toDisplayString(r),11,C)):e.createCommentVNode("",!0)],64))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$")?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(t.$slots,r,{},void 0,!0)],512)),[[e.vShow,t.currentTab==r]])],64))),256))])}l(g,"render");const E=_._export_sfc(u,[["render",g],["__scopeId","data-v-f8d3de0a"]]);exports.default=E;
@@ -1,6 +1,6 @@
1
1
  var C = Object.defineProperty;
2
2
  var l = (t, o) => C(t, "name", { value: o, configurable: !0 });
3
- import { a as f, V as m } from "./index-BfGl0dSS.js";
3
+ import { a as f, V as m } from "./index-SCGYUD41.js";
4
4
  import { createElementBlock as s, openBlock as r, createElementVNode as k, Fragment as n, renderList as _, createCommentVNode as p, normalizeClass as $, renderSlot as v, toDisplayString as g, withDirectives as y, vShow as w } from "vue";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-B9nE8o7z.js";
6
6
  var S = Object.getOwnPropertyDescriptor, V = /* @__PURE__ */ l((t, o, h, c) => {
@@ -1,8 +1,8 @@
1
1
  var Um = Object.defineProperty;
2
2
  var a = (t, e) => Um(t, "name", { value: e, configurable: !0 });
3
3
  import { defineComponent as jr, h as Ur, ref as Xu, getCurrentInstance as Wm, watchEffect as qm, nextTick as oh, unref as Km, onBeforeUnmount as Qu, markRaw as Jm, customRef as Gm, onMounted as lh, resolveComponent as Jn, createBlock as Bt, openBlock as se, normalizeClass as Y, withCtx as B, withDirectives as sl, createElementVNode as x, createElementBlock as Ve, createCommentVNode as we, createVNode as W, vShow as ol, withModifiers as q, withKeys as rt, normalizeStyle as Ym, toDisplayString as zc, resolveDynamicComponent as Zm, createTextVNode as Xm } from "vue";
4
- import { b as Qm, c as e1, d as t1, P as Ye, W as $i, V as n1 } from "./index-BfGl0dSS.js";
5
- import { F as r1 } from "./FieldComponent.vue_vue_type_script_lang-BYq38Had.js";
4
+ import { b as Qm, c as e1, d as t1, P as Ye, W as $i, V as n1 } from "./index-SCGYUD41.js";
5
+ import { F as r1 } from "./FieldComponent.vue_vue_type_script_lang-doAG-SHI.js";
6
6
  import { g as i1 } from "./_commonjsHelpers-CO8R3Anj.js";
7
7
  import { r as s1 } from "./NoSymbolIcon-aoAIVIx7.js";
8
8
  import { _ as o1 } from "./_plugin-vue_export-helper-B9nE8o7z.js";
@@ -1,4 +1,4 @@
1
- "use strict";var Em=Object.defineProperty;var a=(t,e)=>Em(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),te=require("./index-BbcNgwWy.cjs"),Sm=require("./FieldComponent.vue_vue_type_script_lang-x1KgzKHr.cjs"),Mm=require("./_commonjsHelpers-BB06FEA1.cjs"),Am=require("./NoSymbolIcon-BoH28Kep.cjs"),Tm=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function he(t){this.content=t}a(he,"OrderedMap");he.prototype={constructor:he,find:a(function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},"find"),get:a(function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},"get"),update:a(function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),o=r.content.slice();return i==-1?o.push(n||t,e):(o[i+1]=e,n&&(o[i]=n)),new he(o)},"update"),remove:a(function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new he(n)},"remove"),addToStart:a(function(t,e){return new he([t,e].concat(this.remove(t).content))},"addToStart"),addToEnd:a(function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new he(n)},"addToEnd"),addBefore:a(function(t,e,n){var r=this.remove(e),i=r.content.slice(),o=r.find(t);return i.splice(o==-1?i.length:o,0,e,n),new he(i)},"addBefore"),forEach:a(function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},"forEach"),prepend:a(function(t){return t=he.from(t),t.size?new he(t.content.concat(this.subtract(t).content)):this},"prepend"),append:a(function(t){return t=he.from(t),t.size?new he(this.subtract(t).content.concat(t.content)):this},"append"),subtract:a(function(t){var e=this;t=he.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},"subtract"),toObject:a(function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},"toObject"),get size(){return this.content.length>>1}};he.from=function(t){if(t instanceof he)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new he(e)};function Hf(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){let s=Hf(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}a(Hf,"findDiffStart");function jf(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let s=t.child(--i),l=e.child(--o),u=s.nodeSize;if(s==l){n-=u,r-=u;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let c=0,d=Math.min(s.text.length,l.text.length);for(;c<d&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let c=jf(s.content,l.content,n-1,r-1);if(c)return c}n-=u,r-=u}}a(jf,"findDiffEnd");const fe=class fe{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,o){for(let s=0,l=0;l<n;s++){let u=this.content[s],c=l+u.nodeSize;if(c>e&&r(u,i+l,o||null,s)!==!1&&u.content.size){let d=l+1;u.nodesBetween(Math.max(0,e-d),Math.min(u.content.size,n-d),r,i+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",s=!0;return this.nodesBetween(e,n,(l,u)=>{let c=l.isText?l.text.slice(Math.max(e,u)-u,n-u):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(s?s=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new fe(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let o=0,s=0;s<n;o++){let l=this.content[o],u=s+l.nodeSize;u>e&&((s<e||u>n)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),i+=l.nodeSize),s=u}return new fe(r,i)}cutByIndex(e,n){return e==n?fe.empty:e==0&&n==this.content.length?this:new fe(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new fe(i,o)}addToStart(e){return new fe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new fe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return Hf(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return jf(this,e,n,r)}findIndex(e){if(e==0)return zi(0,e);if(e==this.size)return zi(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e?zi(n+1,o):zi(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return fe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new fe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return fe.empty;let n,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(n||(n=e.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new fe(n||e,r)}static from(e){if(!e)return fe.empty;if(e instanceof fe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new fe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};a(fe,"Fragment");let M=fe;M.empty=new M([],0);const qs={index:0,offset:0};function zi(t,e){return qs.index=t,qs.offset=e,qs}a(zi,"retIndex");function oo(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!oo(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!oo(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}a(oo,"compareDeep");var Gt;let V=(Gt=class{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&oo(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Gt.none;if(e instanceof Gt)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}},a(Gt,"Mark"),Gt);V.none=[];const Fa=class Fa extends Error{};a(Fa,"ReplaceError");let br=Fa;const Ft=class Ft{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=Wf(this.content,e+this.openStart,n);return r&&new Ft(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Ft(Uf(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Ft.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ft(M.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new Ft(e,r,i)}};a(Ft,"Slice");let T=Ft;T.empty=new T(M.empty,0,0);function Uf(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:s,offset:l}=t.findIndex(n);if(i==e||o.isText){if(l!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(Uf(o.content,e-i-1,n-i-1)))}a(Uf,"removeRange");function Wf(t,e,n,r){let{index:i,offset:o}=t.findIndex(e),s=t.maybeChild(i);if(o==e||s.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=Wf(s.content,e-o-1,n,s);return l&&t.replaceChild(i,s.copy(l))}a(Wf,"insertInto");function Dm(t,e,n){if(n.openStart>t.depth)throw new br("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new br("Inconsistent open depths");return qf(t,e,n,0)}a(Dm,"replace$1");function qf(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=qf(t,e,n,r+1);return o.copy(o.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,l=s.content;return xn(s,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=Nm(n,t);return xn(o,Jf(t,s,l,e,r))}else return xn(o,so(t,e,r))}a(qf,"replaceOuter");function Kf(t,e){if(!e.type.compatibleContent(t.type))throw new br("Cannot join "+e.type.name+" onto "+t.type.name)}a(Kf,"checkJoin");function Nl(t,e,n){let r=t.node(n);return Kf(r,e.node(n)),r}a(Nl,"joinable$1");function kn(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}a(kn,"addNode");function jr(t,e,n,r){let i=(e||t).node(n),o=0,s=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(kn(t.nodeAfter,r),o++));for(let l=o;l<s;l++)kn(i.child(l),r);e&&e.depth==n&&e.textOffset&&kn(e.nodeBefore,r)}a(jr,"addRange");function xn(t,e){return t.type.checkContent(e),t.copy(e)}a(xn,"close");function Jf(t,e,n,r,i){let o=t.depth>i&&Nl(t,e,i+1),s=r.depth>i&&Nl(n,r,i+1),l=[];return jr(null,t,i,l),o&&s&&e.index(i)==n.index(i)?(Kf(o,s),kn(xn(o,Jf(t,e,n,r,i+1)),l)):(o&&kn(xn(o,so(t,e,i+1)),l),jr(e,n,i,l),s&&kn(xn(s,so(n,r,i+1)),l)),jr(r,null,i,l),new M(l)}a(Jf,"replaceThreeWay");function so(t,e,n){let r=[];if(jr(null,t,n,r),t.depth>n){let i=Nl(t,e,n+1);kn(xn(i,so(t,e,n+1)),r)}return jr(e,null,n,r),new M(r)}a(so,"replaceTwoWay");function Nm(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(M.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}a(Nm,"prepareSliceForReplace");const ti=class ti{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return V.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new yr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let s=e;;){let{index:l,offset:u}=s.content.findIndex(o),c=o-u;if(r.push(s,l,i+u),!c||(s=s.child(l),s.isText))break;o=c-1,i+=u+1}return new ti(n,r,o)}static resolveCached(e,n){let r=xc.get(e);if(r)for(let o=0;o<r.elts.length;o++){let s=r.elts[o];if(s.pos==n)return s}else xc.set(e,r=new Ol);let i=r.elts[r.i]=ti.resolve(e,n);return r.i=(r.i+1)%Om,i}};a(ti,"ResolvedPos");let lo=ti;const za=class za{constructor(){this.elts=[],this.i=0}};a(za,"ResolveCache");let Ol=za;const Om=12,xc=new WeakMap,Pa=class Pa{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};a(Pa,"NodeRange");let yr=Pa;const Rm=Object.create(null);var Yt;let Wt=(Yt=class{constructor(e,n,r,i=V.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&oo(this.attrs,n||e.defaultAttrs||Rm)&&V.sameSet(this.marks,r||V.none)}copy(e=null){return e==this.content?this:new Yt(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Yt(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return T.empty;let i=this.resolve(e),o=this.resolve(n),s=r?0:i.sharedDepth(n),l=i.start(s),c=i.node(s).content.cut(i.pos-l,o.pos-l);return new T(c,i.depth-s,o.depth-s)}replace(e,n,r){return Dm(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return lo.resolveCached(this,e)}resolveNoCache(e){return lo.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Gf(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=M.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let u=i;u<o;u++)if(!this.type.allowsMarks(r.child(u).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),s=o&&o.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=V.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!V.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=M.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}},a(Yt,"Node"),Yt);Wt.prototype.text=void 0;const ni=class ni extends Wt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Gf(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ni(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ni(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};a(ni,"TextNode");let Rl=ni;function Gf(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}a(Gf,"wrapMarks");const ps=class ps{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Il(e,n);if(r.next==null)return ps.empty;let i=Yf(r);r.next&&r.err("Unexpected trailing text");let o=Bm(Pm(i));return $m(o,r),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function o(s,l){let u=s.matchFragment(e,r);if(u&&(!n||u.validEnd))return M.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:d,next:f}=s.next[c];if(!(d.isText||d.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=o(f,l.concat(d));if(h)return h}}return null}return a(o,"search"),o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let s=[];for(let l=i;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:l,next:u}=o.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||u.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return a(n,"scan"),n(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return o}).join(`
1
+ "use strict";var Em=Object.defineProperty;var a=(t,e)=>Em(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),te=require("./index-OLIPwsTz.cjs"),Sm=require("./FieldComponent.vue_vue_type_script_lang-BsagC47A.cjs"),Mm=require("./_commonjsHelpers-BB06FEA1.cjs"),Am=require("./NoSymbolIcon-BoH28Kep.cjs"),Tm=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function he(t){this.content=t}a(he,"OrderedMap");he.prototype={constructor:he,find:a(function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},"find"),get:a(function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},"get"),update:a(function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),o=r.content.slice();return i==-1?o.push(n||t,e):(o[i+1]=e,n&&(o[i]=n)),new he(o)},"update"),remove:a(function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new he(n)},"remove"),addToStart:a(function(t,e){return new he([t,e].concat(this.remove(t).content))},"addToStart"),addToEnd:a(function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new he(n)},"addToEnd"),addBefore:a(function(t,e,n){var r=this.remove(e),i=r.content.slice(),o=r.find(t);return i.splice(o==-1?i.length:o,0,e,n),new he(i)},"addBefore"),forEach:a(function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},"forEach"),prepend:a(function(t){return t=he.from(t),t.size?new he(t.content.concat(this.subtract(t).content)):this},"prepend"),append:a(function(t){return t=he.from(t),t.size?new he(this.subtract(t).content.concat(t.content)):this},"append"),subtract:a(function(t){var e=this;t=he.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},"subtract"),toObject:a(function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},"toObject"),get size(){return this.content.length>>1}};he.from=function(t){if(t instanceof he)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new he(e)};function Hf(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){let s=Hf(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}a(Hf,"findDiffStart");function jf(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let s=t.child(--i),l=e.child(--o),u=s.nodeSize;if(s==l){n-=u,r-=u;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let c=0,d=Math.min(s.text.length,l.text.length);for(;c<d&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let c=jf(s.content,l.content,n-1,r-1);if(c)return c}n-=u,r-=u}}a(jf,"findDiffEnd");const fe=class fe{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,o){for(let s=0,l=0;l<n;s++){let u=this.content[s],c=l+u.nodeSize;if(c>e&&r(u,i+l,o||null,s)!==!1&&u.content.size){let d=l+1;u.nodesBetween(Math.max(0,e-d),Math.min(u.content.size,n-d),r,i+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",s=!0;return this.nodesBetween(e,n,(l,u)=>{let c=l.isText?l.text.slice(Math.max(e,u)-u,n-u):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(s?s=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new fe(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let o=0,s=0;s<n;o++){let l=this.content[o],u=s+l.nodeSize;u>e&&((s<e||u>n)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),i+=l.nodeSize),s=u}return new fe(r,i)}cutByIndex(e,n){return e==n?fe.empty:e==0&&n==this.content.length?this:new fe(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new fe(i,o)}addToStart(e){return new fe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new fe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return Hf(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return jf(this,e,n,r)}findIndex(e){if(e==0)return zi(0,e);if(e==this.size)return zi(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e?zi(n+1,o):zi(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return fe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new fe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return fe.empty;let n,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(n||(n=e.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new fe(n||e,r)}static from(e){if(!e)return fe.empty;if(e instanceof fe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new fe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};a(fe,"Fragment");let M=fe;M.empty=new M([],0);const qs={index:0,offset:0};function zi(t,e){return qs.index=t,qs.offset=e,qs}a(zi,"retIndex");function oo(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!oo(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!oo(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}a(oo,"compareDeep");var Gt;let V=(Gt=class{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&oo(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Gt.none;if(e instanceof Gt)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}},a(Gt,"Mark"),Gt);V.none=[];const Fa=class Fa extends Error{};a(Fa,"ReplaceError");let br=Fa;const Ft=class Ft{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=Wf(this.content,e+this.openStart,n);return r&&new Ft(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Ft(Uf(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Ft.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ft(M.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new Ft(e,r,i)}};a(Ft,"Slice");let T=Ft;T.empty=new T(M.empty,0,0);function Uf(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:s,offset:l}=t.findIndex(n);if(i==e||o.isText){if(l!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(Uf(o.content,e-i-1,n-i-1)))}a(Uf,"removeRange");function Wf(t,e,n,r){let{index:i,offset:o}=t.findIndex(e),s=t.maybeChild(i);if(o==e||s.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=Wf(s.content,e-o-1,n,s);return l&&t.replaceChild(i,s.copy(l))}a(Wf,"insertInto");function Dm(t,e,n){if(n.openStart>t.depth)throw new br("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new br("Inconsistent open depths");return qf(t,e,n,0)}a(Dm,"replace$1");function qf(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=qf(t,e,n,r+1);return o.copy(o.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,l=s.content;return xn(s,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=Nm(n,t);return xn(o,Jf(t,s,l,e,r))}else return xn(o,so(t,e,r))}a(qf,"replaceOuter");function Kf(t,e){if(!e.type.compatibleContent(t.type))throw new br("Cannot join "+e.type.name+" onto "+t.type.name)}a(Kf,"checkJoin");function Nl(t,e,n){let r=t.node(n);return Kf(r,e.node(n)),r}a(Nl,"joinable$1");function kn(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}a(kn,"addNode");function jr(t,e,n,r){let i=(e||t).node(n),o=0,s=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(kn(t.nodeAfter,r),o++));for(let l=o;l<s;l++)kn(i.child(l),r);e&&e.depth==n&&e.textOffset&&kn(e.nodeBefore,r)}a(jr,"addRange");function xn(t,e){return t.type.checkContent(e),t.copy(e)}a(xn,"close");function Jf(t,e,n,r,i){let o=t.depth>i&&Nl(t,e,i+1),s=r.depth>i&&Nl(n,r,i+1),l=[];return jr(null,t,i,l),o&&s&&e.index(i)==n.index(i)?(Kf(o,s),kn(xn(o,Jf(t,e,n,r,i+1)),l)):(o&&kn(xn(o,so(t,e,i+1)),l),jr(e,n,i,l),s&&kn(xn(s,so(n,r,i+1)),l)),jr(r,null,i,l),new M(l)}a(Jf,"replaceThreeWay");function so(t,e,n){let r=[];if(jr(null,t,n,r),t.depth>n){let i=Nl(t,e,n+1);kn(xn(i,so(t,e,n+1)),r)}return jr(e,null,n,r),new M(r)}a(so,"replaceTwoWay");function Nm(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(M.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}a(Nm,"prepareSliceForReplace");const ti=class ti{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return V.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new yr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let s=e;;){let{index:l,offset:u}=s.content.findIndex(o),c=o-u;if(r.push(s,l,i+u),!c||(s=s.child(l),s.isText))break;o=c-1,i+=u+1}return new ti(n,r,o)}static resolveCached(e,n){let r=xc.get(e);if(r)for(let o=0;o<r.elts.length;o++){let s=r.elts[o];if(s.pos==n)return s}else xc.set(e,r=new Ol);let i=r.elts[r.i]=ti.resolve(e,n);return r.i=(r.i+1)%Om,i}};a(ti,"ResolvedPos");let lo=ti;const za=class za{constructor(){this.elts=[],this.i=0}};a(za,"ResolveCache");let Ol=za;const Om=12,xc=new WeakMap,Pa=class Pa{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};a(Pa,"NodeRange");let yr=Pa;const Rm=Object.create(null);var Yt;let Wt=(Yt=class{constructor(e,n,r,i=V.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&oo(this.attrs,n||e.defaultAttrs||Rm)&&V.sameSet(this.marks,r||V.none)}copy(e=null){return e==this.content?this:new Yt(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Yt(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return T.empty;let i=this.resolve(e),o=this.resolve(n),s=r?0:i.sharedDepth(n),l=i.start(s),c=i.node(s).content.cut(i.pos-l,o.pos-l);return new T(c,i.depth-s,o.depth-s)}replace(e,n,r){return Dm(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return lo.resolveCached(this,e)}resolveNoCache(e){return lo.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Gf(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=M.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let u=i;u<o;u++)if(!this.type.allowsMarks(r.child(u).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),s=o&&o.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=V.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!V.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=M.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}},a(Yt,"Node"),Yt);Wt.prototype.text=void 0;const ni=class ni extends Wt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Gf(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ni(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ni(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};a(ni,"TextNode");let Rl=ni;function Gf(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}a(Gf,"wrapMarks");const ps=class ps{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Il(e,n);if(r.next==null)return ps.empty;let i=Yf(r);r.next&&r.err("Unexpected trailing text");let o=Bm(Pm(i));return $m(o,r),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function o(s,l){let u=s.matchFragment(e,r);if(u&&(!n||u.validEnd))return M.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:d,next:f}=s.next[c];if(!(d.isText||d.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=o(f,l.concat(d));if(h)return h}}return null}return a(o,"search"),o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let s=[];for(let l=i;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:l,next:u}=o.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||u.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return a(n,"scan"),n(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return o}).join(`
2
2
  `)}};a(ps,"ContentMatch");let On=ps;On.empty=new On(!0);const Ba=class Ba{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};a(Ba,"TokenStream");let Il=Ba;function Yf(t){let e=[];do e.push(Im(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}a(Yf,"parseExpr");function Im(t){let e=[];do e.push(Lm(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}a(Im,"parseExprSeq");function Lm(t){let e=zm(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=_m(t,e);else break;return e}a(Lm,"parseExprSubscript");function wc(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}a(wc,"parseNum");function _m(t,e){let n=wc(t),r=n;return t.eat(",")&&(t.next!="}"?r=wc(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}a(_m,"parseExprRange");function Fm(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let s=n[o];s.isInGroup(e)&&i.push(s)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}a(Fm,"resolveName");function zm(t){if(t.eat("(")){let e=Yf(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Fm(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}a(zm,"parseExprAtom");function Pm(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}a(n,"node");function r(s,l,u){let c={term:u,to:l};return e[s].push(c),c}a(r,"edge");function i(s,l){s.forEach(u=>u.to=l)}a(i,"connect");function o(s,l){if(s.type=="choice")return s.exprs.reduce((u,c)=>u.concat(o(c,l)),[]);if(s.type=="seq")for(let u=0;;u++){let c=o(s.exprs[u],l);if(u==s.exprs.length-1)return c;i(c,l=n())}else if(s.type=="star"){let u=n();return r(l,u),i(o(s.expr,u),u),[r(u)]}else if(s.type=="plus"){let u=n();return i(o(s.expr,l),u),i(o(s.expr,u),u),[r(u)]}else{if(s.type=="opt")return[r(l)].concat(o(s.expr,l));if(s.type=="range"){let u=l;for(let c=0;c<s.min;c++){let d=n();i(o(s.expr,u),d),u=d}if(s.max==-1)i(o(s.expr,u),u);else for(let c=s.min;c<s.max;c++){let d=n();r(u,d),i(o(s.expr,u),d),u=d}return[r(u)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}a(o,"compile")}a(Pm,"nfa");function Zf(t,e){return e-t}a(Zf,"cmp");function Cc(t,e){let n=[];return r(e),n.sort(Zf);function r(i){let o=t[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let s=0;s<o.length;s++){let{term:l,to:u}=o[s];!l&&n.indexOf(u)==-1&&r(u)}}a(r,"scan")}a(Cc,"nullFrom");function Bm(t){let e=Object.create(null);return n(Cc(t,0));function n(r){let i=[];r.forEach(s=>{t[s].forEach(({term:l,to:u})=>{if(!l)return;let c;for(let d=0;d<i.length;d++)i[d][0]==l&&(c=i[d][1]);Cc(t,u).forEach(d=>{c||i.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let o=e[r.join(",")]=new On(r.indexOf(t.length-1)>-1);for(let s=0;s<i.length;s++){let l=i[s][1].sort(Zf);o.next.push({type:i[s][0],next:e[l.join(",")]||n(l)})}return o}}a(Bm,"dfa");function $m(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],o=!i.validEnd,s=[];for(let l=0;l<i.next.length;l++){let{type:u,next:c}=i.next[l];s.push(u.name),o&&!(u.isText||u.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}a($m,"checkForDeadEnds");function Xf(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}a(Xf,"defaultAttrs");function Qf(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let o=t[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}a(Qf,"computeAttrs");function eh(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let o=t[i];o.validate&&o.validate(e[i])}}a(eh,"checkAttrs");function th(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Ll(t,r,e[r]);return n}a(th,"initAttrs");var Sn;let vc=(Sn=class{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=th(e,r.attrs),this.defaultAttrs=Xf(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==On.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Qf(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wt(this,this.computeAttrs(e),M.from(n),V.setFrom(r))}createChecked(e=null,n,r){return n=M.from(n),this.checkContent(n),new Wt(this,this.computeAttrs(e),n,V.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=M.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(M.empty,!0);return o?new Wt(this,e,n.append(o),V.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){eh(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:V.none:e}static compile(e,n){let r=Object.create(null);e.forEach((o,s)=>r[o]=new Sn(o,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}},a(Sn,"NodeType"),Sn);function Vm(t,e,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}a(Vm,"validateType");const $a=class $a{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Vm(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}};a($a,"Attribute");let Ll=$a;const ms=class ms{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=th(e,i.attrs),this.excluded=null;let o=Xf(this.attrs);this.instance=o?new V(this,o):null}create(e=null){return!e&&this.instance?this.instance:new V(this,Qf(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,s)=>r[o]=new ms(o,i++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){eh(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}};a(ms,"MarkType");let uo=ms;const Va=class Va{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=he.from(e.nodes),n.marks=he.from(e.marks||{}),this.nodes=vc.compile(this.spec.nodes,this),this.marks=uo.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],s=o.spec.content||"",l=o.spec.marks;if(o.contentMatch=r[s]||(r[s]=On.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=l=="_"?null:l?Ec(this,l.split(" ")):l==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:Ec(this,s.split(" "))}this.nodeFromJSON=i=>Wt.fromJSON(this,i),this.markFromJSON=i=>V.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof vc){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Rl(r,r.defaultAttrs,e,V.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};a(Va,"Schema");let ai=Va;function Ec(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t.marks[i],s=o;if(o)n.push(o);else for(let l in t.marks){let u=t.marks[l];(i=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=u)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}a(Ec,"gatherMarks");function Hm(t){return t.tag!=null}a(Hm,"isTagRule");function jm(t){return t.style!=null}a(jm,"isStyleRule");const ri=class ri{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Hm(i))this.tags.push(i);else if(jm(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new ao(this,n,!1);return r.addAll(e,V.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new ao(this,n,!0);return r.addAll(e,V.none,n.from,n.to),T.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(qm(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let s=o.getAttrs(e);if(s===!1)continue;o.attrs=s||void 0}return o}}}matchStyle(e,n,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let s=this.styles[o],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(s.getAttrs){let u=s.getAttrs(n);if(u===!1)continue;s.attrs=u||void 0}return s}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let l=n[s];if((l.priority==null?50:l.priority)<o)break}n.splice(s,0,i)}a(r,"insert");for(let i in e.marks){let o=e.marks[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Mc(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Mc(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ri(e,ri.schemaRules(e)))}};a(ri,"DOMParser");let qt=ri;const nh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Um={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},rh={ol:!0,ul:!0},ci=1,_l=2,Ur=4;function Sc(t,e,n){return e!=null?(e?ci:0)|(e==="full"?_l:0):t&&t.whitespace=="pre"?ci|_l:n&~Ur}a(Sc,"wsOptionsFor");const Ha=class Ha{constructor(e,n,r,i,o,s){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=V.none,this.match=o||(s&Ur?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(M.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&ci)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=M.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(M.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!nh.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}};a(Ha,"NodeContext");let Wn=Ha;const ja=class ja{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,o,s=Sc(null,n.preserveWhitespace,0)|(r?Ur:0);i?o=new Wn(i.type,i.attrs,V.none,!0,n.topMatch||i.type.contentMatch,s):r?o=new Wn(null,null,V.none,!0,null,s):o=new Wn(e.schema.topNodeType,null,V.none,!0,null,s),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,o=i.options&_l?"full":this.localPreserveWS||(i.options&ci)>0,{schema:s}=this.parser;if(o==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(o)if(o==="full")r=r.replace(/\r\n?/g,`
3
3
  `);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let u=0;u<l.length;u++)u&&this.insertNode(s.linebreakReplacement.create(),n,!0),l[u]&&this.insertNode(s.text(l[u]),n,!/\S/.test(l[u]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=i.content[i.content.length-1],u=e.previousSibling;(!l||u&&u.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,o=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),l;rh.hasOwnProperty(s)&&this.parser.normalizeLists&&Wm(e);let u=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(u?u.ignore:Um.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!u||u.skip||u.closeParent){u&&u.closeParent?this.open=Math.max(0,this.open-1):u&&u.skip.nodeType&&(e=u.skip);let c,d=this.needsBlock;if(nh.hasOwnProperty(s))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let f=u&&u.skip?n:this.readStyles(e,n);f&&this.addAll(e,f),c&&this.sync(o),this.needsBlock=d}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,u,c,u.consuming===!1?l:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],s=r.getPropertyValue(o);if(s)for(let l=void 0;;){let u=this.parser.matchStyle(o,s,this,l);if(!u)break;if(u.ignore)return null;if(u.clearMark?n=n.filter(c=>!u.clearMark(c)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)l=u;else break}}return n}addElementByRule(e,n,r,i){let o,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let u=this.enter(s,n.attrs||null,r,n.preserveWhitespace);u&&(o=!0,r=u)}else{let u=this.parser.schema.marks[n.mark];r=r.concat(u.create(n.attrs))}let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(u=>this.insertNode(u,r,!1));else{let u=e;typeof n.contentElement=="string"?u=e.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(e):n.contentElement&&(u=n.contentElement),this.findAround(e,u,!0),this.addAll(u,r),this.findAround(e,u,!1)}o&&this.sync(l)&&this.open--}addAll(e,n,r,i){let o=r||0;for(let s=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];s!=l;s=s.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(s,n);this.findAtPoint(e,o)}findPlace(e,n,r){let i,o;for(let s=this.open,l=0;s>=0;s--){let u=this.nodes[s],c=u.findWrapping(e);if(c&&(!i||i.length>c.length+l)&&(i=c,o=u,!c.length))break;if(u.solid){if(r)break;l+=2}}if(!i)return null;this.sync(o);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let s=V.none;for(let l of i.concat(e.marks))(o.type?o.type.allowsMarkType(l.type):Ac(l.type,e.type))&&(s=l.addToSet(s));return o.content.push(e.mark(s)),!0}return!1}enter(e,n,r,i){let o=this.findPlace(e.create(n),r,!1);return o&&(o=this.enterInner(e,n,r,!0,i)),o}enterInner(e,n,r,i=!1,o){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let l=Sc(e,o,s.options);s.options&Ur&&s.content.length==0&&(l|=Ur);let u=V.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):Ac(c.type,e))?(u=c.addToSet(u),!1):!0),this.nodes.push(new Wn(e,n,u,i,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=ci)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),s=a((l,u)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;u>=o;u--)if(s(l-1,u))return!0;return!1}else{let d=u>0||u==0&&i?this.nodes[u].type:r&&u>=o?r.node(u-o).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;u--}}return!0},"match");return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}};a(ja,"ParseContext");let ao=ja;function Wm(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&rh.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}a(Wm,"normalizeList");function qm(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}a(qm,"matches");function Mc(t){let e={};for(let n in t)e[n]=t[n];return e}a(Mc,"copy");function Ac(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],s=a(l=>{o.push(l);for(let u=0;u<l.edgeCount;u++){let{type:c,next:d}=l.edge(u);if(c==e||o.indexOf(d)<0&&s(d))return!0}},"scan");if(s(i.contentMatch))return!0}}a(Ac,"markMayApply");const gs=class gs{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Ks(n).createDocumentFragment());let i=r,o=[];return e.forEach(s=>{if(o.length||s.marks.length){let l=0,u=0;for(;l<o.length&&u<s.marks.length;){let c=s.marks[u];if(!this.marks[c.type.name]){u++;continue}if(!c.eq(o[l][0])||c.type.spec.spanning===!1)break;l++,u++}for(;l<o.length;)i=o.pop()[1];for(;u<s.marks.length;){let c=s.marks[u++],d=this.serializeMark(c,s.isInline,n);d&&(o.push([c,i]),i.appendChild(d.dom),i=d.contentDOM||d.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:i}=Qi(Ks(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Qi(Ks(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return Qi(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new gs(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Tc(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Tc(e.marks)}};a(gs,"DOMSerializer");let Rn=gs;function Tc(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}a(Tc,"gatherToDOM");function Ks(t){return t.document||window.document}a(Ks,"doc$1");const Dc=new WeakMap;function Km(t){let e=Dc.get(t);return e===void 0&&Dc.set(t,e=Jm(t)),e}a(Km,"suspiciousAttributes");function Jm(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return a(n,"scan"),n(t),e}a(Jm,"suspiciousAttributesInner");function Qi(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=Km(r))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let l,u=n?t.createElementNS(n,i):t.createElement(i),c=e[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let f in c)if(c[f]!=null){let h=f.indexOf(" ");h>0?u.setAttributeNS(f.slice(0,h),f.slice(h+1),c[f]):f=="style"&&u.style?u.style.cssText=c[f]:u.setAttribute(f,c[f])}}for(let f=d;f<e.length;f++){let h=e[f];if(h===0){if(f<e.length-1||f>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:p,contentDOM:m}=Qi(t,h,n,r);if(u.appendChild(p),m){if(l)throw new RangeError("Multiple content holes");l=m}}}return{dom:u,contentDOM:l}}a(Qi,"renderSpec");const ih=65535,oh=Math.pow(2,16);function Gm(t,e){return t+e*oh}a(Gm,"makeRecover");function Nc(t){return t&ih}a(Nc,"recoverIndex");function Ym(t){return(t-(t&ih))/oh}a(Ym,"recoverOffset");const sh=1,lh=2,eo=4,uh=8,Ua=class Ua{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&uh)>0}get deletedBefore(){return(this.delInfo&(sh|eo))>0}get deletedAfter(){return(this.delInfo&(lh|eo))>0}get deletedAcross(){return(this.delInfo&eo)>0}};a(Ua,"MapResult");let di=Ua;const zt=class zt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&zt.empty)return zt.empty}recover(e){let n=0,r=Nc(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+Ym(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?i:0);if(u>e)break;let c=this.ranges[l+o],d=this.ranges[l+s],f=u+c;if(e<=f){let h=c?e==u?-1:e==f?1:n:n,p=u+i+(h<0?0:d);if(r)return p;let m=e==(n<0?u:f)?null:Gm(l/3,e-u),g=e==u?lh:e==f?sh:eo;return(n<0?e!=u:e!=f)&&(g|=uh),new di(p,g,m)}i+=d-c}return r?e+i:new di(e+i,0,null)}touches(e,n){let r=0,i=Nc(n),o=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?r:0);if(u>e)break;let c=this.ranges[l+o],d=u+c;if(e<=d&&l==i*3)return!0;r+=this.ranges[l+s]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let s=this.ranges[i],l=s-(this.inverted?o:0),u=s+(this.inverted?0:o),c=this.ranges[i+n],d=this.ranges[i+r];e(l,l+c,u,u+d),o+=d-c}}invert(){return new zt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?zt.empty:new zt(e<0?[0,-e,0]:[0,0,e])}};a(zt,"StepMap");let Mt=zt;Mt.empty=new Mt([]);const ii=class ii{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ii(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new ii;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let o=this.from;o<this.to;o++){let s=this._maps[o],l=s.mapResult(e,n);if(l.recover!=null){let u=this.getMirror(o);if(u!=null&&u>o&&u<this.to){o=u,e=this._maps[u].recover(l.recover);continue}}i|=l.delInfo,e=l.pos}return r?e:new di(e,i,null)}};a(ii,"Mapping");let co=ii;const Js=Object.create(null),Wa=class Wa{getMap(){return Mt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Js[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Js)throw new RangeError("Duplicate use of step JSON ID "+e);return Js[e]=n,n.prototype.jsonID=e,n}};a(Wa,"Step");let ce=Wa;const ln=class ln{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ln(e,null)}static fail(e){return new ln(null,e)}static fromReplace(e,n,r,i){try{return ln.ok(e.replace(n,r,i))}catch(o){if(o instanceof br)return ln.fail(o.message);throw o}}};a(ln,"StepResult");let ge=ln;function zu(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let o=t.child(i);o.content.size&&(o=o.copy(zu(o.content,e,o))),o.isInline&&(o=e(o,n,i)),r.push(o)}return M.fromArray(r)}a(zu,"mapFragment");const un=class un extends ce{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new T(zu(n.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return ge.fromReplace(e,this.from,this.to,o)}invert(){return new Zt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new un(n.pos,r.pos,this.mark)}merge(e){return e instanceof un&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new un(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new un(n.from,n.to,e.markFromJSON(n.mark))}};a(un,"AddMarkStep");let fi=un;ce.jsonID("addMark",fi);const an=class an extends ce{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new T(zu(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return ge.fromReplace(e,this.from,this.to,r)}invert(){return new fi(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new an(n.pos,r.pos,this.mark)}merge(e){return e instanceof an&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new an(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new an(n.from,n.to,e.markFromJSON(n.mark))}};a(an,"RemoveMarkStep");let Zt=an;ce.jsonID("removeMark",Zt);const cn=class cn extends ce{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ge.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ge.fromReplace(e,this.pos,this.pos+1,new T(M.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new cn(this.pos,n.marks[i]);return new cn(this.pos,this.mark)}}return new kr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new cn(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new cn(n.pos,e.markFromJSON(n.mark))}};a(cn,"AddNodeMarkStep");let hi=cn;ce.jsonID("addNodeMark",hi);const oi=class oi extends ce{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ge.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ge.fromReplace(e,this.pos,this.pos+1,new T(M.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new hi(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new oi(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new oi(n.pos,e.markFromJSON(n.mark))}};a(oi,"RemoveNodeMarkStep");let kr=oi;ce.jsonID("removeNodeMark",kr);const xt=class xt extends ce{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&Fl(e,this.from,this.to)?ge.fail("Structure replace would overwrite content"):ge.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Mt([this.from,this.to-this.from,this.slice.size])}invert(e){return new xt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new xt(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof xt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?T.empty:new T(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new xt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?T.empty:new T(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new xt(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xt(n.from,n.to,T.fromJSON(e,n.slice),!!n.structure)}};a(xt,"ReplaceStep");let Le=xt;ce.jsonID("replace",Le);const qn=class qn extends ce{constructor(e,n,r,i,o,s,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Fl(e,this.from,this.gapFrom)||Fl(e,this.gapTo,this.to)))return ge.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ge.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ge.fromReplace(e,this.from,this.to,r):ge.fail("Content does not fit in gap")}getMap(){return new Mt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new qn(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new qn(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new qn(n.from,n.to,n.gapFrom,n.gapTo,T.fromJSON(e,n.slice),n.insert,!!n.structure)}};a(qn,"ReplaceAroundStep");let ye=qn;ce.jsonID("replaceAround",ye);function Fl(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let s=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}a(Fl,"contentBetween");function Zm(t,e,n,r){let i=[],o=[],s,l;t.doc.nodesBetween(e,n,(u,c,d)=>{if(!u.isInline)return;let f=u.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let h=Math.max(c,e),p=Math.min(c+u.nodeSize,n),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(s&&s.to==h&&s.mark.eq(f[g])?s.to=p:i.push(s=new Zt(h,p,f[g])));l&&l.to==h?l.to=p:o.push(l=new fi(h,p,r))}}),i.forEach(u=>t.step(u)),o.forEach(u=>t.step(u))}a(Zm,"addMark");function Xm(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(s,l)=>{if(!s.isInline)return;o++;let u=null;if(r instanceof uo){let c=s.marks,d;for(;d=r.isInSet(c);)(u||(u=[])).push(d),c=d.removeFromSet(c)}else r?r.isInSet(s.marks)&&(u=[r]):u=s.marks;if(u&&u.length){let c=Math.min(l+s.nodeSize,n);for(let d=0;d<u.length;d++){let f=u[d],h;for(let p=0;p<i.length;p++){let m=i[p];m.step==o-1&&f.eq(i[p].style)&&(h=m)}h?(h.to=c,h.step=o):i.push({style:f,from:Math.max(l,e),to:c,step:o})}}}),i.forEach(s=>t.step(new Zt(s.from,s.to,s.style)))}a(Xm,"removeMark");function Pu(t,e,n,r=n.contentMatch,i=!0){let o=t.doc.nodeAt(e),s=[],l=e+1;for(let u=0;u<o.childCount;u++){let c=o.child(u),d=l+c.nodeSize,f=r.matchType(c.type);if(!f)s.push(new Le(l,d,T.empty));else{r=f;for(let h=0;h<c.marks.length;h++)n.allowsMarkType(c.marks[h].type)||t.step(new Zt(l,d,c.marks[h]));if(i&&c.isText&&n.whitespace!="pre"){let h,p=/\r?\n|\r/g,m;for(;h=p.exec(c.text);)m||(m=new T(M.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new Le(l+h.index,l+h.index+h[0].length,m))}}l=d}if(!r.validEnd){let u=r.fillBefore(M.empty,!0);t.replace(l,l,new T(u,0,0))}for(let u=s.length-1;u>=0;u--)t.step(s[u])}a(Pu,"clearIncompatible");function Qm(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}a(Qm,"canCut");function Ir(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,o=0;;--r){let s=t.$from.node(r),l=t.$from.index(r)+i,u=t.$to.indexAfter(r)-o;if(r<t.depth&&s.canReplace(l,u,n))return r;if(r==0||s.type.spec.isolating||!Qm(s,l,u))break;l&&(i=1),u<s.childCount&&(o=1)}return null}a(Ir,"liftTarget");function e1(t,e,n){let{$from:r,$to:i,depth:o}=e,s=r.before(o+1),l=i.after(o+1),u=s,c=l,d=M.empty,f=0;for(let m=o,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,d=M.from(r.node(m).copy(d)),f++):u--;let h=M.empty,p=0;for(let m=o,g=!1;m>n;m--)g||i.after(m+1)<i.end(m)?(g=!0,h=M.from(i.node(m).copy(h)),p++):c++;t.step(new ye(u,c,s,l,new T(d.append(h),f,p),d.size-f,!0))}a(e1,"lift$2");function Bu(t,e,n=null,r=t){let i=t1(t,e),o=i&&n1(r,e);return o?i.map(Oc).concat({type:e,attrs:n}).concat(o.map(Oc)):null}a(Bu,"findWrapping");function Oc(t){return{type:t,attrs:null}}a(Oc,"withAttrs");function t1(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.contentMatchAt(r).findWrapping(e);if(!o)return null;let s=o.length?o[0]:e;return n.canReplaceWith(r,i,s)?o:null}a(t1,"findWrappingOutside");function n1(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.child(r),s=e.contentMatch.findWrapping(o.type);if(!s)return null;let u=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;u&&c<i;c++)u=u.matchType(n.child(c).type);return!u||!u.validEnd?null:s}a(n1,"findWrappingInside");function r1(t,e,n){let r=M.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let l=n[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=M.from(n[s].type.create(n[s].attrs,r))}let i=e.start,o=e.end;t.step(new ye(i,o,i,o,new T(r,0,0),n.length,!0))}a(r1,"wrap");function i1(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(s,l)=>{let u=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,u)&&o1(t.doc,t.mapping.slice(o).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?c=!1:!p&&m&&(c=!0)}c===!1&&ch(t,s,l,o),Pu(t,t.mapping.slice(o).map(l,1),r,void 0,c===null);let d=t.mapping.slice(o),f=d.map(l,1),h=d.map(l+s.nodeSize,1);return t.step(new ye(f,h,f+1,h-1,new T(M.from(r.create(u,null,s.marks)),0,0),1,!0)),c===!0&&ah(t,s,l,o),!1}})}a(i1,"setBlockType$1");function ah(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(i.text);){let u=t.mapping.slice(r).map(n+1+o+s.index);t.replaceWith(u,u+1,e.type.schema.linebreakReplacement.create())}}})}a(ah,"replaceNewlines");function ch(t,e,n,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+o);t.replaceWith(s,s+1,e.type.schema.text(`