paas-component-library 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/paas-ui.js CHANGED
@@ -51138,10 +51138,16 @@ function b$(e, n, r, i, a, o) {
51138
51138
  }
51139
51139
  var x$ = /* @__PURE__ */ F(y$, [["render", b$], ["__scopeId", "data-v-541aea24"]]), S$ = {
51140
51140
  name: "MenuItemNode",
51141
- props: { node: {
51142
- type: Object,
51143
- required: !0
51144
- } },
51141
+ props: {
51142
+ node: {
51143
+ type: Object,
51144
+ required: !0
51145
+ },
51146
+ readonly: {
51147
+ type: Boolean,
51148
+ default: !1
51149
+ }
51150
+ },
51145
51151
  methods: {
51146
51152
  stop(e) {
51147
51153
  e && e.stopPropagation && e.stopPropagation();
@@ -51177,7 +51183,7 @@ function D$(n, s, c, l, u, d) {
51177
51183
  }, {
51178
51184
  title: O(() => [i("div", {
51179
51185
  class: "menu-title clickable",
51180
- onClick: s[3] ||= k((e) => d.toggleOpen(c.node), ["stop"])
51186
+ onClick: s[3] ||= k((e) => !c.readonly && d.toggleOpen(c.node), ["stop"])
51181
51187
  }, [i("span", C$, [o(m, { trigger: "contextmenu" }, {
51182
51188
  overlay: O(() => [o(p, null, {
51183
51189
  default: O(() => [
@@ -51243,7 +51249,7 @@ function D$(n, s, c, l, u, d) {
51243
51249
  //#region src/components/PaasTreePanel/index.vue
51244
51250
  var O$ = {
51245
51251
  name: "PaasTreePanel",
51246
- components: { MenuItemNode: /* @__PURE__ */ F(S$, [["render", D$], ["__scopeId", "data-v-e11ea922"]]) },
51252
+ components: { MenuItemNode: /* @__PURE__ */ F(S$, [["render", D$], ["__scopeId", "data-v-e55ff356"]]) },
51247
51253
  computed: { see() {
51248
51254
  return this.$store?.forms?.see || !1;
51249
51255
  } },
@@ -51263,6 +51269,14 @@ var O$ = {
51263
51269
  listToTree: {
51264
51270
  type: Boolean,
51265
51271
  default: !0
51272
+ },
51273
+ url: {
51274
+ type: String,
51275
+ default: "/system/sys-group/list"
51276
+ },
51277
+ readonly: {
51278
+ type: Boolean,
51279
+ default: !1
51266
51280
  }
51267
51281
  },
51268
51282
  emits: ["update:modelValue", "change"],
@@ -51301,7 +51315,7 @@ var O$ = {
51301
51315
  return e ? Array.isArray(e) ? e.filter(Boolean).map(String) : typeof e == "string" ? e.includes(",") ? e.split(",").filter(Boolean).map(String) : [e] : [String(e)] : [];
51302
51316
  },
51303
51317
  getTreeData() {
51304
- this.$post("/system/sys-group/list", {
51318
+ this.$post(this.url, {
51305
51319
  page: {
51306
51320
  current: 1,
51307
51321
  size: 1e6
@@ -51431,8 +51445,11 @@ var O$ = {
51431
51445
  });
51432
51446
  }
51433
51447
  }
51434
- }, k$ = { style: { "text-align": "center" } };
51435
- function A$(n, s, c, l, u, d) {
51448
+ }, k$ = {
51449
+ key: 0,
51450
+ style: { "text-align": "center" }
51451
+ };
51452
+ function A$(i, s, c, l, u, d) {
51436
51453
  let f = C("menu-item-node"), p = C("a-menu"), h = C("a-button"), g = C("a-input"), _ = C("a-form-item"), y = C("a-form"), b = C("a-modal");
51437
51454
  return v(), r("div", null, [
51438
51455
  o(p, {
@@ -51448,6 +51465,7 @@ function A$(n, s, c, l, u, d) {
51448
51465
  })
51449
51466
  }, {
51450
51467
  default: O(() => [(v(!0), r(e, null, x(u.treeData, (e) => (v(), t(f, {
51468
+ readonly: c.readonly,
51451
51469
  key: e.value,
51452
51470
  node: e,
51453
51471
  onSelect: d.handleSelectFromNode,
@@ -51455,6 +51473,7 @@ function A$(n, s, c, l, u, d) {
51455
51473
  onDelete: d.confirmDeleteGroup,
51456
51474
  onAddChild: d.openAddChildOf
51457
51475
  }, null, 8, [
51476
+ "readonly",
51458
51477
  "node",
51459
51478
  "onSelect",
51460
51479
  "onEdit",
@@ -51470,15 +51489,16 @@ function A$(n, s, c, l, u, d) {
51470
51489
  "onOpenChange",
51471
51490
  "style"
51472
51491
  ]),
51473
- i("div", k$, [o(h, {
51492
+ c.readonly ? n("", !0) : (v(), r("div", k$, [o(h, {
51474
51493
  type: "link",
51475
- onClick: s[0] ||= k((e) => d.openAddGroup(n.node), ["stop"]),
51494
+ onClick: s[0] ||= k((e) => d.openAddGroup(i.node), ["stop"]),
51476
51495
  style: { margin: "0 10px 10px 10px" }
51477
51496
  }, {
51478
51497
  default: O(() => [...s[4] ||= [a(" 添加根级 ", -1)]]),
51479
51498
  _: 1
51480
- })]),
51481
- o(b, {
51499
+ })])),
51500
+ c.readonly ? n("", !0) : (v(), t(b, {
51501
+ key: 1,
51482
51502
  open: u.groupModalVisible,
51483
51503
  "onUpdate:open": s[3] ||= (e) => u.groupModalVisible = e,
51484
51504
  closable: !0,
@@ -51517,10 +51537,10 @@ function A$(n, s, c, l, u, d) {
51517
51537
  _: 1
51518
51538
  }, 8, ["model"])]),
51519
51539
  _: 1
51520
- }, 8, ["open", "title"])
51540
+ }, 8, ["open", "title"]))
51521
51541
  ]);
51522
51542
  }
51523
- var j$ = /* @__PURE__ */ F(O$, [["render", A$], ["__scopeId", "data-v-25c75bfe"]]), M$ = s({
51543
+ var j$ = /* @__PURE__ */ F(O$, [["render", A$], ["__scopeId", "data-v-a8a7f058"]]), M$ = s({
51524
51544
  name: "PaasIcon",
51525
51545
  props: { icon: {
51526
51546
  type: String,
@@ -100,7 +100,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
100
100
  `)}return t}function de(e,t){var n={},r=e.style||{};return r.fontStyle&&ne(e).fontStyle===`italic`&&(n.italic=!0),r.fontWeight&&(ne(e).fontWeight.startsWith(`bold`)||parseInt(ne(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=te(t,n)),parseFloat(r.textIndent||0)>0&&(t=new s.default().insert(` `).concat(t)),t}function fe(e,t){var n=e.data;if(e.parentNode.tagName===`O:P`)return t.insert(n.trim());if(n.trim().length===0&&e.parentNode.classList.contains(`ql-clipboard`))return t;if(!ne(e.parentNode).whiteSpace.startsWith(`pre`)){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,``),t.length<1&&e?` `:t};n=n.replace(/\r\n/g,` `).replace(/\n/g,` `),n=n.replace(/\s\s+/g,r.bind(r,!0)),(e.previousSibling==null&&ie(e.parentNode)||e.previousSibling!=null&&ie(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(e.nextSibling==null&&ie(e.parentNode)||e.nextSibling!=null&&ie(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}t.default=O,t.matchAttributor=A,t.matchBlot=oe,t.matchNewline=j,t.matchSpacing=ue,t.matchText=fe}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){l(t,e);function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,[{key:`optimize`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`optimize`,this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:`create`,value:function(){return i(t.__proto__||Object.getPrototypeOf(t),`create`,this).call(this)}},{key:`formats`,value:function(){return!0}}]),t}(a.default);u.blotName=`bold`,u.tagName=[`STRONG`,`B`],t.default=u}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(2)),o=u(n(0)),s=u(n(5)),c=u(n(10)),l=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function p(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(0,c.default)(`quill:toolbar`),g=function(e){m(t,e);function t(e,n){f(this,t);var i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement(`div`);v(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else typeof i.options.container==`string`?i.container=document.querySelector(i.options.container):i.container=i.options.container;if(!(i.container instanceof HTMLElement)){var o;return o=h.error(`Container required for toolbar`,i.options),p(i,o)}return i.container.classList.add(`ql-toolbar`),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach(function(e){i.addHandler(e,i.options.handlers[e])}),[].forEach.call(i.container.querySelectorAll(`button, select`),function(e){i.attach(e)}),i.quill.on(s.default.events.EDITOR_CHANGE,function(e,t){e===s.default.events.SELECTION_CHANGE&&i.update(t)}),i.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var e=r(i.quill.selection.getRange(),1)[0];i.update(e)}),i}return i(t,[{key:`addHandler`,value:function(e,t){this.handlers[e]=t}},{key:`attach`,value:function(e){var t=this,n=[].find.call(e.classList,function(e){return e.indexOf(`ql-`)===0});if(n){if(n=n.slice(3),e.tagName===`BUTTON`&&e.setAttribute(`type`,`button`),this.handlers[n]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[n]==null){h.warn(`ignoring attaching to disabled format`,n,e);return}if(o.default.query(n)==null){h.warn(`ignoring attaching to nonexistent format`,n,e);return}}var i=e.tagName===`SELECT`?`change`:`click`;e.addEventListener(i,function(i){var c=void 0;if(e.tagName===`SELECT`){if(e.selectedIndex<0)return;var l=e.options[e.selectedIndex];c=l.hasAttribute(`selected`)?!1:l.value||!1}else c=e.classList.contains(`ql-active`)?!1:e.value||!e.hasAttribute(`value`),i.preventDefault();t.quill.focus();var u=r(t.quill.selection.getRange(),1)[0];if(t.handlers[n]!=null)t.handlers[n].call(t,c);else if(o.default.query(n).prototype instanceof o.default.Embed){if(c=prompt(`Enter `+n),!c)return;t.quill.updateContents(new a.default().retain(u.index).delete(u.length).insert(d({},n,c)),s.default.sources.USER)}else t.quill.format(n,c,s.default.sources.USER);t.update(u)}),this.controls.push([n,e])}}},{key:`update`,value:function(e){var t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(function(n){var i=r(n,2),a=i[0],o=i[1];if(o.tagName===`SELECT`){var s=void 0;if(e==null)s=null;else if(t[a]==null)s=o.querySelector(`option[selected]`);else if(!Array.isArray(t[a])){var c=t[a];typeof c==`string`&&(c=c.replace(/\"/g,`\\"`)),s=o.querySelector(`option[value="`+c+`"]`)}s==null?(o.value=``,o.selectedIndex=-1):s.selected=!0}else if(e==null)o.classList.remove(`ql-active`);else if(o.hasAttribute(`value`)){var l=t[a]===o.getAttribute(`value`)||t[a]!=null&&t[a].toString()===o.getAttribute(`value`)||t[a]==null&&!o.getAttribute(`value`);o.classList.toggle(`ql-active`,l)}else o.classList.toggle(`ql-active`,t[a]!=null)})}}]),t}(l.default);g.DEFAULTS={};function _(e,t,n){var r=document.createElement(`button`);r.setAttribute(`type`,`button`),r.classList.add(`ql-`+t),n!=null&&(r.value=n),e.appendChild(r)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var n=document.createElement(`span`);n.classList.add(`ql-formats`),t.forEach(function(e){if(typeof e==`string`)_(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?y(n,t,r):_(n,t,r)}}),e.appendChild(n)})}function y(e,t,n){var r=document.createElement(`select`);r.classList.add(`ql-`+t),n.forEach(function(e){var t=document.createElement(`option`);e===!1?t.setAttribute(`selected`,`selected`):t.setAttribute(`value`,e),r.appendChild(t)}),e.appendChild(r)}g.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(t!=null)if(t.length==0){var n=this.quill.getFormat();Object.keys(n).forEach(function(t){o.default.query(t,o.default.Scope.INLINE)!=null&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;e===`rtl`&&t==null?this.quill.format(`align`,`right`,s.default.sources.USER):!e&&t===`right`&&this.quill.format(`align`,!1,s.default.sources.USER),this.quill.format(`direction`,e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if(e===`+1`||e===`-1`){var i=e===`+1`?1:-1;n.direction===`rtl`&&(i*=-1),this.quill.format(`indent`,r+i,s.default.sources.USER)}},link:function(e){e===!0&&(e=prompt(`Enter link URL:`)),this.quill.format(`link`,e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);e===`check`?n.list===`checked`||n.list===`unchecked`?this.quill.format(`list`,!1,s.default.sources.USER):this.quill.format(`list`,`unchecked`,s.default.sources.USER):this.quill.format(`list`,e,s.default.sources.USER)}}},t.default=g,t.addControls=v}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>`}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=o(n(28));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){l(t,e);function t(e,n){s(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add(`ql-color-picker`),[].slice.call(r.container.querySelectorAll(`.ql-picker-item`),0,7).forEach(function(e){e.classList.add(`ql-primary`)}),r}return r(t,[{key:`buildItem`,value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`buildItem`,this).call(this,e);return n.style.backgroundColor=e.getAttribute(`value`)||``,n}},{key:`selectItem`,value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`selectItem`,this).call(this,e,n);var r=this.label.querySelector(`.ql-color-label`),a=e&&e.getAttribute(`data-value`)||``;r&&(r.tagName===`line`?r.style.stroke=a:r.style.fill=a)}}]),t}(a.default)}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=o(n(28));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){l(t,e);function t(e,n){s(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add(`ql-icon-picker`),[].forEach.call(r.container.querySelectorAll(`.ql-picker-item`),function(e){e.innerHTML=n[e.getAttribute(`data-value`)||``]}),r.defaultItem=r.container.querySelector(`.ql-selected`),r.selectItem(r.defaultItem),r}return r(t,[{key:`selectItem`,value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`selectItem`,this).call(this,e,n),e||=this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(a.default)}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t,n){var r=this;i(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer(`ql-tooltip`),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener(`scroll`,function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+`px`}),this.hide()}return r(e,[{key:`hide`,value:function(){this.root.classList.add(`ql-hidden`)}},{key:`position`,value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+`px`,this.root.style.top=n+`px`,this.root.classList.remove(`ql-flip`);var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),a=0;if(i.right>r.right&&(a=r.right-i.right,this.root.style.left=t+a+`px`),i.left<r.left&&(a=r.left-i.left,this.root.style.left=t+a+`px`),i.bottom>r.bottom){var o=i.bottom-i.top,s=e.bottom-e.top+o;this.root.style.top=n-s+`px`,this.root.classList.add(`ql-flip`)}return a}},{key:`show`,value:function(){this.root.classList.remove(`ql-editing`),this.root.classList.remove(`ql-hidden`)}}]),e}()}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=p(n(3)),s=p(n(8)),c=n(43),l=p(c),u=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function h(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function g(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=[[{header:[`1`,`2`,`3`,!1]}],[`bold`,`italic`,`underline`,`link`],[{list:`ordered`},{list:`bullet`}],[`clean`]],v=function(e){g(t,e);function t(e,n){m(this,t),n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=_);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add(`ql-snow`),r}return a(t,[{key:`extendToolbar`,value:function(e){e.container.classList.add(`ql-snow`),this.buildButtons([].slice.call(e.container.querySelectorAll(`button`)),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll(`select`)),f.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(`.ql-link`)&&this.quill.keyboard.addBinding({key:`K`,shortKey:!0},function(t,n){e.handlers.link.call(e,!n.format.link)})}}]),t}(l.default);v.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(t==null||t.length==0)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf(`mailto:`)!==0&&(n=`mailto:`+n),this.quill.theme.tooltip.edit(`link`,n)}else this.quill.format(`link`,!1)}}}}});var y=function(e){g(t,e);function t(e,n){m(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector(`a.ql-preview`),r}return a(t,[{key:`listen`,value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`listen`,this).call(this),this.root.querySelector(`a.ql-action`).addEventListener(`click`,function(t){e.root.classList.contains(`ql-editing`)?e.save():e.edit(`link`,e.preview.textContent),t.preventDefault()}),this.root.querySelector(`a.ql-remove`).addEventListener(`click`,function(t){if(e.linkRange!=null){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,`link`,!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(s.default.events.SELECTION_CHANGE,function(t,n,i){if(t!=null){if(t.length===0&&i===s.default.sources.USER){var a=r(e.quill.scroll.descendant(u.default,t.index),2),o=a[0],c=a[1];if(o!=null){e.linkRange=new d.Range(t.index-c,o.length());var l=u.default.formats(o.domNode);e.preview.textContent=l,e.preview.setAttribute(`href`,l),e.show(),e.position(e.quill.getBounds(e.linkRange));return}}else delete e.linkRange;e.hide()}})}},{key:`show`,value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`show`,this).call(this),this.root.removeAttribute(`data-mode`)}}]),t}(c.BaseTooltip);y.TEMPLATE=[`<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>`,`<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">`,`<a class="ql-action"></a>`,`<a class="ql-remove"></a>`].join(``),t.default=v}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=k(n(29)),i=n(36),a=n(38),o=n(64),s=k(n(65)),c=k(n(66)),l=n(67),u=k(l),d=n(37),f=n(26),p=n(39),m=n(40),h=k(n(56)),g=k(n(68)),_=k(n(27)),v=k(n(69)),y=k(n(70)),b=k(n(71)),x=k(n(72)),S=k(n(73)),C=n(13),w=k(C),T=k(n(74)),E=k(n(75)),D=k(n(57)),ee=k(n(41)),O=k(n(28)),te=k(n(59)),ne=k(n(60)),re=k(n(61)),ie=k(n(108)),ae=k(n(62));function k(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":m.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":o.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":m.SizeClass,"formats/blockquote":s.default,"formats/code-block":w.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":h.default,"formats/code":C.Code,"formats/italic":g.default,"formats/link":_.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":b.default,"formats/image":x.default,"formats/video":S.default,"formats/list/item":l.ListItem,"modules/formula":T.default,"modules/syntax":E.default,"modules/toolbar":D.default,"themes/bubble":ie.default,"themes/snow":ae.default,"ui/icons":ee.default,"ui/picker":O.default,"ui/icon-picker":ne.default,"ui/color-picker":te.default,"ui/tooltip":re.default},!0),t.default=r.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=o(n(0));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.IndentClass=new(function(e){l(t,e);function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,[{key:`add`,value:function(e,n){if(n===`+1`||n===`-1`){var r=this.value(e)||0;n=n===`+1`?r+1:r-1}return n===0?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`add`,this).call(this,e,n)}},{key:`canAdd`,value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`canAdd`,this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`canAdd`,this).call(this,e,parseInt(n))}},{key:`value`,value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`value`,this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class))(`indent`,`ql-indent`,{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]})}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(4));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){s(t,e);function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(r.default);c.blotName=`blockquote`,c.tagName=`blockquote`,t.default=c}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(4));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,null,[{key:`formats`,value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(i.default);l.blotName=`header`,l.tagName=[`H1`,`H2`,`H3`,`H4`,`H5`,`H6`],t.default=l}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=c(n(0)),o=c(n(4)),s=c(n(25));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function d(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function f(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){f(t,e);function t(){return u(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,[{key:`format`,value:function(e,n){e===m.blotName&&!n?this.replaceWith(a.default.create(this.statics.scope)):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`format`,this).call(this,e,n)}},{key:`remove`,value:function(){this.prev==null&&this.next==null?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`remove`,this).call(this)}},{key:`replaceWith`,value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`replaceWith`,this).call(this,e,n))}}],[{key:`formats`,value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),`formats`,this).call(this,e)}}]),t}(o.default);p.blotName=`list-item`,p.tagName=`LI`;var m=function(e){f(t,e),r(t,null,[{key:`create`,value:function(e){var n=e===`ordered`?`OL`:`UL`,r=i(t.__proto__||Object.getPrototypeOf(t),`create`,this).call(this,n);return(e===`checked`||e===`unchecked`)&&r.setAttribute(`data-checked`,e===`checked`),r}},{key:`formats`,value:function(e){if(e.tagName===`OL`)return`ordered`;if(e.tagName===`UL`)return e.hasAttribute(`data-checked`)?e.getAttribute(`data-checked`)===`true`?`checked`:`unchecked`:`bullet`}}]);function t(e){u(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=a.default.find(t.target);r===`checked`?i.format(`list`,`unchecked`):r===`unchecked`&&i.format(`list`,`checked`)}};return e.addEventListener(`touchstart`,r),e.addEventListener(`mousedown`,r),n}return r(t,[{key:`format`,value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:`formats`,value:function(){return l({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:`insertBefore`,value:function(e,n){if(e instanceof p)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`insertBefore`,this).call(this,e,n);else{var r=n==null?this.length():n.offset(this),a=this.split(r);a.parent.insertBefore(e,a)}}},{key:`optimize`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`optimize`,this).call(this,e);var n=this.next;n!=null&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute(`data-checked`)===this.domNode.getAttribute(`data-checked`)&&(n.moveChildren(this),n.remove())}},{key:`replace`,value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`replace`,this).call(this,e)}}]),t}(s.default);m.blotName=`list`,m.scope=a.default.Scope.BLOCK_BLOT,m.tagName=[`OL`,`UL`],m.defaultChild=`list-item`,m.allowedChildren=[p],t.ListItem=p,t.default=m}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(56));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){s(t,e);function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(r.default);c.blotName=`italic`,c.tagName=[`EM`,`I`],t.default=c}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){l(t,e);function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,null,[{key:`create`,value:function(e){return e===`super`?document.createElement(`sup`):e===`sub`?document.createElement(`sub`):i(t.__proto__||Object.getPrototypeOf(t),`create`,this).call(this,e)}},{key:`formats`,value:function(e){if(e.tagName===`SUB`)return`sub`;if(e.tagName===`SUP`)return`super`}}]),t}(a.default);u.blotName=`script`,u.tagName=[`SUB`,`SUP`],t.default=u}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){s(t,e);function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(r.default);c.blotName=`strike`,c.tagName=`S`,t.default=c}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){s(t,e);function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(r.default);c.blotName=`underline`,c.tagName=`U`,t.default=c}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(0)),o=n(27);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=[`alt`,`height`,`width`],f=function(e){u(t,e);function t(){return c(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,[{key:`format`,value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`format`,this).call(this,e,n)}}],[{key:`create`,value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),`create`,this).call(this,e);return typeof e==`string`&&n.setAttribute(`src`,this.sanitize(e)),n}},{key:`formats`,value:function(e){return d.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:`match`,value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:`sanitize`,value:function(e){return(0,o.sanitize)(e,[`http`,`https`,`data`])?e:`//:0`}},{key:`value`,value:function(e){return e.getAttribute(`src`)}}]),t}(a.default.Embed);f.blotName=`image`,f.tagName=`IMG`,t.default=f}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=n(4),o=s(n(27));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=[`height`,`width`],f=function(e){u(t,e);function t(){return c(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,[{key:`format`,value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`format`,this).call(this,e,n)}}],[{key:`create`,value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),`create`,this).call(this,e);return n.setAttribute(`frameborder`,`0`),n.setAttribute(`allowfullscreen`,!0),n.setAttribute(`src`,this.sanitize(e)),n}},{key:`formats`,value:function(e){return d.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:`sanitize`,value:function(e){return o.default.sanitize(e)}},{key:`value`,value:function(e){return e.getAttribute(`src`)}}]),t}(a.BlockEmbed);f.blotName=`video`,f.className=`ql-video`,f.tagName=`IFRAME`,t.default=f}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=c(n(35)),o=c(n(5)),s=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function d(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){d(t,e);function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,null,[{key:`create`,value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),`create`,this).call(this,e);return typeof e==`string`&&(window.katex.render(e,n,{throwOnError:!1,errorColor:`#f00`}),n.setAttribute(`data-value`,e)),n}},{key:`value`,value:function(e){return e.getAttribute(`data-value`)}}]),t}(a.default);f.blotName=`formula`,f.className=`ql-formula`,f.tagName=`SPAN`;var p=function(e){d(t,e),r(t,null,[{key:`register`,value:function(){o.default.register(f,!0)}}]);function t(){l(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(window.katex==null)throw Error(`Formula module requires KaTeX.`);return e}return t}(s.default);t.FormulaBlot=f,t.default=p}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=l(n(0)),o=l(n(5)),s=l(n(9)),c=l(n(13));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function d(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function f(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){f(t,e);function t(){return u(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,[{key:`replaceWith`,value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`replaceWith`,this).call(this,e)}},{key:`highlight`,value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(c.default);p.className=`ql-syntax`;var m=new a.default.Attributor.Class(`token`,`hljs`,{scope:a.default.Scope.INLINE}),h=function(e){f(t,e),r(t,null,[{key:`register`,value:function(){o.default.register(m,!0),o.default.register(p,!0)}}]);function t(e,n){u(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(typeof r.options.highlight!=`function`)throw Error(`Syntax module requires highlight.js. Please include the library on the page before Quill.`);var i=null;return r.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(i),i=setTimeout(function(){r.highlight(),i=null},r.options.interval)}),r.highlight(),r}return r(t,[{key:`highlight`,value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(o.default.sources.SILENT),t!=null&&this.quill.setSelection(t,o.default.sources.SILENT)}}}]),t}(s.default);h.DEFAULTS={highlight:function(){return window.hljs==null?null:function(e){return window.hljs.highlightAuto(e).value}}(),interval:1e3},t.CodeBlock=p,t.CodeToken=m,t.default=h}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>`}),(function(e,t){e.exports=`<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>`}),(function(e,t){e.exports=`<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>`}),(function(e,t){e.exports=`<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>`}),(function(e,t){e.exports=`<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>`}),(function(e,t){e.exports=`<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>`}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=d(n(3)),o=d(n(8)),s=n(43),c=d(s),l=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function p(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=[[`bold`,`italic`,`link`],[{header:1},{header:2},`blockquote`]],g=function(e){m(t,e);function t(e,n){f(this,t),n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=h);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add(`ql-bubble`),r}return i(t,[{key:`extendToolbar`,value:function(e){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll(`button`)),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll(`select`)),u.default)}}]),t}(c.default);g.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format(`link`,!1)}}}}});var _=function(e){m(t,e);function t(e,n){f(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(o.default.events.EDITOR_CHANGE,function(e,t,n,i){if(e===o.default.events.SELECTION_CHANGE)if(t!=null&&t.length>0&&i===o.default.sources.USER){r.show(),r.root.style.left=`0px`,r.root.style.width=``,r.root.style.width=r.root.offsetWidth+`px`;var a=r.quill.getLines(t.index,t.length);if(a.length===1)r.position(r.quill.getBounds(t));else{var s=a[a.length-1],c=r.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-c),d=r.quill.getBounds(new l.Range(c,u));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return i(t,[{key:`listen`,value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`listen`,this).call(this),this.root.querySelector(`.ql-close`).addEventListener(`click`,function(){e.root.classList.remove(`ql-editing`)}),this.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains(`ql-hidden`)){var t=e.quill.getSelection();t!=null&&e.position(e.quill.getBounds(t))}},1)})}},{key:`cancel`,value:function(){this.show()}},{key:`position`,value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`position`,this).call(this,e),i=this.root.querySelector(`.ql-tooltip-arrow`);if(i.style.marginLeft=``,n===0)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+`px`}}]),t}(s.BaseTooltip);_.TEMPLATE=[`<span class="ql-tooltip-arrow"></span>`,`<div class="ql-tooltip-editor">`,`<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">`,`<a class="ql-close"></a>`,`</div>`].join(``),t.BubbleTooltip=_,t.default=g}),(function(e,t,n){e.exports=n(63)})]).default})})),a$=l(((e,t)=>{var n=-1,r=1,i=0;function a(e,t,n,r){if(e===t)return e?[[i,e]]:[];if(n!=null){var a=y(e,t,n);if(a)return a}var s=l(e,t),c=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=u(e,t);var d=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var p=o(e,t);return c&&p.unshift([i,c]),d&&p.push([i,d]),f(p,r),p}function o(e,t){var o;if(!e)return[[r,t]];if(!t)return[[n,e]];var c=e.length>t.length?e:t,l=e.length>t.length?t:e,u=c.indexOf(l);if(u!==-1)return o=[[r,c.substring(0,u)],[i,l],[r,c.substring(u+l.length)]],e.length>t.length&&(o[0][0]=o[2][0]=n),o;if(l.length===1)return[[n,e],[r,t]];var f=d(e,t);if(f){var p=f[0],m=f[1],h=f[2],g=f[3],_=f[4],v=a(p,h),y=a(m,g);return v.concat([[i,_]],y)}return s(e,t)}function s(e,t){for(var i=e.length,a=t.length,o=Math.ceil((i+a)/2),s=o,l=2*o,u=Array(l),d=Array(l),f=0;f<l;f++)u[f]=-1,d[f]=-1;u[s+1]=0,d[s+1]=0;for(var p=i-a,m=p%2!=0,h=0,g=0,_=0,v=0,y=0;y<o;y++){for(var b=-y+h;b<=y-g;b+=2){for(var x=s+b,S=b===-y||b!==y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1,C=S-b;S<i&&C<a&&e.charAt(S)===t.charAt(C);)S++,C++;if(u[x]=S,S>i)g+=2;else if(C>a)h+=2;else if(m){var w=s+p-b;if(w>=0&&w<l&&d[w]!==-1){var T=i-d[w];if(S>=T)return c(e,t,S,C)}}}for(var E=-y+_;E<=y-v;E+=2){for(var w=s+E,T=E===-y||E!==y&&d[w-1]<d[w+1]?d[w+1]:d[w-1]+1,D=T-E;T<i&&D<a&&e.charAt(i-T-1)===t.charAt(a-D-1);)T++,D++;if(d[w]=T,T>i)v+=2;else if(D>a)_+=2;else if(!m){var x=s+p-E;if(x>=0&&x<l&&u[x]!==-1){var S=u[x],C=s+S-x;if(T=i-T,S>=T)return c(e,t,S,C)}}}}return[[n,e],[r,t]]}function c(e,t,n,r){var i=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),c=t.substring(r),l=a(i,o),u=a(s,c);return l.concat(u)}function l(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,a=0;n<i;)e.substring(a,i)==t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return p(e.charCodeAt(i-1))&&i--,i}function u(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,a=0;n<i;)e.substring(e.length-i,e.length-a)==t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return m(e.charCodeAt(e.length-i))&&i--,i}function d(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2<n.length)return null;function i(e,t,n){for(var r=e.substring(n,n+Math.floor(e.length/4)),i=-1,a=``,o,s,c,d;(i=t.indexOf(r,i+1))!==-1;){var f=l(e.substring(n),t.substring(i)),p=u(e.substring(0,n),t.substring(0,i));a.length<p+f&&(a=t.substring(i-p,i)+t.substring(i,i+f),o=e.substring(0,n-p),s=e.substring(n+f),c=t.substring(0,i-p),d=t.substring(i+f))}return a.length*2>=e.length?[o,s,c,d,a]:null}var a=i(n,r,Math.ceil(n.length/4)),o=i(n,r,Math.ceil(n.length/2)),s;if(!a&&!o)return null;s=o?a&&a[4].length>o[4].length?a:o:a;var c,d,f,p;e.length>t.length?(c=s[0],d=s[1],f=s[2],p=s[3]):(f=s[0],p=s[1],c=s[2],d=s[3]);var m=s[4];return[c,d,f,p,m]}function f(e,t){e.push([i,``]);for(var a=0,o=0,s=0,c=``,d=``,p;a<e.length;){if(a<e.length-1&&!e[a][1]){e.splice(a,1);continue}switch(e[a][0]){case r:s++,d+=e[a][1],a++;break;case n:o++,c+=e[a][1],a++;break;case i:var m=a-s-o-1;if(t){if(m>=0&&g(e[m][1])){var _=e[m][1].slice(-1);if(e[m][1]=e[m][1].slice(0,-1),c=_+c,d=_+d,!e[m][1]){e.splice(m,1),a--;var v=m-1;e[v]&&e[v][0]===r&&(s++,d=e[v][1]+d,v--),e[v]&&e[v][0]===n&&(o++,c=e[v][1]+c,v--),m=v}}if(h(e[a][1])){var _=e[a][1].charAt(0);e[a][1]=e[a][1].slice(1),c+=_,d+=_}}if(a<e.length-1&&!e[a][1]){e.splice(a,1);break}if(c.length>0||d.length>0){c.length>0&&d.length>0&&(p=l(d,c),p!==0&&(m>=0?e[m][1]+=d.substring(0,p):(e.splice(0,0,[i,d.substring(0,p)]),a++),d=d.substring(p),c=c.substring(p)),p=u(d,c),p!==0&&(e[a][1]=d.substring(d.length-p)+e[a][1],d=d.substring(0,d.length-p),c=c.substring(0,c.length-p)));var y=s+o;c.length===0&&d.length===0?(e.splice(a-y,y),a-=y):c.length===0?(e.splice(a-y,y,[r,d]),a=a-y+1):d.length===0?(e.splice(a-y,y,[n,c]),a=a-y+1):(e.splice(a-y,y,[n,c],[r,d]),a=a-y+2)}a!==0&&e[a-1][0]===i?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,s=0,o=0,c=``,d=``;break}}e[e.length-1][1]===``&&e.pop();var b=!1;for(a=1;a<e.length-1;)e[a-1][0]===i&&e[a+1][0]===i&&(e[a][1].substring(e[a][1].length-e[a-1][1].length)===e[a-1][1]?(e[a][1]=e[a-1][1]+e[a][1].substring(0,e[a][1].length-e[a-1][1].length),e[a+1][1]=e[a-1][1]+e[a+1][1],e.splice(a-1,1),b=!0):e[a][1].substring(0,e[a+1][1].length)==e[a+1][1]&&(e[a-1][1]+=e[a+1][1],e[a][1]=e[a][1].substring(e[a+1][1].length)+e[a+1][1],e.splice(a+1,1),b=!0)),a++;b&&f(e,t)}function p(e){return e>=55296&&e<=56319}function m(e){return e>=56320&&e<=57343}function h(e){return m(e.charCodeAt(0))}function g(e){return p(e.charCodeAt(e.length-1))}function _(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function v(e,t,a,o){return g(e)||h(o)?null:_([[i,e],[n,t],[r,a],[i,o]])}function y(e,t,n){var r=typeof n==`number`?{index:n,length:0}:n.oldRange,i=typeof n==`number`?null:n.newRange,a=e.length,o=t.length;if(r.length===0&&(i===null||i.length===0)){var s=r.index,c=e.slice(0,s),l=e.slice(s),u=i?i.index:null;editBefore:{var d=s+o-a;if(u!==null&&u!==d||d<0||d>o)break editBefore;var f=t.slice(0,d),p=t.slice(d);if(p!==l)break editBefore;var m=Math.min(s,d),h=c.slice(0,m),g=f.slice(0,m);if(h!==g)break editBefore;var _=c.slice(m),y=f.slice(m);return v(h,_,y,l)}editAfter:{if(u!==null&&u!==s)break editAfter;var b=s,f=t.slice(0,b),p=t.slice(b);if(f!==c)break editAfter;var x=Math.min(a-b,o-b),S=l.slice(l.length-x),C=p.slice(p.length-x);if(S!==C)break editAfter;var _=l.slice(0,l.length-x),y=p.slice(0,p.length-x);return v(c,_,y,S)}}if(r.length>0&&i&&i.length===0)replaceRange:{var h=e.slice(0,r.index),S=e.slice(r.index+r.length),m=h.length,x=S.length;if(o<m+x)break replaceRange;var g=t.slice(0,m),C=t.slice(o-x);if(h!==g||S!==C)break replaceRange;var _=e.slice(m,a-x),y=t.slice(m,o-x);return v(h,_,y,S)}return null}function b(e,t,n){return a(e,t,n,!0)}b.INSERT=r,b.DELETE=n,b.EQUAL=i,t.exports=b})),o$=l(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=9007199254740991,a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object GeneratorFunction]`,f=`[object Map]`,p=`[object Number]`,m=`[object Object]`,h=`[object Promise]`,g=`[object RegExp]`,_=`[object Set]`,v=`[object String]`,y=`[object Symbol]`,b=`[object WeakMap]`,x=`[object ArrayBuffer]`,S=`[object DataView]`,C=`[object Float32Array]`,w=`[object Float64Array]`,T=`[object Int8Array]`,E=`[object Int16Array]`,D=`[object Int32Array]`,ee=`[object Uint8Array]`,O=`[object Uint8ClampedArray]`,te=`[object Uint16Array]`,ne=`[object Uint32Array]`,re=/[\\^$.*+?()[\]{}|]/g,ie=/\w*$/,ae=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,A={};A[a]=A[o]=A[x]=A[S]=A[s]=A[c]=A[C]=A[w]=A[T]=A[E]=A[D]=A[f]=A[p]=A[m]=A[g]=A[_]=A[v]=A[y]=A[ee]=A[O]=A[te]=A[ne]=!0,A[l]=A[u]=A[b]=!1;var oe=typeof global==`object`&&global&&global.Object===Object&&global,se=typeof self==`object`&&self&&self.Object===Object&&self,ce=oe||se||Function(`return this`)(),le=typeof e==`object`&&e&&!e.nodeType&&e,j=le&&typeof t==`object`&&t&&!t.nodeType&&t,ue=j&&j.exports===le;function de(e,t){return e.set(t[0],t[1]),e}function fe(e,t){return e.add(t),e}function pe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function me(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function he(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function ge(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function _e(e,t){return e?.[t]}function ve(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ye(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function be(e,t){return function(n){return e(t(n))}}function xe(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Se=Array.prototype,Ce=Function.prototype,we=Object.prototype,Te=ce[`__core-js_shared__`],Ee=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),De=Ce.toString,Oe=we.hasOwnProperty,ke=we.toString,Ae=RegExp(`^`+De.call(Oe).replace(re,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),je=ue?ce.Buffer:void 0,Me=ce.Symbol,Ne=ce.Uint8Array,Pe=be(Object.getPrototypeOf,Object),Fe=Object.create,Ie=we.propertyIsEnumerable,Le=Se.splice,Re=Object.getOwnPropertySymbols,ze=je?je.isBuffer:void 0,Be=be(Object.keys,Object),Ve=Gt(ce,`DataView`),He=Gt(ce,`Map`),Ue=Gt(ce,`Promise`),We=Gt(ce,`Set`),Ge=Gt(ce,`WeakMap`),Ke=Gt(Object,`create`),qe=tn(Ve),Je=tn(He),Ye=tn(Ue),Xe=tn(We),Ze=tn(Ge),Qe=Me?Me.prototype:void 0,$e=Qe?Qe.valueOf:void 0;function et(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function tt(){this.__data__=Ke?Ke(null):{}}function nt(e){return this.has(e)&&delete this.__data__[e]}function rt(e){var t=this.__data__;if(Ke){var n=t[e];return n===r?void 0:n}return Oe.call(t,e)?t[e]:void 0}function it(e){var t=this.__data__;return Ke?t[e]!==void 0:Oe.call(t,e)}function at(e,t){var n=this.__data__;return n[e]=Ke&&t===void 0?r:t,this}et.prototype.clear=tt,et.prototype.delete=nt,et.prototype.get=rt,et.prototype.has=it,et.prototype.set=at;function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ot(){this.__data__=[]}function st(e){var t=this.__data__,n=wt(t,e);return n<0?!1:(n==t.length-1?t.pop():Le.call(t,n,1),!0)}function ct(e){var t=this.__data__,n=wt(t,e);return n<0?void 0:t[n][1]}function lt(e){return wt(this.__data__,e)>-1}function ut(e,t){var n=this.__data__,r=wt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}M.prototype.clear=ot,M.prototype.delete=st,M.prototype.get=ct,M.prototype.has=lt,M.prototype.set=ut;function dt(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ft(){this.__data__={hash:new et,map:new(He||M),string:new et}}function pt(e){return Wt(this,e).delete(e)}function mt(e){return Wt(this,e).get(e)}function ht(e){return Wt(this,e).has(e)}function gt(e,t){return Wt(this,e).set(e,t),this}dt.prototype.clear=ft,dt.prototype.delete=pt,dt.prototype.get=mt,dt.prototype.has=ht,dt.prototype.set=gt;function _t(e){this.__data__=new M(e)}function vt(){this.__data__=new M}function yt(e){return this.__data__.delete(e)}function bt(e){return this.__data__.get(e)}function xt(e){return this.__data__.has(e)}function St(e,t){var r=this.__data__;if(r instanceof M){var i=r.__data__;if(!He||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new dt(i)}return r.set(e,t),this}_t.prototype.clear=vt,_t.prototype.delete=yt,_t.prototype.get=bt,_t.prototype.has=xt,_t.prototype.set=St;function N(e,t){var n=on(e)||an(e)?ge(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||Oe.call(e,a))&&!(i&&(a==`length`||Zt(a,r)))&&n.push(a);return n}function Ct(e,t,n){var r=e[t];(!(Oe.call(e,t)&&rn(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function wt(e,t){for(var n=e.length;n--;)if(rn(e[n][0],t))return n;return-1}function Tt(e,t){return e&&Vt(t,mn(t),e)}function Et(e,t,n,r,i,o,s){var c;if(r&&(c=o?r(e,i,o,s):r(e)),c!==void 0)return c;if(!fn(e))return e;var l=on(e);if(l){if(c=Jt(e),!t)return Bt(e,c)}else{var f=qt(e),p=f==u||f==d;if(ln(e))return Mt(e,t);if(f==m||f==a||p&&!o){if(ve(e))return o?e:{};if(c=Yt(p?{}:e),!t)return Ht(e,Tt(c,e))}else{if(!A[f])return o?e:{};c=Xt(e,f,Et,t)}}s||=new _t;var h=s.get(e);if(h)return h;if(s.set(e,c),!l)var g=n?Ut(e):mn(e);return pe(g||e,function(i,a){g&&(a=i,i=e[a]),Ct(c,a,Et(i,t,n,r,a,e,s))}),c}function Dt(e){return fn(e)?Fe(e):{}}function Ot(e,t,n){var r=t(e);return on(e)?r:me(r,n(e))}function kt(e){return ke.call(e)}function At(e){return!fn(e)||$t(e)?!1:(un(e)||ve(e)?Ae:ae).test(tn(e))}function jt(e){if(!en(e))return Be(e);var t=[];for(var n in Object(e))Oe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Mt(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Nt(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function Pt(e,t){var n=t?Nt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ft(e,t,n){return he(t?n(ye(e),!0):ye(e),de,new e.constructor)}function It(e){var t=new e.constructor(e.source,ie.exec(e));return t.lastIndex=e.lastIndex,t}function Lt(e,t,n){return he(t?n(xe(e),!0):xe(e),fe,new e.constructor)}function Rt(e){return $e?Object($e.call(e)):{}}function zt(e,t){var n=t?Nt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Bt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function Vt(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;Ct(n,o,s===void 0?e[o]:s)}return n}function Ht(e,t){return Vt(e,Kt(e),t)}function Ut(e){return Ot(e,mn,Kt)}function Wt(e,t){var n=e.__data__;return Qt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Gt(e,t){var n=_e(e,t);return At(n)?n:void 0}var Kt=Re?be(Re,Object):hn,qt=kt;(Ve&&qt(new Ve(new ArrayBuffer(1)))!=S||He&&qt(new He)!=f||Ue&&qt(Ue.resolve())!=h||We&&qt(new We)!=_||Ge&&qt(new Ge)!=b)&&(qt=function(e){var t=ke.call(e),n=t==m?e.constructor:void 0,r=n?tn(n):void 0;if(r)switch(r){case qe:return S;case Je:return f;case Ye:return h;case Xe:return _;case Ze:return b}return t});function Jt(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&Oe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Yt(e){return typeof e.constructor==`function`&&!en(e)?Dt(Pe(e)):{}}function Xt(e,t,n,r){var i=e.constructor;switch(t){case x:return Nt(e);case s:case c:return new i(+e);case S:return Pt(e,r);case C:case w:case T:case E:case D:case ee:case O:case te:case ne:return zt(e,r);case f:return Ft(e,r,n);case p:case v:return new i(e);case g:return It(e);case _:return Lt(e,r,n);case y:return Rt(e)}}function Zt(e,t){return t??=i,!!t&&(typeof e==`number`||k.test(e))&&e>-1&&e%1==0&&e<t}function Qt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $t(e){return!!Ee&&Ee in e}function en(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||we)}function tn(e){if(e!=null){try{return De.call(e)}catch{}try{return e+``}catch{}}return``}function nn(e){return Et(e,!0,!0)}function rn(e,t){return e===t||e!==e&&t!==t}function an(e){return cn(e)&&Oe.call(e,`callee`)&&(!Ie.call(e,`callee`)||ke.call(e)==a)}var on=Array.isArray;function sn(e){return e!=null&&dn(e.length)&&!un(e)}function cn(e){return pn(e)&&sn(e)}var ln=ze||gn;function un(e){var t=fn(e)?ke.call(e):``;return t==u||t==d}function dn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=i}function fn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function pn(e){return!!e&&typeof e==`object`}function mn(e){return sn(e)?N(e):jt(e)}function hn(){return[]}function gn(){return!1}t.exports=nn})),s$=l(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=1,a=2,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Promise]`,b=`[object Proxy]`,x=`[object RegExp]`,S=`[object Set]`,C=`[object String]`,w=`[object Symbol]`,T=`[object Undefined]`,E=`[object WeakMap]`,D=`[object ArrayBuffer]`,ee=`[object DataView]`,O=`[object Float32Array]`,te=`[object Float64Array]`,ne=`[object Int8Array]`,re=`[object Int16Array]`,ie=`[object Int32Array]`,ae=`[object Uint8Array]`,k=`[object Uint8ClampedArray]`,A=`[object Uint16Array]`,oe=`[object Uint32Array]`,se=/[\\^$.*+?()[\]{}|]/g,ce=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,j={};j[O]=j[te]=j[ne]=j[re]=j[ie]=j[ae]=j[k]=j[A]=j[oe]=!0,j[s]=j[c]=j[D]=j[u]=j[ee]=j[d]=j[f]=j[p]=j[h]=j[g]=j[v]=j[x]=j[S]=j[C]=j[E]=!1;var ue=typeof global==`object`&&global&&global.Object===Object&&global,de=typeof self==`object`&&self&&self.Object===Object&&self,fe=ue||de||Function(`return this`)(),pe=typeof e==`object`&&e&&!e.nodeType&&e,me=pe&&typeof t==`object`&&t&&!t.nodeType&&t,he=me&&me.exports===pe,ge=he&&ue.process,_e=function(){try{return ge&&ge.binding&&ge.binding(`util`)}catch{}}(),ve=_e&&_e.isTypedArray;function ye(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function be(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Se(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ce(e){return function(t){return e(t)}}function we(e,t){return e.has(t)}function Te(e,t){return e?.[t]}function Ee(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function De(e,t){return function(n){return e(t(n))}}function Oe(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ke=Array.prototype,Ae=Function.prototype,je=Object.prototype,Me=fe[`__core-js_shared__`],Ne=Ae.toString,Pe=je.hasOwnProperty,Fe=function(){var e=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ie=je.toString,Le=RegExp(`^`+Ne.call(Pe).replace(se,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Re=he?fe.Buffer:void 0,ze=fe.Symbol,Be=fe.Uint8Array,Ve=je.propertyIsEnumerable,He=ke.splice,Ue=ze?ze.toStringTag:void 0,We=Object.getOwnPropertySymbols,Ge=Re?Re.isBuffer:void 0,Ke=De(Object.keys,Object),qe=Kt(fe,`DataView`),Je=Kt(fe,`Map`),Ye=Kt(fe,`Promise`),Xe=Kt(fe,`Set`),Ze=Kt(fe,`WeakMap`),Qe=Kt(Object,`create`),$e=tn(qe),et=tn(Je),tt=tn(Ye),nt=tn(Xe),rt=tn(Ze),it=ze?ze.prototype:void 0,at=it?it.valueOf:void 0;function M(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ot(){this.__data__=Qe?Qe(null):{},this.size=0}function st(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function ct(e){var t=this.__data__;if(Qe){var n=t[e];return n===r?void 0:n}return Pe.call(t,e)?t[e]:void 0}function lt(e){var t=this.__data__;return Qe?t[e]!==void 0:Pe.call(t,e)}function ut(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Qe&&t===void 0?r:t,this}M.prototype.clear=ot,M.prototype.delete=st,M.prototype.get=ct,M.prototype.has=lt,M.prototype.set=ut;function dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ft(){this.__data__=[],this.size=0}function pt(e){var t=this.__data__,n=Mt(t,e);return n<0?!1:(n==t.length-1?t.pop():He.call(t,n,1),--this.size,!0)}function mt(e){var t=this.__data__,n=Mt(t,e);return n<0?void 0:t[n][1]}function ht(e){return Mt(this.__data__,e)>-1}function gt(e,t){var n=this.__data__,r=Mt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}dt.prototype.clear=ft,dt.prototype.delete=pt,dt.prototype.get=mt,dt.prototype.has=ht,dt.prototype.set=gt;function _t(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function vt(){this.size=0,this.__data__={hash:new M,map:new(Je||dt),string:new M}}function yt(e){var t=Gt(this,e).delete(e);return this.size-=+!!t,t}function bt(e){return Gt(this,e).get(e)}function xt(e){return Gt(this,e).has(e)}function St(e,t){var n=Gt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}_t.prototype.clear=vt,_t.prototype.delete=yt,_t.prototype.get=bt,_t.prototype.has=xt,_t.prototype.set=St;function N(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new _t;++t<n;)this.add(e[t])}function Ct(e){return this.__data__.set(e,r),this}function wt(e){return this.__data__.has(e)}N.prototype.add=N.prototype.push=Ct,N.prototype.has=wt;function Tt(e){var t=this.__data__=new dt(e);this.size=t.size}function Et(){this.__data__=new dt,this.size=0}function Dt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ot(e){return this.__data__.get(e)}function kt(e){return this.__data__.has(e)}function At(e,t){var r=this.__data__;if(r instanceof dt){var i=r.__data__;if(!Je||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new _t(i)}return r.set(e,t),this.size=r.size,this}Tt.prototype.clear=Et,Tt.prototype.delete=Dt,Tt.prototype.get=Ot,Tt.prototype.has=kt,Tt.prototype.set=At;function jt(e,t){var n=an(e),r=!n&&rn(e),i=!n&&!r&&sn(e),a=!n&&!r&&!i&&pn(e),o=n||r||i||a,s=o?Se(e.length,String):[],c=s.length;for(var l in e)(t||Pe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Xt(l,c)))&&s.push(l);return s}function Mt(e,t){for(var n=e.length;n--;)if(nn(e[n][0],t))return n;return-1}function Nt(e,t,n){var r=t(e);return an(e)?r:be(r,n(e))}function Pt(e){return e==null?e===void 0?T:_:Ue&&Ue in Object(e)?qt(e):en(e)}function Ft(e){return fn(e)&&Pt(e)==s}function It(e,t,n,r,i){return e===t?!0:e==null||t==null||!fn(e)&&!fn(t)?e!==e&&t!==t:Lt(e,t,n,r,It,i)}function Lt(e,t,n,r,a,o){var l=an(e),u=an(t),d=l?c:Yt(e),f=u?c:Yt(t);d=d==s?v:d,f=f==s?v:f;var p=d==v,m=f==v,h=d==f;if(h&&sn(e)){if(!sn(t))return!1;l=!0,p=!1}if(h&&!p)return o||=new Tt,l||pn(e)?Vt(e,t,n,r,a,o):Ht(e,t,d,n,r,a,o);if(!(n&i)){var g=p&&Pe.call(e,`__wrapped__`),_=m&&Pe.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return o||=new Tt,a(y,b,n,r,o)}}return h?(o||=new Tt,Ut(e,t,n,r,a,o)):!1}function Rt(e){return!dn(e)||Qt(e)?!1:(ln(e)?Le:ce).test(tn(e))}function zt(e){return fn(e)&&un(e.length)&&!!j[Pt(e)]}function Bt(e){if(!$t(e))return Ke(e);var t=[];for(var n in Object(e))Pe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Vt(e,t,n,r,o,s){var c=n&i,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=n&a?new N:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!xe(t,function(e,t){if(!we(m,t)&&(h===e||o(h,e,n,r,s)))return m.push(t)})){p=!1;break}}else if(!(h===g||o(h,g,n,r,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Ht(e,t,n,r,o,s,c){switch(n){case ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!s(new Be(e),new Be(t)));case u:case d:case g:return nn(+e,+t);case f:return e.name==t.name&&e.message==t.message;case x:case C:return e==t+``;case h:var l=Ee;case S:var p=r&i;if(l||=Oe,e.size!=t.size&&!p)return!1;var m=c.get(e);if(m)return m==t;r|=a,c.set(e,t);var _=Vt(l(e),l(t),r,o,s,c);return c.delete(e),_;case w:if(at)return at.call(e)==at.call(t)}return!1}function Ut(e,t,n,r,a,o){var s=n&i,c=Wt(e),l=c.length;if(l!=Wt(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:Pe.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(!(_===void 0?h===g||a(h,g,n,r,o):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p}function Wt(e){return Nt(e,mn,Jt)}function Gt(e,t){var n=e.__data__;return Zt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Kt(e,t){var n=Te(e,t);return Rt(n)?n:void 0}function qt(e){var t=Pe.call(e,Ue),n=e[Ue];try{e[Ue]=void 0;var r=!0}catch{}var i=Ie.call(e);return r&&(t?e[Ue]=n:delete e[Ue]),i}var Jt=We?function(e){return e==null?[]:(e=Object(e),ye(We(e),function(t){return Ve.call(e,t)}))}:hn,Yt=Pt;(qe&&Yt(new qe(new ArrayBuffer(1)))!=ee||Je&&Yt(new Je)!=h||Ye&&Yt(Ye.resolve())!=y||Xe&&Yt(new Xe)!=S||Ze&&Yt(new Ze)!=E)&&(Yt=function(e){var t=Pt(e),n=t==v?e.constructor:void 0,r=n?tn(n):``;if(r)switch(r){case $e:return ee;case et:return h;case tt:return y;case nt:return S;case rt:return E}return t});function Xt(e,t){return t??=o,!!t&&(typeof e==`number`||le.test(e))&&e>-1&&e%1==0&&e<t}function Zt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Qt(e){return!!Fe&&Fe in e}function $t(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||je)}function en(e){return Ie.call(e)}function tn(e){if(e!=null){try{return Ne.call(e)}catch{}try{return e+``}catch{}}return``}function nn(e,t){return e===t||e!==e&&t!==t}var rn=Ft(function(){return arguments}())?Ft:function(e){return fn(e)&&Pe.call(e,`callee`)&&!Ve.call(e,`callee`)},an=Array.isArray;function on(e){return e!=null&&un(e.length)&&!ln(e)}var sn=Ge||gn;function cn(e,t){return It(e,t)}function ln(e){if(!dn(e))return!1;var t=Pt(e);return t==p||t==m||t==l||t==b}function un(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function dn(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function fn(e){return typeof e==`object`&&!!e}var pn=ve?Ce(ve):zt;function mn(e){return on(e)?jt(e):Bt(e)}function hn(){return[]}function gn(){return!1}t.exports=cn})),c$=l((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(o$()),r=t(s$()),i;(function(e){function t(e,t,r){e===void 0&&(e={}),t===void 0&&(t={}),typeof e!=`object`&&(e={}),typeof t!=`object`&&(t={});var i=n.default(t);for(var a in r||(i=Object.keys(i).reduce(function(e,t){return i[t]!=null&&(e[t]=i[t]),e},{})),e)e[a]!==void 0&&t[a]===void 0&&(i[a]=e[a]);return Object.keys(i).length>0?i:void 0}e.compose=t;function i(e,t){e===void 0&&(e={}),t===void 0&&(t={}),typeof e!=`object`&&(e={}),typeof t!=`object`&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,i){return r.default(e[i],t[i])||(n[i]=t[i]===void 0?null:t[i]),n},{});return Object.keys(n).length>0?n:void 0}e.diff=i;function a(e,t){e===void 0&&(e={}),t===void 0&&(t={}),e||={};var n=Object.keys(t).reduce(function(n,r){return t[r]!==e[r]&&e[r]!==void 0&&(n[r]=t[r]),n},{});return Object.keys(e).reduce(function(n,r){return e[r]!==t[r]&&t[r]===void 0&&(n[r]=null),n},n)}e.invert=a;function o(e,t,n){if(n===void 0&&(n=!1),typeof e!=`object`)return t;if(typeof t==`object`){if(!n)return t;var r=Object.keys(t).reduce(function(n,r){return e[r]===void 0&&(n[r]=t[r]),n},{});return Object.keys(r).length>0?r:void 0}}e.transform=o})(i||={}),e.default=i})),l$=l((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(u$());e.default=function(){function e(e){this.ops=e,this.index=0,this.offset=0}return e.prototype.hasNext=function(){return this.peekLength()<1/0},e.prototype.next=function(e){e||=1/0;var t=this.ops[this.index];if(t){var r=this.offset,i=n.default.length(t);if(e>=i-r?(e=i-r,this.index+=1,this.offset=0):this.offset+=e,typeof t.delete==`number`)return{delete:e};var a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain==`number`?a.retain=e:typeof t.insert==`string`?a.insert=t.insert.substr(r,e):a.insert=t.insert,a}else return{retain:1/0}},e.prototype.peek=function(){return this.ops[this.index]},e.prototype.peekLength=function(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0},e.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete==`number`?`delete`:typeof this.ops[this.index].retain==`number`?`retain`:`insert`:`retain`},e.prototype.rest=function(){if(!this.hasNext())return[];if(this.offset===0)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)},e}()})),u$=l((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(l$()),r;(function(e){function t(e){return new n.default(e)}e.iterator=t;function r(e){return typeof e.delete==`number`?e.delete:typeof e.retain==`number`?e.retain:typeof e.insert==`string`?e.insert.length:1}e.length=r})(r||={}),e.default=r})),d$=l(((e,t)=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=n(a$()),i=n(o$()),a=n(s$()),o=n(c$()),s=n(u$()),c=`\0`;t.exports=function(){function e(e){Array.isArray(e)?this.ops=e:e!=null&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}return e.prototype.insert=function(e,t){var n={};return typeof e==`string`&&e.length===0?this:(n.insert=e,typeof t==`object`&&t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},e.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},e.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return typeof t==`object`&&t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},e.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i.default(e),typeof n==`object`){if(typeof e.delete==`number`&&typeof n.delete==`number`)return this.ops[t-1]={delete:n.delete+e.delete},this;if(typeof n.delete==`number`&&e.insert!=null&&(--t,n=this.ops[t-1],typeof n!=`object`))return this.ops.unshift(e),this;if(a.default(e.attributes,n.attributes)){if(typeof e.insert==`string`&&typeof n.insert==`string`)return this.ops[t-1]={insert:n.insert+e.insert},typeof e.attributes==`object`&&(this.ops[t-1].attributes=e.attributes),this;if(typeof e.retain==`number`&&typeof n.retain==`number`)return this.ops[t-1]={retain:n.retain+e.retain},typeof e.attributes==`object`&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},e.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},e.prototype.filter=function(e){return this.ops.filter(e)},e.prototype.forEach=function(e){this.ops.forEach(e)},e.prototype.map=function(e){return this.ops.map(e)},e.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(r){(e(r)?t:n).push(r)}),[t,n]},e.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},e.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+s.default.length(t):t.delete?e-t.delete:e},0)},e.prototype.length=function(){return this.reduce(function(e,t){return e+s.default.length(t)},0)},e.prototype.slice=function(t,n){t===void 0&&(t=0),n===void 0&&(n=1/0);for(var r=[],i=s.default.iterator(this.ops),a=0;a<n&&i.hasNext();){var o=void 0;a<t?o=i.next(t-a):(o=i.next(n-a),r.push(o)),a+=s.default.length(o)}return new e(r)},e.prototype.compose=function(t){var n=s.default.iterator(this.ops),r=s.default.iterator(t.ops),i=[],c=r.peek();if(c!=null&&typeof c.retain==`number`&&c.attributes==null){for(var l=c.retain;n.peekType()===`insert`&&n.peekLength()<=l;)l-=n.peekLength(),i.push(n.next());c.retain-l>0&&r.next(c.retain-l)}for(var u=new e(i);n.hasNext()||r.hasNext();)if(r.peekType()===`insert`)u.push(r.next());else if(n.peekType()===`delete`)u.push(n.next());else{var d=Math.min(n.peekLength(),r.peekLength()),f=n.next(d),p=r.next(d);if(typeof p.retain==`number`){var m={};typeof f.retain==`number`?m.retain=d:m.insert=f.insert;var h=o.default.compose(f.attributes,p.attributes,typeof f.retain==`number`);if(h&&(m.attributes=h),u.push(m),!r.hasNext()&&a.default(u.ops[u.ops.length-1],m)){var g=new e(n.rest());return u.concat(g).chop()}}else typeof p.delete==`number`&&typeof f.retain==`number`&&u.push(p)}return u.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var i=[this,t].map(function(e){return e.map(function(n){if(n.insert!=null)return typeof n.insert==`string`?n.insert:c;throw Error(`diff() called `+(e===t?`on`:`with`)+` non-document`)}).join(``)}),l=new e,u=r.default(i[0],i[1],n),d=s.default.iterator(this.ops),f=s.default.iterator(t.ops);return u.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.default.INSERT:n=Math.min(f.peekLength(),t),l.push(f.next(n));break;case r.default.DELETE:n=Math.min(t,d.peekLength()),d.next(n),l.delete(n);break;case r.default.EQUAL:n=Math.min(d.peekLength(),f.peekLength(),t);var i=d.next(n),s=f.next(n);a.default(i.insert,s.insert)?l.retain(n,o.default.diff(i.attributes,s.attributes)):l.push(s).delete(n);break}t-=n}}),l.chop()},e.prototype.eachLine=function(t,n){n===void 0&&(n=`
101
101
  `);for(var r=s.default.iterator(this.ops),i=new e,a=0;r.hasNext();){if(r.peekType()!==`insert`)return;var o=r.peek(),c=s.default.length(o)-r.peekLength(),l=typeof o.insert==`string`?o.insert.indexOf(n,c)-c:-1;if(l<0)i.push(r.next());else if(l>0)i.push(r.next(l));else{if(t(i,r.next(1).attributes||{},a)===!1)return;a+=1,i=new e}}i.length()>0&&t(i,{},a)},e.prototype.invert=function(t){var n=new e;return this.reduce(function(e,r){if(r.insert)n.delete(s.default.length(r));else if(r.retain&&r.attributes==null)return n.retain(r.retain),e+r.retain;else if(r.delete||r.retain&&r.attributes){var i=r.delete||r.retain;return t.slice(e,e+i).forEach(function(e){r.delete?n.push(e):r.retain&&r.attributes&&n.retain(s.default.length(e),o.default.invert(r.attributes,e.attributes))}),e+i}return e},0),n.chop()},e.prototype.transform=function(t,n){if(n===void 0&&(n=!1),n=!!n,typeof t==`number`)return this.transformPosition(t,n);for(var r=t,i=s.default.iterator(this.ops),a=s.default.iterator(r.ops),c=new e;i.hasNext()||a.hasNext();)if(i.peekType()===`insert`&&(n||a.peekType()!==`insert`))c.retain(s.default.length(i.next()));else if(a.peekType()===`insert`)c.push(a.next());else{var l=Math.min(i.peekLength(),a.peekLength()),u=i.next(l),d=a.next(l);if(u.delete)continue;d.delete?c.push(d):c.retain(l,o.default.transform(u.attributes,d.attributes,n))}return c.chop()},e.prototype.transformPosition=function(e,t){t===void 0&&(t=!1),t=!!t;for(var n=s.default.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),a=n.peekType();if(n.next(),a===`delete`){e-=Math.min(i,e-r);continue}else a===`insert`&&(r<e||!t)&&(e+=i);r+=i}return e},e.Op=s.default,e.AttributeMap=o.default,e}()})),f$=f(i$()),p$=f(d$()),m$={essential:[[{header:[1,2,3,4,5,6,!1]}],[`bold`,`italic`,`underline`],[{list:`ordered`},{list:`bullet`},{align:[]}],[`blockquote`,`code-block`,`link`],[{color:[]},`clean`]],minimal:[[{header:1},{header:2}],[`bold`,`italic`,`underline`],[{list:`ordered`},{list:`bullet`},{align:[]}]],full:[[`bold`,`italic`,`underline`,`strike`],[`blockquote`,`code-block`],[{header:1},{header:2}],[{list:`ordered`},{list:`bullet`}],[{script:`sub`},{script:`super`}],[{indent:`-1`},{indent:`+1`}],[{direction:`rtl`}],[{size:[`small`,!1,`large`,`huge`]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],[`link`,`video`,`image`],[`clean`]]},h$={name:`PaasEditor`,inheritAttrs:!1,components:{QuillEditor:(0,t.defineComponent)({name:`QuillEditor`,inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:`delta`,validator:e=>[`delta`,`html`,`text`].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:`snow`,validator:e=>[`snow`,`bubble`,``].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>typeof e==`string`&&e!==``?e.charAt(0)===`#`?!0:Object.keys(m$).indexOf(e)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:[`textChange`,`selectionChange`,`editorChange`,`update:content`,`focus`,`blur`,`ready`],setup:(e,n)=>{(0,t.onMounted)(()=>{o()}),(0,t.onBeforeUnmount)(()=>{r=null});let r,i,a=(0,t.ref)(),o=()=>{var t;if(a.value){if(i=s(),e.modules)if(Array.isArray(e.modules))for(let t of e.modules)f$.default.register(`modules/${t.name}`,t.module);else f$.default.register(`modules/${e.modules.name}`,e.modules.module);r=new f$.default(a.value,i),b(e.content),r.on(`text-change`,f),r.on(`selection-change`,m),r.on(`editor-change`,h),e.theme!==`bubble`&&a.value.classList.remove(`ql-bubble`),e.theme!==`snow`&&a.value.classList.remove(`ql-snow`),(t=r.getModule(`toolbar`))==null||t.container.addEventListener(`mousedown`,e=>{e.preventDefault()}),n.emit(`ready`,r)}},s=()=>{let t={};if(e.theme!==``&&(t.theme=e.theme),e.readOnly&&(t.readOnly=e.readOnly),e.placeholder&&(t.placeholder=e.placeholder),e.toolbar&&e.toolbar!==``&&(t.modules={toolbar:(()=>{if(typeof e.toolbar==`object`)return e.toolbar;if(typeof e.toolbar==`string`)return e.toolbar.charAt(0)===`#`?e.toolbar:m$[e.toolbar]})()}),e.modules){let n=(()=>{let t={};if(Array.isArray(e.modules))for(let n of e.modules)t[n.name]=n.options??{};else t[e.modules.name]=e.modules.options??{};return t})();t.modules=Object.assign({},t.modules,n)}return Object.assign({},e.globalOptions,e.options,t)},c=e=>typeof e==`object`&&e?e.slice():e,l=e=>Object.values(e.ops).some(e=>!e.retain||Object.keys(e).length!==1),u,d=e=>{if(typeof u==typeof e){if(e===u)return!0;if(typeof e==`object`&&e&&typeof u==`object`&&u)return!l(u.diff(e))}return!1},f=(t,r,i)=>{u=c(y()),d(e.content)||n.emit(`update:content`,u),n.emit(`textChange`,{delta:t,oldContents:r,source:i})},p=(0,t.ref)(),m=(e,t,i)=>{p.value=!!r?.hasFocus(),n.emit(`selectionChange`,{range:e,oldRange:t,source:i})};(0,t.watch)(p,e=>{e?n.emit(`focus`,a):n.emit(`blur`,a)});let h=(...e)=>{e[0]===`text-change`&&n.emit(`editorChange`,{name:e[0],delta:e[1],oldContents:e[2],source:e[3]}),e[0]===`selection-change`&&n.emit(`editorChange`,{name:e[0],range:e[1],oldRange:e[2],source:e[3]})},g=()=>a.value,_=()=>r?.getModule(`toolbar`)?.container,v=()=>{if(r)return r;throw`The quill editor hasn't been instantiated yet,
102
102
  make sure to call this method when the editor ready
103
- or use v-on:ready="onReady(quill)" event instead.`},y=(t,n)=>e.contentType===`html`?C():e.contentType===`text`?x(t,n):r?.getContents(t,n),b=(t,n=`api`)=>{let i=t||(e.contentType===`delta`?new p$.default:``);e.contentType===`html`?w(i):e.contentType===`text`?S(i,n):r?.setContents(i,n),u=c(i)},x=(e,t)=>r?.getText(e,t)??``,S=(e,t=`api`)=>{r?.setText(e,t)},C=()=>r?.root.innerHTML??``,w=e=>{r&&(r.root.innerHTML=e)};return(0,t.watch)(()=>e.content,e=>{if(!r||!e||d(e))return;let n=r.getSelection();n&&(0,t.nextTick)(()=>r?.setSelection(n)),b(e)},{deep:!0}),(0,t.watch)(()=>e.enable,e=>{r&&r.enable(e)}),{editor:a,getEditor:g,getToolbar:_,getQuill:v,getContents:y,setContents:b,getHTML:C,setHTML:w,pasteHTML:(e,t=`api`)=>{let n=r?.clipboard.convert(e);n&&r?.setContents(n,t)},focus:()=>{r?.focus()},getText:x,setText:S,reinit:()=>{(0,t.nextTick)(()=>{var e;!n.slots.toolbar&&r&&((e=r.getModule(`toolbar`))==null||e.container.remove()),o()})}}},render(){var e;return[(e=this.$slots).toolbar?.call(e),(0,t.h)(`div`,{ref:`editor`,...this.$attrs})]}})},props:{placeholder:{type:String,default:``},modelValue:{type:String,default:``},height:{type:[Number,String],default:350},readonly:{type:Boolean,default:!1},onChange:{type:Function,default:null}},watch:{modelValue:{handler(e){this.htmlValue=e}}},computed:{see(){return this.$store.forms.see}},data(){return{htmlValue:this.modelValue,editorOption:{modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],[`bold`,`italic`,`underline`,`strike`],[`blockquote`,`code-block`],[{list:`ordered`},{list:`bullet`}],[{script:`sub`},{script:`super`}],[{indent:`-1`},{indent:`+1`}],[{direction:`rtl`}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],[`clean`],[`image`,`video`,`link`,`table`]],syntax:{highlight:e=>hljs.highlightAuto(e).value},history:{delay:1e3,maxStack:50,userOnly:!0}},theme:`snow`,language:`zh-CN`}}},methods:{getContent(){return this.quill.root.innerHTML.trim()},updateValue(e){this.$emit(`update:modelValue`,e)}}};function g$(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`quill-editor`);return(0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({ref:`editor`,content:a.htmlValue,"onUpdate:content":[n[0]||=e=>a.htmlValue=e,n[1]||=e=>o.updateValue(e)],options:a.editorOption,contentType:`html`,style:`height: `+this.height+`px;`,readOnly:o.see||r.readonly,placeholder:r.placeholder},e.$attrs),null,16,[`content`,`options`,`style`,`readOnly`,`placeholder`])}var _$=y(h$,[[`render`,g$],[`__scopeId`,`data-v-541aea24`]]),v$={name:`MenuItemNode`,props:{node:{type:Object,required:!0}},methods:{stop(e){e&&e.stopPropagation&&e.stopPropagation()},toggleOpen(e){this.$emit(`select`,{__isTitle:!0,node:e})},onSelectNode(e){this.$emit(`select`,{__isTitle:!1,node:e})},onEdit(e){this.$emit(`edit`,e)},onDelete(e){this.$emit(`delete`,e)},onAddChild(e){this.$emit(`add-child`,e)}}},y$={class:`menu-title-wrapper`},b$={class:`menu-title-text`},x$={class:`menu-title-wrapper`},S$=[`title`];function C$(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`a-menu-item`),c=(0,t.resolveComponent)(`a-menu`),l=(0,t.resolveComponent)(`a-dropdown`),u=(0,t.resolveComponent)(`menu-item-node`,!0),d=(0,t.resolveComponent)(`a-sub-menu`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[r.node.children&&r.node.children.length?((0,t.openBlock)(),(0,t.createBlock)(d,{key:String(r.node.value),onClick:n[8]||=(0,t.withModifiers)(e=>o.toggleOpen(r.node),[`stop`])},{title:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`menu-title clickable`,onClick:n[3]||=(0,t.withModifiers)(e=>o.toggleOpen(r.node),[`stop`])},[(0,t.createElementVNode)(`span`,y$,[(0,t.createVNode)(l,{trigger:`contextmenu`},{overlay:(0,t.withCtx)(()=>[(0,t.createVNode)(c,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{onClick:n[0]||=(0,t.withModifiers)(e=>o.onAddChild(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[13]||=[(0,t.createTextVNode)(`添加子级`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[1]||=(0,t.withModifiers)(e=>o.onEdit(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[14]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[2]||=(0,t.withModifiers)(e=>o.onDelete(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[15]||=[(0,t.createTextVNode)(`删除`,-1)]]),_:1})]),_:1})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,b$,(0,t.toDisplayString)(r.node.label),1)]),_:1})])])]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.node.children,r=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:String(r.value),node:r,onSelect:n[4]||=t=>e.$emit(`select`,t),onEdit:n[5]||=t=>e.$emit(`edit`,t),onDelete:n[6]||=t=>e.$emit(`delete`,t),onAddChild:n[7]||=t=>e.$emit(`add-child`,t)},null,8,[`node`]))),128))]),_:1})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:r.node.value},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`menu-item clickable`,onClick:n[12]||=(0,t.withModifiers)(e=>o.onSelectNode(r.node),[`stop`])},[(0,t.createElementVNode)(`span`,x$,[(0,t.createVNode)(l,{trigger:`contextmenu`},{overlay:(0,t.withCtx)(()=>[(0,t.createVNode)(c,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{onClick:n[9]||=(0,t.withModifiers)(e=>o.onAddChild(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[16]||=[(0,t.createTextVNode)(`添加子级`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[10]||=(0,t.withModifiers)(e=>o.onEdit(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[17]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[11]||=(0,t.withModifiers)(e=>o.onDelete(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[18]||=[(0,t.createTextVNode)(`删除`,-1)]]),_:1})]),_:1})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ellipsis`,title:r.node.label},(0,t.toDisplayString)(r.node.label),9,S$)]),_:1})])])]),_:1}))])}var w$={name:`PaasTreePanel`,components:{MenuItemNode:y(v$,[[`render`,C$],[`__scopeId`,`data-v-e11ea922`]])},computed:{see(){return this.$store?.forms?.see||!1}},props:{placeholder:String,multiple:Boolean,disabled:Boolean,open:Boolean,groupType:String,params:Object,checkable:Boolean,modelValue:[String,Array],height:{type:String,default:`calc(100vh - 300px)`},listToTree:{type:Boolean,default:!0}},emits:[`update:modelValue`,`change`],data(){return{selectedKeys:[],openKeys:[],treeData:[],groupModalVisible:!1,action:``,groupInfo:{},submitLoading:!1,isInternalUpdate:!1}},watch:{modelValue:{immediate:!0,handler(e){this.isInternalUpdate=!0,this.selectedKeys=this.normalizeValue(e),this.$nextTick(()=>{this.isInternalUpdate=!1})}},selectedKeys(e){if(this.isInternalUpdate)return;let t=this.multiple?e:e.length?e[0]:null;this.$emit(`update:modelValue`,t),this.$emit(`change`,t)}},mounted(){this.getTreeData()},methods:{normalizeValue(e){return e?Array.isArray(e)?e.filter(Boolean).map(String):typeof e==`string`?e.includes(`,`)?e.split(`,`).filter(Boolean).map(String):[e]:[String(e)]:[]},getTreeData(){this.$post(`/system/sys-group/list`,{page:{current:1,size:1e6},...this.params,groupType:this.groupType}).then(e=>{let t=e?.data?.data?.rows||[];this.treeData=this.listToTree?this.$listToTree(t):t;let n;if(this.modelValue){let e=Array.isArray(this.modelValue)?String(this.modelValue[0]):String(this.modelValue);n=this.findNodeByKey(this.treeData,e)}if(!n&&this.treeData.length>0){let e=this.treeData[0];n=e.children&&e.children.length>0?e.children[0]:e}if(n){this.selectedKeys=[String(n.value)];let e=this.findAncestorKeys(this.treeData,n.value);this.openKeys=e}else this.selectedKeys=[],this.openKeys=[]})},findNodeByKey(e,t){for(let n of e){if(String(n.value)===String(t))return n;if(n.children&&n.children.length){let e=this.findNodeByKey(n.children,t);if(e)return e}}return null},findAncestorKeys(e,t,n=[]){for(let r of e){let e=[...n,String(r.value)];if(String(r.value)===String(t))return n;if(r.children&&r.children.length){let n=this.findAncestorKeys(r.children,t,e);if(n.length)return n}}return[]},handleOpenChange(e){let t=e.length?e[e.length-1]:null;this.openKeys=t?[t]:[]},handleSelectFromNode(e){let{node:t}=e,n=String(t.value),r=this.findAncestorKeys(this.treeData,n);if(t.children&&t.children.length){this.openKeys.includes(n)?this.openKeys=this.openKeys.filter(e=>e!==n):this.openKeys=Array.from(new Set([...r,n])),this.selectedKeys=[n];return}if(!this.multiple)this.selectedKeys=[n];else{let e=[...this.selectedKeys],t=e.indexOf(n);t===-1?e.push(n):e.splice(t,1),this.selectedKeys=e}this.openKeys=Array.from(new Set([...r]))},findAncestorKeys(e,t,n=[]){for(let r of e){let e=[...n,String(r.value)];if(String(r.value)===String(t))return n;if(r.children&&r.children.length){let n=this.findAncestorKeys(r.children,t,e);if(n.length)return n}}return[]},confirmDeleteGroup(e){this.$confirm({title:`确认删除该分组吗?`,onOk:()=>{this.$delete(`/system/sys-group/${e.value}`).then(e=>{if(e.data.code!==200){this.$message.error(e.data.msg);return}this.selectedKeys=[],this.$message.success(`删除成功`),this.getTreeData()})}})},openAddGroup(){this.action=`add`,this.groupInfo={isChild:!1,groupName:``},this.groupModalVisible=!0},openAddChildOf(e){this.action=`add`,this.groupInfo={isChild:!0,groupName:``,parentId:e.value||e.id},this.openKeys=[String(e.value)],this.groupModalVisible=!0},openEditGroup(e){this.action=`edit`,this.groupInfo={...e,groupName:e.label,id:e.id||e.value},this.groupModalVisible=!0},submitGroup(){if(!this.groupInfo.groupName||!this.groupInfo.groupName.trim()){this.$message.error(`请完整填写表单`);return}this.submitLoading=!0;let e={...this.groupInfo,groupType:this.groupType,groupId:this.action===`add`&&this.groupInfo.isChild&&(this.groupInfo.parentId||this.selectedKeys[0])||null};(this.action===`add`?this.$post(`/system/sys-group`,e):this.$put(`/system/sys-group/edit`,{...e,id:this.groupInfo.id})).then(e=>{e.data.code===200?(this.$message.success(this.action===`add`?`添加成功`:`修改成功`),this.getTreeData(),this.groupModalVisible=!1):this.$message.error(e.data.msg||`操作失败`)}).finally(()=>{this.submitLoading=!1})}}},T$={style:{"text-align":`center`}};function E$(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`menu-item-node`),c=(0,t.resolveComponent)(`a-menu`),l=(0,t.resolveComponent)(`a-button`),u=(0,t.resolveComponent)(`a-input`),d=(0,t.resolveComponent)(`a-form-item`),f=(0,t.resolveComponent)(`a-form`),p=(0,t.resolveComponent)(`a-modal`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)(c,{mode:`inline`,selectedKeys:a.selectedKeys,openKeys:a.openKeys,multiple:r.multiple,disabled:o.see,onOpenChange:o.handleOpenChange,style:(0,t.normalizeStyle)({overflowY:`auto`,height:`${r.height}`})},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.treeData,e=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:e.value,node:e,onSelect:o.handleSelectFromNode,onEdit:o.openEditGroup,onDelete:o.confirmDeleteGroup,onAddChild:o.openAddChildOf},null,8,[`node`,`onSelect`,`onEdit`,`onDelete`,`onAddChild`]))),128))]),_:1},8,[`selectedKeys`,`openKeys`,`multiple`,`disabled`,`onOpenChange`,`style`]),(0,t.createElementVNode)(`div`,T$,[(0,t.createVNode)(l,{type:`link`,onClick:n[0]||=(0,t.withModifiers)(t=>o.openAddGroup(e.node),[`stop`]),style:{margin:`0 10px 10px 10px`}},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createTextVNode)(` 添加根级 `,-1)]]),_:1})]),(0,t.createVNode)(p,{open:a.groupModalVisible,"onUpdate:open":n[3]||=e=>a.groupModalVisible=e,closable:!0,maskClosable:!0,draggable:!0,title:a.groupInfo.isChild?`添加子级`:`添加根级`},{footer:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{onClick:n[2]||=e=>a.groupModalVisible=!1},{default:(0,t.withCtx)(()=>[...n[5]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)(l,{type:`primary`,loading:a.submitLoading,onClick:o.submitGroup},{default:(0,t.withCtx)(()=>[...n[6]||=[(0,t.createTextVNode)(`确认`,-1)]]),_:1},8,[`loading`,`onClick`])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(f,{ref:`formRef`,model:a.groupInfo},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d,{label:`分组名称`,rules:[{required:!0,message:`请输入分组名称`}]},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,{value:a.groupInfo.groupName,"onUpdate:value":n[1]||=e=>a.groupInfo.groupName=e},null,8,[`value`])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`open`,`title`])])}var D$=y(w$,[[`render`,E$],[`__scopeId`,`data-v-25c75bfe`]]),O$=(0,t.defineComponent)({name:`PaasIcon`,props:{icon:{type:String,default:``}},setup(e){let n=(0,t.ref)(null);return(0,t.watch)(()=>e.icon,e=>{n.value=eQ[e]},{immediate:!0}),{iconComponent:n}}});function k$(e,n,r,i,a,o){return e.iconComponent?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.iconComponent),{key:0})):(0,t.createCommentVNode)(``,!0)}var A$=y(O$,[[`render`,k$]]),j$=[],M$=[];(()=>{let e=`lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o`.split(`,`).map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?M$:j$).push(n+=e[t])})();function N$(e){if(e<768)return!1;for(let t=0,n=j$.length;;){let r=t+n>>1;if(e<j$[r])n=r;else if(e>=M$[r])t=r+1;else return!0;if(t==n)return!1}}function P$(e){return e>=127462&&e<=127487}var F$=8205;function I$(e,t,n=!0,r=!0){return(n?L$:R$)(e,t,r)}function L$(e,t,n){if(t==e.length)return t;t&&B$(e.charCodeAt(t))&&V$(e.charCodeAt(t-1))&&t--;let r=z$(e,t);for(t+=H$(r);t<e.length;){let i=z$(e,t);if(r==F$||i==F$||n&&N$(i))t+=H$(i),r=i;else if(P$(i)){let n=0,r=t-2;for(;r>=0&&P$(z$(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function R$(e,t,n){for(;t>0;){let r=L$(e,t-2,n);if(r<t)return r;t--}return 0}function z$(e,t){let n=e.charCodeAt(t);if(!V$(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return B$(r)?(n-55296<<10)+(r-56320)+65536:n}function B$(e){return e>=56320&&e<57344}function V$(e){return e>=55296&&e<56320}function H$(e){return e<65536?1:2}var F=class e{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=Q$(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),W$.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Q$(this,e,t);let n=[];return this.decompose(e,t,n,0),W$.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new J$(this),i=new J$(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new J$(this,e)}iterRange(e,t=this.length){return new Y$(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t??=this.lines+1;let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new X$(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(t){if(t.length==0)throw RangeError(`A document must have at least one line`);return t.length==1&&!t[0]?e.empty:t.length<=32?new U$(t):W$.from(U$.split(t,[]))}},U$=class e extends F{constructor(e,t=G$(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new Z$(r,o,n,a);r=o+1,n++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new e(q$(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let t=r.pop(),n=K$(a.text,t.text.slice(),0,a.length);if(n.length<=32)r.push(new e(n,t.length+a.length));else{let t=n.length>>1;r.push(new e(n.slice(0,t)),new e(n.slice(t)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof e))return super.replace(t,n,r);[t,n]=Q$(this,t,n);let i=K$(this.text,K$(r.text,q$(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new e(i,a):W$.from(e.split(i,[]),a)}sliceString(e,t=this.length,n=`
103
+ or use v-on:ready="onReady(quill)" event instead.`},y=(t,n)=>e.contentType===`html`?C():e.contentType===`text`?x(t,n):r?.getContents(t,n),b=(t,n=`api`)=>{let i=t||(e.contentType===`delta`?new p$.default:``);e.contentType===`html`?w(i):e.contentType===`text`?S(i,n):r?.setContents(i,n),u=c(i)},x=(e,t)=>r?.getText(e,t)??``,S=(e,t=`api`)=>{r?.setText(e,t)},C=()=>r?.root.innerHTML??``,w=e=>{r&&(r.root.innerHTML=e)};return(0,t.watch)(()=>e.content,e=>{if(!r||!e||d(e))return;let n=r.getSelection();n&&(0,t.nextTick)(()=>r?.setSelection(n)),b(e)},{deep:!0}),(0,t.watch)(()=>e.enable,e=>{r&&r.enable(e)}),{editor:a,getEditor:g,getToolbar:_,getQuill:v,getContents:y,setContents:b,getHTML:C,setHTML:w,pasteHTML:(e,t=`api`)=>{let n=r?.clipboard.convert(e);n&&r?.setContents(n,t)},focus:()=>{r?.focus()},getText:x,setText:S,reinit:()=>{(0,t.nextTick)(()=>{var e;!n.slots.toolbar&&r&&((e=r.getModule(`toolbar`))==null||e.container.remove()),o()})}}},render(){var e;return[(e=this.$slots).toolbar?.call(e),(0,t.h)(`div`,{ref:`editor`,...this.$attrs})]}})},props:{placeholder:{type:String,default:``},modelValue:{type:String,default:``},height:{type:[Number,String],default:350},readonly:{type:Boolean,default:!1},onChange:{type:Function,default:null}},watch:{modelValue:{handler(e){this.htmlValue=e}}},computed:{see(){return this.$store.forms.see}},data(){return{htmlValue:this.modelValue,editorOption:{modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],[`bold`,`italic`,`underline`,`strike`],[`blockquote`,`code-block`],[{list:`ordered`},{list:`bullet`}],[{script:`sub`},{script:`super`}],[{indent:`-1`},{indent:`+1`}],[{direction:`rtl`}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],[`clean`],[`image`,`video`,`link`,`table`]],syntax:{highlight:e=>hljs.highlightAuto(e).value},history:{delay:1e3,maxStack:50,userOnly:!0}},theme:`snow`,language:`zh-CN`}}},methods:{getContent(){return this.quill.root.innerHTML.trim()},updateValue(e){this.$emit(`update:modelValue`,e)}}};function g$(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`quill-editor`);return(0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({ref:`editor`,content:a.htmlValue,"onUpdate:content":[n[0]||=e=>a.htmlValue=e,n[1]||=e=>o.updateValue(e)],options:a.editorOption,contentType:`html`,style:`height: `+this.height+`px;`,readOnly:o.see||r.readonly,placeholder:r.placeholder},e.$attrs),null,16,[`content`,`options`,`style`,`readOnly`,`placeholder`])}var _$=y(h$,[[`render`,g$],[`__scopeId`,`data-v-541aea24`]]),v$={name:`MenuItemNode`,props:{node:{type:Object,required:!0},readonly:{type:Boolean,default:!1}},methods:{stop(e){e&&e.stopPropagation&&e.stopPropagation()},toggleOpen(e){this.$emit(`select`,{__isTitle:!0,node:e})},onSelectNode(e){this.$emit(`select`,{__isTitle:!1,node:e})},onEdit(e){this.$emit(`edit`,e)},onDelete(e){this.$emit(`delete`,e)},onAddChild(e){this.$emit(`add-child`,e)}}},y$={class:`menu-title-wrapper`},b$={class:`menu-title-text`},x$={class:`menu-title-wrapper`},S$=[`title`];function C$(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`a-menu-item`),c=(0,t.resolveComponent)(`a-menu`),l=(0,t.resolveComponent)(`a-dropdown`),u=(0,t.resolveComponent)(`menu-item-node`,!0),d=(0,t.resolveComponent)(`a-sub-menu`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[r.node.children&&r.node.children.length?((0,t.openBlock)(),(0,t.createBlock)(d,{key:String(r.node.value),onClick:n[8]||=(0,t.withModifiers)(e=>o.toggleOpen(r.node),[`stop`])},{title:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`menu-title clickable`,onClick:n[3]||=(0,t.withModifiers)(e=>!r.readonly&&o.toggleOpen(r.node),[`stop`])},[(0,t.createElementVNode)(`span`,y$,[(0,t.createVNode)(l,{trigger:`contextmenu`},{overlay:(0,t.withCtx)(()=>[(0,t.createVNode)(c,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{onClick:n[0]||=(0,t.withModifiers)(e=>o.onAddChild(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[13]||=[(0,t.createTextVNode)(`添加子级`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[1]||=(0,t.withModifiers)(e=>o.onEdit(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[14]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[2]||=(0,t.withModifiers)(e=>o.onDelete(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[15]||=[(0,t.createTextVNode)(`删除`,-1)]]),_:1})]),_:1})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,b$,(0,t.toDisplayString)(r.node.label),1)]),_:1})])])]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.node.children,r=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:String(r.value),node:r,onSelect:n[4]||=t=>e.$emit(`select`,t),onEdit:n[5]||=t=>e.$emit(`edit`,t),onDelete:n[6]||=t=>e.$emit(`delete`,t),onAddChild:n[7]||=t=>e.$emit(`add-child`,t)},null,8,[`node`]))),128))]),_:1})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:r.node.value},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`menu-item clickable`,onClick:n[12]||=(0,t.withModifiers)(e=>o.onSelectNode(r.node),[`stop`])},[(0,t.createElementVNode)(`span`,x$,[(0,t.createVNode)(l,{trigger:`contextmenu`},{overlay:(0,t.withCtx)(()=>[(0,t.createVNode)(c,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{onClick:n[9]||=(0,t.withModifiers)(e=>o.onAddChild(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[16]||=[(0,t.createTextVNode)(`添加子级`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[10]||=(0,t.withModifiers)(e=>o.onEdit(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[17]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1}),(0,t.createVNode)(s,{onClick:n[11]||=(0,t.withModifiers)(e=>o.onDelete(r.node),[`stop`])},{default:(0,t.withCtx)(()=>[...n[18]||=[(0,t.createTextVNode)(`删除`,-1)]]),_:1})]),_:1})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ellipsis`,title:r.node.label},(0,t.toDisplayString)(r.node.label),9,S$)]),_:1})])])]),_:1}))])}var w$={name:`PaasTreePanel`,components:{MenuItemNode:y(v$,[[`render`,C$],[`__scopeId`,`data-v-e55ff356`]])},computed:{see(){return this.$store?.forms?.see||!1}},props:{placeholder:String,multiple:Boolean,disabled:Boolean,open:Boolean,groupType:String,params:Object,checkable:Boolean,modelValue:[String,Array],height:{type:String,default:`calc(100vh - 300px)`},listToTree:{type:Boolean,default:!0},url:{type:String,default:`/system/sys-group/list`},readonly:{type:Boolean,default:!1}},emits:[`update:modelValue`,`change`],data(){return{selectedKeys:[],openKeys:[],treeData:[],groupModalVisible:!1,action:``,groupInfo:{},submitLoading:!1,isInternalUpdate:!1}},watch:{modelValue:{immediate:!0,handler(e){this.isInternalUpdate=!0,this.selectedKeys=this.normalizeValue(e),this.$nextTick(()=>{this.isInternalUpdate=!1})}},selectedKeys(e){if(this.isInternalUpdate)return;let t=this.multiple?e:e.length?e[0]:null;this.$emit(`update:modelValue`,t),this.$emit(`change`,t)}},mounted(){this.getTreeData()},methods:{normalizeValue(e){return e?Array.isArray(e)?e.filter(Boolean).map(String):typeof e==`string`?e.includes(`,`)?e.split(`,`).filter(Boolean).map(String):[e]:[String(e)]:[]},getTreeData(){this.$post(this.url,{page:{current:1,size:1e6},...this.params,groupType:this.groupType}).then(e=>{let t=e?.data?.data?.rows||[];this.treeData=this.listToTree?this.$listToTree(t):t;let n;if(this.modelValue){let e=Array.isArray(this.modelValue)?String(this.modelValue[0]):String(this.modelValue);n=this.findNodeByKey(this.treeData,e)}if(!n&&this.treeData.length>0){let e=this.treeData[0];n=e.children&&e.children.length>0?e.children[0]:e}if(n){this.selectedKeys=[String(n.value)];let e=this.findAncestorKeys(this.treeData,n.value);this.openKeys=e}else this.selectedKeys=[],this.openKeys=[]})},findNodeByKey(e,t){for(let n of e){if(String(n.value)===String(t))return n;if(n.children&&n.children.length){let e=this.findNodeByKey(n.children,t);if(e)return e}}return null},findAncestorKeys(e,t,n=[]){for(let r of e){let e=[...n,String(r.value)];if(String(r.value)===String(t))return n;if(r.children&&r.children.length){let n=this.findAncestorKeys(r.children,t,e);if(n.length)return n}}return[]},handleOpenChange(e){let t=e.length?e[e.length-1]:null;this.openKeys=t?[t]:[]},handleSelectFromNode(e){let{node:t}=e,n=String(t.value),r=this.findAncestorKeys(this.treeData,n);if(t.children&&t.children.length){this.openKeys.includes(n)?this.openKeys=this.openKeys.filter(e=>e!==n):this.openKeys=Array.from(new Set([...r,n])),this.selectedKeys=[n];return}if(!this.multiple)this.selectedKeys=[n];else{let e=[...this.selectedKeys],t=e.indexOf(n);t===-1?e.push(n):e.splice(t,1),this.selectedKeys=e}this.openKeys=Array.from(new Set([...r]))},findAncestorKeys(e,t,n=[]){for(let r of e){let e=[...n,String(r.value)];if(String(r.value)===String(t))return n;if(r.children&&r.children.length){let n=this.findAncestorKeys(r.children,t,e);if(n.length)return n}}return[]},confirmDeleteGroup(e){this.$confirm({title:`确认删除该分组吗?`,onOk:()=>{this.$delete(`/system/sys-group/${e.value}`).then(e=>{if(e.data.code!==200){this.$message.error(e.data.msg);return}this.selectedKeys=[],this.$message.success(`删除成功`),this.getTreeData()})}})},openAddGroup(){this.action=`add`,this.groupInfo={isChild:!1,groupName:``},this.groupModalVisible=!0},openAddChildOf(e){this.action=`add`,this.groupInfo={isChild:!0,groupName:``,parentId:e.value||e.id},this.openKeys=[String(e.value)],this.groupModalVisible=!0},openEditGroup(e){this.action=`edit`,this.groupInfo={...e,groupName:e.label,id:e.id||e.value},this.groupModalVisible=!0},submitGroup(){if(!this.groupInfo.groupName||!this.groupInfo.groupName.trim()){this.$message.error(`请完整填写表单`);return}this.submitLoading=!0;let e={...this.groupInfo,groupType:this.groupType,groupId:this.action===`add`&&this.groupInfo.isChild&&(this.groupInfo.parentId||this.selectedKeys[0])||null};(this.action===`add`?this.$post(`/system/sys-group`,e):this.$put(`/system/sys-group/edit`,{...e,id:this.groupInfo.id})).then(e=>{e.data.code===200?(this.$message.success(this.action===`add`?`添加成功`:`修改成功`),this.getTreeData(),this.groupModalVisible=!1):this.$message.error(e.data.msg||`操作失败`)}).finally(()=>{this.submitLoading=!1})}}},T$={key:0,style:{"text-align":`center`}};function E$(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`menu-item-node`),c=(0,t.resolveComponent)(`a-menu`),l=(0,t.resolveComponent)(`a-button`),u=(0,t.resolveComponent)(`a-input`),d=(0,t.resolveComponent)(`a-form-item`),f=(0,t.resolveComponent)(`a-form`),p=(0,t.resolveComponent)(`a-modal`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.createVNode)(c,{mode:`inline`,selectedKeys:a.selectedKeys,openKeys:a.openKeys,multiple:r.multiple,disabled:o.see,onOpenChange:o.handleOpenChange,style:(0,t.normalizeStyle)({overflowY:`auto`,height:`${r.height}`})},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.treeData,e=>((0,t.openBlock)(),(0,t.createBlock)(s,{readonly:r.readonly,key:e.value,node:e,onSelect:o.handleSelectFromNode,onEdit:o.openEditGroup,onDelete:o.confirmDeleteGroup,onAddChild:o.openAddChildOf},null,8,[`readonly`,`node`,`onSelect`,`onEdit`,`onDelete`,`onAddChild`]))),128))]),_:1},8,[`selectedKeys`,`openKeys`,`multiple`,`disabled`,`onOpenChange`,`style`]),r.readonly?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,T$,[(0,t.createVNode)(l,{type:`link`,onClick:n[0]||=(0,t.withModifiers)(t=>o.openAddGroup(e.node),[`stop`]),style:{margin:`0 10px 10px 10px`}},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createTextVNode)(` 添加根级 `,-1)]]),_:1})])),r.readonly?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(p,{key:1,open:a.groupModalVisible,"onUpdate:open":n[3]||=e=>a.groupModalVisible=e,closable:!0,maskClosable:!0,draggable:!0,title:a.groupInfo.isChild?`添加子级`:`添加根级`},{footer:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{onClick:n[2]||=e=>a.groupModalVisible=!1},{default:(0,t.withCtx)(()=>[...n[5]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)(l,{type:`primary`,loading:a.submitLoading,onClick:o.submitGroup},{default:(0,t.withCtx)(()=>[...n[6]||=[(0,t.createTextVNode)(`确认`,-1)]]),_:1},8,[`loading`,`onClick`])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(f,{ref:`formRef`,model:a.groupInfo},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d,{label:`分组名称`,rules:[{required:!0,message:`请输入分组名称`}]},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,{value:a.groupInfo.groupName,"onUpdate:value":n[1]||=e=>a.groupInfo.groupName=e},null,8,[`value`])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`open`,`title`]))])}var D$=y(w$,[[`render`,E$],[`__scopeId`,`data-v-a8a7f058`]]),O$=(0,t.defineComponent)({name:`PaasIcon`,props:{icon:{type:String,default:``}},setup(e){let n=(0,t.ref)(null);return(0,t.watch)(()=>e.icon,e=>{n.value=eQ[e]},{immediate:!0}),{iconComponent:n}}});function k$(e,n,r,i,a,o){return e.iconComponent?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.iconComponent),{key:0})):(0,t.createCommentVNode)(``,!0)}var A$=y(O$,[[`render`,k$]]),j$=[],M$=[];(()=>{let e=`lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o`.split(`,`).map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?M$:j$).push(n+=e[t])})();function N$(e){if(e<768)return!1;for(let t=0,n=j$.length;;){let r=t+n>>1;if(e<j$[r])n=r;else if(e>=M$[r])t=r+1;else return!0;if(t==n)return!1}}function P$(e){return e>=127462&&e<=127487}var F$=8205;function I$(e,t,n=!0,r=!0){return(n?L$:R$)(e,t,r)}function L$(e,t,n){if(t==e.length)return t;t&&B$(e.charCodeAt(t))&&V$(e.charCodeAt(t-1))&&t--;let r=z$(e,t);for(t+=H$(r);t<e.length;){let i=z$(e,t);if(r==F$||i==F$||n&&N$(i))t+=H$(i),r=i;else if(P$(i)){let n=0,r=t-2;for(;r>=0&&P$(z$(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function R$(e,t,n){for(;t>0;){let r=L$(e,t-2,n);if(r<t)return r;t--}return 0}function z$(e,t){let n=e.charCodeAt(t);if(!V$(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return B$(r)?(n-55296<<10)+(r-56320)+65536:n}function B$(e){return e>=56320&&e<57344}function V$(e){return e>=55296&&e<56320}function H$(e){return e<65536?1:2}var F=class e{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=Q$(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),W$.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Q$(this,e,t);let n=[];return this.decompose(e,t,n,0),W$.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new J$(this),i=new J$(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new J$(this,e)}iterRange(e,t=this.length){return new Y$(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t??=this.lines+1;let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new X$(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(t){if(t.length==0)throw RangeError(`A document must have at least one line`);return t.length==1&&!t[0]?e.empty:t.length<=32?new U$(t):W$.from(U$.split(t,[]))}},U$=class e extends F{constructor(e,t=G$(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new Z$(r,o,n,a);r=o+1,n++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new e(q$(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let t=r.pop(),n=K$(a.text,t.text.slice(),0,a.length);if(n.length<=32)r.push(new e(n,t.length+a.length));else{let t=n.length>>1;r.push(new e(n.slice(0,t)),new e(n.slice(t)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof e))return super.replace(t,n,r);[t,n]=Q$(this,t,n);let i=K$(this.text,K$(r.text,q$(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new e(i,a):W$.from(e.split(i,[]),a)}sliceString(e,t=this.length,n=`
104
104
  `){[e,t]=Q$(this,e,t);let r=``;for(let i=0,a=0;i<=t&&a<this.text.length;a++){let o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},W$=class e extends F{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e<=s&&t>=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(t,n,r){if([t,n]=Q$(this,t,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(t>=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines<l>>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n=`
105
105
  `){[e,t]=Q$(this,e,t);let r=``;for(let i=0,a=0;i<this.children.length&&a<=t;i++){let o=this.children[i],s=a+o.length;a>e&&i&&(r+=n),e<s&&t>a&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new U$(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof U$&&c&&(n=u[u.length-1])instanceof U$&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new U$(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t))}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0)}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};F.empty=new U$([``],0);function G$(e){let t=-1;for(let n of e)t+=n.length+1;return t}function K$(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a<e.length&&i<=r;a++){let s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function q$(e,t,n){return K$(e,[``],t,n)}var J$=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value=``,this.nodes=[e],this.offsets=[t>0?1:(e instanceof U$?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof U$?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=!0,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
106
106
  `,this;e--}else if(r instanceof U$){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof U$?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},Y$=class{constructor(e,t,n){this.value=``,this.done=!1,this.cursor=new J$(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},X$=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value=``,this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=!1):t?(this.done=!0,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<`u`&&(F.prototype[Symbol.iterator]=function(){return this.iter()},J$.prototype[Symbol.iterator]=Y$.prototype[Symbol.iterator]=X$.prototype[Symbol.iterator]=function(){return this});var Z$=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function Q$(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function $$(e,t,n=!0,r=!0){return I$(e,t,n,r)}function e1(e){return e>=56320&&e<57344}function t1(e){return e>=55296&&e<56320}function n1(e,t){let n=e.charCodeAt(t);if(!t1(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return e1(r)?(n-55296<<10)+(r-56320)+65536:n}function r1(e){return e<65536?1:2}var i1=/\r\n?|\n/,a1=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(a1||={}),o1=class e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){u1(this,e,t)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new e(t)}composeDesc(e){return this.empty?e:e.empty?this:f1(this,e)}mapDesc(e,t=!1){return e.empty?this:d1(this,e,t)}mapPos(e,t=-1,n=a1.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=a1.Simple&&c>=e&&(n==a1.TrackDel&&r<e&&c>e||n==a1.TrackBefore&&r<e||n==a1.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return r<e&&o>t?`cover`:!0;r=o}return!1}toString(){let e=``;for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?` `:``)+n+(r>=0?`:`+r:``)}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},s1=class e extends o1{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return u1(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return d1(this,e,t,!0)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e<n.length;e+=2){let a=n[e],o=n[e+1];if(o>=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length<s;)r.push(F.empty);r.push(a?t.slice(i,i+a):F.empty)}i+=a}return new e(n,r)}compose(e){return this.empty?e:e.empty?this:f1(this,e,!0)}map(e,t=!1){return e.empty?this:d1(this,e,t,!0)}iterChanges(e,t=!1){u1(this,e,t)}get desc(){return o1.create(this.sections)}filter(t){let n=[],r=[],i=[],a=new p1(this);done:for(let e=0,o=0;;){let s=e==t.length?1e9:t[e++];for(;o<s||o==s&&a.len==0;){if(a.done)break done;let e=Math.min(a.len,s-o);c1(i,e,-1);let t=a.ins==-1?-1:a.off==0?a.ins:0;c1(n,e,t),t>0&&l1(r,n,a.text),a.forward(e),o+=e}let c=t[e++];for(;o<c;){if(a.done)break done;let e=Math.min(a.len,c-o);c1(n,e,-1),c1(i,e,a.ins==-1?-1:a.off==0?a.ins:0),a.forward(e),o+=e}}return{changes:new e(n,r),filtered:o1.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(t,n,r){let i=[],a=[],o=0,s=null;function c(t=!1){if(!t&&!i.length)return;o<n&&c1(i,n-o,-1);let r=new e(i,a);s=s?s.compose(r.map(s)):r,i=[],a=[],o=0}function l(t){if(Array.isArray(t))for(let e of t)l(e);else if(t instanceof e){if(t.length!=n)throw RangeError(`Mismatched change set length (got ${t.length}, expected ${n})`);c(),s=s?s.compose(t.map(s)):t}else{let{from:e,to:s=e,insert:l}=t;if(e>s||e<0||s>n)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${n})`);let u=l?typeof l==`string`?F.of(l.split(r||i1)):l:F.empty,d=u.length;if(e==s&&d==0)return;e<o&&c(),e>o&&c1(i,e-o,-1),c1(i,s-e,d),l1(a,i,u),o=s}}return l(t),c(!s),s}static empty(t){return new e(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError(`Invalid JSON representation of ChangeSet`);let n=[],r=[];for(let e=0;e<t.length;e++){let i=t[e];if(typeof i==`number`)n.push(i,-1);else if(!Array.isArray(i)||typeof i[0]!=`number`||i.some((e,t)=>t&&typeof e!=`string`))throw RangeError(`Invalid JSON representation of ChangeSet`);else if(i.length==1)n.push(i[0],0);else{for(;r.length<e;)r.push(F.empty);r[e]=F.of(i.slice(1)),n.push(i[0],r[e].length)}}return new e(n,r)}static createSet(t,n){return new e(t,n)}};function c1(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function l1(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(F.empty);e.push(n)}}function u1(e,t,n){let r=e.inserted;for(let i=0,a=0,o=0;o<e.sections.length;){let s=e.sections[o++],c=e.sections[o++];if(c<0)i+=s,a+=s;else{let l=i,u=a,d=F.empty;for(;l+=s,u+=c,c&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],c=e.sections[o++];t(i,l,a,u,d),i=l,a=u}}}function d1(e,t,n,r=!1){let i=[],a=r?[]:null,o=new p1(e),s=new p1(t);for(let e=-1;;)if(o.done&&s.len||s.done&&o.len)throw Error(`Mismatched change set lengths`);else if(o.ins==-1&&s.ins==-1){let e=Math.min(o.len,s.len);c1(i,e,-1),o.forward(e),s.forward(e)}else if(s.ins>=0&&(o.ins<0||e==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!n))){let t=s.len;for(c1(i,s.ins,-1);t;){let n=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=n&&(c1(i,0,o.ins),a&&l1(a,i,o.text),e=o.i),o.forward(n),t-=n}s.next()}else if(o.ins>=0){let t=0,n=o.len;for(;n;)if(s.ins==-1){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else if(s.ins==0&&s.len<n)n-=s.len,s.next();else break;c1(i,t,e<o.i?o.ins:0),a&&e<o.i&&l1(a,i,o.text),e=o.i,o.forward(o.len-n)}else if(o.done&&s.done)return a?s1.createSet(i,a):o1.create(i);else throw Error(`Mismatched change set lengths`)}function f1(e,t,n=!1){let r=[],i=n?[]:null,a=new p1(e),o=new p1(t);for(let e=!1;;)if(a.done&&o.done)return i?s1.createSet(r,i):o1.create(r);else if(a.ins==0)c1(r,a.len,0,e),a.next();else if(o.len==0&&!o.done)c1(r,0,o.ins,e),i&&l1(i,r,o.text),o.next();else if(a.done||o.done)throw Error(`Mismatched change set lengths`);else{let t=Math.min(a.len2,o.len),n=r.length;if(a.ins==-1){let n=o.ins==-1?-1:o.off?0:o.ins;c1(r,t,n,e),i&&n&&l1(i,r,o.text)}else o.ins==-1?(c1(r,a.off?0:a.len,t,e),i&&l1(i,r,a.textBit(t))):(c1(r,a.off?0:a.len,o.off?0:o.ins,e),i&&!o.off&&l1(i,r,o.text));e=(a.ins>t||o.ins>=0&&o.len>t)&&(e||r.length>n),a.forward2(t),o.forward(t)}}var p1=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?F.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?F.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},m1=class e{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new e(r,i,this.flags)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return I.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return I.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!=`number`||typeof e.head!=`number`)throw RangeError(`Invalid JSON representation for SelectionRange`);return I.range(e.anchor,e.head)}static create(t,n,r){return new e(t,n,r)}},I=class e{constructor(e,t){this.ranges=e,this.mainIndex=t}map(t,n=-1){return t.empty?this:e.create(this.ranges.map(e=>e.map(t,n)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new e([this.main],0)}addRange(t,n=!0){return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,e.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!=`number`||t.main>=t.ranges.length)throw RangeError(`Invalid JSON representation for EditorSelection`);return new e(t.ranges.map(e=>m1.fromJSON(e)),t.main)}static single(t,n=t){return new e([e.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw RangeError(`A selection needs at least one range`);for(let r=0,i=0;i<t.length;i++){let a=t[i];if(a.empty?a.from<=r:a.from<r)return e.normalized(t.slice(),n);r=a.to}return new e(t,n)}static cursor(e,t=0,n,r){return m1.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(r??16777215)<<6)}static range(e,t,n,r,i){let a=(n??16777215)<<6|(r==null?7:Math.min(6,r));return!i&&e!=t&&(i=t<e?1:-1),t<e?m1.create(t,e,48|a):m1.create(e,t,(i?i<0?8:16:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((e,t)=>e.from-t.from),n=t.indexOf(r);for(let r=1;r<t.length;r++){let i=t[r],a=t[r-1];if(i.empty?i.from<=a.to:i.from<a.to){let o=a.from,s=Math.max(i.to,a.to);r<=n&&n--,t.splice(--r,2,i.anchor>i.head?e.range(s,o):e.range(o,s))}}return new e(t,n)}};function h1(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError(`Selection points outside of document`)}var g1=0,L=class e{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=g1++,this.default=e([]),this.extensions=typeof i==`function`?i(this):i}get reader(){return this}static define(t={}){return new e(t.combine||(e=>e),t.compareInput||((e,t)=>e===t),t.compare||(t.combine?(e,t)=>e===t:_1),!!t.static,t.enables)}of(e){return new v1([],this,0,e)}compute(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new v1(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new v1(e,this,2,t)}from(e,t){return t||=e=>e,this.compute([e],n=>t(n.field(e)))}};function _1(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}var v1=class{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=g1++}dynamicSlot(e){let t=this.value,n=this.facet.compareInput,r=this.id,i=e[r]>>1,a=this.type==2,o=!1,s=!1,c=[];for(let t of this.dependencies)t==`doc`?o=!0:t==`selection`?s=!0:(e[t.id]??1)&1||c.push(e[t.id]);return{create(e){return e.values[i]=t(e),1},update(e,r){if(o&&r.docChanged||s&&(r.docChanged||r.selection)||b1(e,c)){let r=t(e);if(a?!y1(r,e.values[i],n):!n(r,e.values[i]))return e.values[i]=r,1}return 0},reconfigure:(e,o)=>{let s,c=o.config.address[r];if(c!=null){let r=N1(o,c);if(this.dependencies.every(t=>t instanceof L?o.facet(t)===e.facet(t):t instanceof C1?o.field(t,!1)==e.field(t,!1):!0)||(a?y1(s=t(e),r,n):n(s=t(e),r)))return e.values[i]=r,0}else s=t(e);return e.values[i]=s,1}}}};function y1(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function b1(e,t){let n=!1;for(let r of t)M1(e,r)&1&&(n=!0);return n}function x1(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(e&1)),o=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let a=N1(e,r[t]);if(i[t]==2)for(let e of a)n.push(e);else n.push(a)}return t.combine(n)}return{create(e){for(let t of r)M1(e,t);return e.values[o]=s(e),1},update(e,n){if(!b1(e,a))return 0;let r=s(e);return t.compare(r,e.values[o])?0:(e.values[o]=r,1)},reconfigure(e,i){let a=b1(e,r),c=i.config.facets[t.id],l=i.facet(t);if(c&&!a&&_1(n,c))return e.values[o]=l,0;let u=s(e);return t.compare(u,l)?(e.values[o]=l,0):(e.values[o]=u,1)}}}var S1=L.define({static:!0}),C1=class e{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(t){let n=new e(g1++,t.create,t.update,t.compare||((e,t)=>e===t),t);return t.provide&&(n.provides=t.provide(n)),n}create(e){return(e.facet(S1).find(e=>e.field==this)?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(S1),i=n.facet(S1),a;return(a=r.find(e=>e.field==this))&&a!=i.find(e=>e.field==this)?(e.values[t]=a.create(e),1):n.config.address[this.id]==null?(e.values[t]=this.create(e),1):(e.values[t]=n.field(this),0)}}}init(e){return[this,S1.of({field:this,create:e})]}get extension(){return this}},w1={lowest:4,low:3,default:2,high:1,highest:0};function T1(e){return t=>new D1(t,e)}var E1={highest:T1(w1.highest),high:T1(w1.high),default:T1(w1.default),low:T1(w1.low),lowest:T1(w1.lowest)},D1=class{constructor(e,t){this.inner=e,this.prec=t}},O1=class e{of(e){return new k1(this,e)}reconfigure(t){return e.reconfigure.of({compartment:this,extension:t})}get(e){return e.config.compartments.get(this)}},k1=class{constructor(e,t){this.compartment=e,this.inner=t}},A1=class e{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(t,n,r){let i=[],a=Object.create(null),o=new Map;for(let e of j1(t,n,o))e instanceof C1?i.push(e):(a[e.facet.id]||(a[e.facet.id]=[])).push(e);let s=Object.create(null),c=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push(t=>e.slot(t));let u=r?.config.facets;for(let e in a){let t=a[e],n=t[0].facet,i=u&&u[e]||[];if(t.every(e=>e.type==0))if(s[n.id]=c.length<<1|1,_1(i,t))c.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));c.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}else{for(let e of t)e.type==0?(s[e.id]=c.length<<1|1,c.push(e.value)):(s[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));s[n.id]=l.length<<1,l.push(e=>x1(e,n,t))}}return new e(t,o,l.map(e=>e(s)),s,c,a)}};function j1(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(e,o){let s=i.get(e);if(s!=null){if(s<=o)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof k1&&n.delete(e.compartment)}if(i.set(e,o),Array.isArray(e))for(let t of e)a(t,o);else if(e instanceof k1){if(n.has(e.compartment))throw RangeError(`Duplicate use of compartment in extensions`);let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),a(r,o)}else if(e instanceof D1)a(e.inner,e.prec);else if(e instanceof C1)r[o].push(e),e.provides&&a(e.provides,o);else if(e instanceof v1)r[o].push(e),e.facet.extensions&&a(e.facet.extensions,w1.default);else{let t=e.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(t,o)}}return a(e,w1.default),r.reduce((e,t)=>e.concat(t))}function M1(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw Error(`Cyclic dependency between fields and/or facets`);if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function N1(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}var P1=L.define(),F1=L.define({combine:e=>e.some(e=>e),static:!0}),I1=L.define({combine:e=>e.length?e[0]:void 0,static:!0}),L1=L.define(),R1=L.define(),z1=L.define(),B1=L.define({combine:e=>e.length?e[0]:!1}),V1=class{constructor(e,t){this.type=e,this.value=t}static define(){return new H1}},H1=class{of(e){return new V1(this,e)}},U1=class{constructor(e){this.map=e}of(e){return new R(this,e)}},R=class e{constructor(e,t){this.type=e,this.value=t}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new e(this.type,n)}is(e){return this.type==e}static define(e={}){return new U1(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}};R.reconfigure=R.define(),R.appendConfig=R.define();var W1=class e{constructor(t,n,r,i,a,o){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=o,this._doc=null,this._state=null,r&&h1(r,n.newLength),a.some(t=>t.type==e.time)||(this.annotations=a.concat(e.time.of(Date.now())))}static create(t,n,r,i,a,o){return new e(t,n,r,i,a,o)}get newDoc(){return this._doc||=this.changes.apply(this.startState.doc)}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(e.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]==`.`))}};W1.time=V1.define(),W1.userEvent=V1.define(),W1.addToHistory=V1.define(),W1.remote=V1.define();function G1(e,t){let n=[];for(let r=0,i=0;;){let a,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))a=e[r++],o=e[r++];else if(i<t.length)a=t[i++],o=t[i++];else return n;!n.length||n[n.length-1]<a?n.push(a,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function K1(e,t,n){let r,i,a;return n?(r=t.changes,i=s1.empty(t.changes.length),a=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(r)),{changes:a,selection:t.selection?t.selection.map(i):e.selection?.map(r),effects:R.mapEffects(e.effects,r).concat(R.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function q1(e,t,n){let r=t.selection,i=Q1(t.annotations);return t.userEvent&&(i=i.concat(W1.userEvent.of(t.userEvent))),{changes:t.changes instanceof s1?t.changes:s1.of(t.changes||[],n,e.facet(I1)),selection:r&&(r instanceof I?r:I.single(r.anchor,r.head)),effects:Q1(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function J1(e,t,n){let r=q1(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let i=1;i<t.length;i++){t[i].filter===!1&&(n=!1);let a=!!t[i].sequential;r=K1(r,q1(e,t[i],a?r.changes.newLength:e.doc.length),a)}let i=W1.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return X1(n?Y1(i):i)}function Y1(e){let t=e.startState,n=!0;for(let r of t.facet(L1)){let t=r(e);if(t===!1){n=!1;break}Array.isArray(t)&&(n=n===!0?t:G1(n,t))}if(n!==!0){let r,i;if(n===!1)i=e.changes.invertedDesc,r=s1.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=W1.create(t,r,e.selection&&e.selection.map(i),R.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(R1);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof W1?i:Array.isArray(i)&&i.length==1&&i[0]instanceof W1?i[0]:J1(t,Q1(i),!1)}return e}function X1(e){let t=e.startState,n=t.facet(z1),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=K1(r,q1(t,a,e.changes.newLength),!0))}return r==e?e:W1.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}var Z1=[];function Q1(e){return e==null?Z1:Array.isArray(e)?e:[e]}var $1=(function(e){return e[e.Word=0]=`Word`,e[e.Space=1]=`Space`,e[e.Other=2]=`Other`,e})($1||={}),gle=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,e0;try{e0=RegExp(`[\\p{Alphabetic}\\p{Number}_]`,`u`)}catch{}function _le(e){if(e0)return e0.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>`€`&&(n.toUpperCase()!=n.toLowerCase()||gle.test(n)))return!0}return!1}function vle(e){return t=>{if(!/\S/.test(t))return $1.Space;if(_le(t))return $1.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return $1.Word;return $1.Other}}var z=class e{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)M1(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw RangeError(`Field is not present in this state`);return}return M1(this,n),N1(this,n)}update(...e){return J1(this,e,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let e of t.effects)e.is(O1.reconfigure)?(n&&=(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),null),i.set(e.value.compartment,e.value.extension)):e.is(R.reconfigure)?(n=null,r=e.value):e.is(R.appendConfig)&&(n=null,r=Q1(r).concat(e.value));let a;n?a=t.startState.values.slice():(n=A1.resolve(r,i,this),a=new e(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let o=t.startState.facet(F1)?t.newSelection:t.newSelection.asSingle();new e(n,t.newDoc,o,a,(e,n)=>n.update(e,t),t)}replaceSelection(e){return typeof e==`string`&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:I.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=Q1(n.effects);for(let n=1;n<t.ranges.length;n++){let o=e(t.ranges[n]),s=this.changes(o.changes),c=s.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(c);let l=r.mapDesc(s,!0);i.push(o.range.map(l)),r=r.compose(c),a=R.mapEffects(a,c).concat(R.mapEffects(Q1(o.effects),l))}return{changes:r,selection:I.create(i,t.mainIndex),effects:a}}changes(t=[]){return t instanceof s1?t:s1.of(t,this.doc.length,this.facet(e.lineSeparator))}toText(t){return F.of(t.split(this.facet(e.lineSeparator)||i1))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(M1(this,t),N1(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof C1&&this.config.address[r.id]!=null&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(t,n={},r){if(!t||typeof t.doc!=`string`)throw RangeError(`Invalid JSON representation for EditorState`);let i=[];if(r){for(let e in r)if(Object.prototype.hasOwnProperty.call(t,e)){let n=r[e],a=t[e];i.push(n.init(e=>n.spec.fromJSON(a,e)))}}return e.create({doc:t.doc,selection:I.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=A1.resolve(t.extensions||[],new Map),r=t.doc instanceof F?t.doc:F.of((t.doc||``).split(n.staticFacet(e.lineSeparator)||i1)),i=t.selection?t.selection instanceof I?t.selection:I.single(t.selection.anchor,t.selection.head):I.single(0);return h1(i,r.length),n.staticFacet(F1)||(i=i.asSingle()),new e(n,r,i,n.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(e.tabSize)}get lineBreak(){return this.facet(e.lineSeparator)||`
package/dist/style.css CHANGED
@@ -1,2 +1,2 @@
1
- .table-container{flex-direction:column;height:72vh;display:flex}.full-height-table{flex:1;overflow:auto}.table-divider{margin-top:0;margin-bottom:8px}.ant-tree .ant-tree-switcher{justify-content:center!important;align-items:center!important;height:auto!important;min-height:28px!important;display:flex!important}.ant-tree .ant-tree-title{align-items:center!important;width:100%!important;min-width:0!important;display:flex!important}.ql-container{box-sizing:border-box;height:100%;margin:0;font-family:Helvetica,Arial,sans-serif;font-size:13px;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;position:absolute;top:50%;left:-100000px;overflow-y:hidden}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word;outline:none;height:100%;padding:12px 15px;line-height:1.42;overflow-y:auto}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{white-space:nowrap;width:1.2em;display:inline-block}.ql-editor li:not(.ql-direction-rtl):before{text-align:right;margin-left:-1.5em;margin-right:.3em}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0, decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1, lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2, lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3, decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4, lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5, lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6, decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7, lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8, lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9, decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{max-width:100%;display:block}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{text-align:inherit;direction:rtl}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);pointer-events:none;font-style:italic;position:absolute;left:15px;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{cursor:pointer;float:left;background:0 0;border:none;width:28px;height:24px;margin-left:1px;margin-right:1px;padding:3px 5px;display:inline-block}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover{background-color:#f3f4f6}.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#2563eb;background-color:#dbeafe}.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#2563eb}.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#2563eb}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#4b5563}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#4b5563}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#4b5563}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{vertical-align:middle;display:inline-block}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#4b5563;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}.ql-snow .ql-stroke-miter{fill:none;stroke:#4b5563;stroke-miterlimit:10;stroke-width:2px}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#4b5563}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1px}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-top:5px;margin-bottom:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-top:5px;margin-bottom:5px;padding:5px 10px}.ql-snow .ql-editor code{padding:2px 4px;font-size:85%}.ql-snow .ql-editor pre.ql-syntax{color:#f8f8f2;background-color:#23241f;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#4b5563;float:left;vertical-align:middle;height:24px;margin-left:1px;margin-right:1px;font-size:14px;font-weight:500;display:inline-block;position:relative}.ql-snow .ql-picker-label{cursor:pointer;width:100%;height:100%;padding-left:8px;padding-right:2px;display:flex;position:relative}.ql-snow .ql-picker-label:before{line-height:22px;display:inline-block}.ql-snow .ql-picker-options{white-space:nowrap;background-color:#fff;min-width:100%;display:none;position:absolute}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;padding:5px 8px;display:block}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#d1d5db;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#d1d5db}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#d1d5db}.ql-snow .ql-picker.ql-expanded .ql-picker-options{z-index:1;margin-top:-1px;display:block;top:100%}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:3px}.ql-snow .ql-icon-picker .ql-picker-item{width:24px;height:24px;margin:2px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{width:152px;padding:3px 5px}.ql-snow .ql-color-picker .ql-picker-item{float:left;border:1px solid #0000;width:16px;height:16px;margin:2px;padding:0}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{width:18px;margin-top:-9px;position:absolute;top:50%;right:0}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{box-sizing:border-box;border:1px solid #d1d5db;padding:8px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid #0000}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid #0000;box-shadow:0 2px 8px #0003}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#d1d5db}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{color:#4b5563;white-space:nowrap;background-color:#fff;border:1px solid #d1d5db;padding:5px 12px;box-shadow:0 0 5px #d1d5db}.ql-snow .ql-tooltip:before{content:"Visit URL:";margin-right:8px;line-height:26px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #d1d5db;width:170px;height:26px;margin:0;padding:3px 5px;font-size:13px;display:none}.ql-snow .ql-tooltip a.ql-preview{text-overflow:ellipsis;vertical-align:top;max-width:200px;display:inline-block;overflow-x:hidden}.ql-snow .ql-tooltip a.ql-action:after{content:"Edit";border-right:1px solid #d1d5db;margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{content:"Save";border-right:0;padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#2563eb}.ql-container.ql-snow{border:1px solid #d1d5db}.paas-menu-container[data-v-16bf3410]{flex-direction:column;height:100%;display:flex}.paas-menu-header[data-v-16bf3410]{border-bottom:1px solid #94929234;flex-direction:row;align-items:center;height:51px;padding:0 8px;display:flex}.paas-menu-logo[data-v-16bf3410]{text-align:center;height:51px;margin-right:8px;padding:0 8px}.paas-menu-logo img[data-v-16bf3410]{object-fit:contain;max-width:32px;height:51px}.paas-menu-system-name[data-v-16bf3410]{text-align:center;padding:0 8px}.paas-menu-system-name label[data-v-16bf3410]{color:#1890ff;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.5px;margin:0;font-size:16px;font-weight:600;overflow:hidden}.paas-menu-scroll-wrapper[data-v-16bf3410]{-ms-overflow-style:none;scrollbar-width:none;height:calc(100% - 51px);max-height:calc(100% - 51px);position:relative;overflow:hidden auto}.paas-menu-scroll-wrapper[data-v-16bf3410]::-webkit-scrollbar{display:none}.mention-wrapper[data-v-fefe52b3]{width:100%;max-width:100%;position:relative;overflow:hidden}.mention-input[data-v-fefe52b3]{box-sizing:border-box;background:var(--background-color);color:#000000e0;white-space:pre-wrap;word-break:break-word;resize:none;overflow-wrap:break-word;white-space:pre-wrap;word-wrap:break-word;border:1px solid #d9d9d9;border-radius:4px;outline:none;width:100%;min-height:32px;padding:4px 6px;font-size:14px;line-height:1.6;display:block;overflow:hidden auto}.mention-input[data-v-fefe52b3]::-webkit-scrollbar{width:0;height:0}.mention-input[data-v-fefe52b3]::-webkit-scrollbar-track{background:0 0}.mention-input[data-v-fefe52b3]::-webkit-scrollbar-thumb{background:0 0;border-radius:0}.mention-input[data-v-fefe52b3]::-webkit-scrollbar-thumb:hover{background:0 0}.mention-input[data-v-fefe52b3]:focus{border-color:#40a9ff}.mention-input[data-v-fefe52b3]:empty:before{content:attr(placeholder);color:#bfbfbf}.mention-input[data-v-fefe52b3] .mention-tag{color:#1890ff;white-space:nowrap;height:24px;vertical-align:center;background:#e6f7ff;border-radius:4px;align-items:center;margin:0 2px;padding:0 4px;font-size:12px;line-height:22px;display:inline-flex}.mention-input[data-v-fefe52b3] .mention-tag .tag-content{margin-left:4px}.mention-input[data-v-fefe52b3] .mention-tag .tag-close{color:#fff;cursor:pointer;background:#b4bdb4;border-radius:50%;justify-content:center;align-items:center;width:12px;height:12px;font-size:10px;display:flex}.mention-input[data-v-fefe52b3] .mention-tag .tag-close:hover{background:#ff4d4f}.mention-cascader-overlay[data-v-fefe52b3]{z-index:1050;position:fixed}.striped-table[data-v-04a6b0ef] .ant-table-tbody tr:nth-child(odd){background-color:var(--background-color)!important}.paas-select{min-width:180px}.ql-container[data-v-541aea24]{width:100%;min-height:350px}.menu-title[data-v-e11ea922],.menu-item[data-v-e11ea922]{align-items:center;width:100%;padding:4px 0;display:flex}.clickable[data-v-e11ea922]{cursor:pointer;transition:background-color .2s}.menu-title-wrapper[data-v-e11ea922]{flex:1;overflow:hidden}.menu-title-text[data-v-e11ea922],.ellipsis[data-v-e11ea922]{white-space:nowrap;text-overflow:ellipsis;min-width:0;display:block;overflow:hidden}.more-trigger[data-v-e11ea922]{cursor:pointer;color:#999;padding:0 8px;font-size:14px;display:inline-block}[data-v-25c75bfe] .ant-menu-inline{border-radius:8px;padding:8px 0;box-shadow:0 2px 8px #0000000f;background:#fafafa!important;border-right:none!important;overflow-y:auto!important}[data-v-25c75bfe] .ant-menu{font-size:14px;line-height:1.5;box-shadow:none!important;background:0 0!important;border:none!important}[data-v-25c75bfe] .ant-menu-item{border-radius:6px;font-weight:400;margin:2px 8px!important;padding:8px 12px!important}[data-v-25c75bfe] .ant-menu-submenu-title{border-radius:6px;font-weight:500;margin:2px 8px!important;padding:8px 12px!important}[data-v-25c75bfe] .ant-menu-item-selected{font-weight:500;box-shadow:0 2px 4px #1890ff4d;color:#fff!important;background-color:#1890ff!important}[data-v-25c75bfe] .ant-menu-sub{border-radius:6px;padding:4px 0;box-shadow:0 2px 4px #0000000d;background:#fafafa!important;margin:0 8px!important}[data-v-25c75bfe] .ant-menu-sub .ant-menu-item{font-weight:400;margin:2px 4px!important;padding-left:24px!important}[data-v-25c75bfe] .ant-menu-inline::-webkit-scrollbar{width:6px}[data-v-25c75bfe] .ant-menu-inline::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}[data-v-25c75bfe] .ant-menu-inline::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}[data-v-25c75bfe] .ant-menu-inline::-webkit-scrollbar-thumb:hover{background:#a8a8a8}[data-v-25c75bfe] .ant-btn.dashed{border-color:#d9d9d9;border-radius:6px;margin-top:16px;padding:8px 16px;font-size:14px}[data-v-25c75bfe] .ant-btn.dashed:hover{color:inherit;box-shadow:none;background-color:#0000;border-color:#d9d9d9}[data-v-25c75bfe] .ant-modal{border-radius:12px;overflow:hidden;box-shadow:0 10px 30px #00000026}[data-v-25c75bfe] .ant-modal-header{background:#fafafa;border-bottom:1px solid #f0f0f0;border-radius:12px 12px 0 0;padding:16px 24px}[data-v-25c75bfe] .ant-modal-title{color:#333;font-size:16px;font-weight:500}[data-v-25c75bfe] .ant-modal-body{background:#fff;padding:24px}[data-v-25c75bfe] .ant-modal-footer{background:#fafafa;border-top:1px solid #f0f0f0;border-radius:0 0 12px 12px;padding:16px 24px}[data-v-25c75bfe] .ant-dropdown-menu{border:1px solid #f0f0f0;border-radius:8px;padding:4px 0;box-shadow:0 4px 12px #00000026}[data-v-25c75bfe] .ant-dropdown-menu-item{border-radius:0;margin:0;padding:8px 16px}[data-v-25c75bfe] .ant-dropdown-menu-item:hover{color:inherit;background-color:#0000}.code-editor[data-v-7f94554b]{border:1px solid #ddd;border-radius:4px;width:100%;font-size:14px;overflow:hidden}.code-editor[data-v-7f94554b] .cm-scroller{font-size:13px;overflow:auto}.code-editor[data-v-7f94554b] .cm-editor{height:100%}.entity-selector[data-v-9778246f]{width:100%}.paas-image-viewer-container[data-v-ea1b3984]{box-sizing:border-box;object-fit:cover;width:100%;min-width:0;max-width:100%;height:100%;min-height:0;overflow:hidden}
1
+ .table-container{flex-direction:column;height:72vh;display:flex}.full-height-table{flex:1;overflow:auto}.table-divider{margin-top:0;margin-bottom:8px}.ant-tree .ant-tree-switcher{justify-content:center!important;align-items:center!important;height:auto!important;min-height:28px!important;display:flex!important}.ant-tree .ant-tree-title{align-items:center!important;width:100%!important;min-width:0!important;display:flex!important}.ql-container{box-sizing:border-box;height:100%;margin:0;font-family:Helvetica,Arial,sans-serif;font-size:13px;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;position:absolute;top:50%;left:-100000px;overflow-y:hidden}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word;outline:none;height:100%;padding:12px 15px;line-height:1.42;overflow-y:auto}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{white-space:nowrap;width:1.2em;display:inline-block}.ql-editor li:not(.ql-direction-rtl):before{text-align:right;margin-left:-1.5em;margin-right:.3em}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0, decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1, lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2, lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3, decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4, lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5, lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6, decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7, lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8, lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9, decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{max-width:100%;display:block}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{text-align:inherit;direction:rtl}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);pointer-events:none;font-style:italic;position:absolute;left:15px;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{cursor:pointer;float:left;background:0 0;border:none;width:28px;height:24px;margin-left:1px;margin-right:1px;padding:3px 5px;display:inline-block}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover{background-color:#f3f4f6}.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#2563eb;background-color:#dbeafe}.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#2563eb}.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#2563eb}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#4b5563}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#4b5563}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#4b5563}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{vertical-align:middle;display:inline-block}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#4b5563;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}.ql-snow .ql-stroke-miter{fill:none;stroke:#4b5563;stroke-miterlimit:10;stroke-width:2px}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#4b5563}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1px}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-top:5px;margin-bottom:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-top:5px;margin-bottom:5px;padding:5px 10px}.ql-snow .ql-editor code{padding:2px 4px;font-size:85%}.ql-snow .ql-editor pre.ql-syntax{color:#f8f8f2;background-color:#23241f;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#4b5563;float:left;vertical-align:middle;height:24px;margin-left:1px;margin-right:1px;font-size:14px;font-weight:500;display:inline-block;position:relative}.ql-snow .ql-picker-label{cursor:pointer;width:100%;height:100%;padding-left:8px;padding-right:2px;display:flex;position:relative}.ql-snow .ql-picker-label:before{line-height:22px;display:inline-block}.ql-snow .ql-picker-options{white-space:nowrap;background-color:#fff;min-width:100%;display:none;position:absolute}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;padding:5px 8px;display:block}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#d1d5db;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#d1d5db}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#d1d5db}.ql-snow .ql-picker.ql-expanded .ql-picker-options{z-index:1;margin-top:-1px;display:block;top:100%}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:3px}.ql-snow .ql-icon-picker .ql-picker-item{width:24px;height:24px;margin:2px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{width:152px;padding:3px 5px}.ql-snow .ql-color-picker .ql-picker-item{float:left;border:1px solid #0000;width:16px;height:16px;margin:2px;padding:0}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{width:18px;margin-top:-9px;position:absolute;top:50%;right:0}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{box-sizing:border-box;border:1px solid #d1d5db;padding:8px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid #0000}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid #0000;box-shadow:0 2px 8px #0003}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#d1d5db}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{color:#4b5563;white-space:nowrap;background-color:#fff;border:1px solid #d1d5db;padding:5px 12px;box-shadow:0 0 5px #d1d5db}.ql-snow .ql-tooltip:before{content:"Visit URL:";margin-right:8px;line-height:26px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #d1d5db;width:170px;height:26px;margin:0;padding:3px 5px;font-size:13px;display:none}.ql-snow .ql-tooltip a.ql-preview{text-overflow:ellipsis;vertical-align:top;max-width:200px;display:inline-block;overflow-x:hidden}.ql-snow .ql-tooltip a.ql-action:after{content:"Edit";border-right:1px solid #d1d5db;margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{content:"Save";border-right:0;padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#2563eb}.ql-container.ql-snow{border:1px solid #d1d5db}.paas-menu-container[data-v-16bf3410]{flex-direction:column;height:100%;display:flex}.paas-menu-header[data-v-16bf3410]{border-bottom:1px solid #94929234;flex-direction:row;align-items:center;height:51px;padding:0 8px;display:flex}.paas-menu-logo[data-v-16bf3410]{text-align:center;height:51px;margin-right:8px;padding:0 8px}.paas-menu-logo img[data-v-16bf3410]{object-fit:contain;max-width:32px;height:51px}.paas-menu-system-name[data-v-16bf3410]{text-align:center;padding:0 8px}.paas-menu-system-name label[data-v-16bf3410]{color:#1890ff;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.5px;margin:0;font-size:16px;font-weight:600;overflow:hidden}.paas-menu-scroll-wrapper[data-v-16bf3410]{-ms-overflow-style:none;scrollbar-width:none;height:calc(100% - 51px);max-height:calc(100% - 51px);position:relative;overflow:hidden auto}.paas-menu-scroll-wrapper[data-v-16bf3410]::-webkit-scrollbar{display:none}.mention-wrapper[data-v-fefe52b3]{width:100%;max-width:100%;position:relative;overflow:hidden}.mention-input[data-v-fefe52b3]{box-sizing:border-box;background:var(--background-color);color:#000000e0;white-space:pre-wrap;word-break:break-word;resize:none;overflow-wrap:break-word;white-space:pre-wrap;word-wrap:break-word;border:1px solid #d9d9d9;border-radius:4px;outline:none;width:100%;min-height:32px;padding:4px 6px;font-size:14px;line-height:1.6;display:block;overflow:hidden auto}.mention-input[data-v-fefe52b3]::-webkit-scrollbar{width:0;height:0}.mention-input[data-v-fefe52b3]::-webkit-scrollbar-track{background:0 0}.mention-input[data-v-fefe52b3]::-webkit-scrollbar-thumb{background:0 0;border-radius:0}.mention-input[data-v-fefe52b3]::-webkit-scrollbar-thumb:hover{background:0 0}.mention-input[data-v-fefe52b3]:focus{border-color:#40a9ff}.mention-input[data-v-fefe52b3]:empty:before{content:attr(placeholder);color:#bfbfbf}.mention-input[data-v-fefe52b3] .mention-tag{color:#1890ff;white-space:nowrap;height:24px;vertical-align:center;background:#e6f7ff;border-radius:4px;align-items:center;margin:0 2px;padding:0 4px;font-size:12px;line-height:22px;display:inline-flex}.mention-input[data-v-fefe52b3] .mention-tag .tag-content{margin-left:4px}.mention-input[data-v-fefe52b3] .mention-tag .tag-close{color:#fff;cursor:pointer;background:#b4bdb4;border-radius:50%;justify-content:center;align-items:center;width:12px;height:12px;font-size:10px;display:flex}.mention-input[data-v-fefe52b3] .mention-tag .tag-close:hover{background:#ff4d4f}.mention-cascader-overlay[data-v-fefe52b3]{z-index:1050;position:fixed}.striped-table[data-v-04a6b0ef] .ant-table-tbody tr:nth-child(odd){background-color:var(--background-color)!important}.paas-select{min-width:180px}.ql-container[data-v-541aea24]{width:100%;min-height:350px}.menu-title[data-v-e55ff356],.menu-item[data-v-e55ff356]{align-items:center;width:100%;padding:4px 0;display:flex}.clickable[data-v-e55ff356]{cursor:pointer;transition:background-color .2s}.menu-title-wrapper[data-v-e55ff356]{flex:1;overflow:hidden}.menu-title-text[data-v-e55ff356],.ellipsis[data-v-e55ff356]{white-space:nowrap;text-overflow:ellipsis;min-width:0;display:block;overflow:hidden}.more-trigger[data-v-e55ff356]{cursor:pointer;color:#999;padding:0 8px;font-size:14px;display:inline-block}[data-v-a8a7f058] .ant-menu-inline{border-radius:8px;padding:8px 0;box-shadow:0 2px 8px #0000000f;background:#fafafa!important;border-right:none!important;overflow-y:auto!important}[data-v-a8a7f058] .ant-menu{font-size:14px;line-height:1.5;box-shadow:none!important;background:0 0!important;border:none!important}[data-v-a8a7f058] .ant-menu-item{border-radius:6px;font-weight:400;margin:2px 8px!important;padding:8px 12px!important}[data-v-a8a7f058] .ant-menu-submenu-title{border-radius:6px;font-weight:500;margin:2px 8px!important;padding:8px 12px!important}[data-v-a8a7f058] .ant-menu-item-selected{font-weight:500;box-shadow:0 2px 4px #1890ff4d;color:#fff!important;background-color:#1890ff!important}[data-v-a8a7f058] .ant-menu-sub{border-radius:6px;padding:4px 0;box-shadow:0 2px 4px #0000000d;background:#fafafa!important;margin:0 8px!important}[data-v-a8a7f058] .ant-menu-sub .ant-menu-item{font-weight:400;margin:2px 4px!important;padding-left:24px!important}[data-v-a8a7f058] .ant-menu-inline::-webkit-scrollbar{width:6px}[data-v-a8a7f058] .ant-menu-inline::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}[data-v-a8a7f058] .ant-menu-inline::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}[data-v-a8a7f058] .ant-menu-inline::-webkit-scrollbar-thumb:hover{background:#a8a8a8}[data-v-a8a7f058] .ant-btn.dashed{border-color:#d9d9d9;border-radius:6px;margin-top:16px;padding:8px 16px;font-size:14px}[data-v-a8a7f058] .ant-btn.dashed:hover{color:inherit;box-shadow:none;background-color:#0000;border-color:#d9d9d9}[data-v-a8a7f058] .ant-modal{border-radius:12px;overflow:hidden;box-shadow:0 10px 30px #00000026}[data-v-a8a7f058] .ant-modal-header{background:#fafafa;border-bottom:1px solid #f0f0f0;border-radius:12px 12px 0 0;padding:16px 24px}[data-v-a8a7f058] .ant-modal-title{color:#333;font-size:16px;font-weight:500}[data-v-a8a7f058] .ant-modal-body{background:#fff;padding:24px}[data-v-a8a7f058] .ant-modal-footer{background:#fafafa;border-top:1px solid #f0f0f0;border-radius:0 0 12px 12px;padding:16px 24px}[data-v-a8a7f058] .ant-dropdown-menu{border:1px solid #f0f0f0;border-radius:8px;padding:4px 0;box-shadow:0 4px 12px #00000026}[data-v-a8a7f058] .ant-dropdown-menu-item{border-radius:0;margin:0;padding:8px 16px}[data-v-a8a7f058] .ant-dropdown-menu-item:hover{color:inherit;background-color:#0000}.code-editor[data-v-7f94554b]{border:1px solid #ddd;border-radius:4px;width:100%;font-size:14px;overflow:hidden}.code-editor[data-v-7f94554b] .cm-scroller{font-size:13px;overflow:auto}.code-editor[data-v-7f94554b] .cm-editor{height:100%}.entity-selector[data-v-9778246f]{width:100%}.paas-image-viewer-container[data-v-ea1b3984]{box-sizing:border-box;object-fit:cover;width:100%;min-width:0;max-width:100%;height:100%;min-height:0;overflow:hidden}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "paas-component-library",
3
3
  "private": false,
4
- "version": "1.1.5",
4
+ "version": "1.1.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -4,7 +4,7 @@
4
4
  <a-sub-menu v-if="node.children && node.children.length" :key="String(node.value)"
5
5
  @click.stop="toggleOpen(node)">
6
6
  <template #title>
7
- <div class="menu-title clickable" @click.stop="toggleOpen(node)">
7
+ <div class="menu-title clickable" @click.stop="!readonly && toggleOpen(node)">
8
8
  <span class="menu-title-wrapper">
9
9
  <a-dropdown trigger="contextmenu">
10
10
  <template #overlay>
@@ -51,6 +51,7 @@ export default {
51
51
  name: "MenuItemNode",
52
52
  props: {
53
53
  node: { type: Object, required: true },
54
+ readonly: { type: Boolean, default: false },
54
55
  },
55
56
  methods: {
56
57
  stop(e) { e && e.stopPropagation && e.stopPropagation(); },
@@ -2,18 +2,18 @@
2
2
  <div>
3
3
  <a-menu mode="inline" :selectedKeys="selectedKeys" :openKeys="openKeys" :multiple="multiple" :disabled="see"
4
4
  @openChange="handleOpenChange" :style="{ overflowY: 'auto', height: `${height}` }">
5
- <menu-item-node v-for="node in treeData" :key="node.value" :node="node" @select="handleSelectFromNode"
6
- @edit="openEditGroup" @delete="confirmDeleteGroup" @add-child="openAddChildOf" />
5
+ <menu-item-node :readonly="readonly" v-for="node in treeData" :key="node.value" :node="node"
6
+ @select="handleSelectFromNode" @edit="openEditGroup" @delete="confirmDeleteGroup" @add-child="openAddChildOf" />
7
7
  </a-menu>
8
8
 
9
- <div style="text-align: center;">
9
+ <div style="text-align: center;" v-if="!readonly">
10
10
  <a-button type="link" @click.stop="openAddGroup(node)" style="margin: 0 10px 10px 10px;">
11
11
  添加根级
12
12
  </a-button>
13
13
  </div>
14
14
 
15
15
  <a-modal v-model:open="groupModalVisible" :closable="true" :maskClosable="true" :draggable="true"
16
- :title="groupInfo.isChild ? '添加子级' : '添加根级'">
16
+ :title="groupInfo.isChild ? '添加子级' : '添加根级'" v-if="!readonly">
17
17
  <a-form ref="formRef" :model="groupInfo">
18
18
  <a-form-item label="分组名称" :rules="[{ required: true, message: '请输入分组名称' }]">
19
19
  <a-input v-model:value="groupInfo.groupName" />
@@ -49,6 +49,8 @@ export default {
49
49
  modelValue: [String, Array],
50
50
  height: { type: String, default: 'calc(100vh - 300px)' },
51
51
  listToTree: { type: Boolean, default: true },
52
+ url: { type: String, default: '/system/sys-group/list' },
53
+ readonly: { type: Boolean, default: false },
52
54
  },
53
55
  emits: ['update:modelValue', 'change'],
54
56
  data() {
@@ -98,7 +100,7 @@ export default {
98
100
  },
99
101
 
100
102
  getTreeData() {
101
- this.$post('/system/sys-group/list', {
103
+ this.$post(this.url, {
102
104
  page: { current: 1, size: 1000000 },
103
105
  ...this.params,
104
106
  groupType: this.groupType,