template-designer 0.12.6 → 0.12.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.
@@ -2035,7 +2035,7 @@ const Nv = { class: "property-layout-container" }, Sv = {
2035
2035
  }
2036
2036
  }
2037
2037
  }
2038
- return w.forEach((Y) => {
2038
+ return w == null || w.forEach((Y) => {
2039
2039
  if (Y.type === "select") {
2040
2040
  const q = v[Y.prop];
2041
2041
  if (q != null && q !== "" && q !== " ") {
@@ -2303,7 +2303,7 @@ const Nv = { class: "property-layout-container" }, Sv = {
2303
2303
  ])
2304
2304
  ], 2));
2305
2305
  }
2306
- }, po = /* @__PURE__ */ Mt(Tv, [["__scopeId", "data-v-54dd99f3"]]), Iv = {
2306
+ }, po = /* @__PURE__ */ Mt(Tv, [["__scopeId", "data-v-a1684347"]]), Iv = {
2307
2307
  __name: "TextPropertyPanel",
2308
2308
  props: {
2309
2309
  modelValue: {
@@ -7502,9 +7502,9 @@ const BQ = /* @__PURE__ */ Mt(dQ, [["render", gQ]]), $g = [
7502
7502
  ], A2 = $g.flatMap((e) => e.components);
7503
7503
  async function mQ(e) {
7504
7504
  try {
7505
- return window.$templateType = e, (await Fm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-869f3b6b.mjs"), "./props/rfid.js": () => import("./rfid-e92eba04.mjs"), "./props/wxapp.js": () => import("./wxapp-9a751e40.mjs") }), `./props/${e}.js`)).default;
7505
+ return window.$templateType = e, (await Fm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-7cedbbc3.mjs"), "./props/rfid.js": () => import("./rfid-b32d0466.mjs"), "./props/wxapp.js": () => import("./wxapp-dd3e8f1f.mjs") }), `./props/${e}.js`)).default;
7506
7506
  } catch {
7507
- return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-869f3b6b.mjs")).default;
7507
+ return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-7cedbbc3.mjs")).default;
7508
7508
  }
7509
7509
  }
7510
7510
  function wQ(e = {}, A = {}) {
@@ -23321,7 +23321,7 @@ function(e) {
23321
23321
  */
23322
23322
  function(e) {
23323
23323
  function A() {
23324
- return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-539a21b5.mjs")).catch(function(t) {
23324
+ return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-43569d26.mjs")).catch(function(t) {
23325
23325
  return Promise.reject(new Error("Could not load canvg: " + t));
23326
23326
  }).then(function(t) {
23327
23327
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-154bf834.mjs";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-db1ae626.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-154bf834.mjs";
1
+ import { R as e } from "./index-db1ae626.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
@@ -1,4 +1,4 @@
1
- import { R as e } from "./index-154bf834.mjs";
1
+ import { R as e } from "./index-db1ae626.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .td-text-component{width:100%;height:100%;position:relative;display:flex;align-items:center;overflow:hidden;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);will-change:transform}.td-text-content{width:100%;min-width:0;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-font-feature-settings:"kern" 1;font-feature-settings:"kern" 1}.label[data-v-1d60731e]{display:flex;align-items:center;justify-content:flex-start;gap:4px}.help-icon[data-v-1d60731e]{font-size:14px;color:#999;cursor:pointer;transition:color .2s ease}.help-icon[data-v-1d60731e]:hover{color:var(--el-color-primary)}.property-item[data-v-1d60731e]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-1d60731e]{font-size:14px;color:#666}.property-item input[data-v-1d60731e],.property-item select[data-v-1d60731e]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-1d60731e]{height:32px;padding:2px}.property-item input[type=checkbox][data-v-1d60731e]{width:16px;height:16px}.file-input-container[data-v-1d60731e]{position:relative;display:flex;align-items:center;gap:8px}.file-input-container input[data-v-1d60731e]{height:100%!important}.file-url-input[data-v-1d60731e]{flex:1;padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px}.file-url-input[data-v-1d60731e]:disabled{background-color:#f5f5f5;cursor:not-allowed}.file-input[data-v-1d60731e]{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.file-select-btn[data-v-1d60731e]{padding:4px 12px;border:1px solid #ddd;border-radius:4px;background:var(--el-color-primary);color:#fff;cursor:pointer;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:4px}.file-select-btn[data-v-1d60731e]:hover:not(:disabled){background:var(--el-color-primary-dark-2);border-color:var(--el-color-primary-dark-2)}.file-select-btn[data-v-1d60731e]:disabled{background:#ccc;cursor:not-allowed}.file-info[data-v-1d60731e]{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background-color:#f5f5f5;border-radius:4px;margin-top:4px}.file-name[data-v-1d60731e]{font-size:12px;color:#666;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clear-btn[data-v-1d60731e]{background:none;border:none;color:#ff4d4f;cursor:pointer;font-size:12px;padding:2px 6px;border-radius:2px}.clear-btn[data-v-1d60731e]:hover{background-color:#fff2f0}.property-item .el-select[data-v-1d60731e]{width:100%}.property-item .el-select .el-input__wrapper[data-v-1d60731e]{height:32px;line-height:32px;font-size:14px;padding:0 8px}.property-item .el-select .el-input__inner[data-v-1d60731e]{font-size:14px;height:32px;line-height:32px}.property-item .el-select .el-select__tags[data-v-1d60731e]{font-size:12px}.property-item .el-select .el-select__tags .el-tag[data-v-1d60731e]{font-size:12px;height:20px;line-height:18px;margin:2px 4px 2px 0}.property-item .el-select--multiple .el-input__wrapper[data-v-1d60731e]{min-height:32px;height:auto;padding:2px 8px}.property-item .el-select--multiple .el-input__inner[data-v-1d60731e]{height:28px;line-height:28px}.property-panel[data-v-54dd99f3]{padding:16px;background:#fff;border-left:1px solid #e4e7ed;overflow-y:auto;height:100%}.property-group[data-v-54dd99f3]{margin-bottom:16px}.property-group-title[data-v-54dd99f3]{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #ebeef5}.property-item[data-v-54dd99f3]{margin-bottom:12px}.text-property-panel .property-item[data-v-54dd99f3]:last-child,.barcode-property-panel .property-item[data-v-54dd99f3]:last-child,.qrcode-property-panel .property-item[data-v-54dd99f3]:last-child,.image-property-panel .property-item[data-v-54dd99f3]:last-child,.rectangle-property-panel .property-item[data-v-54dd99f3]:last-child,.line-property-panel .property-item[data-v-54dd99f3]:last-child,.verline-property-panel .property-item[data-v-54dd99f3]:last-child{margin-bottom:0}.property-layout-container[data-v-54dd99f3]{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.property-item-wrapper[data-v-54dd99f3]{margin-bottom:0}.property-item-wrapper.full-width[data-v-54dd99f3]{width:100%;flex-basis:100%}.property-item-wrapper.half-width[data-v-54dd99f3]{width:calc(50% - 6px);flex-basis:calc(50% - 6px)}.property-item-wrapper.default-width[data-v-54dd99f3]{width:100%;flex-basis:100%}.property-item-wrapper .property-item[data-v-54dd99f3]{margin-bottom:0;width:100%}.barcode-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.barcode-component svg{width:100%!important;height:100%!important;max-width:100%;max-height:100%;display:block}.component-selection-overlay{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-component[data-v-289bd7f0]{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.qrcode-canvas-fixed[data-v-289bd7f0]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0}.qrcode-image[data-v-289bd7f0]{display:block;width:100%!important;height:100%!important;padding:0;margin:0;image-rendering:auto;image-rendering:-webkit-optimize-contrast;image-rendering:smooth;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;filter:none;-webkit-filter:none;object-fit:contain;object-position:center}.component-selection-overlay[data-v-289bd7f0]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-property-panel[data-v-cce393d5]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-cce393d5]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-cce393d5]{font-size:14px;color:#666}.property-item input[data-v-cce393d5],.property-item select[data-v-cce393d5]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-cce393d5]{height:32px;padding:2px}.image-component[data-v-b85fcbca]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;pointer-events:auto}.image-placeholder[data-v-b85fcbca]{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999;font-size:12px;gap:8px;pointer-events:auto}.image-loading-overlay[data-v-b85fcbca]{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);z-index:5;pointer-events:none}.image-content[data-v-b85fcbca]{display:block;max-width:100%;max-height:100%;image-rendering:-webkit-optimize-contrast;image-rendering:-webkit-crisp-edges;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:crisp-edges;image-rendering:high-quality;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:auto;object-fit:contain;object-position:center}.component-selection-overlay[data-v-b85fcbca]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.image-property-panel[data-v-462c8b63]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-462c8b63]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-462c8b63]{font-size:14px;color:#666}.property-item input[data-v-462c8b63],.property-item select[data-v-462c8b63]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-462c8b63]{height:32px;padding:2px}.rectangle-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.rectangle-content{width:100%;height:100%;box-sizing:border-box;position:relative}.hairline-edge{position:absolute;pointer-events:none}.rectangle-property-panel[data-v-e06ed44e]{display:flex;flex-direction:column;gap:12px}.line-component{position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.line-selection-outline{position:absolute;left:0;top:0;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.component-list[data-v-010ae52b]{background:#fff;display:flex;flex-direction:column;gap:20px}.component-group[data-v-010ae52b]{display:flex;flex-direction:column;gap:8px}.group-title[data-v-010ae52b]{font-size:14px;font-weight:600;color:#333;padding:8px 12px;border-left:4px solid var(--el-color-primary);background:linear-gradient(135deg,var(--el-color-primary-light-9) 0%,var(--el-color-primary-light-8) 100%);border-radius:0 6px 6px 0;margin-bottom:4px;box-shadow:0 1px 3px #0000001a}.group-content[data-v-010ae52b]{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:8px;grid-column-gap:8px}.component-item[data-v-010ae52b]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 0;border:1px solid #ddd;border-radius:4px;cursor:grab;font-size:13px;color:#555;transition:all .2s ease;width:100%;height:70px;background:#fff;box-shadow:0 1px 3px #0000001a}.component-item[data-v-010ae52b]:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary);color:var(--el-color-primary);box-shadow:0 2px 8px #00000014}.component-item i[data-v-010ae52b]{font-size:24px;margin-bottom:8px;color:var(--el-color-primary)}.component-item span[data-v-010ae52b]{font-size:12px;text-align:center;color:#333}.component-item:hover i[data-v-010ae52b],.component-item:hover span[data-v-010ae52b]{color:var(--el-color-primary)!important}.ruler[data-v-f0df7b80]{position:absolute;z-index:1}.ruler.horizontal[data-v-f0df7b80]{left:20px;top:0;width:calc(100% - 40px);height:20px;border-bottom:none}.ruler.vertical[data-v-f0df7b80]{top:20px;left:0;width:20px;height:calc(100% - 40px);border-right:none}.ruler-unit[data-v-f0df7b80]{position:absolute}.ruler.horizontal .ruler-unit[data-v-f0df7b80]{height:100%}.ruler.vertical .ruler-unit[data-v-f0df7b80]{width:100%}.ruler-mark[data-v-f0df7b80]{position:absolute;background:#999}.ruler.horizontal .ruler-mark[data-v-f0df7b80]{bottom:0}.ruler.vertical .ruler-mark[data-v-f0df7b80]{right:0}.ruler-text[data-v-f0df7b80]{position:absolute;font-size:8px;color:#666;white-space:nowrap}.ruler.horizontal .ruler-text[data-v-f0df7b80]{bottom:8px;transform:translate(-50%)}.ruler.vertical .ruler-text[data-v-f0df7b80]{right:8px;transform:translateY(-50%) rotate(-90deg)}.label-container[data-v-11f07674]{display:flex;flex-direction:column;align-items:flex-end}.tg-title[data-v-11f07674]{display:flex;align-items:center}.tg-title p[data-v-11f07674]{font-size:18px;font-weight:700}.tge-main[data-v-11f07674]{max-height:82vh;padding:0}.tge-text[data-v-11f07674]{font-size:14px;line-height:26px}.tge-content[data-v-11f07674]{display:flex;width:100%}.tge-block[data-v-11f07674]{display:flex;flex-direction:column;flex:1}.tge-title[data-v-11f07674]{padding:6px 0;font-size:14px;color:var(--el-color-primary)}.tge-img[data-v-11f07674]{width:100%;height:auto}.table-container[data-v-11f07674]{width:100%;border:1px dashed #ddd;border-radius:4px}.empty-placeholder[data-v-11f07674]{display:flex;align-items:center;justify-content:center;color:#999;padding:20px;border-radius:4px;min-height:80px}.graph-table[data-v-11f07674]{margin-top:10px}.tge-divider[data-v-11f07674]{width:1px;background:var(--el-border-color);margin:0 10px}.table-container .el-table .el-table__body-wrapper{background:transparent!important}.graph-table .el-table__header,.graph-table .el-table__body{width:100%!important}.graph-table .el-table__body{margin-bottom:10px!important}.graph-table .el-form-item__error{position:static!important;top:0!important}.graph-table .el-input-number{width:auto}.graph-table .el-input-number.is-without-controls .el-input__wrapper{padding-left:4px;padding-right:4px}button[data-v-46b02c10]{display:flex;align-items:center;justify-content:center}.label-designer[data-v-46b02c10]{display:flex;height:100%}.toolbar[data-v-46b02c10]{width:200px;background:#fff;border-right:1px solid #e0e0e0;padding:16px;display:flex;flex-direction:column;gap:16px}.zoom-controls span[data-v-46b02c10]{width:44px;text-align:center}.zoom-controls[data-v-46b02c10]{display:flex;align-items:center;gap:8px;border-radius:4px;padding:4px 8px}.zoom-controls button[data-v-46b02c10]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.zoom-controls button[data-v-46b02c10]:disabled{opacity:.5;cursor:not-allowed}.center-container[data-v-46b02c10]{display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.center-toolbar[data-v-46b02c10]{display:flex;align-items:center;justify-content:flex-end;padding:16px 16px 0}.canvas-container[data-v-46b02c10]{flex:1;padding:0 16px 16px;overflow:auto;position:relative;display:flex;flex-direction:column}.canvas-wrapper[data-v-46b02c10]{position:relative;transform-origin:0 0;overflow:visible;width:fit-content;height:fit-content;margin-top:20px;transition:all .2s ease;transform:translateZ(0);will-change:transform}.ruler-horizontal[data-v-46b02c10]{position:absolute;left:0;top:0;right:0;height:24px;z-index:10;pointer-events:none}.ruler-vertical[data-v-46b02c10]{position:absolute;left:0;top:0;bottom:0;width:24px;z-index:10;pointer-events:none}.canvas[data-v-46b02c10]{position:relative;overflow:visible;z-index:1;position:absolute;left:21px;top:21px}.property-panel[data-v-46b02c10]{width:300px;background:#fff;border-left:1px solid #ddd;padding:0 16px 100px;display:flex;flex-direction:column;position:relative;z-index:100;overflow-y:auto}.property-panel-header[data-v-46b02c10]{display:flex;flex-direction:column;position:sticky;top:0;left:0;right:0;z-index:100;background:#fff;padding-bottom:12px}.property-panel-operate[data-v-46b02c10]{display:flex;align-items:center;margin-top:10px}.property-panel-title[data-v-46b02c10]{display:flex;align-items:center;justify-content:flex-start;margin:10px 0 0;gap:8px}.property-panel-title .help-icon[data-v-46b02c10]{font-size:18px;color:#999;transition:color .2s ease}.property-panel-title .help-icon[data-v-46b02c10]:hover{color:var(--el-color-primary)}.position-controls[data-v-46b02c10]{display:flex;flex-direction:column;gap:12px;padding:12px;background:#f5f5f5;border-radius:4px;margin-bottom:16px}.control-group[data-v-46b02c10]{display:flex;align-items:center;justify-content:space-between}.control-group label[data-v-46b02c10]{width:80px;font-size:14px;color:#666;text-align:start}.number-input[data-v-46b02c10]{display:flex;align-items:center;gap:4px}.number-input input[data-v-46b02c10]{width:90px;padding:4px;border:1px solid #ddd;border-radius:4px;text-align:center}.number-input button[data-v-46b02c10]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.rotation-display[data-v-46b02c10]{display:flex;align-items:center;justify-content:center;min-width:40px;height:24px;font-size:12px;color:#666;border:1px solid #ddd;background:#f9f9f9;border-radius:4px}.canvas-item[data-v-46b02c10]{position:absolute;cursor:move;-webkit-user-select:none;user-select:none;z-index:10;transform:translateZ(0);will-change:transform;left:0;top:0;pointer-events:auto}.resize-handle[data-v-46b02c10]{position:absolute;width:4px;height:4px;background:#ffffff;border:.5px solid var(--el-color-primary-light-3);z-index:1001;transition:all .2s ease;border-radius:50%;display:block!important;visibility:visible!important;opacity:1!important;transform:translateZ(0);will-change:transform;font-size:16px!important;line-height:1!important;cursor:pointer}.resize-handle.top-left[data-v-46b02c10]{top:-2px;left:-2px}.resize-handle.top[data-v-46b02c10]{top:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.top-right[data-v-46b02c10]{top:-2px;right:-2px}.resize-handle.right[data-v-46b02c10]{top:50%;right:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.bottom-right[data-v-46b02c10]{bottom:-2px;right:-2px}.resize-handle.bottom[data-v-46b02c10]{bottom:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.bottom-left[data-v-46b02c10]{bottom:-2px;left:-2px}.resize-handle.left[data-v-46b02c10]{top:50%;left:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.line-anchor[data-v-46b02c10]{width:4px;height:4px;border-radius:50%}.rotate-handle[data-v-46b02c10]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:-8px;width:12px;height:12px;background:#ffffff;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:grab;z-index:1002;display:flex;align-items:center;justify-content:center}.size-label[data-v-46b02c10]{display:flex;justify-content:center;flex-wrap:nowrap;white-space:nowrap;position:absolute;top:-14px;left:-4px;width:auto;min-width:70px;height:auto;background:rgba(255,34,34,.8);color:#fff;font-size:7px;border-radius:6px;z-index:20;line-height:1.2;box-shadow:0 2px 8px #00000014;pointer-events:none;padding:1px 8px 0}.delete-btn[data-v-46b02c10]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:8px;width:12px;height:12px;background:#ffffff;color:#ff4d4f;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:pointer;z-index:1003;display:flex;align-items:center;justify-content:center}.delete-btn.delete-btn-centered[data-v-46b02c10]{margin-left:0}.drag-extend-lines[data-v-46b02c10]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.drag-extend-line[data-v-46b02c10]{position:absolute;pointer-events:none;z-index:998}.drag-extend-line.horizontal[data-v-46b02c10]{width:100%;height:1px;left:0;background:linear-gradient(to right,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.drag-extend-line.vertical[data-v-46b02c10]{width:1px;height:100%;top:0;background:linear-gradient(to bottom,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.drag-extend-line.rotated[data-v-46b02c10]{position:absolute;border:1px dashed var(--el-color-primary-light-3);pointer-events:none;z-index:998}.alignment-guides[data-v-46b02c10]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.alignment-guide[data-v-46b02c10]{background-color:transparent;pointer-events:none;z-index:9999}.alignment-guide.horizontal[data-v-46b02c10]{position:absolute;left:0;right:0;height:1px;background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.alignment-guide.vertical[data-v-46b02c10]{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.alignment-guide.guide-center[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-center.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-resize-anchor[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-resize-anchor.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-canvas-center[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px}.alignment-guide.guide-canvas-center.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px}.alignment-guide.guide-boundary[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:3px 1px}.alignment-guide.guide-boundary.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 3px}.number-input input[type=number][data-v-46b02c10]::-webkit-inner-spin-button,.number-input input[type=number][data-v-46b02c10]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.switch-input[data-v-46b02c10]{display:flex;align-items:center}.switch-input input[type=checkbox][data-v-46b02c10]{width:20px;height:20px;cursor:pointer;accent-color:var(--el-color-primary-light-3)}.component-selected[data-v-46b02c10]{outline:1px dashed var(--el-color-info-light-3)!important;outline-offset:0!important}.component-current[data-v-46b02c10]{outline:1px dashed var(--el-color-primary-light-3)!important;outline-offset:0!important}.component-selected[data-v-46b02c10],.component-current[data-v-46b02c10]{box-sizing:border-box}.component-config-missing[data-v-46b02c10]{display:flex;align-items:center;justify-content:center;background:#fff3cd;border:1px dashed #ffc107;border-radius:4px;color:#856404;font-size:12px}.missing-config-tip[data-v-46b02c10]{display:flex;align-items:center;gap:4px;padding:8px}.missing-config-tip .el-icon[data-v-46b02c10]{font-size:14px;color:#ffc107}.loader-container[data-v-46b02c10]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center}.loader-container p[data-v-46b02c10]{color:var(--el-color-primary-light-3);font-size:14px;margin-top:20px}.loader-circle[data-v-46b02c10]{width:70px;height:70px;display:inline-block;margin-right:10px;position:relative;vertical-align:top}.loader-circle[data-v-46b02c10]:before{border-radius:50%;border-top:5px solid var(--el-color-primary-light-3);content:" ";display:block;position:absolute;top:10%;left:10%;height:80%;width:80%;animation:loader-circle_rotation-46b02c10 1s linear infinite}.loader-circle[data-v-46b02c10]:after{border-radius:50%;border-bottom:5px solid var(--el-color-primary-light-3);content:" ";display:block;height:100%;width:100%;animation:loader-circle_rotation-reverse-46b02c10 1s linear infinite;position:absolute;top:0}@keyframes loader-circle_rotation-reverse-46b02c10{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes loader-circle_rotation-46b02c10{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.template-designer[data-v-a3d9b11f]{overflow-y:hidden}.template-designer-border-top[data-v-a3d9b11f]{border-top:1px solid #e0e0e0}
1
+ .td-text-component{width:100%;height:100%;position:relative;display:flex;align-items:center;overflow:hidden;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);will-change:transform}.td-text-content{width:100%;min-width:0;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-font-feature-settings:"kern" 1;font-feature-settings:"kern" 1}.label[data-v-1d60731e]{display:flex;align-items:center;justify-content:flex-start;gap:4px}.help-icon[data-v-1d60731e]{font-size:14px;color:#999;cursor:pointer;transition:color .2s ease}.help-icon[data-v-1d60731e]:hover{color:var(--el-color-primary)}.property-item[data-v-1d60731e]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-1d60731e]{font-size:14px;color:#666}.property-item input[data-v-1d60731e],.property-item select[data-v-1d60731e]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-1d60731e]{height:32px;padding:2px}.property-item input[type=checkbox][data-v-1d60731e]{width:16px;height:16px}.file-input-container[data-v-1d60731e]{position:relative;display:flex;align-items:center;gap:8px}.file-input-container input[data-v-1d60731e]{height:100%!important}.file-url-input[data-v-1d60731e]{flex:1;padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px}.file-url-input[data-v-1d60731e]:disabled{background-color:#f5f5f5;cursor:not-allowed}.file-input[data-v-1d60731e]{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.file-select-btn[data-v-1d60731e]{padding:4px 12px;border:1px solid #ddd;border-radius:4px;background:var(--el-color-primary);color:#fff;cursor:pointer;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:4px}.file-select-btn[data-v-1d60731e]:hover:not(:disabled){background:var(--el-color-primary-dark-2);border-color:var(--el-color-primary-dark-2)}.file-select-btn[data-v-1d60731e]:disabled{background:#ccc;cursor:not-allowed}.file-info[data-v-1d60731e]{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background-color:#f5f5f5;border-radius:4px;margin-top:4px}.file-name[data-v-1d60731e]{font-size:12px;color:#666;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clear-btn[data-v-1d60731e]{background:none;border:none;color:#ff4d4f;cursor:pointer;font-size:12px;padding:2px 6px;border-radius:2px}.clear-btn[data-v-1d60731e]:hover{background-color:#fff2f0}.property-item .el-select[data-v-1d60731e]{width:100%}.property-item .el-select .el-input__wrapper[data-v-1d60731e]{height:32px;line-height:32px;font-size:14px;padding:0 8px}.property-item .el-select .el-input__inner[data-v-1d60731e]{font-size:14px;height:32px;line-height:32px}.property-item .el-select .el-select__tags[data-v-1d60731e]{font-size:12px}.property-item .el-select .el-select__tags .el-tag[data-v-1d60731e]{font-size:12px;height:20px;line-height:18px;margin:2px 4px 2px 0}.property-item .el-select--multiple .el-input__wrapper[data-v-1d60731e]{min-height:32px;height:auto;padding:2px 8px}.property-item .el-select--multiple .el-input__inner[data-v-1d60731e]{height:28px;line-height:28px}.property-panel[data-v-a1684347]{padding:16px;background:#fff;border-left:1px solid #e4e7ed;overflow-y:auto;height:100%}.property-group[data-v-a1684347]{margin-bottom:16px}.property-group-title[data-v-a1684347]{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #ebeef5}.property-item[data-v-a1684347]{margin-bottom:12px}.text-property-panel .property-item[data-v-a1684347]:last-child,.barcode-property-panel .property-item[data-v-a1684347]:last-child,.qrcode-property-panel .property-item[data-v-a1684347]:last-child,.image-property-panel .property-item[data-v-a1684347]:last-child,.rectangle-property-panel .property-item[data-v-a1684347]:last-child,.line-property-panel .property-item[data-v-a1684347]:last-child,.verline-property-panel .property-item[data-v-a1684347]:last-child{margin-bottom:0}.property-layout-container[data-v-a1684347]{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.property-item-wrapper[data-v-a1684347]{margin-bottom:0}.property-item-wrapper.full-width[data-v-a1684347]{width:100%;flex-basis:100%}.property-item-wrapper.half-width[data-v-a1684347]{width:calc(50% - 6px);flex-basis:calc(50% - 6px)}.property-item-wrapper.default-width[data-v-a1684347]{width:100%;flex-basis:100%}.property-item-wrapper .property-item[data-v-a1684347]{margin-bottom:0;width:100%}.barcode-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.barcode-component svg{width:100%!important;height:100%!important;max-width:100%;max-height:100%;display:block}.component-selection-overlay{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-component[data-v-289bd7f0]{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.qrcode-canvas-fixed[data-v-289bd7f0]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0}.qrcode-image[data-v-289bd7f0]{display:block;width:100%!important;height:100%!important;padding:0;margin:0;image-rendering:auto;image-rendering:-webkit-optimize-contrast;image-rendering:smooth;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;filter:none;-webkit-filter:none;object-fit:contain;object-position:center}.component-selection-overlay[data-v-289bd7f0]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-property-panel[data-v-cce393d5]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-cce393d5]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-cce393d5]{font-size:14px;color:#666}.property-item input[data-v-cce393d5],.property-item select[data-v-cce393d5]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-cce393d5]{height:32px;padding:2px}.image-component[data-v-b85fcbca]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;pointer-events:auto}.image-placeholder[data-v-b85fcbca]{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999;font-size:12px;gap:8px;pointer-events:auto}.image-loading-overlay[data-v-b85fcbca]{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);z-index:5;pointer-events:none}.image-content[data-v-b85fcbca]{display:block;max-width:100%;max-height:100%;image-rendering:-webkit-optimize-contrast;image-rendering:-webkit-crisp-edges;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:crisp-edges;image-rendering:high-quality;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:auto;object-fit:contain;object-position:center}.component-selection-overlay[data-v-b85fcbca]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.image-property-panel[data-v-462c8b63]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-462c8b63]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-462c8b63]{font-size:14px;color:#666}.property-item input[data-v-462c8b63],.property-item select[data-v-462c8b63]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-462c8b63]{height:32px;padding:2px}.rectangle-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.rectangle-content{width:100%;height:100%;box-sizing:border-box;position:relative}.hairline-edge{position:absolute;pointer-events:none}.rectangle-property-panel[data-v-e06ed44e]{display:flex;flex-direction:column;gap:12px}.line-component{position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.line-selection-outline{position:absolute;left:0;top:0;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.component-list[data-v-010ae52b]{background:#fff;display:flex;flex-direction:column;gap:20px}.component-group[data-v-010ae52b]{display:flex;flex-direction:column;gap:8px}.group-title[data-v-010ae52b]{font-size:14px;font-weight:600;color:#333;padding:8px 12px;border-left:4px solid var(--el-color-primary);background:linear-gradient(135deg,var(--el-color-primary-light-9) 0%,var(--el-color-primary-light-8) 100%);border-radius:0 6px 6px 0;margin-bottom:4px;box-shadow:0 1px 3px #0000001a}.group-content[data-v-010ae52b]{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:8px;grid-column-gap:8px}.component-item[data-v-010ae52b]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 0;border:1px solid #ddd;border-radius:4px;cursor:grab;font-size:13px;color:#555;transition:all .2s ease;width:100%;height:70px;background:#fff;box-shadow:0 1px 3px #0000001a}.component-item[data-v-010ae52b]:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary);color:var(--el-color-primary);box-shadow:0 2px 8px #00000014}.component-item i[data-v-010ae52b]{font-size:24px;margin-bottom:8px;color:var(--el-color-primary)}.component-item span[data-v-010ae52b]{font-size:12px;text-align:center;color:#333}.component-item:hover i[data-v-010ae52b],.component-item:hover span[data-v-010ae52b]{color:var(--el-color-primary)!important}.ruler[data-v-f0df7b80]{position:absolute;z-index:1}.ruler.horizontal[data-v-f0df7b80]{left:20px;top:0;width:calc(100% - 40px);height:20px;border-bottom:none}.ruler.vertical[data-v-f0df7b80]{top:20px;left:0;width:20px;height:calc(100% - 40px);border-right:none}.ruler-unit[data-v-f0df7b80]{position:absolute}.ruler.horizontal .ruler-unit[data-v-f0df7b80]{height:100%}.ruler.vertical .ruler-unit[data-v-f0df7b80]{width:100%}.ruler-mark[data-v-f0df7b80]{position:absolute;background:#999}.ruler.horizontal .ruler-mark[data-v-f0df7b80]{bottom:0}.ruler.vertical .ruler-mark[data-v-f0df7b80]{right:0}.ruler-text[data-v-f0df7b80]{position:absolute;font-size:8px;color:#666;white-space:nowrap}.ruler.horizontal .ruler-text[data-v-f0df7b80]{bottom:8px;transform:translate(-50%)}.ruler.vertical .ruler-text[data-v-f0df7b80]{right:8px;transform:translateY(-50%) rotate(-90deg)}.label-container[data-v-11f07674]{display:flex;flex-direction:column;align-items:flex-end}.tg-title[data-v-11f07674]{display:flex;align-items:center}.tg-title p[data-v-11f07674]{font-size:18px;font-weight:700}.tge-main[data-v-11f07674]{max-height:82vh;padding:0}.tge-text[data-v-11f07674]{font-size:14px;line-height:26px}.tge-content[data-v-11f07674]{display:flex;width:100%}.tge-block[data-v-11f07674]{display:flex;flex-direction:column;flex:1}.tge-title[data-v-11f07674]{padding:6px 0;font-size:14px;color:var(--el-color-primary)}.tge-img[data-v-11f07674]{width:100%;height:auto}.table-container[data-v-11f07674]{width:100%;border:1px dashed #ddd;border-radius:4px}.empty-placeholder[data-v-11f07674]{display:flex;align-items:center;justify-content:center;color:#999;padding:20px;border-radius:4px;min-height:80px}.graph-table[data-v-11f07674]{margin-top:10px}.tge-divider[data-v-11f07674]{width:1px;background:var(--el-border-color);margin:0 10px}.table-container .el-table .el-table__body-wrapper{background:transparent!important}.graph-table .el-table__header,.graph-table .el-table__body{width:100%!important}.graph-table .el-table__body{margin-bottom:10px!important}.graph-table .el-form-item__error{position:static!important;top:0!important}.graph-table .el-input-number{width:auto}.graph-table .el-input-number.is-without-controls .el-input__wrapper{padding-left:4px;padding-right:4px}button[data-v-46b02c10]{display:flex;align-items:center;justify-content:center}.label-designer[data-v-46b02c10]{display:flex;height:100%}.toolbar[data-v-46b02c10]{width:200px;background:#fff;border-right:1px solid #e0e0e0;padding:16px;display:flex;flex-direction:column;gap:16px}.zoom-controls span[data-v-46b02c10]{width:44px;text-align:center}.zoom-controls[data-v-46b02c10]{display:flex;align-items:center;gap:8px;border-radius:4px;padding:4px 8px}.zoom-controls button[data-v-46b02c10]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.zoom-controls button[data-v-46b02c10]:disabled{opacity:.5;cursor:not-allowed}.center-container[data-v-46b02c10]{display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.center-toolbar[data-v-46b02c10]{display:flex;align-items:center;justify-content:flex-end;padding:16px 16px 0}.canvas-container[data-v-46b02c10]{flex:1;padding:0 16px 16px;overflow:auto;position:relative;display:flex;flex-direction:column}.canvas-wrapper[data-v-46b02c10]{position:relative;transform-origin:0 0;overflow:visible;width:fit-content;height:fit-content;margin-top:20px;transition:all .2s ease;transform:translateZ(0);will-change:transform}.ruler-horizontal[data-v-46b02c10]{position:absolute;left:0;top:0;right:0;height:24px;z-index:10;pointer-events:none}.ruler-vertical[data-v-46b02c10]{position:absolute;left:0;top:0;bottom:0;width:24px;z-index:10;pointer-events:none}.canvas[data-v-46b02c10]{position:relative;overflow:visible;z-index:1;position:absolute;left:21px;top:21px}.property-panel[data-v-46b02c10]{width:300px;background:#fff;border-left:1px solid #ddd;padding:0 16px 100px;display:flex;flex-direction:column;position:relative;z-index:100;overflow-y:auto}.property-panel-header[data-v-46b02c10]{display:flex;flex-direction:column;position:sticky;top:0;left:0;right:0;z-index:100;background:#fff;padding-bottom:12px}.property-panel-operate[data-v-46b02c10]{display:flex;align-items:center;margin-top:10px}.property-panel-title[data-v-46b02c10]{display:flex;align-items:center;justify-content:flex-start;margin:10px 0 0;gap:8px}.property-panel-title .help-icon[data-v-46b02c10]{font-size:18px;color:#999;transition:color .2s ease}.property-panel-title .help-icon[data-v-46b02c10]:hover{color:var(--el-color-primary)}.position-controls[data-v-46b02c10]{display:flex;flex-direction:column;gap:12px;padding:12px;background:#f5f5f5;border-radius:4px;margin-bottom:16px}.control-group[data-v-46b02c10]{display:flex;align-items:center;justify-content:space-between}.control-group label[data-v-46b02c10]{width:80px;font-size:14px;color:#666;text-align:start}.number-input[data-v-46b02c10]{display:flex;align-items:center;gap:4px}.number-input input[data-v-46b02c10]{width:90px;padding:4px;border:1px solid #ddd;border-radius:4px;text-align:center}.number-input button[data-v-46b02c10]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.rotation-display[data-v-46b02c10]{display:flex;align-items:center;justify-content:center;min-width:40px;height:24px;font-size:12px;color:#666;border:1px solid #ddd;background:#f9f9f9;border-radius:4px}.canvas-item[data-v-46b02c10]{position:absolute;cursor:move;-webkit-user-select:none;user-select:none;z-index:10;transform:translateZ(0);will-change:transform;left:0;top:0;pointer-events:auto}.resize-handle[data-v-46b02c10]{position:absolute;width:4px;height:4px;background:#ffffff;border:.5px solid var(--el-color-primary-light-3);z-index:1001;transition:all .2s ease;border-radius:50%;display:block!important;visibility:visible!important;opacity:1!important;transform:translateZ(0);will-change:transform;font-size:16px!important;line-height:1!important;cursor:pointer}.resize-handle.top-left[data-v-46b02c10]{top:-2px;left:-2px}.resize-handle.top[data-v-46b02c10]{top:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.top-right[data-v-46b02c10]{top:-2px;right:-2px}.resize-handle.right[data-v-46b02c10]{top:50%;right:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.bottom-right[data-v-46b02c10]{bottom:-2px;right:-2px}.resize-handle.bottom[data-v-46b02c10]{bottom:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.bottom-left[data-v-46b02c10]{bottom:-2px;left:-2px}.resize-handle.left[data-v-46b02c10]{top:50%;left:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.line-anchor[data-v-46b02c10]{width:4px;height:4px;border-radius:50%}.rotate-handle[data-v-46b02c10]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:-8px;width:12px;height:12px;background:#ffffff;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:grab;z-index:1002;display:flex;align-items:center;justify-content:center}.size-label[data-v-46b02c10]{display:flex;justify-content:center;flex-wrap:nowrap;white-space:nowrap;position:absolute;top:-14px;left:-4px;width:auto;min-width:70px;height:auto;background:rgba(255,34,34,.8);color:#fff;font-size:7px;border-radius:6px;z-index:20;line-height:1.2;box-shadow:0 2px 8px #00000014;pointer-events:none;padding:1px 8px 0}.delete-btn[data-v-46b02c10]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:8px;width:12px;height:12px;background:#ffffff;color:#ff4d4f;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:pointer;z-index:1003;display:flex;align-items:center;justify-content:center}.delete-btn.delete-btn-centered[data-v-46b02c10]{margin-left:0}.drag-extend-lines[data-v-46b02c10]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.drag-extend-line[data-v-46b02c10]{position:absolute;pointer-events:none;z-index:998}.drag-extend-line.horizontal[data-v-46b02c10]{width:100%;height:1px;left:0;background:linear-gradient(to right,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.drag-extend-line.vertical[data-v-46b02c10]{width:1px;height:100%;top:0;background:linear-gradient(to bottom,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.drag-extend-line.rotated[data-v-46b02c10]{position:absolute;border:1px dashed var(--el-color-primary-light-3);pointer-events:none;z-index:998}.alignment-guides[data-v-46b02c10]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.alignment-guide[data-v-46b02c10]{background-color:transparent;pointer-events:none;z-index:9999}.alignment-guide.horizontal[data-v-46b02c10]{position:absolute;left:0;right:0;height:1px;background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.alignment-guide.vertical[data-v-46b02c10]{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.alignment-guide.guide-center[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-center.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-resize-anchor[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-resize-anchor.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-canvas-center[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px}.alignment-guide.guide-canvas-center.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px}.alignment-guide.guide-boundary[data-v-46b02c10]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:3px 1px}.alignment-guide.guide-boundary.vertical[data-v-46b02c10]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 3px}.number-input input[type=number][data-v-46b02c10]::-webkit-inner-spin-button,.number-input input[type=number][data-v-46b02c10]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.switch-input[data-v-46b02c10]{display:flex;align-items:center}.switch-input input[type=checkbox][data-v-46b02c10]{width:20px;height:20px;cursor:pointer;accent-color:var(--el-color-primary-light-3)}.component-selected[data-v-46b02c10]{outline:1px dashed var(--el-color-info-light-3)!important;outline-offset:0!important}.component-current[data-v-46b02c10]{outline:1px dashed var(--el-color-primary-light-3)!important;outline-offset:0!important}.component-selected[data-v-46b02c10],.component-current[data-v-46b02c10]{box-sizing:border-box}.component-config-missing[data-v-46b02c10]{display:flex;align-items:center;justify-content:center;background:#fff3cd;border:1px dashed #ffc107;border-radius:4px;color:#856404;font-size:12px}.missing-config-tip[data-v-46b02c10]{display:flex;align-items:center;gap:4px;padding:8px}.missing-config-tip .el-icon[data-v-46b02c10]{font-size:14px;color:#ffc107}.loader-container[data-v-46b02c10]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center}.loader-container p[data-v-46b02c10]{color:var(--el-color-primary-light-3);font-size:14px;margin-top:20px}.loader-circle[data-v-46b02c10]{width:70px;height:70px;display:inline-block;margin-right:10px;position:relative;vertical-align:top}.loader-circle[data-v-46b02c10]:before{border-radius:50%;border-top:5px solid var(--el-color-primary-light-3);content:" ";display:block;position:absolute;top:10%;left:10%;height:80%;width:80%;animation:loader-circle_rotation-46b02c10 1s linear infinite}.loader-circle[data-v-46b02c10]:after{border-radius:50%;border-bottom:5px solid var(--el-color-primary-light-3);content:" ";display:block;height:100%;width:100%;animation:loader-circle_rotation-reverse-46b02c10 1s linear infinite;position:absolute;top:0}@keyframes loader-circle_rotation-reverse-46b02c10{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes loader-circle_rotation-46b02c10{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.template-designer[data-v-a3d9b11f]{overflow-y:hidden}.template-designer-border-top[data-v-a3d9b11f]{border-top:1px solid #e0e0e0}
@@ -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-154bf834.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-db1ae626.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  t as default,
@@ -2,7 +2,7 @@
2
2
  * @vue/shared v3.5.20
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const EF=Object.prototype.hasOwnProperty,Xh=(t,e)=>EF.call(t,e),bc=t=>typeof t=="function",xs=t=>typeof t=="string",tm=t=>t!==null&&typeof t=="object";var UF=typeof global=="object"&&global&&global.Object===Object&&global;const FF=UF;var NF=typeof self=="object"&&self&&self.Object===Object&&self,SF=FF||NF||Function("return this")();const qh=SF;var QF=qh.Symbol;const $i=QF;var Am=Object.prototype,xF=Am.hasOwnProperty,TF=Am.toString,Ts=$i?$i.toStringTag:void 0;function RF(t){var e=xF.call(t,Ts),A=t[Ts];try{t[Ts]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[Ts]=A:delete t[Ts]),n}var IF=Object.prototype,VF=IF.toString;function MF(t){return VF.call(t)}var LF="[object Null]",OF="[object Undefined]",rm=$i?$i.toStringTag:void 0;function nm(t){return t==null?t===void 0?OF:LF:rm&&rm in Object(t)?RF(t):MF(t)}function kF(t){return t!=null&&typeof t=="object"}var HF="[object Symbol]";function $h(t){return typeof t=="symbol"||kF(t)&&nm(t)==HF}function DF(t,e){for(var A=-1,r=t==null?0:t.length,n=Array(r);++A<r;)n[A]=e(t[A],A,t);return n}var PF=Array.isArray;const ed=PF;var WF=1/0,am=$i?$i.prototype:void 0,im=am?am.toString:void 0;function om(t){if(typeof t=="string")return t;if(ed(t))return DF(t,om)+"";if($h(t))return im?im.call(t):"";var e=t+"";return e=="0"&&1/t==-WF?"-0":e}function sm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _F="[object AsyncFunction]",ZF="[object Function]",jF="[object GeneratorFunction]",JF="[object Proxy]";function KF(t){if(!sm(t))return!1;var e=nm(t);return e==ZF||e==jF||e==_F||e==JF}var GF=qh["__core-js_shared__"];const td=GF;var lm=function(){var t=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function zF(t){return!!lm&&lm in t}var YF=Function.prototype,XF=YF.toString;function qF(t){if(t!=null){try{return XF.call(t)}catch{}try{return t+""}catch{}}return""}var $F=/[\\^$.*+?()[\]{}|]/g,e4=/^\[object .+?Constructor\]$/,t4=Function.prototype,A4=Object.prototype,r4=t4.toString,n4=A4.hasOwnProperty,a4=RegExp("^"+r4.call(n4).replace($F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i4(t){if(!sm(t)||zF(t))return!1;var e=KF(t)?a4:e4;return e.test(qF(t))}function o4(t,e){return t==null?void 0:t[e]}function cm(t,e){var A=o4(t,e);return i4(A)?A:void 0}function s4(t,e){return t===e||t!==t&&e!==e}var l4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c4=/^\w*$/;function u4(t,e){if(ed(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||$h(t)?!0:c4.test(t)||!l4.test(t)||e!=null&&t in Object(e)}var f4=cm(Object,"create");const Rs=f4;function h4(){this.__data__=Rs?Rs(null):{},this.size=0}function d4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var p4="__lodash_hash_undefined__",g4=Object.prototype,m4=g4.hasOwnProperty;function v4(t){var e=this.__data__;if(Rs){var A=e[t];return A===p4?void 0:A}return m4.call(e,t)?e[t]:void 0}var B4=Object.prototype,w4=B4.hasOwnProperty;function y4(t){var e=this.__data__;return Rs?e[t]!==void 0:w4.call(e,t)}var b4="__lodash_hash_undefined__";function C4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?b4:e,this}function ai(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ai.prototype.clear=h4,ai.prototype.delete=d4,ai.prototype.get=v4,ai.prototype.has=y4,ai.prototype.set=C4;function E4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(s4(t[A][0],e))return A;return-1}var U4=Array.prototype,F4=U4.splice;function N4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():F4.call(e,A,1),--this.size,!0}function S4(t){var e=this.__data__,A=Cc(e,t);return A<0?void 0:e[A][1]}function Q4(t){return Cc(this.__data__,t)>-1}function x4(t,e){var A=this.__data__,r=Cc(A,t);return r<0?(++this.size,A.push([t,e])):A[r][1]=e,this}function eo(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=E4,eo.prototype.delete=N4,eo.prototype.get=S4,eo.prototype.has=Q4,eo.prototype.set=x4;var T4=cm(qh,"Map");const R4=T4;function I4(){this.size=0,this.__data__={hash:new ai,map:new(R4||eo),string:new ai}}function V4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ec(t,e){var A=t.__data__;return V4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function M4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function L4(t){return Ec(this,t).get(t)}function O4(t){return Ec(this,t).has(t)}function k4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,this}function ii(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ii.prototype.clear=I4,ii.prototype.delete=M4,ii.prototype.get=L4,ii.prototype.has=O4,ii.prototype.set=k4;var H4="Expected a function";function Ad(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(H4);var A=function(){var r=arguments,n=e?e.apply(this,r):r[0],a=A.cache;if(a.has(n))return a.get(n);var i=t.apply(this,r);return A.cache=a.set(n,i)||a,i};return A.cache=new(Ad.Cache||ii),A}Ad.Cache=ii;var D4=500;function P4(t){var e=Ad(t,function(r){return A.size===D4&&A.clear(),r}),A=e.cache;return e}var W4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_4=/\\(\\)?/g,Z4=P4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(W4,function(A,r,n,a){e.push(n?a.replace(_4,"$1"):r||A)}),e});const j4=Z4;function J4(t){return t==null?"":om(t)}function K4(t,e){return ed(t)?t:u4(t,e)?[t]:j4(J4(t))}var G4=1/0;function z4(t){if(typeof t=="string"||$h(t))return t;var e=t+"";return e=="0"&&1/t==-G4?"-0":e}function Y4(t,e){e=K4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[z4(e[A++])];return A&&A==r?t:void 0}function X4(t,e,A){var r=t==null?void 0:Y4(t,e);return r===void 0?A:r}function q4(t){for(var e=-1,A=t==null?0:t.length,r={};++e<A;){var n=t[e];r[n[0]]=n[1]}return r}const $4=t=>t===void 0,rd=t=>typeof t=="boolean",oi=t=>typeof t=="number",eN=t=>typeof Element>"u"?!1:t instanceof Element,tN=t=>xs(t)?!Number.isNaN(Number(t)):!1;var um;const to=typeof window<"u",AN=t=>typeof t=="string",rN=()=>{};to&&((um=window==null?void 0:window.navigator)!=null&&um.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nd(t){return typeof t=="function"?t():f.unref(t)}function nN(t){return t}function ad(t){return f.getCurrentScope()?(f.onScopeDispose(t),!0):!1}function aN(t,e=!0){f.getCurrentInstance()?f.onMounted(t):e?t():f.nextTick(t)}function iN(t,e,A={}){const{immediate:r=!0}=A,n=f.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function o(){n.value=!1,i()}function s(...l){i(),n.value=!0,a=setTimeout(()=>{n.value=!1,a=null,t(...l)},nd(e))}return r&&(n.value=!0,to&&s()),ad(o),{isPending:f.readonly(n),start:s,stop:o}}function fm(t){var e;const A=nd(t);return(e=A==null?void 0:A.$el)!=null?e:A}const hm=to?window:void 0;function oN(...t){let e,A,r,n;if(AN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=hm):[e,A,r,n]=t,!e)return rN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,h)=>(u.addEventListener(d,g,h),()=>u.removeEventListener(d,g,h)),s=f.watch(()=>[fm(e),nd(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(h=>o(u,g,h,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return ad(l),l}function sN(t,e=!1){const A=f.ref(),r=()=>A.value=!!t();return r(),aN(r,e),A}const dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pm="__vueuse_ssr_handlers__";dm[pm]=dm[pm]||{};var gm=Object.getOwnPropertySymbols,lN=Object.prototype.hasOwnProperty,cN=Object.prototype.propertyIsEnumerable,uN=(t,e)=>{var A={};for(var r in t)lN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&gm)for(var r of gm(t))e.indexOf(r)<0&&cN.call(t,r)&&(A[r]=t[r]);return A};function fN(t,e,A={}){const r=A,{window:n=hm}=r,a=uN(r,["window"]);let i;const o=sN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=f.watch(()=>fm(t),d=>{s(),o.value&&n&&d&&(i=new ResizeObserver(e),i.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return ad(u),{isSupported:o,stop:u}}var mm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(mm||(mm={}));var hN=Object.defineProperty,vm=Object.getOwnPropertySymbols,dN=Object.prototype.hasOwnProperty,pN=Object.prototype.propertyIsEnumerable,Bm=(t,e,A)=>e in t?hN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,gN=(t,e)=>{for(var A in e||(e={}))dN.call(e,A)&&Bm(t,A,e[A]);if(vm)for(var A of vm(e))pN.call(e,A)&&Bm(t,A,e[A]);return t};gN({linear:nN},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const wm={current:0},ym=f.ref(0),bm=2e3,Cm=Symbol("elZIndexContextKey"),Em=Symbol("zIndexContextKey"),mN=t=>{const e=f.getCurrentInstance()?f.inject(Cm,wm):wm,A=t||(f.getCurrentInstance()?f.inject(Em,void 0):void 0),r=f.computed(()=>{const i=f.unref(A);return oi(i)?i:bm}),n=f.computed(()=>r.value+ym.value),a=()=>(e.current++,ym.value=e.current,n.value);return!to&&f.inject(Cm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var vN={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const BN=t=>(e,A)=>wN(e,A,f.unref(t)),wN=(t,e,A)=>X4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),yN=t=>{const e=f.computed(()=>f.unref(t).name),A=f.isRef(t)?t:f.ref(t);return{lang:e,locale:A,t:BN(t)}},Um=Symbol("localeContextKey"),bN=t=>{const e=t||f.inject(Um,f.ref());return yN(f.computed(()=>e.value||vN))},Fm="__epPropKey",Nr=t=>t,CN=t=>tm(t)&&!!t[Fm],Nm=(t,e)=>{if(!tm(t)||CN(t))return t;const{values:A,required:r,default:n,type:a,validator:i}=t,s={type:a,required:!!r,validator:A||i?l=>{let u=!1,d=[];if(A&&(d=Array.from(A),Xh(t,"default")&&d.push(n),u||(u=d.includes(l))),i&&(u||(u=i(l))),!u&&d.length>0){const g=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");f.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Fm]:!0};return Xh(t,"default")&&(s.default=n),s},Is=t=>q4(Object.entries(t).map(([e,A])=>[e,Nm(A,e)])),EN=Nm({type:String,values:["","default","small","large"],required:!1}),UN=Symbol("size"),FN=Symbol("emptyValuesContextKey"),NN=Is({emptyValues:Array,valueOnClear:{type:Nr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Sm=t=>Object.keys(t),Uc=f.ref();function Qm(t,e=void 0){const A=f.getCurrentInstance()?f.inject($2,Uc):Uc;return t?f.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function SN(t,e){const A=Qm(),r=Yh(t,f.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=bN(f.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=mN(f.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||bm})),i=f.computed(()=>{var o;return f.unref(e)||((o=A.value)==null?void 0:o.size)||""});return xm(f.computed(()=>f.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const xm=(t,e,A=!1)=>{var r;const n=!!f.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?f.provide:void 0;if(!i)return;const o=f.computed(()=>{const s=f.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i($2,o),i(Um,f.computed(()=>o.value.locale)),i(em,f.computed(()=>o.value.namespace)),i(Em,f.computed(()=>o.value.zIndex)),i(UN,{size:f.computed(()=>o.value.size||"")}),i(FN,f.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Sm(t),...Sm(e)])],r={};for(const n of A)r[n]=e[n]!==void 0?e[n]:t[n];return r};var id=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A};function od(t,e="px"){if(!t)return"";if(oi(t)||tN(t))return`${t}${e}`;if(xs(t))return t}function Oq(t,e){}const Tm=(t,e)=>{if(t.install=A=>{for(const r of[t,...Object.values(e??{})])A.component(r.name,r)},e)for(const[A,r]of Object.entries(e))t[A]=r;return t},xN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Nr([Number,String])},color:{type:String}}),RN=f.defineComponent({name:"ElIcon",inheritAttrs:!1}),IN=f.defineComponent({...RN,props:TN,setup(t){const e=t,A=Yh("icon"),r=f.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:$4(n)?void 0:od(n),"--color":a}});return(n,a)=>(f.openBlock(),f.createElementBlock("i",f.mergeProps({class:f.unref(A).b(),style:f.unref(r)},n.$attrs),[f.renderSlot(n.$slots,"default")],16))}});var VN=id(IN,[["__file","icon.vue"]]);const Rm=Tm(VN);/*! Element Plus Icons Vue v2.3.2 */var MN=f.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Im=MN,LN=f.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ON=LN,kN=f.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),sd=kN,HN=f.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Vm=HN,DN=f.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Mm=DN;const PN=Nr([String,Object,Function]),WN={Close:ON,SuccessFilled:Vm,InfoFilled:sd,WarningFilled:Mm,CircleCloseFilled:Im},Lm={primary:sd,success:Vm,warning:Mm,error:Im,info:sd},_N=t=>t,ZN={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},jN=Is({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Nr([String,Object,Array])},offset:{type:Nr(Array),default:[0,0]},badgeClass:{type:String}}),JN=f.defineComponent({name:"ElBadge"}),KN=f.defineComponent({...JN,props:jN,setup(t,{expose:e}){const A=t,r=Yh("badge"),n=f.computed(()=>A.isDot?"":oi(A.value)&&oi(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=f.computed(()=>{var i,o,s,l,u;return[{backgroundColor:A.color,marginRight:od(-((o=(i=A.offset)==null?void 0:i[0])!=null?o:0)),marginTop:od((l=(s=A.offset)==null?void 0:s[1])!=null?l:0)},(u=A.badgeStyle)!=null?u:{}]});return e({content:n}),(i,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(r).b())},[f.renderSlot(i.$slots,"default"),f.createVNode(f.Transition,{name:`${f.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("sup",{class:f.normalizeClass([f.unref(r).e("content"),f.unref(r).em("content",i.type),f.unref(r).is("fixed",!!i.$slots.default),f.unref(r).is("dot",i.isDot),f.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:f.normalizeStyle(f.unref(a))},[f.renderSlot(i.$slots,"content",{value:f.unref(n)},()=>[f.createTextVNode(f.toDisplayString(f.unref(n)),1)])],6),[[f.vShow,!i.hidden&&(f.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var GN=id(KN,[["__file","badge.vue"]]);const zN=Tm(GN);var Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const YN=Is({a11y:{type:Boolean,default:!0},locale:{type:Nr(Object)},size:EN,button:{type:Nr(Object)},card:{type:Nr(Object)},dialog:{type:Nr(Object)},link:{type:Nr(Object)},experimentalFeatures:{type:Nr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Nr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...NN}),nr={placement:"top"};f.defineComponent({name:"ElConfigProvider",props:YN,setup(t,{slots:e}){const A=xm(t);return f.watch(()=>t.message,r=>{var n,a;Object.assign(nr,(a=(n=A==null?void 0:A.value)==null?void 0:n.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>f.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Om=["primary","success","info","warning","error"],km=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ro="top",ar=_N({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:to?document.body:void 0}),XN=Is({customClass:{type:String,default:ar.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ar.dangerouslyUseHTMLString},duration:{type:Number,default:ar.duration},icon:{type:PN,default:ar.icon},id:{type:String,default:ar.id},message:{type:Nr([String,Object,Function]),default:ar.message},onClose:{type:Nr(Function),default:ar.onClose},showClose:{type:Boolean,default:ar.showClose},type:{type:String,values:Om,default:ar.type},plain:{type:Boolean,default:ar.plain},offset:{type:Number,default:ar.offset},placement:{type:String,values:km,default:ar.placement},zIndex:{type:Number,default:ar.zIndex},grouping:{type:Boolean,default:ar.grouping},repeatNum:{type:Number,default:ar.repeatNum}}),qN={destroy:()=>!0},fn=f.shallowReactive({}),$N=t=>(fn[t]||(fn[t]=f.shallowReactive([])),fn[t]),e3=(t,e)=>{const A=fn[e]||[],r=A.findIndex(i=>i.id===t),n=A[r];let a;return r>0&&(a=A[r-1]),{current:n,prev:a}},t3=(t,e)=>{const{prev:A}=e3(t,e);return A?A.vm.exposed.bottom.value:0},A3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,r3=f.defineComponent({name:"ElMessage"}),n3=f.defineComponent({...r3,props:XN,emits:qN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=WN,a=f.ref(!1),{ns:i,zIndex:o}=SN("message"),{currentZIndex:s,nextZIndex:l}=o,u=f.ref(),d=f.ref(!1),g=f.ref(0);let h;const y=f.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),w=f.computed(()=>{const E=r.type;return{[i.bm("icon",E)]:E&&Lm[E]}}),b=f.computed(()=>r.icon||Lm[r.type]||""),v=f.computed(()=>r.placement||ro),C=f.computed(()=>t3(r.id,v.value)),N=f.computed(()=>A3(r.id,r.offset,v.value)+C.value),S=f.computed(()=>g.value+N.value),L=f.computed(()=>v.value.includes("left")?i.is("left"):v.value.includes("right")?i.is("right"):i.is("center")),H=f.computed(()=>v.value.startsWith("top")?"top":"bottom"),O=f.computed(()=>({[H.value]:`${N.value}px`,zIndex:s.value}));function T(){r.duration!==0&&({stop:h}=iN(()=>{k()},r.duration))}function I(){h==null||h()}function k(){d.value=!1,f.nextTick(()=>{var E;a.value||((E=r.onClose)==null||E.call(r),A("destroy"))})}function U({code:E}){E===ZN.esc&&k()}return f.onMounted(()=>{T(),l(),d.value=!0}),f.watch(()=>r.repeatNum,()=>{I(),T()}),oN(document,"keydown",U),fN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:S,close:k}),(E,Q)=>(f.openBlock(),f.createBlock(f.Transition,{name:f.unref(i).b("fade"),onBeforeEnter:R=>a.value=!0,onBeforeLeave:E.onClose,onAfterLeave:R=>E.$emit("destroy"),persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("div",{id:E.id,ref_key:"messageRef",ref:u,class:f.normalizeClass([f.unref(i).b(),{[f.unref(i).m(E.type)]:E.type},f.unref(i).is("closable",E.showClose),f.unref(i).is("plain",E.plain),f.unref(i).is("bottom",f.unref(H)==="bottom"),f.unref(L),E.customClass]),style:f.normalizeStyle(f.unref(O)),role:"alert",onMouseenter:I,onMouseleave:T},[E.repeatNum>1?(f.openBlock(),f.createBlock(f.unref(zN),{key:0,value:E.repeatNum,type:f.unref(y),class:f.normalizeClass(f.unref(i).e("badge"))},null,8,["value","type","class"])):f.createCommentVNode("v-if",!0),f.unref(b)?(f.openBlock(),f.createBlock(f.unref(Rm),{key:1,class:f.normalizeClass([f.unref(i).e("icon"),f.unref(w)])},{default:f.withCtx(()=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(f.unref(b))))]),_:1},8,["class"])):f.createCommentVNode("v-if",!0),f.renderSlot(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),f.createElementVNode("p",{class:f.normalizeClass(f.unref(i).e("content")),innerHTML:E.message},null,10,["innerHTML"])],2112)):(f.openBlock(),f.createElementBlock("p",{key:0,class:f.normalizeClass(f.unref(i).e("content"))},f.toDisplayString(E.message),3))]),E.showClose?(f.openBlock(),f.createBlock(f.unref(Rm),{key:2,class:f.normalizeClass(f.unref(i).e("closeBtn")),onClick:f.withModifiers(k,["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(n))]),_:1},8,["class","onClick"])):f.createCommentVNode("v-if",!0)],46,["id"]),[[f.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var a3=id(n3,[["__file","message.vue"]]);let i3=1;const o3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(xs(t.appendTo)){let A=document.querySelector(t.appendTo);eN(A)||(A=document.body),t.appendTo=A}},s3=t=>{!t.placement&&xs(nr.placement)&&nr.placement&&(t.placement=nr.placement),t.placement||(t.placement=ro),km.includes(t.placement)||(`${t.placement}${ro}`,t.placement=ro)},Hm=t=>{const e=!t||xs(t)||f.isVNode(t)||bc(t)?{message:t}:t,A={...ar,...e};return o3(A),s3(A),rd(nr.grouping)&&!A.grouping&&(A.grouping=nr.grouping),oi(nr.duration)&&A.duration===3e3&&(A.duration=nr.duration),oi(nr.offset)&&A.offset===16&&(A.offset=nr.offset),rd(nr.showClose)&&!A.showClose&&(A.showClose=nr.showClose),rd(nr.plain)&&!A.plain&&(A.plain=nr.plain),A},l3=t=>{const e=t.props.placement||ro,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},c3=({appendTo:t,...e},A)=>{const r=`message_${i3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),l3(u)},onDestroy:()=>{f.render(null,a)}},o=f.createVNode(a3,i,bc(i.message)||f.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||si._context,f.render(o,a),t.appendChild(a.firstElementChild);const s=o.component,u={id:r,vnode:o,vm:s,handler:{close:()=>{s.exposed.close()}},props:o.component.props};return u},si=(t={},e)=>{if(!to)return{close:()=>{}};const A=Hm(t),r=$N(A.placement||ro);if(A.grouping&&r.length){const a=r.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===A.message});if(a)return a.props.repeatNum+=1,a.props.type=A.type,a.handler}if(oi(nr.max)&&r.length>=nr.max)return{close:()=>{}};const n=c3(A,e);return r.push(n),n.handler};Om.forEach(t=>{si[t]=(e={},A)=>{const r=Hm(e);return si({...r,type:t},A)}});function u3(t){for(const e in fn)if(Xh(fn,e)){const A=[...fn[e]];for(const r of A)(!t||t===r.props.type)&&r.handler.close()}}function f3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}si.closeAll=u3,si.closeAllByPlacement=f3,si._context=null;const Vs=xN(si,"$message"),kq="",WA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},h3={class:"property-item"},d3={key:0,class:"label"},p3=["innerHTML"],g3={key:4,class:"file-input-container"},m3=["disabled"],v3={key:1},B3=["accept"],w3=["type","min","max","step"],cd=WA({__name:"PropertyItem",props:{label:String,prop:String,modelValue:[String,Number,Boolean],type:{type:String,default:"text"},options:{type:Array,default:()=>[]},min:Number,max:Number,step:Number,accept:String,desc:String,multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change","rotationChange"],setup(t,{emit:e}){const A=t,r=e,n=f.ref(null),a=f.ref(!1),i=f.ref(null),o=f.ref(null),s=f.inject("config",{}),l=f.inject("propertyModel",null),u=f.inject("propertyOptions",null),d=(T="")=>{var I,k;return((k=(I=A.options)==null?void 0:I.find(U=>(U==null?void 0:U.value)==T))==null?void 0:k.value)??" "},g=f.computed({get:()=>{const T=A.modelValue;if(A.type==="select"){if(!A.multiple)return d(T);if(typeof T=="string"){let I=d(T);return I=I&&I.trim()?[I]:[],I}return Array.isArray(T)?T.map(k=>d(k)):[]}return A.prop==="LetterSpacing"?T??0:T},set:T=>{A.type==="select"&&A.multiple?Array.isArray(T)&&T.length===1?r("update:modelValue",T[0]):Array.isArray(T)&&T.length>1?r("update:modelValue",T):r("update:modelValue",""):r("update:modelValue",T)}}),h=T=>{r("change",T),A.label==="旋转角度"&&typeof T=="number"&&r("rotationChange",T)};let y=null,w=null;function b(T,I,k){if((k!==w||!y)&&(y=new Map,k&&k.length>0&&k.forEach(U=>{U.value!==void 0&&U.value!==null&&y.set(String(U.value),U.label||"")}),w=k),Array.isArray(T)){if(T.length===0)return[];const U=T.filter(Q=>Q&&Q!==""&&Q!==" ");return U.length===0?[]:U.map(Q=>y.get(String(Q))||"").filter(Q=>Q)}return!T||T===""||T===" "?"":y.get(String(T))||""}let v=null;function C(){!(l!=null&&l.value)||!(u!=null&&u.value)||(v&&clearTimeout(v),v=setTimeout(()=>{var _;const T=l.value,I=T.FieldName,k=T.FieldConnector,U=((_=u.value)==null?void 0:_.fields)||[],E=b(I,k,U),Q=T.FieldLabel;let R=!1;if(Array.isArray(E)&&Array.isArray(Q)?R=E.length!==Q.length||E.some((j,G)=>j!==Q[G]):!Array.isArray(E)&&!Array.isArray(Q)?R=E!==Q:R=!0,R){const j={...T,FieldLabel:E};f.nextTick(()=>{l.value=j})}},0))}A.prop==="FieldName"&&(f.watch(()=>{var k;const T=l==null?void 0:l.value,I=(k=u==null?void 0:u.value)==null?void 0:k.fields;return{fieldName:T==null?void 0:T.FieldName,fieldConnector:T==null?void 0:T.FieldConnector,fieldsRef:I,fieldsLength:I==null?void 0:I.length}},(T,I)=>{var U;const k=(U=l==null?void 0:l.value)==null?void 0:U.FieldName;if(k&&k!==""&&k!==" "){const E=Array.isArray(k);if(I&&T.fieldName===I.fieldName&&T.fieldsRef===I.fieldsRef&&T.fieldsLength===I.fieldsLength&&T.fieldConnector!==I.fieldConnector&&!E)return;(!E||k.length>0)&&C()}},{immediate:!0}),f.onUnmounted(()=>{v&&(clearTimeout(v),v=null)}));const N=f.computed({get:()=>g.value?typeof g.value=="object"&&g.value.fileSrc?g.value.fileSrc.startsWith("http://")||g.value.fileSrc.startsWith("https://")?g.value.fileSrc:g.value.fileSrc.startsWith("data:")?g.value.fileName||"已选择的图片":g.value.fileName||g.value.fileSrc:typeof g.value=="string"&&g.value.startsWith("data:")?"已选择的图片":g.value:"",set:T=>{g.value=T}}),S=()=>{n.value&&!a.value&&n.value.click()},L=T=>{const I=T.target.value.trim();I?I.startsWith("http://")||I.startsWith("https://")||I.startsWith("data:")?g.value=I:I.startsWith("data:")||(g.value=I):g.value=""},H=async T=>{var E;const I=T.target.files[0];if(!I)return;if(A.accept&&!I.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const k=(E=s==null?void 0:s.image)==null?void 0:E.request;if(!k||typeof k!="function"){alert("请添加正确的图片上传配置");return}o.value=I;let U=null;try{a.value=!0,U=k(I),i.value=U;const Q=await U;if(i.value===U&&o.value===I)if(Q&&Q.success!==!1){let _=Q.url||Q.data||Q;try{const G=await O(I);G&&(_=G)}catch{}const j={fileName:I.name,fileSrc:_,uploadResult:Q};r("update:modelValue",j),r("change",T),Vs.success("图片上传成功")}else throw new Error((Q==null?void 0:Q.message)||"上传失败")}catch(Q){i.value===U&&o.value===I&&(n.value&&(n.value.value=""),Vs.error(Q.message||"上传失败,请重试"))}finally{i.value===U&&(a.value=!1,i.value=null,o.value=null)}},O=T=>new Promise((I,k)=>{const E=T.size>5242880;if(T.type.startsWith("image/"))if(E){const Q=new Image,R=document.createElement("canvas"),_=R.getContext("2d"),j=setTimeout(()=>{k(new Error("转换超时"))},8e3);Q.onload=()=>{clearTimeout(j);try{let{width:z,height:Y}=Q;if(z>1920||Y>1920){const x=Math.min(1920/z,1920/Y);z=Math.floor(z*x),Y=Math.floor(Y*x)}R.width=z,R.height=Y,_.drawImage(Q,0,0,z,Y);const ae=R.toDataURL("image/jpeg",.8);I(ae)}catch(X){k(X)}finally{URL.revokeObjectURL(Q.src)}},Q.onerror=()=>{clearTimeout(j),k(new Error("图片加载失败"))};const G=URL.createObjectURL(T);Q.src=G}else{const Q=new FileReader,R=setTimeout(()=>{k(new Error("转换超时"))},5e3);Q.onload=_=>{clearTimeout(R),I(_.target.result)},Q.onerror=()=>{clearTimeout(R),k(new Error("文件读取失败"))},Q.readAsDataURL(T)}else{const Q=new FileReader,R=setTimeout(()=>{k(new Error("转换超时"))},5e3);Q.onload=_=>{clearTimeout(R),I(_.target.result)},Q.onerror=()=>{clearTimeout(R),k(new Error("文件读取失败"))},Q.readAsDataURL(T)}});return f.onUnmounted(()=>{i.value=null,o.value=null}),(T,I)=>{const k=f.resolveComponent("el-icon-question-filled"),U=f.resolveComponent("el-icon"),E=f.resolveComponent("el-tooltip"),Q=f.resolveComponent("el-option"),R=f.resolveComponent("el-select"),_=f.resolveComponent("el-icon-loading");return f.openBlock(),f.createElementBlock("div",h3,[t.label?(f.openBlock(),f.createElementBlock("label",d3,[f.createTextVNode(f.toDisplayString(t.label)+" ",1),t.desc?(f.openBlock(),f.createBlock(E,{key:0,placement:"top","show-arrow":!0},{content:f.withCtx(()=>[f.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,p3)]),default:f.withCtx(()=>[f.createVNode(U,{class:"help-icon"},{default:f.withCtx(()=>[f.createVNode(k)]),_:1})]),_:1})):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0),t.type==="select"?(f.openBlock(),f.createBlock(R,{key:1,modelValue:g.value,"onUpdate:modelValue":I[0]||(I[0]=j=>g.value=j),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",filterable:"",onChange:h},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,j=>(f.openBlock(),f.createBlock(Q,{key:j.value,label:j.label,value:j.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:2,"onUpdate:modelValue":I[1]||(I[1]=j=>g.value=j),type:"color"},null,512)),[[f.vModelText,g.value]]):t.type==="checkbox"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:3,"onUpdate:modelValue":I[2]||(I[2]=j=>g.value=j),type:"checkbox"},null,512)),[[f.vModelCheckbox,g.value]]):t.type==="file"?(f.openBlock(),f.createElementBlock("div",g3,[f.withDirectives(f.createElementVNode("input",{type:"text","onUpdate:modelValue":I[3]||(I[3]=j=>N.value=j),placeholder:"请选择图片",class:"file-url-input",onInput:L,disabled:""},null,544),[[f.vModelText,N.value]]),f.createElementVNode("button",{type:"button",onClick:S,class:"file-select-btn",disabled:a.value},[a.value?(f.openBlock(),f.createBlock(U,{key:0,class:"is-loading"},{default:f.withCtx(()=>[f.createVNode(_)]),_:1})):(f.openBlock(),f.createElementBlock("span",v3,f.toDisplayString(a.value?"上传中...":"选择"),1))],8,m3),f.createElementVNode("input",{type:"file",accept:t.accept,onChange:H,ref_key:"fileInput",ref:n,class:"file-input"},null,40,B3)])):f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:5,"onUpdate:modelValue":I[4]||(I[4]=j=>g.value=j),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:I[5]||(I[5]=f.withModifiers(()=>{},["prevent"]))},null,40,w3)),[[f.vModelDynamic,g.value]])])}}},[["__scopeId","data-v-1d60731e"]]),Dq="",y3={class:"property-layout-container"},b3={key:0,class:"property-item-wrapper full-width"},C3={key:1,class:"property-item-wrapper half-width"},E3={key:2,class:"property-item-wrapper default-width"},no=WA({__name:"BasePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},panelType:{type:String,default:"base",validator:t=>["text","barcode","qrcode","image","rectangle","line"].includes(t)},options:{type:Object,default:()=>({})}},emits:["update:modelValue","rotationChange"],setup(t,{emit:e}){const A=t,r=e,{propsConfig:n,panelType:a}=f.toRefs(A),i=f.computed(()=>`${a.value}-property-panel`),o=f.ref([]);function s(U,E,Q=[],R="",_="FieldName"){const j=[];if(Array.isArray(E))return E.forEach(G=>{const X=s(U,G,Q,R,_);j.push(...X)}),j;if(U&&U.propertyPanel){const G=U.propertyPanel;let X=[];Array.isArray(G)?X=G.map(z=>({...z,_dynamic:!0,_path:R||"FieldName",_parentProp:_})):typeof G=="object"&&G!==null&&(G.prop?X=[{...G,_dynamic:!0,_path:R||"FieldName",_parentProp:_}]:X=Object.keys(G).map(z=>({prop:z,...G[z],_dynamic:!0,_path:R||"FieldName",_parentProp:_}))),j.push(...X)}return j}function l(U,E,Q=[],R=""){const _=[];if(!E||E===" "||!Q||Q.length===0)return _;const j=Q.find(G=>G.value==E);if(j&&j.propertyPanel){const G=j.propertyPanel;let X=[];Array.isArray(G)?X=G.map(z=>({...z,_dynamic:!0,_path:`${R||U}.${E}`,_parentProp:U})):typeof G=="object"&&G!==null&&(G.prop?X=[{...G,_dynamic:!0,_path:`${R||U}.${E}`,_parentProp:U}]:X=Object.keys(G).map(z=>({prop:z,...G[z],_dynamic:!0,_path:`${R||U}.${E}`,_parentProp:U}))),_.push(...X)}return _}function u(U){var E;return U.options&&Array.isArray(U.options)?U.options:U.optionsKey&&((E=A.options)!=null&&E[U.optionsKey])?A.options[U.optionsKey]||[]:[]}function d(U,E=[],Q=new Set,R=0){var X;if(R>10)return[];const _=[],j=new Set;if(R===0){const z=U.FieldName;if(z){const Y=((X=A.options)==null?void 0:X.fields)||[];if(Array.isArray(z))z.forEach(ae=>{const x=Y.find(D=>D.value==ae);if(x){const D=`FieldName.${ae}`;Q.has(D)||(Q.add(D),s(x,ae,Y,D).forEach(q=>{q.prop&&!j.has(q.prop)&&(j.add(q.prop),_.push(q))}))}});else{const ae=Y.find(x=>x.value==z);if(ae){const x=`FieldName.${z}`;Q.has(x)||(Q.add(x),s(ae,z,Y,x).forEach(K=>{K.prop&&!j.has(K.prop)&&(j.add(K.prop),_.push(K))}))}}}}return E.forEach(z=>{if(z.type==="select"){const Y=U[z.prop];if(Y!=null&&Y!==""&&Y!==" "){const ae=u(z);if(ae&&ae.length>0){const x=z.prop,D=`${x}.${Y}`;if(!Q.has(D)){Q.add(D);const K=l(z.prop,Y,ae,x);K.length>0&&(K.forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}),d(U,[...E,..._],Q,R+1).forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}))}}}}}),[..._].forEach(z=>{if(z.type==="select"){const Y=U[z.prop];if(Y!=null&&Y!==""&&Y!==" "){const ae=u(z);if(ae&&ae.length>0){const x=z._path||z.prop,D=`${x}.${Y}`;if(!Q.has(D)){Q.add(D);const K=l(z.prop,Y,ae,x);K.length>0&&(K.forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}),d(U,[...E,..._],Q,R+1).forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}))}}}}}),_}const g=f.computed(()=>{const U=n.value.propertyPanel;let E=[];return U&&typeof U=="object"&&!Array.isArray(U)&&(E=Object.keys(U).map(Q=>({prop:Q,...U[Q]})).filter(Q=>!Q.hide)),Array.isArray(U)&&(E=U.filter(Q=>!Q.hide)||[]),E}),h=f.ref([]),y=f.ref(""),w=f.ref(null),b=f.computed(()=>{const U=A.modelValue||{};let E="";if(U.FieldName!==void 0){const R=Array.isArray(U.FieldName)?U.FieldName.join(","):String(U.FieldName);E+=`FieldName:${R}|`}return g.value.filter(R=>R.type==="select").map(R=>R.prop).forEach(R=>{U[R]!==void 0&&(E+=`${R}:${U[R]}|`)}),o.value.length>0&&o.value.filter(_=>_.type==="select").map(_=>_.prop).forEach(_=>{U[_]!==void 0&&(E+=`${_}:${U[_]}|`)}),y.value===E&&w.value?w.value:(y.value=E,w.value=E,E)});f.watch(()=>[b.value,g.value],(U,E)=>{const[Q,R]=U||[b.value,g.value],[_]=E||[void 0];if(_&&Q===_)return;const j=A.modelValue||{},G=A.modelValue||{},z=d(j,R,new Set),Y=new Set(z.map($=>$.prop).filter(Boolean)),ae=new Set(h.value.map($=>$.prop).filter(Boolean)),x=[];ae.forEach($=>{Y.has($)||x.push($)});const D=[];z.forEach($=>{$.prop&&"default"in $&&j[$.prop]===void 0&&D.push({prop:$.prop,defaultValue:$.default})});const K={...j};let q=!1;x.length>0&&G&&x.forEach($=>{K[$]!==void 0&&(delete K[$],q=!0)}),D.length>0&&D.forEach(({prop:$,defaultValue:ne})=>{K[$]=ne,q=!0}),q&&f.nextTick(()=>{r("update:modelValue",K)}),h.value=z,o.value=z},{deep:!0,immediate:!0});const v=f.ref(null),C=f.ref({baseItemsHash:"",dynamicItemsHash:""});function N(U,E){return U.length===0?"":U.map(E).join("|")}const S=f.computed(()=>{var q;const U=N(g.value,$=>$.prop||""),E=N(o.value,$=>`${$.prop||""}:${$._parentProp||""}`);if(v.value&&C.value.baseItemsHash===U&&C.value.dynamicItemsHash===E)return v.value;const Q=g.value,R=Q.length,_=o.value.length,j=new Array(R+_);for(let $=0;$<R;$++)j[$]=Q[$];let G=R;if(_===0)return v.value=j,C.value={baseItemsHash:U,dynamicItemsHash:E},j;const X=[],z=[];let Y=[];const ae=new Set,x=new Map;for(let $=0;$<R;$++){const ne=Q[$].prop;ne&&(ae.add(ne),x.set(ne,$))}for(let $=0;$<_;$++){const ne=o.value[$],le=ne._parentProp;le&&ae.has(le)?z.push(ne):Y.push(ne)}z.length>0&&X.push(z);let D=z,K=[];for(;Y.length>0&&D.length>0;){const $=new Map;for(let le=0;le<D.length;le++){const de=D[le].prop;de&&$.set(de,!0)}const ne=[];for(let le=0;le<Y.length;le++){const de=Y[le];de._parentProp&&$.has(de._parentProp)?K.push(de):ne.push(de)}if(K.length>0)X.push(K),D=K,K=[],Y=ne;else break}for(let $=0;$<X.length;$++){const ne=X[$],le=new Map;for(let Ee=0;Ee<G;Ee++){const Oe=(q=j[Ee])==null?void 0:q.prop;Oe&&le.set(Oe,Ee)}const de=new Map;for(let Ee=0;Ee<ne.length;Ee++){const Oe=ne[Ee],Fe=Oe._parentProp;Fe&&le.has(Fe)&&(de.has(Fe)||de.set(Fe,[]),de.get(Fe).push(Oe))}const Te=[];de.forEach((Ee,Oe)=>{const Fe=le.get(Oe);let ke=Fe;for(let ge=Fe+1;ge<G;ge++){const Ae=j[ge];if(Ae._dynamic&&Ae._parentProp===Oe)ke=ge;else if(!Ae._dynamic)break}Te.push({index:ke+1,items:Ee})}),Te.sort((Ee,Oe)=>Oe.index-Ee.index);for(let Ee=0;Ee<Te.length;Ee++){const{index:Oe,items:Fe}=Te[Ee];for(let ke=Fe.length-1;ke>=0;ke--)j.splice(Oe,0,Fe[ke]),G++}}if(Y.length>0)for(let $=0;$<Y.length;$++)j[G++]=Y[$];return j.length>G&&(j.length=G),v.value=j,C.value={baseItemsHash:U,dynamicItemsHash:E},j}),L=f.computed({get:()=>A.modelValue,set:U=>r("update:modelValue",U)}),H=f.computed(()=>S.value.filter(U=>!U.showIf||L.value[U.showIf])),O=U=>{var Q,R;if(U.options)return U.options||[];if(U.optionsKey&&((Q=A.options)!=null&&Q[U.optionsKey])){const _=JSON.parse(JSON.stringify(A.options[U.optionsKey]||[]))||[];return U!=null&&U.multiple||_.unshift({label:"无",value:" "}),_}const E=JSON.parse(JSON.stringify(((R=A.options)==null?void 0:R[U==null?void 0:U.optionsKey])||[]))||[];return U!=null&&U.multiple||E.unshift({label:"无",value:" "}),E},T=U=>U.layout?U.layout:["text","file","textarea"].includes(U.type)?"full":"half",I=U=>{r("rotationChange",U)},k=f.ref(!1);return f.watch(()=>{if(a.value!=="text")return null;const U=L.value;return{alignment:U==null?void 0:U.Alignment,textWrap:U==null?void 0:U.TextWrap}},({alignment:U,textWrap:E},Q)=>{if(k.value||!Q)return;const R={...L.value};let _=!1;U===4&&Q.alignment!==4&&E===1&&(R.TextWrap=2,_=!0),E===1&&Q.textWrap!==1&&U===4&&(R.Alignment=2,_=!0),_&&(k.value=!0,f.nextTick(()=>{r("update:modelValue",R),f.nextTick(()=>{k.value=!1})}))},{deep:!0}),f.provide("config",A.propsConfig),f.provide("propertyModel",L),f.provide("propertyOptions",f.computed(()=>A.options)),(U,E)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(i.value)},[f.createElementVNode("div",y3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(H.value,Q=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:Q.prop},[T(Q)==="full"?(f.openBlock(),f.createElementBlock("div",b3,[f.createVNode(cd,{label:Q.label,prop:Q.prop,modelValue:L.value[Q.prop],"onUpdate:modelValue":R=>L.value[Q.prop]=R,type:Q.type,options:O(Q),min:Q.min,max:Q.max,step:Q.step,accept:Q.accept,desc:Q.desc,multiple:Q.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):T(Q)==="half"?(f.openBlock(),f.createElementBlock("div",C3,[f.createVNode(cd,{label:Q.label,prop:Q.prop,modelValue:L.value[Q.prop],"onUpdate:modelValue":R=>L.value[Q.prop]=R,type:Q.type,options:O(Q),min:Q.min,max:Q.max,step:Q.step,accept:Q.accept,desc:Q.desc,multiple:Q.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(f.openBlock(),f.createElementBlock("div",E3,[f.createVNode(cd,{label:Q.label,prop:Q.prop,modelValue:L.value[Q.prop],"onUpdate:modelValue":R=>L.value[Q.prop]=R,type:Q.type,options:O(Q),min:Q.min,max:Q.max,step:Q.step,accept:Q.accept,desc:Q.desc,multiple:Q.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-54dd99f3"]]),U3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,options:t.options,"panel-type":"text","onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},F3={},N3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function S3(t,e){return f.openBlock(),f.createElementBlock("svg",N3,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"2603"},null,-1),f.createElementVNode("path",{d:"M798.88 96H257.12C177.088 96 112 161.088 112 241.12v541.76C112 862.928 177.088 928 257.12 928h541.76c80.032 0 145.12-65.088 145.12-145.12V241.12C944 161.088 878.912 96 798.88 96z m87.104 686.88a87.2 87.2 0 0 1-87.104 87.104H257.12a87.2 87.2 0 0 1-87.104-87.104V241.12a87.2 87.2 0 0 1 87.104-87.104h541.76a87.2 87.2 0 0 1 87.104 87.104v541.76z","p-id":"2604"},null,-1),f.createElementVNode("path",{d:"M686.304 710.336H369.696a29.04 29.04 0 0 0-29.216 28.832c0 15.904 13.104 28.832 29.216 28.832h316.608a29.04 29.04 0 0 0 29.2-28.832c0-15.904-13.088-28.832-29.2-28.832zM722.784 256H333.216A29.04 29.04 0 0 0 304 284.832v76.96c0 15.904 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.216-28.832v-48.048h136.384V640.64c0 15.92 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.2-28.832V313.76h136.384v48.048c0 15.904 13.088 28.832 29.216 28.832A29.04 29.04 0 0 0 752 361.792v-76.96c0.08-15.904-13.008-28.832-29.2-28.832z","p-id":"2605"},null,-1)])])}const Q3=WA(F3,[["render",S3]]);var ud={},Fc={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});function x3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){x3(this,t),this.data=e,this.text=A.text||e,this.options=A};vr.default=T3,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.CODE39=void 0;var R3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),I3=vr,V3=M3(I3);function M3(t){return t&&t.__esModule?t:{default:t}}function L3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function k3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var H3=function(t){k3(e,t);function e(A,r){return L3(this,e),A=A.toUpperCase(),r.mod43&&(A+=W3(_3(A))),O3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return R3(e,[{key:"encode",value:function(){for(var r=fd("*"),n=0;n<this.data.length;n++)r+=fd(this.data[n])+"0";return r+=fd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(V3.default),Dm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],D3=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function fd(t){return P3(Pm(t))}function P3(t){return D3[t].toString(2)}function W3(t){return Dm[t]}function Pm(t){return Dm.indexOf(t)}function _3(t){for(var e=0,A=0;A<t.length;A++)e+=Pm(t[A]);return e=e%43,e}Fc.CODE39=H3;var In={},hd={},ao={},iA={};Object.defineProperty(iA,"__esModule",{value:!0});var Ms;function dd(t,e,A){return e in t?Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[e]=A,t}var Wm=iA.SET_A=0,_m=iA.SET_B=1,Zm=iA.SET_C=2;iA.SHIFT=98;var Z3=iA.START_A=103,j3=iA.START_B=104,J3=iA.START_C=105;iA.MODULO=103,iA.STOP=106,iA.FNC1=207,iA.SET_BY_CODE=(Ms={},dd(Ms,Z3,Wm),dd(Ms,j3,_m),dd(Ms,J3,Zm),Ms),iA.SWAP={101:Wm,100:_m,99:Zm},iA.A_START_CHAR=String.fromCharCode(208),iA.B_START_CHAR=String.fromCharCode(209),iA.C_START_CHAR=String.fromCharCode(210),iA.A_CHARS="[\0-_È-Ï]",iA.B_CHARS="[ -È-Ï]",iA.C_CHARS="(Ï*[0-9]{2}Ï*)",iA.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(ao,"__esModule",{value:!0});var K3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),G3=vr,z3=Y3(G3),kr=iA;function Y3(t){return t&&t.__esModule?t:{default:t}}function X3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function $3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var eS=function(t){$3(e,t);function e(A,r){X3(this,e);var n=q3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.substring(1),r));return n.bytes=A.split("").map(function(a){return a.charCodeAt(0)}),n}return K3(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,n=r.shift()-105,a=kr.SET_BY_CODE[n];if(a===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(kr.FNC1);var i=e.next(r,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+i.result+e.getBar((i.checksum+n)%kr.MODULO)+e.getBar(kr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return kr.BARS[r]?kr.BARS[r].toString():""}},{key:"correctIndex",value:function(r,n){if(n===kr.SET_A){var a=r.shift();return a<32?a+64:a-32}else return n===kr.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,n,a){if(!r.length)return{result:"",checksum:0};var i=void 0,o=void 0;if(r[0]>=200){o=r.shift()-105;var s=kr.SWAP[o];s!==void 0?i=e.next(r,n+1,s):((a===kr.SET_A||a===kr.SET_B)&&o===kr.SHIFT&&(r[0]=a===kr.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),i=e.next(r,n+1,a))}else o=e.correctIndex(r,a),i=e.next(r,n+1,a);var l=e.getBar(o),u=o*n;return{result:l+i.result,checksum:u+i.checksum}}}]),e}(z3.default);ao.default=eS;var pd={};Object.defineProperty(pd,"__esModule",{value:!0});var va=iA,jm=function(e){return e.match(new RegExp("^"+va.A_CHARS+"*"))[0].length},Jm=function(e){return e.match(new RegExp("^"+va.B_CHARS+"*"))[0].length},Km=function(e){return e.match(new RegExp("^"+va.C_CHARS+"*"))[0]};function gd(t,e){var A=e?va.A_CHARS:va.B_CHARS,r=t.match(new RegExp("^("+A+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Gm(t.substring(r[1].length));var n=t.match(new RegExp("^"+A+"+"))[0];return n.length===t.length?t:n+String.fromCharCode(e?205:206)+gd(t.substring(n.length),!e)}function Gm(t){var e=Km(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=jm(t)>=Jm(t);return e+String.fromCharCode(r?206:205)+gd(t,r)}pd.default=function(t){var e=void 0,A=Km(t).length;if(A>=2)e=va.C_START_CHAR+Gm(t);else{var r=jm(t)>Jm(t);e=(r?va.A_START_CHAR:va.B_START_CHAR)+gd(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,a){return String.fromCharCode(203)+a})},Object.defineProperty(hd,"__esModule",{value:!0});var tS=ao,AS=zm(tS),rS=pd,nS=zm(rS);function zm(t){return t&&t.__esModule?t:{default:t}}function aS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function md(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function iS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var oS=function(t){iS(e,t);function e(A,r){if(aS(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,nS.default)(A),r));else var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return md(n)}return e}(AS.default);hd.default=oS;var vd={};Object.defineProperty(vd,"__esModule",{value:!0});var sS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),lS=ao,cS=uS(lS),Ym=iA;function uS(t){return t&&t.__esModule?t:{default:t}}function fS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var pS=function(t){dS(e,t);function e(A,r){return fS(this,e),hS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.A_START_CHAR+A,r))}return sS(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.A_CHARS+"+$").test(this.data)}}]),e}(cS.default);vd.default=pS;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var gS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),mS=ao,vS=BS(mS),Xm=iA;function BS(t){return t&&t.__esModule?t:{default:t}}function wS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function bS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var CS=function(t){bS(e,t);function e(A,r){return wS(this,e),yS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.B_START_CHAR+A,r))}return gS(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.B_CHARS+"+$").test(this.data)}}]),e}(vS.default);Bd.default=CS;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var ES=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),US=ao,FS=NS(US),qm=iA;function NS(t){return t&&t.__esModule?t:{default:t}}function SS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function xS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var TS=function(t){xS(e,t);function e(A,r){return SS(this,e),QS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,qm.C_START_CHAR+A,r))}return ES(e,[{key:"valid",value:function(){return new RegExp("^"+qm.C_CHARS+"+$").test(this.data)}}]),e}(FS.default);wd.default=TS,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var RS=hd,IS=Nc(RS),VS=vd,MS=Nc(VS),LS=Bd,OS=Nc(LS),kS=wd,HS=Nc(kS);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=IS.default,In.CODE128A=MS.default,In.CODE128B=OS.default,In.CODE128C=HS.default;var Sr={},yd={},zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.SIDE_BIN="101",zr.MIDDLE_BIN="01010",zr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},zr.EAN2_STRUCTURE=["LL","LG","GL","GG"],zr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],zr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Sc={},li={};Object.defineProperty(li,"__esModule",{value:!0});var DS=zr,PS=function(e,A,r){var n=e.split("").map(function(i,o){return DS.BINARIES[A[o]]}).map(function(i,o){return i?i[e[o]]:""});if(r){var a=e.length-1;n=n.map(function(i,o){return o<a?i+r:i})}return n.join("")};li.default=PS,Object.defineProperty(Sc,"__esModule",{value:!0});var WS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),io=zr,_S=li,$m=ev(_S),ZS=vr,jS=ev(ZS);function ev(t){return t&&t.__esModule?t:{default:t}}function JS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function GS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zS=function(t){GS(e,t);function e(A,r){JS(this,e);var n=KS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WS(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,n){return this.text.substr(r,n)}},{key:"leftEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:io.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:io.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:io.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[io.SIDE_BIN,this.leftEncode(),io.MIDDLE_BIN,this.rightEncode(),io.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(jS.default);Sc.default=zS,Object.defineProperty(yd,"__esModule",{value:!0});var YS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Ls=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},XS=zr,qS=Sc,$S=eQ(qS);function eQ(t){return t&&t.__esModule?t:{default:t}}function tQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var tv=function(e){var A=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*3:r+n},0);return(10-A%10)%10},nQ=function(t){rQ(e,t);function e(A,r){tQ(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=tv(A));var n=AQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return YS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===tv(this.data)}},{key:"leftText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),n=XS.EAN13_STRUCTURE[this.data[0]];return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,n)}},{key:"rightText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}($S.default);yd.default=nQ;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});var aQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Qc=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},iQ=Sc,oQ=sQ(iQ);function sQ(t){return t&&t.__esModule?t:{default:t}}function lQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Av=function(e){var A=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n:r+n*3},0);return(10-A%10)%10},fQ=function(t){uQ(e,t);function e(A,r){return lQ(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=Av(A)),cQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return aQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Av(this.data)}},{key:"leftText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(oQ.default);bd.default=fQ;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var hQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),dQ=zr,pQ=li,gQ=rv(pQ),mQ=vr,vQ=rv(mQ);function rv(t){return t&&t.__esModule?t:{default:t}}function BQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bQ=function(e){var A=e.split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*9:r+n*3},0);return A%10},CQ=function(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return hQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=dQ.EAN5_STRUCTURE[bQ(this.data)];return{data:"1011"+(0,gQ.default)(this.data,r,"01"),text:this.text}}}]),e}(vQ.default);Cd.default=CQ;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var EQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),UQ=zr,FQ=li,NQ=nv(FQ),SQ=vr,QQ=nv(SQ);function nv(t){return t&&t.__esModule?t:{default:t}}function xQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function RQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var IQ=function(t){RQ(e,t);function e(A,r){return xQ(this,e),TQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return EQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=UQ.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,NQ.default)(this.data,r,"01"),text:this.text}}}]),e}(QQ.default);Ed.default=IQ;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var VQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();Os.checksum=Ud;var MQ=li,oo=av(MQ),LQ=vr,OQ=av(LQ);function av(t){return t&&t.__esModule?t:{default:t}}function kQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function DQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var PQ=function(t){DQ(e,t);function e(A,r){kQ(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Ud(A));var n=HQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return VQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Ud(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,oo.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,oo.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,oo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,oo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(OQ.default);function Ud(t){var e=0,A;for(A=1;A<11;A+=2)e+=parseInt(t[A]);for(A=0;A<11;A+=2)e+=parseInt(t[A])*3;return(10-e%10)%10}Os.default=PQ;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var WQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),_Q=li,ZQ=iv(_Q),jQ=vr,JQ=iv(jQ),KQ=Os;function iv(t){return t&&t.__esModule?t:{default:t}}function GQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var YQ=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],XQ=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],qQ=function(t){zQ(e,t);function e(A,r){GQ(this,e);var n=Nd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));if(n.isValid=!1,A.search(/^[0-9]{6}$/)!==-1)n.middleDigits=A,n.upcA=ov(A,"0"),n.text=r.text||""+n.upcA[0]+A+n.upcA[n.upcA.length-1],n.isValid=!0;else if(A.search(/^[01][0-9]{7}$/)!==-1)if(n.middleDigits=A.substring(1,A.length-1),n.upcA=ov(n.middleDigits,A[0]),n.upcA[n.upcA.length-1]===A[A.length-1])n.isValid=!0;else return Nd(n);else return Nd(n);return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WQ(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],n=this.upcA[this.upcA.length-1],a=XQ[parseInt(n)][parseInt(r)];return(0,ZQ.default)(this.middleDigits,a)}}]),e}(JQ.default);function ov(t,e){for(var A=parseInt(t[t.length-1]),r=YQ[A],n="",a=0,i=0;i<r.length;i++){var o=r[i];o==="X"?n+=t[a++]:n+=o}return n=""+e+n,""+n+(0,KQ.checksum)(n)}Fd.default=qQ,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.UPCE=Sr.UPC=Sr.EAN2=Sr.EAN5=Sr.EAN8=Sr.EAN13=void 0;var $Q=yd,ex=so($Q),tx=bd,Ax=so(tx),rx=Cd,nx=so(rx),ax=Ed,ix=so(ax),ox=Os,sx=so(ox),lx=Fd,cx=so(lx);function so(t){return t&&t.__esModule?t:{default:t}}Sr.EAN13=ex.default,Sr.EAN8=Ax.default,Sr.EAN5=nx.default,Sr.EAN2=ix.default,Sr.UPC=sx.default,Sr.UPCE=cx.default;var lo={},xc={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.START_BIN="1010",ks.END_BIN="11101",ks.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(xc,"__esModule",{value:!0});var ux=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Tc=ks,fx=vr,hx=dx(fx);function dx(t){return t&&t.__esModule?t:{default:t}}function px(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vx=function(t){mx(e,t);function e(){return px(this,e),gx(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return ux(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,n=this.data.match(/.{2}/g).map(function(a){return r.encodePair(a)}).join("");return{data:Tc.START_BIN+n+Tc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=Tc.BINARIES[r[1]];return Tc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(hx.default);xc.default=vx;var Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});var Bx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),wx=xc,yx=bx(wx);function bx(t){return t&&t.__esModule?t:{default:t}}function Cx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ex(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ux(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sv=function(e){var A=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,n,a){return r+n*(3-a%2*2)},0);return Math.ceil(A/10)*10-A},Fx=function(t){Ux(e,t);function e(A,r){return Cx(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=sv(A)),Ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Bx(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===sv(this.data)}}]),e}(yx.default);Sd.default=Fx,Object.defineProperty(lo,"__esModule",{value:!0}),lo.ITF14=lo.ITF=void 0;var Nx=xc,Sx=lv(Nx),Qx=Sd,xx=lv(Qx);function lv(t){return t&&t.__esModule?t:{default:t}}lo.ITF=Sx.default,lo.ITF14=xx.default;var Yr={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});var Tx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Rx=vr,Ix=Vx(Rx);function Vx(t){return t&&t.__esModule?t:{default:t}}function Mx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ox(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kx=function(t){Ox(e,t);function e(A,r){return Mx(this,e),Lx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Tx(e,[{key:"encode",value:function(){for(var r="110",n=0;n<this.data.length;n++){var a=parseInt(this.data[n]),i=a.toString(2);i=Hx(i,4-i.length);for(var o=0;o<i.length;o++)r+=i[o]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(Ix.default);function Hx(t,e){for(var A=0;A<e;A++)t="0"+t;return t}ci.default=kx;var Qd={},ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.mod10=Dx,ui.mod11=Px;function Dx(t){for(var e=0,A=0;A<t.length;A++){var r=parseInt(t[A]);(A+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function Px(t){for(var e=0,A=[2,3,4,5,6,7],r=0;r<t.length;r++){var n=parseInt(t[t.length-1-r]);e+=A[r%A.length]*n}return(11-e%11)%11}Object.defineProperty(Qd,"__esModule",{value:!0});var Wx=ci,_x=jx(Wx),Zx=ui;function jx(t){return t&&t.__esModule?t:{default:t}}function Jx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zx=function(t){Gx(e,t);function e(A,r){return Jx(this,e),Kx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,Zx.mod10)(A),r))}return e}(_x.default);Qd.default=zx;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});var Yx=ci,Xx=$x(Yx),qx=ui;function $x(t){return t&&t.__esModule?t:{default:t}}function eT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function AT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var rT=function(t){AT(e,t);function e(A,r){return eT(this,e),tT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,qx.mod11)(A),r))}return e}(Xx.default);xd.default=rT;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var nT=ci,aT=iT(nT),cv=ui;function iT(t){return t&&t.__esModule?t:{default:t}}function oT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function lT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cT=function(t){lT(e,t);function e(A,r){return oT(this,e),A+=(0,cv.mod10)(A),A+=(0,cv.mod10)(A),sT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(aT.default);Td.default=cT;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var uT=ci,fT=hT(uT),uv=ui;function hT(t){return t&&t.__esModule?t:{default:t}}function dT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mT=function(t){gT(e,t);function e(A,r){return dT(this,e),A+=(0,uv.mod11)(A),A+=(0,uv.mod10)(A),pT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(fT.default);Rd.default=mT,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var vT=ci,BT=Hs(vT),wT=Qd,yT=Hs(wT),bT=xd,CT=Hs(bT),ET=Td,UT=Hs(ET),FT=Rd,NT=Hs(FT);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=BT.default,Yr.MSI10=yT.default,Yr.MSI11=CT.default,Yr.MSI1010=UT.default,Yr.MSI1110=NT.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var ST=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),QT=vr,xT=TT(QT);function TT(t){return t&&t.__esModule?t:{default:t}}function RT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function VT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var MT=function(t){VT(e,t);function e(A,r){RT(this,e);var n=IT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return ST(e,[{key:"encode",value:function(){for(var r=this.number,n="";!isNaN(r)&&r!=0;)r%2===0?(n="11100"+n,r=(r-2)/2):(n="100"+n,r=(r-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(xT.default);Rc.pharmacode=MT;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var LT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),OT=vr,kT=HT(OT);function HT(t){return t&&t.__esModule?t:{default:t}}function DT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function WT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _T=function(t){WT(e,t);function e(A,r){DT(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=PT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return LT(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],n=this.getEncodings(),a=0;a<this.data.length;a++)r.push(n[this.data.charAt(a)]),a!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(kT.default);Ic.codabar=_T;var co={},Vc={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Ds.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Ds.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]},Object.defineProperty(Vc,"__esModule",{value:!0});var ZT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Mc=Ds,jT=vr,JT=KT(jT);function KT(t){return t&&t.__esModule?t:{default:t}}function GT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function YT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var XT=function(t){YT(e,t);function e(A,r){return GT(this,e),zT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return ZT(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.data.split("").flatMap(function(o){return Mc.MULTI_SYMBOLS[o]||o}),n=r.map(function(o){return e.getEncoding(o)}).join(""),a=e.checksum(r,20),i=e.checksum(r.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(i)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(r){return Mc.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Mc.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Mc.SYMBOLS.indexOf(r)}},{key:"checksum",value:function(r,n){var a=r.slice().reverse().reduce(function(i,o,s){var l=s%n+1;return i+e.symbolValue(o)*l},0);return e.getSymbol(a%47)}}]),e}(JT.default);Vc.default=XT;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var qT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),$T=Vc,eR=tR($T);function tR(t){return t&&t.__esModule?t:{default:t}}function AR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function nR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aR=function(t){nR(e,t);function e(A,r){return AR(this,e),rR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return qT(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(eR.default);Id.default=aR,Object.defineProperty(co,"__esModule",{value:!0}),co.CODE93FullASCII=co.CODE93=void 0;var iR=Vc,oR=fv(iR),sR=Id,lR=fv(sR);function fv(t){return t&&t.__esModule?t:{default:t}}co.CODE93=oR.default,co.CODE93FullASCII=lR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var cR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),uR=vr,fR=hR(uR);function hR(t){return t&&t.__esModule?t:{default:t}}function dR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mR=function(t){gR(e,t);function e(A,r){return dR(this,e),pR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return cR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(fR.default);Lc.GenericBarcode=mR,Object.defineProperty(ud,"__esModule",{value:!0});var vR=Fc,Oc=In,uo=Sr,hv=lo,Ps=Yr,BR=Rc,wR=Ic,dv=co,yR=Lc;ud.default={CODE39:vR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:uo.EAN13,EAN8:uo.EAN8,EAN5:uo.EAN5,EAN2:uo.EAN2,UPC:uo.UPC,UPCE:uo.UPCE,ITF14:hv.ITF14,ITF:hv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:BR.pharmacode,codabar:wR.codabar,CODE93:dv.CODE93,CODE93FullASCII:dv.CODE93FullASCII,GenericBarcode:yR.GenericBarcode};var fo={};Object.defineProperty(fo,"__esModule",{value:!0});var bR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t};fo.default=function(t,e){return bR({},t,e)};var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=CR;function CR(t){var e=[];function A(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)A(r[n]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return A(t),e}var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=ER;function ER(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Ld={},Od={},kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=UR;function UR(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var A in e)e.hasOwnProperty(A)&&(A=e[A],typeof t[A]=="string"&&(t[A]=parseInt(t[A],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var FR={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Hc.default=FR,Object.defineProperty(Od,"__esModule",{value:!0});var NR=kc,SR=gv(NR),QR=Hc,pv=gv(QR);function gv(t){return t&&t.__esModule?t:{default:t}}function xR(t){var e={};for(var A in pv.default)pv.default.hasOwnProperty(A)&&(t.hasAttribute("jsbarcode-"+A.toLowerCase())&&(e[A]=t.getAttribute("jsbarcode-"+A.toLowerCase())),t.hasAttribute("data-"+A.toLowerCase())&&(e[A]=t.getAttribute("data-"+A.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,SR.default)(e),e}Od.default=xR;var kd={},Hd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=fo,RR=IR(TR);function IR(t){return t&&t.__esModule?t:{default:t}}function mv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function vv(t,e,A){if(A.displayValue&&e<t){if(A.textAlign=="center")return Math.floor((t-e)/2);if(A.textAlign=="left")return 0;if(A.textAlign=="right")return Math.floor(t-e)}return 0}function VR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,RR.default)(e,n.options),i;a.displayValue?i=OR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=mv(n,a),n.barcodePadding=vv(i,o,a)}}function MR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function LR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function OR(t,e,A){var r;if(A)r=A;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var n=r.measureText(t);if(!n)return 0;var a=n.width;return a}Hr.getMaximumHeightOfEncodings=LR,Hr.getEncodingHeight=mv,Hr.getBarcodePadding=vv,Hr.calculateEncodingAttributes=VR,Hr.getTotalWidthOfEncodings=MR,Object.defineProperty(Hd,"__esModule",{value:!0});var kR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),HR=fo,DR=PR(HR),Dd=Hr;function PR(t){return t&&t.__esModule?t:{default:t}}function WR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _R=function(){function t(e,A,r){WR(this,t),this.canvas=e,this.encodings=A,this.options=r}return kR(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var A=0;A<this.encodings.length;A++){var r=(0,DR.default)(this.options,this.encodings[A].options);this.drawCanvasBarcode(r,this.encodings[A]),this.drawCanvasText(r,this.encodings[A]),this.moveCanvasDrawing(this.encodings[A])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var A=this.canvas.getContext("2d");A.save(),(0,Dd.calculateEncodingAttributes)(this.encodings,this.options,A);var r=(0,Dd.getTotalWidthOfEncodings)(this.encodings),n=(0,Dd.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,A.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(A.fillStyle=this.options.background,A.fillRect(0,0,this.canvas.width,this.canvas.height)),A.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(A,r){var n=this.canvas.getContext("2d"),a=r.data,i;A.textPosition=="top"?i=A.marginTop+A.fontSize+A.textMargin:i=A.marginTop,n.fillStyle=A.lineColor;for(var o=0;o<a.length;o++){var s=o*A.width+r.barcodePadding;a[o]==="1"?n.fillRect(s,i,A.width,A.height):a[o]&&n.fillRect(s,i,A.width,A.height*a[o])}}},{key:"drawCanvasText",value:function(A,r){var n=this.canvas.getContext("2d"),a=A.fontOptions+" "+A.fontSize+"px "+A.font;if(A.displayValue){var i,o;A.textPosition=="top"?o=A.marginTop+A.fontSize-A.textMargin:o=A.height+A.textMargin+A.marginTop+A.fontSize,n.font=a,A.textAlign=="left"||r.barcodePadding>0?(i=0,n.textAlign="left"):A.textAlign=="right"?(i=r.width-1,n.textAlign="right"):(i=r.width/2,n.textAlign="center"),n.fillText(r.text,i,o)}}},{key:"moveCanvasDrawing",value:function(A){var r=this.canvas.getContext("2d");r.translate(A.width,0)}},{key:"restoreCanvas",value:function(){var A=this.canvas.getContext("2d");A.restore()}}]),t}();Hd.default=_R;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var ZR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),jR=fo,JR=KR(jR),Wd=Hr;function KR(t){return t&&t.__esModule?t:{default:t}}function GR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",zR=function(){function t(e,A,r){GR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return ZR(t,[{key:"render",value:function(){var A=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var n=this.encodings[r],a=(0,JR.default)(this.options,n.options),i=this.createGroup(A,a.marginTop,this.svg);this.setGroupOptions(i,a),this.drawSvgBarcode(i,a,n),this.drawSVGText(i,a,n),A+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,Wd.calculateEncodingAttributes)(this.encodings,this.options);var A=(0,Wd.getTotalWidthOfEncodings)(this.encodings),r=(0,Wd.getMaximumHeightOfEncodings)(this.encodings),n=A+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,r),this.options.background&&this.drawRect(0,0,n,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(A,r,n){var a=n.data,i;r.textPosition=="top"?i=r.fontSize+r.textMargin:i=0;for(var o=0,s=0,l=0;l<a.length;l++)s=l*r.width+n.barcodePadding,a[l]==="1"?o++:o>0&&(this.drawRect(s-r.width*o,i,r.width*o,r.height,A),o=0);o>0&&this.drawRect(s-r.width*(o-1),i,r.width*o,r.height,A)}},{key:"drawSVGText",value:function(A,r,n){var a=this.document.createElementNS(Dc,"text");if(r.displayValue){var i,o;a.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?o=r.fontSize-r.textMargin:o=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||n.barcodePadding>0?(i=0,a.setAttribute("text-anchor","start")):r.textAlign=="right"?(i=n.width-1,a.setAttribute("text-anchor","end")):(i=n.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",i),a.setAttribute("y",o),a.appendChild(this.document.createTextNode(n.text)),A.appendChild(a)}}},{key:"setSvgAttributes",value:function(A,r){var n=this.svg;n.setAttribute("width",A+"px"),n.setAttribute("height",r+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+A+" "+r),n.setAttribute("xmlns",Dc),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(A,r,n){var a=this.document.createElementNS(Dc,"g");return a.setAttribute("transform","translate("+A+", "+r+")"),n.appendChild(a),a}},{key:"setGroupOptions",value:function(A,r){A.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(A,r,n,a,i){var o=this.document.createElementNS(Dc,"rect");return o.setAttribute("x",A),o.setAttribute("y",r),o.setAttribute("width",n),o.setAttribute("height",a),i.appendChild(o),o}}]),t}();Pd.default=zR;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});var YR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function XR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var qR=function(){function t(e,A,r){XR(this,t),this.object=e,this.encodings=A,this.options=r}return YR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();_d.default=qR,Object.defineProperty(kd,"__esModule",{value:!0});var $R=Hd,eI=Zd($R),tI=Pd,AI=Zd(tI),rI=_d,nI=Zd(rI);function Zd(t){return t&&t.__esModule?t:{default:t}}kd.default={CanvasRenderer:eI.default,SVGRenderer:AI.default,ObjectRenderer:nI.default};var ho={};Object.defineProperty(ho,"__esModule",{value:!0});function jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Kd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aI=function(t){Kd(e,t);function e(A,r){jd(this,e);var n=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidInputException",n.symbology=A,n.input=r,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}return e}(Error),iI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="InvalidElementException",A.message="Not supported type to render on",A}return e}(Error),oI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="NoElementException",A.message="No element to render on.",A}return e}(Error);ho.InvalidInputException=aI,ho.InvalidElementException=iI,ho.NoElementException=oI,Object.defineProperty(Ld,"__esModule",{value:!0});var sI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lI=Od,Gd=Bv(lI),cI=kd,Ws=Bv(cI),uI=ho;function Bv(t){return t&&t.__esModule?t:{default:t}}function zd(t){if(typeof t=="string")return fI(t);if(Array.isArray(t)){for(var e=[],A=0;A<t.length;A++)e.push(zd(t[A]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return hI(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Ws.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":sI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new uI.InvalidElementException}}function fI(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var A=[],r=0;r<e.length;r++)A.push(zd(e[r]));return A}}function hI(t){var e=document.createElement("canvas");return{element:e,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Ld.default=zd;var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});var dI=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function pI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var gI=function(){function t(e){pI(this,t),this.api=e}return dI(t,[{key:"handleCatch",value:function(A){if(A.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw A.message;else throw A;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(A){try{var r=A.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(n){return this.handleCatch(n),this.api}}}]),t}();Yd.default=gI;var mI=ud,fi=Ba(mI),vI=fo,_s=Ba(vI),BI=Vd,wv=Ba(BI),wI=Md,yv=Ba(wI),yI=Ld,bI=Ba(yI),CI=kc,EI=Ba(CI),UI=Yd,FI=Ba(UI),bv=ho,NI=Hc,Cv=Ba(NI);function Ba(t){return t&&t.__esModule?t:{default:t}}var zn=function(){},Pc=function(e,A,r){var n=new zn;if(typeof e>"u")throw Error("No element to render on was provided.");return n._renderProperties=(0,bI.default)(e),n._encodings=[],n._options=Cv.default,n._errorHandler=new FI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Fv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return fi.default[t]};for(var Ev in fi.default)fi.default.hasOwnProperty(Ev)&&SI(fi.default,Ev);function SI(t,e){zn.prototype[e]=zn.prototype[e.toUpperCase()]=zn.prototype[e.toLowerCase()]=function(A,r){var n=this;return n._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var a=(0,_s.default)(n._options,r);a=(0,EI.default)(a);var i=t[e],o=Uv(A,i,a);return n._encodings.push(o),n})}}function Uv(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new bv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,wv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Fv(){return fi.default.CODE128?"CODE128":Object.keys(fi.default)[0]}zn.prototype.options=function(t){return this._options=(0,_s.default)(this._options,t),this},zn.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},zn.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var t;for(var e in this._renderProperties){t=this._renderProperties[e];var A=(0,_s.default)(this._options,t.options);A.format=="auto"&&(A.format=Fv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=fi.default[A.format.toUpperCase()],a=Uv(r,n,A);Xd(t,a,A)})}}},zn.prototype.render=function(){if(!this._renderProperties)throw new bv.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)Xd(this._renderProperties[t],this._encodings,this._options);else Xd(this._renderProperties,this._encodings,this._options);return this},zn.prototype._defaults=Cv.default;function Xd(t,e,A){e=(0,wv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,yv.default)(e[r].options);(0,yv.default)(A);var n=t.renderer,a=new n(t.element,e,A);a.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=Pc),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var A=[];return jQuery(this).each(function(){A.push(this)}),Pc(A,t,e)});var QI=Pc;const qd=ld(QI),Wq="",xI={__name:"BarcodeComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Qs(A,r),i=f.ref(null);f.computed(()=>A.modelValue.__selected||!1);const o=f.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,h)=>{let y;return function(...b){const v=()=>{clearTimeout(y),g(...b)};clearTimeout(y),y=setTimeout(v,h)}},l=f.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var N,S,L,H,O,T,I,k,U,E,Q,R,_,j,G,X;if(!i.value)return;const g=pi((S=(N=A.propsConfig)==null?void 0:N.barcode)==null?void 0:S.propertyPanel)||{};let h=((L=A.modelValue)==null?void 0:L.BarcodeValue)||g.BarcodeValue||"";if(!h&&((H=A.modelValue)!=null&&H.FieldName))if(Array.isArray(A.modelValue.FieldName)){const z=A.modelValue.FieldName.map(Y=>{var ae,x,D,K;return((K=(D=(x=(ae=A.modelValue)==null?void 0:ae.options)==null?void 0:x.fields)==null?void 0:D.find(q=>q.value==Y))==null?void 0:K.label)||Y}).filter(Y=>Y);if(z.length>0){const Y=A.modelValue.FieldConnector||" ";h=z.join(Y)}}else h=((k=(I=(T=(O=A.modelValue)==null?void 0:O.options)==null?void 0:T.fields)==null?void 0:I.find(z=>{var Y;return z.value==((Y=A.modelValue)==null?void 0:Y.FieldName)}))==null?void 0:k.label)||((U=A.modelValue)==null?void 0:U.FieldName)||"";const y=((E=A.modelValue)==null?void 0:E.CodeType)||g.CodeType||"",w=A.modelValue.LineColor||g.LineColor,b=((X=(G=(j=(_=(R=(Q=A.propsConfig)==null?void 0:Q.barcode)==null?void 0:R.propertyPanel)==null?void 0:_.find(z=>z.prop==="CodeType"))==null?void 0:j.options)==null?void 0:G.find(z=>z.value===y))==null?void 0:X.compValue)||"",v={value:h,type:y,lineColor:w,codeType:b};if(JSON.stringify(v)!==JSON.stringify(l.value)){l.value=v;try{const z=i.value;z.innerHTML="",qd(z,h,{format:b,width:2,displayValue:!1,margin:0,lineColor:w,height:50,background:"transparent"}),f.nextTick(()=>{if(z){const Y=z.getBBox();if(Y.width>0&&Y.height>0){const ae=`${Y.x} ${Y.y} ${Y.width} ${Y.height}`;z.setAttribute("viewBox",ae),z.style.width="100%",z.style.height="100%",z.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return f.onMounted(()=>{u(),a(),n()}),f.watch(()=>A.modelValue,()=>d(),{deep:!0}),f.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,h)=>(f.openBlock(),f.createElementBlock("div",{class:"barcode-component",style:f.normalizeStyle(o.value)},[(f.openBlock(),f.createElementBlock("svg",{ref_key:"barcodeRef",ref:i,width:"100%",height:"100%",preserveAspectRatio:"none",style:{width:"100%",height:"100%"}},null,512))],4))}},TI={__name:"BarcodePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,"panel-type":"barcode",options:t.options,"onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},RI={},II={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function VI(t,e){return f.openBlock(),f.createElementBlock("svg",II,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"1785"},null,-1),f.createElementVNode("path",{d:"M388.592 912H195.92C150.24 912 112 871.696 112 823.44V642.848c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 17.92 13.408 32.336 30.288 32.336h192.16c15.408 0 26.832 11.952 26.832 28.368 0 15.424-11.424 27.856-26.32 27.856z m439.456 0h-192.16c-15.408 0-26.816-11.936-26.816-28.352 0-15.92 11.408-28.368 26.8-28.368h192.176c16.88 0 30.288-13.92 30.288-32.32V642.336c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 48.752-38.24 89.056-83.92 89.056zM138.816 409.504c-15.392 0-26.816-11.936-26.816-28.352V201.056C112 152.8 150.24 112.48 195.92 112.48h192.16c15.408 0 26.832 11.936 26.832 28.352 0 15.92-11.424 28.368-26.816 28.368H195.92c-16.88 0-30.288 15.92-30.288 34.32V384.16c0 13.44-11.424 25.36-26.816 25.36zM885.184 409.52c-15.392 0-26.816-11.952-26.816-28.368V201.056c0-17.92-13.408-32.336-30.288-32.336h-192.16c-15.408 0-26.832-11.936-26.832-28.368 0-15.92 11.424-28.352 26.816-28.352h192.176C873.76 112 912 152.304 912 200.56v180.592c0 16.416-13.408 28.368-26.816 28.368zM755.2 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM672 698c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6v372zM608 326v372c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6zM560 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM512 698c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6v372zM336 698c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6v372zM256 326v372c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6zM400 698c0 3.6 2.56 6 6.4 6h64c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-64c-3.84 0-6.4 2.4-6.4 6v372z","p-id":"1786"},null,-1)])])}const MI=WA(RI,[["render",VI]]),wa=t=>t*3.7795275591,hi=t=>t/3.7795275591;function $d(t){if(!t||t<=0)return 1;const e=hi(t);return(window.$templateType||"lodop")==="rfid"?e*1.5:e}var ya={},LI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Nv={},Dr={};let e0;const OI=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Dr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},Dr.getSymbolTotalCodewords=function(e){return OI[e]},Dr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},Dr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');e0=e},Dr.isKanjiModeEnabled=function(){return typeof e0<"u"},Dr.toSJIS=function(e){return e0(e)};var Wc={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(A){if(typeof A!="string")throw new Error("Param is not a string");switch(A.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+A)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,n){if(t.isValid(r))return r;try{return e(r)}catch{return n}}})(Wc);function Sv(){this.buffer=[],this.length=0}Sv.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let A=0;A<e;A++)this.putBit((t>>>e-A-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var kI=Sv;function Zs(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Zs.prototype.set=function(t,e,A,r){const n=t*this.size+e;this.data[n]=A,r&&(this.reservedBit[n]=!0)},Zs.prototype.get=function(t,e){return this.data[t*this.size+e]},Zs.prototype.xor=function(t,e,A){this.data[t*this.size+e]^=A},Zs.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var HI=Zs,Qv={};(function(t){const e=Dr.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const n=Math.floor(r/7)+2,a=e(r),i=a===145?26:Math.ceil((a-13)/(2*n-2))*2,o=[a-7];for(let s=1;s<n-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()},t.getPositions=function(r){const n=[],a=t.getRowColCoords(r),i=a.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||n.push([a[o],a[s]]);return n}})(Qv);var xv={};const DI=Dr.getSymbolSize,Tv=7;xv.getPositions=function(e){const A=DI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var Rv={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){const a=n.size;let i=0,o=0,s=0,l=null,u=null;for(let d=0;d<a;d++){o=s=0,l=u=null;for(let g=0;g<a;g++){let h=n.get(d,g);h===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=h,o=1),h=n.get(g,d),h===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=h,s=1)}o>=5&&(i+=e.N1+(o-5)),s>=5&&(i+=e.N1+(s-5))}return i},t.getPenaltyN2=function(n){const a=n.size;let i=0;for(let o=0;o<a-1;o++)for(let s=0;s<a-1;s++){const l=n.get(o,s)+n.get(o,s+1)+n.get(o+1,s)+n.get(o+1,s+1);(l===4||l===0)&&i++}return i*e.N2},t.getPenaltyN3=function(n){const a=n.size;let i=0,o=0,s=0;for(let l=0;l<a;l++){o=s=0;for(let u=0;u<a;u++)o=o<<1&2047|n.get(l,u),u>=10&&(o===1488||o===93)&&i++,s=s<<1&2047|n.get(u,l),u>=10&&(s===1488||s===93)&&i++}return i*e.N3},t.getPenaltyN4=function(n){let a=0;const i=n.data.length;for(let s=0;s<i;s++)a+=n.data[s];return Math.abs(Math.ceil(a*100/i/5)-10)*e.N4};function A(r,n,a){switch(r){case t.Patterns.PATTERN000:return(n+a)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return a%3===0;case t.Patterns.PATTERN011:return(n+a)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case t.Patterns.PATTERN101:return n*a%2+n*a%3===0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2===0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(n,a){const i=a.size;for(let o=0;o<i;o++)for(let s=0;s<i;s++)a.isReserved(s,o)||a.xor(s,o,A(n,s,o))},t.getBestMask=function(n,a){const i=Object.keys(t.Patterns).length;let o=0,s=1/0;for(let l=0;l<i;l++){a(l),t.applyMask(l,n);const u=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(l,n),u<s&&(s=u,o=l)}return o}})(Rv);var _c={};const ba=Wc,Zc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],jc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];_c.getBlocksCount=function(e,A){switch(A){case ba.L:return Zc[(e-1)*4+0];case ba.M:return Zc[(e-1)*4+1];case ba.Q:return Zc[(e-1)*4+2];case ba.H:return Zc[(e-1)*4+3];default:return}},_c.getTotalCodewordsCount=function(e,A){switch(A){case ba.L:return jc[(e-1)*4+0];case ba.M:return jc[(e-1)*4+1];case ba.Q:return jc[(e-1)*4+2];case ba.H:return jc[(e-1)*4+3];default:return}};var Iv={},Jc={};const js=new Uint8Array(512),Kc=new Uint8Array(256);(function(){let e=1;for(let A=0;A<255;A++)js[A]=e,Kc[e]=A,e<<=1,e&256&&(e^=285);for(let A=255;A<512;A++)js[A]=js[A-255]})(),Jc.log=function(e){if(e<1)throw new Error("log("+e+")");return Kc[e]},Jc.exp=function(e){return js[e]},Jc.mul=function(e,A){return e===0||A===0?0:js[Kc[e]+Kc[A]]},function(t){const e=Jc;t.mul=function(r,n){const a=new Uint8Array(r.length+n.length-1);for(let i=0;i<r.length;i++)for(let o=0;o<n.length;o++)a[i+o]^=e.mul(r[i],n[o]);return a},t.mod=function(r,n){let a=new Uint8Array(r);for(;a.length-n.length>=0;){const i=a[0];for(let s=0;s<n.length;s++)a[s]^=e.mul(n[s],i);let o=0;for(;o<a.length&&a[o]===0;)o++;a=a.slice(o)}return a},t.generateECPolynomial=function(r){let n=new Uint8Array([1]);for(let a=0;a<r;a++)n=t.mul(n,new Uint8Array([1,e.exp(a)]));return n}}(Iv);const Vv=Iv;function t0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}t0.prototype.initialize=function(e){this.degree=e,this.genPoly=Vv.generateECPolynomial(this.degree)},t0.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const A=new Uint8Array(e.length+this.degree);A.set(e);const r=Vv.mod(A,this.genPoly),n=this.degree-r.length;if(n>0){const a=new Uint8Array(this.degree);return a.set(r,n),a}return r};var PI=t0,Mv={},Ca={},A0={};A0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Lv="[0-9]+",WI="[A-Z $%*+\\-./:]+";let Js="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Js=Js.replace(/u/g,"\\u");const _I="(?:(?![A-Z0-9 $%*+\\-./:]|"+Js+`)(?:.|[\r
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const EF=Object.prototype.hasOwnProperty,Xh=(t,e)=>EF.call(t,e),bc=t=>typeof t=="function",xs=t=>typeof t=="string",tm=t=>t!==null&&typeof t=="object";var UF=typeof global=="object"&&global&&global.Object===Object&&global;const FF=UF;var NF=typeof self=="object"&&self&&self.Object===Object&&self,SF=FF||NF||Function("return this")();const qh=SF;var QF=qh.Symbol;const $i=QF;var Am=Object.prototype,xF=Am.hasOwnProperty,TF=Am.toString,Ts=$i?$i.toStringTag:void 0;function RF(t){var e=xF.call(t,Ts),A=t[Ts];try{t[Ts]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[Ts]=A:delete t[Ts]),n}var IF=Object.prototype,VF=IF.toString;function MF(t){return VF.call(t)}var LF="[object Null]",OF="[object Undefined]",rm=$i?$i.toStringTag:void 0;function nm(t){return t==null?t===void 0?OF:LF:rm&&rm in Object(t)?RF(t):MF(t)}function kF(t){return t!=null&&typeof t=="object"}var HF="[object Symbol]";function $h(t){return typeof t=="symbol"||kF(t)&&nm(t)==HF}function DF(t,e){for(var A=-1,r=t==null?0:t.length,n=Array(r);++A<r;)n[A]=e(t[A],A,t);return n}var PF=Array.isArray;const ed=PF;var WF=1/0,am=$i?$i.prototype:void 0,im=am?am.toString:void 0;function om(t){if(typeof t=="string")return t;if(ed(t))return DF(t,om)+"";if($h(t))return im?im.call(t):"";var e=t+"";return e=="0"&&1/t==-WF?"-0":e}function sm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _F="[object AsyncFunction]",ZF="[object Function]",jF="[object GeneratorFunction]",JF="[object Proxy]";function KF(t){if(!sm(t))return!1;var e=nm(t);return e==ZF||e==jF||e==_F||e==JF}var GF=qh["__core-js_shared__"];const td=GF;var lm=function(){var t=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function zF(t){return!!lm&&lm in t}var YF=Function.prototype,XF=YF.toString;function qF(t){if(t!=null){try{return XF.call(t)}catch{}try{return t+""}catch{}}return""}var $F=/[\\^$.*+?()[\]{}|]/g,e4=/^\[object .+?Constructor\]$/,t4=Function.prototype,A4=Object.prototype,r4=t4.toString,n4=A4.hasOwnProperty,a4=RegExp("^"+r4.call(n4).replace($F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i4(t){if(!sm(t)||zF(t))return!1;var e=KF(t)?a4:e4;return e.test(qF(t))}function o4(t,e){return t==null?void 0:t[e]}function cm(t,e){var A=o4(t,e);return i4(A)?A:void 0}function s4(t,e){return t===e||t!==t&&e!==e}var l4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c4=/^\w*$/;function u4(t,e){if(ed(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||$h(t)?!0:c4.test(t)||!l4.test(t)||e!=null&&t in Object(e)}var f4=cm(Object,"create");const Rs=f4;function h4(){this.__data__=Rs?Rs(null):{},this.size=0}function d4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var p4="__lodash_hash_undefined__",g4=Object.prototype,m4=g4.hasOwnProperty;function v4(t){var e=this.__data__;if(Rs){var A=e[t];return A===p4?void 0:A}return m4.call(e,t)?e[t]:void 0}var B4=Object.prototype,w4=B4.hasOwnProperty;function y4(t){var e=this.__data__;return Rs?e[t]!==void 0:w4.call(e,t)}var b4="__lodash_hash_undefined__";function C4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?b4:e,this}function ai(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ai.prototype.clear=h4,ai.prototype.delete=d4,ai.prototype.get=v4,ai.prototype.has=y4,ai.prototype.set=C4;function E4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(s4(t[A][0],e))return A;return-1}var U4=Array.prototype,F4=U4.splice;function N4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():F4.call(e,A,1),--this.size,!0}function S4(t){var e=this.__data__,A=Cc(e,t);return A<0?void 0:e[A][1]}function Q4(t){return Cc(this.__data__,t)>-1}function x4(t,e){var A=this.__data__,r=Cc(A,t);return r<0?(++this.size,A.push([t,e])):A[r][1]=e,this}function eo(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=E4,eo.prototype.delete=N4,eo.prototype.get=S4,eo.prototype.has=Q4,eo.prototype.set=x4;var T4=cm(qh,"Map");const R4=T4;function I4(){this.size=0,this.__data__={hash:new ai,map:new(R4||eo),string:new ai}}function V4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ec(t,e){var A=t.__data__;return V4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function M4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function L4(t){return Ec(this,t).get(t)}function O4(t){return Ec(this,t).has(t)}function k4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,this}function ii(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ii.prototype.clear=I4,ii.prototype.delete=M4,ii.prototype.get=L4,ii.prototype.has=O4,ii.prototype.set=k4;var H4="Expected a function";function Ad(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(H4);var A=function(){var r=arguments,n=e?e.apply(this,r):r[0],a=A.cache;if(a.has(n))return a.get(n);var i=t.apply(this,r);return A.cache=a.set(n,i)||a,i};return A.cache=new(Ad.Cache||ii),A}Ad.Cache=ii;var D4=500;function P4(t){var e=Ad(t,function(r){return A.size===D4&&A.clear(),r}),A=e.cache;return e}var W4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_4=/\\(\\)?/g,Z4=P4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(W4,function(A,r,n,a){e.push(n?a.replace(_4,"$1"):r||A)}),e});const j4=Z4;function J4(t){return t==null?"":om(t)}function K4(t,e){return ed(t)?t:u4(t,e)?[t]:j4(J4(t))}var G4=1/0;function z4(t){if(typeof t=="string"||$h(t))return t;var e=t+"";return e=="0"&&1/t==-G4?"-0":e}function Y4(t,e){e=K4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[z4(e[A++])];return A&&A==r?t:void 0}function X4(t,e,A){var r=t==null?void 0:Y4(t,e);return r===void 0?A:r}function q4(t){for(var e=-1,A=t==null?0:t.length,r={};++e<A;){var n=t[e];r[n[0]]=n[1]}return r}const $4=t=>t===void 0,rd=t=>typeof t=="boolean",oi=t=>typeof t=="number",eN=t=>typeof Element>"u"?!1:t instanceof Element,tN=t=>xs(t)?!Number.isNaN(Number(t)):!1;var um;const to=typeof window<"u",AN=t=>typeof t=="string",rN=()=>{};to&&((um=window==null?void 0:window.navigator)!=null&&um.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nd(t){return typeof t=="function"?t():f.unref(t)}function nN(t){return t}function ad(t){return f.getCurrentScope()?(f.onScopeDispose(t),!0):!1}function aN(t,e=!0){f.getCurrentInstance()?f.onMounted(t):e?t():f.nextTick(t)}function iN(t,e,A={}){const{immediate:r=!0}=A,n=f.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function o(){n.value=!1,i()}function s(...l){i(),n.value=!0,a=setTimeout(()=>{n.value=!1,a=null,t(...l)},nd(e))}return r&&(n.value=!0,to&&s()),ad(o),{isPending:f.readonly(n),start:s,stop:o}}function fm(t){var e;const A=nd(t);return(e=A==null?void 0:A.$el)!=null?e:A}const hm=to?window:void 0;function oN(...t){let e,A,r,n;if(AN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=hm):[e,A,r,n]=t,!e)return rN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,h)=>(u.addEventListener(d,g,h),()=>u.removeEventListener(d,g,h)),s=f.watch(()=>[fm(e),nd(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(h=>o(u,g,h,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return ad(l),l}function sN(t,e=!1){const A=f.ref(),r=()=>A.value=!!t();return r(),aN(r,e),A}const dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pm="__vueuse_ssr_handlers__";dm[pm]=dm[pm]||{};var gm=Object.getOwnPropertySymbols,lN=Object.prototype.hasOwnProperty,cN=Object.prototype.propertyIsEnumerable,uN=(t,e)=>{var A={};for(var r in t)lN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&gm)for(var r of gm(t))e.indexOf(r)<0&&cN.call(t,r)&&(A[r]=t[r]);return A};function fN(t,e,A={}){const r=A,{window:n=hm}=r,a=uN(r,["window"]);let i;const o=sN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=f.watch(()=>fm(t),d=>{s(),o.value&&n&&d&&(i=new ResizeObserver(e),i.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return ad(u),{isSupported:o,stop:u}}var mm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(mm||(mm={}));var hN=Object.defineProperty,vm=Object.getOwnPropertySymbols,dN=Object.prototype.hasOwnProperty,pN=Object.prototype.propertyIsEnumerable,Bm=(t,e,A)=>e in t?hN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,gN=(t,e)=>{for(var A in e||(e={}))dN.call(e,A)&&Bm(t,A,e[A]);if(vm)for(var A of vm(e))pN.call(e,A)&&Bm(t,A,e[A]);return t};gN({linear:nN},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const wm={current:0},ym=f.ref(0),bm=2e3,Cm=Symbol("elZIndexContextKey"),Em=Symbol("zIndexContextKey"),mN=t=>{const e=f.getCurrentInstance()?f.inject(Cm,wm):wm,A=t||(f.getCurrentInstance()?f.inject(Em,void 0):void 0),r=f.computed(()=>{const i=f.unref(A);return oi(i)?i:bm}),n=f.computed(()=>r.value+ym.value),a=()=>(e.current++,ym.value=e.current,n.value);return!to&&f.inject(Cm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var vN={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const BN=t=>(e,A)=>wN(e,A,f.unref(t)),wN=(t,e,A)=>X4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),yN=t=>{const e=f.computed(()=>f.unref(t).name),A=f.isRef(t)?t:f.ref(t);return{lang:e,locale:A,t:BN(t)}},Um=Symbol("localeContextKey"),bN=t=>{const e=t||f.inject(Um,f.ref());return yN(f.computed(()=>e.value||vN))},Fm="__epPropKey",Nr=t=>t,CN=t=>tm(t)&&!!t[Fm],Nm=(t,e)=>{if(!tm(t)||CN(t))return t;const{values:A,required:r,default:n,type:a,validator:i}=t,s={type:a,required:!!r,validator:A||i?l=>{let u=!1,d=[];if(A&&(d=Array.from(A),Xh(t,"default")&&d.push(n),u||(u=d.includes(l))),i&&(u||(u=i(l))),!u&&d.length>0){const g=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");f.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Fm]:!0};return Xh(t,"default")&&(s.default=n),s},Is=t=>q4(Object.entries(t).map(([e,A])=>[e,Nm(A,e)])),EN=Nm({type:String,values:["","default","small","large"],required:!1}),UN=Symbol("size"),FN=Symbol("emptyValuesContextKey"),NN=Is({emptyValues:Array,valueOnClear:{type:Nr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Sm=t=>Object.keys(t),Uc=f.ref();function Qm(t,e=void 0){const A=f.getCurrentInstance()?f.inject($2,Uc):Uc;return t?f.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function SN(t,e){const A=Qm(),r=Yh(t,f.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=bN(f.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=mN(f.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||bm})),i=f.computed(()=>{var o;return f.unref(e)||((o=A.value)==null?void 0:o.size)||""});return xm(f.computed(()=>f.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const xm=(t,e,A=!1)=>{var r;const n=!!f.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?f.provide:void 0;if(!i)return;const o=f.computed(()=>{const s=f.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i($2,o),i(Um,f.computed(()=>o.value.locale)),i(em,f.computed(()=>o.value.namespace)),i(Em,f.computed(()=>o.value.zIndex)),i(UN,{size:f.computed(()=>o.value.size||"")}),i(FN,f.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Sm(t),...Sm(e)])],r={};for(const n of A)r[n]=e[n]!==void 0?e[n]:t[n];return r};var id=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A};function od(t,e="px"){if(!t)return"";if(oi(t)||tN(t))return`${t}${e}`;if(xs(t))return t}function Oq(t,e){}const Tm=(t,e)=>{if(t.install=A=>{for(const r of[t,...Object.values(e??{})])A.component(r.name,r)},e)for(const[A,r]of Object.entries(e))t[A]=r;return t},xN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Nr([Number,String])},color:{type:String}}),RN=f.defineComponent({name:"ElIcon",inheritAttrs:!1}),IN=f.defineComponent({...RN,props:TN,setup(t){const e=t,A=Yh("icon"),r=f.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:$4(n)?void 0:od(n),"--color":a}});return(n,a)=>(f.openBlock(),f.createElementBlock("i",f.mergeProps({class:f.unref(A).b(),style:f.unref(r)},n.$attrs),[f.renderSlot(n.$slots,"default")],16))}});var VN=id(IN,[["__file","icon.vue"]]);const Rm=Tm(VN);/*! Element Plus Icons Vue v2.3.2 */var MN=f.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Im=MN,LN=f.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ON=LN,kN=f.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),sd=kN,HN=f.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Vm=HN,DN=f.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Mm=DN;const PN=Nr([String,Object,Function]),WN={Close:ON,SuccessFilled:Vm,InfoFilled:sd,WarningFilled:Mm,CircleCloseFilled:Im},Lm={primary:sd,success:Vm,warning:Mm,error:Im,info:sd},_N=t=>t,ZN={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},jN=Is({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Nr([String,Object,Array])},offset:{type:Nr(Array),default:[0,0]},badgeClass:{type:String}}),JN=f.defineComponent({name:"ElBadge"}),KN=f.defineComponent({...JN,props:jN,setup(t,{expose:e}){const A=t,r=Yh("badge"),n=f.computed(()=>A.isDot?"":oi(A.value)&&oi(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=f.computed(()=>{var i,o,s,l,u;return[{backgroundColor:A.color,marginRight:od(-((o=(i=A.offset)==null?void 0:i[0])!=null?o:0)),marginTop:od((l=(s=A.offset)==null?void 0:s[1])!=null?l:0)},(u=A.badgeStyle)!=null?u:{}]});return e({content:n}),(i,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(r).b())},[f.renderSlot(i.$slots,"default"),f.createVNode(f.Transition,{name:`${f.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("sup",{class:f.normalizeClass([f.unref(r).e("content"),f.unref(r).em("content",i.type),f.unref(r).is("fixed",!!i.$slots.default),f.unref(r).is("dot",i.isDot),f.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:f.normalizeStyle(f.unref(a))},[f.renderSlot(i.$slots,"content",{value:f.unref(n)},()=>[f.createTextVNode(f.toDisplayString(f.unref(n)),1)])],6),[[f.vShow,!i.hidden&&(f.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var GN=id(KN,[["__file","badge.vue"]]);const zN=Tm(GN);var Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const YN=Is({a11y:{type:Boolean,default:!0},locale:{type:Nr(Object)},size:EN,button:{type:Nr(Object)},card:{type:Nr(Object)},dialog:{type:Nr(Object)},link:{type:Nr(Object)},experimentalFeatures:{type:Nr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Nr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...NN}),nr={placement:"top"};f.defineComponent({name:"ElConfigProvider",props:YN,setup(t,{slots:e}){const A=xm(t);return f.watch(()=>t.message,r=>{var n,a;Object.assign(nr,(a=(n=A==null?void 0:A.value)==null?void 0:n.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>f.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Om=["primary","success","info","warning","error"],km=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ro="top",ar=_N({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:to?document.body:void 0}),XN=Is({customClass:{type:String,default:ar.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ar.dangerouslyUseHTMLString},duration:{type:Number,default:ar.duration},icon:{type:PN,default:ar.icon},id:{type:String,default:ar.id},message:{type:Nr([String,Object,Function]),default:ar.message},onClose:{type:Nr(Function),default:ar.onClose},showClose:{type:Boolean,default:ar.showClose},type:{type:String,values:Om,default:ar.type},plain:{type:Boolean,default:ar.plain},offset:{type:Number,default:ar.offset},placement:{type:String,values:km,default:ar.placement},zIndex:{type:Number,default:ar.zIndex},grouping:{type:Boolean,default:ar.grouping},repeatNum:{type:Number,default:ar.repeatNum}}),qN={destroy:()=>!0},fn=f.shallowReactive({}),$N=t=>(fn[t]||(fn[t]=f.shallowReactive([])),fn[t]),e3=(t,e)=>{const A=fn[e]||[],r=A.findIndex(i=>i.id===t),n=A[r];let a;return r>0&&(a=A[r-1]),{current:n,prev:a}},t3=(t,e)=>{const{prev:A}=e3(t,e);return A?A.vm.exposed.bottom.value:0},A3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,r3=f.defineComponent({name:"ElMessage"}),n3=f.defineComponent({...r3,props:XN,emits:qN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=WN,a=f.ref(!1),{ns:i,zIndex:o}=SN("message"),{currentZIndex:s,nextZIndex:l}=o,u=f.ref(),d=f.ref(!1),g=f.ref(0);let h;const y=f.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),w=f.computed(()=>{const E=r.type;return{[i.bm("icon",E)]:E&&Lm[E]}}),b=f.computed(()=>r.icon||Lm[r.type]||""),v=f.computed(()=>r.placement||ro),C=f.computed(()=>t3(r.id,v.value)),N=f.computed(()=>A3(r.id,r.offset,v.value)+C.value),S=f.computed(()=>g.value+N.value),L=f.computed(()=>v.value.includes("left")?i.is("left"):v.value.includes("right")?i.is("right"):i.is("center")),H=f.computed(()=>v.value.startsWith("top")?"top":"bottom"),O=f.computed(()=>({[H.value]:`${N.value}px`,zIndex:s.value}));function T(){r.duration!==0&&({stop:h}=iN(()=>{k()},r.duration))}function I(){h==null||h()}function k(){d.value=!1,f.nextTick(()=>{var E;a.value||((E=r.onClose)==null||E.call(r),A("destroy"))})}function U({code:E}){E===ZN.esc&&k()}return f.onMounted(()=>{T(),l(),d.value=!0}),f.watch(()=>r.repeatNum,()=>{I(),T()}),oN(document,"keydown",U),fN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:S,close:k}),(E,Q)=>(f.openBlock(),f.createBlock(f.Transition,{name:f.unref(i).b("fade"),onBeforeEnter:R=>a.value=!0,onBeforeLeave:E.onClose,onAfterLeave:R=>E.$emit("destroy"),persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("div",{id:E.id,ref_key:"messageRef",ref:u,class:f.normalizeClass([f.unref(i).b(),{[f.unref(i).m(E.type)]:E.type},f.unref(i).is("closable",E.showClose),f.unref(i).is("plain",E.plain),f.unref(i).is("bottom",f.unref(H)==="bottom"),f.unref(L),E.customClass]),style:f.normalizeStyle(f.unref(O)),role:"alert",onMouseenter:I,onMouseleave:T},[E.repeatNum>1?(f.openBlock(),f.createBlock(f.unref(zN),{key:0,value:E.repeatNum,type:f.unref(y),class:f.normalizeClass(f.unref(i).e("badge"))},null,8,["value","type","class"])):f.createCommentVNode("v-if",!0),f.unref(b)?(f.openBlock(),f.createBlock(f.unref(Rm),{key:1,class:f.normalizeClass([f.unref(i).e("icon"),f.unref(w)])},{default:f.withCtx(()=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(f.unref(b))))]),_:1},8,["class"])):f.createCommentVNode("v-if",!0),f.renderSlot(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),f.createElementVNode("p",{class:f.normalizeClass(f.unref(i).e("content")),innerHTML:E.message},null,10,["innerHTML"])],2112)):(f.openBlock(),f.createElementBlock("p",{key:0,class:f.normalizeClass(f.unref(i).e("content"))},f.toDisplayString(E.message),3))]),E.showClose?(f.openBlock(),f.createBlock(f.unref(Rm),{key:2,class:f.normalizeClass(f.unref(i).e("closeBtn")),onClick:f.withModifiers(k,["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(n))]),_:1},8,["class","onClick"])):f.createCommentVNode("v-if",!0)],46,["id"]),[[f.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var a3=id(n3,[["__file","message.vue"]]);let i3=1;const o3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(xs(t.appendTo)){let A=document.querySelector(t.appendTo);eN(A)||(A=document.body),t.appendTo=A}},s3=t=>{!t.placement&&xs(nr.placement)&&nr.placement&&(t.placement=nr.placement),t.placement||(t.placement=ro),km.includes(t.placement)||(`${t.placement}${ro}`,t.placement=ro)},Hm=t=>{const e=!t||xs(t)||f.isVNode(t)||bc(t)?{message:t}:t,A={...ar,...e};return o3(A),s3(A),rd(nr.grouping)&&!A.grouping&&(A.grouping=nr.grouping),oi(nr.duration)&&A.duration===3e3&&(A.duration=nr.duration),oi(nr.offset)&&A.offset===16&&(A.offset=nr.offset),rd(nr.showClose)&&!A.showClose&&(A.showClose=nr.showClose),rd(nr.plain)&&!A.plain&&(A.plain=nr.plain),A},l3=t=>{const e=t.props.placement||ro,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},c3=({appendTo:t,...e},A)=>{const r=`message_${i3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),l3(u)},onDestroy:()=>{f.render(null,a)}},o=f.createVNode(a3,i,bc(i.message)||f.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||si._context,f.render(o,a),t.appendChild(a.firstElementChild);const s=o.component,u={id:r,vnode:o,vm:s,handler:{close:()=>{s.exposed.close()}},props:o.component.props};return u},si=(t={},e)=>{if(!to)return{close:()=>{}};const A=Hm(t),r=$N(A.placement||ro);if(A.grouping&&r.length){const a=r.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===A.message});if(a)return a.props.repeatNum+=1,a.props.type=A.type,a.handler}if(oi(nr.max)&&r.length>=nr.max)return{close:()=>{}};const n=c3(A,e);return r.push(n),n.handler};Om.forEach(t=>{si[t]=(e={},A)=>{const r=Hm(e);return si({...r,type:t},A)}});function u3(t){for(const e in fn)if(Xh(fn,e)){const A=[...fn[e]];for(const r of A)(!t||t===r.props.type)&&r.handler.close()}}function f3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}si.closeAll=u3,si.closeAllByPlacement=f3,si._context=null;const Vs=xN(si,"$message"),kq="",WA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},h3={class:"property-item"},d3={key:0,class:"label"},p3=["innerHTML"],g3={key:4,class:"file-input-container"},m3=["disabled"],v3={key:1},B3=["accept"],w3=["type","min","max","step"],cd=WA({__name:"PropertyItem",props:{label:String,prop:String,modelValue:[String,Number,Boolean],type:{type:String,default:"text"},options:{type:Array,default:()=>[]},min:Number,max:Number,step:Number,accept:String,desc:String,multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change","rotationChange"],setup(t,{emit:e}){const A=t,r=e,n=f.ref(null),a=f.ref(!1),i=f.ref(null),o=f.ref(null),s=f.inject("config",{}),l=f.inject("propertyModel",null),u=f.inject("propertyOptions",null),d=(T="")=>{var I,k;return((k=(I=A.options)==null?void 0:I.find(U=>(U==null?void 0:U.value)==T))==null?void 0:k.value)??" "},g=f.computed({get:()=>{const T=A.modelValue;if(A.type==="select"){if(!A.multiple)return d(T);if(typeof T=="string"){let I=d(T);return I=I&&I.trim()?[I]:[],I}return Array.isArray(T)?T.map(k=>d(k)):[]}return A.prop==="LetterSpacing"?T??0:T},set:T=>{A.type==="select"&&A.multiple?Array.isArray(T)&&T.length===1?r("update:modelValue",T[0]):Array.isArray(T)&&T.length>1?r("update:modelValue",T):r("update:modelValue",""):r("update:modelValue",T)}}),h=T=>{r("change",T),A.label==="旋转角度"&&typeof T=="number"&&r("rotationChange",T)};let y=null,w=null;function b(T,I,k){if((k!==w||!y)&&(y=new Map,k&&k.length>0&&k.forEach(U=>{U.value!==void 0&&U.value!==null&&y.set(String(U.value),U.label||"")}),w=k),Array.isArray(T)){if(T.length===0)return[];const U=T.filter(Q=>Q&&Q!==""&&Q!==" ");return U.length===0?[]:U.map(Q=>y.get(String(Q))||"").filter(Q=>Q)}return!T||T===""||T===" "?"":y.get(String(T))||""}let v=null;function C(){!(l!=null&&l.value)||!(u!=null&&u.value)||(v&&clearTimeout(v),v=setTimeout(()=>{var _;const T=l.value,I=T.FieldName,k=T.FieldConnector,U=((_=u.value)==null?void 0:_.fields)||[],E=b(I,k,U),Q=T.FieldLabel;let R=!1;if(Array.isArray(E)&&Array.isArray(Q)?R=E.length!==Q.length||E.some((j,G)=>j!==Q[G]):!Array.isArray(E)&&!Array.isArray(Q)?R=E!==Q:R=!0,R){const j={...T,FieldLabel:E};f.nextTick(()=>{l.value=j})}},0))}A.prop==="FieldName"&&(f.watch(()=>{var k;const T=l==null?void 0:l.value,I=(k=u==null?void 0:u.value)==null?void 0:k.fields;return{fieldName:T==null?void 0:T.FieldName,fieldConnector:T==null?void 0:T.FieldConnector,fieldsRef:I,fieldsLength:I==null?void 0:I.length}},(T,I)=>{var U;const k=(U=l==null?void 0:l.value)==null?void 0:U.FieldName;if(k&&k!==""&&k!==" "){const E=Array.isArray(k);if(I&&T.fieldName===I.fieldName&&T.fieldsRef===I.fieldsRef&&T.fieldsLength===I.fieldsLength&&T.fieldConnector!==I.fieldConnector&&!E)return;(!E||k.length>0)&&C()}},{immediate:!0}),f.onUnmounted(()=>{v&&(clearTimeout(v),v=null)}));const N=f.computed({get:()=>g.value?typeof g.value=="object"&&g.value.fileSrc?g.value.fileSrc.startsWith("http://")||g.value.fileSrc.startsWith("https://")?g.value.fileSrc:g.value.fileSrc.startsWith("data:")?g.value.fileName||"已选择的图片":g.value.fileName||g.value.fileSrc:typeof g.value=="string"&&g.value.startsWith("data:")?"已选择的图片":g.value:"",set:T=>{g.value=T}}),S=()=>{n.value&&!a.value&&n.value.click()},L=T=>{const I=T.target.value.trim();I?I.startsWith("http://")||I.startsWith("https://")||I.startsWith("data:")?g.value=I:I.startsWith("data:")||(g.value=I):g.value=""},H=async T=>{var E;const I=T.target.files[0];if(!I)return;if(A.accept&&!I.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const k=(E=s==null?void 0:s.image)==null?void 0:E.request;if(!k||typeof k!="function"){alert("请添加正确的图片上传配置");return}o.value=I;let U=null;try{a.value=!0,U=k(I),i.value=U;const Q=await U;if(i.value===U&&o.value===I)if(Q&&Q.success!==!1){let _=Q.url||Q.data||Q;try{const G=await O(I);G&&(_=G)}catch{}const j={fileName:I.name,fileSrc:_,uploadResult:Q};r("update:modelValue",j),r("change",T),Vs.success("图片上传成功")}else throw new Error((Q==null?void 0:Q.message)||"上传失败")}catch(Q){i.value===U&&o.value===I&&(n.value&&(n.value.value=""),Vs.error(Q.message||"上传失败,请重试"))}finally{i.value===U&&(a.value=!1,i.value=null,o.value=null)}},O=T=>new Promise((I,k)=>{const E=T.size>5242880;if(T.type.startsWith("image/"))if(E){const Q=new Image,R=document.createElement("canvas"),_=R.getContext("2d"),j=setTimeout(()=>{k(new Error("转换超时"))},8e3);Q.onload=()=>{clearTimeout(j);try{let{width:z,height:Y}=Q;if(z>1920||Y>1920){const x=Math.min(1920/z,1920/Y);z=Math.floor(z*x),Y=Math.floor(Y*x)}R.width=z,R.height=Y,_.drawImage(Q,0,0,z,Y);const ae=R.toDataURL("image/jpeg",.8);I(ae)}catch(X){k(X)}finally{URL.revokeObjectURL(Q.src)}},Q.onerror=()=>{clearTimeout(j),k(new Error("图片加载失败"))};const G=URL.createObjectURL(T);Q.src=G}else{const Q=new FileReader,R=setTimeout(()=>{k(new Error("转换超时"))},5e3);Q.onload=_=>{clearTimeout(R),I(_.target.result)},Q.onerror=()=>{clearTimeout(R),k(new Error("文件读取失败"))},Q.readAsDataURL(T)}else{const Q=new FileReader,R=setTimeout(()=>{k(new Error("转换超时"))},5e3);Q.onload=_=>{clearTimeout(R),I(_.target.result)},Q.onerror=()=>{clearTimeout(R),k(new Error("文件读取失败"))},Q.readAsDataURL(T)}});return f.onUnmounted(()=>{i.value=null,o.value=null}),(T,I)=>{const k=f.resolveComponent("el-icon-question-filled"),U=f.resolveComponent("el-icon"),E=f.resolveComponent("el-tooltip"),Q=f.resolveComponent("el-option"),R=f.resolveComponent("el-select"),_=f.resolveComponent("el-icon-loading");return f.openBlock(),f.createElementBlock("div",h3,[t.label?(f.openBlock(),f.createElementBlock("label",d3,[f.createTextVNode(f.toDisplayString(t.label)+" ",1),t.desc?(f.openBlock(),f.createBlock(E,{key:0,placement:"top","show-arrow":!0},{content:f.withCtx(()=>[f.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,p3)]),default:f.withCtx(()=>[f.createVNode(U,{class:"help-icon"},{default:f.withCtx(()=>[f.createVNode(k)]),_:1})]),_:1})):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0),t.type==="select"?(f.openBlock(),f.createBlock(R,{key:1,modelValue:g.value,"onUpdate:modelValue":I[0]||(I[0]=j=>g.value=j),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",filterable:"",onChange:h},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,j=>(f.openBlock(),f.createBlock(Q,{key:j.value,label:j.label,value:j.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:2,"onUpdate:modelValue":I[1]||(I[1]=j=>g.value=j),type:"color"},null,512)),[[f.vModelText,g.value]]):t.type==="checkbox"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:3,"onUpdate:modelValue":I[2]||(I[2]=j=>g.value=j),type:"checkbox"},null,512)),[[f.vModelCheckbox,g.value]]):t.type==="file"?(f.openBlock(),f.createElementBlock("div",g3,[f.withDirectives(f.createElementVNode("input",{type:"text","onUpdate:modelValue":I[3]||(I[3]=j=>N.value=j),placeholder:"请选择图片",class:"file-url-input",onInput:L,disabled:""},null,544),[[f.vModelText,N.value]]),f.createElementVNode("button",{type:"button",onClick:S,class:"file-select-btn",disabled:a.value},[a.value?(f.openBlock(),f.createBlock(U,{key:0,class:"is-loading"},{default:f.withCtx(()=>[f.createVNode(_)]),_:1})):(f.openBlock(),f.createElementBlock("span",v3,f.toDisplayString(a.value?"上传中...":"选择"),1))],8,m3),f.createElementVNode("input",{type:"file",accept:t.accept,onChange:H,ref_key:"fileInput",ref:n,class:"file-input"},null,40,B3)])):f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:5,"onUpdate:modelValue":I[4]||(I[4]=j=>g.value=j),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:I[5]||(I[5]=f.withModifiers(()=>{},["prevent"]))},null,40,w3)),[[f.vModelDynamic,g.value]])])}}},[["__scopeId","data-v-1d60731e"]]),Dq="",y3={class:"property-layout-container"},b3={key:0,class:"property-item-wrapper full-width"},C3={key:1,class:"property-item-wrapper half-width"},E3={key:2,class:"property-item-wrapper default-width"},no=WA({__name:"BasePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},panelType:{type:String,default:"base",validator:t=>["text","barcode","qrcode","image","rectangle","line"].includes(t)},options:{type:Object,default:()=>({})}},emits:["update:modelValue","rotationChange"],setup(t,{emit:e}){const A=t,r=e,{propsConfig:n,panelType:a}=f.toRefs(A),i=f.computed(()=>`${a.value}-property-panel`),o=f.ref([]);function s(U,E,Q=[],R="",_="FieldName"){const j=[];if(Array.isArray(E))return E.forEach(G=>{const X=s(U,G,Q,R,_);j.push(...X)}),j;if(U&&U.propertyPanel){const G=U.propertyPanel;let X=[];Array.isArray(G)?X=G.map(z=>({...z,_dynamic:!0,_path:R||"FieldName",_parentProp:_})):typeof G=="object"&&G!==null&&(G.prop?X=[{...G,_dynamic:!0,_path:R||"FieldName",_parentProp:_}]:X=Object.keys(G).map(z=>({prop:z,...G[z],_dynamic:!0,_path:R||"FieldName",_parentProp:_}))),j.push(...X)}return j}function l(U,E,Q=[],R=""){const _=[];if(!E||E===" "||!Q||Q.length===0)return _;const j=Q.find(G=>G.value==E);if(j&&j.propertyPanel){const G=j.propertyPanel;let X=[];Array.isArray(G)?X=G.map(z=>({...z,_dynamic:!0,_path:`${R||U}.${E}`,_parentProp:U})):typeof G=="object"&&G!==null&&(G.prop?X=[{...G,_dynamic:!0,_path:`${R||U}.${E}`,_parentProp:U}]:X=Object.keys(G).map(z=>({prop:z,...G[z],_dynamic:!0,_path:`${R||U}.${E}`,_parentProp:U}))),_.push(...X)}return _}function u(U){var E;return U.options&&Array.isArray(U.options)?U.options:U.optionsKey&&((E=A.options)!=null&&E[U.optionsKey])?A.options[U.optionsKey]||[]:[]}function d(U,E=[],Q=new Set,R=0){var X;if(R>10)return[];const _=[],j=new Set;if(R===0){const z=U.FieldName;if(z){const Y=((X=A.options)==null?void 0:X.fields)||[];if(Array.isArray(z))z.forEach(ae=>{const x=Y.find(D=>D.value==ae);if(x){const D=`FieldName.${ae}`;Q.has(D)||(Q.add(D),s(x,ae,Y,D).forEach(q=>{q.prop&&!j.has(q.prop)&&(j.add(q.prop),_.push(q))}))}});else{const ae=Y.find(x=>x.value==z);if(ae){const x=`FieldName.${z}`;Q.has(x)||(Q.add(x),s(ae,z,Y,x).forEach(K=>{K.prop&&!j.has(K.prop)&&(j.add(K.prop),_.push(K))}))}}}}return E==null||E.forEach(z=>{if(z.type==="select"){const Y=U[z.prop];if(Y!=null&&Y!==""&&Y!==" "){const ae=u(z);if(ae&&ae.length>0){const x=z.prop,D=`${x}.${Y}`;if(!Q.has(D)){Q.add(D);const K=l(z.prop,Y,ae,x);K.length>0&&(K.forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}),d(U,[...E,..._],Q,R+1).forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}))}}}}}),[..._].forEach(z=>{if(z.type==="select"){const Y=U[z.prop];if(Y!=null&&Y!==""&&Y!==" "){const ae=u(z);if(ae&&ae.length>0){const x=z._path||z.prop,D=`${x}.${Y}`;if(!Q.has(D)){Q.add(D);const K=l(z.prop,Y,ae,x);K.length>0&&(K.forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}),d(U,[...E,..._],Q,R+1).forEach($=>{$.prop&&!j.has($.prop)&&(j.add($.prop),_.push($))}))}}}}}),_}const g=f.computed(()=>{const U=n.value.propertyPanel;let E=[];return U&&typeof U=="object"&&!Array.isArray(U)&&(E=Object.keys(U).map(Q=>({prop:Q,...U[Q]})).filter(Q=>!Q.hide)),Array.isArray(U)&&(E=U.filter(Q=>!Q.hide)||[]),E}),h=f.ref([]),y=f.ref(""),w=f.ref(null),b=f.computed(()=>{const U=A.modelValue||{};let E="";if(U.FieldName!==void 0){const R=Array.isArray(U.FieldName)?U.FieldName.join(","):String(U.FieldName);E+=`FieldName:${R}|`}return g.value.filter(R=>R.type==="select").map(R=>R.prop).forEach(R=>{U[R]!==void 0&&(E+=`${R}:${U[R]}|`)}),o.value.length>0&&o.value.filter(_=>_.type==="select").map(_=>_.prop).forEach(_=>{U[_]!==void 0&&(E+=`${_}:${U[_]}|`)}),y.value===E&&w.value?w.value:(y.value=E,w.value=E,E)});f.watch(()=>[b.value,g.value],(U,E)=>{const[Q,R]=U||[b.value,g.value],[_]=E||[void 0];if(_&&Q===_)return;const j=A.modelValue||{},G=A.modelValue||{},z=d(j,R,new Set),Y=new Set(z.map($=>$.prop).filter(Boolean)),ae=new Set(h.value.map($=>$.prop).filter(Boolean)),x=[];ae.forEach($=>{Y.has($)||x.push($)});const D=[];z.forEach($=>{$.prop&&"default"in $&&j[$.prop]===void 0&&D.push({prop:$.prop,defaultValue:$.default})});const K={...j};let q=!1;x.length>0&&G&&x.forEach($=>{K[$]!==void 0&&(delete K[$],q=!0)}),D.length>0&&D.forEach(({prop:$,defaultValue:ne})=>{K[$]=ne,q=!0}),q&&f.nextTick(()=>{r("update:modelValue",K)}),h.value=z,o.value=z},{deep:!0,immediate:!0});const v=f.ref(null),C=f.ref({baseItemsHash:"",dynamicItemsHash:""});function N(U,E){return U.length===0?"":U.map(E).join("|")}const S=f.computed(()=>{var q;const U=N(g.value,$=>$.prop||""),E=N(o.value,$=>`${$.prop||""}:${$._parentProp||""}`);if(v.value&&C.value.baseItemsHash===U&&C.value.dynamicItemsHash===E)return v.value;const Q=g.value,R=Q.length,_=o.value.length,j=new Array(R+_);for(let $=0;$<R;$++)j[$]=Q[$];let G=R;if(_===0)return v.value=j,C.value={baseItemsHash:U,dynamicItemsHash:E},j;const X=[],z=[];let Y=[];const ae=new Set,x=new Map;for(let $=0;$<R;$++){const ne=Q[$].prop;ne&&(ae.add(ne),x.set(ne,$))}for(let $=0;$<_;$++){const ne=o.value[$],le=ne._parentProp;le&&ae.has(le)?z.push(ne):Y.push(ne)}z.length>0&&X.push(z);let D=z,K=[];for(;Y.length>0&&D.length>0;){const $=new Map;for(let le=0;le<D.length;le++){const de=D[le].prop;de&&$.set(de,!0)}const ne=[];for(let le=0;le<Y.length;le++){const de=Y[le];de._parentProp&&$.has(de._parentProp)?K.push(de):ne.push(de)}if(K.length>0)X.push(K),D=K,K=[],Y=ne;else break}for(let $=0;$<X.length;$++){const ne=X[$],le=new Map;for(let Ee=0;Ee<G;Ee++){const Oe=(q=j[Ee])==null?void 0:q.prop;Oe&&le.set(Oe,Ee)}const de=new Map;for(let Ee=0;Ee<ne.length;Ee++){const Oe=ne[Ee],Fe=Oe._parentProp;Fe&&le.has(Fe)&&(de.has(Fe)||de.set(Fe,[]),de.get(Fe).push(Oe))}const Te=[];de.forEach((Ee,Oe)=>{const Fe=le.get(Oe);let ke=Fe;for(let ge=Fe+1;ge<G;ge++){const Ae=j[ge];if(Ae._dynamic&&Ae._parentProp===Oe)ke=ge;else if(!Ae._dynamic)break}Te.push({index:ke+1,items:Ee})}),Te.sort((Ee,Oe)=>Oe.index-Ee.index);for(let Ee=0;Ee<Te.length;Ee++){const{index:Oe,items:Fe}=Te[Ee];for(let ke=Fe.length-1;ke>=0;ke--)j.splice(Oe,0,Fe[ke]),G++}}if(Y.length>0)for(let $=0;$<Y.length;$++)j[G++]=Y[$];return j.length>G&&(j.length=G),v.value=j,C.value={baseItemsHash:U,dynamicItemsHash:E},j}),L=f.computed({get:()=>A.modelValue,set:U=>r("update:modelValue",U)}),H=f.computed(()=>S.value.filter(U=>!U.showIf||L.value[U.showIf])),O=U=>{var Q,R;if(U.options)return U.options||[];if(U.optionsKey&&((Q=A.options)!=null&&Q[U.optionsKey])){const _=JSON.parse(JSON.stringify(A.options[U.optionsKey]||[]))||[];return U!=null&&U.multiple||_.unshift({label:"无",value:" "}),_}const E=JSON.parse(JSON.stringify(((R=A.options)==null?void 0:R[U==null?void 0:U.optionsKey])||[]))||[];return U!=null&&U.multiple||E.unshift({label:"无",value:" "}),E},T=U=>U.layout?U.layout:["text","file","textarea"].includes(U.type)?"full":"half",I=U=>{r("rotationChange",U)},k=f.ref(!1);return f.watch(()=>{if(a.value!=="text")return null;const U=L.value;return{alignment:U==null?void 0:U.Alignment,textWrap:U==null?void 0:U.TextWrap}},({alignment:U,textWrap:E},Q)=>{if(k.value||!Q)return;const R={...L.value};let _=!1;U===4&&Q.alignment!==4&&E===1&&(R.TextWrap=2,_=!0),E===1&&Q.textWrap!==1&&U===4&&(R.Alignment=2,_=!0),_&&(k.value=!0,f.nextTick(()=>{r("update:modelValue",R),f.nextTick(()=>{k.value=!1})}))},{deep:!0}),f.provide("config",A.propsConfig),f.provide("propertyModel",L),f.provide("propertyOptions",f.computed(()=>A.options)),(U,E)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(i.value)},[f.createElementVNode("div",y3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(H.value,Q=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:Q.prop},[T(Q)==="full"?(f.openBlock(),f.createElementBlock("div",b3,[f.createVNode(cd,{label:Q.label,prop:Q.prop,modelValue:L.value[Q.prop],"onUpdate:modelValue":R=>L.value[Q.prop]=R,type:Q.type,options:O(Q),min:Q.min,max:Q.max,step:Q.step,accept:Q.accept,desc:Q.desc,multiple:Q.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):T(Q)==="half"?(f.openBlock(),f.createElementBlock("div",C3,[f.createVNode(cd,{label:Q.label,prop:Q.prop,modelValue:L.value[Q.prop],"onUpdate:modelValue":R=>L.value[Q.prop]=R,type:Q.type,options:O(Q),min:Q.min,max:Q.max,step:Q.step,accept:Q.accept,desc:Q.desc,multiple:Q.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(f.openBlock(),f.createElementBlock("div",E3,[f.createVNode(cd,{label:Q.label,prop:Q.prop,modelValue:L.value[Q.prop],"onUpdate:modelValue":R=>L.value[Q.prop]=R,type:Q.type,options:O(Q),min:Q.min,max:Q.max,step:Q.step,accept:Q.accept,desc:Q.desc,multiple:Q.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-a1684347"]]),U3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,options:t.options,"panel-type":"text","onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},F3={},N3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function S3(t,e){return f.openBlock(),f.createElementBlock("svg",N3,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"2603"},null,-1),f.createElementVNode("path",{d:"M798.88 96H257.12C177.088 96 112 161.088 112 241.12v541.76C112 862.928 177.088 928 257.12 928h541.76c80.032 0 145.12-65.088 145.12-145.12V241.12C944 161.088 878.912 96 798.88 96z m87.104 686.88a87.2 87.2 0 0 1-87.104 87.104H257.12a87.2 87.2 0 0 1-87.104-87.104V241.12a87.2 87.2 0 0 1 87.104-87.104h541.76a87.2 87.2 0 0 1 87.104 87.104v541.76z","p-id":"2604"},null,-1),f.createElementVNode("path",{d:"M686.304 710.336H369.696a29.04 29.04 0 0 0-29.216 28.832c0 15.904 13.104 28.832 29.216 28.832h316.608a29.04 29.04 0 0 0 29.2-28.832c0-15.904-13.088-28.832-29.2-28.832zM722.784 256H333.216A29.04 29.04 0 0 0 304 284.832v76.96c0 15.904 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.216-28.832v-48.048h136.384V640.64c0 15.92 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.2-28.832V313.76h136.384v48.048c0 15.904 13.088 28.832 29.216 28.832A29.04 29.04 0 0 0 752 361.792v-76.96c0.08-15.904-13.008-28.832-29.2-28.832z","p-id":"2605"},null,-1)])])}const Q3=WA(F3,[["render",S3]]);var ud={},Fc={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});function x3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){x3(this,t),this.data=e,this.text=A.text||e,this.options=A};vr.default=T3,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.CODE39=void 0;var R3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),I3=vr,V3=M3(I3);function M3(t){return t&&t.__esModule?t:{default:t}}function L3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function k3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var H3=function(t){k3(e,t);function e(A,r){return L3(this,e),A=A.toUpperCase(),r.mod43&&(A+=W3(_3(A))),O3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return R3(e,[{key:"encode",value:function(){for(var r=fd("*"),n=0;n<this.data.length;n++)r+=fd(this.data[n])+"0";return r+=fd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(V3.default),Dm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],D3=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function fd(t){return P3(Pm(t))}function P3(t){return D3[t].toString(2)}function W3(t){return Dm[t]}function Pm(t){return Dm.indexOf(t)}function _3(t){for(var e=0,A=0;A<t.length;A++)e+=Pm(t[A]);return e=e%43,e}Fc.CODE39=H3;var In={},hd={},ao={},iA={};Object.defineProperty(iA,"__esModule",{value:!0});var Ms;function dd(t,e,A){return e in t?Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[e]=A,t}var Wm=iA.SET_A=0,_m=iA.SET_B=1,Zm=iA.SET_C=2;iA.SHIFT=98;var Z3=iA.START_A=103,j3=iA.START_B=104,J3=iA.START_C=105;iA.MODULO=103,iA.STOP=106,iA.FNC1=207,iA.SET_BY_CODE=(Ms={},dd(Ms,Z3,Wm),dd(Ms,j3,_m),dd(Ms,J3,Zm),Ms),iA.SWAP={101:Wm,100:_m,99:Zm},iA.A_START_CHAR=String.fromCharCode(208),iA.B_START_CHAR=String.fromCharCode(209),iA.C_START_CHAR=String.fromCharCode(210),iA.A_CHARS="[\0-_È-Ï]",iA.B_CHARS="[ -È-Ï]",iA.C_CHARS="(Ï*[0-9]{2}Ï*)",iA.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(ao,"__esModule",{value:!0});var K3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),G3=vr,z3=Y3(G3),kr=iA;function Y3(t){return t&&t.__esModule?t:{default:t}}function X3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function $3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var eS=function(t){$3(e,t);function e(A,r){X3(this,e);var n=q3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.substring(1),r));return n.bytes=A.split("").map(function(a){return a.charCodeAt(0)}),n}return K3(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,n=r.shift()-105,a=kr.SET_BY_CODE[n];if(a===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(kr.FNC1);var i=e.next(r,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+i.result+e.getBar((i.checksum+n)%kr.MODULO)+e.getBar(kr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return kr.BARS[r]?kr.BARS[r].toString():""}},{key:"correctIndex",value:function(r,n){if(n===kr.SET_A){var a=r.shift();return a<32?a+64:a-32}else return n===kr.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,n,a){if(!r.length)return{result:"",checksum:0};var i=void 0,o=void 0;if(r[0]>=200){o=r.shift()-105;var s=kr.SWAP[o];s!==void 0?i=e.next(r,n+1,s):((a===kr.SET_A||a===kr.SET_B)&&o===kr.SHIFT&&(r[0]=a===kr.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),i=e.next(r,n+1,a))}else o=e.correctIndex(r,a),i=e.next(r,n+1,a);var l=e.getBar(o),u=o*n;return{result:l+i.result,checksum:u+i.checksum}}}]),e}(z3.default);ao.default=eS;var pd={};Object.defineProperty(pd,"__esModule",{value:!0});var va=iA,jm=function(e){return e.match(new RegExp("^"+va.A_CHARS+"*"))[0].length},Jm=function(e){return e.match(new RegExp("^"+va.B_CHARS+"*"))[0].length},Km=function(e){return e.match(new RegExp("^"+va.C_CHARS+"*"))[0]};function gd(t,e){var A=e?va.A_CHARS:va.B_CHARS,r=t.match(new RegExp("^("+A+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Gm(t.substring(r[1].length));var n=t.match(new RegExp("^"+A+"+"))[0];return n.length===t.length?t:n+String.fromCharCode(e?205:206)+gd(t.substring(n.length),!e)}function Gm(t){var e=Km(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=jm(t)>=Jm(t);return e+String.fromCharCode(r?206:205)+gd(t,r)}pd.default=function(t){var e=void 0,A=Km(t).length;if(A>=2)e=va.C_START_CHAR+Gm(t);else{var r=jm(t)>Jm(t);e=(r?va.A_START_CHAR:va.B_START_CHAR)+gd(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,a){return String.fromCharCode(203)+a})},Object.defineProperty(hd,"__esModule",{value:!0});var tS=ao,AS=zm(tS),rS=pd,nS=zm(rS);function zm(t){return t&&t.__esModule?t:{default:t}}function aS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function md(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function iS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var oS=function(t){iS(e,t);function e(A,r){if(aS(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,nS.default)(A),r));else var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return md(n)}return e}(AS.default);hd.default=oS;var vd={};Object.defineProperty(vd,"__esModule",{value:!0});var sS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),lS=ao,cS=uS(lS),Ym=iA;function uS(t){return t&&t.__esModule?t:{default:t}}function fS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var pS=function(t){dS(e,t);function e(A,r){return fS(this,e),hS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.A_START_CHAR+A,r))}return sS(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.A_CHARS+"+$").test(this.data)}}]),e}(cS.default);vd.default=pS;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var gS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),mS=ao,vS=BS(mS),Xm=iA;function BS(t){return t&&t.__esModule?t:{default:t}}function wS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function bS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var CS=function(t){bS(e,t);function e(A,r){return wS(this,e),yS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.B_START_CHAR+A,r))}return gS(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.B_CHARS+"+$").test(this.data)}}]),e}(vS.default);Bd.default=CS;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var ES=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),US=ao,FS=NS(US),qm=iA;function NS(t){return t&&t.__esModule?t:{default:t}}function SS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function xS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var TS=function(t){xS(e,t);function e(A,r){return SS(this,e),QS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,qm.C_START_CHAR+A,r))}return ES(e,[{key:"valid",value:function(){return new RegExp("^"+qm.C_CHARS+"+$").test(this.data)}}]),e}(FS.default);wd.default=TS,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var RS=hd,IS=Nc(RS),VS=vd,MS=Nc(VS),LS=Bd,OS=Nc(LS),kS=wd,HS=Nc(kS);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=IS.default,In.CODE128A=MS.default,In.CODE128B=OS.default,In.CODE128C=HS.default;var Sr={},yd={},zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.SIDE_BIN="101",zr.MIDDLE_BIN="01010",zr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},zr.EAN2_STRUCTURE=["LL","LG","GL","GG"],zr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],zr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Sc={},li={};Object.defineProperty(li,"__esModule",{value:!0});var DS=zr,PS=function(e,A,r){var n=e.split("").map(function(i,o){return DS.BINARIES[A[o]]}).map(function(i,o){return i?i[e[o]]:""});if(r){var a=e.length-1;n=n.map(function(i,o){return o<a?i+r:i})}return n.join("")};li.default=PS,Object.defineProperty(Sc,"__esModule",{value:!0});var WS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),io=zr,_S=li,$m=ev(_S),ZS=vr,jS=ev(ZS);function ev(t){return t&&t.__esModule?t:{default:t}}function JS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function GS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zS=function(t){GS(e,t);function e(A,r){JS(this,e);var n=KS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WS(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,n){return this.text.substr(r,n)}},{key:"leftEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:io.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:io.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:io.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[io.SIDE_BIN,this.leftEncode(),io.MIDDLE_BIN,this.rightEncode(),io.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(jS.default);Sc.default=zS,Object.defineProperty(yd,"__esModule",{value:!0});var YS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Ls=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},XS=zr,qS=Sc,$S=eQ(qS);function eQ(t){return t&&t.__esModule?t:{default:t}}function tQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var tv=function(e){var A=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*3:r+n},0);return(10-A%10)%10},nQ=function(t){rQ(e,t);function e(A,r){tQ(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=tv(A));var n=AQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return YS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===tv(this.data)}},{key:"leftText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),n=XS.EAN13_STRUCTURE[this.data[0]];return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,n)}},{key:"rightText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}($S.default);yd.default=nQ;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});var aQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Qc=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},iQ=Sc,oQ=sQ(iQ);function sQ(t){return t&&t.__esModule?t:{default:t}}function lQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Av=function(e){var A=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n:r+n*3},0);return(10-A%10)%10},fQ=function(t){uQ(e,t);function e(A,r){return lQ(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=Av(A)),cQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return aQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Av(this.data)}},{key:"leftText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(oQ.default);bd.default=fQ;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var hQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),dQ=zr,pQ=li,gQ=rv(pQ),mQ=vr,vQ=rv(mQ);function rv(t){return t&&t.__esModule?t:{default:t}}function BQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bQ=function(e){var A=e.split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*9:r+n*3},0);return A%10},CQ=function(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return hQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=dQ.EAN5_STRUCTURE[bQ(this.data)];return{data:"1011"+(0,gQ.default)(this.data,r,"01"),text:this.text}}}]),e}(vQ.default);Cd.default=CQ;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var EQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),UQ=zr,FQ=li,NQ=nv(FQ),SQ=vr,QQ=nv(SQ);function nv(t){return t&&t.__esModule?t:{default:t}}function xQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function RQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var IQ=function(t){RQ(e,t);function e(A,r){return xQ(this,e),TQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return EQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=UQ.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,NQ.default)(this.data,r,"01"),text:this.text}}}]),e}(QQ.default);Ed.default=IQ;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var VQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();Os.checksum=Ud;var MQ=li,oo=av(MQ),LQ=vr,OQ=av(LQ);function av(t){return t&&t.__esModule?t:{default:t}}function kQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function DQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var PQ=function(t){DQ(e,t);function e(A,r){kQ(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Ud(A));var n=HQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return VQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Ud(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,oo.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,oo.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,oo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,oo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(OQ.default);function Ud(t){var e=0,A;for(A=1;A<11;A+=2)e+=parseInt(t[A]);for(A=0;A<11;A+=2)e+=parseInt(t[A])*3;return(10-e%10)%10}Os.default=PQ;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var WQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),_Q=li,ZQ=iv(_Q),jQ=vr,JQ=iv(jQ),KQ=Os;function iv(t){return t&&t.__esModule?t:{default:t}}function GQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var YQ=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],XQ=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],qQ=function(t){zQ(e,t);function e(A,r){GQ(this,e);var n=Nd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));if(n.isValid=!1,A.search(/^[0-9]{6}$/)!==-1)n.middleDigits=A,n.upcA=ov(A,"0"),n.text=r.text||""+n.upcA[0]+A+n.upcA[n.upcA.length-1],n.isValid=!0;else if(A.search(/^[01][0-9]{7}$/)!==-1)if(n.middleDigits=A.substring(1,A.length-1),n.upcA=ov(n.middleDigits,A[0]),n.upcA[n.upcA.length-1]===A[A.length-1])n.isValid=!0;else return Nd(n);else return Nd(n);return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WQ(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],n=this.upcA[this.upcA.length-1],a=XQ[parseInt(n)][parseInt(r)];return(0,ZQ.default)(this.middleDigits,a)}}]),e}(JQ.default);function ov(t,e){for(var A=parseInt(t[t.length-1]),r=YQ[A],n="",a=0,i=0;i<r.length;i++){var o=r[i];o==="X"?n+=t[a++]:n+=o}return n=""+e+n,""+n+(0,KQ.checksum)(n)}Fd.default=qQ,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.UPCE=Sr.UPC=Sr.EAN2=Sr.EAN5=Sr.EAN8=Sr.EAN13=void 0;var $Q=yd,ex=so($Q),tx=bd,Ax=so(tx),rx=Cd,nx=so(rx),ax=Ed,ix=so(ax),ox=Os,sx=so(ox),lx=Fd,cx=so(lx);function so(t){return t&&t.__esModule?t:{default:t}}Sr.EAN13=ex.default,Sr.EAN8=Ax.default,Sr.EAN5=nx.default,Sr.EAN2=ix.default,Sr.UPC=sx.default,Sr.UPCE=cx.default;var lo={},xc={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.START_BIN="1010",ks.END_BIN="11101",ks.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(xc,"__esModule",{value:!0});var ux=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Tc=ks,fx=vr,hx=dx(fx);function dx(t){return t&&t.__esModule?t:{default:t}}function px(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vx=function(t){mx(e,t);function e(){return px(this,e),gx(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return ux(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,n=this.data.match(/.{2}/g).map(function(a){return r.encodePair(a)}).join("");return{data:Tc.START_BIN+n+Tc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=Tc.BINARIES[r[1]];return Tc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(hx.default);xc.default=vx;var Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});var Bx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),wx=xc,yx=bx(wx);function bx(t){return t&&t.__esModule?t:{default:t}}function Cx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ex(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ux(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sv=function(e){var A=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,n,a){return r+n*(3-a%2*2)},0);return Math.ceil(A/10)*10-A},Fx=function(t){Ux(e,t);function e(A,r){return Cx(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=sv(A)),Ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Bx(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===sv(this.data)}}]),e}(yx.default);Sd.default=Fx,Object.defineProperty(lo,"__esModule",{value:!0}),lo.ITF14=lo.ITF=void 0;var Nx=xc,Sx=lv(Nx),Qx=Sd,xx=lv(Qx);function lv(t){return t&&t.__esModule?t:{default:t}}lo.ITF=Sx.default,lo.ITF14=xx.default;var Yr={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});var Tx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Rx=vr,Ix=Vx(Rx);function Vx(t){return t&&t.__esModule?t:{default:t}}function Mx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ox(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kx=function(t){Ox(e,t);function e(A,r){return Mx(this,e),Lx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Tx(e,[{key:"encode",value:function(){for(var r="110",n=0;n<this.data.length;n++){var a=parseInt(this.data[n]),i=a.toString(2);i=Hx(i,4-i.length);for(var o=0;o<i.length;o++)r+=i[o]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(Ix.default);function Hx(t,e){for(var A=0;A<e;A++)t="0"+t;return t}ci.default=kx;var Qd={},ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.mod10=Dx,ui.mod11=Px;function Dx(t){for(var e=0,A=0;A<t.length;A++){var r=parseInt(t[A]);(A+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function Px(t){for(var e=0,A=[2,3,4,5,6,7],r=0;r<t.length;r++){var n=parseInt(t[t.length-1-r]);e+=A[r%A.length]*n}return(11-e%11)%11}Object.defineProperty(Qd,"__esModule",{value:!0});var Wx=ci,_x=jx(Wx),Zx=ui;function jx(t){return t&&t.__esModule?t:{default:t}}function Jx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zx=function(t){Gx(e,t);function e(A,r){return Jx(this,e),Kx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,Zx.mod10)(A),r))}return e}(_x.default);Qd.default=zx;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});var Yx=ci,Xx=$x(Yx),qx=ui;function $x(t){return t&&t.__esModule?t:{default:t}}function eT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function AT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var rT=function(t){AT(e,t);function e(A,r){return eT(this,e),tT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,qx.mod11)(A),r))}return e}(Xx.default);xd.default=rT;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var nT=ci,aT=iT(nT),cv=ui;function iT(t){return t&&t.__esModule?t:{default:t}}function oT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function lT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cT=function(t){lT(e,t);function e(A,r){return oT(this,e),A+=(0,cv.mod10)(A),A+=(0,cv.mod10)(A),sT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(aT.default);Td.default=cT;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var uT=ci,fT=hT(uT),uv=ui;function hT(t){return t&&t.__esModule?t:{default:t}}function dT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mT=function(t){gT(e,t);function e(A,r){return dT(this,e),A+=(0,uv.mod11)(A),A+=(0,uv.mod10)(A),pT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(fT.default);Rd.default=mT,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var vT=ci,BT=Hs(vT),wT=Qd,yT=Hs(wT),bT=xd,CT=Hs(bT),ET=Td,UT=Hs(ET),FT=Rd,NT=Hs(FT);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=BT.default,Yr.MSI10=yT.default,Yr.MSI11=CT.default,Yr.MSI1010=UT.default,Yr.MSI1110=NT.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var ST=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),QT=vr,xT=TT(QT);function TT(t){return t&&t.__esModule?t:{default:t}}function RT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function VT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var MT=function(t){VT(e,t);function e(A,r){RT(this,e);var n=IT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return ST(e,[{key:"encode",value:function(){for(var r=this.number,n="";!isNaN(r)&&r!=0;)r%2===0?(n="11100"+n,r=(r-2)/2):(n="100"+n,r=(r-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(xT.default);Rc.pharmacode=MT;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var LT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),OT=vr,kT=HT(OT);function HT(t){return t&&t.__esModule?t:{default:t}}function DT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function WT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _T=function(t){WT(e,t);function e(A,r){DT(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=PT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return LT(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],n=this.getEncodings(),a=0;a<this.data.length;a++)r.push(n[this.data.charAt(a)]),a!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(kT.default);Ic.codabar=_T;var co={},Vc={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Ds.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Ds.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]},Object.defineProperty(Vc,"__esModule",{value:!0});var ZT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Mc=Ds,jT=vr,JT=KT(jT);function KT(t){return t&&t.__esModule?t:{default:t}}function GT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function YT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var XT=function(t){YT(e,t);function e(A,r){return GT(this,e),zT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return ZT(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.data.split("").flatMap(function(o){return Mc.MULTI_SYMBOLS[o]||o}),n=r.map(function(o){return e.getEncoding(o)}).join(""),a=e.checksum(r,20),i=e.checksum(r.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(i)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(r){return Mc.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Mc.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Mc.SYMBOLS.indexOf(r)}},{key:"checksum",value:function(r,n){var a=r.slice().reverse().reduce(function(i,o,s){var l=s%n+1;return i+e.symbolValue(o)*l},0);return e.getSymbol(a%47)}}]),e}(JT.default);Vc.default=XT;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var qT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),$T=Vc,eR=tR($T);function tR(t){return t&&t.__esModule?t:{default:t}}function AR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function nR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aR=function(t){nR(e,t);function e(A,r){return AR(this,e),rR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return qT(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(eR.default);Id.default=aR,Object.defineProperty(co,"__esModule",{value:!0}),co.CODE93FullASCII=co.CODE93=void 0;var iR=Vc,oR=fv(iR),sR=Id,lR=fv(sR);function fv(t){return t&&t.__esModule?t:{default:t}}co.CODE93=oR.default,co.CODE93FullASCII=lR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var cR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),uR=vr,fR=hR(uR);function hR(t){return t&&t.__esModule?t:{default:t}}function dR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mR=function(t){gR(e,t);function e(A,r){return dR(this,e),pR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return cR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(fR.default);Lc.GenericBarcode=mR,Object.defineProperty(ud,"__esModule",{value:!0});var vR=Fc,Oc=In,uo=Sr,hv=lo,Ps=Yr,BR=Rc,wR=Ic,dv=co,yR=Lc;ud.default={CODE39:vR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:uo.EAN13,EAN8:uo.EAN8,EAN5:uo.EAN5,EAN2:uo.EAN2,UPC:uo.UPC,UPCE:uo.UPCE,ITF14:hv.ITF14,ITF:hv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:BR.pharmacode,codabar:wR.codabar,CODE93:dv.CODE93,CODE93FullASCII:dv.CODE93FullASCII,GenericBarcode:yR.GenericBarcode};var fo={};Object.defineProperty(fo,"__esModule",{value:!0});var bR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t};fo.default=function(t,e){return bR({},t,e)};var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=CR;function CR(t){var e=[];function A(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)A(r[n]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return A(t),e}var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=ER;function ER(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Ld={},Od={},kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=UR;function UR(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var A in e)e.hasOwnProperty(A)&&(A=e[A],typeof t[A]=="string"&&(t[A]=parseInt(t[A],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var FR={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Hc.default=FR,Object.defineProperty(Od,"__esModule",{value:!0});var NR=kc,SR=gv(NR),QR=Hc,pv=gv(QR);function gv(t){return t&&t.__esModule?t:{default:t}}function xR(t){var e={};for(var A in pv.default)pv.default.hasOwnProperty(A)&&(t.hasAttribute("jsbarcode-"+A.toLowerCase())&&(e[A]=t.getAttribute("jsbarcode-"+A.toLowerCase())),t.hasAttribute("data-"+A.toLowerCase())&&(e[A]=t.getAttribute("data-"+A.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,SR.default)(e),e}Od.default=xR;var kd={},Hd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=fo,RR=IR(TR);function IR(t){return t&&t.__esModule?t:{default:t}}function mv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function vv(t,e,A){if(A.displayValue&&e<t){if(A.textAlign=="center")return Math.floor((t-e)/2);if(A.textAlign=="left")return 0;if(A.textAlign=="right")return Math.floor(t-e)}return 0}function VR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,RR.default)(e,n.options),i;a.displayValue?i=OR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=mv(n,a),n.barcodePadding=vv(i,o,a)}}function MR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function LR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function OR(t,e,A){var r;if(A)r=A;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var n=r.measureText(t);if(!n)return 0;var a=n.width;return a}Hr.getMaximumHeightOfEncodings=LR,Hr.getEncodingHeight=mv,Hr.getBarcodePadding=vv,Hr.calculateEncodingAttributes=VR,Hr.getTotalWidthOfEncodings=MR,Object.defineProperty(Hd,"__esModule",{value:!0});var kR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),HR=fo,DR=PR(HR),Dd=Hr;function PR(t){return t&&t.__esModule?t:{default:t}}function WR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _R=function(){function t(e,A,r){WR(this,t),this.canvas=e,this.encodings=A,this.options=r}return kR(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var A=0;A<this.encodings.length;A++){var r=(0,DR.default)(this.options,this.encodings[A].options);this.drawCanvasBarcode(r,this.encodings[A]),this.drawCanvasText(r,this.encodings[A]),this.moveCanvasDrawing(this.encodings[A])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var A=this.canvas.getContext("2d");A.save(),(0,Dd.calculateEncodingAttributes)(this.encodings,this.options,A);var r=(0,Dd.getTotalWidthOfEncodings)(this.encodings),n=(0,Dd.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,A.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(A.fillStyle=this.options.background,A.fillRect(0,0,this.canvas.width,this.canvas.height)),A.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(A,r){var n=this.canvas.getContext("2d"),a=r.data,i;A.textPosition=="top"?i=A.marginTop+A.fontSize+A.textMargin:i=A.marginTop,n.fillStyle=A.lineColor;for(var o=0;o<a.length;o++){var s=o*A.width+r.barcodePadding;a[o]==="1"?n.fillRect(s,i,A.width,A.height):a[o]&&n.fillRect(s,i,A.width,A.height*a[o])}}},{key:"drawCanvasText",value:function(A,r){var n=this.canvas.getContext("2d"),a=A.fontOptions+" "+A.fontSize+"px "+A.font;if(A.displayValue){var i,o;A.textPosition=="top"?o=A.marginTop+A.fontSize-A.textMargin:o=A.height+A.textMargin+A.marginTop+A.fontSize,n.font=a,A.textAlign=="left"||r.barcodePadding>0?(i=0,n.textAlign="left"):A.textAlign=="right"?(i=r.width-1,n.textAlign="right"):(i=r.width/2,n.textAlign="center"),n.fillText(r.text,i,o)}}},{key:"moveCanvasDrawing",value:function(A){var r=this.canvas.getContext("2d");r.translate(A.width,0)}},{key:"restoreCanvas",value:function(){var A=this.canvas.getContext("2d");A.restore()}}]),t}();Hd.default=_R;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var ZR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),jR=fo,JR=KR(jR),Wd=Hr;function KR(t){return t&&t.__esModule?t:{default:t}}function GR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",zR=function(){function t(e,A,r){GR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return ZR(t,[{key:"render",value:function(){var A=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var n=this.encodings[r],a=(0,JR.default)(this.options,n.options),i=this.createGroup(A,a.marginTop,this.svg);this.setGroupOptions(i,a),this.drawSvgBarcode(i,a,n),this.drawSVGText(i,a,n),A+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,Wd.calculateEncodingAttributes)(this.encodings,this.options);var A=(0,Wd.getTotalWidthOfEncodings)(this.encodings),r=(0,Wd.getMaximumHeightOfEncodings)(this.encodings),n=A+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,r),this.options.background&&this.drawRect(0,0,n,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(A,r,n){var a=n.data,i;r.textPosition=="top"?i=r.fontSize+r.textMargin:i=0;for(var o=0,s=0,l=0;l<a.length;l++)s=l*r.width+n.barcodePadding,a[l]==="1"?o++:o>0&&(this.drawRect(s-r.width*o,i,r.width*o,r.height,A),o=0);o>0&&this.drawRect(s-r.width*(o-1),i,r.width*o,r.height,A)}},{key:"drawSVGText",value:function(A,r,n){var a=this.document.createElementNS(Dc,"text");if(r.displayValue){var i,o;a.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?o=r.fontSize-r.textMargin:o=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||n.barcodePadding>0?(i=0,a.setAttribute("text-anchor","start")):r.textAlign=="right"?(i=n.width-1,a.setAttribute("text-anchor","end")):(i=n.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",i),a.setAttribute("y",o),a.appendChild(this.document.createTextNode(n.text)),A.appendChild(a)}}},{key:"setSvgAttributes",value:function(A,r){var n=this.svg;n.setAttribute("width",A+"px"),n.setAttribute("height",r+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+A+" "+r),n.setAttribute("xmlns",Dc),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(A,r,n){var a=this.document.createElementNS(Dc,"g");return a.setAttribute("transform","translate("+A+", "+r+")"),n.appendChild(a),a}},{key:"setGroupOptions",value:function(A,r){A.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(A,r,n,a,i){var o=this.document.createElementNS(Dc,"rect");return o.setAttribute("x",A),o.setAttribute("y",r),o.setAttribute("width",n),o.setAttribute("height",a),i.appendChild(o),o}}]),t}();Pd.default=zR;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});var YR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function XR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var qR=function(){function t(e,A,r){XR(this,t),this.object=e,this.encodings=A,this.options=r}return YR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();_d.default=qR,Object.defineProperty(kd,"__esModule",{value:!0});var $R=Hd,eI=Zd($R),tI=Pd,AI=Zd(tI),rI=_d,nI=Zd(rI);function Zd(t){return t&&t.__esModule?t:{default:t}}kd.default={CanvasRenderer:eI.default,SVGRenderer:AI.default,ObjectRenderer:nI.default};var ho={};Object.defineProperty(ho,"__esModule",{value:!0});function jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Kd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aI=function(t){Kd(e,t);function e(A,r){jd(this,e);var n=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidInputException",n.symbology=A,n.input=r,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}return e}(Error),iI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="InvalidElementException",A.message="Not supported type to render on",A}return e}(Error),oI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="NoElementException",A.message="No element to render on.",A}return e}(Error);ho.InvalidInputException=aI,ho.InvalidElementException=iI,ho.NoElementException=oI,Object.defineProperty(Ld,"__esModule",{value:!0});var sI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lI=Od,Gd=Bv(lI),cI=kd,Ws=Bv(cI),uI=ho;function Bv(t){return t&&t.__esModule?t:{default:t}}function zd(t){if(typeof t=="string")return fI(t);if(Array.isArray(t)){for(var e=[],A=0;A<t.length;A++)e.push(zd(t[A]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return hI(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Ws.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":sI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new uI.InvalidElementException}}function fI(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var A=[],r=0;r<e.length;r++)A.push(zd(e[r]));return A}}function hI(t){var e=document.createElement("canvas");return{element:e,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Ld.default=zd;var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});var dI=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function pI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var gI=function(){function t(e){pI(this,t),this.api=e}return dI(t,[{key:"handleCatch",value:function(A){if(A.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw A.message;else throw A;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(A){try{var r=A.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(n){return this.handleCatch(n),this.api}}}]),t}();Yd.default=gI;var mI=ud,fi=Ba(mI),vI=fo,_s=Ba(vI),BI=Vd,wv=Ba(BI),wI=Md,yv=Ba(wI),yI=Ld,bI=Ba(yI),CI=kc,EI=Ba(CI),UI=Yd,FI=Ba(UI),bv=ho,NI=Hc,Cv=Ba(NI);function Ba(t){return t&&t.__esModule?t:{default:t}}var zn=function(){},Pc=function(e,A,r){var n=new zn;if(typeof e>"u")throw Error("No element to render on was provided.");return n._renderProperties=(0,bI.default)(e),n._encodings=[],n._options=Cv.default,n._errorHandler=new FI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Fv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return fi.default[t]};for(var Ev in fi.default)fi.default.hasOwnProperty(Ev)&&SI(fi.default,Ev);function SI(t,e){zn.prototype[e]=zn.prototype[e.toUpperCase()]=zn.prototype[e.toLowerCase()]=function(A,r){var n=this;return n._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var a=(0,_s.default)(n._options,r);a=(0,EI.default)(a);var i=t[e],o=Uv(A,i,a);return n._encodings.push(o),n})}}function Uv(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new bv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,wv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Fv(){return fi.default.CODE128?"CODE128":Object.keys(fi.default)[0]}zn.prototype.options=function(t){return this._options=(0,_s.default)(this._options,t),this},zn.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},zn.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var t;for(var e in this._renderProperties){t=this._renderProperties[e];var A=(0,_s.default)(this._options,t.options);A.format=="auto"&&(A.format=Fv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=fi.default[A.format.toUpperCase()],a=Uv(r,n,A);Xd(t,a,A)})}}},zn.prototype.render=function(){if(!this._renderProperties)throw new bv.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)Xd(this._renderProperties[t],this._encodings,this._options);else Xd(this._renderProperties,this._encodings,this._options);return this},zn.prototype._defaults=Cv.default;function Xd(t,e,A){e=(0,wv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,yv.default)(e[r].options);(0,yv.default)(A);var n=t.renderer,a=new n(t.element,e,A);a.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=Pc),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var A=[];return jQuery(this).each(function(){A.push(this)}),Pc(A,t,e)});var QI=Pc;const qd=ld(QI),Wq="",xI={__name:"BarcodeComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Qs(A,r),i=f.ref(null);f.computed(()=>A.modelValue.__selected||!1);const o=f.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,h)=>{let y;return function(...b){const v=()=>{clearTimeout(y),g(...b)};clearTimeout(y),y=setTimeout(v,h)}},l=f.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var N,S,L,H,O,T,I,k,U,E,Q,R,_,j,G,X;if(!i.value)return;const g=pi((S=(N=A.propsConfig)==null?void 0:N.barcode)==null?void 0:S.propertyPanel)||{};let h=((L=A.modelValue)==null?void 0:L.BarcodeValue)||g.BarcodeValue||"";if(!h&&((H=A.modelValue)!=null&&H.FieldName))if(Array.isArray(A.modelValue.FieldName)){const z=A.modelValue.FieldName.map(Y=>{var ae,x,D,K;return((K=(D=(x=(ae=A.modelValue)==null?void 0:ae.options)==null?void 0:x.fields)==null?void 0:D.find(q=>q.value==Y))==null?void 0:K.label)||Y}).filter(Y=>Y);if(z.length>0){const Y=A.modelValue.FieldConnector||" ";h=z.join(Y)}}else h=((k=(I=(T=(O=A.modelValue)==null?void 0:O.options)==null?void 0:T.fields)==null?void 0:I.find(z=>{var Y;return z.value==((Y=A.modelValue)==null?void 0:Y.FieldName)}))==null?void 0:k.label)||((U=A.modelValue)==null?void 0:U.FieldName)||"";const y=((E=A.modelValue)==null?void 0:E.CodeType)||g.CodeType||"",w=A.modelValue.LineColor||g.LineColor,b=((X=(G=(j=(_=(R=(Q=A.propsConfig)==null?void 0:Q.barcode)==null?void 0:R.propertyPanel)==null?void 0:_.find(z=>z.prop==="CodeType"))==null?void 0:j.options)==null?void 0:G.find(z=>z.value===y))==null?void 0:X.compValue)||"",v={value:h,type:y,lineColor:w,codeType:b};if(JSON.stringify(v)!==JSON.stringify(l.value)){l.value=v;try{const z=i.value;z.innerHTML="",qd(z,h,{format:b,width:2,displayValue:!1,margin:0,lineColor:w,height:50,background:"transparent"}),f.nextTick(()=>{if(z){const Y=z.getBBox();if(Y.width>0&&Y.height>0){const ae=`${Y.x} ${Y.y} ${Y.width} ${Y.height}`;z.setAttribute("viewBox",ae),z.style.width="100%",z.style.height="100%",z.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return f.onMounted(()=>{u(),a(),n()}),f.watch(()=>A.modelValue,()=>d(),{deep:!0}),f.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,h)=>(f.openBlock(),f.createElementBlock("div",{class:"barcode-component",style:f.normalizeStyle(o.value)},[(f.openBlock(),f.createElementBlock("svg",{ref_key:"barcodeRef",ref:i,width:"100%",height:"100%",preserveAspectRatio:"none",style:{width:"100%",height:"100%"}},null,512))],4))}},TI={__name:"BarcodePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,"panel-type":"barcode",options:t.options,"onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},RI={},II={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function VI(t,e){return f.openBlock(),f.createElementBlock("svg",II,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"1785"},null,-1),f.createElementVNode("path",{d:"M388.592 912H195.92C150.24 912 112 871.696 112 823.44V642.848c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 17.92 13.408 32.336 30.288 32.336h192.16c15.408 0 26.832 11.952 26.832 28.368 0 15.424-11.424 27.856-26.32 27.856z m439.456 0h-192.16c-15.408 0-26.816-11.936-26.816-28.352 0-15.92 11.408-28.368 26.8-28.368h192.176c16.88 0 30.288-13.92 30.288-32.32V642.336c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 48.752-38.24 89.056-83.92 89.056zM138.816 409.504c-15.392 0-26.816-11.936-26.816-28.352V201.056C112 152.8 150.24 112.48 195.92 112.48h192.16c15.408 0 26.832 11.936 26.832 28.352 0 15.92-11.424 28.368-26.816 28.368H195.92c-16.88 0-30.288 15.92-30.288 34.32V384.16c0 13.44-11.424 25.36-26.816 25.36zM885.184 409.52c-15.392 0-26.816-11.952-26.816-28.368V201.056c0-17.92-13.408-32.336-30.288-32.336h-192.16c-15.408 0-26.832-11.936-26.832-28.368 0-15.92 11.424-28.352 26.816-28.352h192.176C873.76 112 912 152.304 912 200.56v180.592c0 16.416-13.408 28.368-26.816 28.368zM755.2 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM672 698c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6v372zM608 326v372c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6zM560 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM512 698c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6v372zM336 698c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6v372zM256 326v372c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6zM400 698c0 3.6 2.56 6 6.4 6h64c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-64c-3.84 0-6.4 2.4-6.4 6v372z","p-id":"1786"},null,-1)])])}const MI=WA(RI,[["render",VI]]),wa=t=>t*3.7795275591,hi=t=>t/3.7795275591;function $d(t){if(!t||t<=0)return 1;const e=hi(t);return(window.$templateType||"lodop")==="rfid"?e*1.5:e}var ya={},LI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Nv={},Dr={};let e0;const OI=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Dr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},Dr.getSymbolTotalCodewords=function(e){return OI[e]},Dr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},Dr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');e0=e},Dr.isKanjiModeEnabled=function(){return typeof e0<"u"},Dr.toSJIS=function(e){return e0(e)};var Wc={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(A){if(typeof A!="string")throw new Error("Param is not a string");switch(A.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+A)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,n){if(t.isValid(r))return r;try{return e(r)}catch{return n}}})(Wc);function Sv(){this.buffer=[],this.length=0}Sv.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let A=0;A<e;A++)this.putBit((t>>>e-A-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var kI=Sv;function Zs(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Zs.prototype.set=function(t,e,A,r){const n=t*this.size+e;this.data[n]=A,r&&(this.reservedBit[n]=!0)},Zs.prototype.get=function(t,e){return this.data[t*this.size+e]},Zs.prototype.xor=function(t,e,A){this.data[t*this.size+e]^=A},Zs.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var HI=Zs,Qv={};(function(t){const e=Dr.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const n=Math.floor(r/7)+2,a=e(r),i=a===145?26:Math.ceil((a-13)/(2*n-2))*2,o=[a-7];for(let s=1;s<n-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()},t.getPositions=function(r){const n=[],a=t.getRowColCoords(r),i=a.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||n.push([a[o],a[s]]);return n}})(Qv);var xv={};const DI=Dr.getSymbolSize,Tv=7;xv.getPositions=function(e){const A=DI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var Rv={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){const a=n.size;let i=0,o=0,s=0,l=null,u=null;for(let d=0;d<a;d++){o=s=0,l=u=null;for(let g=0;g<a;g++){let h=n.get(d,g);h===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=h,o=1),h=n.get(g,d),h===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=h,s=1)}o>=5&&(i+=e.N1+(o-5)),s>=5&&(i+=e.N1+(s-5))}return i},t.getPenaltyN2=function(n){const a=n.size;let i=0;for(let o=0;o<a-1;o++)for(let s=0;s<a-1;s++){const l=n.get(o,s)+n.get(o,s+1)+n.get(o+1,s)+n.get(o+1,s+1);(l===4||l===0)&&i++}return i*e.N2},t.getPenaltyN3=function(n){const a=n.size;let i=0,o=0,s=0;for(let l=0;l<a;l++){o=s=0;for(let u=0;u<a;u++)o=o<<1&2047|n.get(l,u),u>=10&&(o===1488||o===93)&&i++,s=s<<1&2047|n.get(u,l),u>=10&&(s===1488||s===93)&&i++}return i*e.N3},t.getPenaltyN4=function(n){let a=0;const i=n.data.length;for(let s=0;s<i;s++)a+=n.data[s];return Math.abs(Math.ceil(a*100/i/5)-10)*e.N4};function A(r,n,a){switch(r){case t.Patterns.PATTERN000:return(n+a)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return a%3===0;case t.Patterns.PATTERN011:return(n+a)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case t.Patterns.PATTERN101:return n*a%2+n*a%3===0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2===0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(n,a){const i=a.size;for(let o=0;o<i;o++)for(let s=0;s<i;s++)a.isReserved(s,o)||a.xor(s,o,A(n,s,o))},t.getBestMask=function(n,a){const i=Object.keys(t.Patterns).length;let o=0,s=1/0;for(let l=0;l<i;l++){a(l),t.applyMask(l,n);const u=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(l,n),u<s&&(s=u,o=l)}return o}})(Rv);var _c={};const ba=Wc,Zc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],jc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];_c.getBlocksCount=function(e,A){switch(A){case ba.L:return Zc[(e-1)*4+0];case ba.M:return Zc[(e-1)*4+1];case ba.Q:return Zc[(e-1)*4+2];case ba.H:return Zc[(e-1)*4+3];default:return}},_c.getTotalCodewordsCount=function(e,A){switch(A){case ba.L:return jc[(e-1)*4+0];case ba.M:return jc[(e-1)*4+1];case ba.Q:return jc[(e-1)*4+2];case ba.H:return jc[(e-1)*4+3];default:return}};var Iv={},Jc={};const js=new Uint8Array(512),Kc=new Uint8Array(256);(function(){let e=1;for(let A=0;A<255;A++)js[A]=e,Kc[e]=A,e<<=1,e&256&&(e^=285);for(let A=255;A<512;A++)js[A]=js[A-255]})(),Jc.log=function(e){if(e<1)throw new Error("log("+e+")");return Kc[e]},Jc.exp=function(e){return js[e]},Jc.mul=function(e,A){return e===0||A===0?0:js[Kc[e]+Kc[A]]},function(t){const e=Jc;t.mul=function(r,n){const a=new Uint8Array(r.length+n.length-1);for(let i=0;i<r.length;i++)for(let o=0;o<n.length;o++)a[i+o]^=e.mul(r[i],n[o]);return a},t.mod=function(r,n){let a=new Uint8Array(r);for(;a.length-n.length>=0;){const i=a[0];for(let s=0;s<n.length;s++)a[s]^=e.mul(n[s],i);let o=0;for(;o<a.length&&a[o]===0;)o++;a=a.slice(o)}return a},t.generateECPolynomial=function(r){let n=new Uint8Array([1]);for(let a=0;a<r;a++)n=t.mul(n,new Uint8Array([1,e.exp(a)]));return n}}(Iv);const Vv=Iv;function t0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}t0.prototype.initialize=function(e){this.degree=e,this.genPoly=Vv.generateECPolynomial(this.degree)},t0.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const A=new Uint8Array(e.length+this.degree);A.set(e);const r=Vv.mod(A,this.genPoly),n=this.degree-r.length;if(n>0){const a=new Uint8Array(this.degree);return a.set(r,n),a}return r};var PI=t0,Mv={},Ca={},A0={};A0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Lv="[0-9]+",WI="[A-Z $%*+\\-./:]+";let Js="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Js=Js.replace(/u/g,"\\u");const _I="(?:(?![A-Z0-9 $%*+\\-./:]|"+Js+`)(?:.|[\r
6
6
  ]))+`;Vn.KANJI=new RegExp(Js,"g"),Vn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Vn.BYTE=new RegExp(_I,"g"),Vn.NUMERIC=new RegExp(Lv,"g"),Vn.ALPHANUMERIC=new RegExp(WI,"g");const ZI=new RegExp("^"+Js+"$"),jI=new RegExp("^"+Lv+"$"),JI=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Vn.testKanji=function(e){return ZI.test(e)},Vn.testNumeric=function(e){return jI.test(e)},Vn.testAlphanumeric=function(e){return JI.test(e)},function(t){const e=A0,A=Vn;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},t.getBestModeForData=function(a){return A.testNumeric(a)?t.NUMERIC:A.testAlphanumeric(a)?t.ALPHANUMERIC:A.testKanji(a)?t.KANJI:t.BYTE},t.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},t.isValid=function(a){return a&&a.bit&&a.ccBits};function r(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+n)}}t.from=function(a,i){if(t.isValid(a))return a;try{return r(a)}catch{return i}}}(Ca),function(t){const e=Dr,A=_c,r=Wc,n=Ca,a=A0,i=7973,o=e.getBCHDigit(i);function s(g,h,y){for(let w=1;w<=40;w++)if(h<=t.getCapacity(w,y,g))return w}function l(g,h){return n.getCharCountIndicator(g,h)+4}function u(g,h){let y=0;return g.forEach(function(w){const b=l(w.mode,h);y+=b+w.getBitsLength()}),y}function d(g,h){for(let y=1;y<=40;y++)if(u(g,y)<=t.getCapacity(y,h,n.MIXED))return y}t.from=function(h,y){return a.isValid(h)?parseInt(h,10):y},t.getCapacity=function(h,y,w){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=n.BYTE);const b=e.getSymbolTotalCodewords(h),v=A.getTotalCodewordsCount(h,y),C=(b-v)*8;if(w===n.MIXED)return C;const N=C-l(w,h);switch(w){case n.NUMERIC:return Math.floor(N/10*3);case n.ALPHANUMERIC:return Math.floor(N/11*2);case n.KANJI:return Math.floor(N/13);case n.BYTE:default:return Math.floor(N/8)}},t.getBestVersionForData=function(h,y){let w;const b=r.from(y,r.M);if(Array.isArray(h)){if(h.length>1)return d(h,b);if(h.length===0)return 1;w=h[0]}else w=h;return s(w.mode,w.getLength(),b)},t.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");let y=h<<12;for(;e.getBCHDigit(y)-o>=0;)y^=i<<e.getBCHDigit(y)-o;return h<<12|y}}(Mv);var Ov={};const r0=Dr,kv=1335,KI=21522,Hv=r0.getBCHDigit(kv);Ov.getEncodedBits=function(e,A){const r=e.bit<<3|A;let n=r<<10;for(;r0.getBCHDigit(n)-Hv>=0;)n^=kv<<r0.getBCHDigit(n)-Hv;return(r<<10|n)^KI};var Dv={};const GI=Ca;function po(t){this.mode=GI.NUMERIC,this.data=t.toString()}po.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},po.prototype.getLength=function(){return this.data.length},po.prototype.getBitsLength=function(){return po.getBitsLength(this.data.length)},po.prototype.write=function(e){let A,r,n;for(A=0;A+3<=this.data.length;A+=3)r=this.data.substr(A,3),n=parseInt(r,10),e.put(n,10);const a=this.data.length-A;a>0&&(r=this.data.substr(A),n=parseInt(r,10),e.put(n,a*3+1))};var zI=po;const YI=Ca,n0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function go(t){this.mode=YI.ALPHANUMERIC,this.data=t}go.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},go.prototype.getLength=function(){return this.data.length},go.prototype.getBitsLength=function(){return go.getBitsLength(this.data.length)},go.prototype.write=function(e){let A;for(A=0;A+2<=this.data.length;A+=2){let r=n0.indexOf(this.data[A])*45;r+=n0.indexOf(this.data[A+1]),e.put(r,11)}this.data.length%2&&e.put(n0.indexOf(this.data[A]),6)};var XI=go;const qI=Ca;function mo(t){this.mode=qI.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}mo.getBitsLength=function(e){return e*8},mo.prototype.getLength=function(){return this.data.length},mo.prototype.getBitsLength=function(){return mo.getBitsLength(this.data.length)},mo.prototype.write=function(t){for(let e=0,A=this.data.length;e<A;e++)t.put(this.data[e],8)};var $I=mo;const eV=Ca,tV=Dr;function vo(t){this.mode=eV.KANJI,this.data=t}vo.getBitsLength=function(e){return e*13},vo.prototype.getLength=function(){return this.data.length},vo.prototype.getBitsLength=function(){return vo.getBitsLength(this.data.length)},vo.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let A=tV.toSJIS(this.data[e]);if(A>=33088&&A<=40956)A-=33088;else if(A>=57408&&A<=60351)A-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
7
7
  Make sure your charset is UTF-8`);A=(A>>>8&255)*192+(A&255),t.put(A,13)}};var AV=vo,Pv={exports:{}};(function(t){var e={single_source_shortest_paths:function(A,r,n){var a={},i={};i[r]=0;var o=e.PriorityQueue.make();o.push(r,0);for(var s,l,u,d,g,h,y,w,b;!o.empty();){s=o.pop(),l=s.value,d=s.cost,g=A[l]||{};for(u in g)g.hasOwnProperty(u)&&(h=g[u],y=d+h,w=i[u],b=typeof i[u]>"u",(b||w>y)&&(i[u]=y,o.push(u,y),a[u]=l))}if(typeof n<"u"&&typeof i[n]>"u"){var v=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(v)}return a},extract_shortest_path_from_predecessor_list:function(A,r){for(var n=[],a=r;a;)n.push(a),A[a],a=A[a];return n.reverse(),n},find_path:function(A,r,n){var a=e.single_source_shortest_paths(A,r,n);return e.extract_shortest_path_from_predecessor_list(a,n)},PriorityQueue:{make:function(A){var r=e.PriorityQueue,n={},a;A=A||{};for(a in r)r.hasOwnProperty(a)&&(n[a]=r[a]);return n.queue=[],n.sorter=A.sorter||r.default_sorter,n},default_sorter:function(A,r){return A.cost-r.cost},push:function(A,r){var n={value:A,cost:r};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Pv);var rV=Pv.exports;(function(t){const e=Ca,A=zI,r=XI,n=$I,a=AV,i=Vn,o=Dr,s=rV;function l(v){return unescape(encodeURIComponent(v)).length}function u(v,C,N){const S=[];let L;for(;(L=v.exec(N))!==null;)S.push({data:L[0],index:L.index,mode:C,length:L[0].length});return S}function d(v){const C=u(i.NUMERIC,e.NUMERIC,v),N=u(i.ALPHANUMERIC,e.ALPHANUMERIC,v);let S,L;return o.isKanjiModeEnabled()?(S=u(i.BYTE,e.BYTE,v),L=u(i.KANJI,e.KANJI,v)):(S=u(i.BYTE_KANJI,e.BYTE,v),L=[]),C.concat(N,S,L).sort(function(O,T){return O.index-T.index}).map(function(O){return{data:O.data,mode:O.mode,length:O.length}})}function g(v,C){switch(C){case e.NUMERIC:return A.getBitsLength(v);case e.ALPHANUMERIC:return r.getBitsLength(v);case e.KANJI:return a.getBitsLength(v);case e.BYTE:return n.getBitsLength(v)}}function h(v){return v.reduce(function(C,N){const S=C.length-1>=0?C[C.length-1]:null;return S&&S.mode===N.mode?(C[C.length-1].data+=N.data,C):(C.push(N),C)},[])}function y(v){const C=[];for(let N=0;N<v.length;N++){const S=v[N];switch(S.mode){case e.NUMERIC:C.push([S,{data:S.data,mode:e.ALPHANUMERIC,length:S.length},{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.ALPHANUMERIC:C.push([S,{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.KANJI:C.push([S,{data:S.data,mode:e.BYTE,length:l(S.data)}]);break;case e.BYTE:C.push([{data:S.data,mode:e.BYTE,length:l(S.data)}])}}return C}function w(v,C){const N={},S={start:{}};let L=["start"];for(let H=0;H<v.length;H++){const O=v[H],T=[];for(let I=0;I<O.length;I++){const k=O[I],U=""+H+I;T.push(U),N[U]={node:k,lastCount:0},S[U]={};for(let E=0;E<L.length;E++){const Q=L[E];N[Q]&&N[Q].node.mode===k.mode?(S[Q][U]=g(N[Q].lastCount+k.length,k.mode)-g(N[Q].lastCount,k.mode),N[Q].lastCount+=k.length):(N[Q]&&(N[Q].lastCount=k.length),S[Q][U]=g(k.length,k.mode)+4+e.getCharCountIndicator(k.mode,C))}}L=T}for(let H=0;H<L.length;H++)S[L[H]].end=0;return{map:S,table:N}}function b(v,C){let N;const S=e.getBestModeForData(v);if(N=e.from(C,S),N!==e.BYTE&&N.bit<S.bit)throw new Error('"'+v+'" cannot be encoded with mode '+e.toString(N)+`.
8
8
  Suggested mode is: `+e.toString(S));switch(N===e.KANJI&&!o.isKanjiModeEnabled()&&(N=e.BYTE),N){case e.NUMERIC:return new A(v);case e.ALPHANUMERIC:return new r(v);case e.KANJI:return new a(v);case e.BYTE:return new n(v)}}t.fromArray=function(C){return C.reduce(function(N,S){return typeof S=="string"?N.push(b(S,null)):S.data&&N.push(b(S.data,S.mode)),N},[])},t.fromString=function(C,N){const S=d(C,o.isKanjiModeEnabled()),L=y(S),H=w(L,N),O=s.find_path(H.map,"start","end"),T=[];for(let I=1;I<O.length-1;I++)T.push(H.table[O[I]].node);return t.fromArray(h(T))},t.rawSplit=function(C){return t.fromArray(d(C,o.isKanjiModeEnabled()))}})(Dv);const Gc=Dr,a0=Wc,nV=kI,aV=HI,iV=Qv,oV=xv,i0=Rv,o0=_c,sV=PI,zc=Mv,lV=Ov,cV=Ca,s0=Dv;function uV(t,e){const A=t.size,r=oV.getPositions(e);for(let n=0;n<r.length;n++){const a=r[n][0],i=r[n][1];for(let o=-1;o<=7;o++)if(!(a+o<=-1||A<=a+o))for(let s=-1;s<=7;s++)i+s<=-1||A<=i+s||(o>=0&&o<=6&&(s===0||s===6)||s>=0&&s<=6&&(o===0||o===6)||o>=2&&o<=4&&s>=2&&s<=4?t.set(a+o,i+s,!0,!0):t.set(a+o,i+s,!1,!0))}}function fV(t){const e=t.size;for(let A=8;A<e-8;A++){const r=A%2===0;t.set(A,6,r,!0),t.set(6,A,r,!0)}}function hV(t,e){const A=iV.getPositions(e);for(let r=0;r<A.length;r++){const n=A[r][0],a=A[r][1];for(let i=-2;i<=2;i++)for(let o=-2;o<=2;o++)i===-2||i===2||o===-2||o===2||i===0&&o===0?t.set(n+i,a+o,!0,!0):t.set(n+i,a+o,!1,!0)}}function dV(t,e){const A=t.size,r=zc.getEncodedBits(e);let n,a,i;for(let o=0;o<18;o++)n=Math.floor(o/3),a=o%3+A-8-3,i=(r>>o&1)===1,t.set(n,a,i,!0),t.set(a,n,i,!0)}function l0(t,e,A){const r=t.size,n=lV.getEncodedBits(e,A);let a,i;for(a=0;a<15;a++)i=(n>>a&1)===1,a<6?t.set(a,8,i,!0):a<8?t.set(a+1,8,i,!0):t.set(r-15+a,8,i,!0),a<8?t.set(8,r-a-1,i,!0):a<9?t.set(8,15-a-1+1,i,!0):t.set(8,15-a-1,i,!0);t.set(r-8,8,1,!0)}function pV(t,e){const A=t.size;let r=-1,n=A-1,a=7,i=0;for(let o=A-1;o>0;o-=2)for(o===6&&o--;;){for(let s=0;s<2;s++)if(!t.isReserved(n,o-s)){let l=!1;i<e.length&&(l=(e[i]>>>a&1)===1),t.set(n,o-s,l),a--,a===-1&&(i++,a=7)}if(n+=r,n<0||A<=n){n-=r,r=-r;break}}}function gV(t,e,A){const r=new nV;A.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),cV.getCharCountIndicator(s.mode,t)),s.write(r)});const n=Gc.getSymbolTotalCodewords(t),a=o0.getTotalCodewordsCount(t,e),i=(n-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const o=(i-r.getLengthInBits())/8;for(let s=0;s<o;s++)r.put(s%2?17:236,8);return mV(r,t,e)}function mV(t,e,A){const r=Gc.getSymbolTotalCodewords(e),n=o0.getTotalCodewordsCount(e,A),a=r-n,i=o0.getBlocksCount(e,A),o=r%i,s=i-o,l=Math.floor(r/i),u=Math.floor(a/i),d=u+1,g=l-u,h=new sV(g);let y=0;const w=new Array(i),b=new Array(i);let v=0;const C=new Uint8Array(t.buffer);for(let O=0;O<i;O++){const T=O<s?u:d;w[O]=C.slice(y,y+T),b[O]=h.encode(w[O]),y+=T,v=Math.max(v,T)}const N=new Uint8Array(r);let S=0,L,H;for(L=0;L<v;L++)for(H=0;H<i;H++)L<w[H].length&&(N[S++]=w[H][L]);for(L=0;L<g;L++)for(H=0;H<i;H++)N[S++]=b[H][L];return N}function vV(t,e,A,r){let n;if(Array.isArray(t))n=s0.fromArray(t);else if(typeof t=="string"){let l=e;if(!l){const u=s0.rawSplit(t);l=zc.getBestVersionForData(u,A)}n=s0.fromString(t,l||40)}else throw new Error("Invalid data");const a=zc.getBestVersionForData(n,A);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
@@ -1,4 +1,4 @@
1
- import { R as l } from "./index-154bf834.mjs";
1
+ import { R as l } from "./index-db1ae626.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "template-designer",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "模板拖拽设计器组件库",
5
5
  "main": "dist/template-designer.umd.js",
6
6
  "module": "dist/template-designer.esm.js",