template-designer 0.9.6 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-ebfd564b.mjs → index-7d5af896.mjs} +5 -4
- package/dist/{index.es-d457607a.mjs → index.es-94c71da2.mjs} +1 -1
- package/dist/{lodop-d002a7b5.mjs → lodop-0a52e3b8.mjs} +2 -2
- package/dist/{rfid-2ca63ade.mjs → rfid-df5c71a2.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/template-designer.es.js +1 -1
- package/dist/template-designer.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1714,6 +1714,7 @@ const Mt = (e, A) => {
|
|
|
1714
1714
|
placeholder: "请选择",
|
|
1715
1715
|
style: { width: "100%" },
|
|
1716
1716
|
size: "small",
|
|
1717
|
+
filterable: "",
|
|
1717
1718
|
onChange: p
|
|
1718
1719
|
}, {
|
|
1719
1720
|
default: fe(() => [
|
|
@@ -1786,7 +1787,7 @@ const Mt = (e, A) => {
|
|
|
1786
1787
|
]);
|
|
1787
1788
|
};
|
|
1788
1789
|
}
|
|
1789
|
-
}, rf = /* @__PURE__ */ Mt(Qv, [["__scopeId", "data-v-
|
|
1790
|
+
}, rf = /* @__PURE__ */ Mt(Qv, [["__scopeId", "data-v-16072986"]]);
|
|
1790
1791
|
const bv = { class: "property-layout-container" }, Nv = {
|
|
1791
1792
|
key: 0,
|
|
1792
1793
|
class: "property-item-wrapper full-width"
|
|
@@ -7089,9 +7090,9 @@ const gb = /* @__PURE__ */ Mt(hb, [["render", pb]]), Xg = [
|
|
|
7089
7090
|
], qg = Xg.flatMap((e) => e.components);
|
|
7090
7091
|
async function Bb(e) {
|
|
7091
7092
|
try {
|
|
7092
|
-
return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-
|
|
7093
|
+
return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-0a52e3b8.mjs"), "./props/rfid.js": () => import("./rfid-df5c71a2.mjs") }), `./props/${e}.js`)).default;
|
|
7093
7094
|
} catch {
|
|
7094
|
-
return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-
|
|
7095
|
+
return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-0a52e3b8.mjs")).default;
|
|
7095
7096
|
}
|
|
7096
7097
|
}
|
|
7097
7098
|
function mb(e = {}, A = {}) {
|
|
@@ -22806,7 +22807,7 @@ function(e) {
|
|
|
22806
22807
|
*/
|
|
22807
22808
|
function(e) {
|
|
22808
22809
|
function A() {
|
|
22809
|
-
return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-
|
|
22810
|
+
return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-94c71da2.mjs")).catch(function(t) {
|
|
22810
22811
|
return Promise.reject(new Error("Could not load canvg: " + t));
|
|
22811
22812
|
}).then(function(t) {
|
|
22812
22813
|
return t.default ? t.default : t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as e } from "./index-
|
|
1
|
+
import { R as e } from "./index-7d5af896.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
const t = {
|
|
4
4
|
text: {
|
|
@@ -271,7 +271,7 @@ const t = {
|
|
|
271
271
|
label: "字段名称",
|
|
272
272
|
type: "select",
|
|
273
273
|
optionsKey: "fields",
|
|
274
|
-
default: "
|
|
274
|
+
default: "",
|
|
275
275
|
layout: "full"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as e } from "./index-
|
|
1
|
+
import { R as e } from "./index-7d5af896.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
const t = {
|
|
4
4
|
text: {
|
|
@@ -198,7 +198,7 @@ const t = {
|
|
|
198
198
|
label: "字段名称",
|
|
199
199
|
type: "select",
|
|
200
200
|
optionsKey: "fields",
|
|
201
|
-
default: "
|
|
201
|
+
default: "",
|
|
202
202
|
layout: "full"
|
|
203
203
|
},
|
|
204
204
|
{
|
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-f3073ca9]{display:flex;align-items:center;justify-content:flex-start;gap:4px}.help-icon[data-v-f3073ca9]{font-size:14px;color:#999;cursor:help;transition:color .2s ease}.help-icon[data-v-f3073ca9]:hover{color:var(--el-color-primary)}.property-item[data-v-f3073ca9]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-f3073ca9]{font-size:14px;color:#666}.property-item input[data-v-f3073ca9],.property-item select[data-v-f3073ca9]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-f3073ca9]{height:32px;padding:2px}.property-item input[type=checkbox][data-v-f3073ca9]{width:16px;height:16px}.file-input-container[data-v-f3073ca9]{position:relative;display:flex;align-items:center;gap:8px}.file-input-container input[data-v-f3073ca9]{height:100%!important}.file-url-input[data-v-f3073ca9]{flex:1;padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px}.file-url-input[data-v-f3073ca9]:disabled{background-color:#f5f5f5;cursor:not-allowed}.file-input[data-v-f3073ca9]{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.file-select-btn[data-v-f3073ca9]{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-f3073ca9]:hover:not(:disabled){background:var(--el-color-primary-dark-2);border-color:var(--el-color-primary-dark-2)}.file-select-btn[data-v-f3073ca9]:disabled{background:#ccc;cursor:not-allowed}.file-info[data-v-f3073ca9]{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-f3073ca9]{font-size:12px;color:#666;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clear-btn[data-v-f3073ca9]{background:none;border:none;color:#ff4d4f;cursor:pointer;font-size:12px;padding:2px 6px;border-radius:2px}.clear-btn[data-v-f3073ca9]:hover{background-color:#fff2f0}.property-item .el-select[data-v-f3073ca9]{width:100%}.property-item .el-select .el-input__wrapper[data-v-f3073ca9]{height:32px;line-height:32px;font-size:14px;padding:0 8px}.property-item .el-select .el-input__inner[data-v-f3073ca9]{font-size:14px;height:32px;line-height:32px}.property-item .el-select .el-select__tags[data-v-f3073ca9]{font-size:12px}.property-item .el-select .el-select__tags .el-tag[data-v-f3073ca9]{font-size:12px;height:20px;line-height:18px;margin:2px 4px 2px 0}.property-item .el-select--multiple .el-input__wrapper[data-v-f3073ca9]{min-height:32px;height:auto;padding:2px 8px}.property-item .el-select--multiple .el-input__inner[data-v-f3073ca9]{height:28px;line-height:28px}.property-panel[data-v-862479af]{padding:16px;background:#fff;border-left:1px solid #e4e7ed;overflow-y:auto;height:100%}.property-group[data-v-862479af]{margin-bottom:16px}.property-group-title[data-v-862479af]{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #ebeef5}.property-item[data-v-862479af]{margin-bottom:12px}.text-property-panel .property-item[data-v-862479af]:last-child,.barcode-property-panel .property-item[data-v-862479af]:last-child,.qrcode-property-panel .property-item[data-v-862479af]:last-child,.image-property-panel .property-item[data-v-862479af]:last-child,.rectangle-property-panel .property-item[data-v-862479af]:last-child,.line-property-panel .property-item[data-v-862479af]:last-child,.verline-property-panel .property-item[data-v-862479af]:last-child{margin-bottom:0}.property-layout-container[data-v-862479af]{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.property-item-wrapper[data-v-862479af]{margin-bottom:0}.property-item-wrapper.full-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper.half-width[data-v-862479af]{width:calc(50% - 6px);flex-basis:calc(50% - 6px)}.property-item-wrapper.default-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper .property-item[data-v-862479af]{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-141dd6ea]{display:flex;align-items:center;justify-content:center}.label-designer[data-v-141dd6ea]{display:flex;height:100%}.toolbar[data-v-141dd6ea]{width:200px;background:#fff;border-right:1px solid #e0e0e0;padding:16px;display:flex;flex-direction:column;gap:16px}.zoom-controls span[data-v-141dd6ea]{width:44px;text-align:center}.zoom-controls[data-v-141dd6ea]{display:flex;align-items:center;gap:8px;border-radius:4px;padding:4px 8px}.zoom-controls button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.zoom-controls button[data-v-141dd6ea]:disabled{opacity:.5;cursor:not-allowed}.center-container[data-v-141dd6ea]{display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.center-toolbar[data-v-141dd6ea]{display:flex;align-items:center;justify-content:flex-end;padding:16px 16px 0}.canvas-container[data-v-141dd6ea]{flex:1;padding:0 16px 16px;overflow:auto;position:relative;display:flex;flex-direction:column}.canvas-wrapper[data-v-141dd6ea]{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-141dd6ea]{position:absolute;left:0;top:0;right:0;height:24px;z-index:10;pointer-events:none}.ruler-vertical[data-v-141dd6ea]{position:absolute;left:0;top:0;bottom:0;width:24px;z-index:10;pointer-events:none}.canvas[data-v-141dd6ea]{position:relative;overflow:visible;z-index:1;position:absolute;left:21px;top:21px}.property-panel[data-v-141dd6ea]{width:260px;background:#fff;border-left:1px solid #ddd;padding:0 16px 16px;display:flex;flex-direction:column;gap:16px;position:relative;z-index:100;overflow-y:auto}.property-panel-operate[data-v-141dd6ea]{display:flex;align-items:center;margin-top:10px}.property-panel-title[data-v-141dd6ea]{position:sticky;top:0;left:0;right:0;background:#fff;z-index:100;display:flex;align-items:center;justify-content:flex-start;margin:0;gap:8px}.property-panel-title .help-icon[data-v-141dd6ea]{font-size:18px;color:#999;transition:color .2s ease}.property-panel-title .help-icon[data-v-141dd6ea]:hover{color:var(--el-color-primary)}.position-controls[data-v-141dd6ea]{display:flex;flex-direction:column;gap:12px;padding:12px;background:#f5f5f5;border-radius:4px}.control-group[data-v-141dd6ea]{display:flex;align-items:center;justify-content:space-between;gap:4px}.control-group label[data-v-141dd6ea]{width:80px;font-size:14px;color:#666;text-align:end}.number-input[data-v-141dd6ea]{display:flex;align-items:center;gap:4px}.number-input input[data-v-141dd6ea]{width:90px;padding:4px;border:1px solid #ddd;border-radius:4px;text-align:center}.number-input button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.rotation-display[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{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-141dd6ea]{top:-2px;left:-2px}.resize-handle.top[data-v-141dd6ea]{top:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.top-right[data-v-141dd6ea]{top:-2px;right:-2px}.resize-handle.right[data-v-141dd6ea]{top:50%;right:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.bottom-right[data-v-141dd6ea]{bottom:-2px;right:-2px}.resize-handle.bottom[data-v-141dd6ea]{bottom:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.bottom-left[data-v-141dd6ea]{bottom:-2px;left:-2px}.resize-handle.left[data-v-141dd6ea]{top:50%;left:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.line-anchor[data-v-141dd6ea]{width:4px;height:4px;border-radius:50%}.rotate-handle[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{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-141dd6ea]{margin-left:0}.drag-extend-lines[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.drag-extend-line[data-v-141dd6ea]{position:absolute;pointer-events:none;z-index:998}.drag-extend-line.horizontal[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{position:absolute;border:1px dashed var(--el-color-primary-light-3);pointer-events:none;z-index:998}.alignment-guides[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.alignment-guide[data-v-141dd6ea]{background-color:transparent;pointer-events:none;z-index:9999}.alignment-guide.horizontal[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-center.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-resize-anchor[data-v-141dd6ea]{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-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-canvas-center[data-v-141dd6ea]{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-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px}.alignment-guide.guide-boundary[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:3px 1px}.alignment-guide.guide-boundary.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 3px}.number-input input[type=number][data-v-141dd6ea]::-webkit-inner-spin-button,.number-input input[type=number][data-v-141dd6ea]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.switch-input[data-v-141dd6ea]{display:flex;align-items:center}.switch-input input[type=checkbox][data-v-141dd6ea]{width:20px;height:20px;cursor:pointer;accent-color:var(--el-color-primary-light-3)}.component-selected[data-v-141dd6ea]{outline:1px dashed var(--el-color-info-light-3)!important;outline-offset:0!important}.component-current[data-v-141dd6ea]{outline:1px dashed var(--el-color-primary-light-3)!important;outline-offset:0!important}.component-selected[data-v-141dd6ea],.component-current[data-v-141dd6ea]{box-sizing:border-box}.component-config-missing[data-v-141dd6ea]{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-141dd6ea]{display:flex;align-items:center;gap:4px;padding:8px}.missing-config-tip .el-icon[data-v-141dd6ea]{font-size:14px;color:#ffc107}.loader-container[data-v-141dd6ea]{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-141dd6ea]{color:var(--el-color-primary-light-3);font-size:14px;margin-top:20px}.loader-circle[data-v-141dd6ea]{width:70px;height:70px;display:inline-block;margin-right:10px;position:relative;vertical-align:top}.loader-circle[data-v-141dd6ea]: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-141dd6ea 1s linear infinite}.loader-circle[data-v-141dd6ea]: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-141dd6ea 1s linear infinite;position:absolute;top:0}@keyframes loader-circle_rotation-reverse-141dd6ea{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes loader-circle_rotation-141dd6ea{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-16072986]{display:flex;align-items:center;justify-content:flex-start;gap:4px}.help-icon[data-v-16072986]{font-size:14px;color:#999;cursor:help;transition:color .2s ease}.help-icon[data-v-16072986]:hover{color:var(--el-color-primary)}.property-item[data-v-16072986]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-16072986]{font-size:14px;color:#666}.property-item input[data-v-16072986],.property-item select[data-v-16072986]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-16072986]{height:32px;padding:2px}.property-item input[type=checkbox][data-v-16072986]{width:16px;height:16px}.file-input-container[data-v-16072986]{position:relative;display:flex;align-items:center;gap:8px}.file-input-container input[data-v-16072986]{height:100%!important}.file-url-input[data-v-16072986]{flex:1;padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px}.file-url-input[data-v-16072986]:disabled{background-color:#f5f5f5;cursor:not-allowed}.file-input[data-v-16072986]{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.file-select-btn[data-v-16072986]{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-16072986]:hover:not(:disabled){background:var(--el-color-primary-dark-2);border-color:var(--el-color-primary-dark-2)}.file-select-btn[data-v-16072986]:disabled{background:#ccc;cursor:not-allowed}.file-info[data-v-16072986]{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-16072986]{font-size:12px;color:#666;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clear-btn[data-v-16072986]{background:none;border:none;color:#ff4d4f;cursor:pointer;font-size:12px;padding:2px 6px;border-radius:2px}.clear-btn[data-v-16072986]:hover{background-color:#fff2f0}.property-item .el-select[data-v-16072986]{width:100%}.property-item .el-select .el-input__wrapper[data-v-16072986]{height:32px;line-height:32px;font-size:14px;padding:0 8px}.property-item .el-select .el-input__inner[data-v-16072986]{font-size:14px;height:32px;line-height:32px}.property-item .el-select .el-select__tags[data-v-16072986]{font-size:12px}.property-item .el-select .el-select__tags .el-tag[data-v-16072986]{font-size:12px;height:20px;line-height:18px;margin:2px 4px 2px 0}.property-item .el-select--multiple .el-input__wrapper[data-v-16072986]{min-height:32px;height:auto;padding:2px 8px}.property-item .el-select--multiple .el-input__inner[data-v-16072986]{height:28px;line-height:28px}.property-panel[data-v-862479af]{padding:16px;background:#fff;border-left:1px solid #e4e7ed;overflow-y:auto;height:100%}.property-group[data-v-862479af]{margin-bottom:16px}.property-group-title[data-v-862479af]{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #ebeef5}.property-item[data-v-862479af]{margin-bottom:12px}.text-property-panel .property-item[data-v-862479af]:last-child,.barcode-property-panel .property-item[data-v-862479af]:last-child,.qrcode-property-panel .property-item[data-v-862479af]:last-child,.image-property-panel .property-item[data-v-862479af]:last-child,.rectangle-property-panel .property-item[data-v-862479af]:last-child,.line-property-panel .property-item[data-v-862479af]:last-child,.verline-property-panel .property-item[data-v-862479af]:last-child{margin-bottom:0}.property-layout-container[data-v-862479af]{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.property-item-wrapper[data-v-862479af]{margin-bottom:0}.property-item-wrapper.full-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper.half-width[data-v-862479af]{width:calc(50% - 6px);flex-basis:calc(50% - 6px)}.property-item-wrapper.default-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper .property-item[data-v-862479af]{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-141dd6ea]{display:flex;align-items:center;justify-content:center}.label-designer[data-v-141dd6ea]{display:flex;height:100%}.toolbar[data-v-141dd6ea]{width:200px;background:#fff;border-right:1px solid #e0e0e0;padding:16px;display:flex;flex-direction:column;gap:16px}.zoom-controls span[data-v-141dd6ea]{width:44px;text-align:center}.zoom-controls[data-v-141dd6ea]{display:flex;align-items:center;gap:8px;border-radius:4px;padding:4px 8px}.zoom-controls button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.zoom-controls button[data-v-141dd6ea]:disabled{opacity:.5;cursor:not-allowed}.center-container[data-v-141dd6ea]{display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.center-toolbar[data-v-141dd6ea]{display:flex;align-items:center;justify-content:flex-end;padding:16px 16px 0}.canvas-container[data-v-141dd6ea]{flex:1;padding:0 16px 16px;overflow:auto;position:relative;display:flex;flex-direction:column}.canvas-wrapper[data-v-141dd6ea]{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-141dd6ea]{position:absolute;left:0;top:0;right:0;height:24px;z-index:10;pointer-events:none}.ruler-vertical[data-v-141dd6ea]{position:absolute;left:0;top:0;bottom:0;width:24px;z-index:10;pointer-events:none}.canvas[data-v-141dd6ea]{position:relative;overflow:visible;z-index:1;position:absolute;left:21px;top:21px}.property-panel[data-v-141dd6ea]{width:260px;background:#fff;border-left:1px solid #ddd;padding:0 16px 16px;display:flex;flex-direction:column;gap:16px;position:relative;z-index:100;overflow-y:auto}.property-panel-operate[data-v-141dd6ea]{display:flex;align-items:center;margin-top:10px}.property-panel-title[data-v-141dd6ea]{position:sticky;top:0;left:0;right:0;background:#fff;z-index:100;display:flex;align-items:center;justify-content:flex-start;margin:0;gap:8px}.property-panel-title .help-icon[data-v-141dd6ea]{font-size:18px;color:#999;transition:color .2s ease}.property-panel-title .help-icon[data-v-141dd6ea]:hover{color:var(--el-color-primary)}.position-controls[data-v-141dd6ea]{display:flex;flex-direction:column;gap:12px;padding:12px;background:#f5f5f5;border-radius:4px}.control-group[data-v-141dd6ea]{display:flex;align-items:center;justify-content:space-between;gap:4px}.control-group label[data-v-141dd6ea]{width:80px;font-size:14px;color:#666;text-align:end}.number-input[data-v-141dd6ea]{display:flex;align-items:center;gap:4px}.number-input input[data-v-141dd6ea]{width:90px;padding:4px;border:1px solid #ddd;border-radius:4px;text-align:center}.number-input button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.rotation-display[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{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-141dd6ea]{top:-2px;left:-2px}.resize-handle.top[data-v-141dd6ea]{top:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.top-right[data-v-141dd6ea]{top:-2px;right:-2px}.resize-handle.right[data-v-141dd6ea]{top:50%;right:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.bottom-right[data-v-141dd6ea]{bottom:-2px;right:-2px}.resize-handle.bottom[data-v-141dd6ea]{bottom:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.bottom-left[data-v-141dd6ea]{bottom:-2px;left:-2px}.resize-handle.left[data-v-141dd6ea]{top:50%;left:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.line-anchor[data-v-141dd6ea]{width:4px;height:4px;border-radius:50%}.rotate-handle[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{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-141dd6ea]{margin-left:0}.drag-extend-lines[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.drag-extend-line[data-v-141dd6ea]{position:absolute;pointer-events:none;z-index:998}.drag-extend-line.horizontal[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{position:absolute;border:1px dashed var(--el-color-primary-light-3);pointer-events:none;z-index:998}.alignment-guides[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.alignment-guide[data-v-141dd6ea]{background-color:transparent;pointer-events:none;z-index:9999}.alignment-guide.horizontal[data-v-141dd6ea]{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-141dd6ea]{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-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-center.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-resize-anchor[data-v-141dd6ea]{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-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-canvas-center[data-v-141dd6ea]{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-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px}.alignment-guide.guide-boundary[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:3px 1px}.alignment-guide.guide-boundary.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 3px}.number-input input[type=number][data-v-141dd6ea]::-webkit-inner-spin-button,.number-input input[type=number][data-v-141dd6ea]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.switch-input[data-v-141dd6ea]{display:flex;align-items:center}.switch-input input[type=checkbox][data-v-141dd6ea]{width:20px;height:20px;cursor:pointer;accent-color:var(--el-color-primary-light-3)}.component-selected[data-v-141dd6ea]{outline:1px dashed var(--el-color-info-light-3)!important;outline-offset:0!important}.component-current[data-v-141dd6ea]{outline:1px dashed var(--el-color-primary-light-3)!important;outline-offset:0!important}.component-selected[data-v-141dd6ea],.component-current[data-v-141dd6ea]{box-sizing:border-box}.component-config-missing[data-v-141dd6ea]{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-141dd6ea]{display:flex;align-items:center;gap:4px;padding:8px}.missing-config-tip .el-icon[data-v-141dd6ea]{font-size:14px;color:#ffc107}.loader-container[data-v-141dd6ea]{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-141dd6ea]{color:var(--el-color-primary-light-3);font-size:14px;margin-top:20px}.loader-circle[data-v-141dd6ea]{width:70px;height:70px;display:inline-block;margin-right:10px;position:relative;vertical-align:top}.loader-circle[data-v-141dd6ea]: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-141dd6ea 1s linear infinite}.loader-circle[data-v-141dd6ea]: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-141dd6ea 1s linear infinite;position:absolute;top:0}@keyframes loader-circle_rotation-reverse-141dd6ea{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes loader-circle_rotation-141dd6ea{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}
|
|
@@ -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 CF=Object.prototype.hasOwnProperty,Xh=(t,e)=>CF.call(t,e),bc=t=>typeof t=="function",Ts=t=>typeof t=="string",em=t=>t!==null&&typeof t=="object";var EF=typeof global=="object"&&global&&global.Object===Object&&global;const UF=EF;var FF=typeof self=="object"&&self&&self.Object===Object&&self,NF=UF||FF||Function("return this")();const qh=NF;var QF=qh.Symbol;const Xi=QF;var tm=Object.prototype,SF=tm.hasOwnProperty,TF=tm.toString,xs=Xi?Xi.toStringTag:void 0;function xF(t){var e=SF.call(t,xs),A=t[xs];try{t[xs]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[xs]=A:delete t[xs]),n}var RF=Object.prototype,IF=RF.toString;function VF(t){return IF.call(t)}var MF="[object Null]",LF="[object Undefined]",Am=Xi?Xi.toStringTag:void 0;function rm(t){return t==null?t===void 0?LF:MF:Am&&Am in Object(t)?xF(t):VF(t)}function OF(t){return t!=null&&typeof t=="object"}var kF="[object Symbol]";function $h(t){return typeof t=="symbol"||OF(t)&&rm(t)==kF}function HF(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 DF=Array.isArray;const ed=DF;var PF=1/0,nm=Xi?Xi.prototype:void 0,am=nm?nm.toString:void 0;function im(t){if(typeof t=="string")return t;if(ed(t))return HF(t,im)+"";if($h(t))return am?am.call(t):"";var e=t+"";return e=="0"&&1/t==-PF?"-0":e}function om(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var WF="[object AsyncFunction]",_F="[object Function]",ZF="[object GeneratorFunction]",jF="[object Proxy]";function JF(t){if(!om(t))return!1;var e=rm(t);return e==_F||e==ZF||e==WF||e==jF}var KF=qh["__core-js_shared__"];const td=KF;var sm=function(){var t=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function GF(t){return!!sm&&sm in t}var zF=Function.prototype,YF=zF.toString;function XF(t){if(t!=null){try{return YF.call(t)}catch{}try{return t+""}catch{}}return""}var qF=/[\\^$.*+?()[\]{}|]/g,$F=/^\[object .+?Constructor\]$/,e4=Function.prototype,t4=Object.prototype,A4=e4.toString,r4=t4.hasOwnProperty,n4=RegExp("^"+A4.call(r4).replace(qF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a4(t){if(!om(t)||GF(t))return!1;var e=JF(t)?n4:$F;return e.test(XF(t))}function i4(t,e){return t==null?void 0:t[e]}function lm(t,e){var A=i4(t,e);return a4(A)?A:void 0}function o4(t,e){return t===e||t!==t&&e!==e}var s4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l4=/^\w*$/;function c4(t,e){if(ed(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||$h(t)?!0:l4.test(t)||!s4.test(t)||e!=null&&t in Object(e)}var u4=lm(Object,"create");const Rs=u4;function f4(){this.__data__=Rs?Rs(null):{},this.size=0}function h4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var d4="__lodash_hash_undefined__",p4=Object.prototype,g4=p4.hasOwnProperty;function m4(t){var e=this.__data__;if(Rs){var A=e[t];return A===d4?void 0:A}return g4.call(e,t)?e[t]:void 0}var v4=Object.prototype,B4=v4.hasOwnProperty;function w4(t){var e=this.__data__;return Rs?e[t]!==void 0:B4.call(e,t)}var y4="__lodash_hash_undefined__";function b4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?y4:e,this}function ni(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])}}ni.prototype.clear=f4,ni.prototype.delete=h4,ni.prototype.get=m4,ni.prototype.has=w4,ni.prototype.set=b4;function C4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(o4(t[A][0],e))return A;return-1}var E4=Array.prototype,U4=E4.splice;function F4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():U4.call(e,A,1),--this.size,!0}function N4(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 S4(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 qi(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])}}qi.prototype.clear=C4,qi.prototype.delete=F4,qi.prototype.get=N4,qi.prototype.has=Q4,qi.prototype.set=S4;var T4=lm(qh,"Map");const x4=T4;function R4(){this.size=0,this.__data__={hash:new ni,map:new(x4||qi),string:new ni}}function I4(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 I4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function V4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function M4(t){return Ec(this,t).get(t)}function L4(t){return Ec(this,t).has(t)}function O4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,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=R4,ai.prototype.delete=V4,ai.prototype.get=M4,ai.prototype.has=L4,ai.prototype.set=O4;var k4="Expected a function";function Ad(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(k4);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||ai),A}Ad.Cache=ai;var H4=500;function D4(t){var e=Ad(t,function(r){return A.size===H4&&A.clear(),r}),A=e.cache;return e}var P4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W4=/\\(\\)?/g,_4=D4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(P4,function(A,r,n,a){e.push(n?a.replace(W4,"$1"):r||A)}),e});const Z4=_4;function j4(t){return t==null?"":im(t)}function J4(t,e){return ed(t)?t:c4(t,e)?[t]:Z4(j4(t))}var K4=1/0;function G4(t){if(typeof t=="string"||$h(t))return t;var e=t+"";return e=="0"&&1/t==-K4?"-0":e}function z4(t,e){e=J4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[G4(e[A++])];return A&&A==r?t:void 0}function Y4(t,e,A){var r=t==null?void 0:z4(t,e);return r===void 0?A:r}function X4(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 q4=t=>t===void 0,rd=t=>typeof t=="boolean",ii=t=>typeof t=="number",$4=t=>typeof Element>"u"?!1:t instanceof Element,eN=t=>Ts(t)?!Number.isNaN(Number(t)):!1;var cm;const $i=typeof window<"u",tN=t=>typeof t=="string",AN=()=>{};$i&&((cm=window==null?void 0:window.navigator)!=null&&cm.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nd(t){return typeof t=="function"?t():h.unref(t)}function rN(t){return t}function ad(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function nN(t,e=!0){h.getCurrentInstance()?h.onMounted(t):e?t():h.nextTick(t)}function aN(t,e,A={}){const{immediate:r=!0}=A,n=h.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,$i&&s()),ad(o),{isPending:h.readonly(n),start:s,stop:o}}function um(t){var e;const A=nd(t);return(e=A==null?void 0:A.$el)!=null?e:A}const fm=$i?window:void 0;function iN(...t){let e,A,r,n;if(tN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=fm):[e,A,r,n]=t,!e)return AN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,f)=>(u.addEventListener(d,g,f),()=>u.removeEventListener(d,g,f)),s=h.watch(()=>[um(e),nd(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(f=>o(u,g,f,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return ad(l),l}function oN(t,e=!1){const A=h.ref(),r=()=>A.value=!!t();return r(),nN(r,e),A}const hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dm="__vueuse_ssr_handlers__";hm[dm]=hm[dm]||{};var pm=Object.getOwnPropertySymbols,sN=Object.prototype.hasOwnProperty,lN=Object.prototype.propertyIsEnumerable,cN=(t,e)=>{var A={};for(var r in t)sN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&pm)for(var r of pm(t))e.indexOf(r)<0&&lN.call(t,r)&&(A[r]=t[r]);return A};function uN(t,e,A={}){const r=A,{window:n=fm}=r,a=cN(r,["window"]);let i;const o=oN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=h.watch(()=>um(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 gm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(gm||(gm={}));var fN=Object.defineProperty,mm=Object.getOwnPropertySymbols,hN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,vm=(t,e,A)=>e in t?fN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,pN=(t,e)=>{for(var A in e||(e={}))hN.call(e,A)&&vm(t,A,e[A]);if(mm)for(var A of mm(e))dN.call(e,A)&&vm(t,A,e[A]);return t};pN({linear:rN},{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 Bm={current:0},wm=h.ref(0),ym=2e3,bm=Symbol("elZIndexContextKey"),Cm=Symbol("zIndexContextKey"),gN=t=>{const e=h.getCurrentInstance()?h.inject(bm,Bm):Bm,A=t||(h.getCurrentInstance()?h.inject(Cm,void 0):void 0),r=h.computed(()=>{const i=h.unref(A);return ii(i)?i:ym}),n=h.computed(()=>r.value+wm.value),a=()=>(e.current++,wm.value=e.current,n.value);return!$i&&h.inject(bm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var mN={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 vN=t=>(e,A)=>BN(e,A,h.unref(t)),BN=(t,e,A)=>Y4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),wN=t=>{const e=h.computed(()=>h.unref(t).name),A=h.isRef(t)?t:h.ref(t);return{lang:e,locale:A,t:vN(t)}},Em=Symbol("localeContextKey"),yN=t=>{const e=t||h.inject(Em,h.ref());return wN(h.computed(()=>e.value||mN))},Um="__epPropKey",Fr=t=>t,bN=t=>em(t)&&!!t[Um],Fm=(t,e)=>{if(!em(t)||bN(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(f=>JSON.stringify(f)).join(", ");h.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Um]:!0};return Xh(t,"default")&&(s.default=n),s},Is=t=>X4(Object.entries(t).map(([e,A])=>[e,Fm(A,e)])),CN=Fm({type:String,values:["","default","small","large"],required:!1}),EN=Symbol("size"),UN=Symbol("emptyValuesContextKey"),FN=Is({emptyValues:Array,valueOnClear:{type:Fr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Nm=t=>Object.keys(t),Uc=h.ref();function Qm(t,e=void 0){const A=h.getCurrentInstance()?h.inject(q2,Uc):Uc;return t?h.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function NN(t,e){const A=Qm(),r=Yh(t,h.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=yN(h.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=gN(h.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||ym})),i=h.computed(()=>{var o;return h.unref(e)||((o=A.value)==null?void 0:o.size)||""});return Sm(h.computed(()=>h.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const Sm=(t,e,A=!1)=>{var r;const n=!!h.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?h.provide:void 0;if(!i)return;const o=h.computed(()=>{const s=h.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i(q2,o),i(Em,h.computed(()=>o.value.locale)),i($2,h.computed(()=>o.value.namespace)),i(Cm,h.computed(()=>o.value.zIndex)),i(EN,{size:h.computed(()=>o.value.size||"")}),i(UN,h.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Nm(t),...Nm(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(ii(t)||eN(t))return`${t}${e}`;if(Ts(t))return t}function Vq(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},SN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Fr([Number,String])},color:{type:String}}),xN=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),RN=h.defineComponent({...xN,props:TN,setup(t){const e=t,A=Yh("icon"),r=h.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:q4(n)?void 0:od(n),"--color":a}});return(n,a)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(A).b(),style:h.unref(r)},n.$attrs),[h.renderSlot(n.$slots,"default")],16))}});var IN=id(RN,[["__file","icon.vue"]]);const xm=Tm(IN);/*! Element Plus Icons Vue v2.3.2 */var VN=h.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),Rm=VN,MN=h.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),LN=MN,ON=h.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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=ON,kN=h.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),Im=kN,HN=h.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),Vm=HN;const DN=Fr([String,Object,Function]),PN={Close:LN,SuccessFilled:Im,InfoFilled:sd,WarningFilled:Vm,CircleCloseFilled:Rm},Mm={primary:sd,success:Im,warning:Vm,error:Rm,info:sd},WN=t=>t,_N={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"},ZN=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:Fr([String,Object,Array])},offset:{type:Fr(Array),default:[0,0]},badgeClass:{type:String}}),jN=h.defineComponent({name:"ElBadge"}),JN=h.defineComponent({...jN,props:ZN,setup(t,{expose:e}){const A=t,r=Yh("badge"),n=h.computed(()=>A.isDot?"":ii(A.value)&&ii(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=h.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)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(r).b())},[h.renderSlot(i.$slots,"default"),h.createVNode(h.Transition,{name:`${h.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("sup",{class:h.normalizeClass([h.unref(r).e("content"),h.unref(r).em("content",i.type),h.unref(r).is("fixed",!!i.$slots.default),h.unref(r).is("dot",i.isDot),h.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:h.normalizeStyle(h.unref(a))},[h.renderSlot(i.$slots,"content",{value:h.unref(n)},()=>[h.createTextVNode(h.toDisplayString(h.unref(n)),1)])],6),[[h.vShow,!i.hidden&&(h.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var KN=id(JN,[["__file","badge.vue"]]);const GN=Tm(KN);var eo=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 zN=Is({a11y:{type:Boolean,default:!0},locale:{type:Fr(Object)},size:CN,button:{type:Fr(Object)},card:{type:Fr(Object)},dialog:{type:Fr(Object)},link:{type:Fr(Object)},experimentalFeatures:{type:Fr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Fr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...FN}),nr={placement:"top"};h.defineComponent({name:"ElConfigProvider",props:zN,setup(t,{slots:e}){const A=Sm(t);return h.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}),()=>h.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Lm=["primary","success","info","warning","error"],Om=["top","top-left","top-right","bottom","bottom-left","bottom-right"],to="top",ar=WN({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:$i?document.body:void 0}),YN=Is({customClass:{type:String,default:ar.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ar.dangerouslyUseHTMLString},duration:{type:Number,default:ar.duration},icon:{type:DN,default:ar.icon},id:{type:String,default:ar.id},message:{type:Fr([String,Object,Function]),default:ar.message},onClose:{type:Fr(Function),default:ar.onClose},showClose:{type:Boolean,default:ar.showClose},type:{type:String,values:Lm,default:ar.type},plain:{type:Boolean,default:ar.plain},offset:{type:Number,default:ar.offset},placement:{type:String,values:Om,default:ar.placement},zIndex:{type:Number,default:ar.zIndex},grouping:{type:Boolean,default:ar.grouping},repeatNum:{type:Number,default:ar.repeatNum}}),XN={destroy:()=>!0},fn=h.shallowReactive({}),qN=t=>(fn[t]||(fn[t]=h.shallowReactive([])),fn[t]),$N=(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}},e3=(t,e)=>{const{prev:A}=$N(t,e);return A?A.vm.exposed.bottom.value:0},t3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,A3=h.defineComponent({name:"ElMessage"}),r3=h.defineComponent({...A3,props:YN,emits:XN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=PN,a=h.ref(!1),{ns:i,zIndex:o}=NN("message"),{currentZIndex:s,nextZIndex:l}=o,u=h.ref(),d=h.ref(!1),g=h.ref(0);let f;const w=h.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),v=h.computed(()=>{const F=r.type;return{[i.bm("icon",F)]:F&&Mm[F]}}),C=h.computed(()=>r.icon||Mm[r.type]||""),B=h.computed(()=>r.placement||to),y=h.computed(()=>e3(r.id,B.value)),U=h.computed(()=>t3(r.id,r.offset,B.value)+y.value),Q=h.computed(()=>g.value+U.value),I=h.computed(()=>B.value.includes("left")?i.is("left"):B.value.includes("right")?i.is("right"):i.is("center")),V=h.computed(()=>B.value.startsWith("top")?"top":"bottom"),R=h.computed(()=>({[V.value]:`${U.value}px`,zIndex:s.value}));function L(){r.duration!==0&&({stop:f}=aN(()=>{P()},r.duration))}function D(){f==null||f()}function P(){d.value=!1,h.nextTick(()=>{var F;a.value||((F=r.onClose)==null||F.call(r),A("destroy"))})}function S({code:F}){F===_N.esc&&P()}return h.onMounted(()=>{L(),l(),d.value=!0}),h.watch(()=>r.repeatNum,()=>{D(),L()}),iN(document,"keydown",S),uN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:Q,close:P}),(F,O)=>(h.openBlock(),h.createBlock(h.Transition,{name:h.unref(i).b("fade"),onBeforeEnter:W=>a.value=!0,onBeforeLeave:F.onClose,onAfterLeave:W=>F.$emit("destroy"),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:u,class:h.normalizeClass([h.unref(i).b(),{[h.unref(i).m(F.type)]:F.type},h.unref(i).is("closable",F.showClose),h.unref(i).is("plain",F.plain),h.unref(i).is("bottom",h.unref(V)==="bottom"),h.unref(I),F.customClass]),style:h.normalizeStyle(h.unref(R)),role:"alert",onMouseenter:D,onMouseleave:L},[F.repeatNum>1?(h.openBlock(),h.createBlock(h.unref(GN),{key:0,value:F.repeatNum,type:h.unref(w),class:h.normalizeClass(h.unref(i).e("badge"))},null,8,["value","type","class"])):h.createCommentVNode("v-if",!0),h.unref(C)?(h.openBlock(),h.createBlock(h.unref(xm),{key:1,class:h.normalizeClass([h.unref(i).e("icon"),h.unref(v)])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(C))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),h.createElementVNode("p",{class:h.normalizeClass(h.unref(i).e("content")),innerHTML:F.message},null,10,["innerHTML"])],2112)):(h.openBlock(),h.createElementBlock("p",{key:0,class:h.normalizeClass(h.unref(i).e("content"))},h.toDisplayString(F.message),3))]),F.showClose?(h.openBlock(),h.createBlock(h.unref(xm),{key:2,class:h.normalizeClass(h.unref(i).e("closeBtn")),onClick:h.withModifiers(P,["stop"])},{default:h.withCtx(()=>[h.createVNode(h.unref(n))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0)],46,["id"]),[[h.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var n3=id(r3,[["__file","message.vue"]]);let a3=1;const i3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Ts(t.appendTo)){let A=document.querySelector(t.appendTo);$4(A)||(A=document.body),t.appendTo=A}},o3=t=>{!t.placement&&Ts(nr.placement)&&nr.placement&&(t.placement=nr.placement),t.placement||(t.placement=to),Om.includes(t.placement)||(`${t.placement}${to}`,t.placement=to)},km=t=>{const e=!t||Ts(t)||h.isVNode(t)||bc(t)?{message:t}:t,A={...ar,...e};return i3(A),o3(A),rd(nr.grouping)&&!A.grouping&&(A.grouping=nr.grouping),ii(nr.duration)&&A.duration===3e3&&(A.duration=nr.duration),ii(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},s3=t=>{const e=t.props.placement||to,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},l3=({appendTo:t,...e},A)=>{const r=`message_${a3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),s3(u)},onDestroy:()=>{h.render(null,a)}},o=h.createVNode(n3,i,bc(i.message)||h.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||oi._context,h.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},oi=(t={},e)=>{if(!$i)return{close:()=>{}};const A=km(t),r=qN(A.placement||to);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(ii(nr.max)&&r.length>=nr.max)return{close:()=>{}};const n=l3(A,e);return r.push(n),n.handler};Lm.forEach(t=>{oi[t]=(e={},A)=>{const r=km(e);return oi({...r,type:t},A)}});function c3(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 u3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}oi.closeAll=c3,oi.closeAllByPlacement=u3,oi._context=null;const Vs=SN(oi,"$message"),Mq="",jA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},f3={class:"property-item"},h3={key:0,class:"label"},d3=["innerHTML"],p3={key:4,class:"file-input-container"},g3=["disabled"],m3={key:1},v3=["accept"],B3=["type","min","max","step"],cd=jA({__name:"PropertyItem",props:{label: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=h.ref(null),a=h.ref(!1),i=h.ref(null),o=h.ref(null),s=h.inject("config",{}),l=(B="")=>{var y,U;return((U=(y=A.options)==null?void 0:y.find(Q=>(Q==null?void 0:Q.value)==B))==null?void 0:U.value)??" "},u=h.computed({get:()=>{const B=A.modelValue;if(A.type==="select"){if(!A.multiple)return l(B);if(typeof B=="string"){let y=l(B);return y=y&&y.trim()?[y]:[],y}return Array.isArray(B)?B.map(U=>l(U)):[]}return B},set:B=>{A.type==="select"&&A.multiple?Array.isArray(B)&&B.length===1?r("update:modelValue",B[0]):Array.isArray(B)&&B.length>1?r("update:modelValue",B):r("update:modelValue",""):r("update:modelValue",B)}}),d=B=>{r("change",B),A.label==="旋转角度"&&typeof B=="number"&&r("rotationChange",B)},g=h.computed({get:()=>u.value?typeof u.value=="object"&&u.value.fileSrc?u.value.fileSrc.startsWith("http://")||u.value.fileSrc.startsWith("https://")?u.value.fileSrc:u.value.fileSrc.startsWith("data:")?u.value.fileName||"已选择的图片":u.value.fileName||u.value.fileSrc:typeof u.value=="string"&&u.value.startsWith("data:")?"已选择的图片":u.value:"",set:B=>{u.value=B}}),f=()=>{n.value&&!a.value&&n.value.click()},w=B=>{const y=B.target.value.trim();y?y.startsWith("http://")||y.startsWith("https://")||y.startsWith("data:")?u.value=y:y.startsWith("data:")||(u.value=y):u.value=""},v=async B=>{var I;const y=B.target.files[0];if(!y)return;if(A.accept&&!y.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const U=(I=s==null?void 0:s.image)==null?void 0:I.request;if(!U||typeof U!="function"){handleFileAsBase64(y);return}o.value=y;let Q=null;try{a.value=!0,Q=U(y),i.value=Q;const V=await Q;if(i.value===Q&&o.value===y)if(V&&V.success!==!1){let L=V.url||V.data||V;try{const P=await C(y);P&&(L=P)}catch{}const D={fileName:y.name,fileSrc:L,uploadResult:V};r("update:modelValue",D),r("change",B),Vs.success("图片上传成功")}else throw new Error((V==null?void 0:V.message)||"上传失败")}catch(V){i.value===Q&&o.value===y&&(n.value&&(n.value.value=""),Vs.error(V.message||"上传失败,请重试"))}finally{i.value===Q&&(a.value=!1,i.value=null,o.value=null)}},C=B=>new Promise((y,U)=>{const I=B.size>5242880;if(B.type.startsWith("image/"))if(I){const V=new Image,R=document.createElement("canvas"),L=R.getContext("2d"),D=setTimeout(()=>{U(new Error("转换超时"))},8e3);V.onload=()=>{clearTimeout(D);try{let{width:F,height:O}=V;if(F>1920||O>1920){const j=Math.min(1920/F,1920/O);F=Math.floor(F*j),O=Math.floor(O*j)}R.width=F,R.height=O,L.drawImage(V,0,0,F,O);const W=R.toDataURL("image/jpeg",.8);y(W)}catch(S){U(S)}finally{URL.revokeObjectURL(V.src)}},V.onerror=()=>{clearTimeout(D),U(new Error("图片加载失败"))};const P=URL.createObjectURL(B);V.src=P}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}});return h.onUnmounted(()=>{i.value=null,o.value=null}),(B,y)=>{const U=h.resolveComponent("el-icon-question-filled"),Q=h.resolveComponent("el-icon"),I=h.resolveComponent("el-tooltip"),V=h.resolveComponent("el-option"),R=h.resolveComponent("el-select"),L=h.resolveComponent("el-icon-loading");return h.openBlock(),h.createElementBlock("div",f3,[t.label?(h.openBlock(),h.createElementBlock("label",h3,[h.createTextVNode(h.toDisplayString(t.label)+" ",1),t.desc?(h.openBlock(),h.createBlock(I,{key:0,placement:"top","show-arrow":!0},{content:h.withCtx(()=>[h.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,d3)]),default:h.withCtx(()=>[h.createVNode(Q,{class:"help-icon"},{default:h.withCtx(()=>[h.createVNode(U)]),_:1})]),_:1})):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),t.type==="select"?(h.openBlock(),h.createBlock(R,{key:1,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=D=>u.value=D),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",onChange:d},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,D=>(h.openBlock(),h.createBlock(V,{key:D.value,label:D.label,value:D.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:2,"onUpdate:modelValue":y[1]||(y[1]=D=>u.value=D),type:"color"},null,512)),[[h.vModelText,u.value]]):t.type==="checkbox"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:3,"onUpdate:modelValue":y[2]||(y[2]=D=>u.value=D),type:"checkbox"},null,512)),[[h.vModelCheckbox,u.value]]):t.type==="file"?(h.openBlock(),h.createElementBlock("div",p3,[h.withDirectives(h.createElementVNode("input",{type:"text","onUpdate:modelValue":y[3]||(y[3]=D=>g.value=D),placeholder:"请选择图片",class:"file-url-input",onInput:w,disabled:""},null,544),[[h.vModelText,g.value]]),h.createElementVNode("button",{type:"button",onClick:f,class:"file-select-btn",disabled:a.value},[a.value?(h.openBlock(),h.createBlock(Q,{key:0,class:"is-loading"},{default:h.withCtx(()=>[h.createVNode(L)]),_:1})):(h.openBlock(),h.createElementBlock("span",m3,h.toDisplayString(a.value?"上传中...":"选择"),1))],8,g3),h.createElementVNode("input",{type:"file",accept:t.accept,onChange:v,ref_key:"fileInput",ref:n,class:"file-input"},null,40,v3)])):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:5,"onUpdate:modelValue":y[4]||(y[4]=D=>u.value=D),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:y[5]||(y[5]=h.withModifiers(()=>{},["prevent"]))},null,40,B3)),[[h.vModelDynamic,u.value]])])}}},[["__scopeId","data-v-f3073ca9"]]),Oq="",w3={class:"property-layout-container"},y3={key:0,class:"property-item-wrapper full-width"},b3={key:1,class:"property-item-wrapper half-width"},C3={key:2,class:"property-item-wrapper default-width"},Ao=jA({__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}=h.toRefs(A),i=h.computed(()=>`${a.value}-property-panel`),o=h.computed(()=>{const f=n.value.propertyPanel;return f&&typeof f=="object"&&!Array.isArray(f)?Object.keys(f).map(w=>({prop:w,...f[w]})).filter(w=>!w.hide):Array.isArray(f)?f.filter(w=>!w.hide)||[]:[]}),s=h.computed({get:()=>A.modelValue,set:f=>r("update:modelValue",f)}),l=h.computed(()=>o.value.filter(f=>!f.showIf||s.value[f.showIf])),u=f=>{var v;if(f.options)return f.options||[];const w=JSON.parse(JSON.stringify(((v=A.options)==null?void 0:v[f==null?void 0:f.optionsKey])||[]))||[];return f!=null&&f.multiple||w.unshift({label:"无",value:" "}),w},d=f=>f.layout?f.layout:["text","file","textarea"].includes(f.type)?"full":"half",g=f=>{r("rotationChange",f)};return h.provide("config",A.propsConfig),(f,w)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(i.value)},[h.createElementVNode("div",w3,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.value,v=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:v.prop},[d(v)==="full"?(h.openBlock(),h.createElementBlock("div",y3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):d(v)==="half"?(h.openBlock(),h.createElementBlock("div",b3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(h.openBlock(),h.createElementBlock("div",C3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-862479af"]]),E3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(h.openBlock(),h.createBlock(Ao,{"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"]))}},U3={},F3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function N3(t,e){return h.openBlock(),h.createElementBlock("svg",F3,[...e[0]||(e[0]=[h.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),h.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),h.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=jA(U3,[["render",N3]]);var ud={},Fc={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});function S3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){S3(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 x3=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}}(),R3=vr,I3=V3(R3);function V3(t){return t&&t.__esModule?t:{default:t}}function M3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L3(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 O3(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 k3=function(t){O3(e,t);function e(A,r){return M3(this,e),A=A.toUpperCase(),r.mod43&&(A+=P3(W3(A))),L3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return x3(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}(I3.default),Hm=["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","-","."," ","$","/","+","%","*"],H3=[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 D3(Dm(t))}function D3(t){return H3[t].toString(2)}function P3(t){return Hm[t]}function Dm(t){return Hm.indexOf(t)}function W3(t){for(var e=0,A=0;A<t.length;A++)e+=Dm(t[A]);return e=e%43,e}Fc.CODE39=k3;var In={},hd={},ro={},aA={};Object.defineProperty(aA,"__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 Pm=aA.SET_A=0,Wm=aA.SET_B=1,_m=aA.SET_C=2;aA.SHIFT=98;var _3=aA.START_A=103,Z3=aA.START_B=104,j3=aA.START_C=105;aA.MODULO=103,aA.STOP=106,aA.FNC1=207,aA.SET_BY_CODE=(Ms={},dd(Ms,_3,Pm),dd(Ms,Z3,Wm),dd(Ms,j3,_m),Ms),aA.SWAP={101:Pm,100:Wm,99:_m},aA.A_START_CHAR=String.fromCharCode(208),aA.B_START_CHAR=String.fromCharCode(209),aA.C_START_CHAR=String.fromCharCode(210),aA.A_CHARS="[\0-_È-Ï]",aA.B_CHARS="[ -È-Ï]",aA.C_CHARS="(Ï*[0-9]{2}Ï*)",aA.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(ro,"__esModule",{value:!0});var J3=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}}(),K3=vr,G3=z3(K3),kr=aA;function z3(t){return t&&t.__esModule?t:{default:t}}function Y3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X3(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 q3(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 $3=function(t){q3(e,t);function e(A,r){Y3(this,e);var n=X3(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 J3(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}(G3.default);ro.default=$3;var pd={};Object.defineProperty(pd,"__esModule",{value:!0});var ma=aA,Zm=function(e){return e.match(new RegExp("^"+ma.A_CHARS+"*"))[0].length},jm=function(e){return e.match(new RegExp("^"+ma.B_CHARS+"*"))[0].length},Jm=function(e){return e.match(new RegExp("^"+ma.C_CHARS+"*"))[0]};function gd(t,e){var A=e?ma.A_CHARS:ma.B_CHARS,r=t.match(new RegExp("^("+A+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Km(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 Km(t){var e=Jm(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=Zm(t)>=jm(t);return e+String.fromCharCode(r?206:205)+gd(t,r)}pd.default=function(t){var e=void 0,A=Jm(t).length;if(A>=2)e=ma.C_START_CHAR+Km(t);else{var r=Zm(t)>jm(t);e=(r?ma.A_START_CHAR:ma.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 eQ=ro,tQ=Gm(eQ),AQ=pd,rQ=Gm(AQ);function Gm(t){return t&&t.__esModule?t:{default:t}}function nQ(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 aQ(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){aQ(e,t);function e(A,r){if(nQ(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,rQ.default)(A),r));else var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return md(n)}return e}(tQ.default);hd.default=iQ;var vd={};Object.defineProperty(vd,"__esModule",{value:!0});var oQ=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}}(),sQ=ro,lQ=cQ(sQ),zm=aA;function cQ(t){return t&&t.__esModule?t:{default:t}}function uQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fQ(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 hQ(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 dQ=function(t){hQ(e,t);function e(A,r){return uQ(this,e),fQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,zm.A_START_CHAR+A,r))}return oQ(e,[{key:"valid",value:function(){return new RegExp("^"+zm.A_CHARS+"+$").test(this.data)}}]),e}(lQ.default);vd.default=dQ;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var pQ=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}}(),gQ=ro,mQ=vQ(gQ),Ym=aA;function vQ(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(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.B_START_CHAR+A,r))}return pQ(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.B_CHARS+"+$").test(this.data)}}]),e}(mQ.default);Bd.default=bQ;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var CQ=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}}(),EQ=ro,UQ=FQ(EQ),Xm=aA;function FQ(t){return t&&t.__esModule?t:{default:t}}function NQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QQ(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 SQ(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 TQ=function(t){SQ(e,t);function e(A,r){return NQ(this,e),QQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.C_START_CHAR+A,r))}return CQ(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.C_CHARS+"+$").test(this.data)}}]),e}(UQ.default);wd.default=TQ,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var xQ=hd,RQ=Nc(xQ),IQ=vd,VQ=Nc(IQ),MQ=Bd,LQ=Nc(MQ),OQ=wd,kQ=Nc(OQ);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=RQ.default,In.CODE128A=VQ.default,In.CODE128B=LQ.default,In.CODE128C=kQ.default;var Nr={},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 Qc={},si={};Object.defineProperty(si,"__esModule",{value:!0});var HQ=zr,DQ=function(e,A,r){var n=e.split("").map(function(i,o){return HQ.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("")};si.default=DQ,Object.defineProperty(Qc,"__esModule",{value:!0});var PQ=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}}(),no=zr,WQ=si,qm=$m(WQ),_Q=vr,ZQ=$m(_Q);function $m(t){return t&&t.__esModule?t:{default:t}}function jQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JQ(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 KQ(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 GQ=function(t){KQ(e,t);function e(A,r){jQ(this,e);var n=JQ(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 PQ(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,qm.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,qm.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:no.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:no.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:no.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[no.SIDE_BIN,this.leftEncode(),no.MIDDLE_BIN,this.rightEncode(),no.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(ZQ.default);Qc.default=GQ,Object.defineProperty(yd,"__esModule",{value:!0});var zQ=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)}},YQ=zr,XQ=Qc,qQ=$Q(XQ);function $Q(t){return t&&t.__esModule?t:{default:t}}function eS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tS(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 AS(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 ev=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},rS=function(t){AS(e,t);function e(A,r){eS(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=ev(A));var n=tS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return zQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===ev(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=YQ.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}(qQ.default);yd.default=rS;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});var nS=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}}(),Sc=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)}},aS=Qc,iS=oS(aS);function oS(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 lS(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 cS(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,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},uS=function(t){cS(e,t);function e(A,r){return sS(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=tv(A)),lS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return nS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===tv(this.data)}},{key:"leftText",value:function(){return Sc(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 Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Sc(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 Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(iS.default);bd.default=uS;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var fS=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}}(),hS=zr,dS=si,pS=Av(dS),gS=vr,mS=Av(gS);function Av(t){return t&&t.__esModule?t:{default:t}}function vS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BS(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 wS(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 yS=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},bS=function(t){wS(e,t);function e(A,r){return vS(this,e),BS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return fS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=hS.EAN5_STRUCTURE[yS(this.data)];return{data:"1011"+(0,pS.default)(this.data,r,"01"),text:this.text}}}]),e}(mS.default);Cd.default=bS;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var CS=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}}(),ES=zr,US=si,FS=rv(US),NS=vr,QS=rv(NS);function rv(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 TS(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 RS=function(t){xS(e,t);function e(A,r){return SS(this,e),TS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return CS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=ES.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,FS.default)(this.data,r,"01"),text:this.text}}}]),e}(QS.default);Ed.default=RS;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var IS=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 VS=si,ao=nv(VS),MS=vr,LS=nv(MS);function nv(t){return t&&t.__esModule?t:{default:t}}function OS(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 HS(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 DS=function(t){HS(e,t);function e(A,r){OS(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Ud(A));var n=kS(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 IS(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,ao.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,ao.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,ao.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,ao.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,ao.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,ao.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}(LS.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=DS;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var PS=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}}(),WS=si,_S=av(WS),ZS=vr,jS=av(ZS),JS=Os;function av(t){return t&&t.__esModule?t:{default:t}}function KS(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 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=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],YS=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],XS=function(t){GS(e,t);function e(A,r){KS(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=iv(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=iv(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 PS(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=YS[parseInt(n)][parseInt(r)];return(0,_S.default)(this.middleDigits,a)}}]),e}(jS.default);function iv(t,e){for(var A=parseInt(t[t.length-1]),r=zS[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,JS.checksum)(n)}Fd.default=XS,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.UPCE=Nr.UPC=Nr.EAN2=Nr.EAN5=Nr.EAN8=Nr.EAN13=void 0;var qS=yd,$S=io(qS),eT=bd,tT=io(eT),AT=Cd,rT=io(AT),nT=Ed,aT=io(nT),iT=Os,oT=io(iT),sT=Fd,lT=io(sT);function io(t){return t&&t.__esModule?t:{default:t}}Nr.EAN13=$S.default,Nr.EAN8=tT.default,Nr.EAN5=rT.default,Nr.EAN2=aT.default,Nr.UPC=oT.default,Nr.UPCE=lT.default;var oo={},Tc={},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(Tc,"__esModule",{value:!0});var cT=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}}(),xc=ks,uT=vr,fT=hT(uT);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(){return dT(this,e),pT(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return cT(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:xc.START_BIN+n+xc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=xc.BINARIES[r[1]];return xc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(fT.default);Tc.default=mT;var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});var vT=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}}(),BT=Tc,wT=yT(BT);function yT(t){return t&&t.__esModule?t:{default:t}}function bT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CT(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 ET(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 ov=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},UT=function(t){ET(e,t);function e(A,r){return bT(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=ov(A)),CT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return vT(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===ov(this.data)}}]),e}(wT.default);Qd.default=UT,Object.defineProperty(oo,"__esModule",{value:!0}),oo.ITF14=oo.ITF=void 0;var FT=Tc,NT=sv(FT),QT=Qd,ST=sv(QT);function sv(t){return t&&t.__esModule?t:{default:t}}oo.ITF=NT.default,oo.ITF14=ST.default;var Yr={},li={};Object.defineProperty(li,"__esModule",{value:!0});var TT=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}}(),xT=vr,RT=IT(xT);function IT(t){return t&&t.__esModule?t:{default:t}}function VT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MT(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 OT=function(t){LT(e,t);function e(A,r){return VT(this,e),MT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return TT(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=kT(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}(RT.default);function kT(t,e){for(var A=0;A<e;A++)t="0"+t;return t}li.default=OT;var Sd={},ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.mod10=HT,ci.mod11=DT;function HT(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 DT(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(Sd,"__esModule",{value:!0});var PT=li,WT=ZT(PT),_T=ci;function ZT(t){return t&&t.__esModule?t:{default:t}}function jT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(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 KT(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 GT=function(t){KT(e,t);function e(A,r){return jT(this,e),JT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,_T.mod10)(A),r))}return e}(WT.default);Sd.default=GT;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var zT=li,YT=qT(zT),XT=ci;function qT(t){return t&&t.__esModule?t:{default:t}}function $T(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 tx(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 Ax=function(t){tx(e,t);function e(A,r){return $T(this,e),ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,XT.mod11)(A),r))}return e}(YT.default);Td.default=Ax;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});var rx=li,nx=ax(rx),lv=ci;function ax(t){return t&&t.__esModule?t:{default:t}}function ix(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ox(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 sx(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 lx=function(t){sx(e,t);function e(A,r){return ix(this,e),A+=(0,lv.mod10)(A),A+=(0,lv.mod10)(A),ox(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(nx.default);xd.default=lx;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var cx=li,ux=fx(cx),cv=ci;function fx(t){return t&&t.__esModule?t:{default:t}}function hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dx(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 px(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 gx=function(t){px(e,t);function e(A,r){return hx(this,e),A+=(0,cv.mod11)(A),A+=(0,cv.mod10)(A),dx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(ux.default);Rd.default=gx,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var mx=li,vx=Hs(mx),Bx=Sd,wx=Hs(Bx),yx=Td,bx=Hs(yx),Cx=xd,Ex=Hs(Cx),Ux=Rd,Fx=Hs(Ux);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=vx.default,Yr.MSI10=wx.default,Yr.MSI11=bx.default,Yr.MSI1010=Ex.default,Yr.MSI1110=Fx.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var Nx=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}}(),Qx=vr,Sx=Tx(Qx);function Tx(t){return t&&t.__esModule?t:{default:t}}function xx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rx(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 Ix(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){Ix(e,t);function e(A,r){xx(this,e);var n=Rx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return Nx(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}(Sx.default);Rc.pharmacode=Vx;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var Mx=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}}(),Lx=vr,Ox=kx(Lx);function kx(t){return t&&t.__esModule?t:{default:t}}function Hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dx(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 Px(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 Wx=function(t){Px(e,t);function e(A,r){Hx(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=Dx(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 Mx(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}(Ox.default);Ic.codabar=Wx;var so={},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 _x=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,Zx=vr,jx=Jx(Zx);function Jx(t){return t&&t.__esModule?t:{default:t}}function Kx(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 zx(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 Yx=function(t){zx(e,t);function e(A,r){return Kx(this,e),Gx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return _x(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}(jx.default);Vc.default=Yx;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var Xx=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}}(),qx=Vc,$x=eR(qx);function eR(t){return t&&t.__esModule?t:{default:t}}function tR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AR(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 rR(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 nR=function(t){rR(e,t);function e(A,r){return tR(this,e),AR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Xx(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}($x.default);Id.default=nR,Object.defineProperty(so,"__esModule",{value:!0}),so.CODE93FullASCII=so.CODE93=void 0;var aR=Vc,iR=uv(aR),oR=Id,sR=uv(oR);function uv(t){return t&&t.__esModule?t:{default:t}}so.CODE93=iR.default,so.CODE93FullASCII=sR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var lR=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}}(),cR=vr,uR=fR(cR);function fR(t){return t&&t.__esModule?t:{default:t}}function hR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dR(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 pR(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 gR=function(t){pR(e,t);function e(A,r){return hR(this,e),dR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return lR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(uR.default);Lc.GenericBarcode=gR,Object.defineProperty(ud,"__esModule",{value:!0});var mR=Fc,Oc=In,lo=Nr,fv=oo,Ps=Yr,vR=Rc,BR=Ic,hv=so,wR=Lc;ud.default={CODE39:mR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:lo.EAN13,EAN8:lo.EAN8,EAN5:lo.EAN5,EAN2:lo.EAN2,UPC:lo.UPC,UPCE:lo.UPCE,ITF14:fv.ITF14,ITF:fv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:vR.pharmacode,codabar:BR.codabar,CODE93:hv.CODE93,CODE93FullASCII:hv.CODE93FullASCII,GenericBarcode:wR.GenericBarcode};var co={};Object.defineProperty(co,"__esModule",{value:!0});var yR=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};co.default=function(t,e){return yR({},t,e)};var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=bR;function bR(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=CR;function CR(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=ER;function ER(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 UR={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=UR,Object.defineProperty(Od,"__esModule",{value:!0});var FR=kc,NR=pv(FR),QR=Hc,dv=pv(QR);function pv(t){return t&&t.__esModule?t:{default:t}}function SR(t){var e={};for(var A in dv.default)dv.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,NR.default)(e),e}Od.default=SR;var kd={},Hd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=co,xR=RR(TR);function RR(t){return t&&t.__esModule?t:{default:t}}function gv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function mv(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 IR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,xR.default)(e,n.options),i;a.displayValue?i=LR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=gv(n,a),n.barcodePadding=mv(i,o,a)}}function VR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function MR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function LR(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=MR,Hr.getEncodingHeight=gv,Hr.getBarcodePadding=mv,Hr.calculateEncodingAttributes=IR,Hr.getTotalWidthOfEncodings=VR,Object.defineProperty(Hd,"__esModule",{value:!0});var OR=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}}(),kR=co,HR=DR(kR),Dd=Hr;function DR(t){return t&&t.__esModule?t:{default:t}}function PR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var WR=function(){function t(e,A,r){PR(this,t),this.canvas=e,this.encodings=A,this.options=r}return OR(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,HR.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=WR;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var _R=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}}(),ZR=co,jR=JR(ZR),Wd=Hr;function JR(t){return t&&t.__esModule?t:{default:t}}function KR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",GR=function(){function t(e,A,r){KR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return _R(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=GR;var _d={};Object.defineProperty(_d,"__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}}();function YR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var XR=function(){function t(e,A,r){YR(this,t),this.object=e,this.encodings=A,this.options=r}return zR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();_d.default=XR,Object.defineProperty(kd,"__esModule",{value:!0});var qR=Hd,$R=Zd(qR),eI=Pd,tI=Zd(eI),AI=_d,rI=Zd(AI);function Zd(t){return t&&t.__esModule?t:{default:t}}kd.default={CanvasRenderer:$R.default,SVGRenderer:tI.default,ObjectRenderer:rI.default};var uo={};Object.defineProperty(uo,"__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 nI=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),aI=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),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="NoElementException",A.message="No element to render on.",A}return e}(Error);uo.InvalidInputException=nI,uo.InvalidElementException=aI,uo.NoElementException=iI,Object.defineProperty(Ld,"__esModule",{value:!0});var oI=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},sI=Od,Gd=vv(sI),lI=kd,Ws=vv(lI),cI=uo;function vv(t){return t&&t.__esModule?t:{default:t}}function zd(t){if(typeof t=="string")return uI(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 fI(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":oI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new cI.InvalidElementException}}function uI(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 fI(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 hI=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 dI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var pI=function(){function t(e){dI(this,t),this.api=e}return hI(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=pI;var gI=ud,ui=va(gI),mI=co,_s=va(mI),vI=Vd,Bv=va(vI),BI=Md,wv=va(BI),wI=Ld,yI=va(wI),bI=kc,CI=va(bI),EI=Yd,UI=va(EI),yv=uo,FI=Hc,bv=va(FI);function va(t){return t&&t.__esModule?t:{default:t}}var Gn=function(){},Pc=function(e,A,r){var n=new Gn;if(typeof e>"u")throw Error("No element to render on was provided.");return n._renderProperties=(0,yI.default)(e),n._encodings=[],n._options=bv.default,n._errorHandler=new UI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Uv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return ui.default[t]};for(var Cv in ui.default)ui.default.hasOwnProperty(Cv)&&NI(ui.default,Cv);function NI(t,e){Gn.prototype[e]=Gn.prototype[e.toUpperCase()]=Gn.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,CI.default)(a);var i=t[e],o=Ev(A,i,a);return n._encodings.push(o),n})}}function Ev(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new yv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,Bv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Uv(){return ui.default.CODE128?"CODE128":Object.keys(ui.default)[0]}Gn.prototype.options=function(t){return this._options=(0,_s.default)(this._options,t),this},Gn.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},Gn.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=Uv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=ui.default[A.format.toUpperCase()],a=Ev(r,n,A);Xd(t,a,A)})}}},Gn.prototype.render=function(){if(!this._renderProperties)throw new yv.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},Gn.prototype._defaults=bv.default;function Xd(t,e,A){e=(0,Bv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,wv.default)(e[r].options);(0,wv.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),Hq="",SI={__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}=Ss(A,r),i=h.ref(null);h.computed(()=>A.modelValue.__selected||!1);const o=h.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,f)=>{let w;return function(...C){const B=()=>{clearTimeout(w),g(...C)};clearTimeout(w),w=setTimeout(B,f)}},l=h.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var U,Q,I,V,R,L,D,P,S,F,O,W,j,z,q,Y;if(!i.value)return;const g=di((Q=(U=A.propsConfig)==null?void 0:U.barcode)==null?void 0:Q.propertyPanel)||{};let f=((I=A.modelValue)==null?void 0:I.BarcodeValue)||g.BarcodeValue||"";if(!f&&((V=A.modelValue)!=null&&V.FieldName))if(Array.isArray(A.modelValue.FieldName)){const Ae=A.modelValue.FieldName.map(ee=>{var ce,N,H,J;return((J=(H=(N=(ce=A.modelValue)==null?void 0:ce.options)==null?void 0:N.fields)==null?void 0:H.find(G=>G.value==ee))==null?void 0:J.label)||ee}).filter(ee=>ee);if(Ae.length>0){const ee=A.modelValue.FieldConnector||" ";f=Ae.join(ee)}}else f=((P=(D=(L=(R=A.modelValue)==null?void 0:R.options)==null?void 0:L.fields)==null?void 0:D.find(Ae=>{var ee;return Ae.value==((ee=A.modelValue)==null?void 0:ee.FieldName)}))==null?void 0:P.label)||((S=A.modelValue)==null?void 0:S.FieldName)||"";const w=((F=A.modelValue)==null?void 0:F.CodeType)||g.CodeType||"",v=A.modelValue.LineColor||g.LineColor,C=((Y=(q=(z=(j=(W=(O=A.propsConfig)==null?void 0:O.barcode)==null?void 0:W.propertyPanel)==null?void 0:j.find(Ae=>Ae.prop==="CodeType"))==null?void 0:z.options)==null?void 0:q.find(Ae=>Ae.value===w))==null?void 0:Y.compValue)||"",B={value:f,type:w,lineColor:v,codeType:C};if(JSON.stringify(B)!==JSON.stringify(l.value)){l.value=B;try{const Ae=i.value;Ae.innerHTML="",qd(Ae,f,{format:C,width:2,displayValue:!1,margin:0,lineColor:v,height:50,background:"transparent"}),h.nextTick(()=>{if(Ae){const ee=Ae.getBBox();if(ee.width>0&&ee.height>0){const ce=`${ee.x} ${ee.y} ${ee.width} ${ee.height}`;Ae.setAttribute("viewBox",ce),Ae.style.width="100%",Ae.style.height="100%",Ae.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return h.onMounted(()=>{u(),a(),n()}),h.watch(()=>A.modelValue,()=>d(),{deep:!0}),h.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,f)=>(h.openBlock(),h.createElementBlock("div",{class:"barcode-component",style:h.normalizeStyle(o.value)},[(h.openBlock(),h.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)=>(h.openBlock(),h.createBlock(Ao,{"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"]))}},xI={},RI={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function II(t,e){return h.openBlock(),h.createElementBlock("svg",RI,[...e[0]||(e[0]=[h.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),h.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 VI=jA(xI,[["render",II]]),Ba=t=>t*3.7795275591,fo=t=>t/3.7795275591;var wa={},MI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Fv={},Dr={};let $d;const LI=[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 LI[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.');$d=e},Dr.isKanjiModeEnabled=function(){return typeof $d<"u"},Dr.toSJIS=function(e){return $d(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 Nv(){this.buffer=[],this.length=0}Nv.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 OI=Nv;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 kI=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 Sv={};const HI=Dr.getSymbolSize,Tv=7;Sv.getPositions=function(e){const A=HI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var xv={};(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 f=n.get(d,g);f===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=f,o=1),f=n.get(g,d),f===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=f,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}})(xv);var _c={};const ya=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 ya.L:return Zc[(e-1)*4+0];case ya.M:return Zc[(e-1)*4+1];case ya.Q:return Zc[(e-1)*4+2];case ya.H:return Zc[(e-1)*4+3];default:return}},_c.getTotalCodewordsCount=function(e,A){switch(A){case ya.L:return jc[(e-1)*4+0];case ya.M:return jc[(e-1)*4+1];case ya.Q:return jc[(e-1)*4+2];case ya.H:return jc[(e-1)*4+3];default:return}};var Rv={},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}}(Rv);const Iv=Rv;function e0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}e0.prototype.initialize=function(e){this.degree=e,this.genPoly=Iv.generateECPolynomial(this.degree)},e0.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=Iv.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 DI=e0,Vv={},ba={},t0={};t0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Mv="[0-9]+",PI="[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 WI="(?:(?![A-Z0-9 $%*+\\-./:]|"+Js+`)(?:.|[\r
|
|
5
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const CF=Object.prototype.hasOwnProperty,Xh=(t,e)=>CF.call(t,e),bc=t=>typeof t=="function",Ts=t=>typeof t=="string",em=t=>t!==null&&typeof t=="object";var EF=typeof global=="object"&&global&&global.Object===Object&&global;const UF=EF;var FF=typeof self=="object"&&self&&self.Object===Object&&self,NF=UF||FF||Function("return this")();const qh=NF;var QF=qh.Symbol;const Xi=QF;var tm=Object.prototype,SF=tm.hasOwnProperty,TF=tm.toString,xs=Xi?Xi.toStringTag:void 0;function xF(t){var e=SF.call(t,xs),A=t[xs];try{t[xs]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[xs]=A:delete t[xs]),n}var RF=Object.prototype,IF=RF.toString;function VF(t){return IF.call(t)}var MF="[object Null]",LF="[object Undefined]",Am=Xi?Xi.toStringTag:void 0;function rm(t){return t==null?t===void 0?LF:MF:Am&&Am in Object(t)?xF(t):VF(t)}function OF(t){return t!=null&&typeof t=="object"}var kF="[object Symbol]";function $h(t){return typeof t=="symbol"||OF(t)&&rm(t)==kF}function HF(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 DF=Array.isArray;const ed=DF;var PF=1/0,nm=Xi?Xi.prototype:void 0,am=nm?nm.toString:void 0;function im(t){if(typeof t=="string")return t;if(ed(t))return HF(t,im)+"";if($h(t))return am?am.call(t):"";var e=t+"";return e=="0"&&1/t==-PF?"-0":e}function om(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var WF="[object AsyncFunction]",_F="[object Function]",ZF="[object GeneratorFunction]",jF="[object Proxy]";function JF(t){if(!om(t))return!1;var e=rm(t);return e==_F||e==ZF||e==WF||e==jF}var KF=qh["__core-js_shared__"];const td=KF;var sm=function(){var t=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function GF(t){return!!sm&&sm in t}var zF=Function.prototype,YF=zF.toString;function XF(t){if(t!=null){try{return YF.call(t)}catch{}try{return t+""}catch{}}return""}var qF=/[\\^$.*+?()[\]{}|]/g,$F=/^\[object .+?Constructor\]$/,e4=Function.prototype,t4=Object.prototype,A4=e4.toString,r4=t4.hasOwnProperty,n4=RegExp("^"+A4.call(r4).replace(qF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a4(t){if(!om(t)||GF(t))return!1;var e=JF(t)?n4:$F;return e.test(XF(t))}function i4(t,e){return t==null?void 0:t[e]}function lm(t,e){var A=i4(t,e);return a4(A)?A:void 0}function o4(t,e){return t===e||t!==t&&e!==e}var s4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l4=/^\w*$/;function c4(t,e){if(ed(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||$h(t)?!0:l4.test(t)||!s4.test(t)||e!=null&&t in Object(e)}var u4=lm(Object,"create");const Rs=u4;function f4(){this.__data__=Rs?Rs(null):{},this.size=0}function h4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var d4="__lodash_hash_undefined__",p4=Object.prototype,g4=p4.hasOwnProperty;function m4(t){var e=this.__data__;if(Rs){var A=e[t];return A===d4?void 0:A}return g4.call(e,t)?e[t]:void 0}var v4=Object.prototype,B4=v4.hasOwnProperty;function w4(t){var e=this.__data__;return Rs?e[t]!==void 0:B4.call(e,t)}var y4="__lodash_hash_undefined__";function b4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?y4:e,this}function ni(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])}}ni.prototype.clear=f4,ni.prototype.delete=h4,ni.prototype.get=m4,ni.prototype.has=w4,ni.prototype.set=b4;function C4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(o4(t[A][0],e))return A;return-1}var E4=Array.prototype,U4=E4.splice;function F4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():U4.call(e,A,1),--this.size,!0}function N4(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 S4(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 qi(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])}}qi.prototype.clear=C4,qi.prototype.delete=F4,qi.prototype.get=N4,qi.prototype.has=Q4,qi.prototype.set=S4;var T4=lm(qh,"Map");const x4=T4;function R4(){this.size=0,this.__data__={hash:new ni,map:new(x4||qi),string:new ni}}function I4(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 I4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function V4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function M4(t){return Ec(this,t).get(t)}function L4(t){return Ec(this,t).has(t)}function O4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,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=R4,ai.prototype.delete=V4,ai.prototype.get=M4,ai.prototype.has=L4,ai.prototype.set=O4;var k4="Expected a function";function Ad(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(k4);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||ai),A}Ad.Cache=ai;var H4=500;function D4(t){var e=Ad(t,function(r){return A.size===H4&&A.clear(),r}),A=e.cache;return e}var P4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W4=/\\(\\)?/g,_4=D4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(P4,function(A,r,n,a){e.push(n?a.replace(W4,"$1"):r||A)}),e});const Z4=_4;function j4(t){return t==null?"":im(t)}function J4(t,e){return ed(t)?t:c4(t,e)?[t]:Z4(j4(t))}var K4=1/0;function G4(t){if(typeof t=="string"||$h(t))return t;var e=t+"";return e=="0"&&1/t==-K4?"-0":e}function z4(t,e){e=J4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[G4(e[A++])];return A&&A==r?t:void 0}function Y4(t,e,A){var r=t==null?void 0:z4(t,e);return r===void 0?A:r}function X4(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 q4=t=>t===void 0,rd=t=>typeof t=="boolean",ii=t=>typeof t=="number",$4=t=>typeof Element>"u"?!1:t instanceof Element,eN=t=>Ts(t)?!Number.isNaN(Number(t)):!1;var cm;const $i=typeof window<"u",tN=t=>typeof t=="string",AN=()=>{};$i&&((cm=window==null?void 0:window.navigator)!=null&&cm.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nd(t){return typeof t=="function"?t():h.unref(t)}function rN(t){return t}function ad(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function nN(t,e=!0){h.getCurrentInstance()?h.onMounted(t):e?t():h.nextTick(t)}function aN(t,e,A={}){const{immediate:r=!0}=A,n=h.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,$i&&s()),ad(o),{isPending:h.readonly(n),start:s,stop:o}}function um(t){var e;const A=nd(t);return(e=A==null?void 0:A.$el)!=null?e:A}const fm=$i?window:void 0;function iN(...t){let e,A,r,n;if(tN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=fm):[e,A,r,n]=t,!e)return AN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,f)=>(u.addEventListener(d,g,f),()=>u.removeEventListener(d,g,f)),s=h.watch(()=>[um(e),nd(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(f=>o(u,g,f,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return ad(l),l}function oN(t,e=!1){const A=h.ref(),r=()=>A.value=!!t();return r(),nN(r,e),A}const hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dm="__vueuse_ssr_handlers__";hm[dm]=hm[dm]||{};var pm=Object.getOwnPropertySymbols,sN=Object.prototype.hasOwnProperty,lN=Object.prototype.propertyIsEnumerable,cN=(t,e)=>{var A={};for(var r in t)sN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&pm)for(var r of pm(t))e.indexOf(r)<0&&lN.call(t,r)&&(A[r]=t[r]);return A};function uN(t,e,A={}){const r=A,{window:n=fm}=r,a=cN(r,["window"]);let i;const o=oN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=h.watch(()=>um(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 gm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(gm||(gm={}));var fN=Object.defineProperty,mm=Object.getOwnPropertySymbols,hN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,vm=(t,e,A)=>e in t?fN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,pN=(t,e)=>{for(var A in e||(e={}))hN.call(e,A)&&vm(t,A,e[A]);if(mm)for(var A of mm(e))dN.call(e,A)&&vm(t,A,e[A]);return t};pN({linear:rN},{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 Bm={current:0},wm=h.ref(0),ym=2e3,bm=Symbol("elZIndexContextKey"),Cm=Symbol("zIndexContextKey"),gN=t=>{const e=h.getCurrentInstance()?h.inject(bm,Bm):Bm,A=t||(h.getCurrentInstance()?h.inject(Cm,void 0):void 0),r=h.computed(()=>{const i=h.unref(A);return ii(i)?i:ym}),n=h.computed(()=>r.value+wm.value),a=()=>(e.current++,wm.value=e.current,n.value);return!$i&&h.inject(bm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var mN={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 vN=t=>(e,A)=>BN(e,A,h.unref(t)),BN=(t,e,A)=>Y4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),wN=t=>{const e=h.computed(()=>h.unref(t).name),A=h.isRef(t)?t:h.ref(t);return{lang:e,locale:A,t:vN(t)}},Em=Symbol("localeContextKey"),yN=t=>{const e=t||h.inject(Em,h.ref());return wN(h.computed(()=>e.value||mN))},Um="__epPropKey",Fr=t=>t,bN=t=>em(t)&&!!t[Um],Fm=(t,e)=>{if(!em(t)||bN(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(f=>JSON.stringify(f)).join(", ");h.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Um]:!0};return Xh(t,"default")&&(s.default=n),s},Is=t=>X4(Object.entries(t).map(([e,A])=>[e,Fm(A,e)])),CN=Fm({type:String,values:["","default","small","large"],required:!1}),EN=Symbol("size"),UN=Symbol("emptyValuesContextKey"),FN=Is({emptyValues:Array,valueOnClear:{type:Fr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Nm=t=>Object.keys(t),Uc=h.ref();function Qm(t,e=void 0){const A=h.getCurrentInstance()?h.inject(q2,Uc):Uc;return t?h.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function NN(t,e){const A=Qm(),r=Yh(t,h.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=yN(h.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=gN(h.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||ym})),i=h.computed(()=>{var o;return h.unref(e)||((o=A.value)==null?void 0:o.size)||""});return Sm(h.computed(()=>h.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const Sm=(t,e,A=!1)=>{var r;const n=!!h.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?h.provide:void 0;if(!i)return;const o=h.computed(()=>{const s=h.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i(q2,o),i(Em,h.computed(()=>o.value.locale)),i($2,h.computed(()=>o.value.namespace)),i(Cm,h.computed(()=>o.value.zIndex)),i(EN,{size:h.computed(()=>o.value.size||"")}),i(UN,h.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Nm(t),...Nm(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(ii(t)||eN(t))return`${t}${e}`;if(Ts(t))return t}function Vq(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},SN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Fr([Number,String])},color:{type:String}}),xN=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),RN=h.defineComponent({...xN,props:TN,setup(t){const e=t,A=Yh("icon"),r=h.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:q4(n)?void 0:od(n),"--color":a}});return(n,a)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(A).b(),style:h.unref(r)},n.$attrs),[h.renderSlot(n.$slots,"default")],16))}});var IN=id(RN,[["__file","icon.vue"]]);const xm=Tm(IN);/*! Element Plus Icons Vue v2.3.2 */var VN=h.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),Rm=VN,MN=h.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),LN=MN,ON=h.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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=ON,kN=h.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),Im=kN,HN=h.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.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"})]))}}),Vm=HN;const DN=Fr([String,Object,Function]),PN={Close:LN,SuccessFilled:Im,InfoFilled:sd,WarningFilled:Vm,CircleCloseFilled:Rm},Mm={primary:sd,success:Im,warning:Vm,error:Rm,info:sd},WN=t=>t,_N={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"},ZN=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:Fr([String,Object,Array])},offset:{type:Fr(Array),default:[0,0]},badgeClass:{type:String}}),jN=h.defineComponent({name:"ElBadge"}),JN=h.defineComponent({...jN,props:ZN,setup(t,{expose:e}){const A=t,r=Yh("badge"),n=h.computed(()=>A.isDot?"":ii(A.value)&&ii(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=h.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)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(r).b())},[h.renderSlot(i.$slots,"default"),h.createVNode(h.Transition,{name:`${h.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("sup",{class:h.normalizeClass([h.unref(r).e("content"),h.unref(r).em("content",i.type),h.unref(r).is("fixed",!!i.$slots.default),h.unref(r).is("dot",i.isDot),h.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:h.normalizeStyle(h.unref(a))},[h.renderSlot(i.$slots,"content",{value:h.unref(n)},()=>[h.createTextVNode(h.toDisplayString(h.unref(n)),1)])],6),[[h.vShow,!i.hidden&&(h.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var KN=id(JN,[["__file","badge.vue"]]);const GN=Tm(KN);var eo=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 zN=Is({a11y:{type:Boolean,default:!0},locale:{type:Fr(Object)},size:CN,button:{type:Fr(Object)},card:{type:Fr(Object)},dialog:{type:Fr(Object)},link:{type:Fr(Object)},experimentalFeatures:{type:Fr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Fr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...FN}),nr={placement:"top"};h.defineComponent({name:"ElConfigProvider",props:zN,setup(t,{slots:e}){const A=Sm(t);return h.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}),()=>h.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Lm=["primary","success","info","warning","error"],Om=["top","top-left","top-right","bottom","bottom-left","bottom-right"],to="top",ar=WN({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:$i?document.body:void 0}),YN=Is({customClass:{type:String,default:ar.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ar.dangerouslyUseHTMLString},duration:{type:Number,default:ar.duration},icon:{type:DN,default:ar.icon},id:{type:String,default:ar.id},message:{type:Fr([String,Object,Function]),default:ar.message},onClose:{type:Fr(Function),default:ar.onClose},showClose:{type:Boolean,default:ar.showClose},type:{type:String,values:Lm,default:ar.type},plain:{type:Boolean,default:ar.plain},offset:{type:Number,default:ar.offset},placement:{type:String,values:Om,default:ar.placement},zIndex:{type:Number,default:ar.zIndex},grouping:{type:Boolean,default:ar.grouping},repeatNum:{type:Number,default:ar.repeatNum}}),XN={destroy:()=>!0},fn=h.shallowReactive({}),qN=t=>(fn[t]||(fn[t]=h.shallowReactive([])),fn[t]),$N=(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}},e3=(t,e)=>{const{prev:A}=$N(t,e);return A?A.vm.exposed.bottom.value:0},t3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,A3=h.defineComponent({name:"ElMessage"}),r3=h.defineComponent({...A3,props:YN,emits:XN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=PN,a=h.ref(!1),{ns:i,zIndex:o}=NN("message"),{currentZIndex:s,nextZIndex:l}=o,u=h.ref(),d=h.ref(!1),g=h.ref(0);let f;const w=h.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),v=h.computed(()=>{const F=r.type;return{[i.bm("icon",F)]:F&&Mm[F]}}),C=h.computed(()=>r.icon||Mm[r.type]||""),B=h.computed(()=>r.placement||to),y=h.computed(()=>e3(r.id,B.value)),U=h.computed(()=>t3(r.id,r.offset,B.value)+y.value),Q=h.computed(()=>g.value+U.value),I=h.computed(()=>B.value.includes("left")?i.is("left"):B.value.includes("right")?i.is("right"):i.is("center")),V=h.computed(()=>B.value.startsWith("top")?"top":"bottom"),R=h.computed(()=>({[V.value]:`${U.value}px`,zIndex:s.value}));function L(){r.duration!==0&&({stop:f}=aN(()=>{P()},r.duration))}function D(){f==null||f()}function P(){d.value=!1,h.nextTick(()=>{var F;a.value||((F=r.onClose)==null||F.call(r),A("destroy"))})}function S({code:F}){F===_N.esc&&P()}return h.onMounted(()=>{L(),l(),d.value=!0}),h.watch(()=>r.repeatNum,()=>{D(),L()}),iN(document,"keydown",S),uN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:Q,close:P}),(F,O)=>(h.openBlock(),h.createBlock(h.Transition,{name:h.unref(i).b("fade"),onBeforeEnter:W=>a.value=!0,onBeforeLeave:F.onClose,onAfterLeave:W=>F.$emit("destroy"),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:u,class:h.normalizeClass([h.unref(i).b(),{[h.unref(i).m(F.type)]:F.type},h.unref(i).is("closable",F.showClose),h.unref(i).is("plain",F.plain),h.unref(i).is("bottom",h.unref(V)==="bottom"),h.unref(I),F.customClass]),style:h.normalizeStyle(h.unref(R)),role:"alert",onMouseenter:D,onMouseleave:L},[F.repeatNum>1?(h.openBlock(),h.createBlock(h.unref(GN),{key:0,value:F.repeatNum,type:h.unref(w),class:h.normalizeClass(h.unref(i).e("badge"))},null,8,["value","type","class"])):h.createCommentVNode("v-if",!0),h.unref(C)?(h.openBlock(),h.createBlock(h.unref(xm),{key:1,class:h.normalizeClass([h.unref(i).e("icon"),h.unref(v)])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(C))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),h.createElementVNode("p",{class:h.normalizeClass(h.unref(i).e("content")),innerHTML:F.message},null,10,["innerHTML"])],2112)):(h.openBlock(),h.createElementBlock("p",{key:0,class:h.normalizeClass(h.unref(i).e("content"))},h.toDisplayString(F.message),3))]),F.showClose?(h.openBlock(),h.createBlock(h.unref(xm),{key:2,class:h.normalizeClass(h.unref(i).e("closeBtn")),onClick:h.withModifiers(P,["stop"])},{default:h.withCtx(()=>[h.createVNode(h.unref(n))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0)],46,["id"]),[[h.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var n3=id(r3,[["__file","message.vue"]]);let a3=1;const i3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Ts(t.appendTo)){let A=document.querySelector(t.appendTo);$4(A)||(A=document.body),t.appendTo=A}},o3=t=>{!t.placement&&Ts(nr.placement)&&nr.placement&&(t.placement=nr.placement),t.placement||(t.placement=to),Om.includes(t.placement)||(`${t.placement}${to}`,t.placement=to)},km=t=>{const e=!t||Ts(t)||h.isVNode(t)||bc(t)?{message:t}:t,A={...ar,...e};return i3(A),o3(A),rd(nr.grouping)&&!A.grouping&&(A.grouping=nr.grouping),ii(nr.duration)&&A.duration===3e3&&(A.duration=nr.duration),ii(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},s3=t=>{const e=t.props.placement||to,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},l3=({appendTo:t,...e},A)=>{const r=`message_${a3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),s3(u)},onDestroy:()=>{h.render(null,a)}},o=h.createVNode(n3,i,bc(i.message)||h.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||oi._context,h.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},oi=(t={},e)=>{if(!$i)return{close:()=>{}};const A=km(t),r=qN(A.placement||to);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(ii(nr.max)&&r.length>=nr.max)return{close:()=>{}};const n=l3(A,e);return r.push(n),n.handler};Lm.forEach(t=>{oi[t]=(e={},A)=>{const r=km(e);return oi({...r,type:t},A)}});function c3(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 u3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}oi.closeAll=c3,oi.closeAllByPlacement=u3,oi._context=null;const Vs=SN(oi,"$message"),Mq="",jA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},f3={class:"property-item"},h3={key:0,class:"label"},d3=["innerHTML"],p3={key:4,class:"file-input-container"},g3=["disabled"],m3={key:1},v3=["accept"],B3=["type","min","max","step"],cd=jA({__name:"PropertyItem",props:{label: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=h.ref(null),a=h.ref(!1),i=h.ref(null),o=h.ref(null),s=h.inject("config",{}),l=(B="")=>{var y,U;return((U=(y=A.options)==null?void 0:y.find(Q=>(Q==null?void 0:Q.value)==B))==null?void 0:U.value)??" "},u=h.computed({get:()=>{const B=A.modelValue;if(A.type==="select"){if(!A.multiple)return l(B);if(typeof B=="string"){let y=l(B);return y=y&&y.trim()?[y]:[],y}return Array.isArray(B)?B.map(U=>l(U)):[]}return B},set:B=>{A.type==="select"&&A.multiple?Array.isArray(B)&&B.length===1?r("update:modelValue",B[0]):Array.isArray(B)&&B.length>1?r("update:modelValue",B):r("update:modelValue",""):r("update:modelValue",B)}}),d=B=>{r("change",B),A.label==="旋转角度"&&typeof B=="number"&&r("rotationChange",B)},g=h.computed({get:()=>u.value?typeof u.value=="object"&&u.value.fileSrc?u.value.fileSrc.startsWith("http://")||u.value.fileSrc.startsWith("https://")?u.value.fileSrc:u.value.fileSrc.startsWith("data:")?u.value.fileName||"已选择的图片":u.value.fileName||u.value.fileSrc:typeof u.value=="string"&&u.value.startsWith("data:")?"已选择的图片":u.value:"",set:B=>{u.value=B}}),f=()=>{n.value&&!a.value&&n.value.click()},w=B=>{const y=B.target.value.trim();y?y.startsWith("http://")||y.startsWith("https://")||y.startsWith("data:")?u.value=y:y.startsWith("data:")||(u.value=y):u.value=""},v=async B=>{var I;const y=B.target.files[0];if(!y)return;if(A.accept&&!y.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const U=(I=s==null?void 0:s.image)==null?void 0:I.request;if(!U||typeof U!="function"){handleFileAsBase64(y);return}o.value=y;let Q=null;try{a.value=!0,Q=U(y),i.value=Q;const V=await Q;if(i.value===Q&&o.value===y)if(V&&V.success!==!1){let L=V.url||V.data||V;try{const P=await C(y);P&&(L=P)}catch{}const D={fileName:y.name,fileSrc:L,uploadResult:V};r("update:modelValue",D),r("change",B),Vs.success("图片上传成功")}else throw new Error((V==null?void 0:V.message)||"上传失败")}catch(V){i.value===Q&&o.value===y&&(n.value&&(n.value.value=""),Vs.error(V.message||"上传失败,请重试"))}finally{i.value===Q&&(a.value=!1,i.value=null,o.value=null)}},C=B=>new Promise((y,U)=>{const I=B.size>5242880;if(B.type.startsWith("image/"))if(I){const V=new Image,R=document.createElement("canvas"),L=R.getContext("2d"),D=setTimeout(()=>{U(new Error("转换超时"))},8e3);V.onload=()=>{clearTimeout(D);try{let{width:F,height:O}=V;if(F>1920||O>1920){const j=Math.min(1920/F,1920/O);F=Math.floor(F*j),O=Math.floor(O*j)}R.width=F,R.height=O,L.drawImage(V,0,0,F,O);const W=R.toDataURL("image/jpeg",.8);y(W)}catch(S){U(S)}finally{URL.revokeObjectURL(V.src)}},V.onerror=()=>{clearTimeout(D),U(new Error("图片加载失败"))};const P=URL.createObjectURL(B);V.src=P}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}});return h.onUnmounted(()=>{i.value=null,o.value=null}),(B,y)=>{const U=h.resolveComponent("el-icon-question-filled"),Q=h.resolveComponent("el-icon"),I=h.resolveComponent("el-tooltip"),V=h.resolveComponent("el-option"),R=h.resolveComponent("el-select"),L=h.resolveComponent("el-icon-loading");return h.openBlock(),h.createElementBlock("div",f3,[t.label?(h.openBlock(),h.createElementBlock("label",h3,[h.createTextVNode(h.toDisplayString(t.label)+" ",1),t.desc?(h.openBlock(),h.createBlock(I,{key:0,placement:"top","show-arrow":!0},{content:h.withCtx(()=>[h.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,d3)]),default:h.withCtx(()=>[h.createVNode(Q,{class:"help-icon"},{default:h.withCtx(()=>[h.createVNode(U)]),_:1})]),_:1})):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),t.type==="select"?(h.openBlock(),h.createBlock(R,{key:1,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=D=>u.value=D),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",filterable:"",onChange:d},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,D=>(h.openBlock(),h.createBlock(V,{key:D.value,label:D.label,value:D.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:2,"onUpdate:modelValue":y[1]||(y[1]=D=>u.value=D),type:"color"},null,512)),[[h.vModelText,u.value]]):t.type==="checkbox"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:3,"onUpdate:modelValue":y[2]||(y[2]=D=>u.value=D),type:"checkbox"},null,512)),[[h.vModelCheckbox,u.value]]):t.type==="file"?(h.openBlock(),h.createElementBlock("div",p3,[h.withDirectives(h.createElementVNode("input",{type:"text","onUpdate:modelValue":y[3]||(y[3]=D=>g.value=D),placeholder:"请选择图片",class:"file-url-input",onInput:w,disabled:""},null,544),[[h.vModelText,g.value]]),h.createElementVNode("button",{type:"button",onClick:f,class:"file-select-btn",disabled:a.value},[a.value?(h.openBlock(),h.createBlock(Q,{key:0,class:"is-loading"},{default:h.withCtx(()=>[h.createVNode(L)]),_:1})):(h.openBlock(),h.createElementBlock("span",m3,h.toDisplayString(a.value?"上传中...":"选择"),1))],8,g3),h.createElementVNode("input",{type:"file",accept:t.accept,onChange:v,ref_key:"fileInput",ref:n,class:"file-input"},null,40,v3)])):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:5,"onUpdate:modelValue":y[4]||(y[4]=D=>u.value=D),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:y[5]||(y[5]=h.withModifiers(()=>{},["prevent"]))},null,40,B3)),[[h.vModelDynamic,u.value]])])}}},[["__scopeId","data-v-16072986"]]),Oq="",w3={class:"property-layout-container"},y3={key:0,class:"property-item-wrapper full-width"},b3={key:1,class:"property-item-wrapper half-width"},C3={key:2,class:"property-item-wrapper default-width"},Ao=jA({__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}=h.toRefs(A),i=h.computed(()=>`${a.value}-property-panel`),o=h.computed(()=>{const f=n.value.propertyPanel;return f&&typeof f=="object"&&!Array.isArray(f)?Object.keys(f).map(w=>({prop:w,...f[w]})).filter(w=>!w.hide):Array.isArray(f)?f.filter(w=>!w.hide)||[]:[]}),s=h.computed({get:()=>A.modelValue,set:f=>r("update:modelValue",f)}),l=h.computed(()=>o.value.filter(f=>!f.showIf||s.value[f.showIf])),u=f=>{var v;if(f.options)return f.options||[];const w=JSON.parse(JSON.stringify(((v=A.options)==null?void 0:v[f==null?void 0:f.optionsKey])||[]))||[];return f!=null&&f.multiple||w.unshift({label:"无",value:" "}),w},d=f=>f.layout?f.layout:["text","file","textarea"].includes(f.type)?"full":"half",g=f=>{r("rotationChange",f)};return h.provide("config",A.propsConfig),(f,w)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(i.value)},[h.createElementVNode("div",w3,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.value,v=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:v.prop},[d(v)==="full"?(h.openBlock(),h.createElementBlock("div",y3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):d(v)==="half"?(h.openBlock(),h.createElementBlock("div",b3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(h.openBlock(),h.createElementBlock("div",C3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-862479af"]]),E3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(h.openBlock(),h.createBlock(Ao,{"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"]))}},U3={},F3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function N3(t,e){return h.openBlock(),h.createElementBlock("svg",F3,[...e[0]||(e[0]=[h.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),h.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),h.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=jA(U3,[["render",N3]]);var ud={},Fc={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});function S3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){S3(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 x3=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}}(),R3=vr,I3=V3(R3);function V3(t){return t&&t.__esModule?t:{default:t}}function M3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L3(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 O3(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 k3=function(t){O3(e,t);function e(A,r){return M3(this,e),A=A.toUpperCase(),r.mod43&&(A+=P3(W3(A))),L3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return x3(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}(I3.default),Hm=["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","-","."," ","$","/","+","%","*"],H3=[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 D3(Dm(t))}function D3(t){return H3[t].toString(2)}function P3(t){return Hm[t]}function Dm(t){return Hm.indexOf(t)}function W3(t){for(var e=0,A=0;A<t.length;A++)e+=Dm(t[A]);return e=e%43,e}Fc.CODE39=k3;var In={},hd={},ro={},aA={};Object.defineProperty(aA,"__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 Pm=aA.SET_A=0,Wm=aA.SET_B=1,_m=aA.SET_C=2;aA.SHIFT=98;var _3=aA.START_A=103,Z3=aA.START_B=104,j3=aA.START_C=105;aA.MODULO=103,aA.STOP=106,aA.FNC1=207,aA.SET_BY_CODE=(Ms={},dd(Ms,_3,Pm),dd(Ms,Z3,Wm),dd(Ms,j3,_m),Ms),aA.SWAP={101:Pm,100:Wm,99:_m},aA.A_START_CHAR=String.fromCharCode(208),aA.B_START_CHAR=String.fromCharCode(209),aA.C_START_CHAR=String.fromCharCode(210),aA.A_CHARS="[\0-_È-Ï]",aA.B_CHARS="[ -È-Ï]",aA.C_CHARS="(Ï*[0-9]{2}Ï*)",aA.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(ro,"__esModule",{value:!0});var J3=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}}(),K3=vr,G3=z3(K3),kr=aA;function z3(t){return t&&t.__esModule?t:{default:t}}function Y3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X3(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 q3(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 $3=function(t){q3(e,t);function e(A,r){Y3(this,e);var n=X3(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 J3(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}(G3.default);ro.default=$3;var pd={};Object.defineProperty(pd,"__esModule",{value:!0});var ma=aA,Zm=function(e){return e.match(new RegExp("^"+ma.A_CHARS+"*"))[0].length},jm=function(e){return e.match(new RegExp("^"+ma.B_CHARS+"*"))[0].length},Jm=function(e){return e.match(new RegExp("^"+ma.C_CHARS+"*"))[0]};function gd(t,e){var A=e?ma.A_CHARS:ma.B_CHARS,r=t.match(new RegExp("^("+A+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Km(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 Km(t){var e=Jm(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=Zm(t)>=jm(t);return e+String.fromCharCode(r?206:205)+gd(t,r)}pd.default=function(t){var e=void 0,A=Jm(t).length;if(A>=2)e=ma.C_START_CHAR+Km(t);else{var r=Zm(t)>jm(t);e=(r?ma.A_START_CHAR:ma.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 eQ=ro,tQ=Gm(eQ),AQ=pd,rQ=Gm(AQ);function Gm(t){return t&&t.__esModule?t:{default:t}}function nQ(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 aQ(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){aQ(e,t);function e(A,r){if(nQ(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,rQ.default)(A),r));else var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return md(n)}return e}(tQ.default);hd.default=iQ;var vd={};Object.defineProperty(vd,"__esModule",{value:!0});var oQ=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}}(),sQ=ro,lQ=cQ(sQ),zm=aA;function cQ(t){return t&&t.__esModule?t:{default:t}}function uQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fQ(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 hQ(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 dQ=function(t){hQ(e,t);function e(A,r){return uQ(this,e),fQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,zm.A_START_CHAR+A,r))}return oQ(e,[{key:"valid",value:function(){return new RegExp("^"+zm.A_CHARS+"+$").test(this.data)}}]),e}(lQ.default);vd.default=dQ;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var pQ=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}}(),gQ=ro,mQ=vQ(gQ),Ym=aA;function vQ(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(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.B_START_CHAR+A,r))}return pQ(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.B_CHARS+"+$").test(this.data)}}]),e}(mQ.default);Bd.default=bQ;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var CQ=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}}(),EQ=ro,UQ=FQ(EQ),Xm=aA;function FQ(t){return t&&t.__esModule?t:{default:t}}function NQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QQ(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 SQ(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 TQ=function(t){SQ(e,t);function e(A,r){return NQ(this,e),QQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.C_START_CHAR+A,r))}return CQ(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.C_CHARS+"+$").test(this.data)}}]),e}(UQ.default);wd.default=TQ,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var xQ=hd,RQ=Nc(xQ),IQ=vd,VQ=Nc(IQ),MQ=Bd,LQ=Nc(MQ),OQ=wd,kQ=Nc(OQ);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=RQ.default,In.CODE128A=VQ.default,In.CODE128B=LQ.default,In.CODE128C=kQ.default;var Nr={},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 Qc={},si={};Object.defineProperty(si,"__esModule",{value:!0});var HQ=zr,DQ=function(e,A,r){var n=e.split("").map(function(i,o){return HQ.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("")};si.default=DQ,Object.defineProperty(Qc,"__esModule",{value:!0});var PQ=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}}(),no=zr,WQ=si,qm=$m(WQ),_Q=vr,ZQ=$m(_Q);function $m(t){return t&&t.__esModule?t:{default:t}}function jQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JQ(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 KQ(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 GQ=function(t){KQ(e,t);function e(A,r){jQ(this,e);var n=JQ(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 PQ(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,qm.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,qm.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:no.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:no.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:no.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[no.SIDE_BIN,this.leftEncode(),no.MIDDLE_BIN,this.rightEncode(),no.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(ZQ.default);Qc.default=GQ,Object.defineProperty(yd,"__esModule",{value:!0});var zQ=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)}},YQ=zr,XQ=Qc,qQ=$Q(XQ);function $Q(t){return t&&t.__esModule?t:{default:t}}function eS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tS(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 AS(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 ev=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},rS=function(t){AS(e,t);function e(A,r){eS(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=ev(A));var n=tS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return zQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===ev(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=YQ.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}(qQ.default);yd.default=rS;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});var nS=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}}(),Sc=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)}},aS=Qc,iS=oS(aS);function oS(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 lS(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 cS(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,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},uS=function(t){cS(e,t);function e(A,r){return sS(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=tv(A)),lS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return nS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===tv(this.data)}},{key:"leftText",value:function(){return Sc(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 Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Sc(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 Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(iS.default);bd.default=uS;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var fS=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}}(),hS=zr,dS=si,pS=Av(dS),gS=vr,mS=Av(gS);function Av(t){return t&&t.__esModule?t:{default:t}}function vS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BS(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 wS(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 yS=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},bS=function(t){wS(e,t);function e(A,r){return vS(this,e),BS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return fS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=hS.EAN5_STRUCTURE[yS(this.data)];return{data:"1011"+(0,pS.default)(this.data,r,"01"),text:this.text}}}]),e}(mS.default);Cd.default=bS;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var CS=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}}(),ES=zr,US=si,FS=rv(US),NS=vr,QS=rv(NS);function rv(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 TS(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 RS=function(t){xS(e,t);function e(A,r){return SS(this,e),TS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return CS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=ES.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,FS.default)(this.data,r,"01"),text:this.text}}}]),e}(QS.default);Ed.default=RS;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var IS=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 VS=si,ao=nv(VS),MS=vr,LS=nv(MS);function nv(t){return t&&t.__esModule?t:{default:t}}function OS(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 HS(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 DS=function(t){HS(e,t);function e(A,r){OS(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Ud(A));var n=kS(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 IS(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,ao.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,ao.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,ao.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,ao.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,ao.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,ao.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}(LS.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=DS;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var PS=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}}(),WS=si,_S=av(WS),ZS=vr,jS=av(ZS),JS=Os;function av(t){return t&&t.__esModule?t:{default:t}}function KS(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 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=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],YS=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],XS=function(t){GS(e,t);function e(A,r){KS(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=iv(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=iv(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 PS(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=YS[parseInt(n)][parseInt(r)];return(0,_S.default)(this.middleDigits,a)}}]),e}(jS.default);function iv(t,e){for(var A=parseInt(t[t.length-1]),r=zS[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,JS.checksum)(n)}Fd.default=XS,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.UPCE=Nr.UPC=Nr.EAN2=Nr.EAN5=Nr.EAN8=Nr.EAN13=void 0;var qS=yd,$S=io(qS),eT=bd,tT=io(eT),AT=Cd,rT=io(AT),nT=Ed,aT=io(nT),iT=Os,oT=io(iT),sT=Fd,lT=io(sT);function io(t){return t&&t.__esModule?t:{default:t}}Nr.EAN13=$S.default,Nr.EAN8=tT.default,Nr.EAN5=rT.default,Nr.EAN2=aT.default,Nr.UPC=oT.default,Nr.UPCE=lT.default;var oo={},Tc={},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(Tc,"__esModule",{value:!0});var cT=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}}(),xc=ks,uT=vr,fT=hT(uT);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(){return dT(this,e),pT(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return cT(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:xc.START_BIN+n+xc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=xc.BINARIES[r[1]];return xc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(fT.default);Tc.default=mT;var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});var vT=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}}(),BT=Tc,wT=yT(BT);function yT(t){return t&&t.__esModule?t:{default:t}}function bT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CT(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 ET(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 ov=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},UT=function(t){ET(e,t);function e(A,r){return bT(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=ov(A)),CT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return vT(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===ov(this.data)}}]),e}(wT.default);Qd.default=UT,Object.defineProperty(oo,"__esModule",{value:!0}),oo.ITF14=oo.ITF=void 0;var FT=Tc,NT=sv(FT),QT=Qd,ST=sv(QT);function sv(t){return t&&t.__esModule?t:{default:t}}oo.ITF=NT.default,oo.ITF14=ST.default;var Yr={},li={};Object.defineProperty(li,"__esModule",{value:!0});var TT=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}}(),xT=vr,RT=IT(xT);function IT(t){return t&&t.__esModule?t:{default:t}}function VT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MT(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 OT=function(t){LT(e,t);function e(A,r){return VT(this,e),MT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return TT(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=kT(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}(RT.default);function kT(t,e){for(var A=0;A<e;A++)t="0"+t;return t}li.default=OT;var Sd={},ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.mod10=HT,ci.mod11=DT;function HT(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 DT(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(Sd,"__esModule",{value:!0});var PT=li,WT=ZT(PT),_T=ci;function ZT(t){return t&&t.__esModule?t:{default:t}}function jT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(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 KT(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 GT=function(t){KT(e,t);function e(A,r){return jT(this,e),JT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,_T.mod10)(A),r))}return e}(WT.default);Sd.default=GT;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var zT=li,YT=qT(zT),XT=ci;function qT(t){return t&&t.__esModule?t:{default:t}}function $T(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 tx(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 Ax=function(t){tx(e,t);function e(A,r){return $T(this,e),ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,XT.mod11)(A),r))}return e}(YT.default);Td.default=Ax;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});var rx=li,nx=ax(rx),lv=ci;function ax(t){return t&&t.__esModule?t:{default:t}}function ix(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ox(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 sx(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 lx=function(t){sx(e,t);function e(A,r){return ix(this,e),A+=(0,lv.mod10)(A),A+=(0,lv.mod10)(A),ox(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(nx.default);xd.default=lx;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var cx=li,ux=fx(cx),cv=ci;function fx(t){return t&&t.__esModule?t:{default:t}}function hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dx(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 px(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 gx=function(t){px(e,t);function e(A,r){return hx(this,e),A+=(0,cv.mod11)(A),A+=(0,cv.mod10)(A),dx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(ux.default);Rd.default=gx,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var mx=li,vx=Hs(mx),Bx=Sd,wx=Hs(Bx),yx=Td,bx=Hs(yx),Cx=xd,Ex=Hs(Cx),Ux=Rd,Fx=Hs(Ux);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=vx.default,Yr.MSI10=wx.default,Yr.MSI11=bx.default,Yr.MSI1010=Ex.default,Yr.MSI1110=Fx.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var Nx=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}}(),Qx=vr,Sx=Tx(Qx);function Tx(t){return t&&t.__esModule?t:{default:t}}function xx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rx(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 Ix(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){Ix(e,t);function e(A,r){xx(this,e);var n=Rx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return Nx(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}(Sx.default);Rc.pharmacode=Vx;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var Mx=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}}(),Lx=vr,Ox=kx(Lx);function kx(t){return t&&t.__esModule?t:{default:t}}function Hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dx(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 Px(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 Wx=function(t){Px(e,t);function e(A,r){Hx(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=Dx(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 Mx(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}(Ox.default);Ic.codabar=Wx;var so={},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 _x=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,Zx=vr,jx=Jx(Zx);function Jx(t){return t&&t.__esModule?t:{default:t}}function Kx(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 zx(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 Yx=function(t){zx(e,t);function e(A,r){return Kx(this,e),Gx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return _x(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}(jx.default);Vc.default=Yx;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var Xx=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}}(),qx=Vc,$x=eR(qx);function eR(t){return t&&t.__esModule?t:{default:t}}function tR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AR(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 rR(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 nR=function(t){rR(e,t);function e(A,r){return tR(this,e),AR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Xx(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}($x.default);Id.default=nR,Object.defineProperty(so,"__esModule",{value:!0}),so.CODE93FullASCII=so.CODE93=void 0;var aR=Vc,iR=uv(aR),oR=Id,sR=uv(oR);function uv(t){return t&&t.__esModule?t:{default:t}}so.CODE93=iR.default,so.CODE93FullASCII=sR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var lR=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}}(),cR=vr,uR=fR(cR);function fR(t){return t&&t.__esModule?t:{default:t}}function hR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dR(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 pR(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 gR=function(t){pR(e,t);function e(A,r){return hR(this,e),dR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return lR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(uR.default);Lc.GenericBarcode=gR,Object.defineProperty(ud,"__esModule",{value:!0});var mR=Fc,Oc=In,lo=Nr,fv=oo,Ps=Yr,vR=Rc,BR=Ic,hv=so,wR=Lc;ud.default={CODE39:mR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:lo.EAN13,EAN8:lo.EAN8,EAN5:lo.EAN5,EAN2:lo.EAN2,UPC:lo.UPC,UPCE:lo.UPCE,ITF14:fv.ITF14,ITF:fv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:vR.pharmacode,codabar:BR.codabar,CODE93:hv.CODE93,CODE93FullASCII:hv.CODE93FullASCII,GenericBarcode:wR.GenericBarcode};var co={};Object.defineProperty(co,"__esModule",{value:!0});var yR=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};co.default=function(t,e){return yR({},t,e)};var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=bR;function bR(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=CR;function CR(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=ER;function ER(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 UR={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=UR,Object.defineProperty(Od,"__esModule",{value:!0});var FR=kc,NR=pv(FR),QR=Hc,dv=pv(QR);function pv(t){return t&&t.__esModule?t:{default:t}}function SR(t){var e={};for(var A in dv.default)dv.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,NR.default)(e),e}Od.default=SR;var kd={},Hd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=co,xR=RR(TR);function RR(t){return t&&t.__esModule?t:{default:t}}function gv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function mv(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 IR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,xR.default)(e,n.options),i;a.displayValue?i=LR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=gv(n,a),n.barcodePadding=mv(i,o,a)}}function VR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function MR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function LR(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=MR,Hr.getEncodingHeight=gv,Hr.getBarcodePadding=mv,Hr.calculateEncodingAttributes=IR,Hr.getTotalWidthOfEncodings=VR,Object.defineProperty(Hd,"__esModule",{value:!0});var OR=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}}(),kR=co,HR=DR(kR),Dd=Hr;function DR(t){return t&&t.__esModule?t:{default:t}}function PR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var WR=function(){function t(e,A,r){PR(this,t),this.canvas=e,this.encodings=A,this.options=r}return OR(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,HR.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=WR;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var _R=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}}(),ZR=co,jR=JR(ZR),Wd=Hr;function JR(t){return t&&t.__esModule?t:{default:t}}function KR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",GR=function(){function t(e,A,r){KR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return _R(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=GR;var _d={};Object.defineProperty(_d,"__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}}();function YR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var XR=function(){function t(e,A,r){YR(this,t),this.object=e,this.encodings=A,this.options=r}return zR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();_d.default=XR,Object.defineProperty(kd,"__esModule",{value:!0});var qR=Hd,$R=Zd(qR),eI=Pd,tI=Zd(eI),AI=_d,rI=Zd(AI);function Zd(t){return t&&t.__esModule?t:{default:t}}kd.default={CanvasRenderer:$R.default,SVGRenderer:tI.default,ObjectRenderer:rI.default};var uo={};Object.defineProperty(uo,"__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 nI=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),aI=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),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="NoElementException",A.message="No element to render on.",A}return e}(Error);uo.InvalidInputException=nI,uo.InvalidElementException=aI,uo.NoElementException=iI,Object.defineProperty(Ld,"__esModule",{value:!0});var oI=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},sI=Od,Gd=vv(sI),lI=kd,Ws=vv(lI),cI=uo;function vv(t){return t&&t.__esModule?t:{default:t}}function zd(t){if(typeof t=="string")return uI(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 fI(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":oI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new cI.InvalidElementException}}function uI(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 fI(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 hI=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 dI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var pI=function(){function t(e){dI(this,t),this.api=e}return hI(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=pI;var gI=ud,ui=va(gI),mI=co,_s=va(mI),vI=Vd,Bv=va(vI),BI=Md,wv=va(BI),wI=Ld,yI=va(wI),bI=kc,CI=va(bI),EI=Yd,UI=va(EI),yv=uo,FI=Hc,bv=va(FI);function va(t){return t&&t.__esModule?t:{default:t}}var Gn=function(){},Pc=function(e,A,r){var n=new Gn;if(typeof e>"u")throw Error("No element to render on was provided.");return n._renderProperties=(0,yI.default)(e),n._encodings=[],n._options=bv.default,n._errorHandler=new UI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Uv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return ui.default[t]};for(var Cv in ui.default)ui.default.hasOwnProperty(Cv)&&NI(ui.default,Cv);function NI(t,e){Gn.prototype[e]=Gn.prototype[e.toUpperCase()]=Gn.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,CI.default)(a);var i=t[e],o=Ev(A,i,a);return n._encodings.push(o),n})}}function Ev(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new yv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,Bv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Uv(){return ui.default.CODE128?"CODE128":Object.keys(ui.default)[0]}Gn.prototype.options=function(t){return this._options=(0,_s.default)(this._options,t),this},Gn.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},Gn.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=Uv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=ui.default[A.format.toUpperCase()],a=Ev(r,n,A);Xd(t,a,A)})}}},Gn.prototype.render=function(){if(!this._renderProperties)throw new yv.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},Gn.prototype._defaults=bv.default;function Xd(t,e,A){e=(0,Bv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,wv.default)(e[r].options);(0,wv.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),Hq="",SI={__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}=Ss(A,r),i=h.ref(null);h.computed(()=>A.modelValue.__selected||!1);const o=h.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,f)=>{let w;return function(...C){const B=()=>{clearTimeout(w),g(...C)};clearTimeout(w),w=setTimeout(B,f)}},l=h.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var U,Q,I,V,R,L,D,P,S,F,O,W,j,z,q,Y;if(!i.value)return;const g=di((Q=(U=A.propsConfig)==null?void 0:U.barcode)==null?void 0:Q.propertyPanel)||{};let f=((I=A.modelValue)==null?void 0:I.BarcodeValue)||g.BarcodeValue||"";if(!f&&((V=A.modelValue)!=null&&V.FieldName))if(Array.isArray(A.modelValue.FieldName)){const Ae=A.modelValue.FieldName.map(ee=>{var ce,N,H,J;return((J=(H=(N=(ce=A.modelValue)==null?void 0:ce.options)==null?void 0:N.fields)==null?void 0:H.find(G=>G.value==ee))==null?void 0:J.label)||ee}).filter(ee=>ee);if(Ae.length>0){const ee=A.modelValue.FieldConnector||" ";f=Ae.join(ee)}}else f=((P=(D=(L=(R=A.modelValue)==null?void 0:R.options)==null?void 0:L.fields)==null?void 0:D.find(Ae=>{var ee;return Ae.value==((ee=A.modelValue)==null?void 0:ee.FieldName)}))==null?void 0:P.label)||((S=A.modelValue)==null?void 0:S.FieldName)||"";const w=((F=A.modelValue)==null?void 0:F.CodeType)||g.CodeType||"",v=A.modelValue.LineColor||g.LineColor,C=((Y=(q=(z=(j=(W=(O=A.propsConfig)==null?void 0:O.barcode)==null?void 0:W.propertyPanel)==null?void 0:j.find(Ae=>Ae.prop==="CodeType"))==null?void 0:z.options)==null?void 0:q.find(Ae=>Ae.value===w))==null?void 0:Y.compValue)||"",B={value:f,type:w,lineColor:v,codeType:C};if(JSON.stringify(B)!==JSON.stringify(l.value)){l.value=B;try{const Ae=i.value;Ae.innerHTML="",qd(Ae,f,{format:C,width:2,displayValue:!1,margin:0,lineColor:v,height:50,background:"transparent"}),h.nextTick(()=>{if(Ae){const ee=Ae.getBBox();if(ee.width>0&&ee.height>0){const ce=`${ee.x} ${ee.y} ${ee.width} ${ee.height}`;Ae.setAttribute("viewBox",ce),Ae.style.width="100%",Ae.style.height="100%",Ae.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return h.onMounted(()=>{u(),a(),n()}),h.watch(()=>A.modelValue,()=>d(),{deep:!0}),h.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,f)=>(h.openBlock(),h.createElementBlock("div",{class:"barcode-component",style:h.normalizeStyle(o.value)},[(h.openBlock(),h.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)=>(h.openBlock(),h.createBlock(Ao,{"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"]))}},xI={},RI={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function II(t,e){return h.openBlock(),h.createElementBlock("svg",RI,[...e[0]||(e[0]=[h.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),h.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 VI=jA(xI,[["render",II]]),Ba=t=>t*3.7795275591,fo=t=>t/3.7795275591;var wa={},MI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Fv={},Dr={};let $d;const LI=[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 LI[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.');$d=e},Dr.isKanjiModeEnabled=function(){return typeof $d<"u"},Dr.toSJIS=function(e){return $d(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 Nv(){this.buffer=[],this.length=0}Nv.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 OI=Nv;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 kI=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 Sv={};const HI=Dr.getSymbolSize,Tv=7;Sv.getPositions=function(e){const A=HI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var xv={};(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 f=n.get(d,g);f===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=f,o=1),f=n.get(g,d),f===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=f,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}})(xv);var _c={};const ya=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 ya.L:return Zc[(e-1)*4+0];case ya.M:return Zc[(e-1)*4+1];case ya.Q:return Zc[(e-1)*4+2];case ya.H:return Zc[(e-1)*4+3];default:return}},_c.getTotalCodewordsCount=function(e,A){switch(A){case ya.L:return jc[(e-1)*4+0];case ya.M:return jc[(e-1)*4+1];case ya.Q:return jc[(e-1)*4+2];case ya.H:return jc[(e-1)*4+3];default:return}};var Rv={},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}}(Rv);const Iv=Rv;function e0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}e0.prototype.initialize=function(e){this.degree=e,this.genPoly=Iv.generateECPolynomial(this.degree)},e0.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=Iv.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 DI=e0,Vv={},ba={},t0={};t0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Mv="[0-9]+",PI="[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 WI="(?:(?![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(WI,"g"),Vn.NUMERIC=new RegExp(Mv,"g"),Vn.ALPHANUMERIC=new RegExp(PI,"g");const _I=new RegExp("^"+Js+"$"),ZI=new RegExp("^"+Mv+"$"),jI=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Vn.testKanji=function(e){return _I.test(e)},Vn.testNumeric=function(e){return ZI.test(e)},Vn.testAlphanumeric=function(e){return jI.test(e)},function(t){const e=t0,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}}}(ba),function(t){const e=Dr,A=_c,r=Wc,n=ba,a=t0,i=7973,o=e.getBCHDigit(i);function s(g,f,w){for(let v=1;v<=40;v++)if(f<=t.getCapacity(v,w,g))return v}function l(g,f){return n.getCharCountIndicator(g,f)+4}function u(g,f){let w=0;return g.forEach(function(v){const C=l(v.mode,f);w+=C+v.getBitsLength()}),w}function d(g,f){for(let w=1;w<=40;w++)if(u(g,w)<=t.getCapacity(w,f,n.MIXED))return w}t.from=function(f,w){return a.isValid(f)?parseInt(f,10):w},t.getCapacity=function(f,w,v){if(!a.isValid(f))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=n.BYTE);const C=e.getSymbolTotalCodewords(f),B=A.getTotalCodewordsCount(f,w),y=(C-B)*8;if(v===n.MIXED)return y;const U=y-l(v,f);switch(v){case n.NUMERIC:return Math.floor(U/10*3);case n.ALPHANUMERIC:return Math.floor(U/11*2);case n.KANJI:return Math.floor(U/13);case n.BYTE:default:return Math.floor(U/8)}},t.getBestVersionForData=function(f,w){let v;const C=r.from(w,r.M);if(Array.isArray(f)){if(f.length>1)return d(f,C);if(f.length===0)return 1;v=f[0]}else v=f;return s(v.mode,v.getLength(),C)},t.getEncodedBits=function(f){if(!a.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;e.getBCHDigit(w)-o>=0;)w^=i<<e.getBCHDigit(w)-o;return f<<12|w}}(Vv);var Lv={};const A0=Dr,Ov=1335,JI=21522,kv=A0.getBCHDigit(Ov);Lv.getEncodedBits=function(e,A){const r=e.bit<<3|A;let n=r<<10;for(;A0.getBCHDigit(n)-kv>=0;)n^=Ov<<A0.getBCHDigit(n)-kv;return(r<<10|n)^JI};var Hv={};const KI=ba;function ho(t){this.mode=KI.NUMERIC,this.data=t.toString()}ho.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},ho.prototype.getLength=function(){return this.data.length},ho.prototype.getBitsLength=function(){return ho.getBitsLength(this.data.length)},ho.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 GI=ho;const zI=ba,r0=["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 po(t){this.mode=zI.ALPHANUMERIC,this.data=t}po.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},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;for(A=0;A+2<=this.data.length;A+=2){let r=r0.indexOf(this.data[A])*45;r+=r0.indexOf(this.data[A+1]),e.put(r,11)}this.data.length%2&&e.put(r0.indexOf(this.data[A]),6)};var YI=po;const XI=ba;function go(t){this.mode=XI.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}go.getBitsLength=function(e){return e*8},go.prototype.getLength=function(){return this.data.length},go.prototype.getBitsLength=function(){return go.getBitsLength(this.data.length)},go.prototype.write=function(t){for(let e=0,A=this.data.length;e<A;e++)t.put(this.data[e],8)};var qI=go;const $I=ba,eV=Dr;function mo(t){this.mode=$I.KANJI,this.data=t}mo.getBitsLength=function(e){return e*13},mo.prototype.getLength=function(){return this.data.length},mo.prototype.getBitsLength=function(){return mo.getBitsLength(this.data.length)},mo.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let A=eV.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 tV=mo,Dv={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,f,w,v,C;!o.empty();){s=o.pop(),l=s.value,d=s.cost,g=A[l]||{};for(u in g)g.hasOwnProperty(u)&&(f=g[u],w=d+f,v=i[u],C=typeof i[u]>"u",(C||v>w)&&(i[u]=w,o.push(u,w),a[u]=l))}if(typeof n<"u"&&typeof i[n]>"u"){var B=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(B)}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})(Dv);var AV=Dv.exports;(function(t){const e=ba,A=GI,r=YI,n=qI,a=tV,i=Vn,o=Dr,s=AV;function l(B){return unescape(encodeURIComponent(B)).length}function u(B,y,U){const Q=[];let I;for(;(I=B.exec(U))!==null;)Q.push({data:I[0],index:I.index,mode:y,length:I[0].length});return Q}function d(B){const y=u(i.NUMERIC,e.NUMERIC,B),U=u(i.ALPHANUMERIC,e.ALPHANUMERIC,B);let Q,I;return o.isKanjiModeEnabled()?(Q=u(i.BYTE,e.BYTE,B),I=u(i.KANJI,e.KANJI,B)):(Q=u(i.BYTE_KANJI,e.BYTE,B),I=[]),y.concat(U,Q,I).sort(function(R,L){return R.index-L.index}).map(function(R){return{data:R.data,mode:R.mode,length:R.length}})}function g(B,y){switch(y){case e.NUMERIC:return A.getBitsLength(B);case e.ALPHANUMERIC:return r.getBitsLength(B);case e.KANJI:return a.getBitsLength(B);case e.BYTE:return n.getBitsLength(B)}}function f(B){return B.reduce(function(y,U){const Q=y.length-1>=0?y[y.length-1]:null;return Q&&Q.mode===U.mode?(y[y.length-1].data+=U.data,y):(y.push(U),y)},[])}function w(B){const y=[];for(let U=0;U<B.length;U++){const Q=B[U];switch(Q.mode){case e.NUMERIC:y.push([Q,{data:Q.data,mode:e.ALPHANUMERIC,length:Q.length},{data:Q.data,mode:e.BYTE,length:Q.length}]);break;case e.ALPHANUMERIC:y.push([Q,{data:Q.data,mode:e.BYTE,length:Q.length}]);break;case e.KANJI:y.push([Q,{data:Q.data,mode:e.BYTE,length:l(Q.data)}]);break;case e.BYTE:y.push([{data:Q.data,mode:e.BYTE,length:l(Q.data)}])}}return y}function v(B,y){const U={},Q={start:{}};let I=["start"];for(let V=0;V<B.length;V++){const R=B[V],L=[];for(let D=0;D<R.length;D++){const P=R[D],S=""+V+D;L.push(S),U[S]={node:P,lastCount:0},Q[S]={};for(let F=0;F<I.length;F++){const O=I[F];U[O]&&U[O].node.mode===P.mode?(Q[O][S]=g(U[O].lastCount+P.length,P.mode)-g(U[O].lastCount,P.mode),U[O].lastCount+=P.length):(U[O]&&(U[O].lastCount=P.length),Q[O][S]=g(P.length,P.mode)+4+e.getCharCountIndicator(P.mode,y))}}I=L}for(let V=0;V<I.length;V++)Q[I[V]].end=0;return{map:Q,table:U}}function C(B,y){let U;const Q=e.getBestModeForData(B);if(U=e.from(y,Q),U!==e.BYTE&&U.bit<Q.bit)throw new Error('"'+B+'" cannot be encoded with mode '+e.toString(U)+`.
|
|
8
8
|
Suggested mode is: `+e.toString(Q));switch(U===e.KANJI&&!o.isKanjiModeEnabled()&&(U=e.BYTE),U){case e.NUMERIC:return new A(B);case e.ALPHANUMERIC:return new r(B);case e.KANJI:return new a(B);case e.BYTE:return new n(B)}}t.fromArray=function(y){return y.reduce(function(U,Q){return typeof Q=="string"?U.push(C(Q,null)):Q.data&&U.push(C(Q.data,Q.mode)),U},[])},t.fromString=function(y,U){const Q=d(y,o.isKanjiModeEnabled()),I=w(Q),V=v(I,U),R=s.find_path(V.map,"start","end"),L=[];for(let D=1;D<R.length-1;D++)L.push(V.table[R[D]].node);return t.fromArray(f(L))},t.rawSplit=function(y){return t.fromArray(d(y,o.isKanjiModeEnabled()))}})(Hv);const Gc=Dr,n0=Wc,rV=OI,nV=kI,aV=Qv,iV=Sv,a0=xv,i0=_c,oV=DI,zc=Vv,sV=Lv,lV=ba,o0=Hv;function cV(t,e){const A=t.size,r=iV.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 uV(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 fV(t,e){const A=aV.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 hV(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 s0(t,e,A){const r=t.size,n=sV.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 dV(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 pV(t,e,A){const r=new rV;A.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),lV.getCharCountIndicator(s.mode,t)),s.write(r)});const n=Gc.getSymbolTotalCodewords(t),a=i0.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 gV(r,t,e)}function gV(t,e,A){const r=Gc.getSymbolTotalCodewords(e),n=i0.getTotalCodewordsCount(e,A),a=r-n,i=i0.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,f=new oV(g);let w=0;const v=new Array(i),C=new Array(i);let B=0;const y=new Uint8Array(t.buffer);for(let R=0;R<i;R++){const L=R<s?u:d;v[R]=y.slice(w,w+L),C[R]=f.encode(v[R]),w+=L,B=Math.max(B,L)}const U=new Uint8Array(r);let Q=0,I,V;for(I=0;I<B;I++)for(V=0;V<i;V++)I<v[V].length&&(U[Q++]=v[V][I]);for(I=0;I<g;I++)for(V=0;V<i;V++)U[Q++]=C[V][I];return U}function mV(t,e,A,r){let n;if(Array.isArray(t))n=o0.fromArray(t);else if(typeof t=="string"){let l=e;if(!l){const u=o0.rawSplit(t);l=zc.getBestVersionForData(u,A)}n=o0.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(`
|
|
@@ -311,7 +311,7 @@ end`};e.events.push(["putFont",function(a){(function(i){var o=i.font,s=i.out,l=i
|
|
|
311
311
|
`,r!==1){const U=document.createElement("div");for(U.style.cssText=`
|
|
312
312
|
width: ${s}mm; height: ${l}mm; position: relative;
|
|
313
313
|
transform: scale(${r}); transform-origin: top left;
|
|
314
|
-
`;C.firstChild;)U.appendChild(C.firstChild);C.appendChild(U)}return C.outerHTML}finally{if(!(i&&window[w])){try{f&&f.unmount&&f.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}function wl(t,e=96){return Math.round(t*e/25.4)}async function qy(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,height:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,format:"png",quality:.9,returnDataUrl:!0,dpi:96},...e};if(r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const n=wl(r.width,r.dpi),a=wl(r.height,r.dpi),i=wl(r.margin,r.dpi);if(!["L","M","Q","H"].includes(r.QRCodeErrorLevel))throw new Error("错误纠正级别必须是 L、M、Q、H 之一");if(!["png","jpeg","svg"].includes(r.format))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const o={L:"low",M:"medium",Q:"quartile",H:"high"},s={width:n,margin:i,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:o[r.QRCodeErrorLevel]};let l;if(r.format==="svg"){l=await wa.toString(t,{...s,type:"svg"});const u=new DOMParser().parseFromString(l,"image/svg+xml").documentElement;u.setAttribute("width",n),u.setAttribute("height",a),u.setAttribute("viewBox",`0 0 ${n} ${a}`),u.setAttribute("preserveAspectRatio","none");const d=new XMLSerializer().serializeToString(u),g=btoa(decodeURIComponent(encodeURIComponent(d)));return r.returnDataUrl?`data:image/svg+xml;base64,${g}`:g}else{const u=r.format==="jpeg"?"image/jpeg":"image/png";if(l=await wa.toDataURL(t,{...s,type:u,quality:r.format==="jpeg"?r.quality:void 0}),r.returnDataUrl)return l;{const d=l.indexOf(",");return d!==-1?l.substring(d+1):l}}}catch(o){throw new Error(`二维码生成失败: ${o.message}`)}}async function fP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>qy(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成二维码失败: ${r.message}`)}}async function hP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,dpi:96},...e},n=wl(r.width,r.dpi),a=wl(r.margin,r.dpi);try{const i={L:"low",M:"medium",Q:"quartile",H:"high"};return await wa.toCanvas(t,{width:n,margin:a,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:i[r.QRCodeErrorLevel]})}catch(i){throw new Error(`二维码Canvas生成失败: ${i.message}`)}}function Oa(t,e=96){return Math.round(t*e/25.4)}function $y(t,e,A){const r=e/96,n=Math.max(1,Math.round(r*1.5)),i={CODE128:1,CODE39:1,EAN13:1,EAN8:1,UPC:1,ITF14:2,MSI:1,pharmacode:1,codabar:1}[A]||1,o=Math.max(i,n);return o%2===0?o+1:o}async function e5(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,outputFormat:"png",quality:.95,returnDataUrl:!0,dpi:300},...e};if(["CODE128","CODE39","EAN13","EAN8","UPC","ITF14","MSI","pharmacode","codabar"].includes(r.CodeType)||(r.CodeType="CODE128"),r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const a=Oa(r.width,r.dpi),i=Oa(r.height,r.dpi),o=Oa(r.textMargin,r.dpi),s=Oa(r.fontSize,r.dpi);if(!["png","jpeg","svg"].includes(r.outputFormat))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",a),l.setAttribute("height",i),l.setAttribute("viewBox",`0 0 ${a} ${i}`),l.setAttribute("shape-rendering","geometricPrecision"),l.setAttribute("text-rendering","geometricPrecision"),l.setAttribute("image-rendering","optimizeQuality");const u=$y(a,r.dpi,r.CodeType);if(qd(l,t,{format:r.CodeType,width:u,height:i-(r.displayValue?s+o:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:o,font:r.font,fontSize:s,lineColor:r.LineColor,background:r.background,margin:0}),r.outputFormat==="svg"){const d=new XMLSerializer().serializeToString(l);return r.returnDataUrl?`data:image/svg+xml;base64,${btoa(decodeURIComponent(encodeURIComponent(d)))}`:d}else{const d=await dP(l,a,i,r.dpi),g=r.outputFormat==="jpeg"?"image/jpeg":"image/png",f=d.toDataURL(g,r.outputFormat==="jpeg"?r.quality:void 0);if(r.returnDataUrl)return f;{const w=f.indexOf(",");return w!==-1?f.substring(w+1):f}}}catch(l){throw new Error(`条形码生成失败: ${l.message}`)}}async function dP(t,e,A,r=300){return new Promise((n,a)=>{const i=Math.max(2,r/96),o=document.createElement("canvas"),s=o.getContext("2d");o.width=e*i,o.height=A*i,o.style.width=e+"px",o.style.height=A+"px",s.imageSmoothingEnabled=!0,s.imageSmoothingQuality="high",s.translate(.5,.5),s.textRenderingOptimization="optimizeQuality",s.textBaseline="middle";const l=new Image,u=new XMLSerializer().serializeToString(t),d=new Blob([u],{type:"image/svg+xml;charset=utf-8"}),g=URL.createObjectURL(d);l.onload=()=>{try{s.drawImage(l,0,0,e*i,A*i),URL.revokeObjectURL(g),n(o)}catch(f){URL.revokeObjectURL(g),a(f)}},l.onerror=()=>{URL.revokeObjectURL(g),a(new Error("SVG转换为Canvas失败"))},l.src=g})}async function pP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>e5(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成条形码失败: ${r.message}`)}}function gP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,dpi:300},...e},n=Oa(r.width,r.dpi),a=Oa(r.height,r.dpi),i=Oa(r.textMargin,r.dpi),o=Oa(r.fontSize,r.dpi);try{const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("width",n),s.setAttribute("height",a),s.setAttribute("viewBox",`0 0 ${n} ${a}`),s.setAttribute("shape-rendering","geometricPrecision"),s.setAttribute("text-rendering","geometricPrecision"),s.setAttribute("image-rendering","optimizeQuality");const l=$y(n,r.dpi,r.CodeType);return qd(s,t,{format:r.CodeType,width:l,height:a-(r.displayValue?o+i:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:i,font:r.font,fontSize:o,lineColor:r.LineColor,background:r.background,margin:0}),new XMLSerializer().serializeToString(s)}catch(s){throw new Error(`条形码SVG生成失败: ${s.message}`)}}Vo.install=t=>{t.component(Vo.name||"TemplateDesigner",Vo)};const t5=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.8,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于文本开头固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",desc:"可预知的内容尽量不换行,避免因为换行导致打印效果不佳",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:[{label:"0°",value:0},{label:"90°",value:90}],default:0,layout:"half"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,allowRotation:!1,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half",hide:!0}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,allowRotation:!1,x1:0,y1:0,x2:15,y2:0,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),mP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:2.8,rotation:0,allowRotation:!1,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:8,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",desc:"换行需要文本高度空间足够,比如一行高度是4.5mm,比如实际打印内容要两行,那文本预设高度至少是9mm",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,layout:"half"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",lockAspectRatio:!0,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,allowRotation:!1,lockAspectRatio:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function ka(t){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(t)}function Op(t,e){return Op=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Op(t,e)}function vP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(t,e,A){return vP()?rf=Reflect.construct:rf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Op(l,i.prototype),l},rf.apply(null,arguments)}function wn(t){return BP(t)||wP(t)||yP(t)||bP()}function BP(t){if(Array.isArray(t))return kp(t)}function wP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yP(t,e){if(t){if(typeof t=="string")return kp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return kp(t,e)}}function kp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function bP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
314
|
+
`;C.firstChild;)U.appendChild(C.firstChild);C.appendChild(U)}return C.outerHTML}finally{if(!(i&&window[w])){try{f&&f.unmount&&f.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}function wl(t,e=96){return Math.round(t*e/25.4)}async function qy(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,height:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,format:"png",quality:.9,returnDataUrl:!0,dpi:96},...e};if(r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const n=wl(r.width,r.dpi),a=wl(r.height,r.dpi),i=wl(r.margin,r.dpi);if(!["L","M","Q","H"].includes(r.QRCodeErrorLevel))throw new Error("错误纠正级别必须是 L、M、Q、H 之一");if(!["png","jpeg","svg"].includes(r.format))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const o={L:"low",M:"medium",Q:"quartile",H:"high"},s={width:n,margin:i,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:o[r.QRCodeErrorLevel]};let l;if(r.format==="svg"){l=await wa.toString(t,{...s,type:"svg"});const u=new DOMParser().parseFromString(l,"image/svg+xml").documentElement;u.setAttribute("width",n),u.setAttribute("height",a),u.setAttribute("viewBox",`0 0 ${n} ${a}`),u.setAttribute("preserveAspectRatio","none");const d=new XMLSerializer().serializeToString(u),g=btoa(decodeURIComponent(encodeURIComponent(d)));return r.returnDataUrl?`data:image/svg+xml;base64,${g}`:g}else{const u=r.format==="jpeg"?"image/jpeg":"image/png";if(l=await wa.toDataURL(t,{...s,type:u,quality:r.format==="jpeg"?r.quality:void 0}),r.returnDataUrl)return l;{const d=l.indexOf(",");return d!==-1?l.substring(d+1):l}}}catch(o){throw new Error(`二维码生成失败: ${o.message}`)}}async function fP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>qy(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成二维码失败: ${r.message}`)}}async function hP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{width:50,QRCodeForeground:"#000000",QRCodeBackground:"#ffffff",QRCodeErrorLevel:"M",margin:0,dpi:96},...e},n=wl(r.width,r.dpi),a=wl(r.margin,r.dpi);try{const i={L:"low",M:"medium",Q:"quartile",H:"high"};return await wa.toCanvas(t,{width:n,margin:a,color:{dark:r.QRCodeForeground,light:r.QRCodeBackground},errorCorrectionLevel:i[r.QRCodeErrorLevel]})}catch(i){throw new Error(`二维码Canvas生成失败: ${i.message}`)}}function Oa(t,e=96){return Math.round(t*e/25.4)}function $y(t,e,A){const r=e/96,n=Math.max(1,Math.round(r*1.5)),i={CODE128:1,CODE39:1,EAN13:1,EAN8:1,UPC:1,ITF14:2,MSI:1,pharmacode:1,codabar:1}[A]||1,o=Math.max(i,n);return o%2===0?o+1:o}async function e5(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,outputFormat:"png",quality:.95,returnDataUrl:!0,dpi:300},...e};if(["CODE128","CODE39","EAN13","EAN8","UPC","ITF14","MSI","pharmacode","codabar"].includes(r.CodeType)||(r.CodeType="CODE128"),r.width<=0||r.height<=0)throw new Error("宽度和高度必须大于0");const a=Oa(r.width,r.dpi),i=Oa(r.height,r.dpi),o=Oa(r.textMargin,r.dpi),s=Oa(r.fontSize,r.dpi);if(!["png","jpeg","svg"].includes(r.outputFormat))throw new Error("输出格式必须是 png、jpeg、svg 之一");if(r.quality<0||r.quality>1)throw new Error("图片质量必须在0-1之间");try{const l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",a),l.setAttribute("height",i),l.setAttribute("viewBox",`0 0 ${a} ${i}`),l.setAttribute("shape-rendering","geometricPrecision"),l.setAttribute("text-rendering","geometricPrecision"),l.setAttribute("image-rendering","optimizeQuality");const u=$y(a,r.dpi,r.CodeType);if(qd(l,t,{format:r.CodeType,width:u,height:i-(r.displayValue?s+o:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:o,font:r.font,fontSize:s,lineColor:r.LineColor,background:r.background,margin:0}),r.outputFormat==="svg"){const d=new XMLSerializer().serializeToString(l);return r.returnDataUrl?`data:image/svg+xml;base64,${btoa(decodeURIComponent(encodeURIComponent(d)))}`:d}else{const d=await dP(l,a,i,r.dpi),g=r.outputFormat==="jpeg"?"image/jpeg":"image/png",f=d.toDataURL(g,r.outputFormat==="jpeg"?r.quality:void 0);if(r.returnDataUrl)return f;{const w=f.indexOf(",");return w!==-1?f.substring(w+1):f}}}catch(l){throw new Error(`条形码生成失败: ${l.message}`)}}async function dP(t,e,A,r=300){return new Promise((n,a)=>{const i=Math.max(2,r/96),o=document.createElement("canvas"),s=o.getContext("2d");o.width=e*i,o.height=A*i,o.style.width=e+"px",o.style.height=A+"px",s.imageSmoothingEnabled=!0,s.imageSmoothingQuality="high",s.translate(.5,.5),s.textRenderingOptimization="optimizeQuality",s.textBaseline="middle";const l=new Image,u=new XMLSerializer().serializeToString(t),d=new Blob([u],{type:"image/svg+xml;charset=utf-8"}),g=URL.createObjectURL(d);l.onload=()=>{try{s.drawImage(l,0,0,e*i,A*i),URL.revokeObjectURL(g),n(o)}catch(f){URL.revokeObjectURL(g),a(f)}},l.onerror=()=>{URL.revokeObjectURL(g),a(new Error("SVG转换为Canvas失败"))},l.src=g})}async function pP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>e5(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成条形码失败: ${r.message}`)}}function gP(t,e={}){if(!t||typeof t!="string")throw new Error("文本内容不能为空且必须是字符串");const r={...{CodeType:"CODE128",width:50,height:15,LineColor:"#000000",background:"#ffffff",displayValue:!1,textAlign:"center",textPosition:"bottom",textMargin:2,font:"monospace",fontSize:5,dpi:300},...e},n=Oa(r.width,r.dpi),a=Oa(r.height,r.dpi),i=Oa(r.textMargin,r.dpi),o=Oa(r.fontSize,r.dpi);try{const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("width",n),s.setAttribute("height",a),s.setAttribute("viewBox",`0 0 ${n} ${a}`),s.setAttribute("shape-rendering","geometricPrecision"),s.setAttribute("text-rendering","geometricPrecision"),s.setAttribute("image-rendering","optimizeQuality");const l=$y(n,r.dpi,r.CodeType);return qd(s,t,{format:r.CodeType,width:l,height:a-(r.displayValue?o+i:0),displayValue:r.displayValue,textAlign:r.textAlign,textPosition:r.textPosition,textMargin:i,font:r.font,fontSize:o,lineColor:r.LineColor,background:r.background,margin:0}),new XMLSerializer().serializeToString(s)}catch(s){throw new Error(`条形码SVG生成失败: ${s.message}`)}}Vo.install=t=>{t.component(Vo.name||"TemplateDesigner",Vo)};const t5=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.8,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于文本开头固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",desc:"可预知的内容尽量不换行,避免因为换行导致打印效果不佳",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:[{label:"0°",value:0},{label:"90°",value:90}],default:0,layout:"half"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,allowRotation:!1,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half",hide:!0}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,allowRotation:!1,x1:0,y1:0,x2:15,y2:0,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),mP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:2.8,rotation:0,allowRotation:!1,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:8,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"half",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"},{prop:"EndMark",label:"结束符",default:"",layout:"half",desc:'用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"TemplateDisplay",label:"模板显示",type:"select",options:[{label:"测试数据",value:"text"},{label:"字段名称",value:"fieldName"}],default:"text",layout:"half",desc:"控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",desc:"换行需要文本高度空间足够,比如一行高度是4.5mm,比如实际打印内容要两行,那文本预设高度至少是9mm",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,layout:"half"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",lockAspectRatio:!0,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,allowRotation:!1,lockAspectRatio:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1},{prop:"rotation",label:"旋转角度",type:"select",options:fi,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function ka(t){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(t)}function Op(t,e){return Op=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Op(t,e)}function vP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(t,e,A){return vP()?rf=Reflect.construct:rf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Op(l,i.prototype),l},rf.apply(null,arguments)}function wn(t){return BP(t)||wP(t)||yP(t)||bP()}function BP(t){if(Array.isArray(t))return kp(t)}function wP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yP(t,e){if(t){if(typeof t=="string")return kp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return kp(t,e)}}function kp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function bP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
315
315
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var CP=Object.hasOwnProperty,A5=Object.setPrototypeOf,EP=Object.isFrozen,UP=Object.getPrototypeOf,FP=Object.getOwnPropertyDescriptor,wr=Object.freeze,tn=Object.seal,NP=Object.create,r5=typeof Reflect<"u"&&Reflect,nf=r5.apply,Hp=r5.construct;nf||(nf=function(e,A,r){return e.apply(A,r)}),wr||(wr=function(e){return e}),tn||(tn=function(e){return e}),Hp||(Hp=function(e,A){return rf(e,wn(A))});var QP=An(Array.prototype.forEach),n5=An(Array.prototype.pop),yl=An(Array.prototype.push),af=An(String.prototype.toLowerCase),Dp=An(String.prototype.toString),a5=An(String.prototype.match),yn=An(String.prototype.replace),SP=An(String.prototype.indexOf),TP=An(String.prototype.trim),er=An(RegExp.prototype.test),Pp=xP(TypeError);function An(t){return function(e){for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return nf(t,e,r)}}function xP(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return Hp(t,A)}}function xt(t,e,A){var r;A=(r=A)!==null&&r!==void 0?r:af,A5&&A5(t,null);for(var n=e.length;n--;){var a=e[n];if(typeof a=="string"){var i=A(a);i!==a&&(EP(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Ui(t){var e=NP(null),A;for(A in t)nf(CP,t,[A])===!0&&(e[A]=t[A]);return e}function of(t,e){for(;t!==null;){var A=FP(t,e);if(A){if(A.get)return An(A.get);if(typeof A.value=="function")return An(A.value)}t=UP(t)}function r(n){return console.warn("fallback value for",n),null}return r}var i5=wr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wp=wr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_p=wr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),RP=wr(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Zp=wr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),IP=wr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),o5=wr(["#text"]),s5=wr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),jp=wr(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l5=wr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),sf=wr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VP=tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),MP=tn(/<%[\w\W]*|[\w\W]*%>/gm),LP=tn(/\${[\w\W]*}/gm),OP=tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),kP=tn(/^aria-[\-\w]+$/),HP=tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DP=tn(/^(?:\w+script|data):/i),PP=tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),WP=tn(/^html$/i),_P=tn(/^[a-z][.\w]*(-[.\w]+)+$/i),ZP=function(){return typeof window>"u"?null:window},jP=function(e,A){if(ka(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";A.currentScript&&A.currentScript.hasAttribute(n)&&(r=A.currentScript.getAttribute(n));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(o){return o},createScriptURL:function(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function c5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZP(),e=function(oe){return c5(oe)};if(e.version="2.5.8",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var A=t.document,r=t.document,n=t.DocumentFragment,a=t.HTMLTemplateElement,i=t.Node,o=t.Element,s=t.NodeFilter,l=t.NamedNodeMap,u=l===void 0?t.NamedNodeMap||t.MozNamedAttrMap:l,d=t.HTMLFormElement,g=t.DOMParser,f=t.trustedTypes,w=o.prototype,v=of(w,"cloneNode"),C=of(w,"nextSibling"),B=of(w,"childNodes"),y=of(w,"parentNode");if(typeof a=="function"){var U=r.createElement("template");U.content&&U.content.ownerDocument&&(r=U.content.ownerDocument)}var Q=jP(f,A),I=Q?Q.createHTML(""):"",V=r,R=V.implementation,L=V.createNodeIterator,D=V.createDocumentFragment,P=V.getElementsByTagName,S=A.importNode,F={};try{F=Ui(r).documentMode?r.documentMode:{}}catch{}var O={};e.isSupported=typeof y=="function"&&R&&R.createHTMLDocument!==void 0&&F!==9;var W=VP,j=MP,z=LP,q=OP,Y=kP,Ae=DP,ee=PP,ce=_P,N=HP,H=null,J=xt({},[].concat(wn(i5),wn(Wp),wn(_p),wn(Zp),wn(o5))),G=null,ne=xt({},[].concat(wn(s5),wn(jp),wn(l5),wn(sf))),ae=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),he=null,ve=null,Le=!0,xe=!0,De=!1,Re=!0,Pe=!1,me=!0,X=!1,ut=!1,Ke=!1,Fe=!1,Se=!1,ke=!1,Oe=!0,We=!1,qe="user-content-",ot=!0,rt=!1,ft={},dt=null,tt=xt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pt=null,He=xt({},["audio","video","img","source","image","track"]),Mt=null,Et=xt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gA="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml",AA=Tt,Qt=!1,_A=null,Dt=xt({},[gA,Ut,Tt],Dp),oA,Jt=["application/xhtml+xml","text/html"],re="text/html",te,Be=null,At=r.createElement("form"),it=function(oe){return oe instanceof RegExp||oe instanceof Function},ze=function(oe){Be&&Be===oe||((!oe||ka(oe)!=="object")&&(oe={}),oe=Ui(oe),oA=Jt.indexOf(oe.PARSER_MEDIA_TYPE)===-1?oA=re:oA=oe.PARSER_MEDIA_TYPE,te=oA==="application/xhtml+xml"?Dp:af,H="ALLOWED_TAGS"in oe?xt({},oe.ALLOWED_TAGS,te):J,G="ALLOWED_ATTR"in oe?xt({},oe.ALLOWED_ATTR,te):ne,_A="ALLOWED_NAMESPACES"in oe?xt({},oe.ALLOWED_NAMESPACES,Dp):Dt,Mt="ADD_URI_SAFE_ATTR"in oe?xt(Ui(Et),oe.ADD_URI_SAFE_ATTR,te):Et,pt="ADD_DATA_URI_TAGS"in oe?xt(Ui(He),oe.ADD_DATA_URI_TAGS,te):He,dt="FORBID_CONTENTS"in oe?xt({},oe.FORBID_CONTENTS,te):tt,he="FORBID_TAGS"in oe?xt({},oe.FORBID_TAGS,te):{},ve="FORBID_ATTR"in oe?xt({},oe.FORBID_ATTR,te):{},ft="USE_PROFILES"in oe?oe.USE_PROFILES:!1,Le=oe.ALLOW_ARIA_ATTR!==!1,xe=oe.ALLOW_DATA_ATTR!==!1,De=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=oe.SAFE_FOR_TEMPLATES||!1,me=oe.SAFE_FOR_XML!==!1,X=oe.WHOLE_DOCUMENT||!1,Fe=oe.RETURN_DOM||!1,Se=oe.RETURN_DOM_FRAGMENT||!1,ke=oe.RETURN_TRUSTED_TYPE||!1,Ke=oe.FORCE_BODY||!1,Oe=oe.SANITIZE_DOM!==!1,We=oe.SANITIZE_NAMED_PROPS||!1,ot=oe.KEEP_CONTENT!==!1,rt=oe.IN_PLACE||!1,N=oe.ALLOWED_URI_REGEXP||N,AA=oe.NAMESPACE||Tt,ae=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&it(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ae.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&it(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ae.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ae.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(xe=!1),Se&&(Fe=!0),ft&&(H=xt({},wn(o5)),G=[],ft.html===!0&&(xt(H,i5),xt(G,s5)),ft.svg===!0&&(xt(H,Wp),xt(G,jp),xt(G,sf)),ft.svgFilters===!0&&(xt(H,_p),xt(G,jp),xt(G,sf)),ft.mathMl===!0&&(xt(H,Zp),xt(G,l5),xt(G,sf))),oe.ADD_TAGS&&(H===J&&(H=Ui(H)),xt(H,oe.ADD_TAGS,te)),oe.ADD_ATTR&&(G===ne&&(G=Ui(G)),xt(G,oe.ADD_ATTR,te)),oe.ADD_URI_SAFE_ATTR&&xt(Mt,oe.ADD_URI_SAFE_ATTR,te),oe.FORBID_CONTENTS&&(dt===tt&&(dt=Ui(dt)),xt(dt,oe.FORBID_CONTENTS,te)),ot&&(H["#text"]=!0),X&&xt(H,["html","head","body"]),H.table&&(xt(H,["tbody"]),delete he.tbody),wr&&wr(oe),Be=oe)},lt=xt({},["mi","mo","mn","ms","mtext"]),Qe=xt({},["annotation-xml"]),vt=xt({},["title","style","font","a","script"]),je=xt({},Wp);xt(je,_p),xt(je,RP);var we=xt({},Zp);xt(we,IP);var Bt=function(oe){var Ie=y(oe);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:AA,tagName:"template"});var _e=af(oe.tagName),Rt=af(Ie.tagName);return _A[oe.namespaceURI]?oe.namespaceURI===Ut?Ie.namespaceURI===Tt?_e==="svg":Ie.namespaceURI===gA?_e==="svg"&&(Rt==="annotation-xml"||lt[Rt]):!!je[_e]:oe.namespaceURI===gA?Ie.namespaceURI===Tt?_e==="math":Ie.namespaceURI===Ut?_e==="math"&&Qe[Rt]:!!we[_e]:oe.namespaceURI===Tt?Ie.namespaceURI===Ut&&!Qe[Rt]||Ie.namespaceURI===gA&&!lt[Rt]?!1:!we[_e]&&(vt[_e]||!je[_e]):!!(oA==="application/xhtml+xml"&&_A[oe.namespaceURI]):!1},Ye=function(oe){yl(e.removed,{element:oe});try{oe.parentNode.removeChild(oe)}catch{try{oe.outerHTML=I}catch{oe.remove()}}},Ft=function(oe,Ie){try{yl(e.removed,{attribute:Ie.getAttributeNode(oe),from:Ie})}catch{yl(e.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(oe),oe==="is"&&!G[oe])if(Fe||Se)try{Ye(Ie)}catch{}else try{Ie.setAttribute(oe,"")}catch{}},Pt=function(oe){var Ie,_e;if(Ke)oe="<remove></remove>"+oe;else{var Rt=a5(oe,/^[\r\n\t ]+/);_e=Rt&&Rt[0]}oA==="application/xhtml+xml"&&AA===Tt&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");var EA=Q?Q.createHTML(oe):oe;if(AA===Tt)try{Ie=new g().parseFromString(EA,oA)}catch{}if(!Ie||!Ie.documentElement){Ie=R.createDocument(AA,"template",null);try{Ie.documentElement.innerHTML=Qt?I:EA}catch{}}var lA=Ie.body||Ie.documentElement;return oe&&_e&&lA.insertBefore(r.createTextNode(_e),lA.childNodes[0]||null),AA===Tt?P.call(Ie,X?"html":"body")[0]:X?Ie.documentElement:lA},Ht=function(oe){return L.call(oe.ownerDocument||oe,oe,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},Wt=function(oe){return oe instanceof d&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof u)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},$t=function(oe){return ka(i)==="object"?oe instanceof i:oe&&ka(oe)==="object"&&typeof oe.nodeType=="number"&&typeof oe.nodeName=="string"},sA=function(oe,Ie,_e){O[oe]&&QP(O[oe],function(Rt){Rt.call(e,Ie,_e,Be)})},dr=function(oe){var Ie;if(sA("beforeSanitizeElements",oe,null),Wt(oe)||er(/[\u0080-\uFFFF]/,oe.nodeName))return Ye(oe),!0;var _e=te(oe.nodeName);if(sA("uponSanitizeElement",oe,{tagName:_e,allowedTags:H}),oe.hasChildNodes()&&!$t(oe.firstElementChild)&&(!$t(oe.content)||!$t(oe.content.firstElementChild))&&er(/<[/\w]/g,oe.innerHTML)&&er(/<[/\w]/g,oe.textContent)||_e==="select"&&er(/<template/i,oe.innerHTML)||oe.nodeType===7||me&&oe.nodeType===8&&er(/<[/\w]/g,oe.data))return Ye(oe),!0;if(!H[_e]||he[_e]){if(!he[_e]&&bA(_e)&&(ae.tagNameCheck instanceof RegExp&&er(ae.tagNameCheck,_e)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(_e)))return!1;if(ot&&!dt[_e]){var Rt=y(oe)||oe.parentNode,EA=B(oe)||oe.childNodes;if(EA&&Rt)for(var lA=EA.length,hA=lA-1;hA>=0;--hA){var Rr=v(EA[hA],!0);Rr.__removalCount=(oe.__removalCount||0)+1,Rt.insertBefore(Rr,C(oe))}}return Ye(oe),!0}return oe instanceof o&&!Bt(oe)||(_e==="noscript"||_e==="noembed"||_e==="noframes")&&er(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Ye(oe),!0):(Pe&&oe.nodeType===3&&(Ie=oe.textContent,Ie=yn(Ie,W," "),Ie=yn(Ie,j," "),Ie=yn(Ie,z," "),oe.textContent!==Ie&&(yl(e.removed,{element:oe.cloneNode()}),oe.textContent=Ie)),sA("afterSanitizeElements",oe,null),!1)},Yt=function(oe,Ie,_e){if(Oe&&(Ie==="id"||Ie==="name")&&(_e in r||_e in At))return!1;if(!(xe&&!ve[Ie]&&er(q,Ie))){if(!(Le&&er(Y,Ie))){if(!G[Ie]||ve[Ie]){if(!(bA(oe)&&(ae.tagNameCheck instanceof RegExp&&er(ae.tagNameCheck,oe)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(oe))&&(ae.attributeNameCheck instanceof RegExp&&er(ae.attributeNameCheck,Ie)||ae.attributeNameCheck instanceof Function&&ae.attributeNameCheck(Ie))||Ie==="is"&&ae.allowCustomizedBuiltInElements&&(ae.tagNameCheck instanceof RegExp&&er(ae.tagNameCheck,_e)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(_e))))return!1}else if(!Mt[Ie]){if(!er(N,yn(_e,ee,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&oe!=="script"&&SP(_e,"data:")===0&&pt[oe])){if(!(De&&!er(Ae,yn(_e,ee,"")))){if(_e)return!1}}}}}}return!0},bA=function(oe){return oe!=="annotation-xml"&&a5(oe,ce)},CA=function(oe){var Ie,_e,Rt,EA;sA("beforeSanitizeAttributes",oe,null);var lA=oe.attributes;if(!(!lA||Wt(oe))){var hA={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G};for(EA=lA.length;EA--;){Ie=lA[EA];var Rr=Ie,cA=Rr.name,Hi=Rr.namespaceURI;if(_e=cA==="value"?Ie.value:TP(Ie.value),Rt=te(cA),hA.attrName=Rt,hA.attrValue=_e,hA.keepAttr=!0,hA.forceKeepAttr=void 0,sA("uponSanitizeAttribute",oe,hA),_e=hA.attrValue,!hA.forceKeepAttr&&(Ft(cA,oe),!!hA.keepAttr)){if(!Re&&er(/\/>/i,_e)){Ft(cA,oe);continue}Pe&&(_e=yn(_e,W," "),_e=yn(_e,j," "),_e=yn(_e,z," "));var Di=te(oe.nodeName);if(Yt(Di,Rt,_e)){if(We&&(Rt==="id"||Rt==="name")&&(Ft(cA,oe),_e=qe+_e),me&&er(/((--!?|])>)|<\/(style|title)/i,_e)){Ft(cA,oe);continue}if(Q&&ka(f)==="object"&&typeof f.getAttributeType=="function"&&!Hi)switch(f.getAttributeType(Di,Rt)){case"TrustedHTML":{_e=Q.createHTML(_e);break}case"TrustedScriptURL":{_e=Q.createScriptURL(_e);break}}try{Hi?oe.setAttributeNS(Hi,cA,_e):oe.setAttribute(cA,_e),Wt(oe)?Ye(oe):n5(e.removed)}catch{}}}}sA("afterSanitizeAttributes",oe,null)}},Zr=function nt(oe){var Ie,_e=Ht(oe);for(sA("beforeSanitizeShadowDOM",oe,null);Ie=_e.nextNode();)sA("uponSanitizeShadowNode",Ie,null),dr(Ie),CA(Ie),Ie.content instanceof n&&nt(Ie.content);sA("afterSanitizeShadowDOM",oe,null)};return e.sanitize=function(nt){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie,_e,Rt,EA,lA;if(Qt=!nt,Qt&&(nt="<!-->"),typeof nt!="string"&&!$t(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw Pp("dirty is not a string, aborting")}else throw Pp("toString is not a function");if(!e.isSupported){if(ka(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof nt=="string")return t.toStaticHTML(nt);if($t(nt))return t.toStaticHTML(nt.outerHTML)}return nt}if(ut||ze(oe),e.removed=[],typeof nt=="string"&&(rt=!1),rt){if(nt.nodeName){var hA=te(nt.nodeName);if(!H[hA]||he[hA])throw Pp("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof i)Ie=Pt("<!---->"),_e=Ie.ownerDocument.importNode(nt,!0),_e.nodeType===1&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?Ie=_e:Ie.appendChild(_e);else{if(!Fe&&!Pe&&!X&&nt.indexOf("<")===-1)return Q&&ke?Q.createHTML(nt):nt;if(Ie=Pt(nt),!Ie)return Fe?null:ke?I:""}Ie&&Ke&&Ye(Ie.firstChild);for(var Rr=Ht(rt?nt:Ie);Rt=Rr.nextNode();)Rt.nodeType===3&&Rt===EA||(dr(Rt),CA(Rt),Rt.content instanceof n&&Zr(Rt.content),EA=Rt);if(EA=null,rt)return nt;if(Fe){if(Se)for(lA=D.call(Ie.ownerDocument);Ie.firstChild;)lA.appendChild(Ie.firstChild);else lA=Ie;return(G.shadowroot||G.shadowrootmod)&&(lA=S.call(A,lA,!0)),lA}var cA=X?Ie.outerHTML:Ie.innerHTML;return X&&H["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&er(WP,Ie.ownerDocument.doctype.name)&&(cA="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
|
|
316
316
|
`+cA),Pe&&(cA=yn(cA,W," "),cA=yn(cA,j," "),cA=yn(cA,z," ")),Q&&ke?Q.createHTML(cA):cA},e.setConfig=function(nt){ze(nt),ut=!0},e.clearConfig=function(){Be=null,ut=!1},e.isValidAttribute=function(nt,oe,Ie){Be||ze({});var _e=te(nt),Rt=te(oe);return Yt(_e,Rt,Ie)},e.addHook=function(nt,oe){typeof oe=="function"&&(O[nt]=O[nt]||[],yl(O[nt],oe))},e.removeHook=function(nt){if(O[nt])return n5(O[nt])},e.removeHooks=function(nt){O[nt]&&(O[nt]=[])},e.removeAllHooks=function(){O={}},e}var JP=c5();const KP=Object.freeze(Object.defineProperty({__proto__:null,default:JP},Symbol.toStringTag,{value:"Module"}));var bl=function(t){return t&&t.Math===Math&&t},fA=bl(typeof globalThis=="object"&&globalThis)||bl(typeof window=="object"&&window)||bl(typeof self=="object"&&self)||bl(typeof eo=="object"&&eo)||bl(typeof eo=="object"&&eo)||function(){return this}()||Function("return this")(),Cl={},BA=function(t){try{return!!t()}catch{return!0}},GP=BA,bn=!GP(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),zP=BA,lf=!zP(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),YP=lf,cf=Function.prototype.call,tr=YP?cf.bind(cf):function(){return cf.apply(cf,arguments)},u5={},f5={}.propertyIsEnumerable,h5=Object.getOwnPropertyDescriptor,XP=h5&&!f5.call({1:2},1);u5.f=XP?function(e){var A=h5(this,e);return!!A&&A.enumerable}:f5;var Jp=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},d5=lf,p5=Function.prototype,Kp=p5.call,qP=d5&&p5.bind.bind(Kp,Kp),wA=d5?qP:function(t){return function(){return Kp.apply(t,arguments)}},g5=wA,$P=g5({}.toString),eW=g5("".slice),Fi=function(t){return eW($P(t),8,-1)},tW=wA,AW=BA,rW=Fi,Gp=Object,nW=tW("".split),m5=AW(function(){return!Gp("z").propertyIsEnumerable(0)})?function(t){return rW(t)==="String"?nW(t,""):Gp(t)}:Gp,uf=function(t){return t==null},aW=uf,iW=TypeError,Cn=function(t){if(aW(t))throw new iW("Can't call method on "+t);return t},oW=m5,sW=Cn,El=function(t){return oW(sW(t))},zp=typeof document=="object"&&document.all,RA=typeof zp>"u"&&zp!==void 0?function(t){return typeof t=="function"||t===zp}:function(t){return typeof t=="function"},lW=RA,Tr=function(t){return typeof t=="object"?t!==null:lW(t)},Yp=fA,cW=RA,uW=function(t){return cW(t)?t:void 0},Ni=function(t,e){return arguments.length<2?uW(Yp[t]):Yp[t]&&Yp[t][e]},fW=wA,ff=fW({}.isPrototypeOf),hW=fA,v5=hW.navigator,B5=v5&&v5.userAgent,Ul=B5?String(B5):"",w5=fA,Xp=Ul,y5=w5.process,b5=w5.Deno,C5=y5&&y5.versions||b5&&b5.version,E5=C5&&C5.v8,En,hf;E5&&(En=E5.split("."),hf=En[0]>0&&En[0]<4?1:+(En[0]+En[1])),!hf&&Xp&&(En=Xp.match(/Edge\/(\d+)/),(!En||En[1]>=74)&&(En=Xp.match(/Chrome\/(\d+)/),En&&(hf=+En[1])));var qp=hf,U5=qp,dW=BA,pW=fA,gW=pW.String,F5=!!Object.getOwnPropertySymbols&&!dW(function(){var t=Symbol("symbol detection");return!gW(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U5&&U5<41}),mW=F5,N5=mW&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vW=Ni,BW=RA,wW=ff,yW=N5,bW=Object,Q5=yW?function(t){return typeof t=="symbol"}:function(t){var e=vW("Symbol");return BW(e)&&wW(e.prototype,bW(t))},CW=String,df=function(t){try{return CW(t)}catch{return"Object"}},EW=RA,UW=df,FW=TypeError,ea=function(t){if(EW(t))return t;throw new FW(UW(t)+" is not a function")},NW=ea,QW=uf,Zo=function(t,e){var A=t[e];return QW(A)?void 0:NW(A)},$p=tr,e1=RA,t1=Tr,SW=TypeError,TW=function(t,e){var A,r;if(e==="string"&&e1(A=t.toString)&&!t1(r=$p(A,t))||e1(A=t.valueOf)&&!t1(r=$p(A,t))||e!=="string"&&e1(A=t.toString)&&!t1(r=$p(A,t)))return r;throw new SW("Can't convert object to primitive value")},S5={exports:{}},T5=fA,xW=Object.defineProperty,A1=function(t,e){try{xW(T5,t,{value:e,configurable:!0,writable:!0})}catch{T5[t]=e}return e},RW=fA,IW=A1,x5="__core-js_shared__",R5=S5.exports=RW[x5]||IW(x5,{});(R5.versions||(R5.versions=[])).push({version:"3.45.1",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"});var r1=S5.exports,I5=r1,n1=function(t,e){return I5[t]||(I5[t]=e||{})},VW=Cn,MW=Object,pf=function(t){return MW(VW(t))},LW=wA,OW=pf,kW=LW({}.hasOwnProperty),Un=Object.hasOwn||function(e,A){return kW(OW(e),A)},HW=wA,DW=0,PW=Math.random(),WW=HW(1.1.toString),V5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+WW(++DW+PW,36)},_W=fA,ZW=n1,M5=Un,jW=V5,JW=F5,KW=N5,jo=_W.Symbol,a1=ZW("wks"),GW=KW?jo.for||jo:jo&&jo.withoutSetter||jW,GA=function(t){return M5(a1,t)||(a1[t]=JW&&M5(jo,t)?jo[t]:GW("Symbol."+t)),a1[t]},zW=tr,L5=Tr,O5=Q5,YW=Zo,XW=TW,qW=GA,$W=TypeError,e_=qW("toPrimitive"),t_=function(t,e){if(!L5(t)||O5(t))return t;var A=YW(t,e_),r;if(A){if(e===void 0&&(e="default"),r=zW(A,t,e),!L5(r)||O5(r))return r;throw new $W("Can't convert object to primitive value")}return e===void 0&&(e="number"),XW(t,e)},A_=t_,r_=Q5,k5=function(t){var e=A_(t,"string");return r_(e)?e:e+""},n_=fA,H5=Tr,i1=n_.document,a_=H5(i1)&&H5(i1.createElement),gf=function(t){return a_?i1.createElement(t):{}},i_=bn,o_=BA,s_=gf,D5=!i_&&!o_(function(){return Object.defineProperty(s_("div"),"a",{get:function(){return 7}}).a!==7}),l_=bn,c_=tr,u_=u5,f_=Jp,h_=El,d_=k5,p_=Un,g_=D5,P5=Object.getOwnPropertyDescriptor;Cl.f=l_?P5:function(e,A){if(e=h_(e),A=d_(A),g_)try{return P5(e,A)}catch{}if(p_(e,A))return f_(!c_(u_.f,e,A),e[A])};var ta={},m_=bn,v_=BA,W5=m_&&v_(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),B_=Tr,w_=String,y_=TypeError,yr=function(t){if(B_(t))return t;throw new y_(w_(t)+" is not an object")},b_=bn,C_=D5,E_=W5,mf=yr,_5=k5,U_=TypeError,o1=Object.defineProperty,F_=Object.getOwnPropertyDescriptor,s1="enumerable",l1="configurable",c1="writable";ta.f=b_?E_?function(e,A,r){if(mf(e),A=_5(A),mf(r),typeof e=="function"&&A==="prototype"&&"value"in r&&c1 in r&&!r[c1]){var n=F_(e,A);n&&n[c1]&&(e[A]=r.value,r={configurable:l1 in r?r[l1]:n[l1],enumerable:s1 in r?r[s1]:n[s1],writable:!1})}return o1(e,A,r)}:o1:function(e,A,r){if(mf(e),A=_5(A),mf(r),C_)try{return o1(e,A,r)}catch{}if("get"in r||"set"in r)throw new U_("Accessors not supported");return"value"in r&&(e[A]=r.value),e};var N_=bn,Q_=ta,S_=Jp,Fl=N_?function(t,e,A){return Q_.f(t,e,S_(1,A))}:function(t,e,A){return t[e]=A,t},Z5={exports:{}},u1=bn,T_=Un,j5=Function.prototype,x_=u1&&Object.getOwnPropertyDescriptor,f1=T_(j5,"name"),R_=f1&&(function(){}).name==="something",I_=f1&&(!u1||u1&&x_(j5,"name").configurable),vf={EXISTS:f1,PROPER:R_,CONFIGURABLE:I_},V_=wA,M_=RA,h1=r1,L_=V_(Function.toString);M_(h1.inspectSource)||(h1.inspectSource=function(t){return L_(t)});var d1=h1.inspectSource,O_=fA,k_=RA,J5=O_.WeakMap,H_=k_(J5)&&/native code/.test(String(J5)),D_=n1,P_=V5,K5=D_("keys"),p1=function(t){return K5[t]||(K5[t]=P_(t))},g1={},W_=H_,G5=fA,__=Tr,Z_=Fl,m1=Un,v1=r1,j_=p1,J_=g1,z5="Object already initialized",B1=G5.TypeError,K_=G5.WeakMap,Bf,Nl,wf,G_=function(t){return wf(t)?Nl(t):Bf(t,{})},z_=function(t){return function(e){var A;if(!__(e)||(A=Nl(e)).type!==t)throw new B1("Incompatible receiver, "+t+" required");return A}};if(W_||v1.state){var Wn=v1.state||(v1.state=new K_);Wn.get=Wn.get,Wn.has=Wn.has,Wn.set=Wn.set,Bf=function(t,e){if(Wn.has(t))throw new B1(z5);return e.facade=t,Wn.set(t,e),e},Nl=function(t){return Wn.get(t)||{}},wf=function(t){return Wn.has(t)}}else{var Jo=j_("state");J_[Jo]=!0,Bf=function(t,e){if(m1(t,Jo))throw new B1(z5);return e.facade=t,Z_(t,Jo,e),e},Nl=function(t){return m1(t,Jo)?t[Jo]:{}},wf=function(t){return m1(t,Jo)}}var yf={set:Bf,get:Nl,has:wf,enforce:G_,getterFor:z_},w1=wA,Y_=BA,X_=RA,bf=Un,y1=bn,q_=vf.CONFIGURABLE,$_=d1,Y5=yf,e7=Y5.enforce,t7=Y5.get,X5=String,Cf=Object.defineProperty,A7=w1("".slice),r7=w1("".replace),n7=w1([].join),a7=y1&&!Y_(function(){return Cf(function(){},"length",{value:8}).length!==8}),i7=String(String).split("String"),o7=Z5.exports=function(t,e,A){A7(X5(e),0,7)==="Symbol("&&(e="["+r7(X5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!bf(t,"name")||q_&&t.name!==e)&&(y1?Cf(t,"name",{value:e,configurable:!0}):t.name=e),a7&&A&&bf(A,"arity")&&t.length!==A.arity&&Cf(t,"length",{value:A.arity});try{A&&bf(A,"constructor")&&A.constructor?y1&&Cf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=e7(t);return bf(r,"source")||(r.source=n7(i7,typeof e=="string"?e:"")),t};Function.prototype.toString=o7(function(){return X_(this)&&t7(this).source||$_(this)},"toString");var q5=Z5.exports,s7=RA,l7=ta,c7=q5,u7=A1,Qi=function(t,e,A,r){r||(r={});var n=r.enumerable,a=r.name!==void 0?r.name:e;if(s7(A)&&c7(A,a,r),r.global)n?t[e]=A:u7(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:l7.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},$5={},f7=Math.ceil,h7=Math.floor,d7=Math.trunc||function(e){var A=+e;return(A>0?h7:f7)(A)},p7=d7,Ef=function(t){var e=+t;return e!==e||e===0?0:p7(e)},g7=Ef,m7=Math.max,v7=Math.min,B7=function(t,e){var A=g7(t);return A<0?m7(A+e,0):v7(A,e)},w7=Ef,y7=Math.min,Ko=function(t){var e=w7(t);return e>0?y7(e,9007199254740991):0},b7=Ko,b1=function(t){return b7(t.length)},C7=El,E7=B7,U7=b1,eb=function(t){return function(e,A,r){var n=C7(e),a=U7(n);if(a===0)return!t&&-1;var i=E7(r,a),o;if(t&&A!==A){for(;a>i;)if(o=n[i++],o!==o)return!0}else for(;a>i;i++)if((t||i in n)&&n[i]===A)return t||i||0;return!t&&-1}},tb={includes:eb(!0),indexOf:eb(!1)},F7=wA,C1=Un,N7=El,Q7=tb.indexOf,S7=g1,Ab=F7([].push),rb=function(t,e){var A=N7(t),r=0,n=[],a;for(a in A)!C1(S7,a)&&C1(A,a)&&Ab(n,a);for(;e.length>r;)C1(A,a=e[r++])&&(~Q7(n,a)||Ab(n,a));return n},E1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],T7=rb,x7=E1,R7=x7.concat("length","prototype");$5.f=Object.getOwnPropertyNames||function(e){return T7(e,R7)};var nb={};nb.f=Object.getOwnPropertySymbols;var I7=Ni,V7=wA,M7=$5,L7=nb,O7=yr,k7=V7([].concat),H7=I7("Reflect","ownKeys")||function(e){var A=M7.f(O7(e)),r=L7.f;return r?k7(A,r(e)):A},ab=Un,D7=H7,P7=Cl,W7=ta,_7=function(t,e,A){for(var r=D7(e),n=W7.f,a=P7.f,i=0;i<r.length;i++){var o=r[i];!ab(t,o)&&!(A&&ab(A,o))&&n(t,o,a(e,o))}},Z7=BA,j7=RA,J7=/#|\.prototype\./,Ql=function(t,e){var A=G7[K7(t)];return A===Y7?!0:A===z7?!1:j7(e)?Z7(e):!!e},K7=Ql.normalize=function(t){return String(t).replace(J7,".").toLowerCase()},G7=Ql.data={},z7=Ql.NATIVE="N",Y7=Ql.POLYFILL="P",ib=Ql,Uf=fA,X7=Cl.f,q7=Fl,$7=Qi,eZ=A1,tZ=_7,AZ=ib,br=function(t,e){var A=t.target,r=t.global,n=t.stat,a,i,o,s,l,u;if(r?i=Uf:n?i=Uf[A]||eZ(A,{}):i=Uf[A]&&Uf[A].prototype,i)for(o in e){if(l=e[o],t.dontCallGetSet?(u=X7(i,o),s=u&&u.value):s=i[o],a=AZ(r?o:A+(n?".":"#")+o,t.forced),!a&&s!==void 0){if(typeof l==typeof s)continue;tZ(l,s)}(t.sham||s&&s.sham)&&q7(l,"sham",!0),$7(i,o,l,t)}},Sl=fA,rZ=Ul,nZ=Fi,Ff=function(t){return rZ.slice(0,t.length)===t},ob=function(){return Ff("Bun/")?"BUN":Ff("Cloudflare-Workers")?"CLOUDFLARE":Ff("Deno/")?"DENO":Ff("Node.js/")?"NODE":Sl.Bun&&typeof Bun.version=="string"?"BUN":Sl.Deno&&typeof Deno.version=="object"?"DENO":nZ(Sl.process)==="process"?"NODE":Sl.window&&Sl.document?"BROWSER":"REST"}(),aZ=ob,Nf=aZ==="NODE",iZ=fA,oZ=iZ,sZ=wA,lZ=ea,cZ=function(t,e,A){try{return sZ(lZ(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}},uZ=Tr,fZ=function(t){return uZ(t)||t===null},hZ=fZ,dZ=String,pZ=TypeError,gZ=function(t){if(hZ(t))return t;throw new pZ("Can't set "+dZ(t)+" as a prototype")},mZ=cZ,vZ=Tr,BZ=Cn,wZ=gZ,sb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},A;try{A=mZ(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,a){return BZ(n),wZ(a),vZ(n)&&(t?A(n,a):n.__proto__=a),n}}():void 0),yZ=ta.f,bZ=Un,CZ=GA,lb=CZ("toStringTag"),Qf=function(t,e,A){t&&!A&&(t=t.prototype),t&&!bZ(t,lb)&&yZ(t,lb,{configurable:!0,value:e})},cb=q5,EZ=ta,UZ=function(t,e,A){return A.get&&cb(A.get,e,{getter:!0}),A.set&&cb(A.set,e,{setter:!0}),EZ.f(t,e,A)},FZ=Ni,NZ=UZ,QZ=GA,SZ=bn,ub=QZ("species"),TZ=function(t){var e=FZ(t);SZ&&e&&!e[ub]&&NZ(e,ub,{configurable:!0,get:function(){return this}})},xZ=ff,RZ=TypeError,IZ=function(t,e){if(xZ(e,t))return t;throw new RZ("Incorrect invocation")},VZ=GA,MZ=VZ("toStringTag"),fb={};fb[MZ]="z";var LZ=String(fb)==="[object z]",OZ=LZ,kZ=RA,Sf=Fi,HZ=GA,DZ=HZ("toStringTag"),PZ=Object,WZ=Sf(function(){return arguments}())==="Arguments",_Z=function(t,e){try{return t[e]}catch{}},U1=OZ?Sf:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=_Z(e=PZ(t),DZ))=="string"?A:WZ?Sf(e):(r=Sf(e))==="Object"&&kZ(e.callee)?"Arguments":r},ZZ=wA,jZ=BA,hb=RA,JZ=U1,KZ=Ni,GZ=d1,db=function(){},pb=KZ("Reflect","construct"),F1=/^\s*(?:class|function)\b/,zZ=ZZ(F1.exec),YZ=!F1.test(db),Tl=function(e){if(!hb(e))return!1;try{return pb(db,[],e),!0}catch{return!1}},gb=function(e){if(!hb(e))return!1;switch(JZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return YZ||!!zZ(F1,GZ(e))}catch{return!0}};gb.sham=!0;var XZ=!pb||jZ(function(){var t;return Tl(Tl.call)||!Tl(Object)||!Tl(function(){t=!0})||t})?gb:Tl,qZ=XZ,$Z=df,e9=TypeError,t9=function(t){if(qZ(t))return t;throw new e9($Z(t)+" is not a constructor")},mb=yr,A9=t9,r9=uf,n9=GA,a9=n9("species"),vb=function(t,e){var A=mb(t).constructor,r;return A===void 0||r9(r=mb(A)[a9])?e:A9(r)},i9=lf,Bb=Function.prototype,wb=Bb.apply,yb=Bb.call,bb=typeof Reflect=="object"&&Reflect.apply||(i9?yb.bind(wb):function(){return yb.apply(wb,arguments)}),o9=Fi,s9=wA,Tf=function(t){if(o9(t)==="Function")return s9(t)},Cb=Tf,l9=ea,c9=lf,u9=Cb(Cb.bind),N1=function(t,e){return l9(t),e===void 0?t:c9?u9(t,e):function(){return t.apply(e,arguments)}},f9=Ni,Eb=f9("document","documentElement"),h9=wA,d9=h9([].slice),p9=TypeError,g9=function(t,e){if(t<e)throw new p9("Not enough arguments");return t},m9=Ul,Ub=/(?:ipad|iphone|ipod).*applewebkit/i.test(m9),_r=fA,v9=bb,B9=N1,Fb=RA,w9=Un,Nb=BA,Qb=Eb,y9=d9,Sb=gf,b9=g9,C9=Ub,E9=Nf,Q1=_r.setImmediate,S1=_r.clearImmediate,U9=_r.process,T1=_r.Dispatch,F9=_r.Function,Tb=_r.MessageChannel,N9=_r.String,x1=0,xl={},xb="onreadystatechange",Rl,Si,R1,I1;Nb(function(){Rl=_r.location});var V1=function(t){if(w9(xl,t)){var e=xl[t];delete xl[t],e()}},M1=function(t){return function(){V1(t)}},Rb=function(t){V1(t.data)},Ib=function(t){_r.postMessage(N9(t),Rl.protocol+"//"+Rl.host)};(!Q1||!S1)&&(Q1=function(e){b9(arguments.length,1);var A=Fb(e)?e:F9(e),r=y9(arguments,1);return xl[++x1]=function(){v9(A,void 0,r)},Si(x1),x1},S1=function(e){delete xl[e]},E9?Si=function(t){U9.nextTick(M1(t))}:T1&&T1.now?Si=function(t){T1.now(M1(t))}:Tb&&!C9?(R1=new Tb,I1=R1.port2,R1.port1.onmessage=Rb,Si=B9(I1.postMessage,I1)):_r.addEventListener&&Fb(_r.postMessage)&&!_r.importScripts&&Rl&&Rl.protocol!=="file:"&&!Nb(Ib)?(Si=Ib,_r.addEventListener("message",Rb,!1)):xb in Sb("script")?Si=function(t){Qb.appendChild(Sb("script"))[xb]=function(){Qb.removeChild(this),V1(t)}}:Si=function(t){setTimeout(M1(t),0)});var Vb={set:Q1,clear:S1},Mb=fA,Q9=bn,S9=Object.getOwnPropertyDescriptor,T9=function(t){if(!Q9)return Mb[t];var e=S9(Mb,t);return e&&e.value},Lb=function(){this.head=null,this.tail=null};Lb.prototype={add:function(t){var e={item:t,next:null},A=this.tail;A?A.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var Ob=Lb,x9=Ul,R9=/ipad|iphone|ipod/i.test(x9)&&typeof Pebble<"u",I9=Ul,V9=/web0s(?!.*chrome)/i.test(I9),Go=fA,M9=T9,kb=N1,L1=Vb.set,L9=Ob,O9=Ub,k9=R9,H9=V9,O1=Nf,Hb=Go.MutationObserver||Go.WebKitMutationObserver,Db=Go.document,Pb=Go.process,xf=Go.Promise,k1=M9("queueMicrotask"),zo,H1,D1,Rf,Wb;if(!k1){var If=new L9,Vf=function(){var t,e;for(O1&&(t=Pb.domain)&&t.exit();e=If.get();)try{e()}catch(A){throw If.head&&zo(),A}t&&t.enter()};!O9&&!O1&&!H9&&Hb&&Db?(H1=!0,D1=Db.createTextNode(""),new Hb(Vf).observe(D1,{characterData:!0}),zo=function(){D1.data=H1=!H1}):!k9&&xf&&xf.resolve?(Rf=xf.resolve(void 0),Rf.constructor=xf,Wb=kb(Rf.then,Rf),zo=function(){Wb(Vf)}):O1?zo=function(){Pb.nextTick(Vf)}:(L1=kb(L1,Go),zo=function(){L1(Vf)}),k1=function(t){If.head||zo(),If.add(t)}}var D9=k1,P9=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},P1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},W9=fA,Mf=W9.Promise,_9=fA,Il=Mf,Z9=RA,j9=ib,J9=d1,K9=GA,_b=ob,W1=qp;Il&&Il.prototype;var G9=K9("species"),_1=!1,Zb=Z9(_9.PromiseRejectionEvent),z9=j9("Promise",function(){var t=J9(Il),e=t!==String(Il);if(!e&&W1===66)return!0;if(!W1||W1<51||!/native code/.test(t)){var A=new Il(function(a){a(1)}),r=function(a){a(function(){},function(){})},n=A.constructor={};if(n[G9]=r,_1=A.then(function(){})instanceof r,!_1)return!0}return!e&&(_b==="BROWSER"||_b==="DENO")&&!Zb}),Vl={CONSTRUCTOR:z9,REJECTION_EVENT:Zb,SUBCLASSING:_1},Yo={},jb=ea,Y9=TypeError,X9=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new Y9("Bad Promise constructor");e=r,A=n}),this.resolve=jb(e),this.reject=jb(A)};Yo.f=function(t){return new X9(t)};var q9=br,Lf=Nf,Ha=fA,$9=oZ,Xo=tr,Jb=Qi,Kb=sb,ej=Qf,tj=TZ,Aj=ea,Of=RA,rj=Tr,nj=IZ,aj=vb,Gb=Vb.set,Z1=D9,ij=P9,oj=P1,sj=Ob,zb=yf,kf=Mf,j1=Vl,Yb=Yo,Hf="Promise",Xb=j1.CONSTRUCTOR,lj=j1.REJECTION_EVENT,cj=j1.SUBCLASSING,J1=zb.getterFor(Hf),uj=zb.set,qo=kf&&kf.prototype,Ti=kf,Df=qo,qb=Ha.TypeError,K1=Ha.document,G1=Ha.process,z1=Yb.f,fj=z1,hj=!!(K1&&K1.createEvent&&Ha.dispatchEvent),$b="unhandledrejection",dj="rejectionhandled",eC=0,tC=1,pj=2,Y1=1,AC=2,Pf,rC,nC,aC,iC=function(t){var e;return rj(t)&&Of(e=t.then)?e:!1},oC=function(t,e){var A=e.value,r=e.state===tC,n=r?t.ok:t.fail,a=t.resolve,i=t.reject,o=t.domain,s,l,u;try{n?(r||(e.rejection===AC&&mj(e),e.rejection=Y1),n===!0?s=A:(o&&o.enter(),s=n(A),o&&(o.exit(),u=!0)),s===t.promise?i(new qb("Promise-chain cycle")):(l=iC(s))?Xo(l,s,a,i):a(s)):i(A)}catch(d){o&&!u&&o.exit(),i(d)}},sC=function(t,e){t.notified||(t.notified=!0,Z1(function(){for(var A=t.reactions,r;r=A.get();)oC(r,t);t.notified=!1,e&&!t.rejection&&gj(t)}))},lC=function(t,e,A){var r,n;hj?(r=K1.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),Ha.dispatchEvent(r)):r={promise:e,reason:A},!lj&&(n=Ha["on"+t])?n(r):t===$b&&ij("Unhandled promise rejection",A)},gj=function(t){Xo(Gb,Ha,function(){var e=t.facade,A=t.value,r=cC(t),n;if(r&&(n=oj(function(){Lf?G1.emit("unhandledRejection",A,e):lC($b,e,A)}),t.rejection=Lf||cC(t)?AC:Y1,n.error))throw n.value})},cC=function(t){return t.rejection!==Y1&&!t.parent},mj=function(t){Xo(Gb,Ha,function(){var e=t.facade;Lf?G1.emit("rejectionHandled",e):lC(dj,e,t.value)})},$o=function(t,e,A){return function(r){t(e,r,A)}},es=function(t,e,A){t.done||(t.done=!0,A&&(t=A),t.value=e,t.state=pj,sC(t,!0))},X1=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new qb("Promise can't be resolved itself");var r=iC(e);r?Z1(function(){var n={done:!1};try{Xo(r,e,$o(X1,n,t),$o(es,n,t))}catch(a){es(n,a,t)}}):(t.value=e,t.state=tC,sC(t,!1))}catch(n){es({done:!1},n,t)}}};if(Xb&&(Ti=function(e){nj(this,Df),Aj(e),Xo(Pf,this);var A=J1(this);try{e($o(X1,A),$o(es,A))}catch(r){es(A,r)}},Df=Ti.prototype,Pf=function(e){uj(this,{type:Hf,done:!1,notified:!1,parent:!1,reactions:new sj,rejection:!1,state:eC,value:null})},Pf.prototype=Jb(Df,"then",function(e,A){var r=J1(this),n=z1(aj(this,Ti));return r.parent=!0,n.ok=Of(e)?e:!0,n.fail=Of(A)&&A,n.domain=Lf?G1.domain:void 0,r.state===eC?r.reactions.add(n):Z1(function(){oC(n,r)}),n.promise}),rC=function(){var t=new Pf,e=J1(t);this.promise=t,this.resolve=$o(X1,e),this.reject=$o(es,e)},Yb.f=z1=function(t){return t===Ti||t===nC?new rC(t):fj(t)},Of(kf)&&qo!==Object.prototype)){aC=qo.then,cj||Jb(qo,"then",function(e,A){var r=this;return new Ti(function(n,a){Xo(aC,r,n,a)}).then(e,A)},{unsafe:!0});try{delete qo.constructor}catch{}Kb&&Kb(qo,Df)}q9({global:!0,constructor:!0,wrap:!0,forced:Xb},{Promise:Ti}),nC=$9.Promise,ej(Ti,Hf,!1),tj(Hf);var Ml={},vj=GA,Bj=Ml,wj=vj("iterator"),yj=Array.prototype,bj=function(t){return t!==void 0&&(Bj.Array===t||yj[wj]===t)},Cj=U1,uC=Zo,Ej=uf,Uj=Ml,Fj=GA,Nj=Fj("iterator"),fC=function(t){if(!Ej(t))return uC(t,Nj)||uC(t,"@@iterator")||Uj[Cj(t)]},Qj=tr,Sj=ea,Tj=yr,xj=df,Rj=fC,Ij=TypeError,Vj=function(t,e){var A=arguments.length<2?Rj(t):e;if(Sj(A))return Tj(Qj(A,t));throw new Ij(xj(t)+" is not iterable")},Mj=tr,hC=yr,Lj=Zo,Oj=function(t,e,A){var r,n;hC(t);try{if(r=Lj(t,"return"),!r){if(e==="throw")throw A;return A}r=Mj(r,t)}catch(a){n=!0,r=a}if(e==="throw")throw A;if(n)throw r;return hC(r),A},kj=N1,Hj=tr,Dj=yr,Pj=df,Wj=bj,_j=b1,dC=ff,Zj=Vj,jj=fC,pC=Oj,Jj=TypeError,Wf=function(t,e){this.stopped=t,this.result=e},gC=Wf.prototype,mC=function(t,e,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),a=!!(A&&A.IS_RECORD),i=!!(A&&A.IS_ITERATOR),o=!!(A&&A.INTERRUPTED),s=kj(e,r),l,u,d,g,f,w,v,C=function(y){return l&&pC(l,"normal"),new Wf(!0,y)},B=function(y){return n?(Dj(y),o?s(y[0],y[1],C):s(y[0],y[1])):o?s(y,C):s(y)};if(a)l=t.iterator;else if(i)l=t;else{if(u=jj(t),!u)throw new Jj(Pj(t)+" is not iterable");if(Wj(u)){for(d=0,g=_j(t);g>d;d++)if(f=B(t[d]),f&&dC(gC,f))return f;return new Wf(!1)}l=Zj(t,u)}for(w=a?t.next:l.next;!(v=Hj(w,l)).done;){try{f=B(v.value)}catch(y){pC(l,"throw",y)}if(typeof f=="object"&&f&&dC(gC,f))return f}return new Wf(!1)},Kj=GA,vC=Kj("iterator"),BC=!1;try{var Gj=0,wC={next:function(){return{done:!!Gj++}},return:function(){BC=!0}};wC[vC]=function(){return this},Array.from(wC,function(){throw 2})}catch{}var zj=function(t,e){try{if(!e&&!BC)return!1}catch{return!1}var A=!1;try{var r={};r[vC]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A},Yj=Mf,Xj=zj,qj=Vl.CONSTRUCTOR,yC=qj||!Xj(function(t){Yj.all(t).then(void 0,function(){})}),$j=br,eJ=tr,tJ=ea,AJ=Yo,rJ=P1,nJ=mC,aJ=yC;$j({target:"Promise",stat:!0,forced:aJ},{all:function(e){var A=this,r=AJ.f(A),n=r.resolve,a=r.reject,i=rJ(function(){var o=tJ(A.resolve),s=[],l=0,u=1;nJ(e,function(d){var g=l++,f=!1;u++,eJ(o,A,d).then(function(w){f||(f=!0,s[g]=w,--u||n(s))},a)}),--u||n(s)});return i.error&&a(i.value),r.promise}});var iJ=br,oJ=Vl.CONSTRUCTOR,q1=Mf,sJ=Ni,lJ=RA,cJ=Qi,bC=q1&&q1.prototype;if(iJ({target:"Promise",proto:!0,forced:oJ,real:!0},{catch:function(t){return this.then(void 0,t)}}),lJ(q1)){var CC=sJ("Promise").prototype.catch;bC.catch!==CC&&cJ(bC,"catch",CC,{unsafe:!0})}var uJ=br,fJ=tr,hJ=ea,dJ=Yo,pJ=P1,gJ=mC,mJ=yC;uJ({target:"Promise",stat:!0,forced:mJ},{race:function(e){var A=this,r=dJ.f(A),n=r.reject,a=pJ(function(){var i=hJ(A.resolve);gJ(e,function(o){fJ(i,A,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var vJ=br,BJ=Yo,wJ=Vl.CONSTRUCTOR;vJ({target:"Promise",stat:!0,forced:wJ},{reject:function(e){var A=BJ.f(this),r=A.reject;return r(e),A.promise}});var yJ=yr,bJ=Tr,CJ=Yo,EJ=function(t,e){if(yJ(t),bJ(e)&&e.constructor===t)return e;var A=CJ.f(t),r=A.resolve;return r(e),A.promise},UJ=br,FJ=Ni,NJ=Vl.CONSTRUCTOR,QJ=EJ;FJ("Promise"),UJ({target:"Promise",stat:!0,forced:NJ},{resolve:function(e){return QJ(this,e)}});function EC(t,e,A,r,n,a,i){try{var o=t[a](i),s=o.value}catch(l){return void A(l)}o.done?e(s):Promise.resolve(s).then(r,n)}function Aa(t){return function(){var e=this,A=arguments;return new Promise(function(r,n){var a=t.apply(e,A);function i(s){EC(a,r,n,i,o,"next",s)}function o(s){EC(a,r,n,i,o,"throw",s)}i(void 0)})}}var SJ=U1,TJ=String,_n=function(t){if(SJ(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return TJ(t)},xJ=yr,UC=function(){var t=xJ(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},$1=BA,RJ=fA,eg=RJ.RegExp,tg=$1(function(){var t=eg("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),IJ=tg||$1(function(){return!eg("a","y").sticky}),VJ=tg||$1(function(){var t=eg("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),FC={BROKEN_CARET:VJ,MISSED_STICKY:IJ,UNSUPPORTED_Y:tg},NC={},MJ=rb,LJ=E1,OJ=Object.keys||function(e){return MJ(e,LJ)},kJ=bn,HJ=W5,DJ=ta,PJ=yr,WJ=El,_J=OJ;NC.f=kJ&&!HJ?Object.defineProperties:function(e,A){PJ(e);for(var r=WJ(A),n=_J(A),a=n.length,i=0,o;a>i;)DJ.f(e,o=n[i++],r[o]);return e};var ZJ=yr,jJ=NC,QC=E1,JJ=g1,KJ=Eb,GJ=gf,zJ=p1,SC=">",TC="<",Ag="prototype",rg="script",xC=zJ("IE_PROTO"),ng=function(){},RC=function(t){return TC+rg+SC+t+TC+"/"+rg+SC},IC=function(t){t.write(RC("")),t.close();var e=t.parentWindow.Object;return t=null,e},YJ=function(){var t=GJ("iframe"),e="java"+rg+":",A;return t.style.display="none",KJ.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(RC("document.F=Object")),A.close(),A.F},_f,Zf=function(){try{_f=new ActiveXObject("htmlfile")}catch{}Zf=typeof document<"u"?document.domain&&_f?IC(_f):YJ():IC(_f);for(var t=QC.length;t--;)delete Zf[Ag][QC[t]];return Zf()};JJ[xC]=!0;var ag=Object.create||function(e,A){var r;return e!==null?(ng[Ag]=ZJ(e),r=new ng,ng[Ag]=null,r[xC]=e):r=Zf(),A===void 0?r:jJ.f(r,A)},XJ=BA,qJ=fA,$J=qJ.RegExp,eK=XJ(function(){var t=$J(".","s");return!(t.dotAll&&t.test(`
|
|
317
317
|
`)&&t.flags==="s")}),tK=BA,AK=fA,rK=AK.RegExp,nK=tK(function(){var t=rK("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ts=tr,jf=wA,aK=_n,iK=UC,oK=FC,sK=n1,lK=ag,cK=yf.get,uK=eK,fK=nK,hK=sK("native-string-replace",String.prototype.replace),Jf=RegExp.prototype.exec,ig=Jf,dK=jf("".charAt),pK=jf("".indexOf),gK=jf("".replace),og=jf("".slice),sg=function(){var t=/a/,e=/b*/g;return ts(Jf,t,"a"),ts(Jf,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),VC=oK.BROKEN_CARET,lg=/()??/.exec("")[1]!==void 0,mK=sg||lg||VC||uK||fK;mK&&(ig=function(e){var A=this,r=cK(A),n=aK(e),a=r.raw,i,o,s,l,u,d,g;if(a)return a.lastIndex=A.lastIndex,i=ts(ig,a,n),A.lastIndex=a.lastIndex,i;var f=r.groups,w=VC&&A.sticky,v=ts(iK,A),C=A.source,B=0,y=n;if(w&&(v=gK(v,"y",""),pK(v,"g")===-1&&(v+="g"),y=og(n,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&dK(n,A.lastIndex-1)!==`
|