vue-spear-tip 0.2.14 → 0.2.15

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 (46) hide show
  1. package/dist/.vite/manifest.json +32 -32
  2. package/dist/{Button-D3wxk32n.js → Button-BkzQb0g8.js} +1 -1
  3. package/dist/{Button-C-_LLCJ8.cjs → Button-DjuvVLMq.cjs} +1 -1
  4. package/dist/{CodeHighlight-hA59-wK0.js → CodeHighlight-Bh23z1uf.js} +1 -1
  5. package/dist/{CodeHighlight-BQkI0Qdb.cjs → CodeHighlight-C8Y-gfDc.cjs} +1 -1
  6. package/dist/{DateField--anXRYwD.cjs → DateField-B82HWIBS.cjs} +1 -1
  7. package/dist/{DateField-CbD-7nJo.js → DateField-Bw053ye0.js} +2 -2
  8. package/dist/{FieldComponent.vue_vue_type_script_lang-BBV9PhxZ.cjs → FieldComponent.vue_vue_type_script_lang-CeH-5wkc.cjs} +1 -1
  9. package/dist/{FieldComponent.vue_vue_type_script_lang-D8oglWYI.js → FieldComponent.vue_vue_type_script_lang-Cz840qnG.js} +1 -1
  10. package/dist/{SelectField-_DCw7asw.js → SelectField-CAXhi6l3.js} +2 -2
  11. package/dist/{SelectField-0sIO2oZ8.cjs → SelectField-CTGlQluA.cjs} +1 -1
  12. package/dist/{StringField-Dx9x3hG1.cjs → StringField-CVG8C0Va.cjs} +1 -1
  13. package/dist/{StringField-Q6tdcgNE.js → StringField-s9Wz67z0.js} +2 -2
  14. package/dist/{SwitchField-D2CUl-83.js → SwitchField-B3U3kL7v.js} +46 -43
  15. package/dist/SwitchField-CLF9MHBX.cjs +1 -0
  16. package/dist/{Tabs-Bdbmi4vp.js → Tabs-Be4PuSkW.js} +1 -1
  17. package/dist/{Tabs-Bs59wIyv.cjs → Tabs-DkxUPHsT.cjs} +1 -1
  18. package/dist/{TextField-D4LS0W8b.cjs → TextField-Cd89tDiv.cjs} +1 -1
  19. package/dist/{TextField-BiySwnpX.js → TextField-DPh0d_BF.js} +2 -2
  20. package/dist/grid-style.css +1 -1
  21. package/dist/{index-Cb9JNh32.js → index-C3iH518C.js} +3 -3
  22. package/dist/{index-C6zu8hmM.cjs → index-_vuPJ0dk.cjs} +1 -1
  23. package/dist/vue-spear-tip.cjs.js +1 -1
  24. package/dist/vue-spear-tip.css +1 -1
  25. package/dist/vue-spear-tip.es.js +1 -1
  26. package/docs/index.html +2 -2
  27. package/docs/static/{Button-DQufd156.js → Button-sUI9KqkY.js} +1 -1
  28. package/docs/static/{CodeHighlight-B3Ig4KDk.js → CodeHighlight-DaitPlT0.js} +1 -1
  29. package/docs/static/{DateField-C6BbToAd.js → DateField-qDHcnTNL.js} +1 -1
  30. package/docs/static/{FieldComponent.vue_vue_type_script_lang-DvjF0ufQ.js → FieldComponent.vue_vue_type_script_lang-Bta9r3fM.js} +1 -1
  31. package/docs/static/{NoSymbolIcon-BcSCXTGD.js → NoSymbolIcon-CkMqcao3.js} +1 -1
  32. package/docs/static/{SelectField-CIZ_xg-o.js → SelectField-CU1j3fu_.js} +1 -1
  33. package/docs/static/{StringField-DoqZ8gGA.js → StringField-DrzuLoiI.js} +1 -1
  34. package/docs/static/SwitchField-BXh1DoSh.css +1 -0
  35. package/docs/static/SwitchField-CYjiGtTW.js +1 -0
  36. package/docs/static/{Tabs-D191loy_.js → Tabs-xXm2jMOr.js} +1 -1
  37. package/docs/static/{TextField-o2QP_97x.js → TextField-CGJzy2V1.js} +1 -1
  38. package/docs/static/index-YY1vacQn.js +2 -0
  39. package/docs/static/{main-DkOCkEos.js → main-CjwB_FDy.js} +2 -2
  40. package/docs/static/main-CkcC65yN.css +1 -0
  41. package/package.json +1 -1
  42. package/dist/SwitchField-DF62AQwm.cjs +0 -1
  43. package/docs/static/SwitchField-D1HrNcLY.css +0 -1
  44. package/docs/static/SwitchField-Db23H0Im.js +0 -1
  45. package/docs/static/index-F0CNC5Sw.js +0 -2
  46. package/docs/static/main-Bqckh-QL.css +0 -1
@@ -1,15 +1,15 @@
1
1
  var V = Object.defineProperty;
2
- var y = (e, o) => V(e, "name", { value: o, configurable: !0 });
3
- import { P as i, W as I, V as $ } from "./index-Cb9JNh32.js";
4
- import { F as B } from "./FieldComponent.vue_vue_type_script_lang-D8oglWYI.js";
5
- import { createElementBlock as b, openBlock as s, createTextVNode as m, createCommentVNode as k, createBlock as C, normalizeClass as g, createElementVNode as r, withDirectives as c, renderSlot as T, vModelCheckbox as S, resolveDynamicComponent as w, withCtx as v, toDisplayString as d } from "vue";
2
+ var k = (e, o) => V(e, "name", { value: o, configurable: !0 });
3
+ import { P as i, W as I, V as $ } from "./index-C3iH518C.js";
4
+ import { F as B } from "./FieldComponent.vue_vue_type_script_lang-Cz840qnG.js";
5
+ import { createElementBlock as p, openBlock as s, normalizeClass as g, createTextVNode as m, createCommentVNode as u, createBlock as C, createElementVNode as a, withDirectives as c, renderSlot as T, vModelCheckbox as S, resolveDynamicComponent as w, withCtx as v, toDisplayString as d } from "vue";
6
6
  import { _ as N } from "./_plugin-vue_export-helper-B9nE8o7z.js";
