gp-designer 1.0.95 → 1.0.97

Sign up to get free protection for your applications and to get access to all the features.
@@ -17423,7 +17423,7 @@ var LU = function(A, e) {
17423
17423
  var r = e.ownerDocument, n = r.documentElement ? Dr(A, getComputedStyle(r.documentElement).backgroundColor) : Xe.TRANSPARENT, a = r.body ? Dr(A, getComputedStyle(r.body).backgroundColor) : Xe.TRANSPARENT, s = typeof t == "string" ? Dr(A, t) : t === null ? Xe.TRANSPARENT : 4294967295;
17424
17424
  return e === r.documentElement ? lt(n) ? lt(a) ? s : a : n : s;
17425
17425
  };
17426
- const NU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;max-width:300px;font-family:微软雅黑}.message-content[data-v-a234b03c]{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-radius:4px;box-shadow:0 2px 8px #00000026;font-size:14px}.close-btn[data-v-a234b03c]{background:none;border:none;color:#4b5563;cursor:pointer;margin-left:10px;line-height:1;padding:0}.fade-enter-active[data-v-a234b03c],.fade-leave-active[data-v-a234b03c]{transition:opacity .3s}.fade-enter-from[data-v-a234b03c],.fade-leave-to[data-v-a234b03c]{opacity:0}[contenteditable=true][data-v-3a877c04]:focus{outline:none}[contenteditable=true][data-v-3a877c04]{outline:none}textarea[data-v-3a877c04]{resize:none;border:none;outline:none;background:transparent}.custom-checkbox[data-v-68b8f276]{width:16px;height:16px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-68b8f276]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-68b8f276]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.checkbox-label[data-v-68b8f276]{line-height:1.2;font-size:14px;color:#4b5563}.border[data-v-30b99148]{border:1px solid #ccc}.custom-checkbox[data-v-30b99148]{width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-30b99148]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-30b99148]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
17426
+ const NU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;max-width:300px;font-family:微软雅黑}.message-content[data-v-a234b03c]{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-radius:4px;box-shadow:0 2px 8px #00000026;font-size:14px}.close-btn[data-v-a234b03c]{background:none;border:none;color:#4b5563;cursor:pointer;margin-left:10px;line-height:1;padding:0}.fade-enter-active[data-v-a234b03c],.fade-leave-active[data-v-a234b03c]{transition:opacity .3s}.fade-enter-from[data-v-a234b03c],.fade-leave-to[data-v-a234b03c]{opacity:0}[contenteditable=true][data-v-3a877c04]:focus{outline:none}[contenteditable=true][data-v-3a877c04]{outline:none}textarea[data-v-3a877c04]{resize:none;border:none;outline:none;background:transparent}.custom-checkbox[data-v-68b8f276]{width:16px;height:16px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-68b8f276]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-68b8f276]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.checkbox-label[data-v-68b8f276]{line-height:1.2;font-size:14px;color:#4b5563}.border[data-v-298a9b70]{border:1px solid #ccc}.custom-checkbox[data-v-298a9b70]{width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-298a9b70]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-298a9b70]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
17427
17427
  * Cropper.js v1.6.2
17428
17428
  * https://fengyuanchen.github.io/cropperjs
17429
17429
  *
@@ -17596,7 +17596,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17596
17596
  setup(A, { expose: e, emit: t }) {
17597
17597
  const r = A, n = t, a = z(r.rules || []), s = z(r.template), u = z();
17598
17598
  let o = Qu("", {}, !1);
17599
- const c = z("");
17599
+ const c = z(""), l = z("#3574e6");
17600
17600
  ne(
17601
17601
  () => r.template,
17602
17602
  (F) => {
@@ -17630,7 +17630,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17630
17630
  },
17631
17631
  { immediate: !0 }
17632
17632
  );
17633
- const l = z(r.mode);
17633
+ const f = z(r.mode);
17634
17634
  ne(
17635
17635
  () => u.value,
17636
17636
  (F) => {
@@ -17638,7 +17638,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17638
17638
  },
17639
17639
  { immediate: !0 }
17640
17640
  );
17641
- const f = z(""), h = z("#3574e6");
17641
+ const h = z("");
17642
17642
  ne(
17643
17643
  () => c.value,
17644
17644
  (F) => {
@@ -17647,7 +17647,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17647
17647
  ), D = getComputedStyle(document.documentElement).getPropertyValue(
17648
17648
  "--gp-designer-theme-color"
17649
17649
  );
17650
- h.value = D || y, n("update:modelValue", F);
17650
+ l.value = D || y, n("update:modelValue", F);
17651
17651
  },
17652
17652
  { immediate: !0 }
17653
17653
  );
@@ -17729,7 +17729,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17729
17729
  }));
17730
17730
  }
17731
17731
  }
17732
- f.value = (/* @__PURE__ */ new Date()).getTime().toString(), eA.success("保存成功"), n("update:element", u.value);
17732
+ h.value = (/* @__PURE__ */ new Date()).getTime().toString(), eA.success("保存成功"), n("update:element", u.value);
17733
17733
  }
17734
17734
  }
17735
17735
  function fA(F) {
@@ -17737,7 +17737,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17737
17737
  y && (y.rule = F.rule, y.type = F.type, y.children && F.children && y.children.forEach((D) => {
17738
17738
  const Y = F.children.find((oA) => oA.xpath === D.xpath);
17739
17739
  Y && (D.rule = Y.rule, D.type = Y.type);
17740
- })), eA.success("操作成功"), f.value = (/* @__PURE__ */ new Date()).getTime().toString(), n("update:element", u.value);
17740
+ })), eA.success("操作成功"), h.value = (/* @__PURE__ */ new Date()).getTime().toString(), n("update:element", u.value);
17741
17741
  }
17742
17742
  function EA(F) {
17743
17743
  c.value = F;
@@ -17779,7 +17779,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17779
17779
  ), oA = getComputedStyle(document.documentElement).getPropertyValue(
17780
17780
  "--gp-designer-theme-color"
17781
17781
  );
17782
- return h.value = oA || Y, D;
17782
+ return l.value = oA || Y, D;
17783
17783
  }
17784
17784
  function iA(F, y = "") {
17785
17785
  var bA, SA;
@@ -17902,18 +17902,18 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17902
17902
  const y = F.file, D = R(u.value, F.element.xpath);
17903
17903
  if (r.uploadByFile)
17904
17904
  r.uploadByFile(y).then((Y) => {
17905
- Y.success && (D.attrs.src = Y.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17905
+ Y.success && (D.attrs.src = Y.file.url, h.value = (/* @__PURE__ */ new Date()).getTime().toString());
17906
17906
  });
17907
17907
  else {
17908
17908
  D.attrs.alt = y.name;
17909
17909
  const Y = URL.createObjectURL(y);
17910
- D.attrs.src = Y, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17910
+ D.attrs.src = Y, h.value = (/* @__PURE__ */ new Date()).getTime().toString();
17911
17911
  }
17912
17912
  }
17913
17913
  function zA(F) {
17914
17914
  const { icon: y } = F, D = R(u.value, F.element.xpath);
17915
17915
  let Y = D.attrs.class.replace(/icon-\S+/g, `icon-${y}`);
17916
- D.attrs.class = Y, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17916
+ D.attrs.class = Y, h.value = (/* @__PURE__ */ new Date()).getTime().toString();
17917
17917
  }
17918
17918
  const te = (F) => F.type.startsWith("image/") ? !0 : (eA.error("只能上传图片文件"), !1), RA = z({});
17919
17919
  function YA(F, y) {
@@ -17936,8 +17936,8 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17936
17936
  D.name,
17937
17937
  y
17938
17938
  )) : r.uploadByFile ? r.uploadByFile(D.file).then((Y) => {
17939
- Y.success && (y.attrs.src = Y.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17940
- }) : (y.attrs.src = D.thumbUrl, f.value = (/* @__PURE__ */ new Date()).getTime().toString()));
17939
+ Y.success && (y.attrs.src = Y.file.url, h.value = (/* @__PURE__ */ new Date()).getTime().toString());
17940
+ }) : (y.attrs.src = D.thumbUrl, h.value = (/* @__PURE__ */ new Date()).getTime().toString()));
17941
17941
  }
17942
17942
  const XA = z(r.previewWidth), I = z(360);
17943
17943
  let _ = z(!1), sA = z(""), AA = 0, wA = 0;
@@ -17967,7 +17967,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17967
17967
  );
17968
17968
  return;
17969
17969
  }
17970
- f.value = (/* @__PURE__ */ new Date()).getTime().toString(), w.value && w.value.type === X.Text && (w.value.text = de.value, w.value.editText = de.value), St.value = !1;
17970
+ h.value = (/* @__PURE__ */ new Date()).getTime().toString(), w.value && w.value.type === X.Text && (w.value.text = de.value, w.value.editText = de.value), St.value = !1;
17971
17971
  }
17972
17972
  }
17973
17973
  return e({
@@ -17997,7 +17997,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17997
17997
  class: "gp-designer-preview",
17998
17998
  ref_key: "previewRef",
17999
17999
  ref: Q,
18000
- "theme-color": h.value
18000
+ "theme-color": l.value
18001
18001
  }, null, 8, ["css-files", "js-files", "html-content", "theme-color"])) : (M(), Ve(Ko, {
18002
18002
  key: 1,
18003
18003
  "css-files": F.css,
@@ -18006,7 +18006,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18006
18006
  class: "gp-designer-preview",
18007
18007
  ref_key: "previewRef",
18008
18008
  ref: Q,
18009
- "theme-color": h.value
18009
+ "theme-color": l.value
18010
18010
  }, null, 8, ["css-files", "js-files", "html-content", "theme-color"]))
18011
18011
  ])
18012
18012
  ], 4)) : q("", !0),
@@ -18039,7 +18039,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18039
18039
  upload: T.value,
18040
18040
  mode: F.mode,
18041
18041
  icons: F.icons,
18042
- r: f.value,
18042
+ r: h.value,
18043
18043
  "show-margin": K.value,
18044
18044
  element: u.value,
18045
18045
  selectedElement: w.value,
@@ -18054,12 +18054,12 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18054
18054
  }, null, 8, ["upload-by-file", "cropper", "icon", "upload", "mode", "icons", "r", "show-margin", "element", "selectedElement", "hoveredElement"])) : q("", !0)
18055
18055
  ])
18056
18056
  ]),
18057
- l.value == "design" ? (M(), V("div", {
18057
+ f.value == "design" ? (M(), V("div", {
18058
18058
  key: 2,
18059
18059
  class: "resizer",
18060
18060
  onMousedown: y[3] || (y[3] = (D) => Je("structure"))
18061
18061
  }, null, 32)) : q("", !0),
18062
- l.value == "design" ? (M(), V("div", {
18062
+ f.value == "design" ? (M(), V("div", {
18063
18063
  key: 3,
18064
18064
  class: "resize-area",
18065
18065
  style: gs({ width: I.value + "px" })
@@ -18135,7 +18135,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18135
18135
  }, 8, ["visible"])
18136
18136
  ]));
18137
18137
  }
18138
- }), nQ = /* @__PURE__ */ gt(rQ, [["__scopeId", "data-v-af92f944"]]), lQ = {
18138
+ }), nQ = /* @__PURE__ */ gt(rQ, [["__scopeId", "data-v-952e15a9"]]), lQ = {
18139
18139
  install(A) {
18140
18140
  A.component("Designer", nQ);
18141
18141
  }
@@ -36,7 +36,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
36
36
  content: "" !important;
37
37
  display: none !important;
38
38
  }`,hT=function(A){BT(A,"."+gs+dT+Gl+`
