template-designer 0.11.2 → 0.11.3

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.
@@ -1,8 +1,8 @@
1
- (function(vr,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],f):(vr=typeof globalThis<"u"?globalThis:vr||self,f(vr.TemplateDesigner={},vr.Vue))})(this,function(vr,f){"use strict";const wF=(t,e)=>{const A=t[e];return A?typeof A=="function"?A():Promise.resolve(A):new Promise((r,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})};function Qs(t,e,A){const r=(i,o,s,l,u=0)=>{let d=i,g=o;if(u&&u!==0){const h=i+s/2,y=o+l/2,w=-s/2,b=-l/2,v=u*Math.PI/180,C=Math.cos(v),N=Math.sin(v),S=w*C-b*N,O=w*N+b*C;d=h+S,g=y+O}return{x1:Math.round(d*100)/100,y1:Math.round(g*100)/100}};return{calculateTopLeftCoordinates:r,watchCoordinates:()=>{f.watch(()=>{var i,o,s,l,u;return[(i=t.modelValue)==null?void 0:i.x,(o=t.modelValue)==null?void 0:o.y,(s=t.modelValue)==null?void 0:s.width,(l=t.modelValue)==null?void 0:l.height,(u=t.modelValue)==null?void 0:u.rotation]},([i,o,s,l,u])=>{if(t.modelValue&&i!==void 0&&o!==void 0&&s!==void 0&&l!==void 0){const d=r(i,o,s,l,u||0),g={x1:t.modelValue.x1,y1:t.modelValue.y1};(Math.abs(d.x1-g.x1)>.001||Math.abs(d.y1-g.y1)>.001)&&e("update:modelValue",{...t.modelValue,...d})}},{immediate:!0})},initCoordinates:()=>{t.modelValue&&(!t.modelValue.x1||!t.modelValue.y1)&&f.nextTick(()=>{const{x:i,y:o,width:s,height:l,rotation:u=0}=t.modelValue;if(i!==void 0&&o!==void 0&&s!==void 0&&l!==void 0){const d=r(i,o,s,l,u);e("update:modelValue",{...t.modelValue,...d})}})}}}const Iq="",yF={__name:"TextComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Qs(A,r),i=f.ref(new Map),o=f.ref(""),s=f.computed(()=>{var O,P,k,R,I,x,F;const b=JSON.stringify(((P=(O=A.modelValue)==null?void 0:O.options)==null?void 0:P.fields)||[]);b!==o.value&&(i.value.clear(),o.value=b);let v="";if(Array.isArray(A.modelValue.FieldName)){const E=A.modelValue.FieldName.map(T=>{var Z,K,Y,G;if(i.value.has(T))return i.value.get(T);const L=((G=(Y=(K=(Z=A.modelValue)==null?void 0:Z.options)==null?void 0:K.fields)==null?void 0:Y.find(q=>q.value==T))==null?void 0:G.label)||T;return i.value.set(T,L),L}).filter(T=>T);if(E.length>0){const T=A.modelValue.FieldConnector||" ";v=E.join(T)}}else{const E=(k=A.modelValue)==null?void 0:k.FieldName;E&&(i.value.has(E)?v=i.value.get(E):(v=((F=(x=(I=(R=A.modelValue)==null?void 0:R.options)==null?void 0:I.fields)==null?void 0:x.find(T=>T.value==E))==null?void 0:F.label)||"",i.value.set(E,v)))}let S=(A.modelValue.TemplateDisplay||"text")==="fieldName"?v:A.modelValue.Text;return A.modelValue.Title&&(S=`${A.modelValue.Title}${S}`),A.modelValue.EndMark&&(S=`${S}${A.modelValue.EndMark}`),S}),l=f.ref({});f.computed(()=>A.modelValue.__selected||!1);const u=f.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",overflow:"hidden",boxSizing:"border-box"})),d=f.ref(new Map),g=b=>{var C,N,S,O,P,k;if(d.value.has(b))return d.value.get(b);const v=((k=(P=(O=(S=(N=(C=A.propsConfig)==null?void 0:C.text)==null?void 0:N.propertyPanel)==null?void 0:S.find(R=>R.prop=="FontName"))==null?void 0:O.options)==null?void 0:P.find(R=>R.value==b))==null?void 0:k.cssValue)||b;return d.value.set(b,v),v},h={1:"left",2:"center",3:"right"},y=f.computed(()=>{const b=A.modelValue.TextWrap??l.value.TextWrap??2,v=A.modelValue.FontSize??l.value.FontSize,C=A.modelValue.FontName||l.value.FontName,N=A.modelValue.Bold||l.value.Bold,S=A.modelValue.Italic||l.value.Italic,O=A.modelValue.FontColor||l.value.FontColor,P=A.modelValue.Alignment||l.value.Alignment||2,k={fontSize:v+"px",fontFamily:g(C),fontWeight:N?"bold":"normal",fontStyle:S?"italic":"normal",color:O,width:"100%",minWidth:0,boxSizing:"border-box",textAlign:h[P]};switch(b){case 1:k.whiteSpace="pre-wrap",k.overflow="visible",k.textOverflow="unset";break;case 2:k.whiteSpace="nowrap",k.overflow="hidden",k.textOverflow="clip";break;case 3:k.whiteSpace="nowrap",k.overflow="hidden",k.textOverflow="ellipsis";break}return k}),w=()=>{var v,C;const b=gi((C=(v=A.propsConfig)==null?void 0:v.text)==null?void 0:C.propertyPanel)||{};l.value=b,d.value.clear()};return a(),n(),f.watch(()=>A.propsConfig,()=>w(),{deep:!0,immediate:!0}),(b,v)=>(f.openBlock(),f.createElementBlock("div",{class:"td-text-component",style:f.normalizeStyle(u.value)},[f.createElementVNode("div",{class:"td-text-content",style:f.normalizeStyle(y.value)},f.toDisplayString(s.value),5)],4))}},$2=Symbol(),yc="el",bF="is-",ni=(t,e,A,r,n)=>{let a=`${t}-${e}`;return A&&(a+=`-${A}`),r&&(a+=`__${r}`),n&&(a+=`--${n}`),a},em=Symbol("namespaceContextKey"),CF=t=>{const e=t||(f.getCurrentInstance()?f.inject(em,f.ref(yc)):f.ref(yc));return f.computed(()=>f.unref(e)||yc)},Xh=(t,e)=>{const A=CF(e);return{namespace:A,b:(w="")=>ni(A.value,t,w,"",""),e:w=>w?ni(A.value,t,"",w,""):"",m:w=>w?ni(A.value,t,"","",w):"",be:(w,b)=>w&&b?ni(A.value,t,w,b,""):"",em:(w,b)=>w&&b?ni(A.value,t,"",w,b):"",bm:(w,b)=>w&&b?ni(A.value,t,w,"",b):"",bem:(w,b,v)=>w&&b&&v?ni(A.value,t,w,b,v):"",is:(w,...b)=>{const v=b.length>=1?b[0]:!0;return w&&v?`${bF}${w}`:""},cssVar:w=>{const b={};for(const v in w)w[v]&&(b[`--${A.value}-${v}`]=w[v]);return b},cssVarName:w=>`--${A.value}-${w}`,cssVarBlock:w=>{const b={};for(const v in w)w[v]&&(b[`--${A.value}-${t}-${v}`]=w[v]);return b},cssVarBlockName:w=>`--${A.value}-${t}-${w}`}};/**
1
+ (function(vr,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],f):(vr=typeof globalThis<"u"?globalThis:vr||self,f(vr.TemplateDesigner={},vr.Vue))})(this,function(vr,f){"use strict";const wF=(t,e)=>{const A=t[e];return A?typeof A=="function"?A():Promise.resolve(A):new Promise((r,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})};function Qs(t,e,A){const r=(i,o,s,l,u=0)=>{let d=i,g=o;if(u&&u!==0){const h=i+s/2,y=o+l/2,w=-s/2,b=-l/2,v=u*Math.PI/180,C=Math.cos(v),N=Math.sin(v),S=w*C-b*N,O=w*N+b*C;d=h+S,g=y+O}return{x1:Math.round(d*100)/100,y1:Math.round(g*100)/100}};return{calculateTopLeftCoordinates:r,watchCoordinates:()=>{f.watch(()=>{var i,o,s,l,u;return[(i=t.modelValue)==null?void 0:i.x,(o=t.modelValue)==null?void 0:o.y,(s=t.modelValue)==null?void 0:s.width,(l=t.modelValue)==null?void 0:l.height,(u=t.modelValue)==null?void 0:u.rotation]},([i,o,s,l,u])=>{if(t.modelValue&&i!==void 0&&o!==void 0&&s!==void 0&&l!==void 0){const d=r(i,o,s,l,u||0),g={x1:t.modelValue.x1,y1:t.modelValue.y1};(Math.abs(d.x1-g.x1)>.001||Math.abs(d.y1-g.y1)>.001)&&e("update:modelValue",{...t.modelValue,...d})}},{immediate:!0})},initCoordinates:()=>{t.modelValue&&(!t.modelValue.x1||!t.modelValue.y1)&&f.nextTick(()=>{const{x:i,y:o,width:s,height:l,rotation:u=0}=t.modelValue;if(i!==void 0&&o!==void 0&&s!==void 0&&l!==void 0){const d=r(i,o,s,l,u);e("update:modelValue",{...t.modelValue,...d})}})}}}const Iq="",yF={__name:"TextComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Qs(A,r),i=f.ref(new Map),o=f.ref(""),s=f.computed(()=>{var O,P,k,R,I,x,F;const b=JSON.stringify(((P=(O=A.modelValue)==null?void 0:O.options)==null?void 0:P.fields)||[]);b!==o.value&&(i.value.clear(),o.value=b);let v="";if(Array.isArray(A.modelValue.FieldName)){const E=A.modelValue.FieldName.map(T=>{var Z,K,Y,G;if(i.value.has(T))return i.value.get(T);const L=((G=(Y=(K=(Z=A.modelValue)==null?void 0:Z.options)==null?void 0:K.fields)==null?void 0:Y.find(q=>q.value==T))==null?void 0:G.label)||T;return i.value.set(T,L),L}).filter(T=>T);if(E.length>0){const T=A.modelValue.FieldConnector||" ";v=E.join(T)}}else{const E=(k=A.modelValue)==null?void 0:k.FieldName;E&&(i.value.has(E)?v=i.value.get(E):(v=((F=(x=(I=(R=A.modelValue)==null?void 0:R.options)==null?void 0:I.fields)==null?void 0:x.find(T=>T.value==E))==null?void 0:F.label)||"",i.value.set(E,v)))}let S=(A.modelValue.TemplateDisplay||"text")==="fieldName"?v:A.modelValue.Text;return A.modelValue.Title&&(S=`${A.modelValue.Title}${S}`),A.modelValue.EndMark&&(S=`${S}${A.modelValue.EndMark}`),S}),l=f.ref({});f.computed(()=>A.modelValue.__selected||!1);const u=f.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",overflow:"hidden",boxSizing:"border-box"})),d=f.ref(new Map),g=b=>{var C,N,S,O,P,k;if(d.value.has(b))return d.value.get(b);const v=((k=(P=(O=(S=(N=(C=A.propsConfig)==null?void 0:C.text)==null?void 0:N.propertyPanel)==null?void 0:S.find(R=>R.prop=="FontName"))==null?void 0:O.options)==null?void 0:P.find(R=>R.value==b))==null?void 0:k.cssValue)||b;return d.value.set(b,v),v},h={1:"left",2:"center",3:"right",4:"justify"},y=f.computed(()=>{const b=A.modelValue.TextWrap??l.value.TextWrap??2,v=A.modelValue.FontSize??l.value.FontSize,C=A.modelValue.FontName||l.value.FontName,N=A.modelValue.Bold||l.value.Bold,S=A.modelValue.Italic||l.value.Italic,O=A.modelValue.FontColor||l.value.FontColor,P=A.modelValue.WordSpace||l.value.WordSpace||0,k=A.modelValue.Alignment||l.value.Alignment||2,R={fontSize:v+"px",fontFamily:g(C),fontWeight:N?"bold":"normal",fontStyle:S?"italic":"normal",color:O,letterSpacing:P+"px",width:"100%",minWidth:0,boxSizing:"border-box",textAlign:h[k]};switch(b){case 1:R.whiteSpace="pre-wrap",R.overflow="visible",R.textOverflow="unset";break;case 2:R.whiteSpace="nowrap",R.overflow="hidden",R.textOverflow="clip";break;case 3:R.whiteSpace="nowrap",R.overflow="hidden",R.textOverflow="ellipsis";break}return k===4&&(R.overflow="visible",R.textOverflow="unset",R.textAlign="justify",R.textAlignLast="justify"),R}),w=()=>{var v,C;const b=gi((C=(v=A.propsConfig)==null?void 0:v.text)==null?void 0:C.propertyPanel)||{};l.value=b,d.value.clear()};return a(),n(),f.watch(()=>A.propsConfig,()=>w(),{deep:!0,immediate:!0}),(b,v)=>(f.openBlock(),f.createElementBlock("div",{class:"td-text-component",style:f.normalizeStyle(u.value)},[f.createElementVNode("div",{class:"td-text-content",style:f.normalizeStyle(y.value)},f.toDisplayString(s.value),5)],4))}},$2=Symbol(),yc="el",bF="is-",ni=(t,e,A,r,n)=>{let a=`${t}-${e}`;return A&&(a+=`-${A}`),r&&(a+=`__${r}`),n&&(a+=`--${n}`),a},em=Symbol("namespaceContextKey"),CF=t=>{const e=t||(f.getCurrentInstance()?f.inject(em,f.ref(yc)):f.ref(yc));return f.computed(()=>f.unref(e)||yc)},Xh=(t,e)=>{const A=CF(e);return{namespace:A,b:(w="")=>ni(A.value,t,w,"",""),e:w=>w?ni(A.value,t,"",w,""):"",m:w=>w?ni(A.value,t,"","",w):"",be:(w,b)=>w&&b?ni(A.value,t,w,b,""):"",em:(w,b)=>w&&b?ni(A.value,t,"",w,b):"",bm:(w,b)=>w&&b?ni(A.value,t,w,"",b):"",bem:(w,b,v)=>w&&b&&v?ni(A.value,t,w,b,v):"",is:(w,...b)=>{const v=b.length>=1?b[0]:!0;return w&&v?`${bF}${w}`:""},cssVar:w=>{const b={};for(const v in w)w[v]&&(b[`--${A.value}-${v}`]=w[v]);return b},cssVarName:w=>`--${A.value}-${w}`,cssVarBlock:w=>{const b={};for(const v in w)w[v]&&(b[`--${A.value}-${t}-${v}`]=w[v]);return b},cssVarBlockName:w=>`--${A.value}-${t}-${w}`}};/**
2
2
  * @vue/shared v3.5.20
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const EF=Object.prototype.hasOwnProperty,qh=(t,e)=>EF.call(t,e),bc=t=>typeof t=="function",xs=t=>typeof t=="string",tm=t=>t!==null&&typeof t=="object";var UF=typeof global=="object"&&global&&global.Object===Object&&global;const FF=UF;var NF=typeof self=="object"&&self&&self.Object===Object&&self,SF=FF||NF||Function("return this")();const $h=SF;var QF=$h.Symbol;const $i=QF;var Am=Object.prototype,xF=Am.hasOwnProperty,TF=Am.toString,Ts=$i?$i.toStringTag:void 0;function RF(t){var e=xF.call(t,Ts),A=t[Ts];try{t[Ts]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[Ts]=A:delete t[Ts]),n}var IF=Object.prototype,VF=IF.toString;function MF(t){return VF.call(t)}var LF="[object Null]",OF="[object Undefined]",rm=$i?$i.toStringTag:void 0;function nm(t){return t==null?t===void 0?OF:LF:rm&&rm in Object(t)?RF(t):MF(t)}function kF(t){return t!=null&&typeof t=="object"}var HF="[object Symbol]";function ed(t){return typeof t=="symbol"||kF(t)&&nm(t)==HF}function DF(t,e){for(var A=-1,r=t==null?0:t.length,n=Array(r);++A<r;)n[A]=e(t[A],A,t);return n}var PF=Array.isArray;const td=PF;var WF=1/0,am=$i?$i.prototype:void 0,im=am?am.toString:void 0;function om(t){if(typeof t=="string")return t;if(td(t))return DF(t,om)+"";if(ed(t))return im?im.call(t):"";var e=t+"";return e=="0"&&1/t==-WF?"-0":e}function sm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _F="[object AsyncFunction]",ZF="[object Function]",jF="[object GeneratorFunction]",JF="[object Proxy]";function KF(t){if(!sm(t))return!1;var e=nm(t);return e==ZF||e==jF||e==_F||e==JF}var GF=$h["__core-js_shared__"];const Ad=GF;var lm=function(){var t=/[^.]+$/.exec(Ad&&Ad.keys&&Ad.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function zF(t){return!!lm&&lm in t}var YF=Function.prototype,XF=YF.toString;function qF(t){if(t!=null){try{return XF.call(t)}catch{}try{return t+""}catch{}}return""}var $F=/[\\^$.*+?()[\]{}|]/g,e4=/^\[object .+?Constructor\]$/,t4=Function.prototype,A4=Object.prototype,r4=t4.toString,n4=A4.hasOwnProperty,a4=RegExp("^"+r4.call(n4).replace($F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i4(t){if(!sm(t)||zF(t))return!1;var e=KF(t)?a4:e4;return e.test(qF(t))}function o4(t,e){return t==null?void 0:t[e]}function cm(t,e){var A=o4(t,e);return i4(A)?A:void 0}function s4(t,e){return t===e||t!==t&&e!==e}var l4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c4=/^\w*$/;function u4(t,e){if(td(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||ed(t)?!0:c4.test(t)||!l4.test(t)||e!=null&&t in Object(e)}var f4=cm(Object,"create");const Rs=f4;function h4(){this.__data__=Rs?Rs(null):{},this.size=0}function d4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var p4="__lodash_hash_undefined__",g4=Object.prototype,m4=g4.hasOwnProperty;function v4(t){var e=this.__data__;if(Rs){var A=e[t];return A===p4?void 0:A}return m4.call(e,t)?e[t]:void 0}var B4=Object.prototype,w4=B4.hasOwnProperty;function y4(t){var e=this.__data__;return Rs?e[t]!==void 0:w4.call(e,t)}var b4="__lodash_hash_undefined__";function C4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?b4:e,this}function ai(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ai.prototype.clear=h4,ai.prototype.delete=d4,ai.prototype.get=v4,ai.prototype.has=y4,ai.prototype.set=C4;function E4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(s4(t[A][0],e))return A;return-1}var U4=Array.prototype,F4=U4.splice;function N4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():F4.call(e,A,1),--this.size,!0}function S4(t){var e=this.__data__,A=Cc(e,t);return A<0?void 0:e[A][1]}function Q4(t){return Cc(this.__data__,t)>-1}function x4(t,e){var A=this.__data__,r=Cc(A,t);return r<0?(++this.size,A.push([t,e])):A[r][1]=e,this}function eo(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=E4,eo.prototype.delete=N4,eo.prototype.get=S4,eo.prototype.has=Q4,eo.prototype.set=x4;var T4=cm($h,"Map");const R4=T4;function I4(){this.size=0,this.__data__={hash:new ai,map:new(R4||eo),string:new ai}}function V4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ec(t,e){var A=t.__data__;return V4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function M4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function L4(t){return Ec(this,t).get(t)}function O4(t){return Ec(this,t).has(t)}function k4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,this}function ii(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ii.prototype.clear=I4,ii.prototype.delete=M4,ii.prototype.get=L4,ii.prototype.has=O4,ii.prototype.set=k4;var H4="Expected a function";function rd(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(H4);var A=function(){var r=arguments,n=e?e.apply(this,r):r[0],a=A.cache;if(a.has(n))return a.get(n);var i=t.apply(this,r);return A.cache=a.set(n,i)||a,i};return A.cache=new(rd.Cache||ii),A}rd.Cache=ii;var D4=500;function P4(t){var e=rd(t,function(r){return A.size===D4&&A.clear(),r}),A=e.cache;return e}var W4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_4=/\\(\\)?/g,Z4=P4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(W4,function(A,r,n,a){e.push(n?a.replace(_4,"$1"):r||A)}),e});const j4=Z4;function J4(t){return t==null?"":om(t)}function K4(t,e){return td(t)?t:u4(t,e)?[t]:j4(J4(t))}var G4=1/0;function z4(t){if(typeof t=="string"||ed(t))return t;var e=t+"";return e=="0"&&1/t==-G4?"-0":e}function Y4(t,e){e=K4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[z4(e[A++])];return A&&A==r?t:void 0}function X4(t,e,A){var r=t==null?void 0:Y4(t,e);return r===void 0?A:r}function q4(t){for(var e=-1,A=t==null?0:t.length,r={};++e<A;){var n=t[e];r[n[0]]=n[1]}return r}const $4=t=>t===void 0,nd=t=>typeof t=="boolean",oi=t=>typeof t=="number",eN=t=>typeof Element>"u"?!1:t instanceof Element,tN=t=>xs(t)?!Number.isNaN(Number(t)):!1;var um;const to=typeof window<"u",AN=t=>typeof t=="string",rN=()=>{};to&&((um=window==null?void 0:window.navigator)!=null&&um.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ad(t){return typeof t=="function"?t():f.unref(t)}function nN(t){return t}function id(t){return f.getCurrentScope()?(f.onScopeDispose(t),!0):!1}function aN(t,e=!0){f.getCurrentInstance()?f.onMounted(t):e?t():f.nextTick(t)}function iN(t,e,A={}){const{immediate:r=!0}=A,n=f.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function o(){n.value=!1,i()}function s(...l){i(),n.value=!0,a=setTimeout(()=>{n.value=!1,a=null,t(...l)},ad(e))}return r&&(n.value=!0,to&&s()),id(o),{isPending:f.readonly(n),start:s,stop:o}}function fm(t){var e;const A=ad(t);return(e=A==null?void 0:A.$el)!=null?e:A}const hm=to?window:void 0;function oN(...t){let e,A,r,n;if(AN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=hm):[e,A,r,n]=t,!e)return rN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,h)=>(u.addEventListener(d,g,h),()=>u.removeEventListener(d,g,h)),s=f.watch(()=>[fm(e),ad(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(h=>o(u,g,h,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return id(l),l}function sN(t,e=!1){const A=f.ref(),r=()=>A.value=!!t();return r(),aN(r,e),A}const dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pm="__vueuse_ssr_handlers__";dm[pm]=dm[pm]||{};var gm=Object.getOwnPropertySymbols,lN=Object.prototype.hasOwnProperty,cN=Object.prototype.propertyIsEnumerable,uN=(t,e)=>{var A={};for(var r in t)lN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&gm)for(var r of gm(t))e.indexOf(r)<0&&cN.call(t,r)&&(A[r]=t[r]);return A};function fN(t,e,A={}){const r=A,{window:n=hm}=r,a=uN(r,["window"]);let i;const o=sN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=f.watch(()=>fm(t),d=>{s(),o.value&&n&&d&&(i=new ResizeObserver(e),i.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return id(u),{isSupported:o,stop:u}}var mm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(mm||(mm={}));var hN=Object.defineProperty,vm=Object.getOwnPropertySymbols,dN=Object.prototype.hasOwnProperty,pN=Object.prototype.propertyIsEnumerable,Bm=(t,e,A)=>e in t?hN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,gN=(t,e)=>{for(var A in e||(e={}))dN.call(e,A)&&Bm(t,A,e[A]);if(vm)for(var A of vm(e))pN.call(e,A)&&Bm(t,A,e[A]);return t};gN({linear:nN},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const wm={current:0},ym=f.ref(0),bm=2e3,Cm=Symbol("elZIndexContextKey"),Em=Symbol("zIndexContextKey"),mN=t=>{const e=f.getCurrentInstance()?f.inject(Cm,wm):wm,A=t||(f.getCurrentInstance()?f.inject(Em,void 0):void 0),r=f.computed(()=>{const i=f.unref(A);return oi(i)?i:bm}),n=f.computed(()=>r.value+ym.value),a=()=>(e.current++,ym.value=e.current,n.value);return!to&&f.inject(Cm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var vN={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const BN=t=>(e,A)=>wN(e,A,f.unref(t)),wN=(t,e,A)=>X4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),yN=t=>{const e=f.computed(()=>f.unref(t).name),A=f.isRef(t)?t:f.ref(t);return{lang:e,locale:A,t:BN(t)}},Um=Symbol("localeContextKey"),bN=t=>{const e=t||f.inject(Um,f.ref());return yN(f.computed(()=>e.value||vN))},Fm="__epPropKey",Nr=t=>t,CN=t=>tm(t)&&!!t[Fm],Nm=(t,e)=>{if(!tm(t)||CN(t))return t;const{values:A,required:r,default:n,type:a,validator:i}=t,s={type:a,required:!!r,validator:A||i?l=>{let u=!1,d=[];if(A&&(d=Array.from(A),qh(t,"default")&&d.push(n),u||(u=d.includes(l))),i&&(u||(u=i(l))),!u&&d.length>0){const g=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");f.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Fm]:!0};return qh(t,"default")&&(s.default=n),s},Is=t=>q4(Object.entries(t).map(([e,A])=>[e,Nm(A,e)])),EN=Nm({type:String,values:["","default","small","large"],required:!1}),UN=Symbol("size"),FN=Symbol("emptyValuesContextKey"),NN=Is({emptyValues:Array,valueOnClear:{type:Nr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Sm=t=>Object.keys(t),Uc=f.ref();function Qm(t,e=void 0){const A=f.getCurrentInstance()?f.inject($2,Uc):Uc;return t?f.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function SN(t,e){const A=Qm(),r=Xh(t,f.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=bN(f.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=mN(f.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||bm})),i=f.computed(()=>{var o;return f.unref(e)||((o=A.value)==null?void 0:o.size)||""});return xm(f.computed(()=>f.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const xm=(t,e,A=!1)=>{var r;const n=!!f.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?f.provide:void 0;if(!i)return;const o=f.computed(()=>{const s=f.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i($2,o),i(Um,f.computed(()=>o.value.locale)),i(em,f.computed(()=>o.value.namespace)),i(Em,f.computed(()=>o.value.zIndex)),i(UN,{size:f.computed(()=>o.value.size||"")}),i(FN,f.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Sm(t),...Sm(e)])],r={};for(const n of A)r[n]=e[n]!==void 0?e[n]:t[n];return r};var od=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A};function sd(t,e="px"){if(!t)return"";if(oi(t)||tN(t))return`${t}${e}`;if(xs(t))return t}function Lq(t,e){}const Tm=(t,e)=>{if(t.install=A=>{for(const r of[t,...Object.values(e??{})])A.component(r.name,r)},e)for(const[A,r]of Object.entries(e))t[A]=r;return t},xN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Nr([Number,String])},color:{type:String}}),RN=f.defineComponent({name:"ElIcon",inheritAttrs:!1}),IN=f.defineComponent({...RN,props:TN,setup(t){const e=t,A=Xh("icon"),r=f.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:$4(n)?void 0:sd(n),"--color":a}});return(n,a)=>(f.openBlock(),f.createElementBlock("i",f.mergeProps({class:f.unref(A).b(),style:f.unref(r)},n.$attrs),[f.renderSlot(n.$slots,"default")],16))}});var VN=od(IN,[["__file","icon.vue"]]);const Rm=Tm(VN);/*! Element Plus Icons Vue v2.3.2 */var MN=f.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Im=MN,LN=f.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ON=LN,kN=f.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ld=kN,HN=f.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Vm=HN,DN=f.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Mm=DN;const PN=Nr([String,Object,Function]),WN={Close:ON,SuccessFilled:Vm,InfoFilled:ld,WarningFilled:Mm,CircleCloseFilled:Im},Lm={primary:ld,success:Vm,warning:Mm,error:Im,info:ld},_N=t=>t,ZN={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},jN=Is({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Nr([String,Object,Array])},offset:{type:Nr(Array),default:[0,0]},badgeClass:{type:String}}),JN=f.defineComponent({name:"ElBadge"}),KN=f.defineComponent({...JN,props:jN,setup(t,{expose:e}){const A=t,r=Xh("badge"),n=f.computed(()=>A.isDot?"":oi(A.value)&&oi(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=f.computed(()=>{var i,o,s,l,u;return[{backgroundColor:A.color,marginRight:sd(-((o=(i=A.offset)==null?void 0:i[0])!=null?o:0)),marginTop:sd((l=(s=A.offset)==null?void 0:s[1])!=null?l:0)},(u=A.badgeStyle)!=null?u:{}]});return e({content:n}),(i,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(r).b())},[f.renderSlot(i.$slots,"default"),f.createVNode(f.Transition,{name:`${f.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("sup",{class:f.normalizeClass([f.unref(r).e("content"),f.unref(r).em("content",i.type),f.unref(r).is("fixed",!!i.$slots.default),f.unref(r).is("dot",i.isDot),f.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:f.normalizeStyle(f.unref(a))},[f.renderSlot(i.$slots,"content",{value:f.unref(n)},()=>[f.createTextVNode(f.toDisplayString(f.unref(n)),1)])],6),[[f.vShow,!i.hidden&&(f.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var GN=od(KN,[["__file","badge.vue"]]);const zN=Tm(GN);var Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const YN=Is({a11y:{type:Boolean,default:!0},locale:{type:Nr(Object)},size:EN,button:{type:Nr(Object)},card:{type:Nr(Object)},dialog:{type:Nr(Object)},link:{type:Nr(Object)},experimentalFeatures:{type:Nr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Nr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...NN}),ir={placement:"top"};f.defineComponent({name:"ElConfigProvider",props:YN,setup(t,{slots:e}){const A=xm(t);return f.watch(()=>t.message,r=>{var n,a;Object.assign(ir,(a=(n=A==null?void 0:A.value)==null?void 0:n.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>f.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Om=["primary","success","info","warning","error"],km=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ro="top",or=_N({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:to?document.body:void 0}),XN=Is({customClass:{type:String,default:or.customClass},dangerouslyUseHTMLString:{type:Boolean,default:or.dangerouslyUseHTMLString},duration:{type:Number,default:or.duration},icon:{type:PN,default:or.icon},id:{type:String,default:or.id},message:{type:Nr([String,Object,Function]),default:or.message},onClose:{type:Nr(Function),default:or.onClose},showClose:{type:Boolean,default:or.showClose},type:{type:String,values:Om,default:or.type},plain:{type:Boolean,default:or.plain},offset:{type:Number,default:or.offset},placement:{type:String,values:km,default:or.placement},zIndex:{type:Number,default:or.zIndex},grouping:{type:Boolean,default:or.grouping},repeatNum:{type:Number,default:or.repeatNum}}),qN={destroy:()=>!0},fn=f.shallowReactive({}),$N=t=>(fn[t]||(fn[t]=f.shallowReactive([])),fn[t]),e3=(t,e)=>{const A=fn[e]||[],r=A.findIndex(i=>i.id===t),n=A[r];let a;return r>0&&(a=A[r-1]),{current:n,prev:a}},t3=(t,e)=>{const{prev:A}=e3(t,e);return A?A.vm.exposed.bottom.value:0},A3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,r3=f.defineComponent({name:"ElMessage"}),n3=f.defineComponent({...r3,props:XN,emits:qN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=WN,a=f.ref(!1),{ns:i,zIndex:o}=SN("message"),{currentZIndex:s,nextZIndex:l}=o,u=f.ref(),d=f.ref(!1),g=f.ref(0);let h;const y=f.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),w=f.computed(()=>{const E=r.type;return{[i.bm("icon",E)]:E&&Lm[E]}}),b=f.computed(()=>r.icon||Lm[r.type]||""),v=f.computed(()=>r.placement||ro),C=f.computed(()=>t3(r.id,v.value)),N=f.computed(()=>A3(r.id,r.offset,v.value)+C.value),S=f.computed(()=>g.value+N.value),O=f.computed(()=>v.value.includes("left")?i.is("left"):v.value.includes("right")?i.is("right"):i.is("center")),P=f.computed(()=>v.value.startsWith("top")?"top":"bottom"),k=f.computed(()=>({[P.value]:`${N.value}px`,zIndex:s.value}));function R(){r.duration!==0&&({stop:h}=iN(()=>{x()},r.duration))}function I(){h==null||h()}function x(){d.value=!1,f.nextTick(()=>{var E;a.value||((E=r.onClose)==null||E.call(r),A("destroy"))})}function F({code:E}){E===ZN.esc&&x()}return f.onMounted(()=>{R(),l(),d.value=!0}),f.watch(()=>r.repeatNum,()=>{I(),R()}),oN(document,"keydown",F),fN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:S,close:x}),(E,T)=>(f.openBlock(),f.createBlock(f.Transition,{name:f.unref(i).b("fade"),onBeforeEnter:L=>a.value=!0,onBeforeLeave:E.onClose,onAfterLeave:L=>E.$emit("destroy"),persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("div",{id:E.id,ref_key:"messageRef",ref:u,class:f.normalizeClass([f.unref(i).b(),{[f.unref(i).m(E.type)]:E.type},f.unref(i).is("closable",E.showClose),f.unref(i).is("plain",E.plain),f.unref(i).is("bottom",f.unref(P)==="bottom"),f.unref(O),E.customClass]),style:f.normalizeStyle(f.unref(k)),role:"alert",onMouseenter:I,onMouseleave:R},[E.repeatNum>1?(f.openBlock(),f.createBlock(f.unref(zN),{key:0,value:E.repeatNum,type:f.unref(y),class:f.normalizeClass(f.unref(i).e("badge"))},null,8,["value","type","class"])):f.createCommentVNode("v-if",!0),f.unref(b)?(f.openBlock(),f.createBlock(f.unref(Rm),{key:1,class:f.normalizeClass([f.unref(i).e("icon"),f.unref(w)])},{default:f.withCtx(()=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(f.unref(b))))]),_:1},8,["class"])):f.createCommentVNode("v-if",!0),f.renderSlot(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),f.createElementVNode("p",{class:f.normalizeClass(f.unref(i).e("content")),innerHTML:E.message},null,10,["innerHTML"])],2112)):(f.openBlock(),f.createElementBlock("p",{key:0,class:f.normalizeClass(f.unref(i).e("content"))},f.toDisplayString(E.message),3))]),E.showClose?(f.openBlock(),f.createBlock(f.unref(Rm),{key:2,class:f.normalizeClass(f.unref(i).e("closeBtn")),onClick:f.withModifiers(x,["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(n))]),_:1},8,["class","onClick"])):f.createCommentVNode("v-if",!0)],46,["id"]),[[f.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var a3=od(n3,[["__file","message.vue"]]);let i3=1;const o3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(xs(t.appendTo)){let A=document.querySelector(t.appendTo);eN(A)||(A=document.body),t.appendTo=A}},s3=t=>{!t.placement&&xs(ir.placement)&&ir.placement&&(t.placement=ir.placement),t.placement||(t.placement=ro),km.includes(t.placement)||(`${t.placement}${ro}`,t.placement=ro)},Hm=t=>{const e=!t||xs(t)||f.isVNode(t)||bc(t)?{message:t}:t,A={...or,...e};return o3(A),s3(A),nd(ir.grouping)&&!A.grouping&&(A.grouping=ir.grouping),oi(ir.duration)&&A.duration===3e3&&(A.duration=ir.duration),oi(ir.offset)&&A.offset===16&&(A.offset=ir.offset),nd(ir.showClose)&&!A.showClose&&(A.showClose=ir.showClose),nd(ir.plain)&&!A.plain&&(A.plain=ir.plain),A},l3=t=>{const e=t.props.placement||ro,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},c3=({appendTo:t,...e},A)=>{const r=`message_${i3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),l3(u)},onDestroy:()=>{f.render(null,a)}},o=f.createVNode(a3,i,bc(i.message)||f.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||si._context,f.render(o,a),t.appendChild(a.firstElementChild);const s=o.component,u={id:r,vnode:o,vm:s,handler:{close:()=>{s.exposed.close()}},props:o.component.props};return u},si=(t={},e)=>{if(!to)return{close:()=>{}};const A=Hm(t),r=$N(A.placement||ro);if(A.grouping&&r.length){const a=r.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===A.message});if(a)return a.props.repeatNum+=1,a.props.type=A.type,a.handler}if(oi(ir.max)&&r.length>=ir.max)return{close:()=>{}};const n=c3(A,e);return r.push(n),n.handler};Om.forEach(t=>{si[t]=(e={},A)=>{const r=Hm(e);return si({...r,type:t},A)}});function u3(t){for(const e in fn)if(qh(fn,e)){const A=[...fn[e]];for(const r of A)(!t||t===r.props.type)&&r.handler.close()}}function f3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}si.closeAll=u3,si.closeAllByPlacement=f3,si._context=null;const Vs=xN(si,"$message"),Oq="",ZA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},h3={class:"property-item"},d3={key:0,class:"label"},p3=["innerHTML"],g3={key:4,class:"file-input-container"},m3=["disabled"],v3={key:1},B3=["accept"],w3=["type","min","max","step"],ud=ZA({__name:"PropertyItem",props:{label:String,prop:String,modelValue:[String,Number,Boolean],type:{type:String,default:"text"},options:{type:Array,default:()=>[]},min:Number,max:Number,step:Number,accept:String,desc:String,multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change","rotationChange"],setup(t,{emit:e}){const A=t,r=e,n=f.ref(null),a=f.ref(!1),i=f.ref(null),o=f.ref(null),s=f.inject("config",{}),l=f.inject("propertyModel",null),u=f.inject("propertyOptions",null),d=(R="")=>{var I,x;return((x=(I=A.options)==null?void 0:I.find(F=>(F==null?void 0:F.value)==R))==null?void 0:x.value)??" "},g=f.computed({get:()=>{const R=A.modelValue;if(A.type==="select"){if(!A.multiple)return d(R);if(typeof R=="string"){let I=d(R);return I=I&&I.trim()?[I]:[],I}return Array.isArray(R)?R.map(x=>d(x)):[]}return R},set:R=>{A.type==="select"&&A.multiple?Array.isArray(R)&&R.length===1?r("update:modelValue",R[0]):Array.isArray(R)&&R.length>1?r("update:modelValue",R):r("update:modelValue",""):r("update:modelValue",R)}}),h=R=>{r("change",R),A.label==="旋转角度"&&typeof R=="number"&&r("rotationChange",R)};let y=null,w=null;function b(R,I,x){if((x!==w||!y)&&(y=new Map,x&&x.length>0&&x.forEach(F=>{F.value!==void 0&&F.value!==null&&y.set(String(F.value),F.label||"")}),w=x),Array.isArray(R)){if(R.length===0)return[];const F=R.filter(T=>T&&T!==""&&T!==" ");return F.length===0?[]:F.map(T=>y.get(String(T))||"").filter(T=>T)}return!R||R===""||R===" "?"":y.get(String(R))||""}let v=null;function C(){!(l!=null&&l.value)||!(u!=null&&u.value)||(v&&clearTimeout(v),v=setTimeout(()=>{var Z;const R=l.value,I=R.FieldName,x=R.FieldConnector,F=((Z=u.value)==null?void 0:Z.fields)||[],E=b(I,x,F),T=R.FieldLabel;let L=!1;if(Array.isArray(E)&&Array.isArray(T)?L=E.length!==T.length||E.some((K,Y)=>K!==T[Y]):!Array.isArray(E)&&!Array.isArray(T)?L=E!==T:L=!0,L){const K={...R,FieldLabel:E};f.nextTick(()=>{l.value=K})}},0))}A.prop==="FieldName"&&(f.watch(()=>{var x;const R=l==null?void 0:l.value,I=(x=u==null?void 0:u.value)==null?void 0:x.fields;return{fieldName:R==null?void 0:R.FieldName,fieldConnector:R==null?void 0:R.FieldConnector,fieldsRef:I,fieldsLength:I==null?void 0:I.length}},(R,I)=>{var F;const x=(F=l==null?void 0:l.value)==null?void 0:F.FieldName;if(x&&x!==""&&x!==" "){const E=Array.isArray(x);if(I&&R.fieldName===I.fieldName&&R.fieldsRef===I.fieldsRef&&R.fieldsLength===I.fieldsLength&&R.fieldConnector!==I.fieldConnector&&!E)return;(!E||x.length>0)&&C()}},{immediate:!0}),f.onUnmounted(()=>{v&&(clearTimeout(v),v=null)}));const N=f.computed({get:()=>g.value?typeof g.value=="object"&&g.value.fileSrc?g.value.fileSrc.startsWith("http://")||g.value.fileSrc.startsWith("https://")?g.value.fileSrc:g.value.fileSrc.startsWith("data:")?g.value.fileName||"已选择的图片":g.value.fileName||g.value.fileSrc:typeof g.value=="string"&&g.value.startsWith("data:")?"已选择的图片":g.value:"",set:R=>{g.value=R}}),S=()=>{n.value&&!a.value&&n.value.click()},O=R=>{const I=R.target.value.trim();I?I.startsWith("http://")||I.startsWith("https://")||I.startsWith("data:")?g.value=I:I.startsWith("data:")||(g.value=I):g.value=""},P=async R=>{var E;const I=R.target.files[0];if(!I)return;if(A.accept&&!I.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const x=(E=s==null?void 0:s.image)==null?void 0:E.request;if(!x||typeof x!="function"){handleFileAsBase64(I);return}o.value=I;let F=null;try{a.value=!0,F=x(I),i.value=F;const T=await F;if(i.value===F&&o.value===I)if(T&&T.success!==!1){let Z=T.url||T.data||T;try{const Y=await k(I);Y&&(Z=Y)}catch{}const K={fileName:I.name,fileSrc:Z,uploadResult:T};r("update:modelValue",K),r("change",R),Vs.success("图片上传成功")}else throw new Error((T==null?void 0:T.message)||"上传失败")}catch(T){i.value===F&&o.value===I&&(n.value&&(n.value.value=""),Vs.error(T.message||"上传失败,请重试"))}finally{i.value===F&&(a.value=!1,i.value=null,o.value=null)}},k=R=>new Promise((I,x)=>{const E=R.size>5242880;if(R.type.startsWith("image/"))if(E){const T=new Image,L=document.createElement("canvas"),Z=L.getContext("2d"),K=setTimeout(()=>{x(new Error("转换超时"))},8e3);T.onload=()=>{clearTimeout(K);try{let{width:q,height:X}=T;if(q>1920||X>1920){const Q=Math.min(1920/q,1920/X);q=Math.floor(q*Q),X=Math.floor(X*Q)}L.width=q,L.height=X,Z.drawImage(T,0,0,q,X);const ae=L.toDataURL("image/jpeg",.8);I(ae)}catch(G){x(G)}finally{URL.revokeObjectURL(T.src)}},T.onerror=()=>{clearTimeout(K),x(new Error("图片加载失败"))};const Y=URL.createObjectURL(R);T.src=Y}else{const T=new FileReader,L=setTimeout(()=>{x(new Error("转换超时"))},5e3);T.onload=Z=>{clearTimeout(L),I(Z.target.result)},T.onerror=()=>{clearTimeout(L),x(new Error("文件读取失败"))},T.readAsDataURL(R)}else{const T=new FileReader,L=setTimeout(()=>{x(new Error("转换超时"))},5e3);T.onload=Z=>{clearTimeout(L),I(Z.target.result)},T.onerror=()=>{clearTimeout(L),x(new Error("文件读取失败"))},T.readAsDataURL(R)}});return f.onUnmounted(()=>{i.value=null,o.value=null}),(R,I)=>{const x=f.resolveComponent("el-icon-question-filled"),F=f.resolveComponent("el-icon"),E=f.resolveComponent("el-tooltip"),T=f.resolveComponent("el-option"),L=f.resolveComponent("el-select"),Z=f.resolveComponent("el-icon-loading");return f.openBlock(),f.createElementBlock("div",h3,[t.label?(f.openBlock(),f.createElementBlock("label",d3,[f.createTextVNode(f.toDisplayString(t.label)+" ",1),t.desc?(f.openBlock(),f.createBlock(E,{key:0,placement:"top","show-arrow":!0},{content:f.withCtx(()=>[f.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,p3)]),default:f.withCtx(()=>[f.createVNode(F,{class:"help-icon"},{default:f.withCtx(()=>[f.createVNode(x)]),_:1})]),_:1})):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0),t.type==="select"?(f.openBlock(),f.createBlock(L,{key:1,modelValue:g.value,"onUpdate:modelValue":I[0]||(I[0]=K=>g.value=K),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",filterable:"",onChange:h},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,K=>(f.openBlock(),f.createBlock(T,{key:K.value,label:K.label,value:K.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:2,"onUpdate:modelValue":I[1]||(I[1]=K=>g.value=K),type:"color"},null,512)),[[f.vModelText,g.value]]):t.type==="checkbox"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:3,"onUpdate:modelValue":I[2]||(I[2]=K=>g.value=K),type:"checkbox"},null,512)),[[f.vModelCheckbox,g.value]]):t.type==="file"?(f.openBlock(),f.createElementBlock("div",g3,[f.withDirectives(f.createElementVNode("input",{type:"text","onUpdate:modelValue":I[3]||(I[3]=K=>N.value=K),placeholder:"请选择图片",class:"file-url-input",onInput:O,disabled:""},null,544),[[f.vModelText,N.value]]),f.createElementVNode("button",{type:"button",onClick:S,class:"file-select-btn",disabled:a.value},[a.value?(f.openBlock(),f.createBlock(F,{key:0,class:"is-loading"},{default:f.withCtx(()=>[f.createVNode(Z)]),_:1})):(f.openBlock(),f.createElementBlock("span",v3,f.toDisplayString(a.value?"上传中...":"选择"),1))],8,m3),f.createElementVNode("input",{type:"file",accept:t.accept,onChange:P,ref_key:"fileInput",ref:n,class:"file-input"},null,40,B3)])):f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:5,"onUpdate:modelValue":I[4]||(I[4]=K=>g.value=K),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:I[5]||(I[5]=f.withModifiers(()=>{},["prevent"]))},null,40,w3)),[[f.vModelDynamic,g.value]])])}}},[["__scopeId","data-v-99e4eb2e"]]),Hq="",y3={class:"property-layout-container"},b3={key:0,class:"property-item-wrapper full-width"},C3={key:1,class:"property-item-wrapper half-width"},E3={key:2,class:"property-item-wrapper default-width"},no=ZA({__name:"BasePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},panelType:{type:String,default:"base",validator:t=>["text","barcode","qrcode","image","rectangle","line"].includes(t)},options:{type:Object,default:()=>({})}},emits:["update:modelValue","rotationChange"],setup(t,{emit:e}){const A=t,r=e,{propsConfig:n,panelType:a}=f.toRefs(A),i=f.computed(()=>`${a.value}-property-panel`),o=f.ref([]);function s(x,F,E=[],T="",L="FieldName"){const Z=[];if(Array.isArray(F))return F.forEach(K=>{const Y=s(x,K,E,T,L);Z.push(...Y)}),Z;if(x&&x.propertyPanel){const K=x.propertyPanel;let Y=[];Array.isArray(K)?Y=K.map(G=>({...G,_dynamic:!0,_path:T||"FieldName",_parentProp:L})):typeof K=="object"&&K!==null&&(K.prop?Y=[{...K,_dynamic:!0,_path:T||"FieldName",_parentProp:L}]:Y=Object.keys(K).map(G=>({prop:G,...K[G],_dynamic:!0,_path:T||"FieldName",_parentProp:L}))),Z.push(...Y)}return Z}function l(x,F,E=[],T=""){const L=[];if(!F||F===" "||!E||E.length===0)return L;const Z=E.find(K=>K.value==F);if(Z&&Z.propertyPanel){const K=Z.propertyPanel;let Y=[];Array.isArray(K)?Y=K.map(G=>({...G,_dynamic:!0,_path:`${T||x}.${F}`,_parentProp:x})):typeof K=="object"&&K!==null&&(K.prop?Y=[{...K,_dynamic:!0,_path:`${T||x}.${F}`,_parentProp:x}]:Y=Object.keys(K).map(G=>({prop:G,...K[G],_dynamic:!0,_path:`${T||x}.${F}`,_parentProp:x}))),L.push(...Y)}return L}function u(x){var F;return x.options&&Array.isArray(x.options)?x.options:x.optionsKey&&((F=A.options)!=null&&F[x.optionsKey])?A.options[x.optionsKey]||[]:[]}function d(x,F=[],E=new Set,T=0){var Y;if(T>10)return[];const L=[],Z=new Set;if(T===0){const G=x.FieldName;if(G){const q=((Y=A.options)==null?void 0:Y.fields)||[];if(Array.isArray(G))G.forEach(X=>{const ae=q.find(Q=>Q.value==X);if(ae){const Q=`FieldName.${X}`;E.has(Q)||(E.add(Q),s(ae,X,q,Q).forEach(z=>{z.prop&&!Z.has(z.prop)&&(Z.add(z.prop),L.push(z))}))}});else{const X=q.find(ae=>ae.value==G);if(X){const ae=`FieldName.${G}`;E.has(ae)||(E.add(ae),s(X,G,q,ae).forEach(H=>{H.prop&&!Z.has(H.prop)&&(Z.add(H.prop),L.push(H))}))}}}}return F.forEach(G=>{if(G.type==="select"){const q=x[G.prop];if(q!=null&&q!==""&&q!==" "){const X=u(G);if(X&&X.length>0){const ae=G.prop,Q=`${ae}.${q}`;if(!E.has(Q)){E.add(Q);const H=l(G.prop,q,X,ae);H.length>0&&(H.forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}),d(x,[...F,...L],E,T+1).forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}))}}}}}),[...L].forEach(G=>{if(G.type==="select"){const q=x[G.prop];if(q!=null&&q!==""&&q!==" "){const X=u(G);if(X&&X.length>0){const ae=G._path||G.prop,Q=`${ae}.${q}`;if(!E.has(Q)){E.add(Q);const H=l(G.prop,q,X,ae);H.length>0&&(H.forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}),d(x,[...F,...L],E,T+1).forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}))}}}}}),L}const g=f.computed(()=>{const x=n.value.propertyPanel;let F=[];return x&&typeof x=="object"&&!Array.isArray(x)&&(F=Object.keys(x).map(E=>({prop:E,...x[E]})).filter(E=>!E.hide)),Array.isArray(x)&&(F=x.filter(E=>!E.hide)||[]),F}),h=f.ref([]),y=f.ref(""),w=f.ref(null),b=f.computed(()=>{const x=A.modelValue||{};let F="";if(x.FieldName!==void 0){const T=Array.isArray(x.FieldName)?x.FieldName.join(","):String(x.FieldName);F+=`FieldName:${T}|`}return g.value.filter(T=>T.type==="select").map(T=>T.prop).forEach(T=>{x[T]!==void 0&&(F+=`${T}:${x[T]}|`)}),o.value.length>0&&o.value.filter(L=>L.type==="select").map(L=>L.prop).forEach(L=>{x[L]!==void 0&&(F+=`${L}:${x[L]}|`)}),y.value===F&&w.value?w.value:(y.value=F,w.value=F,F)});f.watch(()=>[b.value,g.value],(x,F)=>{const[E,T]=x||[b.value,g.value],[L]=F||[void 0];if(L&&E===L)return;const Z=A.modelValue||{},K=A.modelValue||{},G=d(Z,T,new Set),q=new Set(G.map(j=>j.prop).filter(Boolean)),X=new Set(h.value.map(j=>j.prop).filter(Boolean)),ae=[];X.forEach(j=>{q.has(j)||ae.push(j)});const Q=[];G.forEach(j=>{j.prop&&"default"in j&&Z[j.prop]===void 0&&Q.push({prop:j.prop,defaultValue:j.default})});const H={...Z};let z=!1;ae.length>0&&K&&ae.forEach(j=>{H[j]!==void 0&&(delete H[j],z=!0)}),Q.length>0&&Q.forEach(({prop:j,defaultValue:ne})=>{H[j]=ne,z=!0}),z&&f.nextTick(()=>{r("update:modelValue",H)}),h.value=G,o.value=G},{deep:!0,immediate:!0});const v=f.ref(null),C=f.ref({baseItemsHash:"",dynamicItemsHash:""});function N(x,F){return x.length===0?"":x.map(F).join("|")}const S=f.computed(()=>{var z;const x=N(g.value,j=>j.prop||""),F=N(o.value,j=>`${j.prop||""}:${j._parentProp||""}`);if(v.value&&C.value.baseItemsHash===x&&C.value.dynamicItemsHash===F)return v.value;const E=g.value,T=E.length,L=o.value.length,Z=new Array(T+L);for(let j=0;j<T;j++)Z[j]=E[j];let K=T;if(L===0)return v.value=Z,C.value={baseItemsHash:x,dynamicItemsHash:F},Z;const Y=[],G=[];let q=[];const X=new Set,ae=new Map;for(let j=0;j<T;j++){const ne=E[j].prop;ne&&(X.add(ne),ae.set(ne,j))}for(let j=0;j<L;j++){const ne=o.value[j],re=ne._parentProp;re&&X.has(re)?G.push(ne):q.push(ne)}G.length>0&&Y.push(G);let Q=G,H=[];for(;q.length>0&&Q.length>0;){const j=new Map;for(let re=0;re<Q.length;re++){const ue=Q[re].prop;ue&&j.set(ue,!0)}const ne=[];for(let re=0;re<q.length;re++){const ue=q[re];ue._parentProp&&j.has(ue._parentProp)?H.push(ue):ne.push(ue)}if(H.length>0)Y.push(H),Q=H,H=[],q=ne;else break}for(let j=0;j<Y.length;j++){const ne=Y[j],re=new Map;for(let Ee=0;Ee<K;Ee++){const Ue=(z=Z[Ee])==null?void 0:z.prop;Ue&&re.set(Ue,Ee)}const ue=new Map;for(let Ee=0;Ee<ne.length;Ee++){const Ue=ne[Ee],Oe=Ue._parentProp;Oe&&re.has(Oe)&&(ue.has(Oe)||ue.set(Oe,[]),ue.get(Oe).push(Ue))}const pe=[];ue.forEach((Ee,Ue)=>{const Oe=re.get(Ue);let xe=Oe;for(let He=Oe+1;He<K;He++){const ge=Z[He];if(ge._dynamic&&ge._parentProp===Ue)xe=He;else if(!ge._dynamic)break}pe.push({index:xe+1,items:Ee})}),pe.sort((Ee,Ue)=>Ue.index-Ee.index);for(let Ee=0;Ee<pe.length;Ee++){const{index:Ue,items:Oe}=pe[Ee];for(let xe=Oe.length-1;xe>=0;xe--)Z.splice(Ue,0,Oe[xe]),K++}}if(q.length>0)for(let j=0;j<q.length;j++)Z[K++]=q[j];return Z.length>K&&(Z.length=K),v.value=Z,C.value={baseItemsHash:x,dynamicItemsHash:F},Z}),O=f.computed({get:()=>A.modelValue,set:x=>r("update:modelValue",x)}),P=f.computed(()=>S.value.filter(x=>!x.showIf||O.value[x.showIf])),k=x=>{var E,T;if(x.options)return x.options||[];if(x.optionsKey&&((E=A.options)!=null&&E[x.optionsKey])){const L=JSON.parse(JSON.stringify(A.options[x.optionsKey]||[]))||[];return x!=null&&x.multiple||L.unshift({label:"无",value:" "}),L}const F=JSON.parse(JSON.stringify(((T=A.options)==null?void 0:T[x==null?void 0:x.optionsKey])||[]))||[];return x!=null&&x.multiple||F.unshift({label:"无",value:" "}),F},R=x=>x.layout?x.layout:["text","file","textarea"].includes(x.type)?"full":"half",I=x=>{r("rotationChange",x)};return f.provide("config",A.propsConfig),f.provide("propertyModel",O),f.provide("propertyOptions",f.computed(()=>A.options)),(x,F)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(i.value)},[f.createElementVNode("div",y3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(P.value,E=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:E.prop},[R(E)==="full"?(f.openBlock(),f.createElementBlock("div",b3,[f.createVNode(ud,{label:E.label,prop:E.prop,modelValue:O.value[E.prop],"onUpdate:modelValue":T=>O.value[E.prop]=T,type:E.type,options:k(E),min:E.min,max:E.max,step:E.step,accept:E.accept,desc:E.desc,multiple:E.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):R(E)==="half"?(f.openBlock(),f.createElementBlock("div",C3,[f.createVNode(ud,{label:E.label,prop:E.prop,modelValue:O.value[E.prop],"onUpdate:modelValue":T=>O.value[E.prop]=T,type:E.type,options:k(E),min:E.min,max:E.max,step:E.step,accept:E.accept,desc:E.desc,multiple:E.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(f.openBlock(),f.createElementBlock("div",E3,[f.createVNode(ud,{label:E.label,prop:E.prop,modelValue:O.value[E.prop],"onUpdate:modelValue":T=>O.value[E.prop]=T,type:E.type,options:k(E),min:E.min,max:E.max,step:E.step,accept:E.accept,desc:E.desc,multiple:E.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-17bc1b74"]]),U3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,options:t.options,"panel-type":"text","onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},F3={},N3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function S3(t,e){return f.openBlock(),f.createElementBlock("svg",N3,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"2603"},null,-1),f.createElementVNode("path",{d:"M798.88 96H257.12C177.088 96 112 161.088 112 241.12v541.76C112 862.928 177.088 928 257.12 928h541.76c80.032 0 145.12-65.088 145.12-145.12V241.12C944 161.088 878.912 96 798.88 96z m87.104 686.88a87.2 87.2 0 0 1-87.104 87.104H257.12a87.2 87.2 0 0 1-87.104-87.104V241.12a87.2 87.2 0 0 1 87.104-87.104h541.76a87.2 87.2 0 0 1 87.104 87.104v541.76z","p-id":"2604"},null,-1),f.createElementVNode("path",{d:"M686.304 710.336H369.696a29.04 29.04 0 0 0-29.216 28.832c0 15.904 13.104 28.832 29.216 28.832h316.608a29.04 29.04 0 0 0 29.2-28.832c0-15.904-13.088-28.832-29.2-28.832zM722.784 256H333.216A29.04 29.04 0 0 0 304 284.832v76.96c0 15.904 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.216-28.832v-48.048h136.384V640.64c0 15.92 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.2-28.832V313.76h136.384v48.048c0 15.904 13.088 28.832 29.216 28.832A29.04 29.04 0 0 0 752 361.792v-76.96c0.08-15.904-13.008-28.832-29.2-28.832z","p-id":"2605"},null,-1)])])}const Q3=ZA(F3,[["render",S3]]);var fd={},Fc={},Br={};Object.defineProperty(Br,"__esModule",{value:!0});function x3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){x3(this,t),this.data=e,this.text=A.text||e,this.options=A};Br.default=T3,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.CODE39=void 0;var R3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),I3=Br,V3=M3(I3);function M3(t){return t&&t.__esModule?t:{default:t}}function L3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function k3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var H3=function(t){k3(e,t);function e(A,r){return L3(this,e),A=A.toUpperCase(),r.mod43&&(A+=W3(_3(A))),O3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return R3(e,[{key:"encode",value:function(){for(var r=hd("*"),n=0;n<this.data.length;n++)r+=hd(this.data[n])+"0";return r+=hd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(V3.default),Dm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],D3=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function hd(t){return P3(Pm(t))}function P3(t){return D3[t].toString(2)}function W3(t){return Dm[t]}function Pm(t){return Dm.indexOf(t)}function _3(t){for(var e=0,A=0;A<t.length;A++)e+=Pm(t[A]);return e=e%43,e}Fc.CODE39=H3;var In={},dd={},ao={},oA={};Object.defineProperty(oA,"__esModule",{value:!0});var Ms;function pd(t,e,A){return e in t?Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[e]=A,t}var Wm=oA.SET_A=0,_m=oA.SET_B=1,Zm=oA.SET_C=2;oA.SHIFT=98;var Z3=oA.START_A=103,j3=oA.START_B=104,J3=oA.START_C=105;oA.MODULO=103,oA.STOP=106,oA.FNC1=207,oA.SET_BY_CODE=(Ms={},pd(Ms,Z3,Wm),pd(Ms,j3,_m),pd(Ms,J3,Zm),Ms),oA.SWAP={101:Wm,100:_m,99:Zm},oA.A_START_CHAR=String.fromCharCode(208),oA.B_START_CHAR=String.fromCharCode(209),oA.C_START_CHAR=String.fromCharCode(210),oA.A_CHARS="[\0-_È-Ï]",oA.B_CHARS="[ -È-Ï]",oA.C_CHARS="(Ï*[0-9]{2}Ï*)",oA.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(ao,"__esModule",{value:!0});var K3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),G3=Br,z3=Y3(G3),kr=oA;function Y3(t){return t&&t.__esModule?t:{default:t}}function X3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function $3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var eS=function(t){$3(e,t);function e(A,r){X3(this,e);var n=q3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.substring(1),r));return n.bytes=A.split("").map(function(a){return a.charCodeAt(0)}),n}return K3(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,n=r.shift()-105,a=kr.SET_BY_CODE[n];if(a===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(kr.FNC1);var i=e.next(r,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+i.result+e.getBar((i.checksum+n)%kr.MODULO)+e.getBar(kr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return kr.BARS[r]?kr.BARS[r].toString():""}},{key:"correctIndex",value:function(r,n){if(n===kr.SET_A){var a=r.shift();return a<32?a+64:a-32}else return n===kr.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,n,a){if(!r.length)return{result:"",checksum:0};var i=void 0,o=void 0;if(r[0]>=200){o=r.shift()-105;var s=kr.SWAP[o];s!==void 0?i=e.next(r,n+1,s):((a===kr.SET_A||a===kr.SET_B)&&o===kr.SHIFT&&(r[0]=a===kr.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),i=e.next(r,n+1,a))}else o=e.correctIndex(r,a),i=e.next(r,n+1,a);var l=e.getBar(o),u=o*n;return{result:l+i.result,checksum:u+i.checksum}}}]),e}(z3.default);ao.default=eS;var gd={};Object.defineProperty(gd,"__esModule",{value:!0});var ma=oA,jm=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},Km=function(e){return e.match(new RegExp("^"+ma.C_CHARS+"*"))[0]};function md(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)+Gm(t.substring(r[1].length));var n=t.match(new RegExp("^"+A+"+"))[0];return n.length===t.length?t:n+String.fromCharCode(e?205:206)+md(t.substring(n.length),!e)}function Gm(t){var e=Km(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=jm(t)>=Jm(t);return e+String.fromCharCode(r?206:205)+md(t,r)}gd.default=function(t){var e=void 0,A=Km(t).length;if(A>=2)e=ma.C_START_CHAR+Gm(t);else{var r=jm(t)>Jm(t);e=(r?ma.A_START_CHAR:ma.B_START_CHAR)+md(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,a){return String.fromCharCode(203)+a})},Object.defineProperty(dd,"__esModule",{value:!0});var tS=ao,AS=zm(tS),rS=gd,nS=zm(rS);function zm(t){return t&&t.__esModule?t:{default:t}}function aS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function iS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var oS=function(t){iS(e,t);function e(A,r){if(aS(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=vd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,nS.default)(A),r));else var n=vd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return vd(n)}return e}(AS.default);dd.default=oS;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var sS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),lS=ao,cS=uS(lS),Ym=oA;function uS(t){return t&&t.__esModule?t:{default:t}}function fS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var pS=function(t){dS(e,t);function e(A,r){return fS(this,e),hS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.A_START_CHAR+A,r))}return sS(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.A_CHARS+"+$").test(this.data)}}]),e}(cS.default);Bd.default=pS;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var gS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),mS=ao,vS=BS(mS),Xm=oA;function BS(t){return t&&t.__esModule?t:{default:t}}function wS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function bS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var CS=function(t){bS(e,t);function e(A,r){return wS(this,e),yS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.B_START_CHAR+A,r))}return gS(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.B_CHARS+"+$").test(this.data)}}]),e}(vS.default);wd.default=CS;var yd={};Object.defineProperty(yd,"__esModule",{value:!0});var ES=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),US=ao,FS=NS(US),qm=oA;function NS(t){return t&&t.__esModule?t:{default:t}}function SS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function xS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var TS=function(t){xS(e,t);function e(A,r){return SS(this,e),QS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,qm.C_START_CHAR+A,r))}return ES(e,[{key:"valid",value:function(){return new RegExp("^"+qm.C_CHARS+"+$").test(this.data)}}]),e}(FS.default);yd.default=TS,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var RS=dd,IS=Nc(RS),VS=Bd,MS=Nc(VS),LS=wd,OS=Nc(LS),kS=yd,HS=Nc(kS);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=IS.default,In.CODE128A=MS.default,In.CODE128B=OS.default,In.CODE128C=HS.default;var Sr={},bd={},zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.SIDE_BIN="101",zr.MIDDLE_BIN="01010",zr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},zr.EAN2_STRUCTURE=["LL","LG","GL","GG"],zr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],zr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Sc={},li={};Object.defineProperty(li,"__esModule",{value:!0});var DS=zr,PS=function(e,A,r){var n=e.split("").map(function(i,o){return DS.BINARIES[A[o]]}).map(function(i,o){return i?i[e[o]]:""});if(r){var a=e.length-1;n=n.map(function(i,o){return o<a?i+r:i})}return n.join("")};li.default=PS,Object.defineProperty(Sc,"__esModule",{value:!0});var WS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),io=zr,_S=li,$m=ev(_S),ZS=Br,jS=ev(ZS);function ev(t){return t&&t.__esModule?t:{default:t}}function JS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function GS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zS=function(t){GS(e,t);function e(A,r){JS(this,e);var n=KS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WS(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,n){return this.text.substr(r,n)}},{key:"leftEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:io.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:io.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:io.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[io.SIDE_BIN,this.leftEncode(),io.MIDDLE_BIN,this.rightEncode(),io.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(jS.default);Sc.default=zS,Object.defineProperty(bd,"__esModule",{value:!0});var YS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Ls=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},XS=zr,qS=Sc,$S=eQ(qS);function eQ(t){return t&&t.__esModule?t:{default:t}}function tQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var tv=function(e){var A=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*3:r+n},0);return(10-A%10)%10},nQ=function(t){rQ(e,t);function e(A,r){tQ(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=tv(A));var n=AQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return YS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===tv(this.data)}},{key:"leftText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),n=XS.EAN13_STRUCTURE[this.data[0]];return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,n)}},{key:"rightText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}($S.default);bd.default=nQ;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var aQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Qc=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},iQ=Sc,oQ=sQ(iQ);function sQ(t){return t&&t.__esModule?t:{default:t}}function lQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Av=function(e){var A=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n:r+n*3},0);return(10-A%10)%10},fQ=function(t){uQ(e,t);function e(A,r){return lQ(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=Av(A)),cQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return aQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Av(this.data)}},{key:"leftText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(oQ.default);Cd.default=fQ;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var hQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),dQ=zr,pQ=li,gQ=rv(pQ),mQ=Br,vQ=rv(mQ);function rv(t){return t&&t.__esModule?t:{default:t}}function BQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bQ=function(e){var A=e.split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*9:r+n*3},0);return A%10},CQ=function(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return hQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=dQ.EAN5_STRUCTURE[bQ(this.data)];return{data:"1011"+(0,gQ.default)(this.data,r,"01"),text:this.text}}}]),e}(vQ.default);Ed.default=CQ;var Ud={};Object.defineProperty(Ud,"__esModule",{value:!0});var EQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),UQ=zr,FQ=li,NQ=nv(FQ),SQ=Br,QQ=nv(SQ);function nv(t){return t&&t.__esModule?t:{default:t}}function xQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function RQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var IQ=function(t){RQ(e,t);function e(A,r){return xQ(this,e),TQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return EQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=UQ.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,NQ.default)(this.data,r,"01"),text:this.text}}}]),e}(QQ.default);Ud.default=IQ;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var VQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();Os.checksum=Fd;var MQ=li,oo=av(MQ),LQ=Br,OQ=av(LQ);function av(t){return t&&t.__esModule?t:{default:t}}function kQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function DQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var PQ=function(t){DQ(e,t);function e(A,r){kQ(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Fd(A));var n=HQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return VQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Fd(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,oo.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,oo.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,oo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,oo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(OQ.default);function Fd(t){var e=0,A;for(A=1;A<11;A+=2)e+=parseInt(t[A]);for(A=0;A<11;A+=2)e+=parseInt(t[A])*3;return(10-e%10)%10}Os.default=PQ;var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});var WQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),_Q=li,ZQ=iv(_Q),jQ=Br,JQ=iv(jQ),KQ=Os;function iv(t){return t&&t.__esModule?t:{default:t}}function GQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var YQ=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],XQ=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],qQ=function(t){zQ(e,t);function e(A,r){GQ(this,e);var n=Sd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));if(n.isValid=!1,A.search(/^[0-9]{6}$/)!==-1)n.middleDigits=A,n.upcA=ov(A,"0"),n.text=r.text||""+n.upcA[0]+A+n.upcA[n.upcA.length-1],n.isValid=!0;else if(A.search(/^[01][0-9]{7}$/)!==-1)if(n.middleDigits=A.substring(1,A.length-1),n.upcA=ov(n.middleDigits,A[0]),n.upcA[n.upcA.length-1]===A[A.length-1])n.isValid=!0;else return Sd(n);else return Sd(n);return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WQ(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],n=this.upcA[this.upcA.length-1],a=XQ[parseInt(n)][parseInt(r)];return(0,ZQ.default)(this.middleDigits,a)}}]),e}(JQ.default);function ov(t,e){for(var A=parseInt(t[t.length-1]),r=YQ[A],n="",a=0,i=0;i<r.length;i++){var o=r[i];o==="X"?n+=t[a++]:n+=o}return n=""+e+n,""+n+(0,KQ.checksum)(n)}Nd.default=qQ,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.UPCE=Sr.UPC=Sr.EAN2=Sr.EAN5=Sr.EAN8=Sr.EAN13=void 0;var $Q=bd,ex=so($Q),tx=Cd,Ax=so(tx),rx=Ed,nx=so(rx),ax=Ud,ix=so(ax),ox=Os,sx=so(ox),lx=Nd,cx=so(lx);function so(t){return t&&t.__esModule?t:{default:t}}Sr.EAN13=ex.default,Sr.EAN8=Ax.default,Sr.EAN5=nx.default,Sr.EAN2=ix.default,Sr.UPC=sx.default,Sr.UPCE=cx.default;var lo={},xc={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.START_BIN="1010",ks.END_BIN="11101",ks.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(xc,"__esModule",{value:!0});var ux=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Tc=ks,fx=Br,hx=dx(fx);function dx(t){return t&&t.__esModule?t:{default:t}}function px(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vx=function(t){mx(e,t);function e(){return px(this,e),gx(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return ux(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,n=this.data.match(/.{2}/g).map(function(a){return r.encodePair(a)}).join("");return{data:Tc.START_BIN+n+Tc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=Tc.BINARIES[r[1]];return Tc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(hx.default);xc.default=vx;var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});var Bx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),wx=xc,yx=bx(wx);function bx(t){return t&&t.__esModule?t:{default:t}}function Cx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ex(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ux(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sv=function(e){var A=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,n,a){return r+n*(3-a%2*2)},0);return Math.ceil(A/10)*10-A},Fx=function(t){Ux(e,t);function e(A,r){return Cx(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=sv(A)),Ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Bx(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===sv(this.data)}}]),e}(yx.default);Qd.default=Fx,Object.defineProperty(lo,"__esModule",{value:!0}),lo.ITF14=lo.ITF=void 0;var Nx=xc,Sx=lv(Nx),Qx=Qd,xx=lv(Qx);function lv(t){return t&&t.__esModule?t:{default:t}}lo.ITF=Sx.default,lo.ITF14=xx.default;var Yr={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});var Tx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Rx=Br,Ix=Vx(Rx);function Vx(t){return t&&t.__esModule?t:{default:t}}function Mx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ox(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kx=function(t){Ox(e,t);function e(A,r){return Mx(this,e),Lx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Tx(e,[{key:"encode",value:function(){for(var r="110",n=0;n<this.data.length;n++){var a=parseInt(this.data[n]),i=a.toString(2);i=Hx(i,4-i.length);for(var o=0;o<i.length;o++)r+=i[o]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(Ix.default);function Hx(t,e){for(var A=0;A<e;A++)t="0"+t;return t}ci.default=kx;var xd={},ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.mod10=Dx,ui.mod11=Px;function Dx(t){for(var e=0,A=0;A<t.length;A++){var r=parseInt(t[A]);(A+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function Px(t){for(var e=0,A=[2,3,4,5,6,7],r=0;r<t.length;r++){var n=parseInt(t[t.length-1-r]);e+=A[r%A.length]*n}return(11-e%11)%11}Object.defineProperty(xd,"__esModule",{value:!0});var Wx=ci,_x=jx(Wx),Zx=ui;function jx(t){return t&&t.__esModule?t:{default:t}}function Jx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zx=function(t){Gx(e,t);function e(A,r){return Jx(this,e),Kx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,Zx.mod10)(A),r))}return e}(_x.default);xd.default=zx;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var Yx=ci,Xx=$x(Yx),qx=ui;function $x(t){return t&&t.__esModule?t:{default:t}}function eT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function AT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var rT=function(t){AT(e,t);function e(A,r){return eT(this,e),tT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,qx.mod11)(A),r))}return e}(Xx.default);Td.default=rT;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var nT=ci,aT=iT(nT),cv=ui;function iT(t){return t&&t.__esModule?t:{default:t}}function oT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function lT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cT=function(t){lT(e,t);function e(A,r){return oT(this,e),A+=(0,cv.mod10)(A),A+=(0,cv.mod10)(A),sT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(aT.default);Rd.default=cT;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var uT=ci,fT=hT(uT),uv=ui;function hT(t){return t&&t.__esModule?t:{default:t}}function dT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mT=function(t){gT(e,t);function e(A,r){return dT(this,e),A+=(0,uv.mod11)(A),A+=(0,uv.mod10)(A),pT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(fT.default);Id.default=mT,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var vT=ci,BT=Hs(vT),wT=xd,yT=Hs(wT),bT=Td,CT=Hs(bT),ET=Rd,UT=Hs(ET),FT=Id,NT=Hs(FT);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=BT.default,Yr.MSI10=yT.default,Yr.MSI11=CT.default,Yr.MSI1010=UT.default,Yr.MSI1110=NT.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var ST=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),QT=Br,xT=TT(QT);function TT(t){return t&&t.__esModule?t:{default:t}}function RT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function VT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var MT=function(t){VT(e,t);function e(A,r){RT(this,e);var n=IT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return ST(e,[{key:"encode",value:function(){for(var r=this.number,n="";!isNaN(r)&&r!=0;)r%2===0?(n="11100"+n,r=(r-2)/2):(n="100"+n,r=(r-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(xT.default);Rc.pharmacode=MT;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var LT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),OT=Br,kT=HT(OT);function HT(t){return t&&t.__esModule?t:{default:t}}function DT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function WT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _T=function(t){WT(e,t);function e(A,r){DT(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=PT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return LT(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],n=this.getEncodings(),a=0;a<this.data.length;a++)r.push(n[this.data.charAt(a)]),a!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(kT.default);Ic.codabar=_T;var co={},Vc={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Ds.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Ds.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]},Object.defineProperty(Vc,"__esModule",{value:!0});var ZT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Mc=Ds,jT=Br,JT=KT(jT);function KT(t){return t&&t.__esModule?t:{default:t}}function GT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function YT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var XT=function(t){YT(e,t);function e(A,r){return GT(this,e),zT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return ZT(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.data.split("").flatMap(function(o){return Mc.MULTI_SYMBOLS[o]||o}),n=r.map(function(o){return e.getEncoding(o)}).join(""),a=e.checksum(r,20),i=e.checksum(r.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(i)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(r){return Mc.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Mc.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Mc.SYMBOLS.indexOf(r)}},{key:"checksum",value:function(r,n){var a=r.slice().reverse().reduce(function(i,o,s){var l=s%n+1;return i+e.symbolValue(o)*l},0);return e.getSymbol(a%47)}}]),e}(JT.default);Vc.default=XT;var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});var qT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),$T=Vc,eR=tR($T);function tR(t){return t&&t.__esModule?t:{default:t}}function AR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function nR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aR=function(t){nR(e,t);function e(A,r){return AR(this,e),rR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return qT(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(eR.default);Vd.default=aR,Object.defineProperty(co,"__esModule",{value:!0}),co.CODE93FullASCII=co.CODE93=void 0;var iR=Vc,oR=fv(iR),sR=Vd,lR=fv(sR);function fv(t){return t&&t.__esModule?t:{default:t}}co.CODE93=oR.default,co.CODE93FullASCII=lR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var cR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),uR=Br,fR=hR(uR);function hR(t){return t&&t.__esModule?t:{default:t}}function dR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mR=function(t){gR(e,t);function e(A,r){return dR(this,e),pR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return cR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(fR.default);Lc.GenericBarcode=mR,Object.defineProperty(fd,"__esModule",{value:!0});var vR=Fc,Oc=In,uo=Sr,hv=lo,Ps=Yr,BR=Rc,wR=Ic,dv=co,yR=Lc;fd.default={CODE39:vR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:uo.EAN13,EAN8:uo.EAN8,EAN5:uo.EAN5,EAN2:uo.EAN2,UPC:uo.UPC,UPCE:uo.UPCE,ITF14:hv.ITF14,ITF:hv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:BR.pharmacode,codabar:wR.codabar,CODE93:dv.CODE93,CODE93FullASCII:dv.CODE93FullASCII,GenericBarcode:yR.GenericBarcode};var fo={};Object.defineProperty(fo,"__esModule",{value:!0});var bR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t};fo.default=function(t,e){return bR({},t,e)};var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=CR;function CR(t){var e=[];function A(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)A(r[n]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return A(t),e}var Ld={};Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=ER;function ER(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Od={},kd={},kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=UR;function UR(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var A in e)e.hasOwnProperty(A)&&(A=e[A],typeof t[A]=="string"&&(t[A]=parseInt(t[A],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var FR={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Hc.default=FR,Object.defineProperty(kd,"__esModule",{value:!0});var NR=kc,SR=gv(NR),QR=Hc,pv=gv(QR);function gv(t){return t&&t.__esModule?t:{default:t}}function xR(t){var e={};for(var A in pv.default)pv.default.hasOwnProperty(A)&&(t.hasAttribute("jsbarcode-"+A.toLowerCase())&&(e[A]=t.getAttribute("jsbarcode-"+A.toLowerCase())),t.hasAttribute("data-"+A.toLowerCase())&&(e[A]=t.getAttribute("data-"+A.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,SR.default)(e),e}kd.default=xR;var Hd={},Dd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=fo,RR=IR(TR);function IR(t){return t&&t.__esModule?t:{default:t}}function mv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function vv(t,e,A){if(A.displayValue&&e<t){if(A.textAlign=="center")return Math.floor((t-e)/2);if(A.textAlign=="left")return 0;if(A.textAlign=="right")return Math.floor(t-e)}return 0}function VR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,RR.default)(e,n.options),i;a.displayValue?i=OR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=mv(n,a),n.barcodePadding=vv(i,o,a)}}function MR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function LR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function OR(t,e,A){var r;if(A)r=A;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var n=r.measureText(t);if(!n)return 0;var a=n.width;return a}Hr.getMaximumHeightOfEncodings=LR,Hr.getEncodingHeight=mv,Hr.getBarcodePadding=vv,Hr.calculateEncodingAttributes=VR,Hr.getTotalWidthOfEncodings=MR,Object.defineProperty(Dd,"__esModule",{value:!0});var kR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),HR=fo,DR=PR(HR),Pd=Hr;function PR(t){return t&&t.__esModule?t:{default:t}}function WR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _R=function(){function t(e,A,r){WR(this,t),this.canvas=e,this.encodings=A,this.options=r}return kR(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var A=0;A<this.encodings.length;A++){var r=(0,DR.default)(this.options,this.encodings[A].options);this.drawCanvasBarcode(r,this.encodings[A]),this.drawCanvasText(r,this.encodings[A]),this.moveCanvasDrawing(this.encodings[A])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var A=this.canvas.getContext("2d");A.save(),(0,Pd.calculateEncodingAttributes)(this.encodings,this.options,A);var r=(0,Pd.getTotalWidthOfEncodings)(this.encodings),n=(0,Pd.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}();Dd.default=_R;var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0});var ZR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),jR=fo,JR=KR(jR),_d=Hr;function KR(t){return t&&t.__esModule?t:{default:t}}function GR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",zR=function(){function t(e,A,r){GR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return ZR(t,[{key:"render",value:function(){var A=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var n=this.encodings[r],a=(0,JR.default)(this.options,n.options),i=this.createGroup(A,a.marginTop,this.svg);this.setGroupOptions(i,a),this.drawSvgBarcode(i,a,n),this.drawSVGText(i,a,n),A+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,_d.calculateEncodingAttributes)(this.encodings,this.options);var A=(0,_d.getTotalWidthOfEncodings)(this.encodings),r=(0,_d.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}();Wd.default=zR;var Zd={};Object.defineProperty(Zd,"__esModule",{value:!0});var YR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function XR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var qR=function(){function t(e,A,r){XR(this,t),this.object=e,this.encodings=A,this.options=r}return YR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();Zd.default=qR,Object.defineProperty(Hd,"__esModule",{value:!0});var $R=Dd,eI=jd($R),tI=Wd,AI=jd(tI),rI=Zd,nI=jd(rI);function jd(t){return t&&t.__esModule?t:{default:t}}Hd.default={CanvasRenderer:eI.default,SVGRenderer:AI.default,ObjectRenderer:nI.default};var ho={};Object.defineProperty(ho,"__esModule",{value:!0});function Jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kd(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 Gd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aI=function(t){Gd(e,t);function e(A,r){Jd(this,e);var n=Kd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidInputException",n.symbology=A,n.input=r,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}return e}(Error),iI=function(t){Gd(e,t);function e(){Jd(this,e);var A=Kd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="InvalidElementException",A.message="Not supported type to render on",A}return e}(Error),oI=function(t){Gd(e,t);function e(){Jd(this,e);var A=Kd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="NoElementException",A.message="No element to render on.",A}return e}(Error);ho.InvalidInputException=aI,ho.InvalidElementException=iI,ho.NoElementException=oI,Object.defineProperty(Od,"__esModule",{value:!0});var sI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lI=kd,zd=Bv(lI),cI=Hd,Ws=Bv(cI),uI=ho;function Bv(t){return t&&t.__esModule?t:{default:t}}function Yd(t){if(typeof t=="string")return fI(t);if(Array.isArray(t)){for(var e=[],A=0;A<t.length;A++)e.push(Yd(t[A]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return hI(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,zd.default)(t),renderer:Ws.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,zd.default)(t),renderer:Ws.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Ws.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":sI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new uI.InvalidElementException}}function fI(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var A=[],r=0;r<e.length;r++)A.push(Yd(e[r]));return A}}function hI(t){var e=document.createElement("canvas");return{element:e,options:(0,zd.default)(t),renderer:Ws.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Od.default=Yd;var Xd={};Object.defineProperty(Xd,"__esModule",{value:!0});var dI=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function pI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var gI=function(){function t(e){pI(this,t),this.api=e}return dI(t,[{key:"handleCatch",value:function(A){if(A.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw A.message;else throw A;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(A){try{var r=A.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(n){return this.handleCatch(n),this.api}}}]),t}();Xd.default=gI;var mI=fd,fi=va(mI),vI=fo,_s=va(vI),BI=Md,wv=va(BI),wI=Ld,yv=va(wI),yI=Od,bI=va(yI),CI=kc,EI=va(CI),UI=Xd,FI=va(UI),bv=ho,NI=Hc,Cv=va(NI);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,bI.default)(e),n._encodings=[],n._options=Cv.default,n._errorHandler=new FI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Fv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return fi.default[t]};for(var Ev in fi.default)fi.default.hasOwnProperty(Ev)&&SI(fi.default,Ev);function SI(t,e){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,EI.default)(a);var i=t[e],o=Uv(A,i,a);return n._encodings.push(o),n})}}function Uv(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new bv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,wv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Fv(){return fi.default.CODE128?"CODE128":Object.keys(fi.default)[0]}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=Fv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=fi.default[A.format.toUpperCase()],a=Uv(r,n,A);qd(t,a,A)})}}},Gn.prototype.render=function(){if(!this._renderProperties)throw new bv.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)qd(this._renderProperties[t],this._encodings,this._options);else qd(this._renderProperties,this._encodings,this._options);return this},Gn.prototype._defaults=Cv.default;function qd(t,e,A){e=(0,wv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,yv.default)(e[r].options);(0,yv.default)(A);var n=t.renderer,a=new n(t.element,e,A);a.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=Pc),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var A=[];return jQuery(this).each(function(){A.push(this)}),Pc(A,t,e)});var QI=Pc;const $d=cd(QI),Pq="",xI={__name:"BarcodeComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Qs(A,r),i=f.ref(null);f.computed(()=>A.modelValue.__selected||!1);const o=f.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,h)=>{let y;return function(...b){const v=()=>{clearTimeout(y),g(...b)};clearTimeout(y),y=setTimeout(v,h)}},l=f.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var N,S,O,P,k,R,I,x,F,E,T,L,Z,K,Y,G;if(!i.value)return;const g=gi((S=(N=A.propsConfig)==null?void 0:N.barcode)==null?void 0:S.propertyPanel)||{};let h=((O=A.modelValue)==null?void 0:O.BarcodeValue)||g.BarcodeValue||"";if(!h&&((P=A.modelValue)!=null&&P.FieldName))if(Array.isArray(A.modelValue.FieldName)){const q=A.modelValue.FieldName.map(X=>{var ae,Q,H,z;return((z=(H=(Q=(ae=A.modelValue)==null?void 0:ae.options)==null?void 0:Q.fields)==null?void 0:H.find(j=>j.value==X))==null?void 0:z.label)||X}).filter(X=>X);if(q.length>0){const X=A.modelValue.FieldConnector||" ";h=q.join(X)}}else h=((x=(I=(R=(k=A.modelValue)==null?void 0:k.options)==null?void 0:R.fields)==null?void 0:I.find(q=>{var X;return q.value==((X=A.modelValue)==null?void 0:X.FieldName)}))==null?void 0:x.label)||((F=A.modelValue)==null?void 0:F.FieldName)||"";const y=((E=A.modelValue)==null?void 0:E.CodeType)||g.CodeType||"",w=A.modelValue.LineColor||g.LineColor,b=((G=(Y=(K=(Z=(L=(T=A.propsConfig)==null?void 0:T.barcode)==null?void 0:L.propertyPanel)==null?void 0:Z.find(q=>q.prop==="CodeType"))==null?void 0:K.options)==null?void 0:Y.find(q=>q.value===y))==null?void 0:G.compValue)||"",v={value:h,type:y,lineColor:w,codeType:b};if(JSON.stringify(v)!==JSON.stringify(l.value)){l.value=v;try{const q=i.value;q.innerHTML="",$d(q,h,{format:b,width:2,displayValue:!1,margin:0,lineColor:w,height:50,background:"transparent"}),f.nextTick(()=>{if(q){const X=q.getBBox();if(X.width>0&&X.height>0){const ae=`${X.x} ${X.y} ${X.width} ${X.height}`;q.setAttribute("viewBox",ae),q.style.width="100%",q.style.height="100%",q.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return f.onMounted(()=>{u(),a(),n()}),f.watch(()=>A.modelValue,()=>d(),{deep:!0}),f.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,h)=>(f.openBlock(),f.createElementBlock("div",{class:"barcode-component",style:f.normalizeStyle(o.value)},[(f.openBlock(),f.createElementBlock("svg",{ref_key:"barcodeRef",ref:i,width:"100%",height:"100%",preserveAspectRatio:"none",style:{width:"100%",height:"100%"}},null,512))],4))}},TI={__name:"BarcodePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,"panel-type":"barcode",options:t.options,"onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},RI={},II={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function VI(t,e){return f.openBlock(),f.createElementBlock("svg",II,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"1785"},null,-1),f.createElementVNode("path",{d:"M388.592 912H195.92C150.24 912 112 871.696 112 823.44V642.848c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 17.92 13.408 32.336 30.288 32.336h192.16c15.408 0 26.832 11.952 26.832 28.368 0 15.424-11.424 27.856-26.32 27.856z m439.456 0h-192.16c-15.408 0-26.816-11.936-26.816-28.352 0-15.92 11.408-28.368 26.8-28.368h192.176c16.88 0 30.288-13.92 30.288-32.32V642.336c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 48.752-38.24 89.056-83.92 89.056zM138.816 409.504c-15.392 0-26.816-11.936-26.816-28.352V201.056C112 152.8 150.24 112.48 195.92 112.48h192.16c15.408 0 26.832 11.936 26.832 28.352 0 15.92-11.424 28.368-26.816 28.368H195.92c-16.88 0-30.288 15.92-30.288 34.32V384.16c0 13.44-11.424 25.36-26.816 25.36zM885.184 409.52c-15.392 0-26.816-11.952-26.816-28.368V201.056c0-17.92-13.408-32.336-30.288-32.336h-192.16c-15.408 0-26.832-11.936-26.832-28.368 0-15.92 11.424-28.352 26.816-28.352h192.176C873.76 112 912 152.304 912 200.56v180.592c0 16.416-13.408 28.368-26.816 28.368zM755.2 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM672 698c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6v372zM608 326v372c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6zM560 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM512 698c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6v372zM336 698c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6v372zM256 326v372c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6zM400 698c0 3.6 2.56 6 6.4 6h64c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-64c-3.84 0-6.4 2.4-6.4 6v372z","p-id":"1786"},null,-1)])])}const MI=ZA(RI,[["render",VI]]),Ba=t=>t*3.7795275591,hi=t=>t/3.7795275591;function e0(t){if(!t||t<=0)return 1;const e=hi(t);return(window.$templateType||"lodop")==="rfid"?e*1.5:e}var wa={},LI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Nv={},Dr={};let t0;const OI=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Dr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},Dr.getSymbolTotalCodewords=function(e){return OI[e]},Dr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},Dr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');t0=e},Dr.isKanjiModeEnabled=function(){return typeof t0<"u"},Dr.toSJIS=function(e){return t0(e)};var Wc={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(A){if(typeof A!="string")throw new Error("Param is not a string");switch(A.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+A)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,n){if(t.isValid(r))return r;try{return e(r)}catch{return n}}})(Wc);function Sv(){this.buffer=[],this.length=0}Sv.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let A=0;A<e;A++)this.putBit((t>>>e-A-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var kI=Sv;function Zs(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Zs.prototype.set=function(t,e,A,r){const n=t*this.size+e;this.data[n]=A,r&&(this.reservedBit[n]=!0)},Zs.prototype.get=function(t,e){return this.data[t*this.size+e]},Zs.prototype.xor=function(t,e,A){this.data[t*this.size+e]^=A},Zs.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var HI=Zs,Qv={};(function(t){const e=Dr.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const n=Math.floor(r/7)+2,a=e(r),i=a===145?26:Math.ceil((a-13)/(2*n-2))*2,o=[a-7];for(let s=1;s<n-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()},t.getPositions=function(r){const n=[],a=t.getRowColCoords(r),i=a.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||n.push([a[o],a[s]]);return n}})(Qv);var xv={};const DI=Dr.getSymbolSize,Tv=7;xv.getPositions=function(e){const A=DI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var Rv={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){const a=n.size;let i=0,o=0,s=0,l=null,u=null;for(let d=0;d<a;d++){o=s=0,l=u=null;for(let g=0;g<a;g++){let h=n.get(d,g);h===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=h,o=1),h=n.get(g,d),h===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=h,s=1)}o>=5&&(i+=e.N1+(o-5)),s>=5&&(i+=e.N1+(s-5))}return i},t.getPenaltyN2=function(n){const a=n.size;let i=0;for(let o=0;o<a-1;o++)for(let s=0;s<a-1;s++){const l=n.get(o,s)+n.get(o,s+1)+n.get(o+1,s)+n.get(o+1,s+1);(l===4||l===0)&&i++}return i*e.N2},t.getPenaltyN3=function(n){const a=n.size;let i=0,o=0,s=0;for(let l=0;l<a;l++){o=s=0;for(let u=0;u<a;u++)o=o<<1&2047|n.get(l,u),u>=10&&(o===1488||o===93)&&i++,s=s<<1&2047|n.get(u,l),u>=10&&(s===1488||s===93)&&i++}return i*e.N3},t.getPenaltyN4=function(n){let a=0;const i=n.data.length;for(let s=0;s<i;s++)a+=n.data[s];return Math.abs(Math.ceil(a*100/i/5)-10)*e.N4};function A(r,n,a){switch(r){case t.Patterns.PATTERN000:return(n+a)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return a%3===0;case t.Patterns.PATTERN011:return(n+a)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case t.Patterns.PATTERN101:return n*a%2+n*a%3===0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2===0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(n,a){const i=a.size;for(let o=0;o<i;o++)for(let s=0;s<i;s++)a.isReserved(s,o)||a.xor(s,o,A(n,s,o))},t.getBestMask=function(n,a){const i=Object.keys(t.Patterns).length;let o=0,s=1/0;for(let l=0;l<i;l++){a(l),t.applyMask(l,n);const u=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(l,n),u<s&&(s=u,o=l)}return o}})(Rv);var _c={};const 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 Iv={},Jc={};const js=new Uint8Array(512),Kc=new Uint8Array(256);(function(){let e=1;for(let A=0;A<255;A++)js[A]=e,Kc[e]=A,e<<=1,e&256&&(e^=285);for(let A=255;A<512;A++)js[A]=js[A-255]})(),Jc.log=function(e){if(e<1)throw new Error("log("+e+")");return Kc[e]},Jc.exp=function(e){return js[e]},Jc.mul=function(e,A){return e===0||A===0?0:js[Kc[e]+Kc[A]]},function(t){const e=Jc;t.mul=function(r,n){const a=new Uint8Array(r.length+n.length-1);for(let i=0;i<r.length;i++)for(let o=0;o<n.length;o++)a[i+o]^=e.mul(r[i],n[o]);return a},t.mod=function(r,n){let a=new Uint8Array(r);for(;a.length-n.length>=0;){const i=a[0];for(let s=0;s<n.length;s++)a[s]^=e.mul(n[s],i);let o=0;for(;o<a.length&&a[o]===0;)o++;a=a.slice(o)}return a},t.generateECPolynomial=function(r){let n=new Uint8Array([1]);for(let a=0;a<r;a++)n=t.mul(n,new Uint8Array([1,e.exp(a)]));return n}}(Iv);const Vv=Iv;function A0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}A0.prototype.initialize=function(e){this.degree=e,this.genPoly=Vv.generateECPolynomial(this.degree)},A0.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const A=new Uint8Array(e.length+this.degree);A.set(e);const r=Vv.mod(A,this.genPoly),n=this.degree-r.length;if(n>0){const a=new Uint8Array(this.degree);return a.set(r,n),a}return r};var PI=A0,Mv={},ba={},r0={};r0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Lv="[0-9]+",WI="[A-Z $%*+\\-./:]+";let Js="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Js=Js.replace(/u/g,"\\u");const _I="(?:(?![A-Z0-9 $%*+\\-./:]|"+Js+`)(?:.|[\r
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const EF=Object.prototype.hasOwnProperty,qh=(t,e)=>EF.call(t,e),bc=t=>typeof t=="function",xs=t=>typeof t=="string",tm=t=>t!==null&&typeof t=="object";var UF=typeof global=="object"&&global&&global.Object===Object&&global;const FF=UF;var NF=typeof self=="object"&&self&&self.Object===Object&&self,SF=FF||NF||Function("return this")();const $h=SF;var QF=$h.Symbol;const $i=QF;var Am=Object.prototype,xF=Am.hasOwnProperty,TF=Am.toString,Ts=$i?$i.toStringTag:void 0;function RF(t){var e=xF.call(t,Ts),A=t[Ts];try{t[Ts]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[Ts]=A:delete t[Ts]),n}var IF=Object.prototype,VF=IF.toString;function MF(t){return VF.call(t)}var LF="[object Null]",OF="[object Undefined]",rm=$i?$i.toStringTag:void 0;function nm(t){return t==null?t===void 0?OF:LF:rm&&rm in Object(t)?RF(t):MF(t)}function kF(t){return t!=null&&typeof t=="object"}var HF="[object Symbol]";function ed(t){return typeof t=="symbol"||kF(t)&&nm(t)==HF}function DF(t,e){for(var A=-1,r=t==null?0:t.length,n=Array(r);++A<r;)n[A]=e(t[A],A,t);return n}var PF=Array.isArray;const td=PF;var WF=1/0,am=$i?$i.prototype:void 0,im=am?am.toString:void 0;function om(t){if(typeof t=="string")return t;if(td(t))return DF(t,om)+"";if(ed(t))return im?im.call(t):"";var e=t+"";return e=="0"&&1/t==-WF?"-0":e}function sm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _F="[object AsyncFunction]",ZF="[object Function]",jF="[object GeneratorFunction]",JF="[object Proxy]";function KF(t){if(!sm(t))return!1;var e=nm(t);return e==ZF||e==jF||e==_F||e==JF}var GF=$h["__core-js_shared__"];const Ad=GF;var lm=function(){var t=/[^.]+$/.exec(Ad&&Ad.keys&&Ad.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function zF(t){return!!lm&&lm in t}var YF=Function.prototype,XF=YF.toString;function qF(t){if(t!=null){try{return XF.call(t)}catch{}try{return t+""}catch{}}return""}var $F=/[\\^$.*+?()[\]{}|]/g,e4=/^\[object .+?Constructor\]$/,t4=Function.prototype,A4=Object.prototype,r4=t4.toString,n4=A4.hasOwnProperty,a4=RegExp("^"+r4.call(n4).replace($F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i4(t){if(!sm(t)||zF(t))return!1;var e=KF(t)?a4:e4;return e.test(qF(t))}function o4(t,e){return t==null?void 0:t[e]}function cm(t,e){var A=o4(t,e);return i4(A)?A:void 0}function s4(t,e){return t===e||t!==t&&e!==e}var l4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c4=/^\w*$/;function u4(t,e){if(td(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||ed(t)?!0:c4.test(t)||!l4.test(t)||e!=null&&t in Object(e)}var f4=cm(Object,"create");const Rs=f4;function h4(){this.__data__=Rs?Rs(null):{},this.size=0}function d4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var p4="__lodash_hash_undefined__",g4=Object.prototype,m4=g4.hasOwnProperty;function v4(t){var e=this.__data__;if(Rs){var A=e[t];return A===p4?void 0:A}return m4.call(e,t)?e[t]:void 0}var B4=Object.prototype,w4=B4.hasOwnProperty;function y4(t){var e=this.__data__;return Rs?e[t]!==void 0:w4.call(e,t)}var b4="__lodash_hash_undefined__";function C4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?b4:e,this}function ai(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ai.prototype.clear=h4,ai.prototype.delete=d4,ai.prototype.get=v4,ai.prototype.has=y4,ai.prototype.set=C4;function E4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(s4(t[A][0],e))return A;return-1}var U4=Array.prototype,F4=U4.splice;function N4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():F4.call(e,A,1),--this.size,!0}function S4(t){var e=this.__data__,A=Cc(e,t);return A<0?void 0:e[A][1]}function Q4(t){return Cc(this.__data__,t)>-1}function x4(t,e){var A=this.__data__,r=Cc(A,t);return r<0?(++this.size,A.push([t,e])):A[r][1]=e,this}function eo(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=E4,eo.prototype.delete=N4,eo.prototype.get=S4,eo.prototype.has=Q4,eo.prototype.set=x4;var T4=cm($h,"Map");const R4=T4;function I4(){this.size=0,this.__data__={hash:new ai,map:new(R4||eo),string:new ai}}function V4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ec(t,e){var A=t.__data__;return V4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function M4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function L4(t){return Ec(this,t).get(t)}function O4(t){return Ec(this,t).has(t)}function k4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,this}function ii(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ii.prototype.clear=I4,ii.prototype.delete=M4,ii.prototype.get=L4,ii.prototype.has=O4,ii.prototype.set=k4;var H4="Expected a function";function rd(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(H4);var A=function(){var r=arguments,n=e?e.apply(this,r):r[0],a=A.cache;if(a.has(n))return a.get(n);var i=t.apply(this,r);return A.cache=a.set(n,i)||a,i};return A.cache=new(rd.Cache||ii),A}rd.Cache=ii;var D4=500;function P4(t){var e=rd(t,function(r){return A.size===D4&&A.clear(),r}),A=e.cache;return e}var W4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_4=/\\(\\)?/g,Z4=P4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(W4,function(A,r,n,a){e.push(n?a.replace(_4,"$1"):r||A)}),e});const j4=Z4;function J4(t){return t==null?"":om(t)}function K4(t,e){return td(t)?t:u4(t,e)?[t]:j4(J4(t))}var G4=1/0;function z4(t){if(typeof t=="string"||ed(t))return t;var e=t+"";return e=="0"&&1/t==-G4?"-0":e}function Y4(t,e){e=K4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[z4(e[A++])];return A&&A==r?t:void 0}function X4(t,e,A){var r=t==null?void 0:Y4(t,e);return r===void 0?A:r}function q4(t){for(var e=-1,A=t==null?0:t.length,r={};++e<A;){var n=t[e];r[n[0]]=n[1]}return r}const $4=t=>t===void 0,nd=t=>typeof t=="boolean",oi=t=>typeof t=="number",eN=t=>typeof Element>"u"?!1:t instanceof Element,tN=t=>xs(t)?!Number.isNaN(Number(t)):!1;var um;const to=typeof window<"u",AN=t=>typeof t=="string",rN=()=>{};to&&((um=window==null?void 0:window.navigator)!=null&&um.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ad(t){return typeof t=="function"?t():f.unref(t)}function nN(t){return t}function id(t){return f.getCurrentScope()?(f.onScopeDispose(t),!0):!1}function aN(t,e=!0){f.getCurrentInstance()?f.onMounted(t):e?t():f.nextTick(t)}function iN(t,e,A={}){const{immediate:r=!0}=A,n=f.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function o(){n.value=!1,i()}function s(...l){i(),n.value=!0,a=setTimeout(()=>{n.value=!1,a=null,t(...l)},ad(e))}return r&&(n.value=!0,to&&s()),id(o),{isPending:f.readonly(n),start:s,stop:o}}function fm(t){var e;const A=ad(t);return(e=A==null?void 0:A.$el)!=null?e:A}const hm=to?window:void 0;function oN(...t){let e,A,r,n;if(AN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=hm):[e,A,r,n]=t,!e)return rN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,h)=>(u.addEventListener(d,g,h),()=>u.removeEventListener(d,g,h)),s=f.watch(()=>[fm(e),ad(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(h=>o(u,g,h,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return id(l),l}function sN(t,e=!1){const A=f.ref(),r=()=>A.value=!!t();return r(),aN(r,e),A}const dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pm="__vueuse_ssr_handlers__";dm[pm]=dm[pm]||{};var gm=Object.getOwnPropertySymbols,lN=Object.prototype.hasOwnProperty,cN=Object.prototype.propertyIsEnumerable,uN=(t,e)=>{var A={};for(var r in t)lN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&gm)for(var r of gm(t))e.indexOf(r)<0&&cN.call(t,r)&&(A[r]=t[r]);return A};function fN(t,e,A={}){const r=A,{window:n=hm}=r,a=uN(r,["window"]);let i;const o=sN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=f.watch(()=>fm(t),d=>{s(),o.value&&n&&d&&(i=new ResizeObserver(e),i.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return id(u),{isSupported:o,stop:u}}var mm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(mm||(mm={}));var hN=Object.defineProperty,vm=Object.getOwnPropertySymbols,dN=Object.prototype.hasOwnProperty,pN=Object.prototype.propertyIsEnumerable,Bm=(t,e,A)=>e in t?hN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,gN=(t,e)=>{for(var A in e||(e={}))dN.call(e,A)&&Bm(t,A,e[A]);if(vm)for(var A of vm(e))pN.call(e,A)&&Bm(t,A,e[A]);return t};gN({linear:nN},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const wm={current:0},ym=f.ref(0),bm=2e3,Cm=Symbol("elZIndexContextKey"),Em=Symbol("zIndexContextKey"),mN=t=>{const e=f.getCurrentInstance()?f.inject(Cm,wm):wm,A=t||(f.getCurrentInstance()?f.inject(Em,void 0):void 0),r=f.computed(()=>{const i=f.unref(A);return oi(i)?i:bm}),n=f.computed(()=>r.value+ym.value),a=()=>(e.current++,ym.value=e.current,n.value);return!to&&f.inject(Cm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var vN={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const BN=t=>(e,A)=>wN(e,A,f.unref(t)),wN=(t,e,A)=>X4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),yN=t=>{const e=f.computed(()=>f.unref(t).name),A=f.isRef(t)?t:f.ref(t);return{lang:e,locale:A,t:BN(t)}},Um=Symbol("localeContextKey"),bN=t=>{const e=t||f.inject(Um,f.ref());return yN(f.computed(()=>e.value||vN))},Fm="__epPropKey",Nr=t=>t,CN=t=>tm(t)&&!!t[Fm],Nm=(t,e)=>{if(!tm(t)||CN(t))return t;const{values:A,required:r,default:n,type:a,validator:i}=t,s={type:a,required:!!r,validator:A||i?l=>{let u=!1,d=[];if(A&&(d=Array.from(A),qh(t,"default")&&d.push(n),u||(u=d.includes(l))),i&&(u||(u=i(l))),!u&&d.length>0){const g=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");f.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Fm]:!0};return qh(t,"default")&&(s.default=n),s},Is=t=>q4(Object.entries(t).map(([e,A])=>[e,Nm(A,e)])),EN=Nm({type:String,values:["","default","small","large"],required:!1}),UN=Symbol("size"),FN=Symbol("emptyValuesContextKey"),NN=Is({emptyValues:Array,valueOnClear:{type:Nr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Sm=t=>Object.keys(t),Uc=f.ref();function Qm(t,e=void 0){const A=f.getCurrentInstance()?f.inject($2,Uc):Uc;return t?f.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function SN(t,e){const A=Qm(),r=Xh(t,f.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=bN(f.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=mN(f.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||bm})),i=f.computed(()=>{var o;return f.unref(e)||((o=A.value)==null?void 0:o.size)||""});return xm(f.computed(()=>f.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const xm=(t,e,A=!1)=>{var r;const n=!!f.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?f.provide:void 0;if(!i)return;const o=f.computed(()=>{const s=f.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i($2,o),i(Um,f.computed(()=>o.value.locale)),i(em,f.computed(()=>o.value.namespace)),i(Em,f.computed(()=>o.value.zIndex)),i(UN,{size:f.computed(()=>o.value.size||"")}),i(FN,f.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Sm(t),...Sm(e)])],r={};for(const n of A)r[n]=e[n]!==void 0?e[n]:t[n];return r};var od=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A};function sd(t,e="px"){if(!t)return"";if(oi(t)||tN(t))return`${t}${e}`;if(xs(t))return t}function Lq(t,e){}const Tm=(t,e)=>{if(t.install=A=>{for(const r of[t,...Object.values(e??{})])A.component(r.name,r)},e)for(const[A,r]of Object.entries(e))t[A]=r;return t},xN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Nr([Number,String])},color:{type:String}}),RN=f.defineComponent({name:"ElIcon",inheritAttrs:!1}),IN=f.defineComponent({...RN,props:TN,setup(t){const e=t,A=Xh("icon"),r=f.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:$4(n)?void 0:sd(n),"--color":a}});return(n,a)=>(f.openBlock(),f.createElementBlock("i",f.mergeProps({class:f.unref(A).b(),style:f.unref(r)},n.$attrs),[f.renderSlot(n.$slots,"default")],16))}});var VN=od(IN,[["__file","icon.vue"]]);const Rm=Tm(VN);/*! Element Plus Icons Vue v2.3.2 */var MN=f.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Im=MN,LN=f.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ON=LN,kN=f.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ld=kN,HN=f.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Vm=HN,DN=f.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(f.openBlock(),f.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[f.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Mm=DN;const PN=Nr([String,Object,Function]),WN={Close:ON,SuccessFilled:Vm,InfoFilled:ld,WarningFilled:Mm,CircleCloseFilled:Im},Lm={primary:ld,success:Vm,warning:Mm,error:Im,info:ld},_N=t=>t,ZN={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},jN=Is({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Nr([String,Object,Array])},offset:{type:Nr(Array),default:[0,0]},badgeClass:{type:String}}),JN=f.defineComponent({name:"ElBadge"}),KN=f.defineComponent({...JN,props:jN,setup(t,{expose:e}){const A=t,r=Xh("badge"),n=f.computed(()=>A.isDot?"":oi(A.value)&&oi(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=f.computed(()=>{var i,o,s,l,u;return[{backgroundColor:A.color,marginRight:sd(-((o=(i=A.offset)==null?void 0:i[0])!=null?o:0)),marginTop:sd((l=(s=A.offset)==null?void 0:s[1])!=null?l:0)},(u=A.badgeStyle)!=null?u:{}]});return e({content:n}),(i,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(r).b())},[f.renderSlot(i.$slots,"default"),f.createVNode(f.Transition,{name:`${f.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("sup",{class:f.normalizeClass([f.unref(r).e("content"),f.unref(r).em("content",i.type),f.unref(r).is("fixed",!!i.$slots.default),f.unref(r).is("dot",i.isDot),f.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:f.normalizeStyle(f.unref(a))},[f.renderSlot(i.$slots,"content",{value:f.unref(n)},()=>[f.createTextVNode(f.toDisplayString(f.unref(n)),1)])],6),[[f.vShow,!i.hidden&&(f.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var GN=od(KN,[["__file","badge.vue"]]);const zN=Tm(GN);var Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const YN=Is({a11y:{type:Boolean,default:!0},locale:{type:Nr(Object)},size:EN,button:{type:Nr(Object)},card:{type:Nr(Object)},dialog:{type:Nr(Object)},link:{type:Nr(Object)},experimentalFeatures:{type:Nr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Nr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...NN}),ir={placement:"top"};f.defineComponent({name:"ElConfigProvider",props:YN,setup(t,{slots:e}){const A=xm(t);return f.watch(()=>t.message,r=>{var n,a;Object.assign(ir,(a=(n=A==null?void 0:A.value)==null?void 0:n.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>f.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Om=["primary","success","info","warning","error"],km=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ro="top",or=_N({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:to?document.body:void 0}),XN=Is({customClass:{type:String,default:or.customClass},dangerouslyUseHTMLString:{type:Boolean,default:or.dangerouslyUseHTMLString},duration:{type:Number,default:or.duration},icon:{type:PN,default:or.icon},id:{type:String,default:or.id},message:{type:Nr([String,Object,Function]),default:or.message},onClose:{type:Nr(Function),default:or.onClose},showClose:{type:Boolean,default:or.showClose},type:{type:String,values:Om,default:or.type},plain:{type:Boolean,default:or.plain},offset:{type:Number,default:or.offset},placement:{type:String,values:km,default:or.placement},zIndex:{type:Number,default:or.zIndex},grouping:{type:Boolean,default:or.grouping},repeatNum:{type:Number,default:or.repeatNum}}),qN={destroy:()=>!0},fn=f.shallowReactive({}),$N=t=>(fn[t]||(fn[t]=f.shallowReactive([])),fn[t]),e3=(t,e)=>{const A=fn[e]||[],r=A.findIndex(i=>i.id===t),n=A[r];let a;return r>0&&(a=A[r-1]),{current:n,prev:a}},t3=(t,e)=>{const{prev:A}=e3(t,e);return A?A.vm.exposed.bottom.value:0},A3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,r3=f.defineComponent({name:"ElMessage"}),n3=f.defineComponent({...r3,props:XN,emits:qN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=WN,a=f.ref(!1),{ns:i,zIndex:o}=SN("message"),{currentZIndex:s,nextZIndex:l}=o,u=f.ref(),d=f.ref(!1),g=f.ref(0);let h;const y=f.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),w=f.computed(()=>{const E=r.type;return{[i.bm("icon",E)]:E&&Lm[E]}}),b=f.computed(()=>r.icon||Lm[r.type]||""),v=f.computed(()=>r.placement||ro),C=f.computed(()=>t3(r.id,v.value)),N=f.computed(()=>A3(r.id,r.offset,v.value)+C.value),S=f.computed(()=>g.value+N.value),O=f.computed(()=>v.value.includes("left")?i.is("left"):v.value.includes("right")?i.is("right"):i.is("center")),P=f.computed(()=>v.value.startsWith("top")?"top":"bottom"),k=f.computed(()=>({[P.value]:`${N.value}px`,zIndex:s.value}));function R(){r.duration!==0&&({stop:h}=iN(()=>{x()},r.duration))}function I(){h==null||h()}function x(){d.value=!1,f.nextTick(()=>{var E;a.value||((E=r.onClose)==null||E.call(r),A("destroy"))})}function F({code:E}){E===ZN.esc&&x()}return f.onMounted(()=>{R(),l(),d.value=!0}),f.watch(()=>r.repeatNum,()=>{I(),R()}),oN(document,"keydown",F),fN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:S,close:x}),(E,T)=>(f.openBlock(),f.createBlock(f.Transition,{name:f.unref(i).b("fade"),onBeforeEnter:L=>a.value=!0,onBeforeLeave:E.onClose,onAfterLeave:L=>E.$emit("destroy"),persisted:""},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("div",{id:E.id,ref_key:"messageRef",ref:u,class:f.normalizeClass([f.unref(i).b(),{[f.unref(i).m(E.type)]:E.type},f.unref(i).is("closable",E.showClose),f.unref(i).is("plain",E.plain),f.unref(i).is("bottom",f.unref(P)==="bottom"),f.unref(O),E.customClass]),style:f.normalizeStyle(f.unref(k)),role:"alert",onMouseenter:I,onMouseleave:R},[E.repeatNum>1?(f.openBlock(),f.createBlock(f.unref(zN),{key:0,value:E.repeatNum,type:f.unref(y),class:f.normalizeClass(f.unref(i).e("badge"))},null,8,["value","type","class"])):f.createCommentVNode("v-if",!0),f.unref(b)?(f.openBlock(),f.createBlock(f.unref(Rm),{key:1,class:f.normalizeClass([f.unref(i).e("icon"),f.unref(w)])},{default:f.withCtx(()=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(f.unref(b))))]),_:1},8,["class"])):f.createCommentVNode("v-if",!0),f.renderSlot(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),f.createElementVNode("p",{class:f.normalizeClass(f.unref(i).e("content")),innerHTML:E.message},null,10,["innerHTML"])],2112)):(f.openBlock(),f.createElementBlock("p",{key:0,class:f.normalizeClass(f.unref(i).e("content"))},f.toDisplayString(E.message),3))]),E.showClose?(f.openBlock(),f.createBlock(f.unref(Rm),{key:2,class:f.normalizeClass(f.unref(i).e("closeBtn")),onClick:f.withModifiers(x,["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(n))]),_:1},8,["class","onClick"])):f.createCommentVNode("v-if",!0)],46,["id"]),[[f.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var a3=od(n3,[["__file","message.vue"]]);let i3=1;const o3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(xs(t.appendTo)){let A=document.querySelector(t.appendTo);eN(A)||(A=document.body),t.appendTo=A}},s3=t=>{!t.placement&&xs(ir.placement)&&ir.placement&&(t.placement=ir.placement),t.placement||(t.placement=ro),km.includes(t.placement)||(`${t.placement}${ro}`,t.placement=ro)},Hm=t=>{const e=!t||xs(t)||f.isVNode(t)||bc(t)?{message:t}:t,A={...or,...e};return o3(A),s3(A),nd(ir.grouping)&&!A.grouping&&(A.grouping=ir.grouping),oi(ir.duration)&&A.duration===3e3&&(A.duration=ir.duration),oi(ir.offset)&&A.offset===16&&(A.offset=ir.offset),nd(ir.showClose)&&!A.showClose&&(A.showClose=ir.showClose),nd(ir.plain)&&!A.plain&&(A.plain=ir.plain),A},l3=t=>{const e=t.props.placement||ro,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},c3=({appendTo:t,...e},A)=>{const r=`message_${i3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),l3(u)},onDestroy:()=>{f.render(null,a)}},o=f.createVNode(a3,i,bc(i.message)||f.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||si._context,f.render(o,a),t.appendChild(a.firstElementChild);const s=o.component,u={id:r,vnode:o,vm:s,handler:{close:()=>{s.exposed.close()}},props:o.component.props};return u},si=(t={},e)=>{if(!to)return{close:()=>{}};const A=Hm(t),r=$N(A.placement||ro);if(A.grouping&&r.length){const a=r.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===A.message});if(a)return a.props.repeatNum+=1,a.props.type=A.type,a.handler}if(oi(ir.max)&&r.length>=ir.max)return{close:()=>{}};const n=c3(A,e);return r.push(n),n.handler};Om.forEach(t=>{si[t]=(e={},A)=>{const r=Hm(e);return si({...r,type:t},A)}});function u3(t){for(const e in fn)if(qh(fn,e)){const A=[...fn[e]];for(const r of A)(!t||t===r.props.type)&&r.handler.close()}}function f3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}si.closeAll=u3,si.closeAllByPlacement=f3,si._context=null;const Vs=xN(si,"$message"),Oq="",ZA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},h3={class:"property-item"},d3={key:0,class:"label"},p3=["innerHTML"],g3={key:4,class:"file-input-container"},m3=["disabled"],v3={key:1},B3=["accept"],w3=["type","min","max","step"],ud=ZA({__name:"PropertyItem",props:{label:String,prop:String,modelValue:[String,Number,Boolean],type:{type:String,default:"text"},options:{type:Array,default:()=>[]},min:Number,max:Number,step:Number,accept:String,desc:String,multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change","rotationChange"],setup(t,{emit:e}){const A=t,r=e,n=f.ref(null),a=f.ref(!1),i=f.ref(null),o=f.ref(null),s=f.inject("config",{}),l=f.inject("propertyModel",null),u=f.inject("propertyOptions",null),d=(R="")=>{var I,x;return((x=(I=A.options)==null?void 0:I.find(F=>(F==null?void 0:F.value)==R))==null?void 0:x.value)??" "},g=f.computed({get:()=>{const R=A.modelValue;if(A.type==="select"){if(!A.multiple)return d(R);if(typeof R=="string"){let I=d(R);return I=I&&I.trim()?[I]:[],I}return Array.isArray(R)?R.map(x=>d(x)):[]}return A.prop==="WordSpace"?R??0:R},set:R=>{A.type==="select"&&A.multiple?Array.isArray(R)&&R.length===1?r("update:modelValue",R[0]):Array.isArray(R)&&R.length>1?r("update:modelValue",R):r("update:modelValue",""):r("update:modelValue",R)}}),h=R=>{r("change",R),A.label==="旋转角度"&&typeof R=="number"&&r("rotationChange",R)};let y=null,w=null;function b(R,I,x){if((x!==w||!y)&&(y=new Map,x&&x.length>0&&x.forEach(F=>{F.value!==void 0&&F.value!==null&&y.set(String(F.value),F.label||"")}),w=x),Array.isArray(R)){if(R.length===0)return[];const F=R.filter(T=>T&&T!==""&&T!==" ");return F.length===0?[]:F.map(T=>y.get(String(T))||"").filter(T=>T)}return!R||R===""||R===" "?"":y.get(String(R))||""}let v=null;function C(){!(l!=null&&l.value)||!(u!=null&&u.value)||(v&&clearTimeout(v),v=setTimeout(()=>{var Z;const R=l.value,I=R.FieldName,x=R.FieldConnector,F=((Z=u.value)==null?void 0:Z.fields)||[],E=b(I,x,F),T=R.FieldLabel;let L=!1;if(Array.isArray(E)&&Array.isArray(T)?L=E.length!==T.length||E.some((K,Y)=>K!==T[Y]):!Array.isArray(E)&&!Array.isArray(T)?L=E!==T:L=!0,L){const K={...R,FieldLabel:E};f.nextTick(()=>{l.value=K})}},0))}A.prop==="FieldName"&&(f.watch(()=>{var x;const R=l==null?void 0:l.value,I=(x=u==null?void 0:u.value)==null?void 0:x.fields;return{fieldName:R==null?void 0:R.FieldName,fieldConnector:R==null?void 0:R.FieldConnector,fieldsRef:I,fieldsLength:I==null?void 0:I.length}},(R,I)=>{var F;const x=(F=l==null?void 0:l.value)==null?void 0:F.FieldName;if(x&&x!==""&&x!==" "){const E=Array.isArray(x);if(I&&R.fieldName===I.fieldName&&R.fieldsRef===I.fieldsRef&&R.fieldsLength===I.fieldsLength&&R.fieldConnector!==I.fieldConnector&&!E)return;(!E||x.length>0)&&C()}},{immediate:!0}),f.onUnmounted(()=>{v&&(clearTimeout(v),v=null)}));const N=f.computed({get:()=>g.value?typeof g.value=="object"&&g.value.fileSrc?g.value.fileSrc.startsWith("http://")||g.value.fileSrc.startsWith("https://")?g.value.fileSrc:g.value.fileSrc.startsWith("data:")?g.value.fileName||"已选择的图片":g.value.fileName||g.value.fileSrc:typeof g.value=="string"&&g.value.startsWith("data:")?"已选择的图片":g.value:"",set:R=>{g.value=R}}),S=()=>{n.value&&!a.value&&n.value.click()},O=R=>{const I=R.target.value.trim();I?I.startsWith("http://")||I.startsWith("https://")||I.startsWith("data:")?g.value=I:I.startsWith("data:")||(g.value=I):g.value=""},P=async R=>{var E;const I=R.target.files[0];if(!I)return;if(A.accept&&!I.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const x=(E=s==null?void 0:s.image)==null?void 0:E.request;if(!x||typeof x!="function"){handleFileAsBase64(I);return}o.value=I;let F=null;try{a.value=!0,F=x(I),i.value=F;const T=await F;if(i.value===F&&o.value===I)if(T&&T.success!==!1){let Z=T.url||T.data||T;try{const Y=await k(I);Y&&(Z=Y)}catch{}const K={fileName:I.name,fileSrc:Z,uploadResult:T};r("update:modelValue",K),r("change",R),Vs.success("图片上传成功")}else throw new Error((T==null?void 0:T.message)||"上传失败")}catch(T){i.value===F&&o.value===I&&(n.value&&(n.value.value=""),Vs.error(T.message||"上传失败,请重试"))}finally{i.value===F&&(a.value=!1,i.value=null,o.value=null)}},k=R=>new Promise((I,x)=>{const E=R.size>5242880;if(R.type.startsWith("image/"))if(E){const T=new Image,L=document.createElement("canvas"),Z=L.getContext("2d"),K=setTimeout(()=>{x(new Error("转换超时"))},8e3);T.onload=()=>{clearTimeout(K);try{let{width:q,height:X}=T;if(q>1920||X>1920){const Q=Math.min(1920/q,1920/X);q=Math.floor(q*Q),X=Math.floor(X*Q)}L.width=q,L.height=X,Z.drawImage(T,0,0,q,X);const ae=L.toDataURL("image/jpeg",.8);I(ae)}catch(G){x(G)}finally{URL.revokeObjectURL(T.src)}},T.onerror=()=>{clearTimeout(K),x(new Error("图片加载失败"))};const Y=URL.createObjectURL(R);T.src=Y}else{const T=new FileReader,L=setTimeout(()=>{x(new Error("转换超时"))},5e3);T.onload=Z=>{clearTimeout(L),I(Z.target.result)},T.onerror=()=>{clearTimeout(L),x(new Error("文件读取失败"))},T.readAsDataURL(R)}else{const T=new FileReader,L=setTimeout(()=>{x(new Error("转换超时"))},5e3);T.onload=Z=>{clearTimeout(L),I(Z.target.result)},T.onerror=()=>{clearTimeout(L),x(new Error("文件读取失败"))},T.readAsDataURL(R)}});return f.onUnmounted(()=>{i.value=null,o.value=null}),(R,I)=>{const x=f.resolveComponent("el-icon-question-filled"),F=f.resolveComponent("el-icon"),E=f.resolveComponent("el-tooltip"),T=f.resolveComponent("el-option"),L=f.resolveComponent("el-select"),Z=f.resolveComponent("el-icon-loading");return f.openBlock(),f.createElementBlock("div",h3,[t.label?(f.openBlock(),f.createElementBlock("label",d3,[f.createTextVNode(f.toDisplayString(t.label)+" ",1),t.desc?(f.openBlock(),f.createBlock(E,{key:0,placement:"top","show-arrow":!0},{content:f.withCtx(()=>[f.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,p3)]),default:f.withCtx(()=>[f.createVNode(F,{class:"help-icon"},{default:f.withCtx(()=>[f.createVNode(x)]),_:1})]),_:1})):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0),t.type==="select"?(f.openBlock(),f.createBlock(L,{key:1,modelValue:g.value,"onUpdate:modelValue":I[0]||(I[0]=K=>g.value=K),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",filterable:"",onChange:h},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,K=>(f.openBlock(),f.createBlock(T,{key:K.value,label:K.label,value:K.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:2,"onUpdate:modelValue":I[1]||(I[1]=K=>g.value=K),type:"color"},null,512)),[[f.vModelText,g.value]]):t.type==="checkbox"?f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:3,"onUpdate:modelValue":I[2]||(I[2]=K=>g.value=K),type:"checkbox"},null,512)),[[f.vModelCheckbox,g.value]]):t.type==="file"?(f.openBlock(),f.createElementBlock("div",g3,[f.withDirectives(f.createElementVNode("input",{type:"text","onUpdate:modelValue":I[3]||(I[3]=K=>N.value=K),placeholder:"请选择图片",class:"file-url-input",onInput:O,disabled:""},null,544),[[f.vModelText,N.value]]),f.createElementVNode("button",{type:"button",onClick:S,class:"file-select-btn",disabled:a.value},[a.value?(f.openBlock(),f.createBlock(F,{key:0,class:"is-loading"},{default:f.withCtx(()=>[f.createVNode(Z)]),_:1})):(f.openBlock(),f.createElementBlock("span",v3,f.toDisplayString(a.value?"上传中...":"选择"),1))],8,m3),f.createElementVNode("input",{type:"file",accept:t.accept,onChange:P,ref_key:"fileInput",ref:n,class:"file-input"},null,40,B3)])):f.withDirectives((f.openBlock(),f.createElementBlock("input",{key:5,"onUpdate:modelValue":I[4]||(I[4]=K=>g.value=K),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:I[5]||(I[5]=f.withModifiers(()=>{},["prevent"]))},null,40,w3)),[[f.vModelDynamic,g.value]])])}}},[["__scopeId","data-v-6a0dec15"]]),Hq="",y3={class:"property-layout-container"},b3={key:0,class:"property-item-wrapper full-width"},C3={key:1,class:"property-item-wrapper half-width"},E3={key:2,class:"property-item-wrapper default-width"},no=ZA({__name:"BasePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},panelType:{type:String,default:"base",validator:t=>["text","barcode","qrcode","image","rectangle","line"].includes(t)},options:{type:Object,default:()=>({})}},emits:["update:modelValue","rotationChange"],setup(t,{emit:e}){const A=t,r=e,{propsConfig:n,panelType:a}=f.toRefs(A),i=f.computed(()=>`${a.value}-property-panel`),o=f.ref([]);function s(x,F,E=[],T="",L="FieldName"){const Z=[];if(Array.isArray(F))return F.forEach(K=>{const Y=s(x,K,E,T,L);Z.push(...Y)}),Z;if(x&&x.propertyPanel){const K=x.propertyPanel;let Y=[];Array.isArray(K)?Y=K.map(G=>({...G,_dynamic:!0,_path:T||"FieldName",_parentProp:L})):typeof K=="object"&&K!==null&&(K.prop?Y=[{...K,_dynamic:!0,_path:T||"FieldName",_parentProp:L}]:Y=Object.keys(K).map(G=>({prop:G,...K[G],_dynamic:!0,_path:T||"FieldName",_parentProp:L}))),Z.push(...Y)}return Z}function l(x,F,E=[],T=""){const L=[];if(!F||F===" "||!E||E.length===0)return L;const Z=E.find(K=>K.value==F);if(Z&&Z.propertyPanel){const K=Z.propertyPanel;let Y=[];Array.isArray(K)?Y=K.map(G=>({...G,_dynamic:!0,_path:`${T||x}.${F}`,_parentProp:x})):typeof K=="object"&&K!==null&&(K.prop?Y=[{...K,_dynamic:!0,_path:`${T||x}.${F}`,_parentProp:x}]:Y=Object.keys(K).map(G=>({prop:G,...K[G],_dynamic:!0,_path:`${T||x}.${F}`,_parentProp:x}))),L.push(...Y)}return L}function u(x){var F;return x.options&&Array.isArray(x.options)?x.options:x.optionsKey&&((F=A.options)!=null&&F[x.optionsKey])?A.options[x.optionsKey]||[]:[]}function d(x,F=[],E=new Set,T=0){var Y;if(T>10)return[];const L=[],Z=new Set;if(T===0){const G=x.FieldName;if(G){const q=((Y=A.options)==null?void 0:Y.fields)||[];if(Array.isArray(G))G.forEach(X=>{const ae=q.find(Q=>Q.value==X);if(ae){const Q=`FieldName.${X}`;E.has(Q)||(E.add(Q),s(ae,X,q,Q).forEach(z=>{z.prop&&!Z.has(z.prop)&&(Z.add(z.prop),L.push(z))}))}});else{const X=q.find(ae=>ae.value==G);if(X){const ae=`FieldName.${G}`;E.has(ae)||(E.add(ae),s(X,G,q,ae).forEach(H=>{H.prop&&!Z.has(H.prop)&&(Z.add(H.prop),L.push(H))}))}}}}return F.forEach(G=>{if(G.type==="select"){const q=x[G.prop];if(q!=null&&q!==""&&q!==" "){const X=u(G);if(X&&X.length>0){const ae=G.prop,Q=`${ae}.${q}`;if(!E.has(Q)){E.add(Q);const H=l(G.prop,q,X,ae);H.length>0&&(H.forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}),d(x,[...F,...L],E,T+1).forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}))}}}}}),[...L].forEach(G=>{if(G.type==="select"){const q=x[G.prop];if(q!=null&&q!==""&&q!==" "){const X=u(G);if(X&&X.length>0){const ae=G._path||G.prop,Q=`${ae}.${q}`;if(!E.has(Q)){E.add(Q);const H=l(G.prop,q,X,ae);H.length>0&&(H.forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}),d(x,[...F,...L],E,T+1).forEach(j=>{j.prop&&!Z.has(j.prop)&&(Z.add(j.prop),L.push(j))}))}}}}}),L}const g=f.computed(()=>{const x=n.value.propertyPanel;let F=[];return x&&typeof x=="object"&&!Array.isArray(x)&&(F=Object.keys(x).map(E=>({prop:E,...x[E]})).filter(E=>!E.hide)),Array.isArray(x)&&(F=x.filter(E=>!E.hide)||[]),F}),h=f.ref([]),y=f.ref(""),w=f.ref(null),b=f.computed(()=>{const x=A.modelValue||{};let F="";if(x.FieldName!==void 0){const T=Array.isArray(x.FieldName)?x.FieldName.join(","):String(x.FieldName);F+=`FieldName:${T}|`}return g.value.filter(T=>T.type==="select").map(T=>T.prop).forEach(T=>{x[T]!==void 0&&(F+=`${T}:${x[T]}|`)}),o.value.length>0&&o.value.filter(L=>L.type==="select").map(L=>L.prop).forEach(L=>{x[L]!==void 0&&(F+=`${L}:${x[L]}|`)}),y.value===F&&w.value?w.value:(y.value=F,w.value=F,F)});f.watch(()=>[b.value,g.value],(x,F)=>{const[E,T]=x||[b.value,g.value],[L]=F||[void 0];if(L&&E===L)return;const Z=A.modelValue||{},K=A.modelValue||{},G=d(Z,T,new Set),q=new Set(G.map(j=>j.prop).filter(Boolean)),X=new Set(h.value.map(j=>j.prop).filter(Boolean)),ae=[];X.forEach(j=>{q.has(j)||ae.push(j)});const Q=[];G.forEach(j=>{j.prop&&"default"in j&&Z[j.prop]===void 0&&Q.push({prop:j.prop,defaultValue:j.default})});const H={...Z};let z=!1;ae.length>0&&K&&ae.forEach(j=>{H[j]!==void 0&&(delete H[j],z=!0)}),Q.length>0&&Q.forEach(({prop:j,defaultValue:ne})=>{H[j]=ne,z=!0}),z&&f.nextTick(()=>{r("update:modelValue",H)}),h.value=G,o.value=G},{deep:!0,immediate:!0});const v=f.ref(null),C=f.ref({baseItemsHash:"",dynamicItemsHash:""});function N(x,F){return x.length===0?"":x.map(F).join("|")}const S=f.computed(()=>{var z;const x=N(g.value,j=>j.prop||""),F=N(o.value,j=>`${j.prop||""}:${j._parentProp||""}`);if(v.value&&C.value.baseItemsHash===x&&C.value.dynamicItemsHash===F)return v.value;const E=g.value,T=E.length,L=o.value.length,Z=new Array(T+L);for(let j=0;j<T;j++)Z[j]=E[j];let K=T;if(L===0)return v.value=Z,C.value={baseItemsHash:x,dynamicItemsHash:F},Z;const Y=[],G=[];let q=[];const X=new Set,ae=new Map;for(let j=0;j<T;j++){const ne=E[j].prop;ne&&(X.add(ne),ae.set(ne,j))}for(let j=0;j<L;j++){const ne=o.value[j],re=ne._parentProp;re&&X.has(re)?G.push(ne):q.push(ne)}G.length>0&&Y.push(G);let Q=G,H=[];for(;q.length>0&&Q.length>0;){const j=new Map;for(let re=0;re<Q.length;re++){const ue=Q[re].prop;ue&&j.set(ue,!0)}const ne=[];for(let re=0;re<q.length;re++){const ue=q[re];ue._parentProp&&j.has(ue._parentProp)?H.push(ue):ne.push(ue)}if(H.length>0)Y.push(H),Q=H,H=[],q=ne;else break}for(let j=0;j<Y.length;j++){const ne=Y[j],re=new Map;for(let Ee=0;Ee<K;Ee++){const Ue=(z=Z[Ee])==null?void 0:z.prop;Ue&&re.set(Ue,Ee)}const ue=new Map;for(let Ee=0;Ee<ne.length;Ee++){const Ue=ne[Ee],Oe=Ue._parentProp;Oe&&re.has(Oe)&&(ue.has(Oe)||ue.set(Oe,[]),ue.get(Oe).push(Ue))}const pe=[];ue.forEach((Ee,Ue)=>{const Oe=re.get(Ue);let xe=Oe;for(let He=Oe+1;He<K;He++){const ge=Z[He];if(ge._dynamic&&ge._parentProp===Ue)xe=He;else if(!ge._dynamic)break}pe.push({index:xe+1,items:Ee})}),pe.sort((Ee,Ue)=>Ue.index-Ee.index);for(let Ee=0;Ee<pe.length;Ee++){const{index:Ue,items:Oe}=pe[Ee];for(let xe=Oe.length-1;xe>=0;xe--)Z.splice(Ue,0,Oe[xe]),K++}}if(q.length>0)for(let j=0;j<q.length;j++)Z[K++]=q[j];return Z.length>K&&(Z.length=K),v.value=Z,C.value={baseItemsHash:x,dynamicItemsHash:F},Z}),O=f.computed({get:()=>A.modelValue,set:x=>r("update:modelValue",x)}),P=f.computed(()=>S.value.filter(x=>!x.showIf||O.value[x.showIf])),k=x=>{var E,T;if(x.options)return x.options||[];if(x.optionsKey&&((E=A.options)!=null&&E[x.optionsKey])){const L=JSON.parse(JSON.stringify(A.options[x.optionsKey]||[]))||[];return x!=null&&x.multiple||L.unshift({label:"无",value:" "}),L}const F=JSON.parse(JSON.stringify(((T=A.options)==null?void 0:T[x==null?void 0:x.optionsKey])||[]))||[];return x!=null&&x.multiple||F.unshift({label:"无",value:" "}),F},R=x=>x.layout?x.layout:["text","file","textarea"].includes(x.type)?"full":"half",I=x=>{r("rotationChange",x)};return f.provide("config",A.propsConfig),f.provide("propertyModel",O),f.provide("propertyOptions",f.computed(()=>A.options)),(x,F)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(i.value)},[f.createElementVNode("div",y3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(P.value,E=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:E.prop},[R(E)==="full"?(f.openBlock(),f.createElementBlock("div",b3,[f.createVNode(ud,{label:E.label,prop:E.prop,modelValue:O.value[E.prop],"onUpdate:modelValue":T=>O.value[E.prop]=T,type:E.type,options:k(E),min:E.min,max:E.max,step:E.step,accept:E.accept,desc:E.desc,multiple:E.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):R(E)==="half"?(f.openBlock(),f.createElementBlock("div",C3,[f.createVNode(ud,{label:E.label,prop:E.prop,modelValue:O.value[E.prop],"onUpdate:modelValue":T=>O.value[E.prop]=T,type:E.type,options:k(E),min:E.min,max:E.max,step:E.step,accept:E.accept,desc:E.desc,multiple:E.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(f.openBlock(),f.createElementBlock("div",E3,[f.createVNode(ud,{label:E.label,prop:E.prop,modelValue:O.value[E.prop],"onUpdate:modelValue":T=>O.value[E.prop]=T,type:E.type,options:k(E),min:E.min,max:E.max,step:E.step,accept:E.accept,desc:E.desc,multiple:E.multiple,onRotationChange:I},null,8,["label","prop","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-17bc1b74"]]),U3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,options:t.options,"panel-type":"text","onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},F3={},N3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function S3(t,e){return f.openBlock(),f.createElementBlock("svg",N3,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"2603"},null,-1),f.createElementVNode("path",{d:"M798.88 96H257.12C177.088 96 112 161.088 112 241.12v541.76C112 862.928 177.088 928 257.12 928h541.76c80.032 0 145.12-65.088 145.12-145.12V241.12C944 161.088 878.912 96 798.88 96z m87.104 686.88a87.2 87.2 0 0 1-87.104 87.104H257.12a87.2 87.2 0 0 1-87.104-87.104V241.12a87.2 87.2 0 0 1 87.104-87.104h541.76a87.2 87.2 0 0 1 87.104 87.104v541.76z","p-id":"2604"},null,-1),f.createElementVNode("path",{d:"M686.304 710.336H369.696a29.04 29.04 0 0 0-29.216 28.832c0 15.904 13.104 28.832 29.216 28.832h316.608a29.04 29.04 0 0 0 29.2-28.832c0-15.904-13.088-28.832-29.2-28.832zM722.784 256H333.216A29.04 29.04 0 0 0 304 284.832v76.96c0 15.904 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.216-28.832v-48.048h136.384V640.64c0 15.92 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.2-28.832V313.76h136.384v48.048c0 15.904 13.088 28.832 29.216 28.832A29.04 29.04 0 0 0 752 361.792v-76.96c0.08-15.904-13.008-28.832-29.2-28.832z","p-id":"2605"},null,-1)])])}const Q3=ZA(F3,[["render",S3]]);var fd={},Fc={},Br={};Object.defineProperty(Br,"__esModule",{value:!0});function x3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){x3(this,t),this.data=e,this.text=A.text||e,this.options=A};Br.default=T3,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.CODE39=void 0;var R3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),I3=Br,V3=M3(I3);function M3(t){return t&&t.__esModule?t:{default:t}}function L3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function k3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var H3=function(t){k3(e,t);function e(A,r){return L3(this,e),A=A.toUpperCase(),r.mod43&&(A+=W3(_3(A))),O3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return R3(e,[{key:"encode",value:function(){for(var r=hd("*"),n=0;n<this.data.length;n++)r+=hd(this.data[n])+"0";return r+=hd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(V3.default),Dm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],D3=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function hd(t){return P3(Pm(t))}function P3(t){return D3[t].toString(2)}function W3(t){return Dm[t]}function Pm(t){return Dm.indexOf(t)}function _3(t){for(var e=0,A=0;A<t.length;A++)e+=Pm(t[A]);return e=e%43,e}Fc.CODE39=H3;var In={},dd={},ao={},oA={};Object.defineProperty(oA,"__esModule",{value:!0});var Ms;function pd(t,e,A){return e in t?Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[e]=A,t}var Wm=oA.SET_A=0,_m=oA.SET_B=1,Zm=oA.SET_C=2;oA.SHIFT=98;var Z3=oA.START_A=103,j3=oA.START_B=104,J3=oA.START_C=105;oA.MODULO=103,oA.STOP=106,oA.FNC1=207,oA.SET_BY_CODE=(Ms={},pd(Ms,Z3,Wm),pd(Ms,j3,_m),pd(Ms,J3,Zm),Ms),oA.SWAP={101:Wm,100:_m,99:Zm},oA.A_START_CHAR=String.fromCharCode(208),oA.B_START_CHAR=String.fromCharCode(209),oA.C_START_CHAR=String.fromCharCode(210),oA.A_CHARS="[\0-_È-Ï]",oA.B_CHARS="[ -È-Ï]",oA.C_CHARS="(Ï*[0-9]{2}Ï*)",oA.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(ao,"__esModule",{value:!0});var K3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),G3=Br,z3=Y3(G3),kr=oA;function Y3(t){return t&&t.__esModule?t:{default:t}}function X3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function $3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var eS=function(t){$3(e,t);function e(A,r){X3(this,e);var n=q3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.substring(1),r));return n.bytes=A.split("").map(function(a){return a.charCodeAt(0)}),n}return K3(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,n=r.shift()-105,a=kr.SET_BY_CODE[n];if(a===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(kr.FNC1);var i=e.next(r,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+i.result+e.getBar((i.checksum+n)%kr.MODULO)+e.getBar(kr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return kr.BARS[r]?kr.BARS[r].toString():""}},{key:"correctIndex",value:function(r,n){if(n===kr.SET_A){var a=r.shift();return a<32?a+64:a-32}else return n===kr.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,n,a){if(!r.length)return{result:"",checksum:0};var i=void 0,o=void 0;if(r[0]>=200){o=r.shift()-105;var s=kr.SWAP[o];s!==void 0?i=e.next(r,n+1,s):((a===kr.SET_A||a===kr.SET_B)&&o===kr.SHIFT&&(r[0]=a===kr.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),i=e.next(r,n+1,a))}else o=e.correctIndex(r,a),i=e.next(r,n+1,a);var l=e.getBar(o),u=o*n;return{result:l+i.result,checksum:u+i.checksum}}}]),e}(z3.default);ao.default=eS;var gd={};Object.defineProperty(gd,"__esModule",{value:!0});var ma=oA,jm=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},Km=function(e){return e.match(new RegExp("^"+ma.C_CHARS+"*"))[0]};function md(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)+Gm(t.substring(r[1].length));var n=t.match(new RegExp("^"+A+"+"))[0];return n.length===t.length?t:n+String.fromCharCode(e?205:206)+md(t.substring(n.length),!e)}function Gm(t){var e=Km(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=jm(t)>=Jm(t);return e+String.fromCharCode(r?206:205)+md(t,r)}gd.default=function(t){var e=void 0,A=Km(t).length;if(A>=2)e=ma.C_START_CHAR+Gm(t);else{var r=jm(t)>Jm(t);e=(r?ma.A_START_CHAR:ma.B_START_CHAR)+md(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,a){return String.fromCharCode(203)+a})},Object.defineProperty(dd,"__esModule",{value:!0});var tS=ao,AS=zm(tS),rS=gd,nS=zm(rS);function zm(t){return t&&t.__esModule?t:{default:t}}function aS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function iS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var oS=function(t){iS(e,t);function e(A,r){if(aS(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=vd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,nS.default)(A),r));else var n=vd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return vd(n)}return e}(AS.default);dd.default=oS;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var sS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),lS=ao,cS=uS(lS),Ym=oA;function uS(t){return t&&t.__esModule?t:{default:t}}function fS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var pS=function(t){dS(e,t);function e(A,r){return fS(this,e),hS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.A_START_CHAR+A,r))}return sS(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.A_CHARS+"+$").test(this.data)}}]),e}(cS.default);Bd.default=pS;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var gS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),mS=ao,vS=BS(mS),Xm=oA;function BS(t){return t&&t.__esModule?t:{default:t}}function wS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function bS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var CS=function(t){bS(e,t);function e(A,r){return wS(this,e),yS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.B_START_CHAR+A,r))}return gS(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.B_CHARS+"+$").test(this.data)}}]),e}(vS.default);wd.default=CS;var yd={};Object.defineProperty(yd,"__esModule",{value:!0});var ES=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),US=ao,FS=NS(US),qm=oA;function NS(t){return t&&t.__esModule?t:{default:t}}function SS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function xS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var TS=function(t){xS(e,t);function e(A,r){return SS(this,e),QS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,qm.C_START_CHAR+A,r))}return ES(e,[{key:"valid",value:function(){return new RegExp("^"+qm.C_CHARS+"+$").test(this.data)}}]),e}(FS.default);yd.default=TS,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var RS=dd,IS=Nc(RS),VS=Bd,MS=Nc(VS),LS=wd,OS=Nc(LS),kS=yd,HS=Nc(kS);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=IS.default,In.CODE128A=MS.default,In.CODE128B=OS.default,In.CODE128C=HS.default;var Sr={},bd={},zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.SIDE_BIN="101",zr.MIDDLE_BIN="01010",zr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},zr.EAN2_STRUCTURE=["LL","LG","GL","GG"],zr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],zr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Sc={},li={};Object.defineProperty(li,"__esModule",{value:!0});var DS=zr,PS=function(e,A,r){var n=e.split("").map(function(i,o){return DS.BINARIES[A[o]]}).map(function(i,o){return i?i[e[o]]:""});if(r){var a=e.length-1;n=n.map(function(i,o){return o<a?i+r:i})}return n.join("")};li.default=PS,Object.defineProperty(Sc,"__esModule",{value:!0});var WS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),io=zr,_S=li,$m=ev(_S),ZS=Br,jS=ev(ZS);function ev(t){return t&&t.__esModule?t:{default:t}}function JS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function GS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zS=function(t){GS(e,t);function e(A,r){JS(this,e);var n=KS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WS(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,n){return this.text.substr(r,n)}},{key:"leftEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,$m.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:io.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:io.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:io.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[io.SIDE_BIN,this.leftEncode(),io.MIDDLE_BIN,this.rightEncode(),io.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(jS.default);Sc.default=zS,Object.defineProperty(bd,"__esModule",{value:!0});var YS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Ls=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},XS=zr,qS=Sc,$S=eQ(qS);function eQ(t){return t&&t.__esModule?t:{default:t}}function tQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var tv=function(e){var A=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*3:r+n},0);return(10-A%10)%10},nQ=function(t){rQ(e,t);function e(A,r){tQ(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=tv(A));var n=AQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return YS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===tv(this.data)}},{key:"leftText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),n=XS.EAN13_STRUCTURE[this.data[0]];return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,n)}},{key:"rightText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}($S.default);bd.default=nQ;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var aQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Qc=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},iQ=Sc,oQ=sQ(iQ);function sQ(t){return t&&t.__esModule?t:{default:t}}function lQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Av=function(e){var A=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n:r+n*3},0);return(10-A%10)%10},fQ=function(t){uQ(e,t);function e(A,r){return lQ(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=Av(A)),cQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return aQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Av(this.data)}},{key:"leftText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Qc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(oQ.default);Cd.default=fQ;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var hQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),dQ=zr,pQ=li,gQ=rv(pQ),mQ=Br,vQ=rv(mQ);function rv(t){return t&&t.__esModule?t:{default:t}}function BQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bQ=function(e){var A=e.split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*9:r+n*3},0);return A%10},CQ=function(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return hQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=dQ.EAN5_STRUCTURE[bQ(this.data)];return{data:"1011"+(0,gQ.default)(this.data,r,"01"),text:this.text}}}]),e}(vQ.default);Ed.default=CQ;var Ud={};Object.defineProperty(Ud,"__esModule",{value:!0});var EQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),UQ=zr,FQ=li,NQ=nv(FQ),SQ=Br,QQ=nv(SQ);function nv(t){return t&&t.__esModule?t:{default:t}}function xQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function RQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var IQ=function(t){RQ(e,t);function e(A,r){return xQ(this,e),TQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return EQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=UQ.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,NQ.default)(this.data,r,"01"),text:this.text}}}]),e}(QQ.default);Ud.default=IQ;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var VQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();Os.checksum=Fd;var MQ=li,oo=av(MQ),LQ=Br,OQ=av(LQ);function av(t){return t&&t.__esModule?t:{default:t}}function kQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function DQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var PQ=function(t){DQ(e,t);function e(A,r){kQ(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Fd(A));var n=HQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return VQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Fd(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,oo.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,oo.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,oo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,oo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,oo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(OQ.default);function Fd(t){var e=0,A;for(A=1;A<11;A+=2)e+=parseInt(t[A]);for(A=0;A<11;A+=2)e+=parseInt(t[A])*3;return(10-e%10)%10}Os.default=PQ;var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});var WQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),_Q=li,ZQ=iv(_Q),jQ=Br,JQ=iv(jQ),KQ=Os;function iv(t){return t&&t.__esModule?t:{default:t}}function GQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var YQ=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],XQ=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],qQ=function(t){zQ(e,t);function e(A,r){GQ(this,e);var n=Sd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));if(n.isValid=!1,A.search(/^[0-9]{6}$/)!==-1)n.middleDigits=A,n.upcA=ov(A,"0"),n.text=r.text||""+n.upcA[0]+A+n.upcA[n.upcA.length-1],n.isValid=!0;else if(A.search(/^[01][0-9]{7}$/)!==-1)if(n.middleDigits=A.substring(1,A.length-1),n.upcA=ov(n.middleDigits,A[0]),n.upcA[n.upcA.length-1]===A[A.length-1])n.isValid=!0;else return Sd(n);else return Sd(n);return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return WQ(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],n=this.upcA[this.upcA.length-1],a=XQ[parseInt(n)][parseInt(r)];return(0,ZQ.default)(this.middleDigits,a)}}]),e}(JQ.default);function ov(t,e){for(var A=parseInt(t[t.length-1]),r=YQ[A],n="",a=0,i=0;i<r.length;i++){var o=r[i];o==="X"?n+=t[a++]:n+=o}return n=""+e+n,""+n+(0,KQ.checksum)(n)}Nd.default=qQ,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.UPCE=Sr.UPC=Sr.EAN2=Sr.EAN5=Sr.EAN8=Sr.EAN13=void 0;var $Q=bd,ex=so($Q),tx=Cd,Ax=so(tx),rx=Ed,nx=so(rx),ax=Ud,ix=so(ax),ox=Os,sx=so(ox),lx=Nd,cx=so(lx);function so(t){return t&&t.__esModule?t:{default:t}}Sr.EAN13=ex.default,Sr.EAN8=Ax.default,Sr.EAN5=nx.default,Sr.EAN2=ix.default,Sr.UPC=sx.default,Sr.UPCE=cx.default;var lo={},xc={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.START_BIN="1010",ks.END_BIN="11101",ks.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(xc,"__esModule",{value:!0});var ux=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Tc=ks,fx=Br,hx=dx(fx);function dx(t){return t&&t.__esModule?t:{default:t}}function px(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vx=function(t){mx(e,t);function e(){return px(this,e),gx(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return ux(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,n=this.data.match(/.{2}/g).map(function(a){return r.encodePair(a)}).join("");return{data:Tc.START_BIN+n+Tc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=Tc.BINARIES[r[1]];return Tc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(hx.default);xc.default=vx;var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});var Bx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),wx=xc,yx=bx(wx);function bx(t){return t&&t.__esModule?t:{default:t}}function Cx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ex(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ux(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sv=function(e){var A=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,n,a){return r+n*(3-a%2*2)},0);return Math.ceil(A/10)*10-A},Fx=function(t){Ux(e,t);function e(A,r){return Cx(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=sv(A)),Ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Bx(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===sv(this.data)}}]),e}(yx.default);Qd.default=Fx,Object.defineProperty(lo,"__esModule",{value:!0}),lo.ITF14=lo.ITF=void 0;var Nx=xc,Sx=lv(Nx),Qx=Qd,xx=lv(Qx);function lv(t){return t&&t.__esModule?t:{default:t}}lo.ITF=Sx.default,lo.ITF14=xx.default;var Yr={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});var Tx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Rx=Br,Ix=Vx(Rx);function Vx(t){return t&&t.__esModule?t:{default:t}}function Mx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ox(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kx=function(t){Ox(e,t);function e(A,r){return Mx(this,e),Lx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Tx(e,[{key:"encode",value:function(){for(var r="110",n=0;n<this.data.length;n++){var a=parseInt(this.data[n]),i=a.toString(2);i=Hx(i,4-i.length);for(var o=0;o<i.length;o++)r+=i[o]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(Ix.default);function Hx(t,e){for(var A=0;A<e;A++)t="0"+t;return t}ci.default=kx;var xd={},ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.mod10=Dx,ui.mod11=Px;function Dx(t){for(var e=0,A=0;A<t.length;A++){var r=parseInt(t[A]);(A+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function Px(t){for(var e=0,A=[2,3,4,5,6,7],r=0;r<t.length;r++){var n=parseInt(t[t.length-1-r]);e+=A[r%A.length]*n}return(11-e%11)%11}Object.defineProperty(xd,"__esModule",{value:!0});var Wx=ci,_x=jx(Wx),Zx=ui;function jx(t){return t&&t.__esModule?t:{default:t}}function Jx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zx=function(t){Gx(e,t);function e(A,r){return Jx(this,e),Kx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,Zx.mod10)(A),r))}return e}(_x.default);xd.default=zx;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var Yx=ci,Xx=$x(Yx),qx=ui;function $x(t){return t&&t.__esModule?t:{default:t}}function eT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function AT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var rT=function(t){AT(e,t);function e(A,r){return eT(this,e),tT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,qx.mod11)(A),r))}return e}(Xx.default);Td.default=rT;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var nT=ci,aT=iT(nT),cv=ui;function iT(t){return t&&t.__esModule?t:{default:t}}function oT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function lT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cT=function(t){lT(e,t);function e(A,r){return oT(this,e),A+=(0,cv.mod10)(A),A+=(0,cv.mod10)(A),sT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(aT.default);Rd.default=cT;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var uT=ci,fT=hT(uT),uv=ui;function hT(t){return t&&t.__esModule?t:{default:t}}function dT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mT=function(t){gT(e,t);function e(A,r){return dT(this,e),A+=(0,uv.mod11)(A),A+=(0,uv.mod10)(A),pT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(fT.default);Id.default=mT,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var vT=ci,BT=Hs(vT),wT=xd,yT=Hs(wT),bT=Td,CT=Hs(bT),ET=Rd,UT=Hs(ET),FT=Id,NT=Hs(FT);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=BT.default,Yr.MSI10=yT.default,Yr.MSI11=CT.default,Yr.MSI1010=UT.default,Yr.MSI1110=NT.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var ST=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),QT=Br,xT=TT(QT);function TT(t){return t&&t.__esModule?t:{default:t}}function RT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function VT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var MT=function(t){VT(e,t);function e(A,r){RT(this,e);var n=IT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return ST(e,[{key:"encode",value:function(){for(var r=this.number,n="";!isNaN(r)&&r!=0;)r%2===0?(n="11100"+n,r=(r-2)/2):(n="100"+n,r=(r-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(xT.default);Rc.pharmacode=MT;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var LT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),OT=Br,kT=HT(OT);function HT(t){return t&&t.__esModule?t:{default:t}}function DT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function WT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _T=function(t){WT(e,t);function e(A,r){DT(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=PT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return LT(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],n=this.getEncodings(),a=0;a<this.data.length;a++)r.push(n[this.data.charAt(a)]),a!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(kT.default);Ic.codabar=_T;var co={},Vc={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Ds.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Ds.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]},Object.defineProperty(Vc,"__esModule",{value:!0});var ZT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Mc=Ds,jT=Br,JT=KT(jT);function KT(t){return t&&t.__esModule?t:{default:t}}function GT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function YT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var XT=function(t){YT(e,t);function e(A,r){return GT(this,e),zT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return ZT(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.data.split("").flatMap(function(o){return Mc.MULTI_SYMBOLS[o]||o}),n=r.map(function(o){return e.getEncoding(o)}).join(""),a=e.checksum(r,20),i=e.checksum(r.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(i)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(r){return Mc.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Mc.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Mc.SYMBOLS.indexOf(r)}},{key:"checksum",value:function(r,n){var a=r.slice().reverse().reduce(function(i,o,s){var l=s%n+1;return i+e.symbolValue(o)*l},0);return e.getSymbol(a%47)}}]),e}(JT.default);Vc.default=XT;var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});var qT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),$T=Vc,eR=tR($T);function tR(t){return t&&t.__esModule?t:{default:t}}function AR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function nR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aR=function(t){nR(e,t);function e(A,r){return AR(this,e),rR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return qT(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(eR.default);Vd.default=aR,Object.defineProperty(co,"__esModule",{value:!0}),co.CODE93FullASCII=co.CODE93=void 0;var iR=Vc,oR=fv(iR),sR=Vd,lR=fv(sR);function fv(t){return t&&t.__esModule?t:{default:t}}co.CODE93=oR.default,co.CODE93FullASCII=lR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var cR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),uR=Br,fR=hR(uR);function hR(t){return t&&t.__esModule?t:{default:t}}function dR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mR=function(t){gR(e,t);function e(A,r){return dR(this,e),pR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return cR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(fR.default);Lc.GenericBarcode=mR,Object.defineProperty(fd,"__esModule",{value:!0});var vR=Fc,Oc=In,uo=Sr,hv=lo,Ps=Yr,BR=Rc,wR=Ic,dv=co,yR=Lc;fd.default={CODE39:vR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:uo.EAN13,EAN8:uo.EAN8,EAN5:uo.EAN5,EAN2:uo.EAN2,UPC:uo.UPC,UPCE:uo.UPCE,ITF14:hv.ITF14,ITF:hv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:BR.pharmacode,codabar:wR.codabar,CODE93:dv.CODE93,CODE93FullASCII:dv.CODE93FullASCII,GenericBarcode:yR.GenericBarcode};var fo={};Object.defineProperty(fo,"__esModule",{value:!0});var bR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t};fo.default=function(t,e){return bR({},t,e)};var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=CR;function CR(t){var e=[];function A(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)A(r[n]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return A(t),e}var Ld={};Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=ER;function ER(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Od={},kd={},kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=UR;function UR(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var A in e)e.hasOwnProperty(A)&&(A=e[A],typeof t[A]=="string"&&(t[A]=parseInt(t[A],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var FR={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Hc.default=FR,Object.defineProperty(kd,"__esModule",{value:!0});var NR=kc,SR=gv(NR),QR=Hc,pv=gv(QR);function gv(t){return t&&t.__esModule?t:{default:t}}function xR(t){var e={};for(var A in pv.default)pv.default.hasOwnProperty(A)&&(t.hasAttribute("jsbarcode-"+A.toLowerCase())&&(e[A]=t.getAttribute("jsbarcode-"+A.toLowerCase())),t.hasAttribute("data-"+A.toLowerCase())&&(e[A]=t.getAttribute("data-"+A.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,SR.default)(e),e}kd.default=xR;var Hd={},Dd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=fo,RR=IR(TR);function IR(t){return t&&t.__esModule?t:{default:t}}function mv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function vv(t,e,A){if(A.displayValue&&e<t){if(A.textAlign=="center")return Math.floor((t-e)/2);if(A.textAlign=="left")return 0;if(A.textAlign=="right")return Math.floor(t-e)}return 0}function VR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,RR.default)(e,n.options),i;a.displayValue?i=OR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=mv(n,a),n.barcodePadding=vv(i,o,a)}}function MR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function LR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function OR(t,e,A){var r;if(A)r=A;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var n=r.measureText(t);if(!n)return 0;var a=n.width;return a}Hr.getMaximumHeightOfEncodings=LR,Hr.getEncodingHeight=mv,Hr.getBarcodePadding=vv,Hr.calculateEncodingAttributes=VR,Hr.getTotalWidthOfEncodings=MR,Object.defineProperty(Dd,"__esModule",{value:!0});var kR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),HR=fo,DR=PR(HR),Pd=Hr;function PR(t){return t&&t.__esModule?t:{default:t}}function WR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _R=function(){function t(e,A,r){WR(this,t),this.canvas=e,this.encodings=A,this.options=r}return kR(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var A=0;A<this.encodings.length;A++){var r=(0,DR.default)(this.options,this.encodings[A].options);this.drawCanvasBarcode(r,this.encodings[A]),this.drawCanvasText(r,this.encodings[A]),this.moveCanvasDrawing(this.encodings[A])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var A=this.canvas.getContext("2d");A.save(),(0,Pd.calculateEncodingAttributes)(this.encodings,this.options,A);var r=(0,Pd.getTotalWidthOfEncodings)(this.encodings),n=(0,Pd.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}();Dd.default=_R;var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0});var ZR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),jR=fo,JR=KR(jR),_d=Hr;function KR(t){return t&&t.__esModule?t:{default:t}}function GR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",zR=function(){function t(e,A,r){GR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return ZR(t,[{key:"render",value:function(){var A=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var n=this.encodings[r],a=(0,JR.default)(this.options,n.options),i=this.createGroup(A,a.marginTop,this.svg);this.setGroupOptions(i,a),this.drawSvgBarcode(i,a,n),this.drawSVGText(i,a,n),A+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,_d.calculateEncodingAttributes)(this.encodings,this.options);var A=(0,_d.getTotalWidthOfEncodings)(this.encodings),r=(0,_d.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}();Wd.default=zR;var Zd={};Object.defineProperty(Zd,"__esModule",{value:!0});var YR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function XR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var qR=function(){function t(e,A,r){XR(this,t),this.object=e,this.encodings=A,this.options=r}return YR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();Zd.default=qR,Object.defineProperty(Hd,"__esModule",{value:!0});var $R=Dd,eI=jd($R),tI=Wd,AI=jd(tI),rI=Zd,nI=jd(rI);function jd(t){return t&&t.__esModule?t:{default:t}}Hd.default={CanvasRenderer:eI.default,SVGRenderer:AI.default,ObjectRenderer:nI.default};var ho={};Object.defineProperty(ho,"__esModule",{value:!0});function Jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kd(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 Gd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var aI=function(t){Gd(e,t);function e(A,r){Jd(this,e);var n=Kd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidInputException",n.symbology=A,n.input=r,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}return e}(Error),iI=function(t){Gd(e,t);function e(){Jd(this,e);var A=Kd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="InvalidElementException",A.message="Not supported type to render on",A}return e}(Error),oI=function(t){Gd(e,t);function e(){Jd(this,e);var A=Kd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="NoElementException",A.message="No element to render on.",A}return e}(Error);ho.InvalidInputException=aI,ho.InvalidElementException=iI,ho.NoElementException=oI,Object.defineProperty(Od,"__esModule",{value:!0});var sI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lI=kd,zd=Bv(lI),cI=Hd,Ws=Bv(cI),uI=ho;function Bv(t){return t&&t.__esModule?t:{default:t}}function Yd(t){if(typeof t=="string")return fI(t);if(Array.isArray(t)){for(var e=[],A=0;A<t.length;A++)e.push(Yd(t[A]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return hI(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,zd.default)(t),renderer:Ws.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,zd.default)(t),renderer:Ws.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Ws.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":sI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new uI.InvalidElementException}}function fI(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var A=[],r=0;r<e.length;r++)A.push(Yd(e[r]));return A}}function hI(t){var e=document.createElement("canvas");return{element:e,options:(0,zd.default)(t),renderer:Ws.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Od.default=Yd;var Xd={};Object.defineProperty(Xd,"__esModule",{value:!0});var dI=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function pI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var gI=function(){function t(e){pI(this,t),this.api=e}return dI(t,[{key:"handleCatch",value:function(A){if(A.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw A.message;else throw A;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(A){try{var r=A.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(n){return this.handleCatch(n),this.api}}}]),t}();Xd.default=gI;var mI=fd,fi=va(mI),vI=fo,_s=va(vI),BI=Md,wv=va(BI),wI=Ld,yv=va(wI),yI=Od,bI=va(yI),CI=kc,EI=va(CI),UI=Xd,FI=va(UI),bv=ho,NI=Hc,Cv=va(NI);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,bI.default)(e),n._encodings=[],n._options=Cv.default,n._errorHandler=new FI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Fv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return fi.default[t]};for(var Ev in fi.default)fi.default.hasOwnProperty(Ev)&&SI(fi.default,Ev);function SI(t,e){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,EI.default)(a);var i=t[e],o=Uv(A,i,a);return n._encodings.push(o),n})}}function Uv(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new bv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,wv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Fv(){return fi.default.CODE128?"CODE128":Object.keys(fi.default)[0]}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=Fv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=fi.default[A.format.toUpperCase()],a=Uv(r,n,A);qd(t,a,A)})}}},Gn.prototype.render=function(){if(!this._renderProperties)throw new bv.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)qd(this._renderProperties[t],this._encodings,this._options);else qd(this._renderProperties,this._encodings,this._options);return this},Gn.prototype._defaults=Cv.default;function qd(t,e,A){e=(0,wv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,yv.default)(e[r].options);(0,yv.default)(A);var n=t.renderer,a=new n(t.element,e,A);a.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=Pc),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var A=[];return jQuery(this).each(function(){A.push(this)}),Pc(A,t,e)});var QI=Pc;const $d=cd(QI),Pq="",xI={__name:"BarcodeComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Qs(A,r),i=f.ref(null);f.computed(()=>A.modelValue.__selected||!1);const o=f.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,h)=>{let y;return function(...b){const v=()=>{clearTimeout(y),g(...b)};clearTimeout(y),y=setTimeout(v,h)}},l=f.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var N,S,O,P,k,R,I,x,F,E,T,L,Z,K,Y,G;if(!i.value)return;const g=gi((S=(N=A.propsConfig)==null?void 0:N.barcode)==null?void 0:S.propertyPanel)||{};let h=((O=A.modelValue)==null?void 0:O.BarcodeValue)||g.BarcodeValue||"";if(!h&&((P=A.modelValue)!=null&&P.FieldName))if(Array.isArray(A.modelValue.FieldName)){const q=A.modelValue.FieldName.map(X=>{var ae,Q,H,z;return((z=(H=(Q=(ae=A.modelValue)==null?void 0:ae.options)==null?void 0:Q.fields)==null?void 0:H.find(j=>j.value==X))==null?void 0:z.label)||X}).filter(X=>X);if(q.length>0){const X=A.modelValue.FieldConnector||" ";h=q.join(X)}}else h=((x=(I=(R=(k=A.modelValue)==null?void 0:k.options)==null?void 0:R.fields)==null?void 0:I.find(q=>{var X;return q.value==((X=A.modelValue)==null?void 0:X.FieldName)}))==null?void 0:x.label)||((F=A.modelValue)==null?void 0:F.FieldName)||"";const y=((E=A.modelValue)==null?void 0:E.CodeType)||g.CodeType||"",w=A.modelValue.LineColor||g.LineColor,b=((G=(Y=(K=(Z=(L=(T=A.propsConfig)==null?void 0:T.barcode)==null?void 0:L.propertyPanel)==null?void 0:Z.find(q=>q.prop==="CodeType"))==null?void 0:K.options)==null?void 0:Y.find(q=>q.value===y))==null?void 0:G.compValue)||"",v={value:h,type:y,lineColor:w,codeType:b};if(JSON.stringify(v)!==JSON.stringify(l.value)){l.value=v;try{const q=i.value;q.innerHTML="",$d(q,h,{format:b,width:2,displayValue:!1,margin:0,lineColor:w,height:50,background:"transparent"}),f.nextTick(()=>{if(q){const X=q.getBBox();if(X.width>0&&X.height>0){const ae=`${X.x} ${X.y} ${X.width} ${X.height}`;q.setAttribute("viewBox",ae),q.style.width="100%",q.style.height="100%",q.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return f.onMounted(()=>{u(),a(),n()}),f.watch(()=>A.modelValue,()=>d(),{deep:!0}),f.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,h)=>(f.openBlock(),f.createElementBlock("div",{class:"barcode-component",style:f.normalizeStyle(o.value)},[(f.openBlock(),f.createElementBlock("svg",{ref_key:"barcodeRef",ref:i,width:"100%",height:"100%",preserveAspectRatio:"none",style:{width:"100%",height:"100%"}},null,512))],4))}},TI={__name:"BarcodePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(f.openBlock(),f.createBlock(no,{"model-value":t.modelValue,"props-config":t.propsConfig,"panel-type":"barcode",options:t.options,"onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},RI={},II={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function VI(t,e){return f.openBlock(),f.createElementBlock("svg",II,[...e[0]||(e[0]=[f.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"1785"},null,-1),f.createElementVNode("path",{d:"M388.592 912H195.92C150.24 912 112 871.696 112 823.44V642.848c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 17.92 13.408 32.336 30.288 32.336h192.16c15.408 0 26.832 11.952 26.832 28.368 0 15.424-11.424 27.856-26.32 27.856z m439.456 0h-192.16c-15.408 0-26.816-11.936-26.816-28.352 0-15.92 11.408-28.368 26.8-28.368h192.176c16.88 0 30.288-13.92 30.288-32.32V642.336c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 48.752-38.24 89.056-83.92 89.056zM138.816 409.504c-15.392 0-26.816-11.936-26.816-28.352V201.056C112 152.8 150.24 112.48 195.92 112.48h192.16c15.408 0 26.832 11.936 26.832 28.352 0 15.92-11.424 28.368-26.816 28.368H195.92c-16.88 0-30.288 15.92-30.288 34.32V384.16c0 13.44-11.424 25.36-26.816 25.36zM885.184 409.52c-15.392 0-26.816-11.952-26.816-28.368V201.056c0-17.92-13.408-32.336-30.288-32.336h-192.16c-15.408 0-26.832-11.936-26.832-28.368 0-15.92 11.424-28.352 26.816-28.352h192.176C873.76 112 912 152.304 912 200.56v180.592c0 16.416-13.408 28.368-26.816 28.368zM755.2 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM672 698c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6v372zM608 326v372c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6zM560 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM512 698c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6v372zM336 698c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6v372zM256 326v372c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6zM400 698c0 3.6 2.56 6 6.4 6h64c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-64c-3.84 0-6.4 2.4-6.4 6v372z","p-id":"1786"},null,-1)])])}const MI=ZA(RI,[["render",VI]]),Ba=t=>t*3.7795275591,hi=t=>t/3.7795275591;function e0(t){if(!t||t<=0)return 1;const e=hi(t);return(window.$templateType||"lodop")==="rfid"?e*1.5:e}var wa={},LI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Nv={},Dr={};let t0;const OI=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Dr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},Dr.getSymbolTotalCodewords=function(e){return OI[e]},Dr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},Dr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');t0=e},Dr.isKanjiModeEnabled=function(){return typeof t0<"u"},Dr.toSJIS=function(e){return t0(e)};var Wc={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(A){if(typeof A!="string")throw new Error("Param is not a string");switch(A.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+A)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,n){if(t.isValid(r))return r;try{return e(r)}catch{return n}}})(Wc);function Sv(){this.buffer=[],this.length=0}Sv.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let A=0;A<e;A++)this.putBit((t>>>e-A-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var kI=Sv;function Zs(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Zs.prototype.set=function(t,e,A,r){const n=t*this.size+e;this.data[n]=A,r&&(this.reservedBit[n]=!0)},Zs.prototype.get=function(t,e){return this.data[t*this.size+e]},Zs.prototype.xor=function(t,e,A){this.data[t*this.size+e]^=A},Zs.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var HI=Zs,Qv={};(function(t){const e=Dr.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const n=Math.floor(r/7)+2,a=e(r),i=a===145?26:Math.ceil((a-13)/(2*n-2))*2,o=[a-7];for(let s=1;s<n-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()},t.getPositions=function(r){const n=[],a=t.getRowColCoords(r),i=a.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||n.push([a[o],a[s]]);return n}})(Qv);var xv={};const DI=Dr.getSymbolSize,Tv=7;xv.getPositions=function(e){const A=DI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var Rv={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){const a=n.size;let i=0,o=0,s=0,l=null,u=null;for(let d=0;d<a;d++){o=s=0,l=u=null;for(let g=0;g<a;g++){let h=n.get(d,g);h===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=h,o=1),h=n.get(g,d),h===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=h,s=1)}o>=5&&(i+=e.N1+(o-5)),s>=5&&(i+=e.N1+(s-5))}return i},t.getPenaltyN2=function(n){const a=n.size;let i=0;for(let o=0;o<a-1;o++)for(let s=0;s<a-1;s++){const l=n.get(o,s)+n.get(o,s+1)+n.get(o+1,s)+n.get(o+1,s+1);(l===4||l===0)&&i++}return i*e.N2},t.getPenaltyN3=function(n){const a=n.size;let i=0,o=0,s=0;for(let l=0;l<a;l++){o=s=0;for(let u=0;u<a;u++)o=o<<1&2047|n.get(l,u),u>=10&&(o===1488||o===93)&&i++,s=s<<1&2047|n.get(u,l),u>=10&&(s===1488||s===93)&&i++}return i*e.N3},t.getPenaltyN4=function(n){let a=0;const i=n.data.length;for(let s=0;s<i;s++)a+=n.data[s];return Math.abs(Math.ceil(a*100/i/5)-10)*e.N4};function A(r,n,a){switch(r){case t.Patterns.PATTERN000:return(n+a)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return a%3===0;case t.Patterns.PATTERN011:return(n+a)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case t.Patterns.PATTERN101:return n*a%2+n*a%3===0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2===0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(n,a){const i=a.size;for(let o=0;o<i;o++)for(let s=0;s<i;s++)a.isReserved(s,o)||a.xor(s,o,A(n,s,o))},t.getBestMask=function(n,a){const i=Object.keys(t.Patterns).length;let o=0,s=1/0;for(let l=0;l<i;l++){a(l),t.applyMask(l,n);const u=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(l,n),u<s&&(s=u,o=l)}return o}})(Rv);var _c={};const 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 Iv={},Jc={};const js=new Uint8Array(512),Kc=new Uint8Array(256);(function(){let e=1;for(let A=0;A<255;A++)js[A]=e,Kc[e]=A,e<<=1,e&256&&(e^=285);for(let A=255;A<512;A++)js[A]=js[A-255]})(),Jc.log=function(e){if(e<1)throw new Error("log("+e+")");return Kc[e]},Jc.exp=function(e){return js[e]},Jc.mul=function(e,A){return e===0||A===0?0:js[Kc[e]+Kc[A]]},function(t){const e=Jc;t.mul=function(r,n){const a=new Uint8Array(r.length+n.length-1);for(let i=0;i<r.length;i++)for(let o=0;o<n.length;o++)a[i+o]^=e.mul(r[i],n[o]);return a},t.mod=function(r,n){let a=new Uint8Array(r);for(;a.length-n.length>=0;){const i=a[0];for(let s=0;s<n.length;s++)a[s]^=e.mul(n[s],i);let o=0;for(;o<a.length&&a[o]===0;)o++;a=a.slice(o)}return a},t.generateECPolynomial=function(r){let n=new Uint8Array([1]);for(let a=0;a<r;a++)n=t.mul(n,new Uint8Array([1,e.exp(a)]));return n}}(Iv);const Vv=Iv;function A0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}A0.prototype.initialize=function(e){this.degree=e,this.genPoly=Vv.generateECPolynomial(this.degree)},A0.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const A=new Uint8Array(e.length+this.degree);A.set(e);const r=Vv.mod(A,this.genPoly),n=this.degree-r.length;if(n>0){const a=new Uint8Array(this.degree);return a.set(r,n),a}return r};var PI=A0,Mv={},ba={},r0={};r0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Lv="[0-9]+",WI="[A-Z $%*+\\-./:]+";let Js="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Js=Js.replace(/u/g,"\\u");const _I="(?:(?![A-Z0-9 $%*+\\-./:]|"+Js+`)(?:.|[\r
6
6
  ]))+`;Vn.KANJI=new RegExp(Js,"g"),Vn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Vn.BYTE=new RegExp(_I,"g"),Vn.NUMERIC=new RegExp(Lv,"g"),Vn.ALPHANUMERIC=new RegExp(WI,"g");const ZI=new RegExp("^"+Js+"$"),jI=new RegExp("^"+Lv+"$"),JI=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Vn.testKanji=function(e){return ZI.test(e)},Vn.testNumeric=function(e){return jI.test(e)},Vn.testAlphanumeric=function(e){return JI.test(e)},function(t){const e=r0,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=r0,i=7973,o=e.getBCHDigit(i);function s(g,h,y){for(let w=1;w<=40;w++)if(h<=t.getCapacity(w,y,g))return w}function l(g,h){return n.getCharCountIndicator(g,h)+4}function u(g,h){let y=0;return g.forEach(function(w){const b=l(w.mode,h);y+=b+w.getBitsLength()}),y}function d(g,h){for(let y=1;y<=40;y++)if(u(g,y)<=t.getCapacity(y,h,n.MIXED))return y}t.from=function(h,y){return a.isValid(h)?parseInt(h,10):y},t.getCapacity=function(h,y,w){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=n.BYTE);const b=e.getSymbolTotalCodewords(h),v=A.getTotalCodewordsCount(h,y),C=(b-v)*8;if(w===n.MIXED)return C;const N=C-l(w,h);switch(w){case n.NUMERIC:return Math.floor(N/10*3);case n.ALPHANUMERIC:return Math.floor(N/11*2);case n.KANJI:return Math.floor(N/13);case n.BYTE:default:return Math.floor(N/8)}},t.getBestVersionForData=function(h,y){let w;const b=r.from(y,r.M);if(Array.isArray(h)){if(h.length>1)return d(h,b);if(h.length===0)return 1;w=h[0]}else w=h;return s(w.mode,w.getLength(),b)},t.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");let y=h<<12;for(;e.getBCHDigit(y)-o>=0;)y^=i<<e.getBCHDigit(y)-o;return h<<12|y}}(Mv);var Ov={};const n0=Dr,kv=1335,KI=21522,Hv=n0.getBCHDigit(kv);Ov.getEncodedBits=function(e,A){const r=e.bit<<3|A;let n=r<<10;for(;n0.getBCHDigit(n)-Hv>=0;)n^=kv<<n0.getBCHDigit(n)-Hv;return(r<<10|n)^KI};var Dv={};const GI=ba;function po(t){this.mode=GI.NUMERIC,this.data=t.toString()}po.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},po.prototype.getLength=function(){return this.data.length},po.prototype.getBitsLength=function(){return po.getBitsLength(this.data.length)},po.prototype.write=function(e){let A,r,n;for(A=0;A+3<=this.data.length;A+=3)r=this.data.substr(A,3),n=parseInt(r,10),e.put(n,10);const a=this.data.length-A;a>0&&(r=this.data.substr(A),n=parseInt(r,10),e.put(n,a*3+1))};var zI=po;const YI=ba,a0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function go(t){this.mode=YI.ALPHANUMERIC,this.data=t}go.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},go.prototype.getLength=function(){return this.data.length},go.prototype.getBitsLength=function(){return go.getBitsLength(this.data.length)},go.prototype.write=function(e){let A;for(A=0;A+2<=this.data.length;A+=2){let r=a0.indexOf(this.data[A])*45;r+=a0.indexOf(this.data[A+1]),e.put(r,11)}this.data.length%2&&e.put(a0.indexOf(this.data[A]),6)};var XI=go;const qI=ba;function mo(t){this.mode=qI.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}mo.getBitsLength=function(e){return e*8},mo.prototype.getLength=function(){return this.data.length},mo.prototype.getBitsLength=function(){return mo.getBitsLength(this.data.length)},mo.prototype.write=function(t){for(let e=0,A=this.data.length;e<A;e++)t.put(this.data[e],8)};var $I=mo;const eV=ba,tV=Dr;function vo(t){this.mode=eV.KANJI,this.data=t}vo.getBitsLength=function(e){return e*13},vo.prototype.getLength=function(){return this.data.length},vo.prototype.getBitsLength=function(){return vo.getBitsLength(this.data.length)},vo.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let A=tV.toSJIS(this.data[e]);if(A>=33088&&A<=40956)A-=33088;else if(A>=57408&&A<=60351)A-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
7
7
  Make sure your charset is UTF-8`);A=(A>>>8&255)*192+(A&255),t.put(A,13)}};var AV=vo,Pv={exports:{}};(function(t){var e={single_source_shortest_paths:function(A,r,n){var a={},i={};i[r]=0;var o=e.PriorityQueue.make();o.push(r,0);for(var s,l,u,d,g,h,y,w,b;!o.empty();){s=o.pop(),l=s.value,d=s.cost,g=A[l]||{};for(u in g)g.hasOwnProperty(u)&&(h=g[u],y=d+h,w=i[u],b=typeof i[u]>"u",(b||w>y)&&(i[u]=y,o.push(u,y),a[u]=l))}if(typeof n<"u"&&typeof i[n]>"u"){var v=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(v)}return a},extract_shortest_path_from_predecessor_list:function(A,r){for(var n=[],a=r;a;)n.push(a),A[a],a=A[a];return n.reverse(),n},find_path:function(A,r,n){var a=e.single_source_shortest_paths(A,r,n);return e.extract_shortest_path_from_predecessor_list(a,n)},PriorityQueue:{make:function(A){var r=e.PriorityQueue,n={},a;A=A||{};for(a in r)r.hasOwnProperty(a)&&(n[a]=r[a]);return n.queue=[],n.sorter=A.sorter||r.default_sorter,n},default_sorter:function(A,r){return A.cost-r.cost},push:function(A,r){var n={value:A,cost:r};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Pv);var rV=Pv.exports;(function(t){const e=ba,A=zI,r=XI,n=$I,a=AV,i=Vn,o=Dr,s=rV;function l(v){return unescape(encodeURIComponent(v)).length}function u(v,C,N){const S=[];let O;for(;(O=v.exec(N))!==null;)S.push({data:O[0],index:O.index,mode:C,length:O[0].length});return S}function d(v){const C=u(i.NUMERIC,e.NUMERIC,v),N=u(i.ALPHANUMERIC,e.ALPHANUMERIC,v);let S,O;return o.isKanjiModeEnabled()?(S=u(i.BYTE,e.BYTE,v),O=u(i.KANJI,e.KANJI,v)):(S=u(i.BYTE_KANJI,e.BYTE,v),O=[]),C.concat(N,S,O).sort(function(k,R){return k.index-R.index}).map(function(k){return{data:k.data,mode:k.mode,length:k.length}})}function g(v,C){switch(C){case e.NUMERIC:return A.getBitsLength(v);case e.ALPHANUMERIC:return r.getBitsLength(v);case e.KANJI:return a.getBitsLength(v);case e.BYTE:return n.getBitsLength(v)}}function h(v){return v.reduce(function(C,N){const S=C.length-1>=0?C[C.length-1]:null;return S&&S.mode===N.mode?(C[C.length-1].data+=N.data,C):(C.push(N),C)},[])}function y(v){const C=[];for(let N=0;N<v.length;N++){const S=v[N];switch(S.mode){case e.NUMERIC:C.push([S,{data:S.data,mode:e.ALPHANUMERIC,length:S.length},{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.ALPHANUMERIC:C.push([S,{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.KANJI:C.push([S,{data:S.data,mode:e.BYTE,length:l(S.data)}]);break;case e.BYTE:C.push([{data:S.data,mode:e.BYTE,length:l(S.data)}])}}return C}function w(v,C){const N={},S={start:{}};let O=["start"];for(let P=0;P<v.length;P++){const k=v[P],R=[];for(let I=0;I<k.length;I++){const x=k[I],F=""+P+I;R.push(F),N[F]={node:x,lastCount:0},S[F]={};for(let E=0;E<O.length;E++){const T=O[E];N[T]&&N[T].node.mode===x.mode?(S[T][F]=g(N[T].lastCount+x.length,x.mode)-g(N[T].lastCount,x.mode),N[T].lastCount+=x.length):(N[T]&&(N[T].lastCount=x.length),S[T][F]=g(x.length,x.mode)+4+e.getCharCountIndicator(x.mode,C))}}O=R}for(let P=0;P<O.length;P++)S[O[P]].end=0;return{map:S,table:N}}function b(v,C){let N;const S=e.getBestModeForData(v);if(N=e.from(C,S),N!==e.BYTE&&N.bit<S.bit)throw new Error('"'+v+'" cannot be encoded with mode '+e.toString(N)+`.
8
8
  Suggested mode is: `+e.toString(S));switch(N===e.KANJI&&!o.isKanjiModeEnabled()&&(N=e.BYTE),N){case e.NUMERIC:return new A(v);case e.ALPHANUMERIC:return new r(v);case e.KANJI:return new a(v);case e.BYTE:return new n(v)}}t.fromArray=function(C){return C.reduce(function(N,S){return typeof S=="string"?N.push(b(S,null)):S.data&&N.push(b(S.data,S.mode)),N},[])},t.fromString=function(C,N){const S=d(C,o.isKanjiModeEnabled()),O=y(S),P=w(O,N),k=s.find_path(P.map,"start","end"),R=[];for(let I=1;I<k.length-1;I++)R.push(P.table[k[I]].node);return t.fromArray(h(R))},t.rawSplit=function(C){return t.fromArray(d(C,o.isKanjiModeEnabled()))}})(Dv);const Gc=Dr,i0=Wc,nV=kI,aV=HI,iV=Qv,oV=xv,o0=Rv,s0=_c,sV=PI,zc=Mv,lV=Ov,cV=ba,l0=Dv;function uV(t,e){const A=t.size,r=oV.getPositions(e);for(let n=0;n<r.length;n++){const a=r[n][0],i=r[n][1];for(let o=-1;o<=7;o++)if(!(a+o<=-1||A<=a+o))for(let s=-1;s<=7;s++)i+s<=-1||A<=i+s||(o>=0&&o<=6&&(s===0||s===6)||s>=0&&s<=6&&(o===0||o===6)||o>=2&&o<=4&&s>=2&&s<=4?t.set(a+o,i+s,!0,!0):t.set(a+o,i+s,!1,!0))}}function fV(t){const e=t.size;for(let A=8;A<e-8;A++){const r=A%2===0;t.set(A,6,r,!0),t.set(6,A,r,!0)}}function hV(t,e){const A=iV.getPositions(e);for(let r=0;r<A.length;r++){const n=A[r][0],a=A[r][1];for(let i=-2;i<=2;i++)for(let o=-2;o<=2;o++)i===-2||i===2||o===-2||o===2||i===0&&o===0?t.set(n+i,a+o,!0,!0):t.set(n+i,a+o,!1,!0)}}function dV(t,e){const A=t.size,r=zc.getEncodedBits(e);let n,a,i;for(let o=0;o<18;o++)n=Math.floor(o/3),a=o%3+A-8-3,i=(r>>o&1)===1,t.set(n,a,i,!0),t.set(a,n,i,!0)}function c0(t,e,A){const r=t.size,n=lV.getEncodedBits(e,A);let a,i;for(a=0;a<15;a++)i=(n>>a&1)===1,a<6?t.set(a,8,i,!0):a<8?t.set(a+1,8,i,!0):t.set(r-15+a,8,i,!0),a<8?t.set(8,r-a-1,i,!0):a<9?t.set(8,15-a-1+1,i,!0):t.set(8,15-a-1,i,!0);t.set(r-8,8,1,!0)}function pV(t,e){const A=t.size;let r=-1,n=A-1,a=7,i=0;for(let o=A-1;o>0;o-=2)for(o===6&&o--;;){for(let s=0;s<2;s++)if(!t.isReserved(n,o-s)){let l=!1;i<e.length&&(l=(e[i]>>>a&1)===1),t.set(n,o-s,l),a--,a===-1&&(i++,a=7)}if(n+=r,n<0||A<=n){n-=r,r=-r;break}}}function gV(t,e,A){const r=new nV;A.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),cV.getCharCountIndicator(s.mode,t)),s.write(r)});const n=Gc.getSymbolTotalCodewords(t),a=s0.getTotalCodewordsCount(t,e),i=(n-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const o=(i-r.getLengthInBits())/8;for(let s=0;s<o;s++)r.put(s%2?17:236,8);return mV(r,t,e)}function mV(t,e,A){const r=Gc.getSymbolTotalCodewords(e),n=s0.getTotalCodewordsCount(e,A),a=r-n,i=s0.getBlocksCount(e,A),o=r%i,s=i-o,l=Math.floor(r/i),u=Math.floor(a/i),d=u+1,g=l-u,h=new sV(g);let y=0;const w=new Array(i),b=new Array(i);let v=0;const C=new Uint8Array(t.buffer);for(let k=0;k<i;k++){const R=k<s?u:d;w[k]=C.slice(y,y+R),b[k]=h.encode(w[k]),y+=R,v=Math.max(v,R)}const N=new Uint8Array(r);let S=0,O,P;for(O=0;O<v;O++)for(P=0;P<i;P++)O<w[P].length&&(N[S++]=w[P][O]);for(O=0;O<g;O++)for(P=0;P<i;P++)N[S++]=b[P][O];return N}function vV(t,e,A,r){let n;if(Array.isArray(t))n=l0.fromArray(t);else if(typeof t=="string"){let l=e;if(!l){const u=l0.rawSplit(t);l=zc.getBestVersionForData(u,A)}n=l0.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 N=document.createElement("div");for(N.style.cssText=`
312
312
  width: ${s}mm; height: ${l}mm; position: relative;
313
313
  transform: scale(${r}); transform-origin: top left;
314
- `;b.firstChild;)N.appendChild(b.firstChild);b.appendChild(N)}return b.outerHTML}finally{if(!(i&&window[y])){try{h&&h.unmount&&h.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}function wl(t,e=96){return Math.round(t*e/25.4)}async function $y(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 dP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>$y(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成二维码失败: ${r.message}`)}}async function pP(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 ka(t,e=96){return Math.round(t*e/25.4)}function e5(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 t5(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=ka(r.width,r.dpi),i=ka(r.height,r.dpi),o=ka(r.textMargin,r.dpi),s=ka(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}`),r.outputFormat==="png"?(l.setAttribute("shape-rendering","crispEdges"),l.setAttribute("text-rendering","optimizeLegibility")):(l.setAttribute("shape-rendering","geometricPrecision"),l.setAttribute("text-rendering","geometricPrecision")),l.setAttribute("image-rendering","optimizeQuality");const u=e5(a,r.dpi,r.CodeType);if($d(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 gP(l,a,i,r.dpi),g=r.outputFormat==="jpeg"?"image/jpeg":"image/png",h=d.toDataURL(g,r.outputFormat==="jpeg"?r.quality:void 0);if(r.returnDataUrl)return h;{const y=h.indexOf(",");return y!==-1?h.substring(y+1):h}}}catch(l){throw new Error(`条形码生成失败: ${l.message}`)}}async function gP(t,e,A,r=300){return new Promise((n,a)=>{const i=Math.max(3,Math.round(r/96)),o=document.createElement("canvas"),s=o.getContext("2d",{willReadFrequently:!1,desynchronized:!1}),l=e*i,u=A*i;o.width=l,o.height=u,o.style.width=e+"px",o.style.height=A+"px",s.save(),s.scale(i,i),s.imageSmoothingEnabled=!1,s.textBaseline="top",s.textAlign="left";const d=new Image,g=new XMLSerializer().serializeToString(t),h=new Blob([g],{type:"image/svg+xml;charset=utf-8"}),y=URL.createObjectURL(h);d.onload=()=>{try{s.clearRect(0,0,e,A),s.drawImage(d,0,0,e,A),s.restore(),URL.revokeObjectURL(y),n(o)}catch(w){s.restore(),URL.revokeObjectURL(y),a(w)}},d.onerror=w=>{s.restore(),URL.revokeObjectURL(y),a(new Error("SVG转换为Canvas失败: "+(w.message||"未知错误")))},d.src=y})}async function mP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>t5(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成条形码失败: ${r.message}`)}}function vP(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=ka(r.width,r.dpi),a=ka(r.height,r.dpi),i=ka(r.textMargin,r.dpi),o=ka(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=e5(n,r.dpi,r.CodeType);return $d(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 A5=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.2,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:5,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:di,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:di,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:di,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:di,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),BP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:3.2,rotation:0,allowRotation:!1,Title:"",FieldName:"",FieldLabel:"",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:di,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",FieldLabel:"",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:di,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",FieldLabel:"",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:di,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 Ha(t){"@babel/helpers - typeof";return Ha=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},Ha(t)}function kp(t,e){return kp=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},kp(t,e)}function wP(){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 nf(t,e,A){return wP()?nf=Reflect.construct:nf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&kp(l,i.prototype),l},nf.apply(null,arguments)}function wn(t){return yP(t)||bP(t)||CP(t)||EP()}function yP(t){if(Array.isArray(t))return Hp(t)}function bP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function CP(t,e){if(t){if(typeof t=="string")return Hp(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 Hp(t,e)}}function Hp(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 EP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
314
+ `;b.firstChild;)N.appendChild(b.firstChild);b.appendChild(N)}return b.outerHTML}finally{if(!(i&&window[y])){try{h&&h.unmount&&h.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}function wl(t,e=96){return Math.round(t*e/25.4)}async function $y(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 dP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>$y(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成二维码失败: ${r.message}`)}}async function pP(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 ka(t,e=96){return Math.round(t*e/25.4)}function e5(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 t5(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=ka(r.width,r.dpi),i=ka(r.height,r.dpi),o=ka(r.textMargin,r.dpi),s=ka(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}`),r.outputFormat==="png"?(l.setAttribute("shape-rendering","crispEdges"),l.setAttribute("text-rendering","optimizeLegibility")):(l.setAttribute("shape-rendering","geometricPrecision"),l.setAttribute("text-rendering","geometricPrecision")),l.setAttribute("image-rendering","optimizeQuality");const u=e5(a,r.dpi,r.CodeType);if($d(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 gP(l,a,i,r.dpi),g=r.outputFormat==="jpeg"?"image/jpeg":"image/png",h=d.toDataURL(g,r.outputFormat==="jpeg"?r.quality:void 0);if(r.returnDataUrl)return h;{const y=h.indexOf(",");return y!==-1?h.substring(y+1):h}}}catch(l){throw new Error(`条形码生成失败: ${l.message}`)}}async function gP(t,e,A,r=300){return new Promise((n,a)=>{const i=Math.max(3,Math.round(r/96)),o=document.createElement("canvas"),s=o.getContext("2d",{willReadFrequently:!1,desynchronized:!1}),l=e*i,u=A*i;o.width=l,o.height=u,o.style.width=e+"px",o.style.height=A+"px",s.save(),s.scale(i,i),s.imageSmoothingEnabled=!1,s.textBaseline="top",s.textAlign="left";const d=new Image,g=new XMLSerializer().serializeToString(t),h=new Blob([g],{type:"image/svg+xml;charset=utf-8"}),y=URL.createObjectURL(h);d.onload=()=>{try{s.clearRect(0,0,e,A),s.drawImage(d,0,0,e,A),s.restore(),URL.revokeObjectURL(y),n(o)}catch(w){s.restore(),URL.revokeObjectURL(y),a(w)}},d.onerror=w=>{s.restore(),URL.revokeObjectURL(y),a(new Error("SVG转换为Canvas失败: "+(w.message||"未知错误")))},d.src=y})}async function mP(t,e={}){if(!Array.isArray(t))throw new Error("文本参数必须是数组");if(t.length===0)return[];const A=t.map(r=>t5(r,e));try{return await Promise.all(A)}catch(r){throw new Error(`批量生成条形码失败: ${r.message}`)}}function vP(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=ka(r.width,r.dpi),a=ka(r.height,r.dpi),i=ka(r.textMargin,r.dpi),o=ka(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=e5(n,r.dpi,r.CodeType);return $d(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 A5=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.2,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:5,max:100,default:8,layout:"half"},{prop:"WordSpace",label:"字间距",type:"number",min:0,max:100,default:0,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},{label:"两端对齐",value:4}],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:di,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:di,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:di,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:di,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),BP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:3.2,rotation:0,allowRotation:!1,Title:"",FieldName:"",FieldLabel:"",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:di,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",FieldLabel:"",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:di,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",FieldLabel:"",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:di,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 Ha(t){"@babel/helpers - typeof";return Ha=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},Ha(t)}function kp(t,e){return kp=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},kp(t,e)}function wP(){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 nf(t,e,A){return wP()?nf=Reflect.construct:nf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&kp(l,i.prototype),l},nf.apply(null,arguments)}function wn(t){return yP(t)||bP(t)||CP(t)||EP()}function yP(t){if(Array.isArray(t))return Hp(t)}function bP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function CP(t,e){if(t){if(typeof t=="string")return Hp(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 Hp(t,e)}}function Hp(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 EP(){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 UP=Object.hasOwnProperty,r5=Object.setPrototypeOf,FP=Object.isFrozen,NP=Object.getPrototypeOf,SP=Object.getOwnPropertyDescriptor,yr=Object.freeze,tn=Object.seal,QP=Object.create,n5=typeof Reflect<"u"&&Reflect,af=n5.apply,Dp=n5.construct;af||(af=function(e,A,r){return e.apply(A,r)}),yr||(yr=function(e){return e}),tn||(tn=function(e){return e}),Dp||(Dp=function(e,A){return nf(e,wn(A))});var xP=An(Array.prototype.forEach),a5=An(Array.prototype.pop),yl=An(Array.prototype.push),of=An(String.prototype.toLowerCase),Pp=An(String.prototype.toString),i5=An(String.prototype.match),yn=An(String.prototype.replace),TP=An(String.prototype.indexOf),RP=An(String.prototype.trim),tr=An(RegExp.prototype.test),Wp=IP(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 af(t,e,r)}}function IP(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return Dp(t,A)}}function Qt(t,e,A){var r;A=(r=A)!==null&&r!==void 0?r:of,r5&&r5(t,null);for(var n=e.length;n--;){var a=e[n];if(typeof a=="string"){var i=A(a);i!==a&&(FP(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Ni(t){var e=QP(null),A;for(A in t)af(UP,t,[A])===!0&&(e[A]=t[A]);return e}function sf(t,e){for(;t!==null;){var A=SP(t,e);if(A){if(A.get)return An(A.get);if(typeof A.value=="function")return An(A.value)}t=NP(t)}function r(n){return console.warn("fallback value for",n),null}return r}var o5=yr(["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"]),_p=yr(["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"]),Zp=yr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),VP=yr(["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"]),jp=yr(["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"]),MP=yr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),s5=yr(["#text"]),l5=yr(["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=yr(["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"]),c5=yr(["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"]),lf=yr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),LP=tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),OP=tn(/<%[\w\W]*|[\w\W]*%>/gm),kP=tn(/\${[\w\W]*}/gm),HP=tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),DP=tn(/^aria-[\-\w]+$/),PP=tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),WP=tn(/^(?:\w+script|data):/i),_P=tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ZP=tn(/^html$/i),jP=tn(/^[a-z][.\w]*(-[.\w]+)+$/i),JP=function(){return typeof window>"u"?null:window},KP=function(e,A){if(Ha(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 u5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JP(),e=function(se){return u5(se)};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,h=t.trustedTypes,y=o.prototype,w=sf(y,"cloneNode"),b=sf(y,"nextSibling"),v=sf(y,"childNodes"),C=sf(y,"parentNode");if(typeof a=="function"){var N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}var S=KP(h,A),O=S?S.createHTML(""):"",P=r,k=P.implementation,R=P.createNodeIterator,I=P.createDocumentFragment,x=P.getElementsByTagName,F=A.importNode,E={};try{E=Ni(r).documentMode?r.documentMode:{}}catch{}var T={};e.isSupported=typeof C=="function"&&k&&k.createHTMLDocument!==void 0&&E!==9;var L=LP,Z=OP,K=kP,Y=HP,G=DP,q=WP,X=_P,ae=jP,Q=PP,H=null,z=Qt({},[].concat(wn(o5),wn(_p),wn(Zp),wn(jp),wn(s5))),j=null,ne=Qt({},[].concat(wn(l5),wn(Jp),wn(c5),wn(lf))),re=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}})),ue=null,pe=null,Ee=!0,Ue=!0,Oe=!1,xe=!0,He=!1,ge=!0,te=!1,ft=!1,Ge=!1,Fe=!1,Te=!1,De=!1,ke=!0,We=!1,qe="user-content-",it=!0,nt=!1,ht={},gt=null,At=Qt({},["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"]),mt=null,Pe=Qt({},["audio","video","img","source","image","track"]),Rt=null,wt=Qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),hA="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",Ct="http://www.w3.org/1999/xhtml",lA=Ct,Ft=!1,GA=null,Wt=Qt({},[hA,xt,Ct],Pp),cA,Yt=["application/xhtml+xml","text/html"],eA="text/html",ee,ie=null,ye=r.createElement("form"),Ze=function(se){return se instanceof RegExp||se instanceof Function},ot=function(se){ie&&ie===se||((!se||Ha(se)!=="object")&&(se={}),se=Ni(se),cA=Yt.indexOf(se.PARSER_MEDIA_TYPE)===-1?cA=eA:cA=se.PARSER_MEDIA_TYPE,ee=cA==="application/xhtml+xml"?Pp:of,H="ALLOWED_TAGS"in se?Qt({},se.ALLOWED_TAGS,ee):z,j="ALLOWED_ATTR"in se?Qt({},se.ALLOWED_ATTR,ee):ne,GA="ALLOWED_NAMESPACES"in se?Qt({},se.ALLOWED_NAMESPACES,Pp):Wt,Rt="ADD_URI_SAFE_ATTR"in se?Qt(Ni(wt),se.ADD_URI_SAFE_ATTR,ee):wt,mt="ADD_DATA_URI_TAGS"in se?Qt(Ni(Pe),se.ADD_DATA_URI_TAGS,ee):Pe,gt="FORBID_CONTENTS"in se?Qt({},se.FORBID_CONTENTS,ee):At,ue="FORBID_TAGS"in se?Qt({},se.FORBID_TAGS,ee):{},pe="FORBID_ATTR"in se?Qt({},se.FORBID_ATTR,ee):{},ht="USE_PROFILES"in se?se.USE_PROFILES:!1,Ee=se.ALLOW_ARIA_ATTR!==!1,Ue=se.ALLOW_DATA_ATTR!==!1,Oe=se.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=se.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=se.SAFE_FOR_TEMPLATES||!1,ge=se.SAFE_FOR_XML!==!1,te=se.WHOLE_DOCUMENT||!1,Fe=se.RETURN_DOM||!1,Te=se.RETURN_DOM_FRAGMENT||!1,De=se.RETURN_TRUSTED_TYPE||!1,Ge=se.FORCE_BODY||!1,ke=se.SANITIZE_DOM!==!1,We=se.SANITIZE_NAMED_PROPS||!1,it=se.KEEP_CONTENT!==!1,nt=se.IN_PLACE||!1,Q=se.ALLOWED_URI_REGEXP||Q,lA=se.NAMESPACE||Ct,re=se.CUSTOM_ELEMENT_HANDLING||{},se.CUSTOM_ELEMENT_HANDLING&&Ze(se.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=se.CUSTOM_ELEMENT_HANDLING.tagNameCheck),se.CUSTOM_ELEMENT_HANDLING&&Ze(se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),se.CUSTOM_ELEMENT_HANDLING&&typeof se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(Ue=!1),Te&&(Fe=!0),ht&&(H=Qt({},wn(s5)),j=[],ht.html===!0&&(Qt(H,o5),Qt(j,l5)),ht.svg===!0&&(Qt(H,_p),Qt(j,Jp),Qt(j,lf)),ht.svgFilters===!0&&(Qt(H,Zp),Qt(j,Jp),Qt(j,lf)),ht.mathMl===!0&&(Qt(H,jp),Qt(j,c5),Qt(j,lf))),se.ADD_TAGS&&(H===z&&(H=Ni(H)),Qt(H,se.ADD_TAGS,ee)),se.ADD_ATTR&&(j===ne&&(j=Ni(j)),Qt(j,se.ADD_ATTR,ee)),se.ADD_URI_SAFE_ATTR&&Qt(Rt,se.ADD_URI_SAFE_ATTR,ee),se.FORBID_CONTENTS&&(gt===At&&(gt=Ni(gt)),Qt(gt,se.FORBID_CONTENTS,ee)),it&&(H["#text"]=!0),te&&Qt(H,["html","head","body"]),H.table&&(Qt(H,["tbody"]),delete ue.tbody),yr&&yr(se),ie=se)},Je=Qt({},["mi","mo","mn","ms","mtext"]),Le=Qt({},["annotation-xml"]),$e=Qt({},["title","style","font","a","script"]),dt=Qt({},_p);Qt(dt,Zp),Qt(dt,VP);var je=Qt({},jp);Qt(je,MP);var Be=function(se){var Ie=C(se);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:lA,tagName:"template"});var _e=of(se.tagName),Tt=of(Ie.tagName);return GA[se.namespaceURI]?se.namespaceURI===xt?Ie.namespaceURI===Ct?_e==="svg":Ie.namespaceURI===hA?_e==="svg"&&(Tt==="annotation-xml"||Je[Tt]):!!dt[_e]:se.namespaceURI===hA?Ie.namespaceURI===Ct?_e==="math":Ie.namespaceURI===xt?_e==="math"&&Le[Tt]:!!je[_e]:se.namespaceURI===Ct?Ie.namespaceURI===xt&&!Le[Tt]||Ie.namespaceURI===hA&&!Je[Tt]?!1:!je[_e]&&($e[_e]||!dt[_e]):!!(cA==="application/xhtml+xml"&&GA[se.namespaceURI]):!1},st=function(se){yl(e.removed,{element:se});try{se.parentNode.removeChild(se)}catch{try{se.outerHTML=O}catch{se.remove()}}},lt=function(se,Ie){try{yl(e.removed,{attribute:Ie.getAttributeNode(se),from:Ie})}catch{yl(e.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(se),se==="is"&&!j[se])if(Fe||Te)try{st(Ie)}catch{}else try{Ie.setAttribute(se,"")}catch{}},Lt=function(se){var Ie,_e;if(Ge)se="<remove></remove>"+se;else{var Tt=i5(se,/^[\r\n\t ]+/);_e=Tt&&Tt[0]}cA==="application/xhtml+xml"&&lA===Ct&&(se='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+se+"</body></html>");var mA=S?S.createHTML(se):se;if(lA===Ct)try{Ie=new g().parseFromString(mA,cA)}catch{}if(!Ie||!Ie.documentElement){Ie=k.createDocument(lA,"template",null);try{Ie.documentElement.innerHTML=Ft?O:mA}catch{}}var tA=Ie.body||Ie.documentElement;return se&&_e&&tA.insertBefore(r.createTextNode(_e),tA.childNodes[0]||null),lA===Ct?x.call(Ie,te?"html":"body")[0]:te?Ie.documentElement:tA},Ot=function(se){return R.call(se.ownerDocument||se,se,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},Mt=function(se){return se instanceof d&&(typeof se.nodeName!="string"||typeof se.textContent!="string"||typeof se.removeChild!="function"||!(se.attributes instanceof u)||typeof se.removeAttribute!="function"||typeof se.setAttribute!="function"||typeof se.namespaceURI!="string"||typeof se.insertBefore!="function"||typeof se.hasChildNodes!="function")},Ht=function(se){return Ha(i)==="object"?se instanceof i:se&&Ha(se)==="object"&&typeof se.nodeType=="number"&&typeof se.nodeName=="string"},_t=function(se,Ie,_e){T[se]&&xP(T[se],function(Tt){Tt.call(e,Ie,_e,ie)})},rr=function(se){var Ie;if(_t("beforeSanitizeElements",se,null),Mt(se)||tr(/[\u0080-\uFFFF]/,se.nodeName))return st(se),!0;var _e=ee(se.nodeName);if(_t("uponSanitizeElement",se,{tagName:_e,allowedTags:H}),se.hasChildNodes()&&!Ht(se.firstElementChild)&&(!Ht(se.content)||!Ht(se.content.firstElementChild))&&tr(/<[/\w]/g,se.innerHTML)&&tr(/<[/\w]/g,se.textContent)||_e==="select"&&tr(/<template/i,se.innerHTML)||se.nodeType===7||ge&&se.nodeType===8&&tr(/<[/\w]/g,se.data))return st(se),!0;if(!H[_e]||ue[_e]){if(!ue[_e]&&nA(_e)&&(re.tagNameCheck instanceof RegExp&&tr(re.tagNameCheck,_e)||re.tagNameCheck instanceof Function&&re.tagNameCheck(_e)))return!1;if(it&&!gt[_e]){var Tt=C(se)||se.parentNode,mA=v(se)||se.childNodes;if(mA&&Tt)for(var tA=mA.length,dA=tA-1;dA>=0;--dA){var Zr=w(mA[dA],!0);Zr.__removalCount=(se.__removalCount||0)+1,Tt.insertBefore(Zr,b(se))}}return st(se),!0}return se instanceof o&&!Be(se)||(_e==="noscript"||_e==="noembed"||_e==="noframes")&&tr(/<\/no(script|embed|frames)/i,se.innerHTML)?(st(se),!0):(He&&se.nodeType===3&&(Ie=se.textContent,Ie=yn(Ie,L," "),Ie=yn(Ie,Z," "),Ie=yn(Ie,K," "),se.textContent!==Ie&&(yl(e.removed,{element:se.cloneNode()}),se.textContent=Ie)),_t("afterSanitizeElements",se,null),!1)},zA=function(se,Ie,_e){if(ke&&(Ie==="id"||Ie==="name")&&(_e in r||_e in ye))return!1;if(!(Ue&&!pe[Ie]&&tr(Y,Ie))){if(!(Ee&&tr(G,Ie))){if(!j[Ie]||pe[Ie]){if(!(nA(se)&&(re.tagNameCheck instanceof RegExp&&tr(re.tagNameCheck,se)||re.tagNameCheck instanceof Function&&re.tagNameCheck(se))&&(re.attributeNameCheck instanceof RegExp&&tr(re.attributeNameCheck,Ie)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(Ie))||Ie==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&tr(re.tagNameCheck,_e)||re.tagNameCheck instanceof Function&&re.tagNameCheck(_e))))return!1}else if(!Rt[Ie]){if(!tr(Q,yn(_e,X,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&se!=="script"&&TP(_e,"data:")===0&&mt[se])){if(!(Oe&&!tr(q,yn(_e,X,"")))){if(_e)return!1}}}}}}return!0},nA=function(se){return se!=="annotation-xml"&&i5(se,ae)},WA=function(se){var Ie,_e,Tt,mA;_t("beforeSanitizeAttributes",se,null);var tA=se.attributes;if(!(!tA||Mt(se))){var dA={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};for(mA=tA.length;mA--;){Ie=tA[mA];var Zr=Ie,Xt=Zr.name,Pi=Zr.namespaceURI;if(_e=Xt==="value"?Ie.value:RP(Ie.value),Tt=ee(Xt),dA.attrName=Tt,dA.attrValue=_e,dA.keepAttr=!0,dA.forceKeepAttr=void 0,_t("uponSanitizeAttribute",se,dA),_e=dA.attrValue,!dA.forceKeepAttr&&(lt(Xt,se),!!dA.keepAttr)){if(!xe&&tr(/\/>/i,_e)){lt(Xt,se);continue}He&&(_e=yn(_e,L," "),_e=yn(_e,Z," "),_e=yn(_e,K," "));var Wi=ee(se.nodeName);if(zA(Wi,Tt,_e)){if(We&&(Tt==="id"||Tt==="name")&&(lt(Xt,se),_e=qe+_e),ge&&tr(/((--!?|])>)|<\/(style|title)/i,_e)){lt(Xt,se);continue}if(S&&Ha(h)==="object"&&typeof h.getAttributeType=="function"&&!Pi)switch(h.getAttributeType(Wi,Tt)){case"TrustedHTML":{_e=S.createHTML(_e);break}case"TrustedScriptURL":{_e=S.createScriptURL(_e);break}}try{Pi?se.setAttributeNS(Pi,Xt,_e):se.setAttribute(Xt,_e),Mt(se)?st(se):a5(e.removed)}catch{}}}}_t("afterSanitizeAttributes",se,null)}},OA=function rt(se){var Ie,_e=Ot(se);for(_t("beforeSanitizeShadowDOM",se,null);Ie=_e.nextNode();)_t("uponSanitizeShadowNode",Ie,null),rr(Ie),WA(Ie),Ie.content instanceof n&&rt(Ie.content);_t("afterSanitizeShadowDOM",se,null)};return e.sanitize=function(rt){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie,_e,Tt,mA,tA;if(Ft=!rt,Ft&&(rt="<!-->"),typeof rt!="string"&&!Ht(rt))if(typeof rt.toString=="function"){if(rt=rt.toString(),typeof rt!="string")throw Wp("dirty is not a string, aborting")}else throw Wp("toString is not a function");if(!e.isSupported){if(Ha(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof rt=="string")return t.toStaticHTML(rt);if(Ht(rt))return t.toStaticHTML(rt.outerHTML)}return rt}if(ft||ot(se),e.removed=[],typeof rt=="string"&&(nt=!1),nt){if(rt.nodeName){var dA=ee(rt.nodeName);if(!H[dA]||ue[dA])throw Wp("root node is forbidden and cannot be sanitized in-place")}}else if(rt instanceof i)Ie=Lt("<!---->"),_e=Ie.ownerDocument.importNode(rt,!0),_e.nodeType===1&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?Ie=_e:Ie.appendChild(_e);else{if(!Fe&&!He&&!te&&rt.indexOf("<")===-1)return S&&De?S.createHTML(rt):rt;if(Ie=Lt(rt),!Ie)return Fe?null:De?O:""}Ie&&Ge&&st(Ie.firstChild);for(var Zr=Ot(nt?rt:Ie);Tt=Zr.nextNode();)Tt.nodeType===3&&Tt===mA||(rr(Tt),WA(Tt),Tt.content instanceof n&&OA(Tt.content),mA=Tt);if(mA=null,nt)return rt;if(Fe){if(Te)for(tA=I.call(Ie.ownerDocument);Ie.firstChild;)tA.appendChild(Ie.firstChild);else tA=Ie;return(j.shadowroot||j.shadowrootmod)&&(tA=F.call(A,tA,!0)),tA}var Xt=te?Ie.outerHTML:Ie.innerHTML;return te&&H["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&tr(ZP,Ie.ownerDocument.doctype.name)&&(Xt="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
316
316
  `+Xt),He&&(Xt=yn(Xt,L," "),Xt=yn(Xt,Z," "),Xt=yn(Xt,K," ")),S&&De?S.createHTML(Xt):Xt},e.setConfig=function(rt){ot(rt),ft=!0},e.clearConfig=function(){ie=null,ft=!1},e.isValidAttribute=function(rt,se,Ie){ie||ot({});var _e=ee(rt),Tt=ee(se);return zA(_e,Tt,Ie)},e.addHook=function(rt,se){typeof se=="function"&&(T[rt]=T[rt]||[],yl(T[rt],se))},e.removeHook=function(rt){if(T[rt])return a5(T[rt])},e.removeHooks=function(rt){T[rt]&&(T[rt]=[])},e.removeAllHooks=function(){T={}},e}var GP=u5();const zP=Object.freeze(Object.defineProperty({__proto__:null,default:GP},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 Ao=="object"&&Ao)||bl(typeof Ao=="object"&&Ao)||function(){return this}()||Function("return this")(),Cl={},wA=function(t){try{return!!t()}catch{return!0}},YP=wA,bn=!YP(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),XP=wA,cf=!XP(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),qP=cf,uf=Function.prototype.call,Ar=qP?uf.bind(uf):function(){return uf.apply(uf,arguments)},f5={},h5={}.propertyIsEnumerable,d5=Object.getOwnPropertyDescriptor,$P=d5&&!h5.call({1:2},1);f5.f=$P?function(e){var A=d5(this,e);return!!A&&A.enumerable}:h5;var Kp=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},p5=cf,g5=Function.prototype,Gp=g5.call,eW=p5&&g5.bind.bind(Gp,Gp),yA=p5?eW:function(t){return function(){return Gp.apply(t,arguments)}},m5=yA,tW=m5({}.toString),AW=m5("".slice),Si=function(t){return AW(tW(t),8,-1)},rW=yA,nW=wA,aW=Si,zp=Object,iW=rW("".split),v5=nW(function(){return!zp("z").propertyIsEnumerable(0)})?function(t){return aW(t)==="String"?iW(t,""):zp(t)}:zp,ff=function(t){return t==null},oW=ff,sW=TypeError,Cn=function(t){if(oW(t))throw new sW("Can't call method on "+t);return t},lW=v5,cW=Cn,El=function(t){return lW(cW(t))},Yp=typeof document=="object"&&document.all,xA=typeof Yp>"u"&&Yp!==void 0?function(t){return typeof t=="function"||t===Yp}:function(t){return typeof t=="function"},uW=xA,Tr=function(t){return typeof t=="object"?t!==null:uW(t)},Xp=fA,fW=xA,hW=function(t){return fW(t)?t:void 0},Qi=function(t,e){return arguments.length<2?hW(Xp[t]):Xp[t]&&Xp[t][e]},dW=yA,hf=dW({}.isPrototypeOf),pW=fA,B5=pW.navigator,w5=B5&&B5.userAgent,Ul=w5?String(w5):"",y5=fA,qp=Ul,b5=y5.process,C5=y5.Deno,E5=b5&&b5.versions||C5&&C5.version,U5=E5&&E5.v8,En,df;U5&&(En=U5.split("."),df=En[0]>0&&En[0]<4?1:+(En[0]+En[1])),!df&&qp&&(En=qp.match(/Edge\/(\d+)/),(!En||En[1]>=74)&&(En=qp.match(/Chrome\/(\d+)/),En&&(df=+En[1])));var $p=df,F5=$p,gW=wA,mW=fA,vW=mW.String,N5=!!Object.getOwnPropertySymbols&&!gW(function(){var t=Symbol("symbol detection");return!vW(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F5&&F5<41}),BW=N5,S5=BW&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wW=Qi,yW=xA,bW=hf,CW=S5,EW=Object,Q5=CW?function(t){return typeof t=="symbol"}:function(t){var e=wW("Symbol");return yW(e)&&bW(e.prototype,EW(t))},UW=String,pf=function(t){try{return UW(t)}catch{return"Object"}},FW=xA,NW=pf,SW=TypeError,ea=function(t){if(FW(t))return t;throw new SW(NW(t)+" is not a function")},QW=ea,xW=ff,Zo=function(t,e){var A=t[e];return xW(A)?void 0:QW(A)},e1=Ar,t1=xA,A1=Tr,TW=TypeError,RW=function(t,e){var A,r;if(e==="string"&&t1(A=t.toString)&&!A1(r=e1(A,t))||t1(A=t.valueOf)&&!A1(r=e1(A,t))||e!=="string"&&t1(A=t.toString)&&!A1(r=e1(A,t)))return r;throw new TW("Can't convert object to primitive value")},x5={exports:{}},T5=fA,IW=Object.defineProperty,r1=function(t,e){try{IW(T5,t,{value:e,configurable:!0,writable:!0})}catch{T5[t]=e}return e},VW=fA,MW=r1,R5="__core-js_shared__",I5=x5.exports=VW[R5]||MW(R5,{});(I5.versions||(I5.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 n1=x5.exports,V5=n1,a1=function(t,e){return V5[t]||(V5[t]=e||{})},LW=Cn,OW=Object,gf=function(t){return OW(LW(t))},kW=yA,HW=gf,DW=kW({}.hasOwnProperty),Un=Object.hasOwn||function(e,A){return DW(HW(e),A)},PW=yA,WW=0,_W=Math.random(),ZW=PW(1.1.toString),M5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+ZW(++WW+_W,36)},jW=fA,JW=a1,L5=Un,KW=M5,GW=N5,zW=S5,jo=jW.Symbol,i1=JW("wks"),YW=zW?jo.for||jo:jo&&jo.withoutSetter||KW,KA=function(t){return L5(i1,t)||(i1[t]=GW&&L5(jo,t)?jo[t]:YW("Symbol."+t)),i1[t]},XW=Ar,O5=Tr,k5=Q5,qW=Zo,$W=RW,e_=KA,t_=TypeError,A_=e_("toPrimitive"),r_=function(t,e){if(!O5(t)||k5(t))return t;var A=qW(t,A_),r;if(A){if(e===void 0&&(e="default"),r=XW(A,t,e),!O5(r)||k5(r))return r;throw new t_("Can't convert object to primitive value")}return e===void 0&&(e="number"),$W(t,e)},n_=r_,a_=Q5,H5=function(t){var e=n_(t,"string");return a_(e)?e:e+""},i_=fA,D5=Tr,o1=i_.document,o_=D5(o1)&&D5(o1.createElement),mf=function(t){return o_?o1.createElement(t):{}},s_=bn,l_=wA,c_=mf,P5=!s_&&!l_(function(){return Object.defineProperty(c_("div"),"a",{get:function(){return 7}}).a!==7}),u_=bn,f_=Ar,h_=f5,d_=Kp,p_=El,g_=H5,m_=Un,v_=P5,W5=Object.getOwnPropertyDescriptor;Cl.f=u_?W5:function(e,A){if(e=p_(e),A=g_(A),v_)try{return W5(e,A)}catch{}if(m_(e,A))return d_(!f_(h_.f,e,A),e[A])};var ta={},B_=bn,w_=wA,_5=B_&&w_(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),y_=Tr,b_=String,C_=TypeError,br=function(t){if(y_(t))return t;throw new C_(b_(t)+" is not an object")},E_=bn,U_=P5,F_=_5,vf=br,Z5=H5,N_=TypeError,s1=Object.defineProperty,S_=Object.getOwnPropertyDescriptor,l1="enumerable",c1="configurable",u1="writable";ta.f=E_?F_?function(e,A,r){if(vf(e),A=Z5(A),vf(r),typeof e=="function"&&A==="prototype"&&"value"in r&&u1 in r&&!r[u1]){var n=S_(e,A);n&&n[u1]&&(e[A]=r.value,r={configurable:c1 in r?r[c1]:n[c1],enumerable:l1 in r?r[l1]:n[l1],writable:!1})}return s1(e,A,r)}:s1:function(e,A,r){if(vf(e),A=Z5(A),vf(r),U_)try{return s1(e,A,r)}catch{}if("get"in r||"set"in r)throw new N_("Accessors not supported");return"value"in r&&(e[A]=r.value),e};var Q_=bn,x_=ta,T_=Kp,Fl=Q_?function(t,e,A){return x_.f(t,e,T_(1,A))}:function(t,e,A){return t[e]=A,t},j5={exports:{}},f1=bn,R_=Un,J5=Function.prototype,I_=f1&&Object.getOwnPropertyDescriptor,h1=R_(J5,"name"),V_=h1&&(function(){}).name==="something",M_=h1&&(!f1||f1&&I_(J5,"name").configurable),Bf={EXISTS:h1,PROPER:V_,CONFIGURABLE:M_},L_=yA,O_=xA,d1=n1,k_=L_(Function.toString);O_(d1.inspectSource)||(d1.inspectSource=function(t){return k_(t)});var p1=d1.inspectSource,H_=fA,D_=xA,K5=H_.WeakMap,P_=D_(K5)&&/native code/.test(String(K5)),W_=a1,__=M5,G5=W_("keys"),g1=function(t){return G5[t]||(G5[t]=__(t))},m1={},Z_=P_,z5=fA,j_=Tr,J_=Fl,v1=Un,B1=n1,K_=g1,G_=m1,Y5="Object already initialized",w1=z5.TypeError,z_=z5.WeakMap,wf,Nl,yf,Y_=function(t){return yf(t)?Nl(t):wf(t,{})},X_=function(t){return function(e){var A;if(!j_(e)||(A=Nl(e)).type!==t)throw new w1("Incompatible receiver, "+t+" required");return A}};if(Z_||B1.state){var Wn=B1.state||(B1.state=new z_);Wn.get=Wn.get,Wn.has=Wn.has,Wn.set=Wn.set,wf=function(t,e){if(Wn.has(t))throw new w1(Y5);return e.facade=t,Wn.set(t,e),e},Nl=function(t){return Wn.get(t)||{}},yf=function(t){return Wn.has(t)}}else{var Jo=K_("state");G_[Jo]=!0,wf=function(t,e){if(v1(t,Jo))throw new w1(Y5);return e.facade=t,J_(t,Jo,e),e},Nl=function(t){return v1(t,Jo)?t[Jo]:{}},yf=function(t){return v1(t,Jo)}}var bf={set:wf,get:Nl,has:yf,enforce:Y_,getterFor:X_},y1=yA,q_=wA,$_=xA,Cf=Un,b1=bn,e7=Bf.CONFIGURABLE,t7=p1,X5=bf,A7=X5.enforce,r7=X5.get,q5=String,Ef=Object.defineProperty,n7=y1("".slice),a7=y1("".replace),i7=y1([].join),o7=b1&&!q_(function(){return Ef(function(){},"length",{value:8}).length!==8}),s7=String(String).split("String"),l7=j5.exports=function(t,e,A){n7(q5(e),0,7)==="Symbol("&&(e="["+a7(q5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!Cf(t,"name")||e7&&t.name!==e)&&(b1?Ef(t,"name",{value:e,configurable:!0}):t.name=e),o7&&A&&Cf(A,"arity")&&t.length!==A.arity&&Ef(t,"length",{value:A.arity});try{A&&Cf(A,"constructor")&&A.constructor?b1&&Ef(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=A7(t);return Cf(r,"source")||(r.source=i7(s7,typeof e=="string"?e:"")),t};Function.prototype.toString=l7(function(){return $_(this)&&r7(this).source||t7(this)},"toString");var $5=j5.exports,c7=xA,u7=ta,f7=$5,h7=r1,xi=function(t,e,A,r){r||(r={});var n=r.enumerable,a=r.name!==void 0?r.name:e;if(c7(A)&&f7(A,a,r),r.global)n?t[e]=A:h7(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:u7.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},eb={},d7=Math.ceil,p7=Math.floor,g7=Math.trunc||function(e){var A=+e;return(A>0?p7:d7)(A)},m7=g7,Uf=function(t){var e=+t;return e!==e||e===0?0:m7(e)},v7=Uf,B7=Math.max,w7=Math.min,y7=function(t,e){var A=v7(t);return A<0?B7(A+e,0):w7(A,e)},b7=Uf,C7=Math.min,Ko=function(t){var e=b7(t);return e>0?C7(e,9007199254740991):0},E7=Ko,C1=function(t){return E7(t.length)},U7=El,F7=y7,N7=C1,tb=function(t){return function(e,A,r){var n=U7(e),a=N7(n);if(a===0)return!t&&-1;var i=F7(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}},Ab={includes:tb(!0),indexOf:tb(!1)},S7=yA,E1=Un,Q7=El,x7=Ab.indexOf,T7=m1,rb=S7([].push),nb=function(t,e){var A=Q7(t),r=0,n=[],a;for(a in A)!E1(T7,a)&&E1(A,a)&&rb(n,a);for(;e.length>r;)E1(A,a=e[r++])&&(~x7(n,a)||rb(n,a));return n},U1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],R7=nb,I7=U1,V7=I7.concat("length","prototype");eb.f=Object.getOwnPropertyNames||function(e){return R7(e,V7)};var ab={};ab.f=Object.getOwnPropertySymbols;var M7=Qi,L7=yA,O7=eb,k7=ab,H7=br,D7=L7([].concat),P7=M7("Reflect","ownKeys")||function(e){var A=O7.f(H7(e)),r=k7.f;return r?D7(A,r(e)):A},ib=Un,W7=P7,_7=Cl,Z7=ta,j7=function(t,e,A){for(var r=W7(e),n=Z7.f,a=_7.f,i=0;i<r.length;i++){var o=r[i];!ib(t,o)&&!(A&&ib(A,o))&&n(t,o,a(e,o))}},J7=wA,K7=xA,G7=/#|\.prototype\./,Sl=function(t,e){var A=Y7[z7(t)];return A===q7?!0:A===X7?!1:K7(e)?J7(e):!!e},z7=Sl.normalize=function(t){return String(t).replace(G7,".").toLowerCase()},Y7=Sl.data={},X7=Sl.NATIVE="N",q7=Sl.POLYFILL="P",ob=Sl,Ff=fA,$7=Cl.f,eZ=Fl,tZ=xi,AZ=r1,rZ=j7,nZ=ob,Cr=function(t,e){var A=t.target,r=t.global,n=t.stat,a,i,o,s,l,u;if(r?i=Ff:n?i=Ff[A]||AZ(A,{}):i=Ff[A]&&Ff[A].prototype,i)for(o in e){if(l=e[o],t.dontCallGetSet?(u=$7(i,o),s=u&&u.value):s=i[o],a=nZ(r?o:A+(n?".":"#")+o,t.forced),!a&&s!==void 0){if(typeof l==typeof s)continue;rZ(l,s)}(t.sham||s&&s.sham)&&eZ(l,"sham",!0),tZ(i,o,l,t)}},Ql=fA,aZ=Ul,iZ=Si,Nf=function(t){return aZ.slice(0,t.length)===t},sb=function(){return Nf("Bun/")?"BUN":Nf("Cloudflare-Workers")?"CLOUDFLARE":Nf("Deno/")?"DENO":Nf("Node.js/")?"NODE":Ql.Bun&&typeof Bun.version=="string"?"BUN":Ql.Deno&&typeof Deno.version=="object"?"DENO":iZ(Ql.process)==="process"?"NODE":Ql.window&&Ql.document?"BROWSER":"REST"}(),oZ=sb,Sf=oZ==="NODE",sZ=fA,lZ=sZ,cZ=yA,uZ=ea,fZ=function(t,e,A){try{return cZ(uZ(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}},hZ=Tr,dZ=function(t){return hZ(t)||t===null},pZ=dZ,gZ=String,mZ=TypeError,vZ=function(t){if(pZ(t))return t;throw new mZ("Can't set "+gZ(t)+" as a prototype")},BZ=fZ,wZ=Tr,yZ=Cn,bZ=vZ,lb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},A;try{A=BZ(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,a){return yZ(n),bZ(a),wZ(n)&&(t?A(n,a):n.__proto__=a),n}}():void 0),CZ=ta.f,EZ=Un,UZ=KA,cb=UZ("toStringTag"),Qf=function(t,e,A){t&&!A&&(t=t.prototype),t&&!EZ(t,cb)&&CZ(t,cb,{configurable:!0,value:e})},ub=$5,FZ=ta,NZ=function(t,e,A){return A.get&&ub(A.get,e,{getter:!0}),A.set&&ub(A.set,e,{setter:!0}),FZ.f(t,e,A)},SZ=Qi,QZ=NZ,xZ=KA,TZ=bn,fb=xZ("species"),RZ=function(t){var e=SZ(t);TZ&&e&&!e[fb]&&QZ(e,fb,{configurable:!0,get:function(){return this}})},IZ=hf,VZ=TypeError,MZ=function(t,e){if(IZ(e,t))return t;throw new VZ("Incorrect invocation")},LZ=KA,OZ=LZ("toStringTag"),hb={};hb[OZ]="z";var kZ=String(hb)==="[object z]",HZ=kZ,DZ=xA,xf=Si,PZ=KA,WZ=PZ("toStringTag"),_Z=Object,ZZ=xf(function(){return arguments}())==="Arguments",jZ=function(t,e){try{return t[e]}catch{}},F1=HZ?xf:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=jZ(e=_Z(t),WZ))=="string"?A:ZZ?xf(e):(r=xf(e))==="Object"&&DZ(e.callee)?"Arguments":r},JZ=yA,KZ=wA,db=xA,GZ=F1,zZ=Qi,YZ=p1,pb=function(){},gb=zZ("Reflect","construct"),N1=/^\s*(?:class|function)\b/,XZ=JZ(N1.exec),qZ=!N1.test(pb),xl=function(e){if(!db(e))return!1;try{return gb(pb,[],e),!0}catch{return!1}},mb=function(e){if(!db(e))return!1;switch(GZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qZ||!!XZ(N1,YZ(e))}catch{return!0}};mb.sham=!0;var $Z=!gb||KZ(function(){var t;return xl(xl.call)||!xl(Object)||!xl(function(){t=!0})||t})?mb:xl,e9=$Z,t9=pf,A9=TypeError,r9=function(t){if(e9(t))return t;throw new A9(t9(t)+" is not a constructor")},vb=br,n9=r9,a9=ff,i9=KA,o9=i9("species"),Bb=function(t,e){var A=vb(t).constructor,r;return A===void 0||a9(r=vb(A)[o9])?e:n9(r)},s9=cf,wb=Function.prototype,yb=wb.apply,bb=wb.call,Cb=typeof Reflect=="object"&&Reflect.apply||(s9?bb.bind(yb):function(){return bb.apply(yb,arguments)}),l9=Si,c9=yA,Tf=function(t){if(l9(t)==="Function")return c9(t)},Eb=Tf,u9=ea,f9=cf,h9=Eb(Eb.bind),S1=function(t,e){return u9(t),e===void 0?t:f9?h9(t,e):function(){return t.apply(e,arguments)}},d9=Qi,Ub=d9("document","documentElement"),p9=yA,g9=p9([].slice),m9=TypeError,v9=function(t,e){if(t<e)throw new m9("Not enough arguments");return t},B9=Ul,Fb=/(?:ipad|iphone|ipod).*applewebkit/i.test(B9),_r=fA,w9=Cb,y9=S1,Nb=xA,b9=Un,Sb=wA,Qb=Ub,C9=g9,xb=mf,E9=v9,U9=Fb,F9=Sf,Q1=_r.setImmediate,x1=_r.clearImmediate,N9=_r.process,T1=_r.Dispatch,S9=_r.Function,Tb=_r.MessageChannel,Q9=_r.String,R1=0,Tl={},Rb="onreadystatechange",Rl,Ti,I1,V1;Sb(function(){Rl=_r.location});var M1=function(t){if(b9(Tl,t)){var e=Tl[t];delete Tl[t],e()}},L1=function(t){return function(){M1(t)}},Ib=function(t){M1(t.data)},Vb=function(t){_r.postMessage(Q9(t),Rl.protocol+"//"+Rl.host)};(!Q1||!x1)&&(Q1=function(e){E9(arguments.length,1);var A=Nb(e)?e:S9(e),r=C9(arguments,1);return Tl[++R1]=function(){w9(A,void 0,r)},Ti(R1),R1},x1=function(e){delete Tl[e]},F9?Ti=function(t){N9.nextTick(L1(t))}:T1&&T1.now?Ti=function(t){T1.now(L1(t))}:Tb&&!U9?(I1=new Tb,V1=I1.port2,I1.port1.onmessage=Ib,Ti=y9(V1.postMessage,V1)):_r.addEventListener&&Nb(_r.postMessage)&&!_r.importScripts&&Rl&&Rl.protocol!=="file:"&&!Sb(Vb)?(Ti=Vb,_r.addEventListener("message",Ib,!1)):Rb in xb("script")?Ti=function(t){Qb.appendChild(xb("script"))[Rb]=function(){Qb.removeChild(this),M1(t)}}:Ti=function(t){setTimeout(L1(t),0)});var Mb={set:Q1,clear:x1},Lb=fA,x9=bn,T9=Object.getOwnPropertyDescriptor,R9=function(t){if(!x9)return Lb[t];var e=T9(Lb,t);return e&&e.value},Ob=function(){this.head=null,this.tail=null};Ob.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 kb=Ob,I9=Ul,V9=/ipad|iphone|ipod/i.test(I9)&&typeof Pebble<"u",M9=Ul,L9=/web0s(?!.*chrome)/i.test(M9),Go=fA,O9=R9,Hb=S1,O1=Mb.set,k9=kb,H9=Fb,D9=V9,P9=L9,k1=Sf,Db=Go.MutationObserver||Go.WebKitMutationObserver,Pb=Go.document,Wb=Go.process,Rf=Go.Promise,H1=O9("queueMicrotask"),zo,D1,P1,If,_b;if(!H1){var Vf=new k9,Mf=function(){var t,e;for(k1&&(t=Wb.domain)&&t.exit();e=Vf.get();)try{e()}catch(A){throw Vf.head&&zo(),A}t&&t.enter()};!H9&&!k1&&!P9&&Db&&Pb?(D1=!0,P1=Pb.createTextNode(""),new Db(Mf).observe(P1,{characterData:!0}),zo=function(){P1.data=D1=!D1}):!D9&&Rf&&Rf.resolve?(If=Rf.resolve(void 0),If.constructor=Rf,_b=Hb(If.then,If),zo=function(){_b(Mf)}):k1?zo=function(){Wb.nextTick(Mf)}:(O1=Hb(O1,Go),zo=function(){O1(Mf)}),H1=function(t){Vf.head||zo(),Vf.add(t)}}var W9=H1,_9=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},W1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Z9=fA,Lf=Z9.Promise,j9=fA,Il=Lf,J9=xA,K9=ob,G9=p1,z9=KA,Zb=sb,_1=$p;Il&&Il.prototype;var Y9=z9("species"),Z1=!1,jb=J9(j9.PromiseRejectionEvent),X9=K9("Promise",function(){var t=G9(Il),e=t!==String(Il);if(!e&&_1===66)return!0;if(!_1||_1<51||!/native code/.test(t)){var A=new Il(function(a){a(1)}),r=function(a){a(function(){},function(){})},n=A.constructor={};if(n[Y9]=r,Z1=A.then(function(){})instanceof r,!Z1)return!0}return!e&&(Zb==="BROWSER"||Zb==="DENO")&&!jb}),Vl={CONSTRUCTOR:X9,REJECTION_EVENT:jb,SUBCLASSING:Z1},Yo={},Jb=ea,q9=TypeError,$9=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new q9("Bad Promise constructor");e=r,A=n}),this.resolve=Jb(e),this.reject=Jb(A)};Yo.f=function(t){return new $9(t)};var ej=Cr,Of=Sf,Da=fA,tj=lZ,Xo=Ar,Kb=xi,Gb=lb,Aj=Qf,rj=RZ,nj=ea,kf=xA,aj=Tr,ij=MZ,oj=Bb,zb=Mb.set,j1=W9,sj=_9,lj=W1,cj=kb,Yb=bf,Hf=Lf,J1=Vl,Xb=Yo,Df="Promise",qb=J1.CONSTRUCTOR,uj=J1.REJECTION_EVENT,fj=J1.SUBCLASSING,K1=Yb.getterFor(Df),hj=Yb.set,qo=Hf&&Hf.prototype,Ri=Hf,Pf=qo,$b=Da.TypeError,G1=Da.document,z1=Da.process,Y1=Xb.f,dj=Y1,pj=!!(G1&&G1.createEvent&&Da.dispatchEvent),eC="unhandledrejection",gj="rejectionhandled",tC=0,AC=1,mj=2,X1=1,rC=2,Wf,nC,aC,iC,oC=function(t){var e;return aj(t)&&kf(e=t.then)?e:!1},sC=function(t,e){var A=e.value,r=e.state===AC,n=r?t.ok:t.fail,a=t.resolve,i=t.reject,o=t.domain,s,l,u;try{n?(r||(e.rejection===rC&&Bj(e),e.rejection=X1),n===!0?s=A:(o&&o.enter(),s=n(A),o&&(o.exit(),u=!0)),s===t.promise?i(new $b("Promise-chain cycle")):(l=oC(s))?Xo(l,s,a,i):a(s)):i(A)}catch(d){o&&!u&&o.exit(),i(d)}},lC=function(t,e){t.notified||(t.notified=!0,j1(function(){for(var A=t.reactions,r;r=A.get();)sC(r,t);t.notified=!1,e&&!t.rejection&&vj(t)}))},cC=function(t,e,A){var r,n;pj?(r=G1.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),Da.dispatchEvent(r)):r={promise:e,reason:A},!uj&&(n=Da["on"+t])?n(r):t===eC&&sj("Unhandled promise rejection",A)},vj=function(t){Xo(zb,Da,function(){var e=t.facade,A=t.value,r=uC(t),n;if(r&&(n=lj(function(){Of?z1.emit("unhandledRejection",A,e):cC(eC,e,A)}),t.rejection=Of||uC(t)?rC:X1,n.error))throw n.value})},uC=function(t){return t.rejection!==X1&&!t.parent},Bj=function(t){Xo(zb,Da,function(){var e=t.facade;Of?z1.emit("rejectionHandled",e):cC(gj,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=mj,lC(t,!0))},q1=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new $b("Promise can't be resolved itself");var r=oC(e);r?j1(function(){var n={done:!1};try{Xo(r,e,$o(q1,n,t),$o(es,n,t))}catch(a){es(n,a,t)}}):(t.value=e,t.state=AC,lC(t,!1))}catch(n){es({done:!1},n,t)}}};if(qb&&(Ri=function(e){ij(this,Pf),nj(e),Xo(Wf,this);var A=K1(this);try{e($o(q1,A),$o(es,A))}catch(r){es(A,r)}},Pf=Ri.prototype,Wf=function(e){hj(this,{type:Df,done:!1,notified:!1,parent:!1,reactions:new cj,rejection:!1,state:tC,value:null})},Wf.prototype=Kb(Pf,"then",function(e,A){var r=K1(this),n=Y1(oj(this,Ri));return r.parent=!0,n.ok=kf(e)?e:!0,n.fail=kf(A)&&A,n.domain=Of?z1.domain:void 0,r.state===tC?r.reactions.add(n):j1(function(){sC(n,r)}),n.promise}),nC=function(){var t=new Wf,e=K1(t);this.promise=t,this.resolve=$o(q1,e),this.reject=$o(es,e)},Xb.f=Y1=function(t){return t===Ri||t===aC?new nC(t):dj(t)},kf(Hf)&&qo!==Object.prototype)){iC=qo.then,fj||Kb(qo,"then",function(e,A){var r=this;return new Ri(function(n,a){Xo(iC,r,n,a)}).then(e,A)},{unsafe:!0});try{delete qo.constructor}catch{}Gb&&Gb(qo,Pf)}ej({global:!0,constructor:!0,wrap:!0,forced:qb},{Promise:Ri}),aC=tj.Promise,Aj(Ri,Df,!1),rj(Df);var Ml={},wj=KA,yj=Ml,bj=wj("iterator"),Cj=Array.prototype,Ej=function(t){return t!==void 0&&(yj.Array===t||Cj[bj]===t)},Uj=F1,fC=Zo,Fj=ff,Nj=Ml,Sj=KA,Qj=Sj("iterator"),hC=function(t){if(!Fj(t))return fC(t,Qj)||fC(t,"@@iterator")||Nj[Uj(t)]},xj=Ar,Tj=ea,Rj=br,Ij=pf,Vj=hC,Mj=TypeError,Lj=function(t,e){var A=arguments.length<2?Vj(t):e;if(Tj(A))return Rj(xj(A,t));throw new Mj(Ij(t)+" is not iterable")},Oj=Ar,dC=br,kj=Zo,Hj=function(t,e,A){var r,n;dC(t);try{if(r=kj(t,"return"),!r){if(e==="throw")throw A;return A}r=Oj(r,t)}catch(a){n=!0,r=a}if(e==="throw")throw A;if(n)throw r;return dC(r),A},Dj=S1,Pj=Ar,Wj=br,_j=pf,Zj=Ej,jj=C1,pC=hf,Jj=Lj,Kj=hC,gC=Hj,Gj=TypeError,_f=function(t,e){this.stopped=t,this.result=e},mC=_f.prototype,vC=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=Dj(e,r),l,u,d,g,h,y,w,b=function(C){return l&&gC(l,"normal"),new _f(!0,C)},v=function(C){return n?(Wj(C),o?s(C[0],C[1],b):s(C[0],C[1])):o?s(C,b):s(C)};if(a)l=t.iterator;else if(i)l=t;else{if(u=Kj(t),!u)throw new Gj(_j(t)+" is not iterable");if(Zj(u)){for(d=0,g=jj(t);g>d;d++)if(h=v(t[d]),h&&pC(mC,h))return h;return new _f(!1)}l=Jj(t,u)}for(y=a?t.next:l.next;!(w=Pj(y,l)).done;){try{h=v(w.value)}catch(C){gC(l,"throw",C)}if(typeof h=="object"&&h&&pC(mC,h))return h}return new _f(!1)},zj=KA,BC=zj("iterator"),wC=!1;try{var Yj=0,yC={next:function(){return{done:!!Yj++}},return:function(){wC=!0}};yC[BC]=function(){return this},Array.from(yC,function(){throw 2})}catch{}var Xj=function(t,e){try{if(!e&&!wC)return!1}catch{return!1}var A=!1;try{var r={};r[BC]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A},qj=Lf,$j=Xj,eJ=Vl.CONSTRUCTOR,bC=eJ||!$j(function(t){qj.all(t).then(void 0,function(){})}),tJ=Cr,AJ=Ar,rJ=ea,nJ=Yo,aJ=W1,iJ=vC,oJ=bC;tJ({target:"Promise",stat:!0,forced:oJ},{all:function(e){var A=this,r=nJ.f(A),n=r.resolve,a=r.reject,i=aJ(function(){var o=rJ(A.resolve),s=[],l=0,u=1;iJ(e,function(d){var g=l++,h=!1;u++,AJ(o,A,d).then(function(y){h||(h=!0,s[g]=y,--u||n(s))},a)}),--u||n(s)});return i.error&&a(i.value),r.promise}});var sJ=Cr,lJ=Vl.CONSTRUCTOR,$1=Lf,cJ=Qi,uJ=xA,fJ=xi,CC=$1&&$1.prototype;if(sJ({target:"Promise",proto:!0,forced:lJ,real:!0},{catch:function(t){return this.then(void 0,t)}}),uJ($1)){var EC=cJ("Promise").prototype.catch;CC.catch!==EC&&fJ(CC,"catch",EC,{unsafe:!0})}var hJ=Cr,dJ=Ar,pJ=ea,gJ=Yo,mJ=W1,vJ=vC,BJ=bC;hJ({target:"Promise",stat:!0,forced:BJ},{race:function(e){var A=this,r=gJ.f(A),n=r.reject,a=mJ(function(){var i=pJ(A.resolve);vJ(e,function(o){dJ(i,A,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var wJ=Cr,yJ=Yo,bJ=Vl.CONSTRUCTOR;wJ({target:"Promise",stat:!0,forced:bJ},{reject:function(e){var A=yJ.f(this),r=A.reject;return r(e),A.promise}});var CJ=br,EJ=Tr,UJ=Yo,FJ=function(t,e){if(CJ(t),EJ(e)&&e.constructor===t)return e;var A=UJ.f(t),r=A.resolve;return r(e),A.promise},NJ=Cr,SJ=Qi,QJ=Vl.CONSTRUCTOR,xJ=FJ;SJ("Promise"),NJ({target:"Promise",stat:!0,forced:QJ},{resolve:function(e){return xJ(this,e)}});function UC(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){UC(a,r,n,i,o,"next",s)}function o(s){UC(a,r,n,i,o,"throw",s)}i(void 0)})}}var TJ=F1,RJ=String,_n=function(t){if(TJ(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return RJ(t)},IJ=br,FC=function(){var t=IJ(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},eg=wA,VJ=fA,tg=VJ.RegExp,Ag=eg(function(){var t=tg("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),MJ=Ag||eg(function(){return!tg("a","y").sticky}),LJ=Ag||eg(function(){var t=tg("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),NC={BROKEN_CARET:LJ,MISSED_STICKY:MJ,UNSUPPORTED_Y:Ag},SC={},OJ=nb,kJ=U1,HJ=Object.keys||function(e){return OJ(e,kJ)},DJ=bn,PJ=_5,WJ=ta,_J=br,ZJ=El,jJ=HJ;SC.f=DJ&&!PJ?Object.defineProperties:function(e,A){_J(e);for(var r=ZJ(A),n=jJ(A),a=n.length,i=0,o;a>i;)WJ.f(e,o=n[i++],r[o]);return e};var JJ=br,KJ=SC,QC=U1,GJ=m1,zJ=Ub,YJ=mf,XJ=g1,xC=">",TC="<",rg="prototype",ng="script",RC=XJ("IE_PROTO"),ag=function(){},IC=function(t){return TC+ng+xC+t+TC+"/"+ng+xC},VC=function(t){t.write(IC("")),t.close();var e=t.parentWindow.Object;return t=null,e},qJ=function(){var t=YJ("iframe"),e="java"+ng+":",A;return t.style.display="none",zJ.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(IC("document.F=Object")),A.close(),A.F},Zf,jf=function(){try{Zf=new ActiveXObject("htmlfile")}catch{}jf=typeof document<"u"?document.domain&&Zf?VC(Zf):qJ():VC(Zf);for(var t=QC.length;t--;)delete jf[rg][QC[t]];return jf()};GJ[RC]=!0;var ig=Object.create||function(e,A){var r;return e!==null?(ag[rg]=JJ(e),r=new ag,ag[rg]=null,r[RC]=e):r=jf(),A===void 0?r:KJ.f(r,A)},$J=wA,eK=fA,tK=eK.RegExp,AK=$J(function(){var t=tK(".","s");return!(t.dotAll&&t.test(`
317
317
  `)&&t.flags==="s")}),rK=wA,nK=fA,aK=nK.RegExp,iK=rK(function(){var t=aK("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ts=Ar,Jf=yA,oK=_n,sK=FC,lK=NC,cK=a1,uK=ig,fK=bf.get,hK=AK,dK=iK,pK=cK("native-string-replace",String.prototype.replace),Kf=RegExp.prototype.exec,og=Kf,gK=Jf("".charAt),mK=Jf("".indexOf),vK=Jf("".replace),sg=Jf("".slice),lg=function(){var t=/a/,e=/b*/g;return ts(Kf,t,"a"),ts(Kf,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),MC=lK.BROKEN_CARET,cg=/()??/.exec("")[1]!==void 0,BK=lg||cg||MC||hK||dK;BK&&(og=function(e){var A=this,r=fK(A),n=oK(e),a=r.raw,i,o,s,l,u,d,g;if(a)return a.lastIndex=A.lastIndex,i=ts(og,a,n),A.lastIndex=a.lastIndex,i;var h=r.groups,y=MC&&A.sticky,w=ts(sK,A),b=A.source,v=0,C=n;if(y&&(w=vK(w,"y",""),mK(w,"g")===-1&&(w+="g"),C=sg(n,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&gK(n,A.lastIndex-1)!==`