7
- var W = Object.defineProperty, D = Object.getOwnPropertyDescriptor, l = /* @__PURE__ */ y((e, o, u, h) => {
8
- for (var n = h > 1 ? void 0 : h ? D(o, u) : o, f = e.length - 1, a; f >= 0; f--)
9
- (a = e[f]) && (n = (h ? a(o, u, n) : a(n)) || n);
10
- return h && n && W(o, u, n), n;
11
- }, "__decorateClass"), p;
12
- let t = (p = class extends B {
7
+ var W = Object.defineProperty, D = Object.getOwnPropertyDescriptor, l = /* @__PURE__ */ k((e, o, f, b) => {
8
+ for (var n = b > 1 ? void 0 : b ? D(o, f) : o, y = e.length - 1, r; y >= 0; y--)
9
+ (r = e[y]) && (n = (b ? r(o, f, n) : r(n)) || n);
10
+ return b && n && W(o, f, n), n;
11
+ }, "__decorateClass"), h;
12
+ let t = (h = class extends B {
13
13
  disabled = !1;
14
14
  bg = "linear-gradient(330deg, #0aa86d 0%, #4eb18d 50%, #0ca86e 100%)";
15
15
  bgInactive = "#a1a1a1";
@@ -47,7 +47,7 @@ let t = (p = class extends B {
47
47
  _modelValueChanged(o) {
48
48
  this.setValue(o);
49
49
  }
50
- }, y(p, "SwitchField"), p);
50
+ }, k(h, "SwitchField"), h);
51
51
  l([
52
52
  i(Boolean)
53
53
  ], t.prototype, "disabled", 2);
@@ -118,84 +118,86 @@ t = l([
118
118
  $
119
119
  ], t);
120
120
  const Y = ["title", "data-theme"], A = { class: "switch_box" }, F = ["id", "disabled"], P = ["for"], L = ["id", "disabled"], R = ["data-tg-off", "data-tg-on", "for"], O = ["id", "disabled"], U = ["for"];
121
- function H(e, o, u, h, n, f) {
122
- return s(), b("div", {
123
- class: "container-switch",
121
+ function H(e, o, f, b, n, y) {
122
+ return s(), p("div", {
123
+ class: g(["container-switch", {
124
+ "min-w64px": e.type != "checkbox"
125
+ }]),
124
126
  title: e.disabled ? e.disabledTitle : e.title,
125
127
  "data-theme": e.disabled ? e.disabledTitleTheme : e.titleTheme,
126
128
  "data-offset": "[-15, 15]"
127
129
  }, [
128
130
  o[6] || (o[6] = m(" ", -1)),
129
- e.type == "switcher" ? (s(), b("div", {
131
+ e.type == "switcher" ? (s(), p("div", {
130
132
  key: 0,
131
133
  class: g(["switch", e.disabled ? "disabled" : ""])
132
134
  }, [
133
- r("div", A, [
134
- r("div", {
135
+ a("div", A, [
136
+ a("div", {
135
137
  class: "cursor-pointer fs-1rem mb2px",
136
- onClick: o[0] || (o[0] = (a) => e.disabled ? null : e.isChecked = !e.isChecked)
138
+ onClick: o[0] || (o[0] = (r) => e.disabled ? null : e.isChecked = !e.isChecked)
137
139
  }, [
138
140
  T(e.$slots, "default")
139
141
  ]),
140
- c(r("input", {
142
+ c(a("input", {
141
143
  id: "switch-" + e.randomId,
142
144
  type: "checkbox",
143
- "onUpdate:modelValue": o[1] || (o[1] = (a) => e.isChecked = a),
145
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => e.isChecked = r),
144
146
  disabled: e.disabled
145
147
  }, null, 8, F), [
146
148
  [S, e.isChecked]
147
149
  ]),
148
- r("label", {
150
+ a("label", {
149
151
  for: "switch-" + e.randomId,
150
152
  class: g({
151
153
  disabled: e.disabled
152
154
  })
153
155
  }, null, 10, P)
154
156
  ])
155
- ], 2)) : e.type == "toggler" ? (s(), b("div", {
157
+ ], 2)) : e.type == "toggler" ? (s(), p("div", {
156
158
  key: 1,
157
159
  class: g(["hybrid-checkbox", {
158
160
  ["toggler-" + e.randomId]: !0
159
161
  }])
160
162
  }, [
161
- c(r("input", {
163
+ c(a("input", {
162
164
  class: "tgl tgl-flip",
163
165
  id: "toggler-" + e.randomId,
164
166
  type: "checkbox",
165
- "onUpdate:modelValue": o[2] || (o[2] = (a) => e.isChecked = a),
167
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => e.isChecked = r),
166
168
  disabled: e.disabled
167
169
  }, null, 8, L), [
168
170
  [S, e.isChecked]
169
171
  ]),
170
- r("label", {
172
+ a("label", {
171
173
  class: "tgl-btn",
172
174
  "data-tg-off": e.titleTogglerN,
173
175
  "data-tg-on": e.titleTogglerY,
174
176
  for: "toggler-" + e.randomId
175
177
  }, null, 8, R)
176
- ], 2)) : e.type == "checkbox" ? (s(), b("div", {
178
+ ], 2)) : e.type == "checkbox" ? (s(), p("div", {
177
179
  key: 2,
178
180
  class: g(["typical-checkbox", {
179
181
  disabled: e.disabled
180
182
  }])
181
183
  }, [
182
- r("span", null, [
183
- c(r("input", {
184
+ a("span", null, [
185
+ c(a("input", {
184
186
  type: "checkbox",
185
187
  id: "checkbox-" + e.randomId,
186
- "onUpdate:modelValue": o[3] || (o[3] = (a) => e.isChecked = a),
188
+ "onUpdate:modelValue": o[3] || (o[3] = (r) => e.isChecked = r),
187
189
  disabled: e.disabled
188
190
  }, null, 8, O), [
189
191
  [S, e.isChecked]
190
192
  ]),
191
- r("label", {
193
+ a("label", {
192
194
  class: g(["check pb3px! w20px! p0!", {
193
195
  "bg-white": e.isChecked,
194
- "ml5px! mt3px!": !e.isChecked
196
+ "mt3px!": !e.isChecked
195
197
  }]),
196
198
  for: "checkbox-" + e.randomId
197
199
  }, [
198
- (s(), b("svg", {
200
+ (s(), p("svg", {
199
201
  class: g(["w20px", {
200
202
  "svg-unchecked bg-white": !e.isChecked
201
203
  }]),
@@ -203,49 +205,50 @@ function H(e, o, u, h, n, f) {
203
205
  height: "20px",
204
206
  viewBox: "0 0 18 18"
205
207
  }, [...o[5] || (o[5] = [
206
- r("path", {
208
+ a("path", {
207
209
  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"
208
210
  }, null, -1),
209
- r("polyline", { points: "1 9 7 14 15 4" }, null, -1)
211
+ a("polyline", { points: "1 9 7 14 15 4" }, null, -1)
210
212
  ])], 2))
211
213
  ], 10, U)
212
214
  ]),
213
- r("span", {
215
+ e.$slots.default ? (s(), p("span", {
216
+ key: 0,
214
217
  class: g(["cursor-pointer fs-1rem mx15px my2px whitespace-nowrap", {
215
218
  "fw-bold underline underline-black": e.isChecked
216
219
  }]),
217
- onClick: o[4] || (o[4] = (a) => e.disabled ? null : e.isChecked = !e.isChecked)
220
+ onClick: o[4] || (o[4] = (r) => e.disabled ? null : e.isChecked = !e.isChecked)
218
221
  }, [
219
222
  T(e.$slots, "default")
220
- ], 2)
221
- ], 2)) : k("", !0),
223
+ ], 2)) : u("", !0)
224
+ ], 2)) : u("", !0),
222
225
  e.type == "toggler" ? (s(), C(w("style"), { key: 3 }, {
223
226
  default: v(() => [
224
227
  m(".toggler-" + d(e.randomId) + " .tgl-flip + .tgl-btn { perspective: " + d(e.isChecked ? e.togglerWidthActive : e.togglerWidth) + " !important; width: " + d(e.isChecked ? e.togglerWidthActive : e.togglerWidth) + " !important; } .toggler-" + d(e.randomId) + " .tgl-flip + .tgl-btn:before { background: " + d(e.togglerRevertColors ? e.bgTogglerY : e.bgTogglerN) + " } .toggler-" + d(e.randomId) + " .tgl-flip:checked + .tgl-btn:after { background: " + d(e.togglerRevertColors ? e.bgTogglerN : e.bgTogglerY) + " }", 1)
225
228
  ]),
226
229
  _: 1
227
- })) : k("", !0),
230
+ })) : u("", !0),
228
231
  e.type == "toggler" && e.disabled ? (s(), C(w("style"), { key: 4 }, {
229
232
  default: v(() => [
230
233
  m(".toggler-" + d(e.randomId) + " { opacity: 0.5 !important; }", 1)
231
234
  ]),
232
235
  _: 1
233
- })) : k("", !0),
236
+ })) : u("", !0),
234
237
  e.type == "checkbox" ? (s(), C(w("style"), { key: 5 }, {
235
238
  default: v(() => [
236
239
  m("#checkbox-" + d(e.randomId) + " { display: none; visibility: hidden; } #checkbox-" + d(e.randomId) + " + label { box-sizing: content-box !important; }", 1)
237
240
  ]),
238
241
  _: 1
239
- })) : k("", !0),
242
+ })) : u("", !0),
240
243
  (s(), C(w("style"), null, {
241
244
  default: v(() => [
242
245
  m('[for="switch-' + d(e.randomId) + '"]::before { background: ' + d(e.bg) + "; box-shadow: " + d(e.boxShadow) + ' !important; } [for="switch-' + d(e.randomId) + '"]:not(.disabled):hover { box-shadow: ' + d(e.boxShadowHover) + '; } .switch_box [for="switch-' + d(e.randomId) + '"]::after { background: ' + d(e.labelColor) + " !important; box-shadow: " + d(e.labelBoxShadow) + '; } .switch_box [for="switch-' + d(e.randomId) + '"] input { display: none !important; } .switch_box label[for="switch-' + d(e.randomId) + '"] { background: ' + d(e.bgInactive) + " !important; }", 1)
243
246
  ]),
244
247
  _: 1
245
248
  }))
246
- ], 8, Y);
249
+ ], 10, Y);
247
250
  }
248
- y(H, "render");
251
+ k(H, "render");
249
252
  const Z = /* @__PURE__ */ N(t, [["render", H]]);
250
253
  export {
251
254
  Z as default
@@ -0,0 +1 @@
1
+ "use strict";var b=Object.defineProperty;var h=(o,t)=>b(o,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-_vuPJ0dk.cjs"),m=require("./FieldComponent.vue_vue_type_script_lang-CeH-5wkc.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var y=Object.defineProperty,u=Object.getOwnPropertyDescriptor,r=h((o,t,p,s)=>{for(var d=s>1?void 0:s?u(t,p):t,g=o.length-1,a;g>=0;g--)(a=o[g])&&(d=(s?a(t,p,d):a(d))||d);return s&&d&&y(t,p,d),d},"__decorateClass"),n;let l=(n=class extends m.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.isChecked=this.modelValue||this.inputValue||this.value,this.randomId=$VST.generateRandomKey(32)}emits=["update:modelValue","change"];_onCheckChange(){this.$emit("update:modelValue",this.isChecked),this.$emit("change",this.isChecked)}isChecked=!1;isDisabled=!1;randomId="";setValue(t){this.isChecked=t}_modelValueChanged(t){this.setValue(t)}},h(n,"SwitchField"),n);r([i.Prop(Boolean)],l.prototype,"disabled",2);r([i.Prop(String)],l.prototype,"bg",2);r([i.Prop(String)],l.prototype,"bgInactive",2);r([i.Prop(String)],l.prototype,"title",2);r([i.Prop(String)],l.prototype,"titleTheme",2);r([i.Prop(String)],l.prototype,"bgTogglerY",2);r([i.Prop(String)],l.prototype,"bgTogglerN",2);r([i.Prop(String)],l.prototype,"titleTogglerY",2);r([i.Prop(String)],l.prototype,"titleTogglerN",2);r([i.Prop(String)],l.prototype,"togglerWidth",2);r([i.Prop(String)],l.prototype,"togglerWidthActive",2);r([i.Prop(Boolean)],l.prototype,"togglerRevertColors",2);r([i.Prop(String)],l.prototype,"boxShadow",2);r([i.Prop(String)],l.prototype,"disabledTitle",2);r([i.Prop(String)],l.prototype,"disabledTitleTheme",2);r([i.Prop(String)],l.prototype,"boxShadowHover",2);r([i.Prop(String)],l.prototype,"labelColor",2);r([i.Prop(String)],l.prototype,"labelBoxShadow",2);r([i.Prop(String)],l.prototype,"type",2);r([i.Prop(Boolean,null)],l.prototype,"modelValue",2);r([i.Watch("isChecked",!0,!0)],l.prototype,"_onCheckChange",1);r([i.Watch("modelValue",!0)],l.prototype,"_modelValueChanged",1);l=r([i.VST],l);const k=["title","data-theme"],C={class:"switch_box"},S=["id","disabled"],f=["for"],v=["id","disabled"],w=["data-tg-off","data-tg-on","for"],V=["id","disabled"],T=["for"];function D(o,t,p,s,d,g){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container-switch",{"min-w64px":o.type!="checkbox"}]),title:o.disabled?o.disabledTitle:o.title,"data-theme":o.disabled?o.disabledTitleTheme:o.titleTheme,"data-offset":"[-15, 15]"},[t[6]||(t[6]=e.createTextVNode(" ",-1)),o.type=="switcher"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["switch",o.disabled?"disabled":""])},[e.createElementVNode("div",C,[e.createElementVNode("div",{class:"cursor-pointer fs-1rem mb2px",onClick:t[0]||(t[0]=a=>o.disabled?null:o.isChecked=!o.isChecked)},[e.renderSlot(o.$slots,"default")]),e.withDirectives(e.createElementVNode("input",{id:"switch-"+o.randomId,type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=a=>o.isChecked=a),disabled:o.disabled},null,8,S),[[e.vModelCheckbox,o.isChecked]]),e.createElementVNode("label",{for:"switch-"+o.randomId,class:e.normalizeClass({disabled:o.disabled})},null,10,f)])],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":t[2]||(t[2]=a=>o.isChecked=a),disabled:o.disabled},null,8,v),[[e.vModelCheckbox,o.isChecked]]),e.createElementVNode("label",{class:"tgl-btn","data-tg-off":o.titleTogglerN,"data-tg-on":o.titleTogglerY,for:"toggler-"+o.randomId},null,8,w)],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":t[3]||(t[3]=a=>o.isChecked=a),disabled:o.disabled},null,8,V),[[e.vModelCheckbox,o.isChecked]]),e.createElementVNode("label",{class:e.normalizeClass(["check pb3px! w20px! p0!",{"bg-white":o.isChecked,"mt3px!":!o.isChecked}]),for:"checkbox-"+o.randomId},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w20px",{"svg-unchecked bg-white":!o.isChecked}]),width:"20px",height:"20px",viewBox:"0 0 18 18"},[...t[5]||(t[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.isChecked}]),onClick:t[4]||(t[4]=a=>o.disabled?null:o.isChecked=!o.isChecked)},[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.isChecked?o.togglerWidthActive:o.togglerWidth)+" !important; width: "+e.toDisplayString(o.isChecked?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,k)}h(D,"render");const N=c._export_sfc(l,[["render",D]]);exports.default=N;
@@ -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-Cb9JNh32.js";
3
+ import { a as f, V as m } from "./index-C3iH518C.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 +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-C6zu8hmM.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-_vuPJ0dk.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,4 +1,4 @@
1
- "use strict";var I0=Object.defineProperty;var a=(t,e)=>I0(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("vue"),Vt=require("./index-C6zu8hmM.cjs"),R0=require("./FieldComponent.vue_vue_type_script_lang-BBV9PhxZ.cjs"),F0=require("./_commonjsHelpers-DqS8WYlY.cjs"),L0=require("./NoSymbolIcon-BoH28Kep.cjs"),P0=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function se(t){this.content=t}a(se,"OrderedMap");se.prototype={constructor:se,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 se(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 se(n)},"remove"),addToStart:a(function(t,e){return new se([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 se(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 se(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=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},"prepend"),append:a(function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},"append"),subtract:a(function(t){var e=this;t=se.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}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function af(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=af(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}a(af,"findDiffStart");function cf(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),u=e.child(--o),l=s.nodeSize;if(s==u){n-=l,r-=l;continue}if(!s.sameMarkup(u))return{a:n,b:r};if(s.isText&&s.text!=u.text){let c=0,d=Math.min(s.text.length,u.text.length);for(;c<d&&s.text[s.text.length-c-1]==u.text[u.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||u.content.size){let c=cf(s.content,u.content,n-1,r-1);if(c)return c}n-=l,r-=l}}a(cf,"findDiffEnd");const oe=class oe{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,u=0;u<n;s++){let l=this.content[s],c=u+l.nodeSize;if(c>e&&r(l,i+u,o||null,s)!==!1&&l.content.size){let d=u+1;l.nodesBetween(Math.max(0,e-d),Math.min(l.content.size,n-d),r,i+d)}u=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",s=!0;return this.nodesBetween(e,n,(u,l)=>{let c=u.isText?u.text.slice(Math.max(e,l)-l,n-l):u.isLeaf?i?typeof i=="function"?i(u):i:u.type.spec.leafText?u.type.spec.leafText(u):"":"";u.isBlock&&(u.isLeaf&&c||u.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 oe(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 u=this.content[o],l=s+u.nodeSize;l>e&&((s<e||l>n)&&(u.isText?u=u.cut(Math.max(0,e-s),Math.min(u.text.length,n-s)):u=u.cut(Math.max(0,e-s-1),Math.min(u.content.size,n-s-1))),r.push(u),i+=u.nodeSize),s=l}return new oe(r,i)}cutByIndex(e,n){return e==n?oe.empty:e==0&&n==this.content.length?this:new oe(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 oe(i,o)}addToStart(e){return new oe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new oe(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 af(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return cf(this,e,n,r)}findIndex(e){if(e==0)return ki(0,e);if(e==this.size)return ki(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?ki(n+1,o):ki(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 oe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new oe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return oe.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 oe(n||e,r)}static from(e){if(!e)return oe.empty;if(e instanceof oe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new oe([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(oe,"Fragment");let M=oe;M.empty=new M([],0);const Ts={index:0,offset:0};function ki(t,e){return Ts.index=t,Ts.offset=e,Ts}a(ki,"retIndex");function Hi(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(!Hi(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hi(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}a(Hi,"compareDeep");var $t;let z=($t=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&&Hi(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 $t.none;if(e instanceof $t)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}},a($t,"Mark"),$t);z.none=[];const ya=class ya extends Error{};a(ya,"ReplaceError");let ir=ya;const Tt=class Tt{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=ff(this.content,e+this.openStart,n);return r&&new Tt(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Tt(df(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 Tt.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 Tt(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 Tt(e,r,i)}};a(Tt,"Slice");let T=Tt;T.empty=new T(M.empty,0,0);function df(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:s,offset:u}=t.findIndex(n);if(i==e||o.isText){if(u!=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(df(o.content,e-i-1,n-i-1)))}a(df,"removeRange");function ff(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 u=ff(s.content,e-o-1,n,s);return u&&t.replaceChild(i,s.copy(u))}a(ff,"insertInto");function B0(t,e,n){if(n.openStart>t.depth)throw new ir("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ir("Inconsistent open depths");return hf(t,e,n,0)}a(B0,"replace$1");function hf(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=hf(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,u=s.content;return hn(s,u.cut(0,t.parentOffset).append(n.content).append(u.cut(e.parentOffset)))}else{let{start:s,end:u}=z0(n,t);return hn(o,mf(t,s,u,e,r))}else return hn(o,Vi(t,e,r))}a(hf,"replaceOuter");function pf(t,e){if(!e.type.compatibleContent(t.type))throw new ir("Cannot join "+e.type.name+" onto "+t.type.name)}a(pf,"checkJoin");function fu(t,e,n){let r=t.node(n);return pf(r,e.node(n)),r}a(fu,"joinable$1");function fn(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(fn,"addNode");function Dr(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&&(fn(t.nodeAfter,r),o++));for(let u=o;u<s;u++)fn(i.child(u),r);e&&e.depth==n&&e.textOffset&&fn(e.nodeBefore,r)}a(Dr,"addRange");function hn(t,e){return t.type.checkContent(e),t.copy(e)}a(hn,"close");function mf(t,e,n,r,i){let o=t.depth>i&&fu(t,e,i+1),s=r.depth>i&&fu(n,r,i+1),u=[];return Dr(null,t,i,u),o&&s&&e.index(i)==n.index(i)?(pf(o,s),fn(hn(o,mf(t,e,n,r,i+1)),u)):(o&&fn(hn(o,Vi(t,e,i+1)),u),Dr(e,n,i,u),s&&fn(hn(s,Vi(n,r,i+1)),u)),Dr(r,null,i,u),new M(u)}a(mf,"replaceThreeWay");function Vi(t,e,n){let r=[];if(Dr(null,t,n,r),t.depth>n){let i=fu(t,e,n+1);fn(hn(i,Vi(t,e,n+1)),r)}return Dr(e,null,n,r),new M(r)}a(Vi,"replaceTwoWay");function z0(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(z0,"prepareSliceForReplace");const $r=class $r{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 z.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let u=r;r=i,i=u}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 or(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:u,offset:l}=s.content.findIndex(o),c=o-l;if(r.push(s,u,i+l),!c||(s=s.child(u),s.isText))break;o=c-1,i+=l+1}return new $r(n,r,o)}static resolveCached(e,n){let r=nc.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 nc.set(e,r=new hu);let i=r.elts[r.i]=$r.resolve(e,n);return r.i=(r.i+1)%$0,i}};a($r,"ResolvedPos");let ji=$r;const xa=class xa{constructor(){this.elts=[],this.i=0}};a(xa,"ResolveCache");let hu=xa;const $0=12,nc=new WeakMap,ka=class ka{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(ka,"NodeRange");let or=ka;const H0=Object.create(null);var Ht;let Lt=(Ht=class{constructor(e,n,r,i=z.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&&Hi(this.attrs,n||e.defaultAttrs||H0)&&z.sameSet(this.marks,r||z.none)}copy(e=null){return e==this.content?this:new Ht(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ht(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),u=i.start(s),c=i.node(s).content.cut(i.pos-u,o.pos-u);return new T(c,i.depth-s,o.depth-s)}replace(e,n,r){return B0(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 ji.resolveCached(this,e)}resolveNoCache(e){return ji.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),u=s&&s.matchFragment(this.content,n);if(!u||!u.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).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=z.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(!z.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(Ht,"Node"),Ht);Lt.prototype.text=void 0;const Hr=class Hr extends Lt{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 Hr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Hr(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(Hr,"TextNode");let pu=Hr;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 Zo=class Zo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new mu(e,n);if(r.next==null)return Zo.empty;let i=bf(r);r.next&&r.err("Unexpected trailing text");let o=J0(K0(i));return G0(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,u){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return M.from(u.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 p=o(f,u.concat(d));if(p)return p}}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 u=i;u.type;u=u.via)s.push(u.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:u,next:l}=o.next[s];!u.isLeaf&&!u.hasRequiredAttrs()&&!(u.name in n)&&(!i.type||l.validEnd)&&(r.push({match:u.contentMatch,type:u,via:i}),n[u.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 I0=Object.defineProperty;var a=(t,e)=>I0(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("vue"),Vt=require("./index-_vuPJ0dk.cjs"),R0=require("./FieldComponent.vue_vue_type_script_lang-CeH-5wkc.cjs"),F0=require("./_commonjsHelpers-DqS8WYlY.cjs"),L0=require("./NoSymbolIcon-BoH28Kep.cjs"),P0=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function se(t){this.content=t}a(se,"OrderedMap");se.prototype={constructor:se,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 se(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 se(n)},"remove"),addToStart:a(function(t,e){return new se([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 se(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 se(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=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},"prepend"),append:a(function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},"append"),subtract:a(function(t){var e=this;t=se.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}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function af(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=af(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}a(af,"findDiffStart");function cf(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),u=e.child(--o),l=s.nodeSize;if(s==u){n-=l,r-=l;continue}if(!s.sameMarkup(u))return{a:n,b:r};if(s.isText&&s.text!=u.text){let c=0,d=Math.min(s.text.length,u.text.length);for(;c<d&&s.text[s.text.length-c-1]==u.text[u.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||u.content.size){let c=cf(s.content,u.content,n-1,r-1);if(c)return c}n-=l,r-=l}}a(cf,"findDiffEnd");const oe=class oe{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,u=0;u<n;s++){let l=this.content[s],c=u+l.nodeSize;if(c>e&&r(l,i+u,o||null,s)!==!1&&l.content.size){let d=u+1;l.nodesBetween(Math.max(0,e-d),Math.min(l.content.size,n-d),r,i+d)}u=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",s=!0;return this.nodesBetween(e,n,(u,l)=>{let c=u.isText?u.text.slice(Math.max(e,l)-l,n-l):u.isLeaf?i?typeof i=="function"?i(u):i:u.type.spec.leafText?u.type.spec.leafText(u):"":"";u.isBlock&&(u.isLeaf&&c||u.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 oe(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 u=this.content[o],l=s+u.nodeSize;l>e&&((s<e||l>n)&&(u.isText?u=u.cut(Math.max(0,e-s),Math.min(u.text.length,n-s)):u=u.cut(Math.max(0,e-s-1),Math.min(u.content.size,n-s-1))),r.push(u),i+=u.nodeSize),s=l}return new oe(r,i)}cutByIndex(e,n){return e==n?oe.empty:e==0&&n==this.content.length?this:new oe(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 oe(i,o)}addToStart(e){return new oe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new oe(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 af(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return cf(this,e,n,r)}findIndex(e){if(e==0)return ki(0,e);if(e==this.size)return ki(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?ki(n+1,o):ki(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 oe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new oe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return oe.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 oe(n||e,r)}static from(e){if(!e)return oe.empty;if(e instanceof oe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new oe([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(oe,"Fragment");let M=oe;M.empty=new M([],0);const Ts={index:0,offset:0};function ki(t,e){return Ts.index=t,Ts.offset=e,Ts}a(ki,"retIndex");function Hi(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(!Hi(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hi(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}a(Hi,"compareDeep");var $t;let z=($t=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&&Hi(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 $t.none;if(e instanceof $t)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}},a($t,"Mark"),$t);z.none=[];const ya=class ya extends Error{};a(ya,"ReplaceError");let ir=ya;const Tt=class Tt{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=ff(this.content,e+this.openStart,n);return r&&new Tt(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Tt(df(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 Tt.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 Tt(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 Tt(e,r,i)}};a(Tt,"Slice");let T=Tt;T.empty=new T(M.empty,0,0);function df(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:s,offset:u}=t.findIndex(n);if(i==e||o.isText){if(u!=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(df(o.content,e-i-1,n-i-1)))}a(df,"removeRange");function ff(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 u=ff(s.content,e-o-1,n,s);return u&&t.replaceChild(i,s.copy(u))}a(ff,"insertInto");function B0(t,e,n){if(n.openStart>t.depth)throw new ir("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ir("Inconsistent open depths");return hf(t,e,n,0)}a(B0,"replace$1");function hf(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=hf(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,u=s.content;return hn(s,u.cut(0,t.parentOffset).append(n.content).append(u.cut(e.parentOffset)))}else{let{start:s,end:u}=z0(n,t);return hn(o,mf(t,s,u,e,r))}else return hn(o,Vi(t,e,r))}a(hf,"replaceOuter");function pf(t,e){if(!e.type.compatibleContent(t.type))throw new ir("Cannot join "+e.type.name+" onto "+t.type.name)}a(pf,"checkJoin");function fu(t,e,n){let r=t.node(n);return pf(r,e.node(n)),r}a(fu,"joinable$1");function fn(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(fn,"addNode");function Dr(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&&(fn(t.nodeAfter,r),o++));for(let u=o;u<s;u++)fn(i.child(u),r);e&&e.depth==n&&e.textOffset&&fn(e.nodeBefore,r)}a(Dr,"addRange");function hn(t,e){return t.type.checkContent(e),t.copy(e)}a(hn,"close");function mf(t,e,n,r,i){let o=t.depth>i&&fu(t,e,i+1),s=r.depth>i&&fu(n,r,i+1),u=[];return Dr(null,t,i,u),o&&s&&e.index(i)==n.index(i)?(pf(o,s),fn(hn(o,mf(t,e,n,r,i+1)),u)):(o&&fn(hn(o,Vi(t,e,i+1)),u),Dr(e,n,i,u),s&&fn(hn(s,Vi(n,r,i+1)),u)),Dr(r,null,i,u),new M(u)}a(mf,"replaceThreeWay");function Vi(t,e,n){let r=[];if(Dr(null,t,n,r),t.depth>n){let i=fu(t,e,n+1);fn(hn(i,Vi(t,e,n+1)),r)}return Dr(e,null,n,r),new M(r)}a(Vi,"replaceTwoWay");function z0(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(z0,"prepareSliceForReplace");const $r=class $r{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 z.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let u=r;r=i,i=u}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 or(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:u,offset:l}=s.content.findIndex(o),c=o-l;if(r.push(s,u,i+l),!c||(s=s.child(u),s.isText))break;o=c-1,i+=l+1}return new $r(n,r,o)}static resolveCached(e,n){let r=nc.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 nc.set(e,r=new hu);let i=r.elts[r.i]=$r.resolve(e,n);return r.i=(r.i+1)%$0,i}};a($r,"ResolvedPos");let ji=$r;const xa=class xa{constructor(){this.elts=[],this.i=0}};a(xa,"ResolveCache");let hu=xa;const $0=12,nc=new WeakMap,ka=class ka{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(ka,"NodeRange");let or=ka;const H0=Object.create(null);var Ht;let Lt=(Ht=class{constructor(e,n,r,i=z.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&&Hi(this.attrs,n||e.defaultAttrs||H0)&&z.sameSet(this.marks,r||z.none)}copy(e=null){return e==this.content?this:new Ht(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ht(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),u=i.start(s),c=i.node(s).content.cut(i.pos-u,o.pos-u);return new T(c,i.depth-s,o.depth-s)}replace(e,n,r){return B0(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 ji.resolveCached(this,e)}resolveNoCache(e){return ji.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),u=s&&s.matchFragment(this.content,n);if(!u||!u.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).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=z.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(!z.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(Ht,"Node"),Ht);Lt.prototype.text=void 0;const Hr=class Hr extends Lt{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 Hr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Hr(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(Hr,"TextNode");let pu=Hr;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 Zo=class Zo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new mu(e,n);if(r.next==null)return Zo.empty;let i=bf(r);r.next&&r.err("Unexpected trailing text");let o=J0(K0(i));return G0(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,u){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return M.from(u.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 p=o(f,u.concat(d));if(p)return p}}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 u=i;u.type;u=u.via)s.push(u.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:u,next:l}=o.next[s];!u.isLeaf&&!u.hasRequiredAttrs()&&!(u.name in n)&&(!i.type||l.validEnd)&&(r.push({match:u.contentMatch,type:u,via:i}),n[u.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(Zo,"ContentMatch");let En=Zo;En.empty=new En(!0);const wa=class wa{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(wa,"TokenStream");let mu=wa;function bf(t){let e=[];do e.push(V0(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}a(bf,"parseExpr");function V0(t){let e=[];do e.push(j0(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}a(V0,"parseExprSeq");function j0(t){let e=W0(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=q0(t,e);else break;return e}a(j0,"parseExprSubscript");function rc(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}a(rc,"parseNum");function q0(t,e){let n=rc(t),r=n;return t.eat(",")&&(t.next!="}"?r=rc(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}a(q0,"parseExprRange");function U0(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(U0,"resolveName");function W0(t){if(t.eat("(")){let e=bf(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=U0(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(W0,"parseExprAtom");function K0(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}a(n,"node");function r(s,u,l){let c={term:l,to:u};return e[s].push(c),c}a(r,"edge");function i(s,u){s.forEach(l=>l.to=u)}a(i,"connect");function o(s,u){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(o(c,u)),[]);if(s.type=="seq")for(let l=0;;l++){let c=o(s.exprs[l],u);if(l==s.exprs.length-1)return c;i(c,u=n())}else if(s.type=="star"){let l=n();return r(u,l),i(o(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(o(s.expr,u),l),i(o(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(u)].concat(o(s.expr,u));if(s.type=="range"){let l=u;for(let c=0;c<s.min;c++){let d=n();i(o(s.expr,l),d),l=d}if(s.max==-1)i(o(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let d=n();r(l,d),i(o(s.expr,l),d),l=d}return[r(l)]}else{if(s.type=="name")return[r(u,void 0,s.value)];throw new Error("Unknown expr type")}}}a(o,"compile")}a(K0,"nfa");function yf(t,e){return e-t}a(yf,"cmp");function ic(t,e){let n=[];return r(e),n.sort(yf);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:u,to:l}=o[s];!u&&n.indexOf(l)==-1&&r(l)}}a(r,"scan")}a(ic,"nullFrom");function J0(t){let e=Object.create(null);return n(ic(t,0));function n(r){let i=[];r.forEach(s=>{t[s].forEach(({term:u,to:l})=>{if(!u)return;let c;for(let d=0;d<i.length;d++)i[d][0]==u&&(c=i[d][1]);ic(t,l).forEach(d=>{c||i.push([u,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let o=e[r.join(",")]=new En(r.indexOf(t.length-1)>-1);for(let s=0;s<i.length;s++){let u=i[s][1].sort(yf);o.next.push({type:i[s][0],next:e[u.join(",")]||n(u)})}return o}}a(J0,"dfa");function G0(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],o=!i.validEnd,s=[];for(let u=0;u<i.next.length;u++){let{type:l,next:c}=i.next[u];s.push(l.name),o&&!(l.isText||l.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(G0,"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 kf(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(kf,"computeAttrs");function wf(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(wf,"checkAttrs");function Cf(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new gu(t,r,e[r]);return n}a(Cf,"initAttrs");var yn;let oc=(yn=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=Cf(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==En.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:kf(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Lt(this,this.computeAttrs(e),M.from(n),z.setFrom(r))}createChecked(e=null,n,r){return n=M.from(n),this.checkContent(n),new Lt(this,this.computeAttrs(e),n,z.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 Lt(this,e,n.append(o),z.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){wf(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:z.none:e}static compile(e,n){let r=Object.create(null);e.forEach((o,s)=>r[o]=new yn(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(yn,"NodeType"),yn);function Z0(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(Z0,"validateType");const Ca=class Ca{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Z0(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}};a(Ca,"Attribute");let gu=Ca;const Xo=class Xo{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=Cf(e,i.attrs),this.excluded=null;let o=xf(this.attrs);this.instance=o?new z(this,o):null}create(e=null){return!e&&this.instance?this.instance:new z(this,kf(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,s)=>r[o]=new Xo(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){wf(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}};a(Xo,"MarkType");let qi=Xo;const Ea=class Ea{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=se.from(e.nodes),n.marks=se.from(e.marks||{}),this.nodes=oc.compile(this.spec.nodes,this),this.marks=qi.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||"",u=o.spec.marks;if(o.contentMatch=r[s]||(r[s]=En.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=u=="_"?null:u?sc(this,u.split(" ")):u==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:sc(this,s.split(" "))}this.nodeFromJSON=i=>Lt.fromJSON(this,i),this.markFromJSON=i=>z.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 oc){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 pu(r,r.defaultAttrs,e,z.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(Ea,"Schema");let Jr=Ea;function sc(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 u in t.marks){let l=t.marks[u];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}a(sc,"gatherMarks");function X0(t){return t.tag!=null}a(X0,"isTagRule");function Y0(t){return t.style!=null}a(Y0,"isStyleRule");const Vr=class Vr{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(X0(i))this.tags.push(i);else if(Y0(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 Ui(this,n,!1);return r.addAll(e,z.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Ui(this,n,!0);return r.addAll(e,z.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(tm(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],u=s.style;if(!(u.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||u.length>e.length&&(u.charCodeAt(e.length)!=61||u.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||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 u=n[s];if((u.priority==null?50:u.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=lc(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=lc(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Vr(e,Vr.schemaRules(e)))}};a(Vr,"DOMParser");let Pt=Vr;const Ef={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},Q0={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Sf={ol:!0,ul:!0},Gr=1,bu=2,Or=4;function uc(t,e,n){return e!=null?(e?Gr:0)|(e==="full"?bu:0):t&&t.whitespace=="pre"?Gr|bu:n&~Or}a(uc,"wsOptionsFor");const Sa=class Sa{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=z.none,this.match=o||(s&Or?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&Gr)){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&&!Ef.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}};a(Sa,"NodeContext");let Fn=Sa;const va=class va{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=uc(null,n.preserveWhitespace,0)|(r?Or:0);i?o=new Fn(i.type,i.attrs,z.none,!0,n.topMatch||i.type.contentMatch,s):r?o=new Fn(null,null,z.none,!0,null,s):o=new Fn(e.schema.topNodeType,null,z.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&bu?"full":this.localPreserveWS||(i.options&Gr)>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 u=r.split(/\r?\n|\r/);for(let l=0;l<u.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),u[l]&&this.insertNode(s.text(u[l]),n,!/\S/.test(u[l]));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 u=i.content[i.content.length-1],l=e.previousSibling;(!u||l&&l.nodeName=="BR"||u.isText&&/[ \t\r\n\u000c]$/.test(u.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(),u;Sf.hasOwnProperty(s)&&this.parser.normalizeLists&&em(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(u=this.parser.matchTag(e,this,r));e:if(l?l.ignore:Q0.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,d=this.needsBlock;if(Ef.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=l&&l.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,l,c,l.consuming===!1?u: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 u=void 0;;){let l=this.parser.matchStyle(o,s,this,u);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)u=l;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 l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let u=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(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}o&&this.sync(u)&&this.open--}addAll(e,n,r,i){let o=r||0;for(let s=r?e.childNodes[r]:e.firstChild,u=i==null?null:e.childNodes[i];s!=u;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,u=0;s>=0;s--){let l=this.nodes[s],c=l.findWrapping(e);if(c&&(!i||i.length>c.length+u)&&(i=c,o=l,!c.length))break;if(l.solid){if(r)break;u+=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=z.none;for(let u of i.concat(e.marks))(o.type?o.type.allowsMarkType(u.type):ac(u.type,e.type))&&(s=u.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 u=uc(e,o,s.options);s.options&Or&&s.content.length==0&&(u|=Or);let l=z.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):ac(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Fn(e,n,l,i,null,u)),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|=Gr)}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((u,l)=>{for(;u>=0;u--){let c=n[u];if(c==""){if(u==n.length-1||u==0)continue;for(;l>=o;l--)if(s(u-1,l))return!0;return!1}else{let d=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;l--}}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(va,"ParseContext");let Ui=va;function em(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Sf.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}a(em,"normalizeList");function tm(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}a(tm,"matches");function lc(t){let e={};for(let n in t)e[n]=t[n];return e}a(lc,"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(u=>{o.push(u);for(let l=0;l<u.edgeCount;l++){let{type:c,next:d}=u.edge(l);if(c==e||o.indexOf(d)<0&&s(d))return!0}},"scan");if(s(i.contentMatch))return!0}}a(ac,"markMayApply");const Yo=class Yo{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Ds(n).createDocumentFragment());let i=r,o=[];return e.forEach(s=>{if(o.length||s.marks.length){let u=0,l=0;for(;u<o.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[u][0])||c.type.spec.spanning===!1)break;u++,l++}for(;u<o.length;)i=o.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],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}=Fi(Ds(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&&Fi(Ds(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return Fi(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Yo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=cc(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return cc(e.marks)}};a(Yo,"DOMSerializer");let Sn=Yo;function cc(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}a(cc,"gatherToDOM");function Ds(t){return t.document||window.document}a(Ds,"doc$1");const dc=new WeakMap;function nm(t){let e=dc.get(t);return e===void 0&&dc.set(t,e=rm(t)),e}a(nm,"suspiciousAttributes");function rm(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(rm,"suspiciousAttributesInner");function Fi(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=nm(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 u,l=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 p=f.indexOf(" ");p>0?l.setAttributeNS(f.slice(0,p),f.slice(p+1),c[f]):f=="style"&&l.style?l.style.cssText=c[f]:l.setAttribute(f,c[f])}}for(let f=d;f<e.length;f++){let p=e[f];if(p===0){if(f<e.length-1||f>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:m}=Fi(t,p,n,r);if(l.appendChild(h),m){if(u)throw new RangeError("Multiple content holes");u=m}}}return{dom:l,contentDOM:u}}a(Fi,"renderSpec");const vf=65535,Af=Math.pow(2,16);function im(t,e){return t+e*Af}a(im,"makeRecover");function fc(t){return t&vf}a(fc,"recoverIndex");function om(t){return(t-(t&vf))/Af}a(om,"recoverOffset");const Mf=1,Tf=2,Li=4,Df=8,Aa=class Aa{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Df)>0}get deletedBefore(){return(this.delInfo&(Mf|Li))>0}get deletedAfter(){return(this.delInfo&(Tf|Li))>0}get deletedAcross(){return(this.delInfo&Li)>0}};a(Aa,"MapResult");let Zr=Aa;const Dt=class Dt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Dt.empty)return Dt.empty}recover(e){let n=0,r=fc(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+om(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 u=0;u<this.ranges.length;u+=3){let l=this.ranges[u]-(this.inverted?i:0);if(l>e)break;let c=this.ranges[u+o],d=this.ranges[u+s],f=l+c;if(e<=f){let p=c?e==l?-1:e==f?1:n:n,h=l+i+(p<0?0:d);if(r)return h;let m=e==(n<0?l:f)?null:im(u/3,e-l),g=e==l?Tf:e==f?Mf:Li;return(n<0?e!=l:e!=f)&&(g|=Df),new Zr(h,g,m)}i+=d-c}return r?e+i:new Zr(e+i,0,null)}touches(e,n){let r=0,i=fc(n),o=this.inverted?2:1,s=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let l=this.ranges[u]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[u+o],d=l+c;if(e<=d&&u==i*3)return!0;r+=this.ranges[u+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],u=s-(this.inverted?o:0),l=s+(this.inverted?0:o),c=this.ranges[i+n],d=this.ranges[i+r];e(u,u+c,l,l+d),o+=d-c}}invert(){return new Dt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Dt.empty:new Dt(e<0?[0,-e,0]:[0,0,e])}};a(Dt,"StepMap");let yt=Dt;yt.empty=new yt([]);const jr=class jr{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 jr(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 jr;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],u=s.mapResult(e,n);if(u.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this._maps[l].recover(u.recover);continue}}i|=u.delInfo,e=u.pos}return r?e:new Zr(e,i,null)}};a(jr,"Mapping");let Wi=jr;const Os=Object.create(null),Ma=class Ma{getMap(){return yt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Os[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 Os)throw new RangeError("Duplicate use of step JSON ID "+e);return Os[e]=n,n.prototype.jsonID=e,n}};a(Ma,"Step");let ie=Ma;const Qt=class Qt{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Qt(e,null)}static fail(e){return new Qt(null,e)}static fromReplace(e,n,r,i){try{return Qt.ok(e.replace(n,r,i))}catch(o){if(o instanceof ir)return Qt.fail(o.message);throw o}}};a(Qt,"StepResult");let ae=Qt;function ml(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let o=t.child(i);o.content.size&&(o=o.copy(ml(o.content,e,o))),o.isInline&&(o=e(o,n,i)),r.push(o)}return M.fromArray(r)}a(ml,"mapFragment");const en=class en extends ie{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(ml(n.content,(s,u)=>!s.isAtom||!u.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return ae.fromReplace(e,this.from,this.to,o)}invert(){return new jt(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 en(n.pos,r.pos,this.mark)}merge(e){return e instanceof en&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new en(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 en(n.from,n.to,e.markFromJSON(n.mark))}};a(en,"AddMarkStep");let Xr=en;ie.jsonID("addMark",Xr);const tn=class tn extends ie{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(ml(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return ae.fromReplace(e,this.from,this.to,r)}invert(){return new Xr(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 tn(n.pos,r.pos,this.mark)}merge(e){return e instanceof tn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new tn(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 tn(n.from,n.to,e.markFromJSON(n.mark))}};a(tn,"RemoveMarkStep");let jt=tn;ie.jsonID("removeMark",jt);const nn=class nn extends ie{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ae.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ae.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 nn(this.pos,n.marks[i]);return new nn(this.pos,this.mark)}}return new sr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new nn(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 nn(n.pos,e.markFromJSON(n.mark))}};a(nn,"AddNodeMarkStep");let Yr=nn;ie.jsonID("addNodeMark",Yr);const qr=class qr extends ie{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ae.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ae.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 Yr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new qr(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 qr(n.pos,e.markFromJSON(n.mark))}};a(qr,"RemoveNodeMarkStep");let sr=qr;ie.jsonID("removeNodeMark",sr);const ft=class ft extends ie{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&yu(e,this.from,this.to)?ae.fail("Structure replace would overwrite content"):ae.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new yt([this.from,this.to-this.from,this.slice.size])}invert(e){return new ft(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 ft(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof ft)||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 ft(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 ft(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 ft(n.from,n.to,T.fromJSON(e,n.slice),!!n.structure)}};a(ft,"ReplaceStep");let Ae=ft;ie.jsonID("replace",Ae);const Ln=class Ln extends ie{constructor(e,n,r,i,o,s,u=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=u}apply(e){if(this.structure&&(yu(e,this.from,this.gapFrom)||yu(e,this.gapTo,this.to)))return ae.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ae.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ae.fromReplace(e,this.from,this.to,r):ae.fail("Content does not fit in gap")}getMap(){return new yt([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 Ln(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 Ln(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 Ln(n.from,n.to,n.gapFrom,n.gapTo,T.fromJSON(e,n.slice),n.insert,!!n.structure)}};a(Ln,"ReplaceAroundStep");let he=Ln;ie.jsonID("replaceAround",he);function yu(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(yu,"contentBetween");function sm(t,e,n,r){let i=[],o=[],s,u;t.doc.nodesBetween(e,n,(l,c,d)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let p=Math.max(c,e),h=Math.min(c+l.nodeSize,n),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(s&&s.to==p&&s.mark.eq(f[g])?s.to=h:i.push(s=new jt(p,h,f[g])));u&&u.to==p?u.to=h:o.push(u=new Xr(p,h,r))}}),i.forEach(l=>t.step(l)),o.forEach(l=>t.step(l))}a(sm,"addMark");function um(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(s,u)=>{if(!s.isInline)return;o++;let l=null;if(r instanceof qi){let c=s.marks,d;for(;d=r.isInSet(c);)(l||(l=[])).push(d),c=d.removeFromSet(c)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let c=Math.min(u+s.nodeSize,n);for(let d=0;d<l.length;d++){let f=l[d],p;for(let h=0;h<i.length;h++){let m=i[h];m.step==o-1&&f.eq(i[h].style)&&(p=m)}p?(p.to=c,p.step=o):i.push({style:f,from:Math.max(u,e),to:c,step:o})}}}),i.forEach(s=>t.step(new jt(s.from,s.to,s.style)))}a(um,"removeMark");function gl(t,e,n,r=n.contentMatch,i=!0){let o=t.doc.nodeAt(e),s=[],u=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),d=u+c.nodeSize,f=r.matchType(c.type);if(!f)s.push(new Ae(u,d,T.empty));else{r=f;for(let p=0;p<c.marks.length;p++)n.allowsMarkType(c.marks[p].type)||t.step(new jt(u,d,c.marks[p]));if(i&&c.isText&&n.whitespace!="pre"){let p,h=/\r?\n|\r/g,m;for(;p=h.exec(c.text);)m||(m=new T(M.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new Ae(u+p.index,u+p.index+p[0].length,m))}}u=d}if(!r.validEnd){let l=r.fillBefore(M.empty,!0);t.replace(u,u,new T(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}a(gl,"clearIncompatible");function lm(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}a(lm,"canCut");function xr(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let i=t.$from.node(r),o=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&i.canReplace(o,s,n))return r;if(r==0||i.type.spec.isolating||!lm(i,o,s))break}return null}a(xr,"liftTarget");function am(t,e,n){let{$from:r,$to:i,depth:o}=e,s=r.before(o+1),u=i.after(o+1),l=s,c=u,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++):l--;let p=M.empty,h=0;for(let m=o,g=!1;m>n;m--)g||i.after(m+1)<i.end(m)?(g=!0,p=M.from(i.node(m).copy(p)),h++):c++;t.step(new he(l,c,s,u,new T(d.append(p),f,h),d.size-f,!0))}a(am,"lift$2");function bl(t,e,n=null,r=t){let i=cm(t,e),o=i&&dm(r,e);return o?i.map(hc).concat({type:e,attrs:n}).concat(o.map(hc)):null}a(bl,"findWrapping");function hc(t){return{type:t,attrs:null}}a(hc,"withAttrs");function cm(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(cm,"findWrappingOutside");function dm(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 l=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}a(dm,"findWrappingInside");function fm(t,e,n){let r=M.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let u=n[s].type.contentMatch.matchFragment(r);if(!u||!u.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 he(i,o,i,o,new T(r,0,0),n.length,!0))}a(fm,"wrap");function hm(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,u)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&pm(t.doc,t.mapping.slice(o).map(u),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!m?c=!1:!h&&m&&(c=!0)}c===!1&&_f(t,s,u,o),gl(t,t.mapping.slice(o).map(u,1),r,void 0,c===null);let d=t.mapping.slice(o),f=d.map(u,1),p=d.map(u+s.nodeSize,1);return t.step(new he(f,p,f+1,p-1,new T(M.from(r.create(l,null,s.marks)),0,0),1,!0)),c===!0&&Of(t,s,u,o),!1}})}a(hm,"setBlockType$1");function Of(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let s,u=/\r?\n|\r/g;for(;s=u.exec(i.text);){let l=t.mapping.slice(r).map(n+1+o+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}a(Of,"replaceNewlines");function _f(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(`
@@ -1,8 +1,8 @@
1
1
  var G0 = Object.defineProperty;
2
2
  var a = (t, e) => G0(t, "name", { value: e, configurable: !0 });
3
3
  import { defineComponent as Cr, h as Ut, ref as wf, getCurrentInstance as Z0, watchEffect as X0, nextTick as Cf, unref as Y0, onBeforeUnmount as vl, markRaw as Q0, customRef as em, onMounted as Sf, Teleport as Ef, resolveComponent as Mr, createElementBlock as Fs, openBlock as Tr, createBlock as hc, createCommentVNode as Ls, createVNode as De, createElementVNode as G, withCtx as qe, normalizeClass as at, createTextVNode as Ps, normalizeStyle as tm, withDirectives as nm, vModelText as rm, resolveDynamicComponent as im } from "vue";
4
- import { b as om, c as sm, P as ps, W as um, V as lm } from "./index-Cb9JNh32.js";
5
- import { F as am } from "./FieldComponent.vue_vue_type_script_lang-D8oglWYI.js";
4
+ import { b as om, c as sm, P as ps, W as um, V as lm } from "./index-C3iH518C.js";
5
+ import { F as am } from "./FieldComponent.vue_vue_type_script_lang-Cz840qnG.js";
6
6
  import { g as cm } from "./_commonjsHelpers-VXLwngCN.js";
7
7
  import { r as dm } from "./NoSymbolIcon-aoAIVIx7.js";
8
8
  import { _ as fm } from "./_plugin-vue_export-helper-B9nE8o7z.js";
@@ -1 +1 @@
1
- .row-wrapper{container-type:inline-size;container-name:grid-container}.row{width:100%;display:grid;grid-template-columns:repeat(12,1fr);align-content:start;grid-auto-rows:auto;align-items:stretch}.row .col-1,.row .col-10,.row .col-11,.row .col-12,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8,.row .col-9{position:relative;grid-column:span 1;align-self:stretch;display:flex;flex-direction:column}.row .col-2{grid-column:span 2}.row .col-3{grid-column:span 3}.row .col-4{grid-column:span 4}.row .col-5{grid-column:span 5}.row .col-6{grid-column:span 6}.row .col-7{grid-column:span 7}.row .col-8{grid-column:span 8}.row .col-9{grid-column:span 9}.row .col-10{grid-column:span 10}.row .col-11{grid-column:span 11}.row .col-12{grid-column:span 12}.row .row-1{grid-row:span 1}.row .row-2{grid-row:span 2}.row .row-3{grid-row:span 3}.row .row-4{grid-row:span 4}.row .row-5{grid-row:span 5}.row .row-6{grid-row:span 6}.row .row-7{grid-row:span 7}.row .row-8{grid-row:span 8}.row .row-9{grid-row:span 9}.row .row-10{grid-row:span 10}.row .row-11{grid-row:span 11}.row .row-12{grid-row:span 12}@media (max-width:767px){.row{grid-template-columns:repeat(2,1fr)}.row .col-1,.row .col-10,.row .col-11,.row .col-12,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8,.row .col-9{grid-column:span 2}}@media (min-width:768px) and (max-width:1279px){.row{grid-template-columns:repeat(4,1fr)}.row .col-1,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8{grid-column:span 2}.row .col-10,.row .col-11,.row .col-12,.row .col-9{grid-column:span 4}}@media (min-width:1280px) and (max-width:1366px){.row{grid-template-columns:repeat(12,1fr)}}@media (min-width:1367px){.row{grid-template-columns:repeat(12,1fr)}}@container grid-container (max-width:767px){.row{grid-template-columns:repeat(2,1fr)}.row .col-1,.row .col-10,.row .col-11,.row .col-12,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8,.row .col-9{grid-column:span 2}}@container grid-container (min-width:768px) && (max-width:1279px){.row{grid-template-columns:repeat(4,1fr)}.row .col-1,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8{grid-column:span 2}.row .col-10,.row .col-11,.row .col-12,.row .col-9{grid-column:span 4}}@container grid-container (min-width:1280px) && (max-width:1366px){.row{grid-template-columns:repeat(12,1fr)}}@container grid-container (min-width:1367px){.row{grid-template-columns:repeat(12,1fr)}}
1
+ .row-wrapper{container-type:inline-size;container-name:grid-container}.row{width:100%;display:grid;grid-template-columns:repeat(12,1fr);align-content:start;grid-auto-rows:auto;align-items:stretch}.row .col-1,.row .col-10,.row .col-11,.row .col-12,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8,.row .col-9{flex: auto !important;max-width: 100% !important;position:relative;grid-column:span 1;align-self:stretch;display:flex;flex-direction:column}.row .col-2{grid-column:span 2}.row .col-3{grid-column:span 3}.row .col-4{grid-column:span 4}.row .col-5{grid-column:span 5}.row .col-6{grid-column:span 6}.row .col-7{grid-column:span 7}.row .col-8{grid-column:span 8}.row .col-9{grid-column:span 9}.row .col-10{grid-column:span 10}.row .col-11{grid-column:span 11}.row .col-12{grid-column:span 12}.row .row-1{grid-row:span 1}.row .row-2{grid-row:span 2}.row .row-3{grid-row:span 3}.row .row-4{grid-row:span 4}.row .row-5{grid-row:span 5}.row .row-6{grid-row:span 6}.row .row-7{grid-row:span 7}.row .row-8{grid-row:span 8}.row .row-9{grid-row:span 9}.row .row-10{grid-row:span 10}.row .row-11{grid-row:span 11}.row .row-12{grid-row:span 12}@media (max-width:767px){.row{grid-template-columns:repeat(2,1fr)}.row .col-1,.row .col-10,.row .col-11,.row .col-12,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8,.row .col-9{grid-column:span 2}}@media (min-width:768px) and (max-width:1279px){.row{grid-template-columns:repeat(4,1fr)}.row .col-1,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8{grid-column:span 2}.row .col-10,.row .col-11,.row .col-12,.row .col-9{grid-column:span 4}}@media (min-width:1280px) and (max-width:1366px){.row{grid-template-columns:repeat(12,1fr)}}@media (min-width:1367px){.row{grid-template-columns:repeat(12,1fr)}}@container grid-container (max-width:767px){.row{grid-template-columns:repeat(2,1fr)}.row .col-1,.row .col-10,.row .col-11,.row .col-12,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8,.row .col-9{grid-column:span 2}}@container grid-container (min-width:768px) && (max-width:1279px){.row{grid-template-columns:repeat(4,1fr)}.row .col-1,.row .col-2,.row .col-3,.row .col-4,.row .col-5,.row .col-6,.row .col-7,.row .col-8{grid-column:span 2}.row .col-10,.row .col-11,.row .col-12,.row .col-9{grid-column:span 4}}@container grid-container (min-width:1280px) && (max-width:1366px){.row{grid-template-columns:repeat(12,1fr)}}@container grid-container (min-width:1367px){.row{grid-template-columns:repeat(12,1fr)}}
@@ -4309,7 +4309,7 @@ b([
4309
4309
  g("design:paramtypes", [Boolean]),
4310
4310
  g("design:returntype", void 0)
4311
4311
  ], M.prototype, "_onDisabledChanged", null);
4312
- const Pd = Jt(() => import("./Button-D3wxk32n.js")), Bi = class Bi extends Ht {
4312
+ const Pd = Jt(() => import("./Button-BkzQb0g8.js")), Bi = class Bi extends Ht {
4313
4313
  VST;
4314
4314
  emitsParent = ["update:modelValue"];
4315
4315
  constructor() {
@@ -4600,7 +4600,7 @@ b([
4600
4600
  g("design:paramtypes", [Boolean]),
4601
4601
  g("design:returntype", void 0)
4602
4602
  ], O.prototype, "_onDisabledChanged", null);
4603
- const _d = Jt(() => import("./Tabs-Bdbmi4vp.js")), kd = Jt(() => import("./SelectField-_DCw7asw.js")), Ed = Jt(() => import("./StringField-Q6tdcgNE.js")), Nd = Jt(() => import("./SwitchField-D2CUl-83.js")), jd = Jt(() => import("./TextField-BiySwnpX.js")), Vd = Jt(() => import("./DateField-CbD-7nJo.js"));
4603
+ const _d = Jt(() => import("./Tabs-Be4PuSkW.js")), kd = Jt(() => import("./SelectField-CAXhi6l3.js")), Ed = Jt(() => import("./StringField-s9Wz67z0.js")), Nd = Jt(() => import("./SwitchField-B3U3kL7v.js")), jd = Jt(() => import("./TextField-DPh0d_BF.js")), Vd = Jt(() => import("./DateField-Bw053ye0.js"));
4604
4604
  var Bd = Object.defineProperty, Od = Object.getOwnPropertyDescriptor, Se = /* @__PURE__ */ o((t, n, e, r) => {
4605
4605
  for (var i = r > 1 ? void 0 : r ? Od(n, e) : n, s = t.length - 1, c; s >= 0; s--)
4606
4606
  (c = t[s]) && (i = (r ? c(n, e, i) : c(i)) || i);
@@ -4650,7 +4650,7 @@ Se([
4650
4650
  Se([
4651
4651
  wn("value", !0)
4652
4652
  ], hn.prototype, "_valueWatch", 1);
4653
- const Rd = Jt(() => import("./CodeHighlight-hA59-wK0.js"));
4653
+ const Rd = Jt(() => import("./CodeHighlight-Bh23z1uf.js"));
4654
4654
  export {
4655
4655
  M as B,
4656
4656
  Id as C,