Files
eip4-web/public/sdk-local/barcode.js
zhengwr b3486c093e feat: P4-3 eip4-web 前端渲染宿主脚手架(amis 6.13.0 本地化/登录JWT/待办/双闸渲染闸)
- 脚手架:React 18 + Vite 5 + TS;amis 6.13.0 本地 SDK(public/sdk-local,不依赖 CDN,
  照 PoC amis-local.html 范式 amisRequire('amis/embed'))
- 登录页:POST /api/auth/login + JWT 存储(内存+localStorage 折中,XSS 权衡见 README/token.ts)
- 页面渲染 /page/:templateId:取转换后 schema 渲染;开发期静态 mock(public/schemas/ 放
  角色维护/通知管理归档/用户组管理 3 个真实转换产物,均过官方 schema.json 校验闸);
  生产期 schema 接口契约已设计(VITE_SCHEMA_SOURCE 切换)
- 待办页 /todo:GET /api/todo + 503 熔断降级展示
- amis fetcher 适配:复用宿主 axios 注入 Bearer,对接 /api/entity amis CRUD 格式
- axios 拦截器:Bearer 注入 + 401 清会话跳登录
- 联调验证(playwright 无头):登录跳转→渲染用户组(本地库 3 行)→角色维护(真实产物)→
  待办 503 降级→401 跳登录(prod 严格链 8090),5 张截图留 docs/
- 工程化:npm run build → dist/(应用 208KB/gzip 71KB + 本地 SDK 61MB,Nginx 可托管);
  README/报告/gitignore

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 16:13:17 +08:00