39
- .`+ps+fT+Gl)},BT=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Yl=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),gT=function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(ms(e)||CT(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return JA(this,void 0,void 0,function(){var t,r,n,a,i=this;return YA(this,function(o){switch(o.label){case 0:return t=Yl.isSameOrigin(e),r=!Es(e)&&this._options.useCORS===!0&&kA.SUPPORT_CORS_IMAGES&&!t,n=!Es(e)&&!t&&!ms(e)&&typeof this._options.proxy=="string"&&kA.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Es(e)&&!ms(e)&&!n&&!r?[2]:(a=e,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(u,l){var d=new Image;d.onload=function(){return u(d)},d.onerror=l,(wT(a)||r)&&(d.crossOrigin="anonymous"),d.src=a,d.complete===!0&&setTimeout(function(){return u(d)},500),i._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(a,i){var o=kA.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(o==="text")a(u.response);else{var f=new FileReader;f.addEventListener("load",function(){return a(f.result)},!1),f.addEventListener("error",function(h){return i(h)},!1),f.readAsDataURL(u.response)}else i("Failed to proxy resource "+n+" with status code "+u.status)},u.onerror=i;var l=r.indexOf("?")>-1?"&":"?";if(u.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=o),t._options.imageTimeout){var d=t._options.imageTimeout;u.timeout=d,u.ontimeout=function(){return i("Timed out ("+d+"ms) proxying "+n)}}u.send()})},A}(),pT=/^data:image\/svg\+xml/i,ET=/^data:image\/.*;base64,/i,mT=/^data:image\/.*/i,CT=function(A){return kA.SUPPORT_SVG_DRAWING||!bT(A)},Es=function(A){return mT.test(A)},wT=function(A){return ET.test(A)},ms=function(A){return A.substr(0,4)==="blob"},bT=function(A){return A.substr(-3).toLowerCase()==="svg"||pT.test(A)},M=function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Pt=function(A,e,t){return new M(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},oa=function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=Pt(this.start,this.startControl,e),n=Pt(this.startControl,this.endControl,e),a=Pt(this.endControl,this.end,e),i=Pt(r,n,e),o=Pt(n,a,e),u=Pt(i,o,e);return t?new A(this.start,r,i,u):new A(u,o,a,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),le=function(A){return A.type===1},TT=function(){function A(e){var t=e.styles,r=e.bounds,n=Sr(t.borderTopLeftRadius,r.width,r.height),a=n[0],i=n[1],o=Sr(t.borderTopRightRadius,r.width,r.height),u=o[0],l=o[1],d=Sr(t.borderBottomRightRadius,r.width,r.height),f=d[0],h=d[1],C=Sr(t.borderBottomLeftRadius,r.width,r.height),m=C[0],T=C[1],Q=[];Q.push((a+u)/r.width),Q.push((m+f)/r.width),Q.push((i+T)/r.height),Q.push((l+h)/r.height);var b=Math.max.apply(Math,Q);b>1&&(a/=b,i/=b,u/=b,l/=b,f/=b,h/=b,m/=b,T/=b);var v=r.width-u,H=r.height-h,K=r.width-f,L=r.height-T,E=t.borderTopWidth,O=t.borderRightWidth,R=t.borderBottomWidth,k=t.borderLeftWidth,eA=fA(t.paddingTop,e.bounds.width),cA=fA(t.paddingRight,e.bounds.width),hA=fA(t.paddingBottom,e.bounds.width),q=fA(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?mA(r.left+k/3,r.top+E/3,a-k/3,i-E/3,sA.TOP_LEFT):new M(r.left+k/3,r.top+E/3),this.topRightBorderDoubleOuterBox=a>0||i>0?mA(r.left+v,r.top+E/3,u-O/3,l-E/3,sA.TOP_RIGHT):new M(r.left+r.width-O/3,r.top+E/3),this.bottomRightBorderDoubleOuterBox=f>0||h>0?mA(r.left+K,r.top+H,f-O/3,h-R/3,sA.BOTTOM_RIGHT):new M(r.left+r.width-O/3,r.top+r.height-R/3),this.bottomLeftBorderDoubleOuterBox=m>0||T>0?mA(r.left+k/3,r.top+L,m-k/3,T-R/3,sA.BOTTOM_LEFT):new M(r.left+k/3,r.top+r.height-R/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?mA(r.left+k*2/3,r.top+E*2/3,a-k*2/3,i-E*2/3,sA.TOP_LEFT):new M(r.left+k*2/3,r.top+E*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?mA(r.left+v,r.top+E*2/3,u-O*2/3,l-E*2/3,sA.TOP_RIGHT):new M(r.left+r.width-O*2/3,r.top+E*2/3),this.bottomRightBorderDoubleInnerBox=f>0||h>0?mA(r.left+K,r.top+H,f-O*2/3,h-R*2/3,sA.BOTTOM_RIGHT):new M(r.left+r.width-O*2/3,r.top+r.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||T>0?mA(r.left+k*2/3,r.top+L,m-k*2/3,T-R*2/3,sA.BOTTOM_LEFT):new M(r.left+k*2/3,r.top+r.height-R*2/3),this.topLeftBorderStroke=a>0||i>0?mA(r.left+k/2,r.top+E/2,a-k/2,i-E/2,sA.TOP_LEFT):new M(r.left+k/2,r.top+E/2),this.topRightBorderStroke=a>0||i>0?mA(r.left+v,r.top+E/2,u-O/2,l-E/2,sA.TOP_RIGHT):new M(r.left+r.width-O/2,r.top+E/2),this.bottomRightBorderStroke=f>0||h>0?mA(r.left+K,r.top+H,f-O/2,h-R/2,sA.BOTTOM_RIGHT):new M(r.left+r.width-O/2,r.top+r.height-R/2),this.bottomLeftBorderStroke=m>0||T>0?mA(r.left+k/2,r.top+L,m-k/2,T-R/2,sA.BOTTOM_LEFT):new M(r.left+k/2,r.top+r.height-R/2),this.topLeftBorderBox=a>0||i>0?mA(r.left,r.top,a,i,sA.TOP_LEFT):new M(r.left,r.top),this.topRightBorderBox=u>0||l>0?mA(r.left+v,r.top,u,l,sA.TOP_RIGHT):new M(r.left+r.width,r.top),this.bottomRightBorderBox=f>0||h>0?mA(r.left+K,r.top+H,f,h,sA.BOTTOM_RIGHT):new M(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=m>0||T>0?mA(r.left,r.top+L,m,T,sA.BOTTOM_LEFT):new M(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||i>0?mA(r.left+k,r.top+E,Math.max(0,a-k),Math.max(0,i-E),sA.TOP_LEFT):new M(r.left+k,r.top+E),this.topRightPaddingBox=u>0||l>0?mA(r.left+Math.min(v,r.width-O),r.top+E,v>r.width+O?0:Math.max(0,u-O),Math.max(0,l-E),sA.TOP_RIGHT):new M(r.left+r.width-O,r.top+E),this.bottomRightPaddingBox=f>0||h>0?mA(r.left+Math.min(K,r.width-k),r.top+Math.min(H,r.height-R),Math.max(0,f-O),Math.max(0,h-R),sA.BOTTOM_RIGHT):new M(r.left+r.width-O,r.top+r.height-R),this.bottomLeftPaddingBox=m>0||T>0?mA(r.left+k,r.top+Math.min(L,r.height-R),Math.max(0,m-k),Math.max(0,T-R),sA.BOTTOM_LEFT):new M(r.left+k,r.top+r.height-R),this.topLeftContentBox=a>0||i>0?mA(r.left+k+q,r.top+E+eA,Math.max(0,a-(k+q)),Math.max(0,i-(E+eA)),sA.TOP_LEFT):new M(r.left+k+q,r.top+E+eA),this.topRightContentBox=u>0||l>0?mA(r.left+Math.min(v,r.width+k+q),r.top+E+eA,v>r.width+k+q?0:u-k+q,l-(E+eA),sA.TOP_RIGHT):new M(r.left+r.width-(O+cA),r.top+E+eA),this.bottomRightContentBox=f>0||h>0?mA(r.left+Math.min(K,r.width-(k+q)),r.top+Math.min(H,r.height+E+eA),Math.max(0,f-(O+cA)),h-(R+hA),sA.BOTTOM_RIGHT):new M(r.left+r.width-(O+cA),r.top+r.height-(R+hA)),this.bottomLeftContentBox=m>0||T>0?mA(r.left+k+q,r.top+L,Math.max(0,m-(k+q)),T-(R+hA),sA.BOTTOM_LEFT):new M(r.left+k+q,r.top+r.height-(R+hA))}return A}(),sA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(sA||(sA={}));var mA=function(A,e,t,r,n){var a=4*((Math.sqrt(2)-1)/3),i=t*a,o=r*a,u=A+t,l=e+r;switch(n){case sA.TOP_LEFT:return new oa(new M(A,l),new M(A,l-o),new M(u-i,e),new M(u,e));case sA.TOP_RIGHT:return new oa(new M(A,e),new M(A+i,e),new M(u,l-o),new M(u,l));case sA.BOTTOM_RIGHT:return new oa(new M(u,e),new M(u,e+o),new M(A+i,l),new M(A,l));case sA.BOTTOM_LEFT:default:return new oa(new M(u,l),new M(u-i,l),new M(A,e+o),new M(A,e))}},ua=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},UT=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},ca=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},QT=function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A}(),la=function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A}(),FT=function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A}(),IT=function(A){return A.type===0},Xl=function(A){return A.type===1},yT=function(A){return A.type===2},Wl=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},xT=function(A,e,t,r,n){return A.map(function(a,i){switch(i){case 0:return a.add(e,t);case 1:return a.add(e+r,t);case 2:return a.add(e+r,t+n);case 3:return a.add(e,t+n)}return a})},Jl=function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),ql=function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new TT(this.container),this.container.styles.opacity<1&&this.effects.push(new FT(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new QT(r,n,a))}if(this.container.styles.overflowX!==0){var i=ua(this.curves),o=ca(this.curves);Wl(i,o)?this.effects.push(new la(i,6)):(this.effects.push(new la(i,2)),this.effects.push(new la(o,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var a=r.effects.filter(function(u){return!Xl(u)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,a),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var i=ua(r.curves),o=ca(r.curves);Wl(i,o)||n.unshift(new la(o,6))}}else n.unshift.apply(n,a);r=r.parent}return n.filter(function(u){return vA(u.target,e)})},A}(),Cs=function(A,e,t,r){A.container.elements.forEach(function(n){var a=vA(n.flags,4),i=vA(n.flags,2),o=new ql(n,A);vA(n.styles.display,2048)&&r.push(o);var u=vA(n.flags,8)?[]:r;if(a||i){var l=a||n.styles.isPositioned()?t:e,d=new Jl(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var f=n.styles.zIndex.order;if(f<0){var h=0;l.negativeZIndex.some(function(m,T){return f>m.element.container.styles.zIndex.order?(h=T,!1):h>0}),l.negativeZIndex.splice(h,0,d)}else if(f>0){var C=0;l.positiveZIndex.some(function(m,T){return f>=m.element.container.styles.zIndex.order?(C=T+1,!1):C>0}),l.positiveZIndex.splice(C,0,d)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else n.styles.isFloating()?l.nonPositionedFloats.push(d):l.nonPositionedInlineLevel.push(d);Cs(o,d,a?d:t,u)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Cs(o,e,t,u);vA(n.flags,8)&&jl(n,u)})},jl=function(A,e){for(var t=A instanceof us?A.start:1,r=A instanceof us?A.reversed:!1,n=0;n<e.length;n++){var a=e[n];a.container instanceof wl&&typeof a.container.value=="number"&&a.container.value!==0&&(t=a.container.value),a.listValue=Mr(t,a.container.styles.listStyleType,!0),t+=r?-1:1}},vT=function(A){var e=new ql(A,null),t=new Jl(e),r=[];return Cs(e,t,t,r),jl(e.container,r),t},zl=function(A,e){switch(e){case 0:return de(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return de(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return de(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return de(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},_T=function(A,e){switch(e){case 0:return de(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return de(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return de(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return de(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},NT=function(A,e){switch(e){case 0:return de(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return de(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return de(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return de(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},ST=function(A,e){switch(e){case 0:return da(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return da(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return da(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return da(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},da=function(A,e){var t=[];return le(A)?t.push(A.subdivide(.5,!1)):t.push(A),le(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},de=function(A,e,t,r){var n=[];return le(A)?n.push(A.subdivide(.5,!1)):n.push(A),le(t)?n.push(t.subdivide(.5,!0)):n.push(t),le(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),le(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},$l=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},fa=function(A){var e=A.styles,t=A.bounds,r=fA(e.paddingLeft,t.width),n=fA(e.paddingRight,t.width),a=fA(e.paddingTop,t.width),i=fA(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+a+i))},LT=function(A,e){return A===0?e.bounds:A===2?fa(e):$l(e)},HT=function(A,e){return A===0?e.bounds:A===2?fa(e):$l(e)},ws=function(A,e,t){var r=LT(Vt(A.styles.backgroundOrigin,e),A),n=HT(Vt(A.styles.backgroundClip,e),A),a=DT(Vt(A.styles.backgroundSize,e),t,r),i=a[0],o=a[1],u=Sr(Vt(A.styles.backgroundPosition,e),r.width-i,r.height-o),l=OT(Vt(A.styles.backgroundRepeat,e),u,a,r,n),d=Math.round(r.left+u[0]),f=Math.round(r.top+u[1]);return[l,d,f,i,o]},Kt=function(A){return uA(A)&&A.value===Ot.AUTO},ha=function(A){return typeof A=="number"},DT=function(A,e,t){var r=e[0],n=e[1],a=e[2],i=A[0],o=A[1];if(!i)return[0,0];if(IA(i)&&o&&IA(o))return[fA(i,t.width),fA(o,t.height)];var u=ha(a);if(uA(i)&&(i.value===Ot.CONTAIN||i.value===Ot.COVER)){if(ha(a)){var l=t.width/t.height;return l<a!=(i.value===Ot.COVER)?[t.width,t.width/a]:[t.height*a,t.height]}return[t.width,t.height]}var d=ha(r),f=ha(n),h=d||f;if(Kt(i)&&(!o||Kt(o))){if(d&&f)return[r,n];if(!u&&!h)return[t.width,t.height];if(h&&u){var C=d?r:n*a,m=f?n:r/a;return[C,m]}var T=d?r:t.width,Q=f?n:t.height;return[T,Q]}if(u){var b=0,v=0;return IA(i)?b=fA(i,t.width):IA(o)&&(v=fA(o,t.height)),Kt(i)?b=v*a:(!o||Kt(o))&&(v=b/a),[b,v]}var H=null,K=null;if(IA(i)?H=fA(i,t.width):o&&IA(o)&&(K=fA(o,t.height)),H!==null&&(!o||Kt(o))&&(K=d&&f?H/r*n:t.height),K!==null&&Kt(i)&&(H=d&&f?K/n*r:t.width),H!==null&&K!==null)return[H,K];throw new Error("Unable to calculate background-size for element")},Vt=function(A,e){var t=A[e];return typeof t>"u"?A[0]:t},OT=function(A,e,t,r,n){var a=e[0],i=e[1],o=t[0],u=t[1];switch(A){case 2:return[new M(Math.round(r.left),Math.round(r.top+i)),new M(Math.round(r.left+r.width),Math.round(r.top+i)),new M(Math.round(r.left+r.width),Math.round(u+r.top+i)),new M(Math.round(r.left),Math.round(u+r.top+i))];case 3:return[new M(Math.round(r.left+a),Math.round(r.top)),new M(Math.round(r.left+a+o),Math.round(r.top)),new M(Math.round(r.left+a+o),Math.round(r.height+r.top)),new M(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new M(Math.round(r.left+a),Math.round(r.top+i)),new M(Math.round(r.left+a+o),Math.round(r.top+i)),new M(Math.round(r.left+a+o),Math.round(r.top+i+u)),new M(Math.round(r.left+a),Math.round(r.top+i+u))];default:return[new M(Math.round(n.left),Math.round(n.top)),new M(Math.round(n.left+n.width),Math.round(n.top)),new M(Math.round(n.left+n.width),Math.round(n.height+n.top)),new M(Math.round(n.left),Math.round(n.height+n.top))]}},RT="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Zl="Hidden Text",MT=function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),i=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",i.appendChild(r),n.src=RT,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(Zl)),r.appendChild(a),r.appendChild(n);var o=n.offsetTop-a.offsetTop+2;r.removeChild(a),r.appendChild(this._document.createTextNode(Zl)),r.style.lineHeight="normal",n.style.verticalAlign="super";var u=n.offsetTop-r.offsetTop+2;return i.removeChild(r),{baseline:o,middle:u}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A}(),A0=function(){function A(e,t){this.context=e,this.options=t}return A}(),kT=1e4,PT=function(A){Ee(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new MT(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),yT(t)&&(this.ctx.globalAlpha=t.opacity),IT(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Xl(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return JA(this,void 0,void 0,function(){var r;return YA(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return JA(this,void 0,void 0,function(){return YA(this,function(r){switch(r.label){case 0:if(vA(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var a=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var i=os(t.text);i.reduce(function(o,u){return a.ctx.fillText(u,o,t.bounds.top+n),o+a.ctx.measureText(u).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),n=XT(t.fontFamily).join(", "),a=Nr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,a,n].join(" "),n,a]},e.prototype.renderTextNode=function(t,r){return JA(this,void 0,void 0,function(){var n,a,i,o,u,l,d,f,h=this;return YA(this,function(C){return n=this.createFontStyle(r),a=n[0],i=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",u=this.fontMetrics.getMetrics(i,o),l=u.baseline,d=u.middle,f=r.paintOrder,t.textBounds.forEach(function(m){f.forEach(function(T){switch(T){case 0:h.ctx.fillStyle=DA(r.color),h.renderTextWithLetterSpacing(m,r.letterSpacing,l);var Q=r.textShadow;Q.length&&m.text.trim().length&&(Q.slice(0).reverse().forEach(function(b){h.ctx.shadowColor=DA(b.color),h.ctx.shadowOffsetX=b.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=b.offsetY.number*h.options.scale,h.ctx.shadowBlur=b.blur.number,h.renderTextWithLetterSpacing(m,r.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),r.textDecorationLine.length&&(h.ctx.fillStyle=DA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(b){switch(b){case 1:h.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+l),m.bounds.width,1);break;case 2:h.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:h.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+d),m.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&m.text.trim().length&&(h.ctx.strokeStyle=DA(r.webkitTextStrokeColor),h.ctx.lineWidth=r.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var a=fa(t),i=ca(r);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return JA(this,void 0,void 0,function(){var r,n,a,i,o,u,v,v,l,d,f,h,K,C,m,L,T,Q,b,v,H,K,L;return YA(this,function(E){switch(E.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,a=r.styles,i=0,o=r.textNodes,E.label=1;case 1:return i<o.length?(u=o[i],[4,this.renderTextNode(u,a)]):[3,4];case 2:E.sent(),E.label=3;case 3:return i++,[3,1];case 4:if(!(r instanceof El))return[3,8];E.label=5;case 5:return E.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=E.sent(),this.renderReplacedElement(r,n,v),[3,8];case 7:return E.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof ml&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Cl))return[3,12];E.label=9;case 9:return E.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=E.sent(),this.renderReplacedElement(r,n,v),[3,12];case 11:return E.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Ql&&r.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,l.render(r.tree)]):[3,14];case 13:d=E.sent(),r.width&&r.height&&this.ctx.drawImage(d,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),E.label=14;case 14:if(r instanceof cs&&(f=Math.min(r.bounds.width,r.bounds.height),r.type===ta?r.checked&&(this.ctx.save(),this.path([new M(r.bounds.left+f*.39363,r.bounds.top+f*.79),new M(r.bounds.left+f*.16,r.bounds.top+f*.5549),new M(r.bounds.left+f*.27347,r.bounds.top+f*.44071),new M(r.bounds.left+f*.39694,r.bounds.top+f*.5649),new M(r.bounds.left+f*.72983,r.bounds.top+f*.23),new M(r.bounds.left+f*.84,r.bounds.top+f*.34085),new M(r.bounds.left+f*.39363,r.bounds.top+f*.79)]),this.ctx.fillStyle=DA(bl),this.ctx.fill(),this.ctx.restore()):r.type===ra&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+f/2,r.bounds.top+f/2,f/4,0,Math.PI*2,!0),this.ctx.fillStyle=DA(bl),this.ctx.fill(),this.ctx.restore())),KT(r)&&r.value.length){switch(h=this.createFontStyle(a),K=h[0],C=h[1],m=this.fontMetrics.getMetrics(K,C).baseline,this.ctx.font=K,this.ctx.fillStyle=DA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=GT(r.styles.textAlign),L=fa(r),T=0,r.styles.textAlign){case 1:T+=L.width/2;break;case 2:T+=L.width;break}Q=L.add(T,0,0,-L.height/2+1),this.ctx.save(),this.path([new M(L.left,L.top),new M(L.left+L.width,L.top),new M(L.left+L.width,L.top+L.height),new M(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Or(r.value,Q),a.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!vA(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(b=r.styles.listStyleImage,b.type!==0)return[3,18];v=void 0,H=b.url,E.label=15;case 15:return E.trys.push([15,17,,18]),[4,this.context.cache.match(H)];case 16:return v=E.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return E.sent(),this.context.logger.error("Error loading list-style-image "+H),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(K=this.createFontStyle(a)[0],this.ctx.font=K,this.ctx.fillStyle=DA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new _e(r.bounds.left,r.bounds.top+fA(r.styles.paddingTop,r.bounds.width),r.bounds.width,Zc(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Or(t.listValue,L),a.letterSpacing,Zc(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),E.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return JA(this,void 0,void 0,function(){var r,n,b,a,i,b,o,u,b,l,d,b,f,h,b,C,m,b,T,Q,b;return YA(this,function(v){switch(v.label){case 0:if(vA(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:v.sent(),r=0,n=t.negativeZIndex,v.label=2;case 2:return r<n.length?(b=n[r],[4,this.renderStack(b)]):[3,5];case 3:v.sent(),v.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:v.sent(),a=0,i=t.nonInlineLevel,v.label=7;case 7:return a<i.length?(b=i[a],[4,this.renderNode(b)]):[3,10];case 8:v.sent(),v.label=9;case 9:return a++,[3,7];case 10:o=0,u=t.nonPositionedFloats,v.label=11;case 11:return o<u.length?(b=u[o],[4,this.renderStack(b)]):[3,14];case 12:v.sent(),v.label=13;case 13:return o++,[3,11];case 14:l=0,d=t.nonPositionedInlineLevel,v.label=15;case 15:return l<d.length?(b=d[l],[4,this.renderStack(b)]):[3,18];case 16:v.sent(),v.label=17;case 17:return l++,[3,15];case 18:f=0,h=t.inlineLevel,v.label=19;case 19:return f<h.length?(b=h[f],[4,this.renderNode(b)]):[3,22];case 20:v.sent(),v.label=21;case 21:return f++,[3,19];case 22:C=0,m=t.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return C<m.length?(b=m[C],[4,this.renderStack(b)]):[3,26];case 24:v.sent(),v.label=25;case 25:return C++,[3,23];case 26:T=0,Q=t.positiveZIndex,v.label=27;case 27:return T<Q.length?(b=Q[T],[4,this.renderStack(b)]):[3,30];case 28:v.sent(),v.label=29;case 29:return T++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(n,a){var i=le(n)?n.start:n;a===0?r.ctx.moveTo(i.x,i.y):r.ctx.lineTo(i.x,i.y),le(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,r,n,a){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},e.prototype.resizeImage=function(t,r,n){var a;if(t.width===r&&t.height===n)return t;var i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=i.createElement("canvas");o.width=Math.max(1,r),o.height=Math.max(1,n);var u=o.getContext("2d");return u.drawImage(t,0,0,t.width,t.height,0,0,r,n),o},e.prototype.renderBackgroundImage=function(t){return JA(this,void 0,void 0,function(){var r,n,a,i,o,u;return YA(this,function(l){switch(l.label){case 0:r=t.styles.backgroundImage.length-1,n=function(d){var f,h,C,eA,dA,TA,q,nA,R,m,eA,dA,TA,q,nA,T,Q,b,v,H,K,L,E,O,R,k,eA,cA,hA,q,nA,lA,dA,TA,qA,_A,WA,jA,OA,PA,KA,y;return YA(this,function(_){switch(_.label){case 0:if(d.type!==0)return[3,5];f=void 0,h=d.url,_.label=1;case 1:return _.trys.push([1,3,,4]),[4,a.context.cache.match(h)];case 2:return f=_.sent(),[3,4];case 3:return _.sent(),a.context.logger.error("Error loading background-image "+h),[3,4];case 4:return f&&(C=ws(t,r,[f.width,f.height,f.width/f.height]),eA=C[0],dA=C[1],TA=C[2],q=C[3],nA=C[4],R=a.ctx.createPattern(a.resizeImage(f,q,nA),"repeat"),a.renderRepeat(eA,R,dA,TA)),[3,6];case 5:IC(d)?(m=ws(t,r,[null,null,null]),eA=m[0],dA=m[1],TA=m[2],q=m[3],nA=m[4],T=bC(d.angle,q,nA),Q=T[0],b=T[1],v=T[2],H=T[3],K=T[4],L=document.createElement("canvas"),L.width=q,L.height=nA,E=L.getContext("2d"),O=E.createLinearGradient(b,H,v,K),Kc(d.stops,Q).forEach(function(tA){return O.addColorStop(tA.stop,DA(tA.color))}),E.fillStyle=O,E.fillRect(0,0,q,nA),q>0&&nA>0&&(R=a.ctx.createPattern(L,"repeat"),a.renderRepeat(eA,R,dA,TA))):yC(d)&&(k=ws(t,r,[null,null,null]),eA=k[0],cA=k[1],hA=k[2],q=k[3],nA=k[4],lA=d.position.length===0?[Wi]:d.position,dA=fA(lA[0],q),TA=fA(lA[lA.length-1],nA),qA=TC(d,dA,TA,q,nA),_A=qA[0],WA=qA[1],_A>0&&WA>0&&(jA=a.ctx.createRadialGradient(cA+dA,hA+TA,0,cA+dA,hA+TA,_A),Kc(d.stops,_A*2).forEach(function(tA){return jA.addColorStop(tA.stop,DA(tA.color))}),a.path(eA),a.ctx.fillStyle=jA,_A!==WA?(OA=t.bounds.left+.5*t.bounds.width,PA=t.bounds.top+.5*t.bounds.height,KA=WA/_A,y=1/KA,a.ctx.save(),a.ctx.translate(OA,PA),a.ctx.transform(1,0,0,KA,0,0),a.ctx.translate(-OA,-PA),a.ctx.fillRect(cA,y*(hA-PA)+PA,q,nA*y),a.ctx.restore()):a.ctx.fill())),_.label=6;case 6:return r--,[2]}})},a=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i<o.length?(u=o[i],[5,n(u)]):[3,4];case 2:l.sent(),l.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,n){return JA(this,void 0,void 0,function(){return YA(this,function(a){return this.path(zl(n,r)),this.ctx.fillStyle=DA(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,n,a){return JA(this,void 0,void 0,function(){var i,o;return YA(this,function(u){switch(u.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,a)]:[3,2];case 1:return u.sent(),[2];case 2:return i=_T(a,n),this.path(i),this.ctx.fillStyle=DA(t),this.ctx.fill(),o=NT(a,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return JA(this,void 0,void 0,function(){var r,n,a,i,o,u,l,d,f=this;return YA(this,function(h){switch(h.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!ze(r.backgroundColor)||r.backgroundImage.length,a=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],i=VT(Vt(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),ze(r.backgroundColor)||(this.ctx.fillStyle=DA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(C){f.ctx.save();var m=ua(t.curves),T=C.inset?0:kT,Q=xT(m,-T+(C.inset?1:-1)*C.spread.number,(C.inset?1:-1)*C.spread.number,C.spread.number*(C.inset?-2:2),C.spread.number*(C.inset?-2:2));C.inset?(f.path(m),f.ctx.clip(),f.mask(Q)):(f.mask(m),f.ctx.clip(),f.path(Q)),f.ctx.shadowOffsetX=C.offsetX.number+T,f.ctx.shadowOffsetY=C.offsetY.number,f.ctx.shadowColor=DA(C.color),f.ctx.shadowBlur=C.blur.number,f.ctx.fillStyle=C.inset?DA(C.color):"rgba(0,0,0,1)",f.ctx.fill(),f.ctx.restore()}),h.label=2;case 2:o=0,u=0,l=a,h.label=3;case 3:return u<l.length?(d=l[u],d.style!==0&&!ze(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,o,t.curves,3)];case 6:return h.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,o,t.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,o,t.curves)];case 10:h.sent(),h.label=11;case 11:o++,h.label=12;case 12:return u++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,a,i){return JA(this,void 0,void 0,function(){var o,u,l,d,f,h,C,m,T,Q,b,v,H,K,L,E,L,E;return YA(this,function(O){return this.ctx.save(),o=ST(a,n),u=zl(a,n),i===2&&(this.path(u),this.ctx.clip()),le(u[0])?(l=u[0].start.x,d=u[0].start.y):(l=u[0].x,d=u[0].y),le(u[1])?(f=u[1].end.x,h=u[1].end.y):(f=u[1].x,h=u[1].y),n===0||n===2?C=Math.abs(l-f):C=Math.abs(d-h),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(u.slice(0,2)),m=r<3?r*3:r*2,T=r<3?r*2:r,i===3&&(m=r,T=r),Q=!0,C<=m*2?Q=!1:C<=m*2+T?(b=C/(2*m+T),m*=b,T*=b):(v=Math.floor((C+T)/(m+T)),H=(C-v*m)/(v-1),K=(C-(v+1)*m)/v,T=K<=0||Math.abs(T-H)<Math.abs(T-K)?H:K),Q&&(i===3?this.ctx.setLineDash([0,m+T]):this.ctx.setLineDash([m,T])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=DA(t),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(le(u[0])&&(L=u[3],E=u[0],this.ctx.beginPath(),this.formatPath([new M(L.end.x,L.end.y),new M(E.start.x,E.start.y)]),this.ctx.stroke()),le(u[1])&&(L=u[1],E=u[2],this.ctx.beginPath(),this.formatPath([new M(L.end.x,L.end.y),new M(E.start.x,E.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return JA(this,void 0,void 0,function(){var r;return YA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=DA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=vT(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(A0),KT=function(A){return A instanceof Ul||A instanceof Tl?!0:A instanceof cs&&A.type!==ra&&A.type!==ta},VT=function(A,e){switch(A){case 0:return ua(e);case 2:return UT(e);case 1:default:return ca(e)}},GT=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},YT=["-apple-system","system-ui"],XT=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return YT.indexOf(e)===-1}):A},WT=function(A){Ee(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return e.prototype.render=function(t){return JA(this,void 0,void 0,function(){var r,n;return YA(this,function(a){switch(a.label){case 0:return r=ss(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,JT(r)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=DA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(A0),JT=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},qT=function(){function A(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,bn([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A}(),jT=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new qT({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new gT(this,e)}return A.instanceCount=1,A}(),zT=function(A,e){return e===void 0&&(e={}),$T(A,e)};typeof window<"u"&&Yl.setContext(window);var $T=function(A,e){return JA(void 0,void 0,void 0,function(){var t,r,n,a,i,o,u,l,d,f,h,C,m,T,Q,b,v,H,K,L,O,E,O,R,k,eA,cA,hA,q,nA,lA,dA,TA,qA,_A,WA,jA,OA,PA,KA;return YA(this,function(y){switch(y.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=A.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(R=e.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(k=e.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:e.proxy,useCORS:(eA=e.useCORS)!==null&&eA!==void 0?eA:!1},a=Fi({logging:(cA=e.logging)!==null&&cA!==void 0?cA:!0,cache:e.cache},n),i={windowWidth:(hA=e.windowWidth)!==null&&hA!==void 0?hA:r.innerWidth,windowHeight:(q=e.windowHeight)!==null&&q!==void 0?q:r.innerHeight,scrollX:(nA=e.scrollX)!==null&&nA!==void 0?nA:r.pageXOffset,scrollY:(lA=e.scrollY)!==null&&lA!==void 0?lA:r.pageYOffset},o=new _e(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),u=new jT(a,o),l=(dA=e.foreignObjectRendering)!==null&&dA!==void 0?dA:!1,d={allowTaint:(TA=e.allowTaint)!==null&&TA!==void 0?TA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},u.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),f=new Vl(u,A,d),h=f.clonedReferenceElement,h?[4,f.toIFrame(t,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return C=y.sent(),m=ds(h)||Zb(h)?xm(h.ownerDocument):Tn(u,h),T=m.width,Q=m.height,b=m.left,v=m.top,H=ZT(u,h,e.backgroundColor),K={canvas:e.canvas,backgroundColor:H,scale:(_A=(qA=e.scale)!==null&&qA!==void 0?qA:r.devicePixelRatio)!==null&&_A!==void 0?_A:1,x:((WA=e.x)!==null&&WA!==void 0?WA:0)+b,y:((jA=e.y)!==null&&jA!==void 0?jA:0)+v,width:(OA=e.width)!==null&&OA!==void 0?OA:Math.ceil(T),height:(PA=e.height)!==null&&PA!==void 0?PA:Math.ceil(Q)},l?(u.logger.debug("Document cloned, using foreign object rendering"),O=new WT(u,K),[4,O.render(h)]):[3,3];case 2:return L=y.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+b+","+v+" with size "+T+"x"+Q+" using computed rendering"),u.logger.debug("Starting DOM parsing"),E=Il(u,h),H===E.styles.backgroundColor&&(E.styles.backgroundColor=Se.TRANSPARENT),u.logger.debug("Starting renderer for element at "+K.x+","+K.y+" with size "+K.width+"x"+K.height),O=new PT(u,K),[4,O.render(E)];case 4:L=y.sent(),y.label=5;case 5:return(!((KA=e.removeContainer)!==null&&KA!==void 0)||KA)&&(Vl.destroy(C)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,L]}})})},ZT=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?Lr(A,getComputedStyle(r.documentElement).backgroundColor):Se.TRANSPARENT,a=r.body?Lr(A,getComputedStyle(r.body).backgroundColor):Se.TRANSPARENT,i=typeof t=="string"?Lr(A,t):t===null?Se.TRANSPARENT:4294967295;return e===r.documentElement?ze(n)?ze(a)?i:a:n:i};const AU=`.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;max-width:300px;font-family:微软雅黑}.message-content[data-v-a234b03c]{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-radius:4px;box-shadow:0 2px 8px #00000026;font-size:14px}.close-btn[data-v-a234b03c]{background:none;border:none;color:#4b5563;cursor:pointer;margin-left:10px;line-height:1;padding:0}.fade-enter-active[data-v-a234b03c],.fade-leave-active[data-v-a234b03c]{transition:opacity .3s}.fade-enter-from[data-v-a234b03c],.fade-leave-to[data-v-a234b03c]{opacity:0}[contenteditable=true][data-v-3a877c04]:focus{outline:none}[contenteditable=true][data-v-3a877c04]{outline:none}textarea[data-v-3a877c04]{resize:none;border:none;outline:none;background:transparent}.custom-checkbox[data-v-68b8f276]{width:16px;height:16px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-68b8f276]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-68b8f276]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.checkbox-label[data-v-68b8f276]{line-height:1.2;font-size:14px;color:#4b5563}.border[data-v-30b99148]{border:1px solid #ccc}.custom-checkbox[data-v-30b99148]{width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-30b99148]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-30b99148]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
39
+ .`+ps+fT+Gl)},BT=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Yl=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),gT=function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(ms(e)||CT(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return JA(this,void 0,void 0,function(){var t,r,n,a,i=this;return YA(this,function(o){switch(o.label){case 0:return t=Yl.isSameOrigin(e),r=!Es(e)&&this._options.useCORS===!0&&kA.SUPPORT_CORS_IMAGES&&!t,n=!Es(e)&&!t&&!ms(e)&&typeof this._options.proxy=="string"&&kA.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Es(e)&&!ms(e)&&!n&&!r?[2]:(a=e,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(u,l){var d=new Image;d.onload=function(){return u(d)},d.onerror=l,(wT(a)||r)&&(d.crossOrigin="anonymous"),d.src=a,d.complete===!0&&setTimeout(function(){return u(d)},500),i._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(a,i){var o=kA.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(o==="text")a(u.response);else{var f=new FileReader;f.addEventListener("load",function(){return a(f.result)},!1),f.addEventListener("error",function(h){return i(h)},!1),f.readAsDataURL(u.response)}else i("Failed to proxy resource "+n+" with status code "+u.status)},u.onerror=i;var l=r.indexOf("?")>-1?"&":"?";if(u.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=o),t._options.imageTimeout){var d=t._options.imageTimeout;u.timeout=d,u.ontimeout=function(){return i("Timed out ("+d+"ms) proxying "+n)}}u.send()})},A}(),pT=/^data:image\/svg\+xml/i,ET=/^data:image\/.*;base64,/i,mT=/^data:image\/.*/i,CT=function(A){return kA.SUPPORT_SVG_DRAWING||!bT(A)},Es=function(A){return mT.test(A)},wT=function(A){return ET.test(A)},ms=function(A){return A.substr(0,4)==="blob"},bT=function(A){return A.substr(-3).toLowerCase()==="svg"||pT.test(A)},M=function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Pt=function(A,e,t){return new M(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},oa=function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=Pt(this.start,this.startControl,e),n=Pt(this.startControl,this.endControl,e),a=Pt(this.endControl,this.end,e),i=Pt(r,n,e),o=Pt(n,a,e),u=Pt(i,o,e);return t?new A(this.start,r,i,u):new A(u,o,a,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),le=function(A){return A.type===1},TT=function(){function A(e){var t=e.styles,r=e.bounds,n=Sr(t.borderTopLeftRadius,r.width,r.height),a=n[0],i=n[1],o=Sr(t.borderTopRightRadius,r.width,r.height),u=o[0],l=o[1],d=Sr(t.borderBottomRightRadius,r.width,r.height),f=d[0],h=d[1],C=Sr(t.borderBottomLeftRadius,r.width,r.height),m=C[0],T=C[1],Q=[];Q.push((a+u)/r.width),Q.push((m+f)/r.width),Q.push((i+T)/r.height),Q.push((l+h)/r.height);var b=Math.max.apply(Math,Q);b>1&&(a/=b,i/=b,u/=b,l/=b,f/=b,h/=b,m/=b,T/=b);var v=r.width-u,H=r.height-h,K=r.width-f,L=r.height-T,E=t.borderTopWidth,O=t.borderRightWidth,R=t.borderBottomWidth,k=t.borderLeftWidth,eA=fA(t.paddingTop,e.bounds.width),cA=fA(t.paddingRight,e.bounds.width),hA=fA(t.paddingBottom,e.bounds.width),q=fA(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?mA(r.left+k/3,r.top+E/3,a-k/3,i-E/3,sA.TOP_LEFT):new M(r.left+k/3,r.top+E/3),this.topRightBorderDoubleOuterBox=a>0||i>0?mA(r.left+v,r.top+E/3,u-O/3,l-E/3,sA.TOP_RIGHT):new M(r.left+r.width-O/3,r.top+E/3),this.bottomRightBorderDoubleOuterBox=f>0||h>0?mA(r.left+K,r.top+H,f-O/3,h-R/3,sA.BOTTOM_RIGHT):new M(r.left+r.width-O/3,r.top+r.height-R/3),this.bottomLeftBorderDoubleOuterBox=m>0||T>0?mA(r.left+k/3,r.top+L,m-k/3,T-R/3,sA.BOTTOM_LEFT):new M(r.left+k/3,r.top+r.height-R/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?mA(r.left+k*2/3,r.top+E*2/3,a-k*2/3,i-E*2/3,sA.TOP_LEFT):new M(r.left+k*2/3,r.top+E*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?mA(r.left+v,r.top+E*2/3,u-O*2/3,l-E*2/3,sA.TOP_RIGHT):new M(r.left+r.width-O*2/3,r.top+E*2/3),this.bottomRightBorderDoubleInnerBox=f>0||h>0?mA(r.left+K,r.top+H,f-O*2/3,h-R*2/3,sA.BOTTOM_RIGHT):new M(r.left+r.width-O*2/3,r.top+r.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||T>0?mA(r.left+k*2/3,r.top+L,m-k*2/3,T-R*2/3,sA.BOTTOM_LEFT):new M(r.left+k*2/3,r.top+r.height-R*2/3),this.topLeftBorderStroke=a>0||i>0?mA(r.left+k/2,r.top+E/2,a-k/2,i-E/2,sA.TOP_LEFT):new M(r.left+k/2,r.top+E/2),this.topRightBorderStroke=a>0||i>0?mA(r.left+v,r.top+E/2,u-O/2,l-E/2,sA.TOP_RIGHT):new M(r.left+r.width-O/2,r.top+E/2),this.bottomRightBorderStroke=f>0||h>0?mA(r.left+K,r.top+H,f-O/2,h-R/2,sA.BOTTOM_RIGHT):new M(r.left+r.width-O/2,r.top+r.height-R/2),this.bottomLeftBorderStroke=m>0||T>0?mA(r.left+k/2,r.top+L,m-k/2,T-R/2,sA.BOTTOM_LEFT):new M(r.left+k/2,r.top+r.height-R/2),this.topLeftBorderBox=a>0||i>0?mA(r.left,r.top,a,i,sA.TOP_LEFT):new M(r.left,r.top),this.topRightBorderBox=u>0||l>0?mA(r.left+v,r.top,u,l,sA.TOP_RIGHT):new M(r.left+r.width,r.top),this.bottomRightBorderBox=f>0||h>0?mA(r.left+K,r.top+H,f,h,sA.BOTTOM_RIGHT):new M(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=m>0||T>0?mA(r.left,r.top+L,m,T,sA.BOTTOM_LEFT):new M(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||i>0?mA(r.left+k,r.top+E,Math.max(0,a-k),Math.max(0,i-E),sA.TOP_LEFT):new M(r.left+k,r.top+E),this.topRightPaddingBox=u>0||l>0?mA(r.left+Math.min(v,r.width-O),r.top+E,v>r.width+O?0:Math.max(0,u-O),Math.max(0,l-E),sA.TOP_RIGHT):new M(r.left+r.width-O,r.top+E),this.bottomRightPaddingBox=f>0||h>0?mA(r.left+Math.min(K,r.width-k),r.top+Math.min(H,r.height-R),Math.max(0,f-O),Math.max(0,h-R),sA.BOTTOM_RIGHT):new M(r.left+r.width-O,r.top+r.height-R),this.bottomLeftPaddingBox=m>0||T>0?mA(r.left+k,r.top+Math.min(L,r.height-R),Math.max(0,m-k),Math.max(0,T-R),sA.BOTTOM_LEFT):new M(r.left+k,r.top+r.height-R),this.topLeftContentBox=a>0||i>0?mA(r.left+k+q,r.top+E+eA,Math.max(0,a-(k+q)),Math.max(0,i-(E+eA)),sA.TOP_LEFT):new M(r.left+k+q,r.top+E+eA),this.topRightContentBox=u>0||l>0?mA(r.left+Math.min(v,r.width+k+q),r.top+E+eA,v>r.width+k+q?0:u-k+q,l-(E+eA),sA.TOP_RIGHT):new M(r.left+r.width-(O+cA),r.top+E+eA),this.bottomRightContentBox=f>0||h>0?mA(r.left+Math.min(K,r.width-(k+q)),r.top+Math.min(H,r.height+E+eA),Math.max(0,f-(O+cA)),h-(R+hA),sA.BOTTOM_RIGHT):new M(r.left+r.width-(O+cA),r.top+r.height-(R+hA)),this.bottomLeftContentBox=m>0||T>0?mA(r.left+k+q,r.top+L,Math.max(0,m-(k+q)),T-(R+hA),sA.BOTTOM_LEFT):new M(r.left+k+q,r.top+r.height-(R+hA))}return A}(),sA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(sA||(sA={}));var mA=function(A,e,t,r,n){var a=4*((Math.sqrt(2)-1)/3),i=t*a,o=r*a,u=A+t,l=e+r;switch(n){case sA.TOP_LEFT:return new oa(new M(A,l),new M(A,l-o),new M(u-i,e),new M(u,e));case sA.TOP_RIGHT:return new oa(new M(A,e),new M(A+i,e),new M(u,l-o),new M(u,l));case sA.BOTTOM_RIGHT:return new oa(new M(u,e),new M(u,e+o),new M(A+i,l),new M(A,l));case sA.BOTTOM_LEFT:default:return new oa(new M(u,l),new M(u-i,l),new M(A,e+o),new M(A,e))}},ua=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},UT=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},ca=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},QT=function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A}(),la=function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A}(),FT=function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A}(),IT=function(A){return A.type===0},Xl=function(A){return A.type===1},yT=function(A){return A.type===2},Wl=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},xT=function(A,e,t,r,n){return A.map(function(a,i){switch(i){case 0:return a.add(e,t);case 1:return a.add(e+r,t);case 2:return a.add(e+r,t+n);case 3:return a.add(e,t+n)}return a})},Jl=function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),ql=function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new TT(this.container),this.container.styles.opacity<1&&this.effects.push(new FT(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new QT(r,n,a))}if(this.container.styles.overflowX!==0){var i=ua(this.curves),o=ca(this.curves);Wl(i,o)?this.effects.push(new la(i,6)):(this.effects.push(new la(i,2)),this.effects.push(new la(o,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var a=r.effects.filter(function(u){return!Xl(u)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,a),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var i=ua(r.curves),o=ca(r.curves);Wl(i,o)||n.unshift(new la(o,6))}}else n.unshift.apply(n,a);r=r.parent}return n.filter(function(u){return vA(u.target,e)})},A}(),Cs=function(A,e,t,r){A.container.elements.forEach(function(n){var a=vA(n.flags,4),i=vA(n.flags,2),o=new ql(n,A);vA(n.styles.display,2048)&&r.push(o);var u=vA(n.flags,8)?[]:r;if(a||i){var l=a||n.styles.isPositioned()?t:e,d=new Jl(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var f=n.styles.zIndex.order;if(f<0){var h=0;l.negativeZIndex.some(function(m,T){return f>m.element.container.styles.zIndex.order?(h=T,!1):h>0}),l.negativeZIndex.splice(h,0,d)}else if(f>0){var C=0;l.positiveZIndex.some(function(m,T){return f>=m.element.container.styles.zIndex.order?(C=T+1,!1):C>0}),l.positiveZIndex.splice(C,0,d)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else n.styles.isFloating()?l.nonPositionedFloats.push(d):l.nonPositionedInlineLevel.push(d);Cs(o,d,a?d:t,u)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Cs(o,e,t,u);vA(n.flags,8)&&jl(n,u)})},jl=function(A,e){for(var t=A instanceof us?A.start:1,r=A instanceof us?A.reversed:!1,n=0;n<e.length;n++){var a=e[n];a.container instanceof wl&&typeof a.container.value=="number"&&a.container.value!==0&&(t=a.container.value),a.listValue=Mr(t,a.container.styles.listStyleType,!0),t+=r?-1:1}},vT=function(A){var e=new ql(A,null),t=new Jl(e),r=[];return Cs(e,t,t,r),jl(e.container,r),t},zl=function(A,e){switch(e){case 0:return de(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return de(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return de(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return de(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},_T=function(A,e){switch(e){case 0:return de(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return de(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return de(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return de(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},NT=function(A,e){switch(e){case 0:return de(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return de(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return de(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return de(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},ST=function(A,e){switch(e){case 0:return da(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return da(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return da(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return da(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},da=function(A,e){var t=[];return le(A)?t.push(A.subdivide(.5,!1)):t.push(A),le(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},de=function(A,e,t,r){var n=[];return le(A)?n.push(A.subdivide(.5,!1)):n.push(A),le(t)?n.push(t.subdivide(.5,!0)):n.push(t),le(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),le(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},$l=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},fa=function(A){var e=A.styles,t=A.bounds,r=fA(e.paddingLeft,t.width),n=fA(e.paddingRight,t.width),a=fA(e.paddingTop,t.width),i=fA(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+a+i))},LT=function(A,e){return A===0?e.bounds:A===2?fa(e):$l(e)},HT=function(A,e){return A===0?e.bounds:A===2?fa(e):$l(e)},ws=function(A,e,t){var r=LT(Vt(A.styles.backgroundOrigin,e),A),n=HT(Vt(A.styles.backgroundClip,e),A),a=DT(Vt(A.styles.backgroundSize,e),t,r),i=a[0],o=a[1],u=Sr(Vt(A.styles.backgroundPosition,e),r.width-i,r.height-o),l=OT(Vt(A.styles.backgroundRepeat,e),u,a,r,n),d=Math.round(r.left+u[0]),f=Math.round(r.top+u[1]);return[l,d,f,i,o]},Kt=function(A){return uA(A)&&A.value===Ot.AUTO},ha=function(A){return typeof A=="number"},DT=function(A,e,t){var r=e[0],n=e[1],a=e[2],i=A[0],o=A[1];if(!i)return[0,0];if(IA(i)&&o&&IA(o))return[fA(i,t.width),fA(o,t.height)];var u=ha(a);if(uA(i)&&(i.value===Ot.CONTAIN||i.value===Ot.COVER)){if(ha(a)){var l=t.width/t.height;return l<a!=(i.value===Ot.COVER)?[t.width,t.width/a]:[t.height*a,t.height]}return[t.width,t.height]}var d=ha(r),f=ha(n),h=d||f;if(Kt(i)&&(!o||Kt(o))){if(d&&f)return[r,n];if(!u&&!h)return[t.width,t.height];if(h&&u){var C=d?r:n*a,m=f?n:r/a;return[C,m]}var T=d?r:t.width,Q=f?n:t.height;return[T,Q]}if(u){var b=0,v=0;return IA(i)?b=fA(i,t.width):IA(o)&&(v=fA(o,t.height)),Kt(i)?b=v*a:(!o||Kt(o))&&(v=b/a),[b,v]}var H=null,K=null;if(IA(i)?H=fA(i,t.width):o&&IA(o)&&(K=fA(o,t.height)),H!==null&&(!o||Kt(o))&&(K=d&&f?H/r*n:t.height),K!==null&&Kt(i)&&(H=d&&f?K/n*r:t.width),H!==null&&K!==null)return[H,K];throw new Error("Unable to calculate background-size for element")},Vt=function(A,e){var t=A[e];return typeof t>"u"?A[0]:t},OT=function(A,e,t,r,n){var a=e[0],i=e[1],o=t[0],u=t[1];switch(A){case 2:return[new M(Math.round(r.left),Math.round(r.top+i)),new M(Math.round(r.left+r.width),Math.round(r.top+i)),new M(Math.round(r.left+r.width),Math.round(u+r.top+i)),new M(Math.round(r.left),Math.round(u+r.top+i))];case 3:return[new M(Math.round(r.left+a),Math.round(r.top)),new M(Math.round(r.left+a+o),Math.round(r.top)),new M(Math.round(r.left+a+o),Math.round(r.height+r.top)),new M(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new M(Math.round(r.left+a),Math.round(r.top+i)),new M(Math.round(r.left+a+o),Math.round(r.top+i)),new M(Math.round(r.left+a+o),Math.round(r.top+i+u)),new M(Math.round(r.left+a),Math.round(r.top+i+u))];default:return[new M(Math.round(n.left),Math.round(n.top)),new M(Math.round(n.left+n.width),Math.round(n.top)),new M(Math.round(n.left+n.width),Math.round(n.height+n.top)),new M(Math.round(n.left),Math.round(n.height+n.top))]}},RT="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Zl="Hidden Text",MT=function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),i=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",i.appendChild(r),n.src=RT,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(Zl)),r.appendChild(a),r.appendChild(n);var o=n.offsetTop-a.offsetTop+2;r.removeChild(a),r.appendChild(this._document.createTextNode(Zl)),r.style.lineHeight="normal",n.style.verticalAlign="super";var u=n.offsetTop-r.offsetTop+2;return i.removeChild(r),{baseline:o,middle:u}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A}(),A0=function(){function A(e,t){this.context=e,this.options=t}return A}(),kT=1e4,PT=function(A){Ee(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new MT(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),yT(t)&&(this.ctx.globalAlpha=t.opacity),IT(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Xl(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return JA(this,void 0,void 0,function(){var r;return YA(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return JA(this,void 0,void 0,function(){return YA(this,function(r){switch(r.label){case 0:if(vA(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var a=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var i=os(t.text);i.reduce(function(o,u){return a.ctx.fillText(u,o,t.bounds.top+n),o+a.ctx.measureText(u).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),n=XT(t.fontFamily).join(", "),a=Nr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,a,n].join(" "),n,a]},e.prototype.renderTextNode=function(t,r){return JA(this,void 0,void 0,function(){var n,a,i,o,u,l,d,f,h=this;return YA(this,function(C){return n=this.createFontStyle(r),a=n[0],i=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",u=this.fontMetrics.getMetrics(i,o),l=u.baseline,d=u.middle,f=r.paintOrder,t.textBounds.forEach(function(m){f.forEach(function(T){switch(T){case 0:h.ctx.fillStyle=DA(r.color),h.renderTextWithLetterSpacing(m,r.letterSpacing,l);var Q=r.textShadow;Q.length&&m.text.trim().length&&(Q.slice(0).reverse().forEach(function(b){h.ctx.shadowColor=DA(b.color),h.ctx.shadowOffsetX=b.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=b.offsetY.number*h.options.scale,h.ctx.shadowBlur=b.blur.number,h.renderTextWithLetterSpacing(m,r.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),r.textDecorationLine.length&&(h.ctx.fillStyle=DA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(b){switch(b){case 1:h.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+l),m.bounds.width,1);break;case 2:h.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:h.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+d),m.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&m.text.trim().length&&(h.ctx.strokeStyle=DA(r.webkitTextStrokeColor),h.ctx.lineWidth=r.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var a=fa(t),i=ca(r);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return JA(this,void 0,void 0,function(){var r,n,a,i,o,u,v,v,l,d,f,h,K,C,m,L,T,Q,b,v,H,K,L;return YA(this,function(E){switch(E.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,a=r.styles,i=0,o=r.textNodes,E.label=1;case 1:return i<o.length?(u=o[i],[4,this.renderTextNode(u,a)]):[3,4];case 2:E.sent(),E.label=3;case 3:return i++,[3,1];case 4:if(!(r instanceof El))return[3,8];E.label=5;case 5:return E.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=E.sent(),this.renderReplacedElement(r,n,v),[3,8];case 7:return E.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof ml&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Cl))return[3,12];E.label=9;case 9:return E.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=E.sent(),this.renderReplacedElement(r,n,v),[3,12];case 11:return E.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Ql&&r.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,l.render(r.tree)]):[3,14];case 13:d=E.sent(),r.width&&r.height&&this.ctx.drawImage(d,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),E.label=14;case 14:if(r instanceof cs&&(f=Math.min(r.bounds.width,r.bounds.height),r.type===ta?r.checked&&(this.ctx.save(),this.path([new M(r.bounds.left+f*.39363,r.bounds.top+f*.79),new M(r.bounds.left+f*.16,r.bounds.top+f*.5549),new M(r.bounds.left+f*.27347,r.bounds.top+f*.44071),new M(r.bounds.left+f*.39694,r.bounds.top+f*.5649),new M(r.bounds.left+f*.72983,r.bounds.top+f*.23),new M(r.bounds.left+f*.84,r.bounds.top+f*.34085),new M(r.bounds.left+f*.39363,r.bounds.top+f*.79)]),this.ctx.fillStyle=DA(bl),this.ctx.fill(),this.ctx.restore()):r.type===ra&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+f/2,r.bounds.top+f/2,f/4,0,Math.PI*2,!0),this.ctx.fillStyle=DA(bl),this.ctx.fill(),this.ctx.restore())),KT(r)&&r.value.length){switch(h=this.createFontStyle(a),K=h[0],C=h[1],m=this.fontMetrics.getMetrics(K,C).baseline,this.ctx.font=K,this.ctx.fillStyle=DA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=GT(r.styles.textAlign),L=fa(r),T=0,r.styles.textAlign){case 1:T+=L.width/2;break;case 2:T+=L.width;break}Q=L.add(T,0,0,-L.height/2+1),this.ctx.save(),this.path([new M(L.left,L.top),new M(L.left+L.width,L.top),new M(L.left+L.width,L.top+L.height),new M(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Or(r.value,Q),a.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!vA(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(b=r.styles.listStyleImage,b.type!==0)return[3,18];v=void 0,H=b.url,E.label=15;case 15:return E.trys.push([15,17,,18]),[4,this.context.cache.match(H)];case 16:return v=E.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return E.sent(),this.context.logger.error("Error loading list-style-image "+H),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(K=this.createFontStyle(a)[0],this.ctx.font=K,this.ctx.fillStyle=DA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new _e(r.bounds.left,r.bounds.top+fA(r.styles.paddingTop,r.bounds.width),r.bounds.width,Zc(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Or(t.listValue,L),a.letterSpacing,Zc(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),E.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return JA(this,void 0,void 0,function(){var r,n,b,a,i,b,o,u,b,l,d,b,f,h,b,C,m,b,T,Q,b;return YA(this,function(v){switch(v.label){case 0:if(vA(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:v.sent(),r=0,n=t.negativeZIndex,v.label=2;case 2:return r<n.length?(b=n[r],[4,this.renderStack(b)]):[3,5];case 3:v.sent(),v.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:v.sent(),a=0,i=t.nonInlineLevel,v.label=7;case 7:return a<i.length?(b=i[a],[4,this.renderNode(b)]):[3,10];case 8:v.sent(),v.label=9;case 9:return a++,[3,7];case 10:o=0,u=t.nonPositionedFloats,v.label=11;case 11:return o<u.length?(b=u[o],[4,this.renderStack(b)]):[3,14];case 12:v.sent(),v.label=13;case 13:return o++,[3,11];case 14:l=0,d=t.nonPositionedInlineLevel,v.label=15;case 15:return l<d.length?(b=d[l],[4,this.renderStack(b)]):[3,18];case 16:v.sent(),v.label=17;case 17:return l++,[3,15];case 18:f=0,h=t.inlineLevel,v.label=19;case 19:return f<h.length?(b=h[f],[4,this.renderNode(b)]):[3,22];case 20:v.sent(),v.label=21;case 21:return f++,[3,19];case 22:C=0,m=t.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return C<m.length?(b=m[C],[4,this.renderStack(b)]):[3,26];case 24:v.sent(),v.label=25;case 25:return C++,[3,23];case 26:T=0,Q=t.positiveZIndex,v.label=27;case 27:return T<Q.length?(b=Q[T],[4,this.renderStack(b)]):[3,30];case 28:v.sent(),v.label=29;case 29:return T++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(n,a){var i=le(n)?n.start:n;a===0?r.ctx.moveTo(i.x,i.y):r.ctx.lineTo(i.x,i.y),le(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,r,n,a){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},e.prototype.resizeImage=function(t,r,n){var a;if(t.width===r&&t.height===n)return t;var i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=i.createElement("canvas");o.width=Math.max(1,r),o.height=Math.max(1,n);var u=o.getContext("2d");return u.drawImage(t,0,0,t.width,t.height,0,0,r,n),o},e.prototype.renderBackgroundImage=function(t){return JA(this,void 0,void 0,function(){var r,n,a,i,o,u;return YA(this,function(l){switch(l.label){case 0:r=t.styles.backgroundImage.length-1,n=function(d){var f,h,C,eA,dA,TA,q,nA,R,m,eA,dA,TA,q,nA,T,Q,b,v,H,K,L,E,O,R,k,eA,cA,hA,q,nA,lA,dA,TA,qA,_A,WA,jA,OA,PA,KA,y;return YA(this,function(_){switch(_.label){case 0:if(d.type!==0)return[3,5];f=void 0,h=d.url,_.label=1;case 1:return _.trys.push([1,3,,4]),[4,a.context.cache.match(h)];case 2:return f=_.sent(),[3,4];case 3:return _.sent(),a.context.logger.error("Error loading background-image "+h),[3,4];case 4:return f&&(C=ws(t,r,[f.width,f.height,f.width/f.height]),eA=C[0],dA=C[1],TA=C[2],q=C[3],nA=C[4],R=a.ctx.createPattern(a.resizeImage(f,q,nA),"repeat"),a.renderRepeat(eA,R,dA,TA)),[3,6];case 5:IC(d)?(m=ws(t,r,[null,null,null]),eA=m[0],dA=m[1],TA=m[2],q=m[3],nA=m[4],T=bC(d.angle,q,nA),Q=T[0],b=T[1],v=T[2],H=T[3],K=T[4],L=document.createElement("canvas"),L.width=q,L.height=nA,E=L.getContext("2d"),O=E.createLinearGradient(b,H,v,K),Kc(d.stops,Q).forEach(function(tA){return O.addColorStop(tA.stop,DA(tA.color))}),E.fillStyle=O,E.fillRect(0,0,q,nA),q>0&&nA>0&&(R=a.ctx.createPattern(L,"repeat"),a.renderRepeat(eA,R,dA,TA))):yC(d)&&(k=ws(t,r,[null,null,null]),eA=k[0],cA=k[1],hA=k[2],q=k[3],nA=k[4],lA=d.position.length===0?[Wi]:d.position,dA=fA(lA[0],q),TA=fA(lA[lA.length-1],nA),qA=TC(d,dA,TA,q,nA),_A=qA[0],WA=qA[1],_A>0&&WA>0&&(jA=a.ctx.createRadialGradient(cA+dA,hA+TA,0,cA+dA,hA+TA,_A),Kc(d.stops,_A*2).forEach(function(tA){return jA.addColorStop(tA.stop,DA(tA.color))}),a.path(eA),a.ctx.fillStyle=jA,_A!==WA?(OA=t.bounds.left+.5*t.bounds.width,PA=t.bounds.top+.5*t.bounds.height,KA=WA/_A,y=1/KA,a.ctx.save(),a.ctx.translate(OA,PA),a.ctx.transform(1,0,0,KA,0,0),a.ctx.translate(-OA,-PA),a.ctx.fillRect(cA,y*(hA-PA)+PA,q,nA*y),a.ctx.restore()):a.ctx.fill())),_.label=6;case 6:return r--,[2]}})},a=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i<o.length?(u=o[i],[5,n(u)]):[3,4];case 2:l.sent(),l.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,n){return JA(this,void 0,void 0,function(){return YA(this,function(a){return this.path(zl(n,r)),this.ctx.fillStyle=DA(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,n,a){return JA(this,void 0,void 0,function(){var i,o;return YA(this,function(u){switch(u.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,a)]:[3,2];case 1:return u.sent(),[2];case 2:return i=_T(a,n),this.path(i),this.ctx.fillStyle=DA(t),this.ctx.fill(),o=NT(a,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return JA(this,void 0,void 0,function(){var r,n,a,i,o,u,l,d,f=this;return YA(this,function(h){switch(h.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!ze(r.backgroundColor)||r.backgroundImage.length,a=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],i=VT(Vt(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),ze(r.backgroundColor)||(this.ctx.fillStyle=DA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(C){f.ctx.save();var m=ua(t.curves),T=C.inset?0:kT,Q=xT(m,-T+(C.inset?1:-1)*C.spread.number,(C.inset?1:-1)*C.spread.number,C.spread.number*(C.inset?-2:2),C.spread.number*(C.inset?-2:2));C.inset?(f.path(m),f.ctx.clip(),f.mask(Q)):(f.mask(m),f.ctx.clip(),f.path(Q)),f.ctx.shadowOffsetX=C.offsetX.number+T,f.ctx.shadowOffsetY=C.offsetY.number,f.ctx.shadowColor=DA(C.color),f.ctx.shadowBlur=C.blur.number,f.ctx.fillStyle=C.inset?DA(C.color):"rgba(0,0,0,1)",f.ctx.fill(),f.ctx.restore()}),h.label=2;case 2:o=0,u=0,l=a,h.label=3;case 3:return u<l.length?(d=l[u],d.style!==0&&!ze(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,o,t.curves,3)];case 6:return h.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,o,t.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,o,t.curves)];case 10:h.sent(),h.label=11;case 11:o++,h.label=12;case 12:return u++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,a,i){return JA(this,void 0,void 0,function(){var o,u,l,d,f,h,C,m,T,Q,b,v,H,K,L,E,L,E;return YA(this,function(O){return this.ctx.save(),o=ST(a,n),u=zl(a,n),i===2&&(this.path(u),this.ctx.clip()),le(u[0])?(l=u[0].start.x,d=u[0].start.y):(l=u[0].x,d=u[0].y),le(u[1])?(f=u[1].end.x,h=u[1].end.y):(f=u[1].x,h=u[1].y),n===0||n===2?C=Math.abs(l-f):C=Math.abs(d-h),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(u.slice(0,2)),m=r<3?r*3:r*2,T=r<3?r*2:r,i===3&&(m=r,T=r),Q=!0,C<=m*2?Q=!1:C<=m*2+T?(b=C/(2*m+T),m*=b,T*=b):(v=Math.floor((C+T)/(m+T)),H=(C-v*m)/(v-1),K=(C-(v+1)*m)/v,T=K<=0||Math.abs(T-H)<Math.abs(T-K)?H:K),Q&&(i===3?this.ctx.setLineDash([0,m+T]):this.ctx.setLineDash([m,T])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=DA(t),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(le(u[0])&&(L=u[3],E=u[0],this.ctx.beginPath(),this.formatPath([new M(L.end.x,L.end.y),new M(E.start.x,E.start.y)]),this.ctx.stroke()),le(u[1])&&(L=u[1],E=u[2],this.ctx.beginPath(),this.formatPath([new M(L.end.x,L.end.y),new M(E.start.x,E.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return JA(this,void 0,void 0,function(){var r;return YA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=DA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=vT(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(A0),KT=function(A){return A instanceof Ul||A instanceof Tl?!0:A instanceof cs&&A.type!==ra&&A.type!==ta},VT=function(A,e){switch(A){case 0:return ua(e);case 2:return UT(e);case 1:default:return ca(e)}},GT=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},YT=["-apple-system","system-ui"],XT=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return YT.indexOf(e)===-1}):A},WT=function(A){Ee(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return e.prototype.render=function(t){return JA(this,void 0,void 0,function(){var r,n;return YA(this,function(a){switch(a.label){case 0:return r=ss(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,JT(r)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=DA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(A0),JT=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},qT=function(){function A(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,bn([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A}(),jT=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new qT({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new gT(this,e)}return A.instanceCount=1,A}(),zT=function(A,e){return e===void 0&&(e={}),$T(A,e)};typeof window<"u"&&Yl.setContext(window);var $T=function(A,e){return JA(void 0,void 0,void 0,function(){var t,r,n,a,i,o,u,l,d,f,h,C,m,T,Q,b,v,H,K,L,O,E,O,R,k,eA,cA,hA,q,nA,lA,dA,TA,qA,_A,WA,jA,OA,PA,KA;return YA(this,function(y){switch(y.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=A.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(R=e.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(k=e.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:e.proxy,useCORS:(eA=e.useCORS)!==null&&eA!==void 0?eA:!1},a=Fi({logging:(cA=e.logging)!==null&&cA!==void 0?cA:!0,cache:e.cache},n),i={windowWidth:(hA=e.windowWidth)!==null&&hA!==void 0?hA:r.innerWidth,windowHeight:(q=e.windowHeight)!==null&&q!==void 0?q:r.innerHeight,scrollX:(nA=e.scrollX)!==null&&nA!==void 0?nA:r.pageXOffset,scrollY:(lA=e.scrollY)!==null&&lA!==void 0?lA:r.pageYOffset},o=new _e(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),u=new jT(a,o),l=(dA=e.foreignObjectRendering)!==null&&dA!==void 0?dA:!1,d={allowTaint:(TA=e.allowTaint)!==null&&TA!==void 0?TA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},u.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),f=new Vl(u,A,d),h=f.clonedReferenceElement,h?[4,f.toIFrame(t,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return C=y.sent(),m=ds(h)||Zb(h)?xm(h.ownerDocument):Tn(u,h),T=m.width,Q=m.height,b=m.left,v=m.top,H=ZT(u,h,e.backgroundColor),K={canvas:e.canvas,backgroundColor:H,scale:(_A=(qA=e.scale)!==null&&qA!==void 0?qA:r.devicePixelRatio)!==null&&_A!==void 0?_A:1,x:((WA=e.x)!==null&&WA!==void 0?WA:0)+b,y:((jA=e.y)!==null&&jA!==void 0?jA:0)+v,width:(OA=e.width)!==null&&OA!==void 0?OA:Math.ceil(T),height:(PA=e.height)!==null&&PA!==void 0?PA:Math.ceil(Q)},l?(u.logger.debug("Document cloned, using foreign object rendering"),O=new WT(u,K),[4,O.render(h)]):[3,3];case 2:return L=y.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+b+","+v+" with size "+T+"x"+Q+" using computed rendering"),u.logger.debug("Starting DOM parsing"),E=Il(u,h),H===E.styles.backgroundColor&&(E.styles.backgroundColor=Se.TRANSPARENT),u.logger.debug("Starting renderer for element at "+K.x+","+K.y+" with size "+K.width+"x"+K.height),O=new PT(u,K),[4,O.render(E)];case 4:L=y.sent(),y.label=5;case 5:return(!((KA=e.removeContainer)!==null&&KA!==void 0)||KA)&&(Vl.destroy(C)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,L]}})})},ZT=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?Lr(A,getComputedStyle(r.documentElement).backgroundColor):Se.TRANSPARENT,a=r.body?Lr(A,getComputedStyle(r.body).backgroundColor):Se.TRANSPARENT,i=typeof t=="string"?Lr(A,t):t===null?Se.TRANSPARENT:4294967295;return e===r.documentElement?ze(n)?ze(a)?i:a:n:i};const AU=`.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;max-width:300px;font-family:微软雅黑}.message-content[data-v-a234b03c]{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-radius:4px;box-shadow:0 2px 8px #00000026;font-size:14px}.close-btn[data-v-a234b03c]{background:none;border:none;color:#4b5563;cursor:pointer;margin-left:10px;line-height:1;padding:0}.fade-enter-active[data-v-a234b03c],.fade-leave-active[data-v-a234b03c]{transition:opacity .3s}.fade-enter-from[data-v-a234b03c],.fade-leave-to[data-v-a234b03c]{opacity:0}[contenteditable=true][data-v-3a877c04]:focus{outline:none}[contenteditable=true][data-v-3a877c04]{outline:none}textarea[data-v-3a877c04]{resize:none;border:none;outline:none;background:transparent}.custom-checkbox[data-v-68b8f276]{width:16px;height:16px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-68b8f276]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-68b8f276]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.checkbox-label[data-v-68b8f276]{line-height:1.2;font-size:14px;color:#4b5563}.border[data-v-298a9b70]{border:1px solid #ccc}.custom-checkbox[data-v-298a9b70]{width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-298a9b70]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-298a9b70]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
40
40
  * Cropper.js v1.6.2
41
41
  * https://fengyuanchen.github.io/cropperjs
42
42
  *
@@ -50,9 +50,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
50
50
  --main-color: ${A.themeColor} !important;
51
51
  --gp-designer-theme-color: ${A.themeColor} !important;
52
52
  }
