template-designer 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7089,9 +7089,9 @@ const gb = /* @__PURE__ */ Mt(hb, [["render", pb]]), Xg = [
7089
7089
  ], qg = Xg.flatMap((e) => e.components);
7090
7090
  async function Bb(e) {
7091
7091
  try {
7092
- return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-d002a7b5.mjs"), "./props/rfid.js": () => import("./rfid-2ca63ade.mjs") }), `./props/${e}.js`)).default;
7092
+ return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-85b278d3.mjs"), "./props/rfid.js": () => import("./rfid-ecb52f96.mjs") }), `./props/${e}.js`)).default;
7093
7093
  } catch {
7094
- return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-d002a7b5.mjs")).default;
7094
+ return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-85b278d3.mjs")).default;
7095
7095
  }
7096
7096
  }
7097
7097
  function mb(e = {}, A = {}) {
@@ -22806,7 +22806,7 @@ function(e) {
22806
22806
  */
22807
22807
  function(e) {
22808
22808
  function A() {
22809
- return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-d457607a.mjs")).catch(function(t) {
22809
+ return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-a997993f.mjs")).catch(function(t) {
22810
22810
  return Promise.reject(new Error("Could not load canvg: " + t));
22811
22811
  }).then(function(t) {
22812
22812
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-ebfd564b.mjs";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-606c1475.mjs";
2
2
  import "vue";
3
3
  var ht = function(a) {
4
4
  return a && a.Math === Math && a;
@@ -1,4 +1,4 @@
1
- import { R as e } from "./index-ebfd564b.mjs";
1
+ import { R as e } from "./index-606c1475.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
@@ -271,7 +271,7 @@ const t = {
271
271
  label: "字段名称",
272
272
  type: "select",
273
273
  optionsKey: "fields",
274
- default: "goods_sn",
274
+ default: "",
275
275
  layout: "full"
276
276
  },
277
277
  {
@@ -1,4 +1,4 @@
1
- import { R as e } from "./index-ebfd564b.mjs";
1
+ import { R as e } from "./index-606c1475.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
@@ -198,7 +198,7 @@ const t = {
198
198
  label: "字段名称",
199
199
  type: "select",
200
200
  optionsKey: "fields",
201
- default: "goods_sn",
201
+ default: "",
202
202
  layout: "full"
203
203
  },
204
204
  {
@@ -1,4 +1,4 @@
1
- import { T as t, f as s, i as d, h as o, d as n, b as l, e as g, a as p, r as m } from "./index-ebfd564b.mjs";
1
+ import { T as t, f as s, i as d, h as o, d as n, b as l, e as g, a as p, r as m } from "./index-606c1475.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  t as default,
@@ -311,7 +311,7 @@ end`};e.events.push(["putFont",function(a){(function(i){var o=i.font,s=i.out,l=i
311
311
  `,r!==1){const U=document.createElement("div");for(U.style.cssText=`
312
312
  width: ${s}mm; height: ${l}mm; position: relative;
313
313
  transform: scale(${r}); transform-origin: top left;
314
- `;C.firstChild;)U.appendChild(C.firstChild);C.appendChild(U)}return C.outerHTML}finally{if(!(i&&window[w])){try{f&&f.unmount&&f.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}function wl(t,e=96){return Math.round(t*e/25.4)}async function qy(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,height:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,format:"png",quality:.9,returnDataUrl:!0,dpi:96},...e};if(r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const n=wl(r.width,r.dpi),a=wl(r.height,r.dpi),i=wl(r.margin,r.dpi);if(!["L","M","Q","H"].includes(r.QRCodeErrorLevel))throw new Error("错误纠正级别必须是 L、M、Q、H 之一");if(!["png","jpeg","svg"].includes(r.format))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const o={L:"low",M:"medium",Q:"quartile",H:"high"},s={width:n,margin:i,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:o[r.QRCodeErrorLevel]};let l;if(r.format==="svg"){l=await wa.toString(t,{...s,type:"svg"});const u=new DOMParser().parseFromString(l,"image/svg+xml").documentElement;u.setAttribute("width",n),u.setAttribute("height",a),u.setAttribute("viewBox",`0 0 ${n} ${a}`),u.setAttribute("preserveAspectRatio","none");const d=new XMLSerializer().serializeToString(u),g=btoa(decodeURIComponent(encodeURIComponent(d)));return r.returnDataUrl?`data:image/svg+xml;base64,${g}`:g}else{const u=r.format==="jpeg"?"image/jpeg":"image/png";if(l=await wa.toDataURL(t,{...s,type:u,quality:r.format==="jpeg"?r.quality:void 0}),r.returnDataUrl)return l;{const d=l.indexOf(",");return d!==-1?l.substring(d+1):l}}}catch(o){throw new Error(`二维码生成失败: ${o.message}`)}}async function fP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>qy(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成二维码失败: ${r.message}`)}}async function hP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,dpi:96},...e},n=wl(r.width,r.dpi),a=wl(r.margin,r.dpi);try{const i={L:"low",M:"medium",Q:"quartile",H:"high"};return await wa.toCanvas(t,{width:n,margin:a,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:i[r.QRCodeErrorLevel]})}catch(i){throw new Error(`二维码Canvas生成失败: ${i.message}`)}}function Oa(t,e=96){return Math.round(t*e/25.4)}function $y(t,e,A){const r=e/96,n=Math.max(1,Math.round(r*1.5)),i={CODE128:1,CODE39:1,EAN13:1,EAN8:1,UPC:1,ITF14:2,MSI:1,pharmacode:1,codabar:1}[A]||1,o=Math.max(i,n);return o%2===0?o+1:o}async function e5(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,outputFormat:"png",quality:.95,returnDataUrl:!0,dpi:300},...e};if(["CODE128","CODE39","EAN13","EAN8","UPC","ITF14","MSI","pharmacode","codabar"].includes(r.CodeType)||(r.CodeType="CODE128"),r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const a=Oa(r.width,r.dpi),i=Oa(r.height,r.dpi),o=Oa(r.textMargin,r.dpi),s=Oa(r.fontSize,r.dpi);if(!["png","jpeg","svg"].includes(r.outputFormat))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",a),l.setAttribute("height",i),l.setAttribute("viewBox",`0 0 ${a} ${i}`),l.setAttribute("shape-rendering","geometricPrecision"),l.setAttribute("text-rendering","geometricPrecision"),l.setAttribute("image-rendering","optimizeQuality");const u=$y(a,r.dpi,r.CodeType);if(qd(l,t,{format:r.CodeType,width:u,height:i-(r.displayValue?s+o:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:o,font:r.font,fontSize:s,lineColor:r.LineColor,background:r.background,margin:0}),r.outputFormat==="svg"){const d=new XMLSerializer().serializeToString(l);return r.returnDataUrl?`data:image/svg+xml;base64,${btoa(decodeURIComponent(encodeURIComponent(d)))}`:d}else{const d=await dP(l,a,i,r.dpi),g=r.outputFormat==="jpeg"?"image/jpeg":"image/png",f=d.toDataURL(g,r.outputFormat==="jpeg"?r.quality:void 0);if(r.returnDataUrl)return f;{const w=f.indexOf(",");return w!==-1?f.substring(w+1):f}}}catch(l){throw new Error(`条形码生成失败: ${l.message}`)}}async function dP(t,e,A,r=300){return new Promise((n,a)=>{const i=Math.max(2,r/96),o=document.createElement("canvas"),s=o.getContext("2d");o.width=e*i,o.height=A*i,o.style.width=e+"px",o.style.height=A+"px",s.imageSmoothingEnabled=!0,s.imageSmoothingQuality="high",s.translate(.5,.5),s.textRenderingOptimization="optimizeQuality",s.textBaseline="middle";const l=new Image,u=new XMLSerializer().serializeToString(t),d=new Blob([u],{type:"image/svg+xml;charset=utf-8"}),g=URL.createObjectURL(d);l.onload=()=>{try{s.drawImage(l,0,0,e*i,A*i),URL.revokeObjectURL(g),n(o)}catch(f){URL.revokeObjectURL(g),a(f)}},l.onerror=()=>{URL.revokeObjectURL(g),a(new Error("SVG转换为Canvas失败"))},l.src=g})}async function pP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>e5(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成条形码失败: ${r.message}`)}}function gP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,dpi:300},...e},n=Oa(r.width,r.dpi),a=Oa(r.height,r.dpi),i=Oa(r.textMargin,r.dpi),o=Oa(r.fontSize,r.dpi);try{const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("width",n),s.setAttribute("height",a),s.setAttribute("viewBox",`0 0 ${n} ${a}`),s.setAttribute("shape-rendering","geometricPrecision"),s.setAttribute("text-rendering","geometricPrecision"),s.setAttribute("image-rendering","optimizeQuality");const l=$y(n,r.dpi,r.CodeType);return qd(s,t,{format:r.CodeType,width:l,height:a-(r.displayValue?o+i:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:i,font:r.font,fontSize:o,lineColor:r.LineColor,background:r.background,margin:0}),new XMLSerializer().serializeToString(s)}catch(s){throw new Error(`条形码SVG生成失败: ${s.message}`)}}Vo.install=t=>{t.component(Vo.name||"TemplateDesigner",Vo)};const t5=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.8,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于文本开头固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",desc:"可预知的内容尽量不换行,避免因为换行导致打印效果不佳",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:[{label:"0°",value:0},{label:"90°",value:90}],default:0,layout:"half"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,allowRotation:!1,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half",hide:!0}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,allowRotation:!1,x1:0,y1:0,x2:15,y2:0,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),mP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:2.8,rotation:0,allowRotation:!1,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:8,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",desc:"换行需要文本高度空间足够,比如一行高度是4.5mm,比如实际打印内容要两行,那文本预设高度至少是9mm",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,layout:"half"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",lockAspectRatio:!0,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,allowRotation:!1,lockAspectRatio:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function ka(t){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(t)}function Op(t,e){return Op=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Op(t,e)}function vP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(t,e,A){return vP()?rf=Reflect.construct:rf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Op(l,i.prototype),l},rf.apply(null,arguments)}function wn(t){return BP(t)||wP(t)||yP(t)||bP()}function BP(t){if(Array.isArray(t))return kp(t)}function wP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yP(t,e){if(t){if(typeof t=="string")return kp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return kp(t,e)}}function kp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function bP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
314
+ `;C.firstChild;)U.appendChild(C.firstChild);C.appendChild(U)}return C.outerHTML}finally{if(!(i&&window[w])){try{f&&f.unmount&&f.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}function wl(t,e=96){return Math.round(t*e/25.4)}async function qy(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,height:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,format:"png",quality:.9,returnDataUrl:!0,dpi:96},...e};if(r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const n=wl(r.width,r.dpi),a=wl(r.height,r.dpi),i=wl(r.margin,r.dpi);if(!["L","M","Q","H"].includes(r.QRCodeErrorLevel))throw new Error("错误纠正级别必须是 L、M、Q、H 之一");if(!["png","jpeg","svg"].includes(r.format))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const o={L:"low",M:"medium",Q:"quartile",H:"high"},s={width:n,margin:i,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:o[r.QRCodeErrorLevel]};let l;if(r.format==="svg"){l=await wa.toString(t,{...s,type:"svg"});const u=new DOMParser().parseFromString(l,"image/svg+xml").documentElement;u.setAttribute("width",n),u.setAttribute("height",a),u.setAttribute("viewBox",`0 0 ${n} ${a}`),u.setAttribute("preserveAspectRatio","none");const d=new XMLSerializer().serializeToString(u),g=btoa(decodeURIComponent(encodeURIComponent(d)));return r.returnDataUrl?`data:image/svg+xml;base64,${g}`:g}else{const u=r.format==="jpeg"?"image/jpeg":"image/png";if(l=await wa.toDataURL(t,{...s,type:u,quality:r.format==="jpeg"?r.quality:void 0}),r.returnDataUrl)return l;{const d=l.indexOf(",");return d!==-1?l.substring(d+1):l}}}catch(o){throw new Error(`二维码生成失败: ${o.message}`)}}async function fP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>qy(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成二维码失败: ${r.message}`)}}async function hP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,dpi:96},...e},n=wl(r.width,r.dpi),a=wl(r.margin,r.dpi);try{const i={L:"low",M:"medium",Q:"quartile",H:"high"};return await wa.toCanvas(t,{width:n,margin:a,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:i[r.QRCodeErrorLevel]})}catch(i){throw new Error(`二维码Canvas生成失败: ${i.message}`)}}function Oa(t,e=96){return Math.round(t*e/25.4)}function $y(t,e,A){const r=e/96,n=Math.max(1,Math.round(r*1.5)),i={CODE128:1,CODE39:1,EAN13:1,EAN8:1,UPC:1,ITF14:2,MSI:1,pharmacode:1,codabar:1}[A]||1,o=Math.max(i,n);return o%2===0?o+1:o}async function e5(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,outputFormat:"png",quality:.95,returnDataUrl:!0,dpi:300},...e};if(["CODE128","CODE39","EAN13","EAN8","UPC","ITF14","MSI","pharmacode","codabar"].includes(r.CodeType)||(r.CodeType="CODE128"),r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const a=Oa(r.width,r.dpi),i=Oa(r.height,r.dpi),o=Oa(r.textMargin,r.dpi),s=Oa(r.fontSize,r.dpi);if(!["png","jpeg","svg"].includes(r.outputFormat))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",a),l.setAttribute("height",i),l.setAttribute("viewBox",`0 0 ${a} ${i}`),l.setAttribute("shape-rendering","geometricPrecision"),l.setAttribute("text-rendering","geometricPrecision"),l.setAttribute("image-rendering","optimizeQuality");const u=$y(a,r.dpi,r.CodeType);if(qd(l,t,{format:r.CodeType,width:u,height:i-(r.displayValue?s+o:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:o,font:r.font,fontSize:s,lineColor:r.LineColor,background:r.background,margin:0}),r.outputFormat==="svg"){const d=new XMLSerializer().serializeToString(l);return r.returnDataUrl?`data:image/svg+xml;base64,${btoa(decodeURIComponent(encodeURIComponent(d)))}`:d}else{const d=await dP(l,a,i,r.dpi),g=r.outputFormat==="jpeg"?"image/jpeg":"image/png",f=d.toDataURL(g,r.outputFormat==="jpeg"?r.quality:void 0);if(r.returnDataUrl)return f;{const w=f.indexOf(",");return w!==-1?f.substring(w+1):f}}}catch(l){throw new Error(`条形码生成失败: ${l.message}`)}}async function dP(t,e,A,r=300){return new Promise((n,a)=>{const i=Math.max(2,r/96),o=document.createElement("canvas"),s=o.getContext("2d");o.width=e*i,o.height=A*i,o.style.width=e+"px",o.style.height=A+"px",s.imageSmoothingEnabled=!0,s.imageSmoothingQuality="high",s.translate(.5,.5),s.textRenderingOptimization="optimizeQuality",s.textBaseline="middle";const l=new Image,u=new XMLSerializer().serializeToString(t),d=new Blob([u],{type:"image/svg+xml;charset=utf-8"}),g=URL.createObjectURL(d);l.onload=()=>{try{s.drawImage(l,0,0,e*i,A*i),URL.revokeObjectURL(g),n(o)}catch(f){URL.revokeObjectURL(g),a(f)}},l.onerror=()=>{URL.revokeObjectURL(g),a(new Error("SVG转换为Canvas失败"))},l.src=g})}async function pP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>e5(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成条形码失败: ${r.message}`)}}function gP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,dpi:300},...e},n=Oa(r.width,r.dpi),a=Oa(r.height,r.dpi),i=Oa(r.textMargin,r.dpi),o=Oa(r.fontSize,r.dpi);try{const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("width",n),s.setAttribute("height",a),s.setAttribute("viewBox",`0 0 ${n} ${a}`),s.setAttribute("shape-rendering","geometricPrecision"),s.setAttribute("text-rendering","geometricPrecision"),s.setAttribute("image-rendering","optimizeQuality");const l=$y(n,r.dpi,r.CodeType);return qd(s,t,{format:r.CodeType,width:l,height:a-(r.displayValue?o+i:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:i,font:r.font,fontSize:o,lineColor:r.LineColor,background:r.background,margin:0}),new XMLSerializer().serializeToString(s)}catch(s){throw new Error(`条形码SVG生成失败: ${s.message}`)}}Vo.install=t=>{t.component(Vo.name||"TemplateDesigner",Vo)};const t5=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.8,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于文本开头固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",desc:"可预知的内容尽量不换行,避免因为换行导致打印效果不佳",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:[{label:"0°",value:0},{label:"90°",value:90}],default:0,layout:"half"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,allowRotation:!1,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half",hide:!0}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,allowRotation:!1,x1:0,y1:0,x2:15,y2:0,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),mP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:2.8,rotation:0,allowRotation:!1,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:8,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",desc:"换行需要文本高度空间足够,比如一行高度是4.5mm,比如实际打印内容要两行,那文本预设高度至少是9mm",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,layout:"half"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",lockAspectRatio:!0,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,allowRotation:!1,lockAspectRatio:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function ka(t){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(t)}function Op(t,e){return Op=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Op(t,e)}function vP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(t,e,A){return vP()?rf=Reflect.construct:rf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Op(l,i.prototype),l},rf.apply(null,arguments)}function wn(t){return BP(t)||wP(t)||yP(t)||bP()}function BP(t){if(Array.isArray(t))return kp(t)}function wP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yP(t,e){if(t){if(typeof t=="string")return kp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return kp(t,e)}}function kp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function bP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
315
315
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var CP=Object.hasOwnProperty,A5=Object.setPrototypeOf,EP=Object.isFrozen,UP=Object.getPrototypeOf,FP=Object.getOwnPropertyDescriptor,wr=Object.freeze,tn=Object.seal,NP=Object.create,r5=typeof Reflect<"u"&&Reflect,nf=r5.apply,Hp=r5.construct;nf||(nf=function(e,A,r){return e.apply(A,r)}),wr||(wr=function(e){return e}),tn||(tn=function(e){return e}),Hp||(Hp=function(e,A){return rf(e,wn(A))});var QP=An(Array.prototype.forEach),n5=An(Array.prototype.pop),yl=An(Array.prototype.push),af=An(String.prototype.toLowerCase),Dp=An(String.prototype.toString),a5=An(String.prototype.match),yn=An(String.prototype.replace),SP=An(String.prototype.indexOf),TP=An(String.prototype.trim),er=An(RegExp.prototype.test),Pp=xP(TypeError);function An(t){return function(e){for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return nf(t,e,r)}}function xP(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return Hp(t,A)}}function xt(t,e,A){var r;A=(r=A)!==null&&r!==void 0?r:af,A5&&A5(t,null);for(var n=e.length;n--;){var a=e[n];if(typeof a=="string"){var i=A(a);i!==a&&(EP(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Ui(t){var e=NP(null),A;for(A in t)nf(CP,t,[A])===!0&&(e[A]=t[A]);return e}function of(t,e){for(;t!==null;){var A=FP(t,e);if(A){if(A.get)return An(A.get);if(typeof A.value=="function")return An(A.value)}t=UP(t)}function r(n){return console.warn("fallback value for",n),null}return r}var i5=wr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wp=wr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_p=wr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),RP=wr(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Zp=wr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),IP=wr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),o5=wr(["#text"]),s5=wr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),jp=wr(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l5=wr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),sf=wr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VP=tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),MP=tn(/<%[\w\W]*|[\w\W]*%>/gm),LP=tn(/\${[\w\W]*}/gm),OP=tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),kP=tn(/^aria-[\-\w]+$/),HP=tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DP=tn(/^(?:\w+script|data):/i),PP=tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),WP=tn(/^html$/i),_P=tn(/^[a-z][.\w]*(-[.\w]+)+$/i),ZP=function(){return typeof window>"u"?null:window},jP=function(e,A){if(ka(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";A.currentScript&&A.currentScript.hasAttribute(n)&&(r=A.currentScript.getAttribute(n));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(o){return o},createScriptURL:function(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function c5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZP(),e=function(oe){return c5(oe)};if(e.version="2.5.8",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var A=t.document,r=t.document,n=t.DocumentFragment,a=t.HTMLTemplateElement,i=t.Node,o=t.Element,s=t.NodeFilter,l=t.NamedNodeMap,u=l===void 0?t.NamedNodeMap||t.MozNamedAttrMap:l,d=t.HTMLFormElement,g=t.DOMParser,f=t.trustedTypes,w=o.prototype,v=of(w,"cloneNode"),C=of(w,"nextSibling"),B=of(w,"childNodes"),y=of(w,"parentNode");if(typeof a=="function"){var U=r.createElement("template");U.content&&U.content.ownerDocument&&(r=U.content.ownerDocument)}var Q=jP(f,A),I=Q?Q.createHTML(""):"",V=r,R=V.implementation,L=V.createNodeIterator,D=V.createDocumentFragment,P=V.getElementsByTagName,S=A.importNode,F={};try{F=Ui(r).documentMode?r.documentMode:{}}catch{}var O={};e.isSupported=typeof y=="function"&&R&&R.createHTMLDocument!==void 0&&F!==9;var W=VP,j=MP,z=LP,q=OP,Y=kP,Ae=DP,ee=PP,ce=_P,N=HP,H=null,J=xt({},[].concat(wn(i5),wn(Wp),wn(_p),wn(Zp),wn(o5))),G=null,ne=xt({},[].concat(wn(s5),wn(jp),wn(l5),wn(sf))),ae=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),he=null,ve=null,Le=!0,xe=!0,De=!1,Re=!0,Pe=!1,me=!0,X=!1,ut=!1,Ke=!1,Fe=!1,Se=!1,ke=!1,Oe=!0,We=!1,qe="user-content-",ot=!0,rt=!1,ft={},dt=null,tt=xt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pt=null,He=xt({},["audio","video","img","source","image","track"]),Mt=null,Et=xt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gA="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml",AA=Tt,Qt=!1,_A=null,Dt=xt({},[gA,Ut,Tt],Dp),oA,Jt=["application/xhtml+xml","text/html"],re="text/html",te,Be=null,At=r.createElement("form"),it=function(oe){return oe instanceof RegExp||oe instanceof Function},ze=function(oe){Be&&Be===oe||((!oe||ka(oe)!=="object")&&(oe={}),oe=Ui(oe),oA=Jt.indexOf(oe.PARSER_MEDIA_TYPE)===-1?oA=re:oA=oe.PARSER_MEDIA_TYPE,te=oA==="application/xhtml+xml"?Dp:af,H="ALLOWED_TAGS"in oe?xt({},oe.ALLOWED_TAGS,te):J,G="ALLOWED_ATTR"in oe?xt({},oe.ALLOWED_ATTR,te):ne,_A="ALLOWED_NAMESPACES"in oe?xt({},oe.ALLOWED_NAMESPACES,Dp):Dt,Mt="ADD_URI_SAFE_ATTR"in oe?xt(Ui(Et),oe.ADD_URI_SAFE_ATTR,te):Et,pt="ADD_DATA_URI_TAGS"in oe?xt(Ui(He),oe.ADD_DATA_URI_TAGS,te):He,dt="FORBID_CONTENTS"in oe?xt({},oe.FORBID_CONTENTS,te):tt,he="FORBID_TAGS"in oe?xt({},oe.FORBID_TAGS,te):{},ve="FORBID_ATTR"in oe?xt({},oe.FORBID_ATTR,te):{},ft="USE_PROFILES"in oe?oe.USE_PROFILES:!1,Le=oe.ALLOW_ARIA_ATTR!==!1,xe=oe.ALLOW_DATA_ATTR!==!1,De=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=oe.SAFE_FOR_TEMPLATES||!1,me=oe.SAFE_FOR_XML!==!1,X=oe.WHOLE_DOCUMENT||!1,Fe=oe.RETURN_DOM||!1,Se=oe.RETURN_DOM_FRAGMENT||!1,ke=oe.RETURN_TRUSTED_TYPE||!1,Ke=oe.FORCE_BODY||!1,Oe=oe.SANITIZE_DOM!==!1,We=oe.SANITIZE_NAMED_PROPS||!1,ot=oe.KEEP_CONTENT!==!1,rt=oe.IN_PLACE||!1,N=oe.ALLOWED_URI_REGEXP||N,AA=oe.NAMESPACE||Tt,ae=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&it(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ae.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&it(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ae.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ae.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(xe=!1),Se&&(Fe=!0),ft&&(H=xt({},wn(o5)),G=[],ft.html===!0&&(xt(H,i5),xt(G,s5)),ft.svg===!0&&(xt(H,Wp),xt(G,jp),xt(G,sf)),ft.svgFilters===!0&&(xt(H,_p),xt(G,jp),xt(G,sf)),ft.mathMl===!0&&(xt(H,Zp),xt(G,l5),xt(G,sf))),oe.ADD_TAGS&&(H===J&&(H=Ui(H)),xt(H,oe.ADD_TAGS,te)),oe.ADD_ATTR&&(G===ne&&(G=Ui(G)),xt(G,oe.ADD_ATTR,te)),oe.ADD_URI_SAFE_ATTR&&xt(Mt,oe.ADD_URI_SAFE_ATTR,te),oe.FORBID_CONTENTS&&(dt===tt&&(dt=Ui(dt)),xt(dt,oe.FORBID_CONTENTS,te)),ot&&(H["#text"]=!0),X&&xt(H,["html","head","body"]),H.table&&(xt(H,["tbody"]),delete he.tbody),wr&&wr(oe),Be=oe)},lt=xt({},["mi","mo","mn","ms","mtext"]),Qe=xt({},["annotation-xml"]),vt=xt({},["title","style","font","a","script"]),je=xt({},Wp);xt(je,_p),xt(je,RP);var we=xt({},Zp);xt(we,IP);var Bt=function(oe){var Ie=y(oe);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:AA,tagName:"template"});var _e=af(oe.tagName),Rt=af(Ie.tagName);return _A[oe.namespaceURI]?oe.namespaceURI===Ut?Ie.namespaceURI===Tt?_e==="svg":Ie.namespaceURI===gA?_e==="svg"&&(Rt==="annotation-xml"||lt[Rt]):!!je[_e]:oe.namespaceURI===gA?Ie.namespaceURI===Tt?_e==="math":Ie.namespaceURI===Ut?_e==="math"&&Qe[Rt]:!!we[_e]:oe.namespaceURI===Tt?Ie.namespaceURI===Ut&&!Qe[Rt]||Ie.namespaceURI===gA&&!lt[Rt]?!1:!we[_e]&&(vt[_e]||!je[_e]):!!(oA==="application/xhtml+xml"&&_A[oe.namespaceURI]):!1},Ye=function(oe){yl(e.removed,{element:oe});try{oe.parentNode.removeChild(oe)}catch{try{oe.outerHTML=I}catch{oe.remove()}}},Ft=function(oe,Ie){try{yl(e.removed,{attribute:Ie.getAttributeNode(oe),from:Ie})}catch{yl(e.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(oe),oe==="is"&&!G[oe])if(Fe||Se)try{Ye(Ie)}catch{}else try{Ie.setAttribute(oe,"")}catch{}},Pt=function(oe){var Ie,_e;if(Ke)oe="<remove></remove>"+oe;else{var Rt=a5(oe,/^[\r\n\t ]+/);_e=Rt&&Rt[0]}oA==="application/xhtml+xml"&&AA===Tt&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");var EA=Q?Q.createHTML(oe):oe;if(AA===Tt)try{Ie=new g().parseFromString(EA,oA)}catch{}if(!Ie||!Ie.documentElement){Ie=R.createDocument(AA,"template",null);try{Ie.documentElement.innerHTML=Qt?I:EA}catch{}}var lA=Ie.body||Ie.documentElement;return oe&&_e&&lA.insertBefore(r.createTextNode(_e),lA.childNodes[0]||null),AA===Tt?P.call(Ie,X?"html":"body")[0]:X?Ie.documentElement:lA},Ht=function(oe){return L.call(oe.ownerDocument||oe,oe,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},Wt=function(oe){return oe instanceof d&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof u)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},$t=function(oe){return ka(i)==="object"?oe instanceof i:oe&&ka(oe)==="object"&&typeof oe.nodeType=="number"&&typeof oe.nodeName=="string"},sA=function(oe,Ie,_e){O[oe]&&QP(O[oe],function(Rt){Rt.call(e,Ie,_e,Be)})},dr=function(oe){var Ie;if(sA("beforeSanitizeElements",oe,null),Wt(oe)||er(/[\u0080-\uFFFF]/,oe.nodeName))return Ye(oe),!0;var _e=te(oe.nodeName);if(sA("uponSanitizeElement",oe,{tagName:_e,allowedTags:H}),oe.hasChildNodes()&&!$t(oe.firstElementChild)&&(!$t(oe.content)||!$t(oe.content.firstElementChild))&&er(/<[/\w]/g,oe.innerHTML)&&er(/<[/\w]/g,oe.textContent)||_e==="select"&&er(/<template/i,oe.innerHTML)||oe.nodeType===7||me&&oe.nodeType===8&&er(/<[/\w]/g,oe.data))return Ye(oe),!0;if(!H[_e]||he[_e]){if(!he[_e]&&bA(_e)&&(ae.tagNameCheck instanceof RegExp&&er(ae.tagNameCheck,_e)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(_e)))return!1;if(ot&&!dt[_e]){var Rt=y(oe)||oe.parentNode,EA=B(oe)||oe.childNodes;if(EA&&Rt)for(var lA=EA.length,hA=lA-1;hA>=0;--hA){var Rr=v(EA[hA],!0);Rr.__removalCount=(oe.__removalCount||0)+1,Rt.insertBefore(Rr,C(oe))}}return Ye(oe),!0}return oe instanceof o&&!Bt(oe)||(_e==="noscript"||_e==="noembed"||_e==="noframes")&&er(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Ye(oe),!0):(Pe&&oe.nodeType===3&&(Ie=oe.textContent,Ie=yn(Ie,W," "),Ie=yn(Ie,j," "),Ie=yn(Ie,z," "),oe.textContent!==Ie&&(yl(e.removed,{element:oe.cloneNode()}),oe.textContent=Ie)),sA("afterSanitizeElements",oe,null),!1)},Yt=function(oe,Ie,_e){if(Oe&&(Ie==="id"||Ie==="name")&&(_e in r||_e in At))return!1;if(!(xe&&!ve[Ie]&&er(q,Ie))){if(!(Le&&er(Y,Ie))){if(!G[Ie]||ve[Ie]){if(!(bA(oe)&&(ae.tagNameCheck instanceof RegExp&&er(ae.tagNameCheck,oe)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(oe))&&(ae.attributeNameCheck instanceof RegExp&&er(ae.attributeNameCheck,Ie)||ae.attributeNameCheck instanceof Function&&ae.attributeNameCheck(Ie))||Ie==="is"&&ae.allowCustomizedBuiltInElements&&(ae.tagNameCheck instanceof RegExp&&er(ae.tagNameCheck,_e)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(_e))))return!1}else if(!Mt[Ie]){if(!er(N,yn(_e,ee,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&oe!=="script"&&SP(_e,"data:")===0&&pt[oe])){if(!(De&&!er(Ae,yn(_e,ee,"")))){if(_e)return!1}}}}}}return!0},bA=function(oe){return oe!=="annotation-xml"&&a5(oe,ce)},CA=function(oe){var Ie,_e,Rt,EA;sA("beforeSanitizeAttributes",oe,null);var lA=oe.attributes;if(!(!lA||Wt(oe))){var hA={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G};for(EA=lA.length;EA--;){Ie=lA[EA];var Rr=Ie,cA=Rr.name,Hi=Rr.namespaceURI;if(_e=cA==="value"?Ie.value:TP(Ie.value),Rt=te(cA),hA.attrName=Rt,hA.attrValue=_e,hA.keepAttr=!0,hA.forceKeepAttr=void 0,sA("uponSanitizeAttribute",oe,hA),_e=hA.attrValue,!hA.forceKeepAttr&&(Ft(cA,oe),!!hA.keepAttr)){if(!Re&&er(/\/>/i,_e)){Ft(cA,oe);continue}Pe&&(_e=yn(_e,W," "),_e=yn(_e,j," "),_e=yn(_e,z," "));var Di=te(oe.nodeName);if(Yt(Di,Rt,_e)){if(We&&(Rt==="id"||Rt==="name")&&(Ft(cA,oe),_e=qe+_e),me&&er(/((--!?|])>)|<\/(style|title)/i,_e)){Ft(cA,oe);continue}if(Q&&ka(f)==="object"&&typeof f.getAttributeType=="function"&&!Hi)switch(f.getAttributeType(Di,Rt)){case"TrustedHTML":{_e=Q.createHTML(_e);break}case"TrustedScriptURL":{_e=Q.createScriptURL(_e);break}}try{Hi?oe.setAttributeNS(Hi,cA,_e):oe.setAttribute(cA,_e),Wt(oe)?Ye(oe):n5(e.removed)}catch{}}}}sA("afterSanitizeAttributes",oe,null)}},Zr=function nt(oe){var Ie,_e=Ht(oe);for(sA("beforeSanitizeShadowDOM",oe,null);Ie=_e.nextNode();)sA("uponSanitizeShadowNode",Ie,null),dr(Ie),CA(Ie),Ie.content instanceof n&&nt(Ie.content);sA("afterSanitizeShadowDOM",oe,null)};return e.sanitize=function(nt){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie,_e,Rt,EA,lA;if(Qt=!nt,Qt&&(nt="<!-->"),typeof nt!="string"&&!$t(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw Pp("dirty is not a string, aborting")}else throw Pp("toString is not a function");if(!e.isSupported){if(ka(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof nt=="string")return t.toStaticHTML(nt);if($t(nt))return t.toStaticHTML(nt.outerHTML)}return nt}if(ut||ze(oe),e.removed=[],typeof nt=="string"&&(rt=!1),rt){if(nt.nodeName){var hA=te(nt.nodeName);if(!H[hA]||he[hA])throw Pp("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof i)Ie=Pt("<!---->"),_e=Ie.ownerDocument.importNode(nt,!0),_e.nodeType===1&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?Ie=_e:Ie.appendChild(_e);else{if(!Fe&&!Pe&&!X&&nt.indexOf("<")===-1)return Q&&ke?Q.createHTML(nt):nt;if(Ie=Pt(nt),!Ie)return Fe?null:ke?I:""}Ie&&Ke&&Ye(Ie.firstChild);for(var Rr=Ht(rt?nt:Ie);Rt=Rr.nextNode();)Rt.nodeType===3&&Rt===EA||(dr(Rt),CA(Rt),Rt.content instanceof n&&Zr(Rt.content),EA=Rt);if(EA=null,rt)return nt;if(Fe){if(Se)for(lA=D.call(Ie.ownerDocument);Ie.firstChild;)lA.appendChild(Ie.firstChild);else lA=Ie;return(G.shadowroot||G.shadowrootmod)&&(lA=S.call(A,lA,!0)),lA}var cA=X?Ie.outerHTML:Ie.innerHTML;return X&&H["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&er(WP,Ie.ownerDocument.doctype.name)&&(cA="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
316
316
  `+cA),Pe&&(cA=yn(cA,W," "),cA=yn(cA,j," "),cA=yn(cA,z," ")),Q&&ke?Q.createHTML(cA):cA},e.setConfig=function(nt){ze(nt),ut=!0},e.clearConfig=function(){Be=null,ut=!1},e.isValidAttribute=function(nt,oe,Ie){Be||ze({});var _e=te(nt),Rt=te(oe);return Yt(_e,Rt,Ie)},e.addHook=function(nt,oe){typeof oe=="function"&&(O[nt]=O[nt]||[],yl(O[nt],oe))},e.removeHook=function(nt){if(O[nt])return n5(O[nt])},e.removeHooks=function(nt){O[nt]&&(O[nt]=[])},e.removeAllHooks=function(){O={}},e}var JP=c5();const KP=Object.freeze(Object.defineProperty({__proto__:null,default:JP},Symbol.toStringTag,{value:"Module"}));var bl=function(t){return t&&t.Math===Math&&t},fA=bl(typeof globalThis=="object"&&globalThis)||bl(typeof window=="object"&&window)||bl(typeof self=="object"&&self)||bl(typeof eo=="object"&&eo)||bl(typeof eo=="object"&&eo)||function(){return this}()||Function("return this")(),Cl={},BA=function(t){try{return!!t()}catch{return!0}},GP=BA,bn=!GP(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),zP=BA,lf=!zP(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),YP=lf,cf=Function.prototype.call,tr=YP?cf.bind(cf):function(){return cf.apply(cf,arguments)},u5={},f5={}.propertyIsEnumerable,h5=Object.getOwnPropertyDescriptor,XP=h5&&!f5.call({1:2},1);u5.f=XP?function(e){var A=h5(this,e);return!!A&&A.enumerable}:f5;var Jp=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},d5=lf,p5=Function.prototype,Kp=p5.call,qP=d5&&p5.bind.bind(Kp,Kp),wA=d5?qP:function(t){return function(){return Kp.apply(t,arguments)}},g5=wA,$P=g5({}.toString),eW=g5("".slice),Fi=function(t){return eW($P(t),8,-1)},tW=wA,AW=BA,rW=Fi,Gp=Object,nW=tW("".split),m5=AW(function(){return!Gp("z").propertyIsEnumerable(0)})?function(t){return rW(t)==="String"?nW(t,""):Gp(t)}:Gp,uf=function(t){return t==null},aW=uf,iW=TypeError,Cn=function(t){if(aW(t))throw new iW("Can't call method on "+t);return t},oW=m5,sW=Cn,El=function(t){return oW(sW(t))},zp=typeof document=="object"&&document.all,RA=typeof zp>"u"&&zp!==void 0?function(t){return typeof t=="function"||t===zp}:function(t){return typeof t=="function"},lW=RA,Tr=function(t){return typeof t=="object"?t!==null:lW(t)},Yp=fA,cW=RA,uW=function(t){return cW(t)?t:void 0},Ni=function(t,e){return arguments.length<2?uW(Yp[t]):Yp[t]&&Yp[t][e]},fW=wA,ff=fW({}.isPrototypeOf),hW=fA,v5=hW.navigator,B5=v5&&v5.userAgent,Ul=B5?String(B5):"",w5=fA,Xp=Ul,y5=w5.process,b5=w5.Deno,C5=y5&&y5.versions||b5&&b5.version,E5=C5&&C5.v8,En,hf;E5&&(En=E5.split("."),hf=En[0]>0&&En[0]<4?1:+(En[0]+En[1])),!hf&&Xp&&(En=Xp.match(/Edge\/(\d+)/),(!En||En[1]>=74)&&(En=Xp.match(/Chrome\/(\d+)/),En&&(hf=+En[1])));var qp=hf,U5=qp,dW=BA,pW=fA,gW=pW.String,F5=!!Object.getOwnPropertySymbols&&!dW(function(){var t=Symbol("symbol detection");return!gW(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U5&&U5<41}),mW=F5,N5=mW&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vW=Ni,BW=RA,wW=ff,yW=N5,bW=Object,Q5=yW?function(t){return typeof t=="symbol"}:function(t){var e=vW("Symbol");return BW(e)&&wW(e.prototype,bW(t))},CW=String,df=function(t){try{return CW(t)}catch{return"Object"}},EW=RA,UW=df,FW=TypeError,ea=function(t){if(EW(t))return t;throw new FW(UW(t)+" is not a function")},NW=ea,QW=uf,Zo=function(t,e){var A=t[e];return QW(A)?void 0:NW(A)},$p=tr,e1=RA,t1=Tr,SW=TypeError,TW=function(t,e){var A,r;if(e==="string"&&e1(A=t.toString)&&!t1(r=$p(A,t))||e1(A=t.valueOf)&&!t1(r=$p(A,t))||e!=="string"&&e1(A=t.toString)&&!t1(r=$p(A,t)))return r;throw new SW("Can't convert object to primitive value")},S5={exports:{}},T5=fA,xW=Object.defineProperty,A1=function(t,e){try{xW(T5,t,{value:e,configurable:!0,writable:!0})}catch{T5[t]=e}return e},RW=fA,IW=A1,x5="__core-js_shared__",R5=S5.exports=RW[x5]||IW(x5,{});(R5.versions||(R5.versions=[])).push({version:"3.45.1",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"});var r1=S5.exports,I5=r1,n1=function(t,e){return I5[t]||(I5[t]=e||{})},VW=Cn,MW=Object,pf=function(t){return MW(VW(t))},LW=wA,OW=pf,kW=LW({}.hasOwnProperty),Un=Object.hasOwn||function(e,A){return kW(OW(e),A)},HW=wA,DW=0,PW=Math.random(),WW=HW(1.1.toString),V5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+WW(++DW+PW,36)},_W=fA,ZW=n1,M5=Un,jW=V5,JW=F5,KW=N5,jo=_W.Symbol,a1=ZW("wks"),GW=KW?jo.for||jo:jo&&jo.withoutSetter||jW,GA=function(t){return M5(a1,t)||(a1[t]=JW&&M5(jo,t)?jo[t]:GW("Symbol."+t)),a1[t]},zW=tr,L5=Tr,O5=Q5,YW=Zo,XW=TW,qW=GA,$W=TypeError,e_=qW("toPrimitive"),t_=function(t,e){if(!L5(t)||O5(t))return t;var A=YW(t,e_),r;if(A){if(e===void 0&&(e="default"),r=zW(A,t,e),!L5(r)||O5(r))return r;throw new $W("Can't convert object to primitive value")}return e===void 0&&(e="number"),XW(t,e)},A_=t_,r_=Q5,k5=function(t){var e=A_(t,"string");return r_(e)?e:e+""},n_=fA,H5=Tr,i1=n_.document,a_=H5(i1)&&H5(i1.createElement),gf=function(t){return a_?i1.createElement(t):{}},i_=bn,o_=BA,s_=gf,D5=!i_&&!o_(function(){return Object.defineProperty(s_("div"),"a",{get:function(){return 7}}).a!==7}),l_=bn,c_=tr,u_=u5,f_=Jp,h_=El,d_=k5,p_=Un,g_=D5,P5=Object.getOwnPropertyDescriptor;Cl.f=l_?P5:function(e,A){if(e=h_(e),A=d_(A),g_)try{return P5(e,A)}catch{}if(p_(e,A))return f_(!c_(u_.f,e,A),e[A])};var ta={},m_=bn,v_=BA,W5=m_&&v_(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),B_=Tr,w_=String,y_=TypeError,yr=function(t){if(B_(t))return t;throw new y_(w_(t)+" is not an object")},b_=bn,C_=D5,E_=W5,mf=yr,_5=k5,U_=TypeError,o1=Object.defineProperty,F_=Object.getOwnPropertyDescriptor,s1="enumerable",l1="configurable",c1="writable";ta.f=b_?E_?function(e,A,r){if(mf(e),A=_5(A),mf(r),typeof e=="function"&&A==="prototype"&&"value"in r&&c1 in r&&!r[c1]){var n=F_(e,A);n&&n[c1]&&(e[A]=r.value,r={configurable:l1 in r?r[l1]:n[l1],enumerable:s1 in r?r[s1]:n[s1],writable:!1})}return o1(e,A,r)}:o1:function(e,A,r){if(mf(e),A=_5(A),mf(r),C_)try{return o1(e,A,r)}catch{}if("get"in r||"set"in r)throw new U_("Accessors not supported");return"value"in r&&(e[A]=r.value),e};var N_=bn,Q_=ta,S_=Jp,Fl=N_?function(t,e,A){return Q_.f(t,e,S_(1,A))}:function(t,e,A){return t[e]=A,t},Z5={exports:{}},u1=bn,T_=Un,j5=Function.prototype,x_=u1&&Object.getOwnPropertyDescriptor,f1=T_(j5,"name"),R_=f1&&(function(){}).name==="something",I_=f1&&(!u1||u1&&x_(j5,"name").configurable),vf={EXISTS:f1,PROPER:R_,CONFIGURABLE:I_},V_=wA,M_=RA,h1=r1,L_=V_(Function.toString);M_(h1.inspectSource)||(h1.inspectSource=function(t){return L_(t)});var d1=h1.inspectSource,O_=fA,k_=RA,J5=O_.WeakMap,H_=k_(J5)&&/native code/.test(String(J5)),D_=n1,P_=V5,K5=D_("keys"),p1=function(t){return K5[t]||(K5[t]=P_(t))},g1={},W_=H_,G5=fA,__=Tr,Z_=Fl,m1=Un,v1=r1,j_=p1,J_=g1,z5="Object already initialized",B1=G5.TypeError,K_=G5.WeakMap,Bf,Nl,wf,G_=function(t){return wf(t)?Nl(t):Bf(t,{})},z_=function(t){return function(e){var A;if(!__(e)||(A=Nl(e)).type!==t)throw new B1("Incompatible receiver, "+t+" required");return A}};if(W_||v1.state){var Wn=v1.state||(v1.state=new K_);Wn.get=Wn.get,Wn.has=Wn.has,Wn.set=Wn.set,Bf=function(t,e){if(Wn.has(t))throw new B1(z5);return e.facade=t,Wn.set(t,e),e},Nl=function(t){return Wn.get(t)||{}},wf=function(t){return Wn.has(t)}}else{var Jo=j_("state");J_[Jo]=!0,Bf=function(t,e){if(m1(t,Jo))throw new B1(z5);return e.facade=t,Z_(t,Jo,e),e},Nl=function(t){return m1(t,Jo)?t[Jo]:{}},wf=function(t){return m1(t,Jo)}}var yf={set:Bf,get:Nl,has:wf,enforce:G_,getterFor:z_},w1=wA,Y_=BA,X_=RA,bf=Un,y1=bn,q_=vf.CONFIGURABLE,$_=d1,Y5=yf,e7=Y5.enforce,t7=Y5.get,X5=String,Cf=Object.defineProperty,A7=w1("".slice),r7=w1("".replace),n7=w1([].join),a7=y1&&!Y_(function(){return Cf(function(){},"length",{value:8}).length!==8}),i7=String(String).split("String"),o7=Z5.exports=function(t,e,A){A7(X5(e),0,7)==="Symbol("&&(e="["+r7(X5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!bf(t,"name")||q_&&t.name!==e)&&(y1?Cf(t,"name",{value:e,configurable:!0}):t.name=e),a7&&A&&bf(A,"arity")&&t.length!==A.arity&&Cf(t,"length",{value:A.arity});try{A&&bf(A,"constructor")&&A.constructor?y1&&Cf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=e7(t);return bf(r,"source")||(r.source=n7(i7,typeof e=="string"?e:"")),t};Function.prototype.toString=o7(function(){return X_(this)&&t7(this).source||$_(this)},"toString");var q5=Z5.exports,s7=RA,l7=ta,c7=q5,u7=A1,Qi=function(t,e,A,r){r||(r={});var n=r.enumerable,a=r.name!==void 0?r.name:e;if(s7(A)&&c7(A,a,r),r.global)n?t[e]=A:u7(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:l7.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},$5={},f7=Math.ceil,h7=Math.floor,d7=Math.trunc||function(e){var A=+e;return(A>0?h7:f7)(A)},p7=d7,Ef=function(t){var e=+t;return e!==e||e===0?0:p7(e)},g7=Ef,m7=Math.max,v7=Math.min,B7=function(t,e){var A=g7(t);return A<0?m7(A+e,0):v7(A,e)},w7=Ef,y7=Math.min,Ko=function(t){var e=w7(t);return e>0?y7(e,9007199254740991):0},b7=Ko,b1=function(t){return b7(t.length)},C7=El,E7=B7,U7=b1,eb=function(t){return function(e,A,r){var n=C7(e),a=U7(n);if(a===0)return!t&&-1;var i=E7(r,a),o;if(t&&A!==A){for(;a>i;)if(o=n[i++],o!==o)return!0}else for(;a>i;i++)if((t||i in n)&&n[i]===A)return t||i||0;return!t&&-1}},tb={includes:eb(!0),indexOf:eb(!1)},F7=wA,C1=Un,N7=El,Q7=tb.indexOf,S7=g1,Ab=F7([].push),rb=function(t,e){var A=N7(t),r=0,n=[],a;for(a in A)!C1(S7,a)&&C1(A,a)&&Ab(n,a);for(;e.length>r;)C1(A,a=e[r++])&&(~Q7(n,a)||Ab(n,a));return n},E1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],T7=rb,x7=E1,R7=x7.concat("length","prototype");$5.f=Object.getOwnPropertyNames||function(e){return T7(e,R7)};var nb={};nb.f=Object.getOwnPropertySymbols;var I7=Ni,V7=wA,M7=$5,L7=nb,O7=yr,k7=V7([].concat),H7=I7("Reflect","ownKeys")||function(e){var A=M7.f(O7(e)),r=L7.f;return r?k7(A,r(e)):A},ab=Un,D7=H7,P7=Cl,W7=ta,_7=function(t,e,A){for(var r=D7(e),n=W7.f,a=P7.f,i=0;i<r.length;i++){var o=r[i];!ab(t,o)&&!(A&&ab(A,o))&&n(t,o,a(e,o))}},Z7=BA,j7=RA,J7=/#|\.prototype\./,Ql=function(t,e){var A=G7[K7(t)];return A===Y7?!0:A===z7?!1:j7(e)?Z7(e):!!e},K7=Ql.normalize=function(t){return String(t).replace(J7,".").toLowerCase()},G7=Ql.data={},z7=Ql.NATIVE="N",Y7=Ql.POLYFILL="P",ib=Ql,Uf=fA,X7=Cl.f,q7=Fl,$7=Qi,eZ=A1,tZ=_7,AZ=ib,br=function(t,e){var A=t.target,r=t.global,n=t.stat,a,i,o,s,l,u;if(r?i=Uf:n?i=Uf[A]||eZ(A,{}):i=Uf[A]&&Uf[A].prototype,i)for(o in e){if(l=e[o],t.dontCallGetSet?(u=X7(i,o),s=u&&u.value):s=i[o],a=AZ(r?o:A+(n?".":"#")+o,t.forced),!a&&s!==void 0){if(typeof l==typeof s)continue;tZ(l,s)}(t.sham||s&&s.sham)&&q7(l,"sham",!0),$7(i,o,l,t)}},Sl=fA,rZ=Ul,nZ=Fi,Ff=function(t){return rZ.slice(0,t.length)===t},ob=function(){return Ff("Bun/")?"BUN":Ff("Cloudflare-Workers")?"CLOUDFLARE":Ff("Deno/")?"DENO":Ff("Node.js/")?"NODE":Sl.Bun&&typeof Bun.version=="string"?"BUN":Sl.Deno&&typeof Deno.version=="object"?"DENO":nZ(Sl.process)==="process"?"NODE":Sl.window&&Sl.document?"BROWSER":"REST"}(),aZ=ob,Nf=aZ==="NODE",iZ=fA,oZ=iZ,sZ=wA,lZ=ea,cZ=function(t,e,A){try{return sZ(lZ(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}},uZ=Tr,fZ=function(t){return uZ(t)||t===null},hZ=fZ,dZ=String,pZ=TypeError,gZ=function(t){if(hZ(t))return t;throw new pZ("Can't set "+dZ(t)+" as a prototype")},mZ=cZ,vZ=Tr,BZ=Cn,wZ=gZ,sb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},A;try{A=mZ(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,a){return BZ(n),wZ(a),vZ(n)&&(t?A(n,a):n.__proto__=a),n}}():void 0),yZ=ta.f,bZ=Un,CZ=GA,lb=CZ("toStringTag"),Qf=function(t,e,A){t&&!A&&(t=t.prototype),t&&!bZ(t,lb)&&yZ(t,lb,{configurable:!0,value:e})},cb=q5,EZ=ta,UZ=function(t,e,A){return A.get&&cb(A.get,e,{getter:!0}),A.set&&cb(A.set,e,{setter:!0}),EZ.f(t,e,A)},FZ=Ni,NZ=UZ,QZ=GA,SZ=bn,ub=QZ("species"),TZ=function(t){var e=FZ(t);SZ&&e&&!e[ub]&&NZ(e,ub,{configurable:!0,get:function(){return this}})},xZ=ff,RZ=TypeError,IZ=function(t,e){if(xZ(e,t))return t;throw new RZ("Incorrect invocation")},VZ=GA,MZ=VZ("toStringTag"),fb={};fb[MZ]="z";var LZ=String(fb)==="[object z]",OZ=LZ,kZ=RA,Sf=Fi,HZ=GA,DZ=HZ("toStringTag"),PZ=Object,WZ=Sf(function(){return arguments}())==="Arguments",_Z=function(t,e){try{return t[e]}catch{}},U1=OZ?Sf:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=_Z(e=PZ(t),DZ))=="string"?A:WZ?Sf(e):(r=Sf(e))==="Object"&&kZ(e.callee)?"Arguments":r},ZZ=wA,jZ=BA,hb=RA,JZ=U1,KZ=Ni,GZ=d1,db=function(){},pb=KZ("Reflect","construct"),F1=/^\s*(?:class|function)\b/,zZ=ZZ(F1.exec),YZ=!F1.test(db),Tl=function(e){if(!hb(e))return!1;try{return pb(db,[],e),!0}catch{return!1}},gb=function(e){if(!hb(e))return!1;switch(JZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return YZ||!!zZ(F1,GZ(e))}catch{return!0}};gb.sham=!0;var XZ=!pb||jZ(function(){var t;return Tl(Tl.call)||!Tl(Object)||!Tl(function(){t=!0})||t})?gb:Tl,qZ=XZ,$Z=df,e9=TypeError,t9=function(t){if(qZ(t))return t;throw new e9($Z(t)+" is not a constructor")},mb=yr,A9=t9,r9=uf,n9=GA,a9=n9("species"),vb=function(t,e){var A=mb(t).constructor,r;return A===void 0||r9(r=mb(A)[a9])?e:A9(r)},i9=lf,Bb=Function.prototype,wb=Bb.apply,yb=Bb.call,bb=typeof Reflect=="object"&&Reflect.apply||(i9?yb.bind(wb):function(){return yb.apply(wb,arguments)}),o9=Fi,s9=wA,Tf=function(t){if(o9(t)==="Function")return s9(t)},Cb=Tf,l9=ea,c9=lf,u9=Cb(Cb.bind),N1=function(t,e){return l9(t),e===void 0?t:c9?u9(t,e):function(){return t.apply(e,arguments)}},f9=Ni,Eb=f9("document","documentElement"),h9=wA,d9=h9([].slice),p9=TypeError,g9=function(t,e){if(t<e)throw new p9("Not enough arguments");return t},m9=Ul,Ub=/(?:ipad|iphone|ipod).*applewebkit/i.test(m9),_r=fA,v9=bb,B9=N1,Fb=RA,w9=Un,Nb=BA,Qb=Eb,y9=d9,Sb=gf,b9=g9,C9=Ub,E9=Nf,Q1=_r.setImmediate,S1=_r.clearImmediate,U9=_r.process,T1=_r.Dispatch,F9=_r.Function,Tb=_r.MessageChannel,N9=_r.String,x1=0,xl={},xb="onreadystatechange",Rl,Si,R1,I1;Nb(function(){Rl=_r.location});var V1=function(t){if(w9(xl,t)){var e=xl[t];delete xl[t],e()}},M1=function(t){return function(){V1(t)}},Rb=function(t){V1(t.data)},Ib=function(t){_r.postMessage(N9(t),Rl.protocol+"//"+Rl.host)};(!Q1||!S1)&&(Q1=function(e){b9(arguments.length,1);var A=Fb(e)?e:F9(e),r=y9(arguments,1);return xl[++x1]=function(){v9(A,void 0,r)},Si(x1),x1},S1=function(e){delete xl[e]},E9?Si=function(t){U9.nextTick(M1(t))}:T1&&T1.now?Si=function(t){T1.now(M1(t))}:Tb&&!C9?(R1=new Tb,I1=R1.port2,R1.port1.onmessage=Rb,Si=B9(I1.postMessage,I1)):_r.addEventListener&&Fb(_r.postMessage)&&!_r.importScripts&&Rl&&Rl.protocol!=="file:"&&!Nb(Ib)?(Si=Ib,_r.addEventListener("message",Rb,!1)):xb in Sb("script")?Si=function(t){Qb.appendChild(Sb("script"))[xb]=function(){Qb.removeChild(this),V1(t)}}:Si=function(t){setTimeout(M1(t),0)});var Vb={set:Q1,clear:S1},Mb=fA,Q9=bn,S9=Object.getOwnPropertyDescriptor,T9=function(t){if(!Q9)return Mb[t];var e=S9(Mb,t);return e&&e.value},Lb=function(){this.head=null,this.tail=null};Lb.prototype={add:function(t){var e={item:t,next:null},A=this.tail;A?A.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var Ob=Lb,x9=Ul,R9=/ipad|iphone|ipod/i.test(x9)&&typeof Pebble<"u",I9=Ul,V9=/web0s(?!.*chrome)/i.test(I9),Go=fA,M9=T9,kb=N1,L1=Vb.set,L9=Ob,O9=Ub,k9=R9,H9=V9,O1=Nf,Hb=Go.MutationObserver||Go.WebKitMutationObserver,Db=Go.document,Pb=Go.process,xf=Go.Promise,k1=M9("queueMicrotask"),zo,H1,D1,Rf,Wb;if(!k1){var If=new L9,Vf=function(){var t,e;for(O1&&(t=Pb.domain)&&t.exit();e=If.get();)try{e()}catch(A){throw If.head&&zo(),A}t&&t.enter()};!O9&&!O1&&!H9&&Hb&&Db?(H1=!0,D1=Db.createTextNode(""),new Hb(Vf).observe(D1,{characterData:!0}),zo=function(){D1.data=H1=!H1}):!k9&&xf&&xf.resolve?(Rf=xf.resolve(void 0),Rf.constructor=xf,Wb=kb(Rf.then,Rf),zo=function(){Wb(Vf)}):O1?zo=function(){Pb.nextTick(Vf)}:(L1=kb(L1,Go),zo=function(){L1(Vf)}),k1=function(t){If.head||zo(),If.add(t)}}var D9=k1,P9=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},P1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},W9=fA,Mf=W9.Promise,_9=fA,Il=Mf,Z9=RA,j9=ib,J9=d1,K9=GA,_b=ob,W1=qp;Il&&Il.prototype;var G9=K9("species"),_1=!1,Zb=Z9(_9.PromiseRejectionEvent),z9=j9("Promise",function(){var t=J9(Il),e=t!==String(Il);if(!e&&W1===66)return!0;if(!W1||W1<51||!/native code/.test(t)){var A=new Il(function(a){a(1)}),r=function(a){a(function(){},function(){})},n=A.constructor={};if(n[G9]=r,_1=A.then(function(){})instanceof r,!_1)return!0}return!e&&(_b==="BROWSER"||_b==="DENO")&&!Zb}),Vl={CONSTRUCTOR:z9,REJECTION_EVENT:Zb,SUBCLASSING:_1},Yo={},jb=ea,Y9=TypeError,X9=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new Y9("Bad Promise constructor");e=r,A=n}),this.resolve=jb(e),this.reject=jb(A)};Yo.f=function(t){return new X9(t)};var q9=br,Lf=Nf,Ha=fA,$9=oZ,Xo=tr,Jb=Qi,Kb=sb,ej=Qf,tj=TZ,Aj=ea,Of=RA,rj=Tr,nj=IZ,aj=vb,Gb=Vb.set,Z1=D9,ij=P9,oj=P1,sj=Ob,zb=yf,kf=Mf,j1=Vl,Yb=Yo,Hf="Promise",Xb=j1.CONSTRUCTOR,lj=j1.REJECTION_EVENT,cj=j1.SUBCLASSING,J1=zb.getterFor(Hf),uj=zb.set,qo=kf&&kf.prototype,Ti=kf,Df=qo,qb=Ha.TypeError,K1=Ha.document,G1=Ha.process,z1=Yb.f,fj=z1,hj=!!(K1&&K1.createEvent&&Ha.dispatchEvent),$b="unhandledrejection",dj="rejectionhandled",eC=0,tC=1,pj=2,Y1=1,AC=2,Pf,rC,nC,aC,iC=function(t){var e;return rj(t)&&Of(e=t.then)?e:!1},oC=function(t,e){var A=e.value,r=e.state===tC,n=r?t.ok:t.fail,a=t.resolve,i=t.reject,o=t.domain,s,l,u;try{n?(r||(e.rejection===AC&&mj(e),e.rejection=Y1),n===!0?s=A:(o&&o.enter(),s=n(A),o&&(o.exit(),u=!0)),s===t.promise?i(new qb("Promise-chain cycle")):(l=iC(s))?Xo(l,s,a,i):a(s)):i(A)}catch(d){o&&!u&&o.exit(),i(d)}},sC=function(t,e){t.notified||(t.notified=!0,Z1(function(){for(var A=t.reactions,r;r=A.get();)oC(r,t);t.notified=!1,e&&!t.rejection&&gj(t)}))},lC=function(t,e,A){var r,n;hj?(r=K1.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),Ha.dispatchEvent(r)):r={promise:e,reason:A},!lj&&(n=Ha["on"+t])?n(r):t===$b&&ij("Unhandled promise rejection",A)},gj=function(t){Xo(Gb,Ha,function(){var e=t.facade,A=t.value,r=cC(t),n;if(r&&(n=oj(function(){Lf?G1.emit("unhandledRejection",A,e):lC($b,e,A)}),t.rejection=Lf||cC(t)?AC:Y1,n.error))throw n.value})},cC=function(t){return t.rejection!==Y1&&!t.parent},mj=function(t){Xo(Gb,Ha,function(){var e=t.facade;Lf?G1.emit("rejectionHandled",e):lC(dj,e,t.value)})},$o=function(t,e,A){return function(r){t(e,r,A)}},es=function(t,e,A){t.done||(t.done=!0,A&&(t=A),t.value=e,t.state=pj,sC(t,!0))},X1=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new qb("Promise can't be resolved itself");var r=iC(e);r?Z1(function(){var n={done:!1};try{Xo(r,e,$o(X1,n,t),$o(es,n,t))}catch(a){es(n,a,t)}}):(t.value=e,t.state=tC,sC(t,!1))}catch(n){es({done:!1},n,t)}}};if(Xb&&(Ti=function(e){nj(this,Df),Aj(e),Xo(Pf,this);var A=J1(this);try{e($o(X1,A),$o(es,A))}catch(r){es(A,r)}},Df=Ti.prototype,Pf=function(e){uj(this,{type:Hf,done:!1,notified:!1,parent:!1,reactions:new sj,rejection:!1,state:eC,value:null})},Pf.prototype=Jb(Df,"then",function(e,A){var r=J1(this),n=z1(aj(this,Ti));return r.parent=!0,n.ok=Of(e)?e:!0,n.fail=Of(A)&&A,n.domain=Lf?G1.domain:void 0,r.state===eC?r.reactions.add(n):Z1(function(){oC(n,r)}),n.promise}),rC=function(){var t=new Pf,e=J1(t);this.promise=t,this.resolve=$o(X1,e),this.reject=$o(es,e)},Yb.f=z1=function(t){return t===Ti||t===nC?new rC(t):fj(t)},Of(kf)&&qo!==Object.prototype)){aC=qo.then,cj||Jb(qo,"then",function(e,A){var r=this;return new Ti(function(n,a){Xo(aC,r,n,a)}).then(e,A)},{unsafe:!0});try{delete qo.constructor}catch{}Kb&&Kb(qo,Df)}q9({global:!0,constructor:!0,wrap:!0,forced:Xb},{Promise:Ti}),nC=$9.Promise,ej(Ti,Hf,!1),tj(Hf);var Ml={},vj=GA,Bj=Ml,wj=vj("iterator"),yj=Array.prototype,bj=function(t){return t!==void 0&&(Bj.Array===t||yj[wj]===t)},Cj=U1,uC=Zo,Ej=uf,Uj=Ml,Fj=GA,Nj=Fj("iterator"),fC=function(t){if(!Ej(t))return uC(t,Nj)||uC(t,"@@iterator")||Uj[Cj(t)]},Qj=tr,Sj=ea,Tj=yr,xj=df,Rj=fC,Ij=TypeError,Vj=function(t,e){var A=arguments.length<2?Rj(t):e;if(Sj(A))return Tj(Qj(A,t));throw new Ij(xj(t)+" is not iterable")},Mj=tr,hC=yr,Lj=Zo,Oj=function(t,e,A){var r,n;hC(t);try{if(r=Lj(t,"return"),!r){if(e==="throw")throw A;return A}r=Mj(r,t)}catch(a){n=!0,r=a}if(e==="throw")throw A;if(n)throw r;return hC(r),A},kj=N1,Hj=tr,Dj=yr,Pj=df,Wj=bj,_j=b1,dC=ff,Zj=Vj,jj=fC,pC=Oj,Jj=TypeError,Wf=function(t,e){this.stopped=t,this.result=e},gC=Wf.prototype,mC=function(t,e,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),a=!!(A&&A.IS_RECORD),i=!!(A&&A.IS_ITERATOR),o=!!(A&&A.INTERRUPTED),s=kj(e,r),l,u,d,g,f,w,v,C=function(y){return l&&pC(l,"normal"),new Wf(!0,y)},B=function(y){return n?(Dj(y),o?s(y[0],y[1],C):s(y[0],y[1])):o?s(y,C):s(y)};if(a)l=t.iterator;else if(i)l=t;else{if(u=jj(t),!u)throw new Jj(Pj(t)+" is not iterable");if(Wj(u)){for(d=0,g=_j(t);g>d;d++)if(f=B(t[d]),f&&dC(gC,f))return f;return new Wf(!1)}l=Zj(t,u)}for(w=a?t.next:l.next;!(v=Hj(w,l)).done;){try{f=B(v.value)}catch(y){pC(l,"throw",y)}if(typeof f=="object"&&f&&dC(gC,f))return f}return new Wf(!1)},Kj=GA,vC=Kj("iterator"),BC=!1;try{var Gj=0,wC={next:function(){return{done:!!Gj++}},return:function(){BC=!0}};wC[vC]=function(){return this},Array.from(wC,function(){throw 2})}catch{}var zj=function(t,e){try{if(!e&&!BC)return!1}catch{return!1}var A=!1;try{var r={};r[vC]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A},Yj=Mf,Xj=zj,qj=Vl.CONSTRUCTOR,yC=qj||!Xj(function(t){Yj.all(t).then(void 0,function(){})}),$j=br,eJ=tr,tJ=ea,AJ=Yo,rJ=P1,nJ=mC,aJ=yC;$j({target:"Promise",stat:!0,forced:aJ},{all:function(e){var A=this,r=AJ.f(A),n=r.resolve,a=r.reject,i=rJ(function(){var o=tJ(A.resolve),s=[],l=0,u=1;nJ(e,function(d){var g=l++,f=!1;u++,eJ(o,A,d).then(function(w){f||(f=!0,s[g]=w,--u||n(s))},a)}),--u||n(s)});return i.error&&a(i.value),r.promise}});var iJ=br,oJ=Vl.CONSTRUCTOR,q1=Mf,sJ=Ni,lJ=RA,cJ=Qi,bC=q1&&q1.prototype;if(iJ({target:"Promise",proto:!0,forced:oJ,real:!0},{catch:function(t){return this.then(void 0,t)}}),lJ(q1)){var CC=sJ("Promise").prototype.catch;bC.catch!==CC&&cJ(bC,"catch",CC,{unsafe:!0})}var uJ=br,fJ=tr,hJ=ea,dJ=Yo,pJ=P1,gJ=mC,mJ=yC;uJ({target:"Promise",stat:!0,forced:mJ},{race:function(e){var A=this,r=dJ.f(A),n=r.reject,a=pJ(function(){var i=hJ(A.resolve);gJ(e,function(o){fJ(i,A,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var vJ=br,BJ=Yo,wJ=Vl.CONSTRUCTOR;vJ({target:"Promise",stat:!0,forced:wJ},{reject:function(e){var A=BJ.f(this),r=A.reject;return r(e),A.promise}});var yJ=yr,bJ=Tr,CJ=Yo,EJ=function(t,e){if(yJ(t),bJ(e)&&e.constructor===t)return e;var A=CJ.f(t),r=A.resolve;return r(e),A.promise},UJ=br,FJ=Ni,NJ=Vl.CONSTRUCTOR,QJ=EJ;FJ("Promise"),UJ({target:"Promise",stat:!0,forced:NJ},{resolve:function(e){return QJ(this,e)}});function EC(t,e,A,r,n,a,i){try{var o=t[a](i),s=o.value}catch(l){return void A(l)}o.done?e(s):Promise.resolve(s).then(r,n)}function Aa(t){return function(){var e=this,A=arguments;return new Promise(function(r,n){var a=t.apply(e,A);function i(s){EC(a,r,n,i,o,"next",s)}function o(s){EC(a,r,n,i,o,"throw",s)}i(void 0)})}}var SJ=U1,TJ=String,_n=function(t){if(SJ(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return TJ(t)},xJ=yr,UC=function(){var t=xJ(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},$1=BA,RJ=fA,eg=RJ.RegExp,tg=$1(function(){var t=eg("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),IJ=tg||$1(function(){return!eg("a","y").sticky}),VJ=tg||$1(function(){var t=eg("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),FC={BROKEN_CARET:VJ,MISSED_STICKY:IJ,UNSUPPORTED_Y:tg},NC={},MJ=rb,LJ=E1,OJ=Object.keys||function(e){return MJ(e,LJ)},kJ=bn,HJ=W5,DJ=ta,PJ=yr,WJ=El,_J=OJ;NC.f=kJ&&!HJ?Object.defineProperties:function(e,A){PJ(e);for(var r=WJ(A),n=_J(A),a=n.length,i=0,o;a>i;)DJ.f(e,o=n[i++],r[o]);return e};var ZJ=yr,jJ=NC,QC=E1,JJ=g1,KJ=Eb,GJ=gf,zJ=p1,SC=">",TC="<",Ag="prototype",rg="script",xC=zJ("IE_PROTO"),ng=function(){},RC=function(t){return TC+rg+SC+t+TC+"/"+rg+SC},IC=function(t){t.write(RC("")),t.close();var e=t.parentWindow.Object;return t=null,e},YJ=function(){var t=GJ("iframe"),e="java"+rg+":",A;return t.style.display="none",KJ.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(RC("document.F=Object")),A.close(),A.F},_f,Zf=function(){try{_f=new ActiveXObject("htmlfile")}catch{}Zf=typeof document<"u"?document.domain&&_f?IC(_f):YJ():IC(_f);for(var t=QC.length;t--;)delete Zf[Ag][QC[t]];return Zf()};JJ[xC]=!0;var ag=Object.create||function(e,A){var r;return e!==null?(ng[Ag]=ZJ(e),r=new ng,ng[Ag]=null,r[xC]=e):r=Zf(),A===void 0?r:jJ.f(r,A)},XJ=BA,qJ=fA,$J=qJ.RegExp,eK=XJ(function(){var t=$J(".","s");return!(t.dotAll&&t.test(`
317
317
  `)&&t.flags==="s")}),tK=BA,AK=fA,rK=AK.RegExp,nK=tK(function(){var t=rK("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ts=tr,jf=wA,aK=_n,iK=UC,oK=FC,sK=n1,lK=ag,cK=yf.get,uK=eK,fK=nK,hK=sK("native-string-replace",String.prototype.replace),Jf=RegExp.prototype.exec,ig=Jf,dK=jf("".charAt),pK=jf("".indexOf),gK=jf("".replace),og=jf("".slice),sg=function(){var t=/a/,e=/b*/g;return ts(Jf,t,"a"),ts(Jf,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),VC=oK.BROKEN_CARET,lg=/()??/.exec("")[1]!==void 0,mK=sg||lg||VC||uK||fK;mK&&(ig=function(e){var A=this,r=cK(A),n=aK(e),a=r.raw,i,o,s,l,u,d,g;if(a)return a.lastIndex=A.lastIndex,i=ts(ig,a,n),A.lastIndex=a.lastIndex,i;var f=r.groups,w=VC&&A.sticky,v=ts(iK,A),C=A.source,B=0,y=n;if(w&&(v=gK(v,"y",""),pK(v,"g")===-1&&(v+="g"),y=og(n,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&dK(n,A.lastIndex-1)!==`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "template-designer",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "模板拖拽设计器组件库",
5
5
  "main": "dist/template-designer.umd.js",
6
6
  "module": "dist/template-designer.esm.js",