108 lines
69 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
;/*!node_modules/jsbarcode/bin/barcodes/Barcode.js*/
amis.define("1028385",(function(t,e,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=n.text||e,this.options=n}}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE39/index.js*/
amis.define("c9bd5b4",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE39=void 0;var o,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("1028385");var a=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e.toUpperCase(),n.mod43&&(e+=function(e){return f[e]}(function(e){for(var t=0,n=0;n<e.length;n++)t+=s(e[n]);return t%=43}(e))),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"encode",value:function(){for(var e=l("*"),t=0;t<this.data.length;t++)e+=l(this.data[t])+"0";return{data:e+=l("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default),f=["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","-","."," ","$","/","+","%","*"],c=[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 l(e){return function(e){return c[e].toString(2)}(s(e))}function s(e){return f.indexOf(e)}t.CODE39=a}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/constants.js*/
amis.define("5be8254",(function(e,r,S,_){"use strict";var A;function C(e,r,S){return r in e?Object.defineProperty(e,r,{value:S,enumerable:!0,configurable:!0,writable:!0}):e[r]=S,e}Object.defineProperty(r,"__esModule",{value:!0});var T=r.SET_A=0,n=r.SET_B=1,i=r.SET_C=2,t=(r.SHIFT=98,r.START_A=103),R=r.START_B=104,o=r.START_C=105;r.MODULO=103,r.STOP=106,r.FNC1=207,r.SET_BY_CODE=(C(A={},t,T),C(A,R,n),C(A,o,i),A),r.SWAP={101:T,100:n,99:i},r.A_START_CHAR=String.fromCharCode(208),r.B_START_CHAR=String.fromCharCode(209),r.C_START_CHAR=String.fromCharCode(210),r.A_CHARS="[\0-_È-Ï]",r.B_CHARS="[ -È-Ï]",r.C_CHARS="(Ï*[0-9]{2}Ï*)",r.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]}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js*/
amis.define("b0cca57",(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=e("1028385"),a=(o=u)&&o.__esModule?o:{default:o},s=e("5be8254");var c=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.substring(1),r));return n.bytes=e.split("").map((function(e){return e.charCodeAt(0)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.bytes,r=e.shift()-105,n=s.SET_BY_CODE[r];if(void 0===n)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&e.unshift(s.FNC1);var o=t.next(e,1,n);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(r)+o.result+t.getBar((o.checksum+r)%s.MODULO)+t.getBar(s.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var e=this.options.ean128||!1;return"string"==typeof e&&(e="true"===e.toLowerCase()),e}}],[{key:"getBar",value:function(e){return s.BARS[e]?s.BARS[e].toString():""}},{key:"correctIndex",value:function(e,t){if(t===s.SET_A){var r=e.shift();return r<32?r+64:r-32}return t===s.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:"next",value:function(e,r,n){if(!e.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(e[0]>=200){i=e.shift()-105;var u=s.SWAP[i];void 0!==u?o=t.next(e,r+1,u):(n!==s.SET_A&&n!==s.SET_B||i!==s.SHIFT||(e[0]=n===s.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),o=t.next(e,r+1,n))}else i=t.correctIndex(e,n),o=t.next(e,r+1,n);var a=i*r;return{result:t.getBar(i)+o.result,checksum:a+o.checksum}}}]),t}(a.default);t.default=c}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/auto.js*/
amis.define("235d4ef",(function(e,n,r,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=e("5be8254"),i=function(e){return e.match(new RegExp("^"+u.A_CHARS+"*"))[0].length},C=function(e){return e.match(new RegExp("^"+u.B_CHARS+"*"))[0].length},g=function(e){return e.match(new RegExp("^"+u.C_CHARS+"*"))[0]};function a(e,n){var r=n?u.A_CHARS:u.B_CHARS,t=e.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(t)return t[1]+String.fromCharCode(204)+f(e.substring(t[1].length));var i=e.match(new RegExp("^"+r+"+"))[0];return i.length===e.length?e:i+String.fromCharCode(n?205:206)+a(e.substring(i.length),!n)}function f(e){var n=g(e),r=n.length;if(r===e.length)return e;e=e.substring(r);var t=i(e)>=C(e);return n+String.fromCharCode(t?206:205)+a(e,t)}n.default=function(e){var n=void 0;if(g(e).length>=2)n=u.C_START_CHAR+f(e);else{var r=i(e)>C(e);n=(r?u.A_START_CHAR:u.B_START_CHAR)+a(e,r)}return n.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(e,n){return String.fromCharCode(203)+n}))}}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/CODE128_AUTO.js*/
amis.define("dc0bdf2",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(e("b0cca57")),f=i(e("235d4ef"));function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(e,o){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,f.default)(e),o));else n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return c(n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default);t.default=u}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/CODE128A.js*/
amis.define("55bfc45",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("b0cca57"),a=(o=i)&&o.__esModule?o:{default:o},c=e("5be8254");var f=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.A_START_CHAR+e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"valid",value:function(){return new RegExp("^"+c.A_CHARS+"+$").test(this.data)}}]),t}(a.default);t.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/CODE128B.js*/
amis.define("a8c380d",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("b0cca57"),a=(o=i)&&o.__esModule?o:{default:o},c=e("5be8254");var f=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.B_START_CHAR+e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"valid",value:function(){return new RegExp("^"+c.B_CHARS+"+$").test(this.data)}}]),t}(a.default);t.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/CODE128C.js*/
amis.define("e1c29ba",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("b0cca57"),a=(o=i)&&o.__esModule?o:{default:o},c=e("5be8254");var f=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.C_START_CHAR+e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"valid",value:function(){return new RegExp("^"+c.C_CHARS+"+$").test(this.data)}}]),t}(a.default);t.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE128/index.js*/
amis.define("4d0a354",(function(e,d,t,u){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.CODE128C=d.CODE128B=d.CODE128A=d.CODE128=void 0;var a=c(e("dc0bdf2")),f=c(e("55bfc45")),C=c(e("a8c380d")),O=c(e("e1c29ba"));function c(e){return e&&e.__esModule?e:{default:e}}d.CODE128=a.default,d.CODE128A=f.default,d.CODE128B=C.default,d.CODE128C=O.default}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js*/
amis.define("4fbd2f5",(function(L,G,e,E){"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.SIDE_BIN="101",G.MIDDLE_BIN="01010",G.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"]},G.EAN2_STRUCTURE=["LL","LG","GL","GG"],G.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],G.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js*/
amis.define("8189727",(function(n,e,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var u=n("4fbd2f5");e.default=function(n,e,t){var r=n.split("").map((function(n,t){return u.BINARIES[e[t]]})).map((function(e,t){return e?e[n[t]]:""}));if(t){var i=n.length-1;r=r.map((function(n,e){return e<i?n+t:n}))}return r.join("")}}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN.js*/
amis.define("718299a",(function(t,e,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=t("4fbd2f5"),u=a(t("8189727"));function a(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.fontSize=!n.flat&&n.fontSize>10*n.width?10*n.width:n.fontSize,o.guardHeight=n.height+o.fontSize/2+n.textMargin,o}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),r(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,u.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,u.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:i.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:i.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:i.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[i.SIDE_BIN,this.leftEncode(),i.MIDDLE_BIN,this.rightEncode(),i.SIDE_BIN].join(""),text:this.text}}}]),e}(a(t("1028385")).default);e.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN13.js*/
amis.define("c0ea39a",(function(t,e,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=function(){function t(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,o,r){return o&&t(e.prototype,o),r&&t(e,r),e}}(),a=function t(e,o,r){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,o,r)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(r):void 0},u=t("4fbd2f5"),s=t("718299a"),c=(n=s)&&n.__esModule?n:{default:n};var p=function(t){return(10-t.substr(0,12).split("").map((function(t){return+t})).reduce((function(t,e,o){return o%2?t+3*e:t+e}),0)%10)%10},l=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=p(t));var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));return r.lastChar=o.lastChar,r}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===p(this.data)}},{key:"leftText",value:function(){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),o=u.EAN13_STRUCTURE[this.data[0]];return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,o)}},{key:"rightText",value:function(){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(c.default);e.default=l}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN8.js*/
amis.define("ddb8f8b",(function(t,e,r,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=function(){function t(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),e}}(),u=function t(e,r,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,r);if(void 0===n){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,o)}if("value"in n)return n.value;var u=n.get;return void 0!==u?u.call(o):void 0},a=t("718299a"),c=(n=a)&&n.__esModule?n:{default:n};var f=function(t){return(10-t.substr(0,7).split("").map((function(t){return+t})).reduce((function(t,e,r){return r%2?t+e:t+3*e}),0)%10)%10},l=function(t){function e(t,r){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=f(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===f(this.data)}},{key:"leftText",value:function(){return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(c.default);e.default=l}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN5.js*/
amis.define("efaad5c",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=e("4fbd2f5"),a=f(e("8189727")),i=f(e("1028385"));function f(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var e,t=u.EAN5_STRUCTURE[(e=this.data,e.split("").map((function(e){return+e})).reduce((function(e,t,n){return n%2?e+9*t:e+3*t}),0)%10)];return{data:"1011"+(0,a.default)(this.data,t,"01"),text:this.text}}}]),t}(i.default);t.default=c}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN2.js*/
amis.define("54fa917",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("4fbd2f5"),u=i(e("8189727"));function i(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var e=a.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,u.default)(this.data,e,"01"),text:this.text}}}]),t}(i(e("1028385")).default);t.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPC.js*/
amis.define("edd8fb4",(function(t,e,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();e.checksum=u;var o=r(t("8189727"));function r(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{11}$/)&&(t+=u(t));var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.displayValue=i.displayValue,i.fontSize>10*i.width?n.fontSize=10*i.width:n.fontSize=i.fontSize,n.guardHeight=i.height+n.fontSize/2+i.textMargin,n}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),a(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==u(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,o.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,o.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,o.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,o.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(r(t("1028385")).default);function u(t){var e,i=0;for(e=1;e<11;e+=2)i+=parseInt(t[e]);for(e=0;e<11;e+=2)i+=3*parseInt(t[e]);return(10-i%10)%10}e.default=s}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPCE.js*/
amis.define("3fc44e6",(function(t,e,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=s(t("8189727")),u=s(t("1028385")),a=t("edd8fb4");function s(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],E=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=O(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));if(n.isValid=!1,-1!==t.search(/^[0-9]{6}$/))n.middleDigits=t,n.upcA=c(t,"0"),n.text=i.text||""+n.upcA[0]+t+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return O(n);if(n.middleDigits=t.substring(1,t.length-1),n.upcA=c(n.middleDigits,t[0]),n.upcA[n.upcA.length-1]!==t[t.length-1])return O(n);n.isValid=!0}return n.displayValue=i.displayValue,i.fontSize>10*i.width?n.fontSize=10*i.width:n.fontSize=i.fontSize,n.guardHeight=i.height+n.fontSize/2+i.textMargin,n}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),r(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 t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],i=E[parseInt(e)][parseInt(t)];return(0,o.default)(this.middleDigits,i)}}]),e}(u.default);function c(t,e){for(var i=parseInt(t[t.length-1]),n=l[i],r="",o=0,u=0;u<n.length;u++){var s=n[u];r+="X"===s?t[o++]:s}return""+(r=""+e+r)+(0,a.checksum)(r)}e.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js*/
amis.define("904d95f",(function(e,d,f,a){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.UPCE=d.UPC=d.EAN2=d.EAN5=d.EAN8=d.EAN13=void 0;var t=c(e("c0ea39a")),u=c(e("ddb8f8b")),l=c(e("efaad5c")),E=c(e("54fa917")),A=c(e("edd8fb4")),N=c(e("3fc44e6"));function c(e){return e&&e.__esModule?e:{default:e}}d.EAN13=t.default,d.EAN8=u.default,d.EAN5=l.default,d.EAN2=E.default,d.UPC=A.default,d.UPCE=N.default}));
;/*!node_modules/jsbarcode/bin/barcodes/ITF/constants.js*/
amis.define("4ee25da",(function(e,i,t,d){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.START_BIN="1010",i.END_BIN="11101",i.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]}));
;/*!node_modules/jsbarcode/bin/barcodes/ITF/ITF.js*/
amis.define("8991894",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("4ee25da"),u=e("1028385");function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var e=this,t=this.data.match(/.{2}/g).map((function(t){return e.encodePair(t)})).join("");return{data:a.START_BIN+t+a.END_BIN,text:this.text}}},{key:"encodePair",value:function(e){var t=a.BINARIES[e[1]];return a.BINARIES[e[0]].split("").map((function(e,n){return("1"===e?"111":"1")+("1"===t[n]?"000":"0")})).join("")}}]),t}(((o=u)&&o.__esModule?o:{default:o}).default);t.default=l}));
;/*!node_modules/jsbarcode/bin/barcodes/ITF/ITF14.js*/
amis.define("0eb4c70",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("8991894"),a=(o=i)&&o.__esModule?o:{default:o};var c=function(e){var t=e.substr(0,13).split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t,n){return e+t*(3-n%2*2)}),0);return 10*Math.ceil(t/10)-t},f=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),-1!==e.search(/^[0-9]{13}$/)&&(e+=c(e)),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===c(this.data)}}]),t}(a.default);t.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/ITF/index.js*/
amis.define("8eb031c",(function(e,t,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0;var f=n(e("8991894")),i=n(e("0eb4c70"));function n(e){return e&&e.__esModule?e:{default:e}}t.ITF=f.default,t.ITF14=i.default}));
;/*!node_modules/jsbarcode/bin/barcodes/MSI/MSI.js*/
amis.define("7677064",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("1028385");var u=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"encode",value:function(){for(var e="110",t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=f(n,4-n.length);for(var r=0;r<n.length;r++)e+="0"==n[r]?"100":"110"}return{data:e+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);function f(e,t){for(var n=0;n<t;n++)e="0"+e;return e}t.default=u}));
;/*!node_modules/jsbarcode/bin/barcodes/MSI/checksums.js*/
amis.define("22627e0",(function(e,n,t,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mod10=function(e){for(var n=0,t=0;t<e.length;t++){var r=parseInt(e[t]);(t+e.length)%2==0?n+=r:n+=2*r%10+Math.floor(2*r/10)}return(10-n%10)%10},n.mod11=function(e){for(var n=0,t=[2,3,4,5,6,7],r=0;r<e.length;r++){var o=parseInt(e[e.length-1-r]);n+=t[r%t.length]*o}return(11-n%11)%11}}));
;/*!node_modules/jsbarcode/bin/barcodes/MSI/MSI10.js*/
amis.define("4a9d79f",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=e("7677064"),f=(r=i)&&r.__esModule?r:{default:r},u=e("22627e0");var c=function(e){function t(e,o){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,u.mod10)(e),o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(f.default);t.default=c}));
;/*!node_modules/jsbarcode/bin/barcodes/MSI/MSI11.js*/
amis.define("c96784a",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=e("7677064"),u=(r=i)&&r.__esModule?r:{default:r},c=e("22627e0");var f=function(e){function t(e,o){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,c.mod11)(e),o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(u.default);t.default=f}));
;/*!node_modules/jsbarcode/bin/barcodes/MSI/MSI1010.js*/
amis.define("aaa0cbf",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=e("7677064"),f=(r=i)&&r.__esModule?r:{default:r},u=e("22627e0");var a=function(e){function t(e,o){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e+=(0,u.mod10)(e),e+=(0,u.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(f.default);t.default=a}));
;/*!node_modules/jsbarcode/bin/barcodes/MSI/MSI1110.js*/
amis.define("d273288",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=e("7677064"),u=(r=i)&&r.__esModule?r:{default:r},f=e("22627e0");var c=function(e){function t(e,o){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e+=(0,f.mod11)(e),e+=(0,f.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(u.default);t.default=c}));
;/*!node_modules/jsbarcode/bin/barcodes/MSI/index.js*/
amis.define("f678942",(function(e,a,d,f){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.MSI1110=a.MSI1010=a.MSI11=a.MSI10=a.MSI=void 0;var t=l(e("7677064")),u=l(e("4a9d79f")),M=l(e("c96784a")),I=l(e("aaa0cbf")),S=l(e("d273288"));function l(e){return e&&e.__esModule?e:{default:e}}a.MSI=t.default,a.MSI10=u.default,a.MSI11=M.default,a.MSI1010=I.default,a.MSI1110=S.default}));
;/*!node_modules/jsbarcode/bin/barcodes/pharmacode/index.js*/
amis.define("fb057b2",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pharmacode=void 0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=e("1028385");var a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.number=parseInt(e,10),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"encode",value:function(){for(var e=this.number,t="";!isNaN(e)&&0!=e;)e%2==0?(t="11100"+t,e=(e-2)/2):(t="100"+t,e=(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(((o=u)&&o.__esModule?o:{default:o}).default);t.pharmacode=a}));
;/*!node_modules/jsbarcode/bin/barcodes/codabar/index.js*/
amis.define("14eed65",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codabar=void 0;var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("1028385");var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),0===e.search(/^[0-9\-\$\:\.\+\/]+$/)&&(e="A"+e+"A");var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push("0");return{text:this.text,data:e.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"}}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.codabar=u}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE93/constants.js*/
amis.define("41c5424",(function($,e,S,B){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.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","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],e.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"],e.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"":["($)","G"],"\b":["($)","H"],"\t":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"":["(%)","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"]}}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE93/CODE93.js*/
amis.define("2116c49",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=e("41c5424"),i=e("1028385");var a=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.data.split("").flatMap((function(e){return c.MULTI_SYMBOLS[e]||e})),n=e.map((function(e){return t.getEncoding(e)})).join(""),r=t.checksum(e,20),o=t.checksum(e.concat(r),15);return{text:this.text,data:t.getEncoding("ÿ")+n+t.getEncoding(r)+t.getEncoding(o)+t.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(e){return c.BINARIES[t.symbolValue(e)]}},{key:"getSymbol",value:function(e){return c.SYMBOLS[e]}},{key:"symbolValue",value:function(e){return c.SYMBOLS.indexOf(e)}},{key:"checksum",value:function(e,n){var r=e.slice().reverse().reduce((function(e,r,o){var u=o%n+1;return e+t.symbolValue(r)*u}),0);return t.getSymbol(r%47)}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE93/CODE93FullASCII.js*/
amis.define("e5391e4",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("2116c49");var a=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a}));
;/*!node_modules/jsbarcode/bin/barcodes/CODE93/index.js*/
amis.define("a753785",(function(e,u,l,t){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CODE93FullASCII=u.CODE93=void 0;var d=f(e("2116c49")),a=f(e("e5391e4"));function f(e){return e&&e.__esModule?e:{default:e}}u.CODE93=d.default,u.CODE93FullASCII=a.default}));
;/*!node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js*/
amis.define("d557198",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericBarcode=void 0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=e("1028385");var c=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(((o=u)&&o.__esModule?o:{default:o}).default);t.GenericBarcode=c}));
;/*!node_modules/jsbarcode/bin/barcodes/index.js*/
amis.define("77954fe",(function(E,e,C,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=E("c9bd5b4"),d=E("4d0a354"),O=E("904d95f"),D=E("8eb031c"),c=E("f678942"),r=E("fb057b2"),A=E("14eed65"),S=E("a753785"),M=E("d557198");e.default={CODE39:a.CODE39,CODE128:d.CODE128,CODE128A:d.CODE128A,CODE128B:d.CODE128B,CODE128C:d.CODE128C,EAN13:O.EAN13,EAN8:O.EAN8,EAN5:O.EAN5,EAN2:O.EAN2,UPC:O.UPC,UPCE:O.UPCE,ITF14:D.ITF14,ITF:D.ITF,MSI:c.MSI,MSI10:c.MSI10,MSI11:c.MSI11,MSI1010:c.MSI1010,MSI1110:c.MSI1110,pharmacode:r.pharmacode,codabar:A.codabar,CODE93:S.CODE93,CODE93FullASCII:S.CODE93FullASCII,GenericBarcode:M.GenericBarcode}}));
;/*!node_modules/jsbarcode/bin/help/merge.js*/
amis.define("112725c",(function(e,r,t,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};r.default=function(e,r){return a({},e,r)}}));
;/*!node_modules/jsbarcode/bin/help/linearizeEncodings.js*/
amis.define("7477083",(function(e,t,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return function e(r){if(Array.isArray(r))for(var a=0;a<r.length;a++)e(r[a]);else r.text=r.text||"",r.data=r.data||"",t.push(r)}(e),t}}));
;/*!node_modules/jsbarcode/bin/help/fixOptions.js*/
amis.define("c316c6a",(function(i,n,r,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(i){return i.marginTop=i.marginTop||i.margin,i.marginBottom=i.marginBottom||i.margin,i.marginRight=i.marginRight||i.margin,i.marginLeft=i.marginLeft||i.margin,i}}));
;/*!node_modules/jsbarcode/bin/help/optionsFromStrings.js*/
amis.define("cd95520",(function(e,t,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var i in t)t.hasOwnProperty(i)&&(i=t[i],"string"==typeof e[i]&&(e[i]=parseInt(e[i],10)));"string"==typeof e.displayValue&&(e.displayValue="false"!=e.displayValue);return e}}));
;/*!node_modules/jsbarcode/bin/options/defaults.js*/
amis.define("03ae8a1",(function(t,i,o,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={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(){}};i.default=n}));
;/*!node_modules/jsbarcode/bin/help/getOptionsFromElement.js*/
amis.define("5a89be2",(function(e,t,a,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=d(e("cd95520")),o=d(e("03ae8a1"));function d(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t={};for(var a in o.default)o.default.hasOwnProperty(a)&&(e.hasAttribute("jsbarcode-"+a.toLowerCase())&&(t[a]=e.getAttribute("jsbarcode-"+a.toLowerCase())),e.hasAttribute("data-"+a.toLowerCase())&&(t[a]=e.getAttribute("data-"+a.toLowerCase())));return t.value=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),t=(0,u.default)(t)}}));
;/*!node_modules/jsbarcode/bin/renderers/shared.js*/
amis.define("b95cbc9",(function(t,e,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var a,o=t("112725c"),r=(a=o)&&a.__esModule?a:{default:a};function g(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function d(t,e,n){if(n.displayValue&&e<t){if("center"==n.textAlign)return Math.floor((t-e)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(t-e)}return 0}function u(t,e,n){var i;if(n)i=n;else{if("undefined"==typeof document)return 0;i=document.createElement("canvas").getContext("2d")}i.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=i.measureText(t);return a?a.width:0}e.getMaximumHeightOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e},e.getEncodingHeight=g,e.getBarcodePadding=d,e.calculateEncodingAttributes=function(t,e,n){for(var i=0;i<t.length;i++){var a,o=t[i],f=(0,r.default)(e,o.options);a=f.displayValue?u(o.text,f,n):0;var c=o.data.length*f.width;o.width=Math.ceil(Math.max(a,c)),o.height=g(o,f),o.barcodePadding=d(a,c,f)}},e.getTotalWidthOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}}));
;/*!node_modules/jsbarcode/bin/renderers/canvas.js*/
amis.define("477b1ef",(function(t,n,e,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a,s=function(){function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(n,e,i){return e&&t(n.prototype,e),i&&t(n,i),n}}(),o=t("112725c"),r=(a=o)&&a.__esModule?a:{default:a},h=t("b95cbc9");var c=function(){function t(n,e,i){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=n,this.encodings=e,this.options=i}return s(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var n=(0,r.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(n,this.encodings[t]),this.drawCanvasText(n,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,h.calculateEncodingAttributes)(this.encodings,this.options,t);var n=(0,h.getTotalWidthOfEncodings)(this.encodings),e=(0,h.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=n+this.options.marginLeft+this.options.marginRight,this.canvas.height=e,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,n){var e,i=this.canvas.getContext("2d"),a=n.data;e="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,i.fillStyle=t.lineColor;for(var s=0;s<a.length;s++){var o=s*t.width+n.barcodePadding;"1"===a[s]?i.fillRect(o,e,t.width,t.height):a[s]&&i.fillRect(o,e,t.width,t.height*a[s])}}},{key:"drawCanvasText",value:function(t,n){var e,i,a=this.canvas.getContext("2d"),s=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(i="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,a.font=s,"left"==t.textAlign||n.barcodePadding>0?(e=0,a.textAlign="left"):"right"==t.textAlign?(e=n.width-1,a.textAlign="right"):(e=n.width/2,a.textAlign="center"),a.fillText(n.text,e,i))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();n.default=c}));
;/*!node_modules/jsbarcode/bin/renderers/svg.js*/
amis.define("3067a8b",(function(t,e,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=t("112725c"),a=(r=o)&&r.__esModule?r:{default:r},u=t("b95cbc9");var h="http://www.w3.org/2000/svg",d=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svg=e,this.encodings=i,this.options=n,this.document=n.xmlDocument||document}return s(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var i=this.encodings[e],n=(0,a.default)(this.options,i.options),r=this.createGroup(t,n.marginTop,this.svg);this.setGroupOptions(r,n),this.drawSvgBarcode(r,n,i),this.drawSVGText(r,n,i),t+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,u.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,u.getTotalWidthOfEncodings)(this.encodings),e=(0,u.getMaximumHeightOfEncodings)(this.encodings),i=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,e),this.options.background&&this.drawRect(0,0,i,e,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(t,e,i){var n,r=i.data;n="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var s=0,o=0,a=0;a<r.length;a++)o=a*e.width+i.barcodePadding,"1"===r[a]?s++:s>0&&(this.drawRect(o-e.width*s,n,e.width*s,e.height,t),s=0);s>0&&this.drawRect(o-e.width*(s-1),n,e.width*s,e.height,t)}},{key:"drawSVGText",value:function(t,e,i){var n,r,s=this.document.createElementNS(h,"text");e.displayValue&&(s.setAttribute("font-family",e.font),s.setAttribute("font-size",e.fontSize),e.fontOptions.includes("bold")&&s.setAttribute("font-weight","bold"),e.fontOptions.includes("italic")&&s.setAttribute("font-style","italic"),r="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||i.barcodePadding>0?(n=0,s.setAttribute("text-anchor","start")):"right"==e.textAlign?(n=i.width-1,s.setAttribute("text-anchor","end")):(n=i.width/2,s.setAttribute("text-anchor","middle")),s.setAttribute("x",n),s.setAttribute("y",r),s.appendChild(this.document.createTextNode(i.text)),t.appendChild(s))}},{key:"setSvgAttributes",value:function(t,e){var i=this.svg;i.setAttribute("width",t+"px"),i.setAttribute("height",e+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+t+" "+e),i.setAttribute("xmlns",h),i.setAttribute("version","1.1")}},{key:"createGroup",value:function(t,e,i){var n=this.document.createElementNS(h,"g");return n.setAttribute("transform","translate("+t+", "+e+")"),i.appendChild(n),n}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("fill",e.lineColor)}},{key:"drawRect",value:function(t,e,i,n,r){var s=this.document.createElementNS(h,"rect");return s.setAttribute("x",t),s.setAttribute("y",e),s.setAttribute("width",i),s.setAttribute("height",n),r.appendChild(s),s}}]),t}();e.default=d}));
;/*!node_modules/jsbarcode/bin/renderers/object.js*/
amis.define("f9a7642",(function(e,n,t,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n}}();var r=function(){function e(n,t,i){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.object=n,this.encodings=t,this.options=i}return o(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();n.default=r}));
;/*!node_modules/jsbarcode/bin/renderers/index.js*/
amis.define("fbdbb0f",(function(e,d,f,t){"use strict";Object.defineProperty(d,"__esModule",{value:!0});var a=n(e("477b1ef")),r=n(e("3067a8b")),u=n(e("f9a7642"));function n(e){return e&&e.__esModule?e:{default:e}}d.default={CanvasRenderer:a.default,SVGRenderer:r.default,ObjectRenderer:u.default}}));
;/*!node_modules/jsbarcode/bin/exceptions/exceptions.js*/
amis.define("cbf0afc",(function(t,e,n,o){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.name="InvalidInputException",o.symbology=t,o.input=n,o.message='"'+o.input+'" is not a valid input for '+o.symbology,o}return c(e,Error),e}(),u=function(t){function e(){r(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return c(e,Error),e}(),s=function(t){function e(){r(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return c(e,Error),e}();e.InvalidInputException=a,e.InvalidElementException=u,e.NoElementException=s}));
;/*!node_modules/jsbarcode/bin/help/getRenderProperties.js*/
amis.define("28a3640",(function(e,n,t,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=d(e("5a89be2")),a=d(e("fbdbb0f")),u=e("cbf0afc");function d(e){return e&&e.__esModule?e:{default:e}}function l(e){if("string"==typeof e)return function(e){var n=document.querySelectorAll(e);if(0===n.length)return;for(var t=[],r=0;r<n.length;r++)t.push(l(n[r]));return t}(e);if(Array.isArray(e)){for(var n=[],t=0;t<e.length;t++)n.push(l(e[t]));return n}if("undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLImageElement)return r=e,{element:d=document.createElement("canvas"),options:(0,f.default)(r),renderer:a.default.CanvasRenderer,afterRender:function(){r.setAttribute("src",d.toDataURL())}};if(e&&e.nodeName&&"svg"===e.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&e instanceof SVGElement)return{element:e,options:(0,f.default)(e),renderer:a.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)return{element:e,options:(0,f.default)(e),renderer:a.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:a.default.CanvasRenderer};if(e&&"object"===(void 0===e?"undefined":o(e))&&!e.nodeName)return{element:e,renderer:a.default.ObjectRenderer};throw new u.InvalidElementException;var r,d}n.default=l}));
;/*!node_modules/jsbarcode/bin/exceptions/ErrorHandler.js*/
amis.define("aec0538",(function(t,e,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e}return a(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"!==t.name)throw t;if(this.api._options.valid===this.api._defaults.valid)throw t.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(t){return this.handleCatch(t),this.api}}}]),t}();e.default=r}));
;/*!node_modules/jsbarcode/bin/JsBarcode.js*/
amis.define("016176a",(function(e,r,t,o){"use strict";var n=c(e("77954fe")),i=c(e("112725c")),a=c(e("7477083")),s=c(e("c316c6a")),d=c(e("28a3640")),f=c(e("cd95520")),u=c(e("aec0538")),p=e("cbf0afc"),l=c(e("03ae8a1"));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(){},_=function(e,r,t){var o=new h;if(void 0===e)throw Error("No element to render on was provided.");return o._renderProperties=(0,d.default)(e),o._encodings=[],o._options=l.default,o._errorHandler=new u.default(o),void 0!==r&&((t=t||{}).format||(t.format=P()),o.options(t)[t.format](r,t).render()),o};for(var v in _.getModule=function(e){return n.default[e]},n.default)n.default.hasOwnProperty(v)&&y(n.default,v);function y(e,r){h.prototype[r]=h.prototype[r.toUpperCase()]=h.prototype[r.toLowerCase()]=function(t,o){var n=this;return n._errorHandler.wrapBarcodeCall((function(){o.text=void 0===o.text?void 0:""+o.text;var a=(0,i.default)(n._options,o);a=(0,f.default)(a);var s=e[r],d=w(t,s,a);return n._encodings.push(d),n}))}}function w(e,r,t){var o=new r(e=""+e,t);if(!o.valid())throw new p.InvalidInputException(o.constructor.name,e);var n=o.encode();n=(0,a.default)(n);for(var s=0;s<n.length;s++)n[s].options=(0,i.default)(t,n[s].options);return n}function P(){return n.default.CODE128?"CODE128":Object.keys(n.default)[0]}function m(e,r,t){r=(0,a.default)(r);for(var o=0;o<r.length;o++)r[o].options=(0,i.default)(t,r[o].options),(0,s.default)(r[o].options);(0,s.default)(t),new(0,e.renderer)(e.element,r,t).render(),e.afterRender&&e.afterRender()}h.prototype.options=function(e){return this._options=(0,i.default)(this._options,e),this},h.prototype.blank=function(e){var r=new Array(e+1).join("0");return this._encodings.push({data:r}),this},h.prototype.init=function(){var e;if(this._renderProperties)for(var r in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){e=this._renderProperties[r];var t=(0,i.default)(this._options,e.options);"auto"==t.format&&(t.format=P()),this._errorHandler.wrapBarcodeCall((function(){var r=w(t.value,n.default[t.format.toUpperCase()],t);m(e,r,t)}))}},h.prototype.render=function(){if(!this._renderProperties)throw new p.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)m(this._renderProperties[e],this._encodings,this._options);else m(this._renderProperties,this._encodings,this._options);return this},h.prototype._defaults=l.default,"undefined"!=typeof window&&(window.JsBarcode=_),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(e,r){var t=[];return jQuery(this).each((function(){t.push(this)})),_(t,e,r)}),t.exports=_}));