53
- `,o.appendChild(u);const l=i.createElement("style");l.innerHTML=AU,o.appendChild(l);const d=i.createElement("script");d.src="/spa/topic/js/jquery-3.6.0.min.js",d.async=!1,o.appendChild(d);const f=i.createElement("script");f.src="/spa/topic/js/swiper-bundle.min.js",f.async=!1,o.appendChild(f);const h=i.createElement("script");h.src="/spa/topic/js/index.js?t="+new Date().getTime(),h.async=!1,o.appendChild(h);const C=i.body;C.innerHTML=A.htmlContent,A.jsFiles.forEach(T=>{const Q=i.createElement("script");Q.src=T+"?t="+new Date().getTime(),Q.async=!1,C.appendChild(Q)}),t.value=C,c.nextTick(()=>{})};c.watch(t,a=>{if(!a)return;new MutationObserver(()=>{const o=e.value;o&&(o.style.height=`${a.scrollHeight}px`)}).observe(a,{childList:!0,subtree:!0})});const n=async a=>{var l;const i=e.value;if(!i)return;const o=i.contentDocument||((l=i.contentWindow)==null?void 0:l.document);if(!o)return;const u=o.body;if(u)try{await c.nextTick();const d=await zT(u,{x:0,y:0,scrollX:window.scrollX,scrollY:window.scrollY,useCORS:!0,allowTaint:!0,foreignObjectRendering:!1});a?a(d):d.toBlob(f=>{const h=URL.createObjectURL(f);window.open(h,"_blank")})}catch(d){console.error("截图生成失败:",d)}};return c.watch(()=>[A.htmlContent,A.jsFiles,A.cssFiles],r,{deep:!0}),c.onMounted(()=>{r()}),{iframeRef:e,generateCover:n}}});function tU(A,e,t,r,n,a){return c.openBlock(),c.createElementBlock("div",null,[c.createElementVNode("iframe",{ref:"iframeRef",style:c.normalizeStyle([{"min-height":"600px"},A.iframeStyle])},null,4)])}const e0=Ke(eU,[["render",tU],["__scopeId","data-v-75c23f37"]]),rU={class:"flex gp-dsigner"},nU={key:0,class:"flex items-center justify-between border-b"},aU={class:"text-lg font-bold p-2"},iU={class:"text-sm font-thin text-gray-500"},sU={class:"flex-1 overflow-auto"},oU={key:0,class:"flex justify-between items-center border-b p-2"},uU={class:"flex items-center"},cU={class:"p-2"},lU={class:"sticky top-0"},dU={key:0,class:"text-lg font-bold border-b p-2"},fU={class:"text-sm font-thin text-gray-500"},hU={class:"p-2"},BU={key:0,class:"max-h-[500px] overflow-hidden w-[640px] h-[360px] bg-light-100"},gU={key:1,class:"text-gray-500 text-xs mt-2"},pU={key:0},EU={key:1},mU={key:2},CU={key:0,class:"text-red-500 text-xs mt-2"},wU={key:1,class:"text-red-500 text-xs mt-2"},t0=Ke(c.defineComponent({__name:"Designer",props:{mode:{default:"design"},template:{},css:{},js:{},previewWidth:{default:360},uploadByFile:{},icons:{},rules:{},preview:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0}},emits:["update:modelValue","update:element"],setup(A,{expose:e,emit:t}){const r=A,n=t,a=c.ref(r.rules||[]),i=c.ref(r.template),o=c.ref();let u=Eu("",{},!1);const l=c.ref("");c.watch(()=>r.template,F=>{i.value=F},{immediate:!0}),c.watch(()=>i.value,F=>{F&&(o.value=q(F))},{immediate:!0}),c.watch(()=>r.css,F=>{F.forEach(x=>{if(document.querySelector(`link[href="${x}"]`)||document.querySelector(`link[id="${x}"]`))return;const D=document.createElement("link");D.rel="stylesheet",D.href=x+"?t="+new Date().getTime(),D.id=x,document.head.appendChild(D)})},{immediate:!0}),c.watch(()=>r.js,F=>{!F||F.length===0||F.forEach(x=>{if(document.querySelector(`script[src="${x}"]`)||document.querySelector(`script[id="${x}"]`))return;const D=document.createElement("script");D.src=x+"?t="+new Date().getTime(),D.id=x,document.body.appendChild(D)})},{immediate:!0});const d=c.ref(r.mode);c.watch(()=>o.value,F=>{F&&n("update:element",F)},{immediate:!0});const f=c.ref(""),h=c.ref("#3574e6");c.watch(()=>l.value,F=>{const x=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),D=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");h.value=D||x,n("update:modelValue",F)},{immediate:!0});const C=c.ref(),m=c.ref(),T=c.ref(),Q=c.ref(),b=c.ref(),v=c.ref(),H=c.ref(""),K=c.ref(r.mode==="design");c.watch(()=>r.rules,F=>{a.value=F,i.value&&(o.value=q(i.value))},{immediate:!0});function L(F=void 0){Q.value&&Q.value.generateCover(F)}function E(F){var x,D,V,iA,BA,ae,wA,yA,W,he,VA;b.value=F,F.type===Y.Text&&F.rule.allowWrap&&(Yt.value=!0,fe.value=(VA=(he=(W=(yA=(wA=(ae=(BA=(iA=(V=(D=(x=F.text)==null?void 0:x.replace(/<br>/g,`
53
+ `,o.appendChild(u);const l=i.createElement("style");l.innerHTML=AU,o.appendChild(l);const d=i.createElement("script");d.src="/spa/topic/js/jquery-3.6.0.min.js",d.async=!1,o.appendChild(d);const f=i.createElement("script");f.src="/spa/topic/js/swiper-bundle.min.js",f.async=!1,o.appendChild(f);const h=i.createElement("script");h.src="/spa/topic/js/index.js?t="+new Date().getTime(),h.async=!1,o.appendChild(h);const C=i.body;C.innerHTML=A.htmlContent,A.jsFiles.forEach(T=>{const Q=i.createElement("script");Q.src=T+"?t="+new Date().getTime(),Q.async=!1,C.appendChild(Q)}),t.value=C,c.nextTick(()=>{})};c.watch(t,a=>{if(!a)return;new MutationObserver(()=>{const o=e.value;o&&(o.style.height=`${a.scrollHeight}px`)}).observe(a,{childList:!0,subtree:!0})});const n=async a=>{var l;const i=e.value;if(!i)return;const o=i.contentDocument||((l=i.contentWindow)==null?void 0:l.document);if(!o)return;const u=o.body;if(u)try{await c.nextTick();const d=await zT(u,{x:0,y:0,scrollX:window.scrollX,scrollY:window.scrollY,useCORS:!0,allowTaint:!0,foreignObjectRendering:!1});a?a(d):d.toBlob(f=>{const h=URL.createObjectURL(f);window.open(h,"_blank")})}catch(d){console.error("截图生成失败:",d)}};return c.watch(()=>[A.htmlContent,A.jsFiles,A.cssFiles],r,{deep:!0}),c.onMounted(()=>{r()}),{iframeRef:e,generateCover:n}}});function tU(A,e,t,r,n,a){return c.openBlock(),c.createElementBlock("div",null,[c.createElementVNode("iframe",{ref:"iframeRef",style:c.normalizeStyle([{"min-height":"600px"},A.iframeStyle])},null,4)])}const e0=Ke(eU,[["render",tU],["__scopeId","data-v-75c23f37"]]),rU={class:"flex gp-dsigner"},nU={key:0,class:"flex items-center justify-between border-b"},aU={class:"text-lg font-bold p-2"},iU={class:"text-sm font-thin text-gray-500"},sU={class:"flex-1 overflow-auto"},oU={key:0,class:"flex justify-between items-center border-b p-2"},uU={class:"flex items-center"},cU={class:"p-2"},lU={class:"sticky top-0"},dU={key:0,class:"text-lg font-bold border-b p-2"},fU={class:"text-sm font-thin text-gray-500"},hU={class:"p-2"},BU={key:0,class:"max-h-[500px] overflow-hidden w-[640px] h-[360px] bg-light-100"},gU={key:1,class:"text-gray-500 text-xs mt-2"},pU={key:0},EU={key:1},mU={key:2},CU={key:0,class:"text-red-500 text-xs mt-2"},wU={key:1,class:"text-red-500 text-xs mt-2"},t0=Ke(c.defineComponent({__name:"Designer",props:{mode:{default:"design"},template:{},css:{},js:{},previewWidth:{default:360},uploadByFile:{},icons:{},rules:{},preview:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0}},emits:["update:modelValue","update:element"],setup(A,{expose:e,emit:t}){const r=A,n=t,a=c.ref(r.rules||[]),i=c.ref(r.template),o=c.ref();let u=Eu("",{},!1);const l=c.ref(""),d=c.ref("#3574e6");c.watch(()=>r.template,F=>{i.value=F},{immediate:!0}),c.watch(()=>i.value,F=>{F&&(o.value=q(F))},{immediate:!0}),c.watch(()=>r.css,F=>{F.forEach(x=>{if(document.querySelector(`link[href="${x}"]`)||document.querySelector(`link[id="${x}"]`))return;const D=document.createElement("link");D.rel="stylesheet",D.href=x+"?t="+new Date().getTime(),D.id=x,document.head.appendChild(D)})},{immediate:!0}),c.watch(()=>r.js,F=>{!F||F.length===0||F.forEach(x=>{if(document.querySelector(`script[src="${x}"]`)||document.querySelector(`script[id="${x}"]`))return;const D=document.createElement("script");D.src=x+"?t="+new Date().getTime(),D.id=x,document.body.appendChild(D)})},{immediate:!0});const f=c.ref(r.mode);c.watch(()=>o.value,F=>{F&&n("update:element",F)},{immediate:!0});const h=c.ref("");c.watch(()=>l.value,F=>{const x=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),D=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");d.value=D||x,n("update:modelValue",F)},{immediate:!0});const C=c.ref(),m=c.ref(),T=c.ref(),Q=c.ref(),b=c.ref(),v=c.ref(),H=c.ref(""),K=c.ref(r.mode==="design");c.watch(()=>r.rules,F=>{a.value=F,i.value&&(o.value=q(i.value))},{immediate:!0});function L(F=void 0){Q.value&&Q.value.generateCover(F)}function E(F){var x,D,V,iA,BA,ae,wA,yA,W,he,VA;b.value=F,F.type===Y.Text&&F.rule.allowWrap&&(Yt.value=!0,fe.value=(VA=(he=(W=(yA=(wA=(ae=(BA=(iA=(V=(D=(x=F.text)==null?void 0:x.replace(/<br>/g,`
54
54
  `))==null?void 0:D.replace(/<br\/>/g,`
55
55
  `))==null?void 0:V.replace(/<br \/>/g,`
56
56
  `))==null?void 0:iA.replace(/<br \s*\/>/g,`
57
57
  `))==null?void 0:BA.replace(/<br\s*\/>/g,`
58
- `))==null?void 0:ae.replace(/&nbsp;/g," "))==null?void 0:wA.replace(/&lt;/g,"<"))==null?void 0:yA.replace(/&gt;/g,">"))==null?void 0:W.replace(/&amp;/g,"&"))==null?void 0:he.replace(/&quot;/g,'"'))==null?void 0:VA.replace(/&apos;/g,"'"))}function O(F,x=""){if(x){const D=R(o.value,x);D?v.value=D:v.value=F}else v.value=F}function R(F,x){if(F.xpath===x)return F;if(F.children&&F.children.length)for(const D of F.children){const V=R(D,x);if(V)return V}}function k(F,x){var D,V;return F.tag===x.tag&&((D=F.children)==null?void 0:D.length)===((V=x.children)==null?void 0:V.length)}function eA(F){if(b.value.xpath==F.xpath){if(b.value){if(F.type===Y.Block){var x=!0;const D=R(o.value,b.value.parentxpath||"");if(D&&D.children&&D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){x=!1;return}}),!x){z.error("同级结构不一致,错误配置!");return}}if(b.value.rule=F.rule,b.value.type=F.type,b.value.type===Y.Block){const D=R(o.value,b.value.parentxpath||"");D&&D.children&&(D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){z.error("同级结构不一致,无法配置为块类型");return}}),D.children.forEach(V=>{V.tag===b.value.tag&&(V.rule=F.rule,V.type=F.type)}))}}f.value=new Date().getTime().toString(),z.success("保存成功"),n("update:element",o.value)}}function cA(F){const x=R(o.value,F.xpath||"");x&&(x.rule=F.rule,x.type=F.type,x.children&&F.children&&x.children.forEach(D=>{const V=F.children.find(iA=>iA.xpath===D.xpath);V&&(D.rule=V.rule,D.type=V.type)})),z.success("操作成功"),f.value=new Date().getTime().toString(),n("update:element",o.value)}function hA(F){l.value=F}function q(F){u=Eu(F);const x=u("body").children().toArray().map(BA=>nA(u(BA)));l.value=u("body").html()||"";const D=x[0];if(D){let BA=function(wA,yA,W){var tt;const he=wA.xpath.replace(yA.xpath,W.xpath),VA=(tt=a.value)==null?void 0:tt.find(Xt=>Xt.xpath===he);VA&&(wA.rule=VA.rule,wA.type=VA.type),wA.children&&wA.children.length>0&&wA.children.forEach(Xt=>{BA(Xt,yA,W)})},ae=function(wA){if(wA.children&&wA.children.length>0){const yA=wA.children.find(W=>W.type===Y.Block);yA&&wA.children.forEach(W=>{var he,VA,tt;W.tag===yA.tag&&(W.rule=yA.rule,W.type=yA.type,W.attrs.class=(tt=(VA=(he=W.attrs)==null?void 0:he.class)==null?void 0:VA.replace(/pc:basis-\d\/\d/g,""))==null?void 0:tt.replace(/basis-\d\/\d/g,""),W.children&&W.children.length>0&&W.children.forEach(Xt=>{BA(Xt,W,yA)}))}),wA.children.forEach(W=>{ae(W)})}};ae(D)}const V=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),iA=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");return h.value=iA||V,D}function nA(F,x=""){var wA,yA;function D(W){if(!W||!W[0])return"";const he=[];let VA=W;for(;VA.length&&VA[0].tagName!=="html";){const tt=VA[0].tagName,TU=VA.parent().children(tt).index(VA)+1;he.unshift(`${tt}[${TU}]`),VA=VA.parent()}return"/html/"+he.join("/")}const V=D(F).replace("/html/body[1]",""),iA=F.children().toArray().map(W=>nA(u(W),V)).filter(W=>W.tag!=="br");let BA=(wA=a.value)==null?void 0:wA.find(W=>W.xpath===V),ae=F.contents().not(F.children()).text().trim();return BA&&((yA=BA.rule)!=null&&yA.allowWrap)&&(ae=F.html()),{tag:F[0].tagName,text:ae,attrs:F[0].attribs,children:iA,xpath:V,parentxpath:x,type:(BA==null?void 0:BA.type)||Y.None,rule:(BA==null?void 0:BA.rule)||{}}}function lA(F){const x=R(o.value,F.element.xpath);if(x){const D=c.toRaw(x);D.editText=F.newText}}function dA(F,x=""){function D(V,iA){var wA;const ae=(iA?((wA=R(o.value,iA))==null?void 0:wA.children)||[]:[o.value]).filter(yA=>yA.tag===V.tag).indexOf(V)+1;return`${iA}/${V.tag}[${ae}]`}F.xpath=D(F,x),F.parentxpath=x,(F.children||[]).forEach(V=>dA(V,F.xpath))}function TA({action:F,element:x,newBlock:D}){const V=R(o.value,x.parentxpath||"");if(!V||!V.children)return;const iA=V.children.findIndex(W=>W===x);if(iA===-1){z.error("未找到元素");return}const BA=V.children.length,{minBlock:ae,maxBlock:wA}=x.rule;if((F==="add"||F==="copy")&&BA>=(wA||1/0)){H.value=`无法添加更多块。最大块数量为 ${wA}`,z.error(H.value);return}function yA(W){W.xpath="",W.parentxpath="",W.text=W.editText||W.text,W.editText="",W.children.forEach(he=>{yA(he)})}switch(F){case"add":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("添加成功")}break;case"copy":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("复制成功")}break;case"moveUp":if(iA>0){const[W]=V.children.splice(iA,1);V.children.splice(iA-1,0,W),z.success("前移成功")}else z.error("已经是第一个块,无法前移");break;case"moveDown":if(iA<V.children.length-1){const[W]=V.children.splice(iA,1);V.children.splice(iA+1,0,W),z.success("后移成功")}else z.error("已经是最后一个块,无法后移");break;case"delete":if(BA<=(ae||0)){H.value=`无法删除更多块。最小块数量为 ${ae}`,z.error(H.value);return}V.children.splice(iA,1),z.success("删除成功");break}H.value="",dA(o.value)}function qA(F,x){let D=x.attrs.class.replace(/icon-\S+/g,`icon-${F}`);x.attrs.class=D}function _A(F){const x=F.file,D=R(o.value,F.element.xpath);if(r.uploadByFile)r.uploadByFile(x).then(V=>{V.success&&(D.attrs.src=V.file.url,f.value=new Date().getTime().toString())});else{D.attrs.alt=x.name;const V=URL.createObjectURL(x);D.attrs.src=V,f.value=new Date().getTime().toString()}}function WA(F){const{icon:x}=F,D=R(o.value,F.element.xpath);let V=D.attrs.class.replace(/icon-\S+/g,`icon-${x}`);D.attrs.class=V,f.value=new Date().getTime().toString()}const jA=F=>F.type.startsWith("image/")?!0:(z.error("只能上传图片文件"),!1),OA=c.ref({});function PA(F,x){if(!F||F.length===0)return;const D=F[0];if(x.rule&&(x.rule.minImageWidth||x.rule.maxImageHeight)){if(x.rule.minImageWidth&&D.width<x.rule.minImageWidth){z.error(`图片宽度不能小于 ${x.rule.minImageWidth}px`);return}if(x.rule.maxImageHeight&&D.height<x.rule.maxImageHeight){z.error(`图片高度不能小于 ${x.rule.maxImageHeight}px`);return}}x.rule.minImageWidth&&x.rule.maxImageHeight?(OA.value.width=x.rule.minImageWidth,OA.value.height=x.rule.maxImageHeight,OA.value.aspectRatio=x.rule.minImageWidth/x.rule.maxImageHeight):OA.value={},D&&(x.rule.crop?(D.thumbUrl,C.value.handleOpenCropper(OA.value,D.file,D.name,x)):r.uploadByFile?r.uploadByFile(D.file).then(V=>{V.success&&(x.attrs.src=V.file.url,f.value=new Date().getTime().toString())}):(x.attrs.src=D.thumbUrl,f.value=new Date().getTime().toString()))}const KA=c.ref(r.previewWidth),y=c.ref(360);let _=c.ref(!1),tA=c.ref(""),j=0,CA=0;function et(F){tA.value=F,_.value=!0,j=event.clientX,F==="preview"?CA=KA.value:F==="structure"&&(CA=y.value),window.addEventListener("mousemove",Pr),window.addEventListener("mouseup",Gt)}function Pr(F){if(!_.value)return;const x=F.clientX-j;tA.value==="preview"?KA.value=Math.max(200,CA+x):tA.value==="structure"&&(y.value=Math.max(200,CA-x))}function Gt(){_.value=!1,tA.value="",window.removeEventListener("mousemove",Pr),window.removeEventListener("mouseup",Gt)}const Yt=c.ref(!1),fe=c.ref("");function bs(){if(b.value){if(b.value&&b.value.rule&&b.value.rule.maxText&&fe.value.length>b.value.rule.maxText){z.error(`文本内容超出最大字数 ${b.value.rule.maxText} 个`);return}if(b.value&&b.value.rule&&b.value.rule.minText&&fe.value.length<b.value.rule.minText){z.error(`文本内容不能少于最小字数 ${b.value.rule.minText} 个`);return}f.value=new Date().getTime().toString(),b.value&&b.value.type===Y.Text&&(b.value.text=fe.value,b.value.editText=fe.value),Yt.value=!1}}return e({generateCover:L}),(F,x)=>(c.openBlock(),c.createElementBlock("div",rU,[F.preview?(c.openBlock(),c.createElementBlock("div",{key:0,class:"border-l overflow-auto resize-area",style:c.normalizeStyle({width:KA.value+"px"})},[F.showTitle?(c.openBlock(),c.createElementBlock("div",nU,[c.createElementVNode("h2",aU,[x[6]||(x[6]=c.createTextVNode(" 实时预览 ")),c.createElementVNode("span",iU,c.toDisplayString(KA.value)+"px",1)]),c.createElementVNode("div",{onClick:x[0]||(x[0]=()=>L()),class:"p-2 cursor-pointer text-blue-500"}," 封面 ")])):c.createCommentVNode("",!0),c.createElementVNode("div",null,[l.value?(c.openBlock(),c.createBlock(e0,{key:0,"css-files":F.css,"js-files":F.js,"html-content":l.value,class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":h.value},null,8,["css-files","js-files","html-content","theme-color"])):(c.openBlock(),c.createBlock(e0,{key:1,"css-files":F.css,"js-files":F.js,"html-content":c.unref(u)("body").html(),class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":h.value},null,8,["css-files","js-files","html-content","theme-color"]))])],4)):c.createCommentVNode("",!0),F.preview?(c.openBlock(),c.createElementBlock("div",{key:1,class:"resizer",onMousedown:x[1]||(x[1]=D=>et("preview"))},null,32)):c.createCommentVNode("",!0),c.createElementVNode("div",sU,[F.showTitle?(c.openBlock(),c.createElementBlock("div",oU,[x[8]||(x[8]=c.createElementVNode("h2",{class:"text-lg font-bold"},"结构渲染",-1)),c.createElementVNode("div",uU,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":x[2]||(x[2]=D=>K.value=D),type:"checkbox",id:"showMargin",class:"mr-2"},null,512),[[c.vModelCheckbox,K.value]]),x[7]||(x[7]=c.createElementVNode("label",{for:"showMargin"},"间距",-1))])])):c.createCommentVNode("",!0),c.createElementVNode("div",cU,[o.value?(c.openBlock(),c.createBlock(yp,{key:0,"upload-by-file":F.uploadByFile,cropper:C.value,icon:m.value,upload:T.value,mode:F.mode,icons:F.icons,r:f.value,"show-margin":K.value,element:o.value,selectedElement:b.value,hoveredElement:v.value,onSelectElement:E,onHoverElement:O,onContentUpdated:hA,onUpdateText:lA,onBlockAction:TA,onAddIcon:qA,onUpdateElementRule:cA},null,8,["upload-by-file","cropper","icon","upload","mode","icons","r","show-margin","element","selectedElement","hoveredElement"])):c.createCommentVNode("",!0)])]),d.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:2,class:"resizer",onMousedown:x[3]||(x[3]=D=>et("structure"))},null,32)):c.createCommentVNode("",!0),d.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:3,class:"resize-area",style:c.normalizeStyle({width:y.value+"px"})},[c.createElementVNode("div",lU,[F.showTitle?(c.openBlock(),c.createElementBlock("h2",dU,[x[9]||(x[9]=c.createTextVNode(" 节点属性 ")),c.createElementVNode("span",fU,c.toDisplayString(y.value)+"px",1)])):c.createCommentVNode("",!0),c.createElementVNode("div",hU,[b.value?(c.openBlock(),c.createBlock(Zp,{key:0,element:b.value,onUpdateElement:eA},null,8,["element"])):c.createCommentVNode("",!0)])])],4)):c.createCommentVNode("",!0),c.createVNode(um,{ref_key:"cropperRef",ref:C,onOk:_A},null,512),c.createVNode(mm,{icons:F.icons,ref_key:"iconRef",ref:m,onOk:WA},null,8,["icons"]),c.createVNode(ym,{ref_key:"uploadRef",ref:T,multiple:!1,show:!1,beforeUpload:jA,onChange:PA},{"upload-icon":c.withCtx(()=>x[10]||(x[10]=[c.createElementVNode("div",{class:"p-2"},"上传",-1)])),_:1},512),c.createVNode($u,{title:"多行文本编辑",visible:Yt.value,"onUpdate:visible":x[5]||(x[5]=D=>Yt.value=D),onOk:bs,"mask-closable":!1},{default:c.withCtx(()=>{var D;return[b.value?(c.openBlock(),c.createElementBlock("div",BU,[c.withDirectives(c.createElementVNode("textarea",{"onUpdate:modelValue":x[4]||(x[4]=V=>fe.value=V),class:"w-full h-full text-sm"},null,512),[[c.vModelText,fe.value]])])):c.createCommentVNode("",!0),b.value&&b.value.rule?(c.openBlock(),c.createElementBlock("div",gU,[c.createElementVNode("div",null,[c.createElementVNode("span",null,c.toDisplayString(((D=fe.value)==null?void 0:D.length)||0)+" 字",1),b.value.rule.minText&&b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",pU," / "+c.toDisplayString(b.value.rule.minText||0)+" ~ "+c.toDisplayString(b.value.rule.maxText||0)+" 字 ",1)):b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",EU," / 最少 "+c.toDisplayString(b.value.rule.minText)+" 字",1)):b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",mU," / 最多 "+c.toDisplayString(b.value.rule.maxText)+" 字",1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[b.value.rule.maxText&&fe.value.length>b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",CU," 超出最大字数 "+c.toDisplayString(b.value.rule.maxText)+" 字 ",1)):b.value.rule.minText&&fe.value.length<b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",wU," 不能少于最小字数 "+c.toDisplayString(b.value.rule.minText)+" 字 ",1)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0)]}),_:1},8,["visible"])]))}}),[["__scopeId","data-v-af92f944"]]),bU={install(A){A.component("Designer",t0)}};He.Designer=t0,He.default=bU,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
58
+ `))==null?void 0:ae.replace(/&nbsp;/g," "))==null?void 0:wA.replace(/&lt;/g,"<"))==null?void 0:yA.replace(/&gt;/g,">"))==null?void 0:W.replace(/&amp;/g,"&"))==null?void 0:he.replace(/&quot;/g,'"'))==null?void 0:VA.replace(/&apos;/g,"'"))}function O(F,x=""){if(x){const D=R(o.value,x);D?v.value=D:v.value=F}else v.value=F}function R(F,x){if(F.xpath===x)return F;if(F.children&&F.children.length)for(const D of F.children){const V=R(D,x);if(V)return V}}function k(F,x){var D,V;return F.tag===x.tag&&((D=F.children)==null?void 0:D.length)===((V=x.children)==null?void 0:V.length)}function eA(F){if(b.value.xpath==F.xpath){if(b.value){if(F.type===Y.Block){var x=!0;const D=R(o.value,b.value.parentxpath||"");if(D&&D.children&&D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){x=!1;return}}),!x){z.error("同级结构不一致,错误配置!");return}}if(b.value.rule=F.rule,b.value.type=F.type,b.value.type===Y.Block){const D=R(o.value,b.value.parentxpath||"");D&&D.children&&(D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){z.error("同级结构不一致,无法配置为块类型");return}}),D.children.forEach(V=>{V.tag===b.value.tag&&(V.rule=F.rule,V.type=F.type)}))}}h.value=new Date().getTime().toString(),z.success("保存成功"),n("update:element",o.value)}}function cA(F){const x=R(o.value,F.xpath||"");x&&(x.rule=F.rule,x.type=F.type,x.children&&F.children&&x.children.forEach(D=>{const V=F.children.find(iA=>iA.xpath===D.xpath);V&&(D.rule=V.rule,D.type=V.type)})),z.success("操作成功"),h.value=new Date().getTime().toString(),n("update:element",o.value)}function hA(F){l.value=F}function q(F){u=Eu(F);const x=u("body").children().toArray().map(BA=>nA(u(BA)));l.value=u("body").html()||"";const D=x[0];if(D){let BA=function(wA,yA,W){var tt;const he=wA.xpath.replace(yA.xpath,W.xpath),VA=(tt=a.value)==null?void 0:tt.find(Xt=>Xt.xpath===he);VA&&(wA.rule=VA.rule,wA.type=VA.type),wA.children&&wA.children.length>0&&wA.children.forEach(Xt=>{BA(Xt,yA,W)})},ae=function(wA){if(wA.children&&wA.children.length>0){const yA=wA.children.find(W=>W.type===Y.Block);yA&&wA.children.forEach(W=>{var he,VA,tt;W.tag===yA.tag&&(W.rule=yA.rule,W.type=yA.type,W.attrs.class=(tt=(VA=(he=W.attrs)==null?void 0:he.class)==null?void 0:VA.replace(/pc:basis-\d\/\d/g,""))==null?void 0:tt.replace(/basis-\d\/\d/g,""),W.children&&W.children.length>0&&W.children.forEach(Xt=>{BA(Xt,W,yA)}))}),wA.children.forEach(W=>{ae(W)})}};ae(D)}const V=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),iA=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");return d.value=iA||V,D}function nA(F,x=""){var wA,yA;function D(W){if(!W||!W[0])return"";const he=[];let VA=W;for(;VA.length&&VA[0].tagName!=="html";){const tt=VA[0].tagName,TU=VA.parent().children(tt).index(VA)+1;he.unshift(`${tt}[${TU}]`),VA=VA.parent()}return"/html/"+he.join("/")}const V=D(F).replace("/html/body[1]",""),iA=F.children().toArray().map(W=>nA(u(W),V)).filter(W=>W.tag!=="br");let BA=(wA=a.value)==null?void 0:wA.find(W=>W.xpath===V),ae=F.contents().not(F.children()).text().trim();return BA&&((yA=BA.rule)!=null&&yA.allowWrap)&&(ae=F.html()),{tag:F[0].tagName,text:ae,attrs:F[0].attribs,children:iA,xpath:V,parentxpath:x,type:(BA==null?void 0:BA.type)||Y.None,rule:(BA==null?void 0:BA.rule)||{}}}function lA(F){const x=R(o.value,F.element.xpath);if(x){const D=c.toRaw(x);D.editText=F.newText}}function dA(F,x=""){function D(V,iA){var wA;const ae=(iA?((wA=R(o.value,iA))==null?void 0:wA.children)||[]:[o.value]).filter(yA=>yA.tag===V.tag).indexOf(V)+1;return`${iA}/${V.tag}[${ae}]`}F.xpath=D(F,x),F.parentxpath=x,(F.children||[]).forEach(V=>dA(V,F.xpath))}function TA({action:F,element:x,newBlock:D}){const V=R(o.value,x.parentxpath||"");if(!V||!V.children)return;const iA=V.children.findIndex(W=>W===x);if(iA===-1){z.error("未找到元素");return}const BA=V.children.length,{minBlock:ae,maxBlock:wA}=x.rule;if((F==="add"||F==="copy")&&BA>=(wA||1/0)){H.value=`无法添加更多块。最大块数量为 ${wA}`,z.error(H.value);return}function yA(W){W.xpath="",W.parentxpath="",W.text=W.editText||W.text,W.editText="",W.children.forEach(he=>{yA(he)})}switch(F){case"add":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("添加成功")}break;case"copy":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("复制成功")}break;case"moveUp":if(iA>0){const[W]=V.children.splice(iA,1);V.children.splice(iA-1,0,W),z.success("前移成功")}else z.error("已经是第一个块,无法前移");break;case"moveDown":if(iA<V.children.length-1){const[W]=V.children.splice(iA,1);V.children.splice(iA+1,0,W),z.success("后移成功")}else z.error("已经是最后一个块,无法后移");break;case"delete":if(BA<=(ae||0)){H.value=`无法删除更多块。最小块数量为 ${ae}`,z.error(H.value);return}V.children.splice(iA,1),z.success("删除成功");break}H.value="",dA(o.value)}function qA(F,x){let D=x.attrs.class.replace(/icon-\S+/g,`icon-${F}`);x.attrs.class=D}function _A(F){const x=F.file,D=R(o.value,F.element.xpath);if(r.uploadByFile)r.uploadByFile(x).then(V=>{V.success&&(D.attrs.src=V.file.url,h.value=new Date().getTime().toString())});else{D.attrs.alt=x.name;const V=URL.createObjectURL(x);D.attrs.src=V,h.value=new Date().getTime().toString()}}function WA(F){const{icon:x}=F,D=R(o.value,F.element.xpath);let V=D.attrs.class.replace(/icon-\S+/g,`icon-${x}`);D.attrs.class=V,h.value=new Date().getTime().toString()}const jA=F=>F.type.startsWith("image/")?!0:(z.error("只能上传图片文件"),!1),OA=c.ref({});function PA(F,x){if(!F||F.length===0)return;const D=F[0];if(x.rule&&(x.rule.minImageWidth||x.rule.maxImageHeight)){if(x.rule.minImageWidth&&D.width<x.rule.minImageWidth){z.error(`图片宽度不能小于 ${x.rule.minImageWidth}px`);return}if(x.rule.maxImageHeight&&D.height<x.rule.maxImageHeight){z.error(`图片高度不能小于 ${x.rule.maxImageHeight}px`);return}}x.rule.minImageWidth&&x.rule.maxImageHeight?(OA.value.width=x.rule.minImageWidth,OA.value.height=x.rule.maxImageHeight,OA.value.aspectRatio=x.rule.minImageWidth/x.rule.maxImageHeight):OA.value={},D&&(x.rule.crop?(D.thumbUrl,C.value.handleOpenCropper(OA.value,D.file,D.name,x)):r.uploadByFile?r.uploadByFile(D.file).then(V=>{V.success&&(x.attrs.src=V.file.url,h.value=new Date().getTime().toString())}):(x.attrs.src=D.thumbUrl,h.value=new Date().getTime().toString()))}const KA=c.ref(r.previewWidth),y=c.ref(360);let _=c.ref(!1),tA=c.ref(""),j=0,CA=0;function et(F){tA.value=F,_.value=!0,j=event.clientX,F==="preview"?CA=KA.value:F==="structure"&&(CA=y.value),window.addEventListener("mousemove",Pr),window.addEventListener("mouseup",Gt)}function Pr(F){if(!_.value)return;const x=F.clientX-j;tA.value==="preview"?KA.value=Math.max(200,CA+x):tA.value==="structure"&&(y.value=Math.max(200,CA-x))}function Gt(){_.value=!1,tA.value="",window.removeEventListener("mousemove",Pr),window.removeEventListener("mouseup",Gt)}const Yt=c.ref(!1),fe=c.ref("");function bs(){if(b.value){if(b.value&&b.value.rule&&b.value.rule.maxText&&fe.value.length>b.value.rule.maxText){z.error(`文本内容超出最大字数 ${b.value.rule.maxText} 个`);return}if(b.value&&b.value.rule&&b.value.rule.minText&&fe.value.length<b.value.rule.minText){z.error(`文本内容不能少于最小字数 ${b.value.rule.minText} 个`);return}h.value=new Date().getTime().toString(),b.value&&b.value.type===Y.Text&&(b.value.text=fe.value,b.value.editText=fe.value),Yt.value=!1}}return e({generateCover:L}),(F,x)=>(c.openBlock(),c.createElementBlock("div",rU,[F.preview?(c.openBlock(),c.createElementBlock("div",{key:0,class:"border-l overflow-auto resize-area",style:c.normalizeStyle({width:KA.value+"px"})},[F.showTitle?(c.openBlock(),c.createElementBlock("div",nU,[c.createElementVNode("h2",aU,[x[6]||(x[6]=c.createTextVNode(" 实时预览 ")),c.createElementVNode("span",iU,c.toDisplayString(KA.value)+"px",1)]),c.createElementVNode("div",{onClick:x[0]||(x[0]=()=>L()),class:"p-2 cursor-pointer text-blue-500"}," 封面 ")])):c.createCommentVNode("",!0),c.createElementVNode("div",null,[l.value?(c.openBlock(),c.createBlock(e0,{key:0,"css-files":F.css,"js-files":F.js,"html-content":l.value,class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":d.value},null,8,["css-files","js-files","html-content","theme-color"])):(c.openBlock(),c.createBlock(e0,{key:1,"css-files":F.css,"js-files":F.js,"html-content":c.unref(u)("body").html(),class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":d.value},null,8,["css-files","js-files","html-content","theme-color"]))])],4)):c.createCommentVNode("",!0),F.preview?(c.openBlock(),c.createElementBlock("div",{key:1,class:"resizer",onMousedown:x[1]||(x[1]=D=>et("preview"))},null,32)):c.createCommentVNode("",!0),c.createElementVNode("div",sU,[F.showTitle?(c.openBlock(),c.createElementBlock("div",oU,[x[8]||(x[8]=c.createElementVNode("h2",{class:"text-lg font-bold"},"结构渲染",-1)),c.createElementVNode("div",uU,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":x[2]||(x[2]=D=>K.value=D),type:"checkbox",id:"showMargin",class:"mr-2"},null,512),[[c.vModelCheckbox,K.value]]),x[7]||(x[7]=c.createElementVNode("label",{for:"showMargin"},"间距",-1))])])):c.createCommentVNode("",!0),c.createElementVNode("div",cU,[o.value?(c.openBlock(),c.createBlock(yp,{key:0,"upload-by-file":F.uploadByFile,cropper:C.value,icon:m.value,upload:T.value,mode:F.mode,icons:F.icons,r:h.value,"show-margin":K.value,element:o.value,selectedElement:b.value,hoveredElement:v.value,onSelectElement:E,onHoverElement:O,onContentUpdated:hA,onUpdateText:lA,onBlockAction:TA,onAddIcon:qA,onUpdateElementRule:cA},null,8,["upload-by-file","cropper","icon","upload","mode","icons","r","show-margin","element","selectedElement","hoveredElement"])):c.createCommentVNode("",!0)])]),f.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:2,class:"resizer",onMousedown:x[3]||(x[3]=D=>et("structure"))},null,32)):c.createCommentVNode("",!0),f.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:3,class:"resize-area",style:c.normalizeStyle({width:y.value+"px"})},[c.createElementVNode("div",lU,[F.showTitle?(c.openBlock(),c.createElementBlock("h2",dU,[x[9]||(x[9]=c.createTextVNode(" 节点属性 ")),c.createElementVNode("span",fU,c.toDisplayString(y.value)+"px",1)])):c.createCommentVNode("",!0),c.createElementVNode("div",hU,[b.value?(c.openBlock(),c.createBlock(Zp,{key:0,element:b.value,onUpdateElement:eA},null,8,["element"])):c.createCommentVNode("",!0)])])],4)):c.createCommentVNode("",!0),c.createVNode(um,{ref_key:"cropperRef",ref:C,onOk:_A},null,512),c.createVNode(mm,{icons:F.icons,ref_key:"iconRef",ref:m,onOk:WA},null,8,["icons"]),c.createVNode(ym,{ref_key:"uploadRef",ref:T,multiple:!1,show:!1,beforeUpload:jA,onChange:PA},{"upload-icon":c.withCtx(()=>x[10]||(x[10]=[c.createElementVNode("div",{class:"p-2"},"上传",-1)])),_:1},512),c.createVNode($u,{title:"多行文本编辑",visible:Yt.value,"onUpdate:visible":x[5]||(x[5]=D=>Yt.value=D),onOk:bs,"mask-closable":!1},{default:c.withCtx(()=>{var D;return[b.value?(c.openBlock(),c.createElementBlock("div",BU,[c.withDirectives(c.createElementVNode("textarea",{"onUpdate:modelValue":x[4]||(x[4]=V=>fe.value=V),class:"w-full h-full text-sm"},null,512),[[c.vModelText,fe.value]])])):c.createCommentVNode("",!0),b.value&&b.value.rule?(c.openBlock(),c.createElementBlock("div",gU,[c.createElementVNode("div",null,[c.createElementVNode("span",null,c.toDisplayString(((D=fe.value)==null?void 0:D.length)||0)+" 字",1),b.value.rule.minText&&b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",pU," / "+c.toDisplayString(b.value.rule.minText||0)+" ~ "+c.toDisplayString(b.value.rule.maxText||0)+" 字 ",1)):b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",EU," / 最少 "+c.toDisplayString(b.value.rule.minText)+" 字",1)):b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",mU," / 最多 "+c.toDisplayString(b.value.rule.maxText)+" 字",1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[b.value.rule.maxText&&fe.value.length>b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",CU," 超出最大字数 "+c.toDisplayString(b.value.rule.maxText)+" 字 ",1)):b.value.rule.minText&&fe.value.length<b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",wU," 不能少于最小字数 "+c.toDisplayString(b.value.rule.minText)+" 字 ",1)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0)]}),_:1},8,["visible"])]))}}),[["__scopeId","data-v-952e15a9"]]),bU={install(A){A.component("Designer",t0)}};He.Designer=t0,He.default=bU,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -6,4 +6,4 @@
6
6
  * Released under the MIT license
7
7
  *
8
8
  * Date: 2024-04-21T07:43:02.731Z
9
- */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.before{position:relative;overflow:hidden}.before img{position:absolute}.upload-wrapper[data-v-08babff9]{max-width:500px}.file-list[data-v-08babff9]{max-height:300px;overflow-y:auto}.gp-dsigner[data-v-af92f944]{font-family:微软雅黑}.resize-area[data-v-af92f944]{transition:width .1s ease}.resizer[data-v-af92f944]{width:6px;background:#f0f0f0;cursor:col-resize;display:flex;justify-content:center;align-items:center;position:relative;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}textarea[data-v-af92f944]{resize:none;border:none;outline:none;background:transparent}.gp-dsigner{width:100%}:root{--gp-designer-theme-color: #3574e6}.gp-designer-theme-text,.gp-designer-theme-icon{color:var(--gp-designer-theme-color)!important}.gp-designer-theme-button{background-color:var(--gp-designer-theme-color)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 1200px){.container{max-width:1200px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-top-6{top:-1.5rem}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-\[99999\]{z-index:99999}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\[100vh\]{height:100vh}.h-\[200px\]{height:200px}.h-\[300px\]{height:300px}.h-\[360px\]{height:360px}.h-\[40px\]{height:40px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100vw\]{width:100vw}.w-\[110px\]{width:110px}.w-\[270px\]{width:270px}.w-\[300px\]{width:300px}.w-\[640px\]{width:640px}.w-\[700px\]{width:700px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.flex-none{flex:none}.basis-1\/10{flex-basis:10%}.basis-1\/11{flex-basis:9.09090909%}.basis-1\/12{flex-basis:8.33333333%}.basis-1\/2{flex-basis:50%}.basis-1\/3{flex-basis:33.333333%}.basis-1\/4{flex-basis:25%}.basis-1\/5{flex-basis:20%}.basis-1\/6{flex-basis:16.666667%}.basis-1\/7{flex-basis:14.2857143%}.basis-1\/8{flex-basis:12.5%}.basis-1\/9{flex-basis:11.1111111%}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[\#DEDEDE\]{--tw-border-opacity: 1;border-color:rgb(222 222 222 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-\[\#474AFF\]{--tw-bg-opacity: 1;background-color:rgb(71 74 255 / var(--tw-bg-opacity))}.bg-\[\#f4f8ff\]{--tw-bg-opacity: 1;background-color:rgb(244 248 255 / var(--tw-bg-opacity))}.bg-\[rgba\(0\,0\,0\,0\.7\)\]{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-500\/80{background-color:#3b82f6cc}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-green-500\/80{background-color:#22c55ecc}.bg-purple-400\/80{background-color:#c084fccc}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500\/80{background-color:#ef4444cc}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pr-\[70px\]{padding-right:70px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\!text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.text-\[\#333\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.text-\[\#666\]{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-\[\#999\]{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:z-10:hover{z-index:10}.hover\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.hover\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}@media (min-width: 1200px){.pc\:box-border{box-sizing:border-box}.pc\:basis-1\/10{flex-basis:10%}.pc\:basis-1\/11{flex-basis:9.09090909%}.pc\:basis-1\/12{flex-basis:8.33333333%}.pc\:basis-1\/2{flex-basis:50%}.pc\:basis-1\/3{flex-basis:33.333333%}.pc\:basis-1\/4{flex-basis:25%}.pc\:basis-1\/5{flex-basis:20%}.pc\:basis-1\/6{flex-basis:16.666667%}.pc\:basis-1\/7{flex-basis:14.2857143%}.pc\:basis-1\/8{flex-basis:12.5%}.pc\:basis-1\/9{flex-basis:11.1111111%}.pc\:basis-full{flex-basis:100%}.pc\:justify-normal{justify-content:normal}.pc\:justify-center{justify-content:center}}
9
+ */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.before{position:relative;overflow:hidden}.before img{position:absolute}.upload-wrapper[data-v-08babff9]{max-width:500px}.file-list[data-v-08babff9]{max-height:300px;overflow-y:auto}.gp-dsigner[data-v-952e15a9]{font-family:微软雅黑}.resize-area[data-v-952e15a9]{transition:width .1s ease}.resizer[data-v-952e15a9]{width:6px;background:#f0f0f0;cursor:col-resize;display:flex;justify-content:center;align-items:center;position:relative;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}textarea[data-v-952e15a9]{resize:none;border:none;outline:none;background:transparent}.gp-dsigner{width:100%}:root{--gp-designer-theme-color: #3574e6}.gp-designer-theme-text,.gp-designer-theme-icon{color:var(--gp-designer-theme-color)!important}.gp-designer-theme-button{background-color:var(--gp-designer-theme-color)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 1200px){.container{max-width:1200px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-top-6{top:-1.5rem}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-\[99999\]{z-index:99999}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\[100vh\]{height:100vh}.h-\[200px\]{height:200px}.h-\[300px\]{height:300px}.h-\[360px\]{height:360px}.h-\[40px\]{height:40px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100vw\]{width:100vw}.w-\[110px\]{width:110px}.w-\[270px\]{width:270px}.w-\[300px\]{width:300px}.w-\[640px\]{width:640px}.w-\[700px\]{width:700px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.flex-none{flex:none}.basis-1\/10{flex-basis:10%}.basis-1\/11{flex-basis:9.09090909%}.basis-1\/12{flex-basis:8.33333333%}.basis-1\/2{flex-basis:50%}.basis-1\/3{flex-basis:33.333333%}.basis-1\/4{flex-basis:25%}.basis-1\/5{flex-basis:20%}.basis-1\/6{flex-basis:16.666667%}.basis-1\/7{flex-basis:14.2857143%}.basis-1\/8{flex-basis:12.5%}.basis-1\/9{flex-basis:11.1111111%}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[\#DEDEDE\]{--tw-border-opacity: 1;border-color:rgb(222 222 222 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-\[\#474AFF\]{--tw-bg-opacity: 1;background-color:rgb(71 74 255 / var(--tw-bg-opacity))}.bg-\[\#f4f8ff\]{--tw-bg-opacity: 1;background-color:rgb(244 248 255 / var(--tw-bg-opacity))}.bg-\[rgba\(0\,0\,0\,0\.7\)\]{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-500\/80{background-color:#3b82f6cc}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-green-500\/80{background-color:#22c55ecc}.bg-purple-400\/80{background-color:#c084fccc}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500\/80{background-color:#ef4444cc}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pr-\[70px\]{padding-right:70px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\!text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.text-\[\#333\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.text-\[\#666\]{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-\[\#999\]{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:z-10:hover{z-index:10}.hover\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.hover\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}@media (min-width: 1200px){.pc\:box-border{box-sizing:border-box}.pc\:basis-1\/10{flex-basis:10%}.pc\:basis-1\/11{flex-basis:9.09090909%}.pc\:basis-1\/12{flex-basis:8.33333333%}.pc\:basis-1\/2{flex-basis:50%}.pc\:basis-1\/3{flex-basis:33.333333%}.pc\:basis-1\/4{flex-basis:25%}.pc\:basis-1\/5{flex-basis:20%}.pc\:basis-1\/6{flex-basis:16.666667%}.pc\:basis-1\/7{flex-basis:14.2857143%}.pc\:basis-1\/8{flex-basis:12.5%}.pc\:basis-1\/9{flex-basis:11.1111111%}.pc\:basis-full{flex-basis:100%}.pc\:justify-normal{justify-content:normal}.pc\:justify-center{justify-content:center}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gp-designer",
3
3
  "private": false,
4
- "version": "1.0.95",
4
+ "version": "1.0.97",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "gp",
@@ -1,59 +0,0 @@
1
- @font-face {
2
- font-family: "iconfont"; /* Project id 4744266 */
3
- src: url('//at.alicdn.com/t/c/font_4744266_ms3ivlve0de.woff2?t=1731548088377') format('woff2'),
4
- url('//at.alicdn.com/t/c/font_4744266_ms3ivlve0de.woff?t=1731548088377') format('woff'),
5
- url('//at.alicdn.com/t/c/font_4744266_ms3ivlve0de.ttf?t=1731548088377') format('truetype');
6
- }
7
-
8
- .iconfont {
9
- font-family: "iconfont" !important;
10
- font-size: 16px;
11
- font-style: normal;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- .icon-a-jingshixian:before {
17
- content: "\e6ca";
18
- }
19
-
20
- .icon-dianhua:before {
21
- content: "\e6c9";
22
- }
23
-
24
- .icon-jingshi:before {
25
- content: "\e6c0";
26
- }
27
-
28
- .icon-paihou:before {
29
- content: "\e6c1";
30
- }
31
-
32
- .icon-SEOshezhi:before {
33
- content: "\e6c2";
34
- }
35
-
36
- .icon-shangyibu:before {
37
- content: "\e6c3";
38
- }
39
-
40
- .icon-a-tianjiamian:before {
41
- content: "\e6c4";
42
- }
43
-
44
- .icon-xiayibu:before {
45
- content: "\e6c5";
46
- }
47
-
48
- .icon-paiqian:before {
49
- content: "\e6c6";
50
- }
51
-
52
- .icon-shanchu:before {
53
- content: "\e6c7";
54
- }
55
-
56
- .icon-a-tianjiaxian:before {
57
- content: "\e6c8";
58
- }
59
-