@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
1 lines • 125 kB
JavaScript
import{d as wt,e as Tt}from"./chunk-FLLJVJUQ.js";import{a as Se,b as Hr}from"./chunk-UQNDAFOQ.js";import{a as fe,b as de}from"./chunk-F2COYYOM.js";import{a as D}from"./chunk-JPSHKPUE.js";import{$ as qe,A as Bt,B as jt,C as Ye,D as Nt,E as $t,F as Gt,G as xr,P as Pr,Q as Sr,R as Cr,S as Er,T as Or,U as wr,V as Tr,W as Mr,X as Rr,_ as Ar,a as lr,aa as Dr,b as ur,ba as Ir,c as Cn,ca as kr,d as Ot,da as Lr,e as cr,ea as ie,f as En,fa as qr,g as fr,ga as Br,h as dr,ha as Be,i as pr,ia as Ht,ja as Vt,ka as Ut,l as V,la as jr,m as A,n as ne,na as Fr,o as _r,oa as Nr,p as vr,pa as J,q as Mt,qa as $r,r as Rt,ra as zt,s as At,t as Dt,u as It,ua as be,v as kt,va as Gr,w as Lt,wa as xe,x as qt,xa as Pe,y as On,z as gr}from"./chunk-2UPHTDC6.js";import"./chunk-4H236NYG.js";import{h as yr,i as br,r as Le,s as Ft}from"./chunk-DDCLLFY5.js";import{$c as nr,A as Ie,Ab as g,Ac as E,B as mn,Ba as zi,Bb as y,Bc as ce,Cb as $,Cc as yt,E as _n,Eb as F,Fb as N,Fc as G,G as ct,Gb as h,H as Fi,Hb as c,Hc as Ki,Ib as l,J as ft,Jb as v,Jc as L,Kc as er,M as Ni,N as vn,Nb as yn,O as Te,Ob as bn,Oc as H,Pb as xn,Pe as mr,Q as _e,Qb as ve,Rc as tr,Sb as X,Ta as u,Tb as p,V as R,W as dt,Y as $i,Ya as Xi,Z as ke,_ as f,a as O,b as M,bb as Qi,bc as Yi,cc as Me,cd as bt,da as se,ea as le,ed as xt,f as _,fa as Gi,fc as Pn,g as Ha,ga as Hi,gb as P,gc as d,gd as Pt,h as qi,hb as pt,hc as k,ic as Q,id as St,jc as Re,k as Bi,kc as ht,kd as ir,l as hn,lb as Ji,lc as mt,ld as Ct,ma as Vi,mb as q,mc as _t,nb as K,nc as vt,nd as rr,oc as Sn,pc as B,pd as or,q as Z,qa as S,qd as Et,rb as Wi,rc as ge,rd as ar,sa as I,u as ae,ub as ee,uc as We,v as ji,va as ue,vb as te,vc as gt,ve as hr,wc as Zi,wd as sr,xa as Ui,xb as gn,xe as ye,zc as x}from"./chunk-Q2WBXDIA.js";var U=_(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});function rs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var os=function t(e,i){rs(this,t),this.data=e,this.text=i.text||e,this.options=i};Rn.default=os});var eo=_(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.CODE39=void 0;var as=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),ss=U(),ls=us(ss);function us(t){return t&&t.__esModule?t:{default:t}}function cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fs(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(i,n){return cs(this,e),i=i.toUpperCase(),n.mod43&&(i+=_s(vs(i))),fs(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return as(e,[{key:"encode",value:function(){for(var n=An("*"),r=0;r<this.data.length;r++)n+=An(this.data[r])+"0";return n+=An("*"),{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e})(ls.default),Zr=["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","-","."," ","$","/","+","%","*"],hs=[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 An(t){return ms(Kr(t))}function ms(t){return hs[t].toString(2)}function _s(t){return Zr[t]}function Kr(t){return Zr.indexOf(t)}function vs(t){for(var e=0,i=0;i<t.length;i++)e+=Kr(t[i]);return e=e%43,e}Jt.CODE39=ps});var Fe=_(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var Ze;function Dn(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var to=T.SET_A=0,no=T.SET_B=1,io=T.SET_C=2,M1=T.SHIFT=98,gs=T.START_A=103,ys=T.START_B=104,bs=T.START_C=105,R1=T.MODULO=103,A1=T.STOP=106,D1=T.FNC1=207,I1=T.SET_BY_CODE=(Ze={},Dn(Ze,gs,to),Dn(Ze,ys,no),Dn(Ze,bs,io),Ze),k1=T.SWAP={101:to,100:no,99:io},L1=T.A_START_CHAR="\xD0",q1=T.B_START_CHAR="\xD1",B1=T.C_START_CHAR="\xD2",j1=T.A_CHARS="[\0-_\xC8-\xCF]",F1=T.B_CHARS="[ -\x7F\xC8-\xCF]",N1=T.C_CHARS="(\xCF*[0-9]{2}\xCF*)",$1=T.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]});var Ke=_(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});var xs=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Ps=U(),Ss=Cs(Ps),W=Fe();function Cs(t){return t&&t.__esModule?t:{default:t}}function Es(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Os(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ws(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ts=(function(t){ws(e,t);function e(i,n){Es(this,e);var r=Os(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i.substring(1),n));return r.bytes=i.split("").map(function(o){return o.charCodeAt(0)}),r}return xs(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.bytes,r=n.shift()-105,o=W.SET_BY_CODE[r];if(o===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&n.unshift(W.FNC1);var a=e.next(n,1,o);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(r)+a.result+e.getBar((a.checksum+r)%W.MODULO)+e.getBar(W.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var n=this.options.ean128||!1;return typeof n=="string"&&(n=n.toLowerCase()==="true"),n}}],[{key:"getBar",value:function(n){return W.BARS[n]?W.BARS[n].toString():""}},{key:"correctIndex",value:function(n,r){if(r===W.SET_A){var o=n.shift();return o<32?o+64:o-32}else return r===W.SET_B?n.shift()-32:(n.shift()-48)*10+n.shift()-48}},{key:"next",value:function(n,r,o){if(!n.length)return{result:"",checksum:0};var a=void 0,s=void 0;if(n[0]>=200){s=n.shift()-105;var m=W.SWAP[s];m!==void 0?a=e.next(n,r+1,m):((o===W.SET_A||o===W.SET_B)&&s===W.SHIFT&&(n[0]=o===W.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),a=e.next(n,r+1,o))}else s=e.correctIndex(n,o),a=e.next(n,r+1,o);var b=e.getBar(s),C=s*r;return{result:b+a.result,checksum:C+a.checksum}}}]),e})(Ss.default);In.default=Ts});var lo=_(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});var Ce=Fe(),ro=function(e){return e.match(new RegExp("^"+Ce.A_CHARS+"*"))[0].length},oo=function(e){return e.match(new RegExp("^"+Ce.B_CHARS+"*"))[0].length},ao=function(e){return e.match(new RegExp("^"+Ce.C_CHARS+"*"))[0]};function kn(t,e){var i=e?Ce.A_CHARS:Ce.B_CHARS,n=t.match(new RegExp("^("+i+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+"\xCC"+so(t.substring(n[1].length));var r=t.match(new RegExp("^"+i+"+"))[0];return r.length===t.length?t:r+String.fromCharCode(e?205:206)+kn(t.substring(r.length),!e)}function so(t){var e=ao(t),i=e.length;if(i===t.length)return t;t=t.substring(i);var n=ro(t)>=oo(t);return e+String.fromCharCode(n?206:205)+kn(t,n)}Ln.default=function(t){var e=void 0,i=ao(t).length;if(i>=2)e=Ce.C_START_CHAR+so(t);else{var n=ro(t)>oo(t);e=(n?Ce.A_START_CHAR:Ce.B_START_CHAR)+kn(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(r,o){return"\xCB"+o})}});var co=_(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var Ms=Ke(),Rs=uo(Ms),As=lo(),Ds=uo(As);function uo(t){return t&&t.__esModule?t:{default:t}}function Is(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qn(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 ks(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 Ls=(function(t){ks(e,t);function e(i,n){if(Is(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(i))var r=qn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,Ds.default)(i),n));else var r=qn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n));return qn(r)}return e})(Rs.default);Bn.default=Ls});var po=_(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var qs=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Bs=Ke(),js=Fs(Bs),fo=Fe();function Fs(t){return t&&t.__esModule?t:{default:t}}function Ns(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $s(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 Hs=(function(t){Gs(e,t);function e(i,n){return Ns(this,e),$s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,fo.A_START_CHAR+i,n))}return qs(e,[{key:"valid",value:function(){return new RegExp("^"+fo.A_CHARS+"+$").test(this.data)}}]),e})(js.default);jn.default=Hs});var mo=_(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});var Vs=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Us=Ke(),zs=Xs(Us),ho=Fe();function Xs(t){return t&&t.__esModule?t:{default:t}}function Qs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Js(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ws(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ys=(function(t){Ws(e,t);function e(i,n){return Qs(this,e),Js(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,ho.B_START_CHAR+i,n))}return Vs(e,[{key:"valid",value:function(){return new RegExp("^"+ho.B_CHARS+"+$").test(this.data)}}]),e})(zs.default);Fn.default=Ys});var vo=_(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var Zs=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Ks=Ke(),el=tl(Ks),_o=Fe();function tl(t){return t&&t.__esModule?t:{default:t}}function nl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function il(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 rl(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 ol=(function(t){rl(e,t);function e(i,n){return nl(this,e),il(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,_o.C_START_CHAR+i,n))}return Zs(e,[{key:"valid",value:function(){return new RegExp("^"+_o.C_CHARS+"+$").test(this.data)}}]),e})(el.default);Nn.default=ol});var go=_(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.CODE128C=pe.CODE128B=pe.CODE128A=pe.CODE128=void 0;var al=co(),sl=Wt(al),ll=po(),ul=Wt(ll),cl=mo(),fl=Wt(cl),dl=vo(),pl=Wt(dl);function Wt(t){return t&&t.__esModule?t:{default:t}}pe.CODE128=sl.default;pe.CODE128A=ul.default;pe.CODE128B=fl.default;pe.CODE128C=pl.default});var Ne=_(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var W1=Ee.SIDE_BIN="101",Y1=Ee.MIDDLE_BIN="01010",Z1=Ee.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"]},K1=Ee.EAN2_STRUCTURE=["LL","LG","GL","GG"],eh=Ee.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],th=Ee.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]});var $e=_($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});var hl=Ne(),ml=function(e,i,n){var r=e.split("").map(function(a,s){return hl.BINARIES[i[s]]}).map(function(a,s){return a?a[e[s]]:""});if(n){var o=e.length-1;r=r.map(function(a,s){return s<o?a+n:a})}return r.join("")};$n.default=ml});var Hn=_(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});var _l=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Ge=Ne(),vl=$e(),yo=bo(vl),gl=U(),yl=bo(gl);function bo(t){return t&&t.__esModule?t:{default:t}}function bl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xl(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 Pl(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 Sl=(function(t){Pl(e,t);function e(i,n){bl(this,e);var r=xl(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n));return r.fontSize=!n.flat&&n.fontSize>n.width*10?n.width*10:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return _l(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,r){return this.text.substr(n,r)}},{key:"leftEncode",value:function(n,r){return(0,yo.default)(n,r)}},{key:"rightText",value:function(n,r){return this.text.substr(n,r)}},{key:"rightEncode",value:function(n,r){return(0,yo.default)(n,r)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},r={height:this.guardHeight};return[{data:Ge.SIDE_BIN,options:r},{data:this.leftEncode(),text:this.leftText(),options:n},{data:Ge.MIDDLE_BIN,options:r},{data:this.rightEncode(),text:this.rightText(),options:n},{data:Ge.SIDE_BIN,options:r}]}},{key:"encodeFlat",value:function(){var n=[Ge.SIDE_BIN,this.leftEncode(),Ge.MIDDLE_BIN,this.rightEncode(),Ge.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e})(yl.default);Gn.default=Sl});var Po=_(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});var Cl=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),et=function t(e,i,n){e===null&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(r===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:t(o,i,n)}else{if("value"in r)return r.value;var a=r.get;return a===void 0?void 0:a.call(n)}},El=Ne(),Ol=Hn(),wl=Tl(Ol);function Tl(t){return t&&t.__esModule?t:{default:t}}function Ml(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rl(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 Al(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 xo=function(e){var i=e.substr(0,12).split("").map(function(n){return+n}).reduce(function(n,r,o){return o%2?n+r*3:n+r},0);return(10-i%10)%10},Dl=(function(t){Al(e,t);function e(i,n){Ml(this,e),i.search(/^[0-9]{12}$/)!==-1&&(i+=xo(i));var r=Rl(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n));return r.lastChar=n.lastChar,r}return Cl(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===xo(this.data)}},{key:"leftText",value:function(){return et(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var n=this.data.substr(1,6),r=El.EAN13_STRUCTURE[this.data[0]];return et(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,n,r)}},{key:"rightText",value:function(){return et(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var n=this.data.substr(7,6);return et(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,n,"RRRRRR")}},{key:"encodeGuarded",value:function(){var n=et(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(n.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(n.push({data:"00"}),n.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),n}}]),e})(wl.default);Vn.default=Dl});var Co=_(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});var Il=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Yt=function t(e,i,n){e===null&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(r===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:t(o,i,n)}else{if("value"in r)return r.value;var a=r.get;return a===void 0?void 0:a.call(n)}},kl=Hn(),Ll=ql(kl);function ql(t){return t&&t.__esModule?t:{default:t}}function Bl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jl(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 Fl(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 So=function(e){var i=e.substr(0,7).split("").map(function(n){return+n}).reduce(function(n,r,o){return o%2?n+r:n+r*3},0);return(10-i%10)%10},Nl=(function(t){Fl(e,t);function e(i,n){return Bl(this,e),i.search(/^[0-9]{7}$/)!==-1&&(i+=So(i)),jl(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return Il(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===So(this.data)}},{key:"leftText",value:function(){return Yt(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var n=this.data.substr(0,4);return Yt(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,n,"LLLL")}},{key:"rightText",value:function(){return Yt(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var n=this.data.substr(4,4);return Yt(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,n,"RRRR")}}]),e})(Ll.default);Un.default=Nl});var Oo=_(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});var $l=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Gl=Ne(),Hl=$e(),Vl=Eo(Hl),Ul=U(),zl=Eo(Ul);function Eo(t){return t&&t.__esModule?t:{default:t}}function Xl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ql(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 Jl(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 Wl=function(e){var i=e.split("").map(function(n){return+n}).reduce(function(n,r,o){return o%2?n+r*9:n+r*3},0);return i%10},Yl=(function(t){Jl(e,t);function e(i,n){return Xl(this,e),Ql(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return $l(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var n=Gl.EAN5_STRUCTURE[Wl(this.data)];return{data:"1011"+(0,Vl.default)(this.data,n,"01"),text:this.text}}}]),e})(zl.default);zn.default=Yl});var To=_(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var Zl=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Kl=Ne(),eu=$e(),tu=wo(eu),nu=U(),iu=wo(nu);function wo(t){return t&&t.__esModule?t:{default:t}}function ru(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ou(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 au(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 su=(function(t){au(e,t);function e(i,n){return ru(this,e),ou(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return Zl(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var n=Kl.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,tu.default)(this.data,n,"01"),text:this.text}}}]),e})(iu.default);Xn.default=su});var Jn=_(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});var lu=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})();Zt.checksum=Qn;var uu=$e(),He=Mo(uu),cu=U(),fu=Mo(cu);function Mo(t){return t&&t.__esModule?t:{default:t}}function du(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pu(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 hu(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 mu=(function(t){hu(e,t);function e(i,n){du(this,e),i.search(/^[0-9]{11}$/)!==-1&&(i+=Qn(i));var r=pu(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n));return r.displayValue=n.displayValue,n.fontSize>n.width*10?r.fontSize=n.width*10:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return lu(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Qn(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,He.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,He.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,He.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,He.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,He.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,He.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e})(fu.default);function Qn(t){var e=0,i;for(i=1;i<11;i+=2)e+=parseInt(t[i]);for(i=0;i<11;i+=2)e+=parseInt(t[i])*3;return(10-e%10)%10}Zt.default=mu});var Do=_(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});var _u=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),vu=$e(),gu=Ao(vu),yu=U(),bu=Ao(yu),xu=Jn();function Ao(t){return t&&t.__esModule?t:{default:t}}function Pu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wn(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 Su(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 Cu=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],Eu=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],Ou=(function(t){Su(e,t);function e(i,n){Pu(this,e);var r=Wn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n));if(r.isValid=!1,i.search(/^[0-9]{6}$/)!==-1)r.middleDigits=i,r.upcA=Ro(i,"0"),r.text=n.text||""+r.upcA[0]+i+r.upcA[r.upcA.length-1],r.isValid=!0;else if(i.search(/^[01][0-9]{7}$/)!==-1)if(r.middleDigits=i.substring(1,i.length-1),r.upcA=Ro(r.middleDigits,i[0]),r.upcA[r.upcA.length-1]===i[i.length-1])r.isValid=!0;else return Wn(r);else return Wn(r);return r.displayValue=n.displayValue,n.fontSize>n.width*10?r.fontSize=n.width*10:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return _u(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 n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],r=this.upcA[this.upcA.length-1],o=Eu[parseInt(r)][parseInt(n)];return(0,gu.default)(this.middleDigits,o)}}]),e})(bu.default);function Ro(t,e){for(var i=parseInt(t[t.length-1]),n=Cu[i],r="",o=0,a=0;a<n.length;a++){var s=n[a];s==="X"?r+=t[o++]:r+=s}return r=""+e+r,""+r+(0,xu.checksum)(r)}Yn.default=Ou});var Io=_(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.UPCE=z.UPC=z.EAN2=z.EAN5=z.EAN8=z.EAN13=void 0;var wu=Po(),Tu=Ve(wu),Mu=Co(),Ru=Ve(Mu),Au=Oo(),Du=Ve(Au),Iu=To(),ku=Ve(Iu),Lu=Jn(),qu=Ve(Lu),Bu=Do(),ju=Ve(Bu);function Ve(t){return t&&t.__esModule?t:{default:t}}z.EAN13=Tu.default;z.EAN8=Ru.default;z.EAN5=Du.default;z.EAN2=ku.default;z.UPC=qu.default;z.UPCE=ju.default});var ko=_(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});var dh=tt.START_BIN="1010",ph=tt.END_BIN="11101",hh=tt.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]});var Kn=_(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var Fu=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Kt=ko(),Nu=U(),$u=Gu(Nu);function Gu(t){return t&&t.__esModule?t:{default:t}}function Hu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vu(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 Uu(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 zu=(function(t){Uu(e,t);function e(){return Hu(this,e),Vu(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Fu(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var n=this,r=this.data.match(/.{2}/g).map(function(o){return n.encodePair(o)}).join("");return{data:Kt.START_BIN+r+Kt.END_BIN,text:this.text}}},{key:"encodePair",value:function(n){var r=Kt.BINARIES[n[1]];return Kt.BINARIES[n[0]].split("").map(function(o,a){return(o==="1"?"111":"1")+(r[a]==="1"?"000":"0")}).join("")}}]),e})($u.default);Zn.default=zu});var qo=_(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});var Xu=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Qu=Kn(),Ju=Wu(Qu);function Wu(t){return t&&t.__esModule?t:{default:t}}function Yu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zu(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 Ku(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 Lo=function(e){var i=e.substr(0,13).split("").map(function(n){return parseInt(n,10)}).reduce(function(n,r,o){return n+r*(3-o%2*2)},0);return Math.ceil(i/10)*10-i},ec=(function(t){Ku(e,t);function e(i,n){return Yu(this,e),i.search(/^[0-9]{13}$/)!==-1&&(i+=Lo(i)),Zu(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return Xu(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===Lo(this.data)}}]),e})(Ju.default);ei.default=ec});var jo=_(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ITF14=Ue.ITF=void 0;var tc=Kn(),nc=Bo(tc),ic=qo(),rc=Bo(ic);function Bo(t){return t&&t.__esModule?t:{default:t}}Ue.ITF=nc.default;Ue.ITF14=rc.default});var ze=_(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});var oc=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),ac=U(),sc=lc(ac);function lc(t){return t&&t.__esModule?t:{default:t}}function uc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cc(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 fc(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 dc=(function(t){fc(e,t);function e(i,n){return uc(this,e),cc(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return oc(e,[{key:"encode",value:function(){for(var n="110",r=0;r<this.data.length;r++){var o=parseInt(this.data[r]),a=o.toString(2);a=pc(a,4-a.length);for(var s=0;s<a.length;s++)n+=a[s]=="0"?"100":"110"}return n+="1001",{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e})(sc.default);function pc(t,e){for(var i=0;i<e;i++)t="0"+t;return t}ti.default=dc});var nt=_(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.mod10=hc;en.mod11=mc;function hc(t){for(var e=0,i=0;i<t.length;i++){var n=parseInt(t[i]);(i+t.length)%2===0?e+=n:e+=n*2%10+Math.floor(n*2/10)}return(10-e%10)%10}function mc(t){for(var e=0,i=[2,3,4,5,6,7],n=0;n<t.length;n++){var r=parseInt(t[t.length-1-n]);e+=i[n%i.length]*r}return(11-e%11)%11}});var Fo=_(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});var _c=ze(),vc=yc(_c),gc=nt();function yc(t){return t&&t.__esModule?t:{default:t}}function bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xc(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 Pc(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 Sc=(function(t){Pc(e,t);function e(i,n){return bc(this,e),xc(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i+(0,gc.mod10)(i),n))}return e})(vc.default);ni.default=Sc});var No=_(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var Cc=ze(),Ec=wc(Cc),Oc=nt();function wc(t){return t&&t.__esModule?t:{default:t}}function Tc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mc(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 Rc(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 Ac=(function(t){Rc(e,t);function e(i,n){return Tc(this,e),Mc(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i+(0,Oc.mod11)(i),n))}return e})(Ec.default);ii.default=Ac});var Go=_(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var Dc=ze(),Ic=kc(Dc),$o=nt();function kc(t){return t&&t.__esModule?t:{default:t}}function Lc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qc(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 Bc(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 jc=(function(t){Bc(e,t);function e(i,n){return Lc(this,e),i+=(0,$o.mod10)(i),i+=(0,$o.mod10)(i),qc(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return e})(Ic.default);ri.default=jc});var Vo=_(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var Fc=ze(),Nc=$c(Fc),Ho=nt();function $c(t){return t&&t.__esModule?t:{default:t}}function Gc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hc(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 Vc(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 Uc=(function(t){Vc(e,t);function e(i,n){return Gc(this,e),i+=(0,Ho.mod11)(i),i+=(0,Ho.mod10)(i),Hc(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return e})(Nc.default);oi.default=Uc});var Uo=_(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.MSI1110=re.MSI1010=re.MSI11=re.MSI10=re.MSI=void 0;var zc=ze(),Xc=it(zc),Qc=Fo(),Jc=it(Qc),Wc=No(),Yc=it(Wc),Zc=Go(),Kc=it(Zc),ef=Vo(),tf=it(ef);function it(t){return t&&t.__esModule?t:{default:t}}re.MSI=Xc.default;re.MSI10=Jc.default;re.MSI11=Yc.default;re.MSI1010=Kc.default;re.MSI1110=tf.default});var zo=_(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.pharmacode=void 0;var nf=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),rf=U(),of=af(rf);function af(t){return t&&t.__esModule?t:{default:t}}function sf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lf(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 uf(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 cf=(function(t){uf(e,t);function e(i,n){sf(this,e);var r=lf(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n));return r.number=parseInt(i,10),r}return nf(e,[{key:"encode",value:function(){for(var n=this.number,r="";!isNaN(n)&&n!=0;)n%2===0?(r="11100"+r,n=(n-2)/2):(r="100"+r,n=(n-1)/2);return r=r.slice(0,-2),{data:r,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e})(of.default);tn.pharmacode=cf});var Xo=_(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.codabar=void 0;var ff=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),df=U(),pf=hf(df);function hf(t){return t&&t.__esModule?t:{default:t}}function mf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _f(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 vf(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 gf=(function(t){vf(e,t);function e(i,n){mf(this,e),i.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(i="A"+i+"A");var r=_f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return ff(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var n=[],r=this.getEncodings(),o=0;o<this.data.length;o++)n.push(r[this.data.charAt(o)]),o!==this.data.length-1&&n.push("0");return{text:this.text,data:n.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})(pf.default);nn.codabar=gf});var Qo=_(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});var Th=rt.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","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","\xFF"],Mh=rt.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"],Rh=rt.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"],"\x7F":["(%)","T"]}});var si=_(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});var yf=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),rn=Qo(),bf=U(),xf=Pf(bf);function Pf(t){return t&&t.__esModule?t:{default:t}}function Sf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cf(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 Ef(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 Of=(function(t){Ef(e,t);function e(i,n){return Sf(this,e),Cf(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n))}return yf(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.data.split("").flatMap(function(s){return rn.MULTI_SYMBOLS[s]||s}),r=n.map(function(s){return e.getEncoding(s)}).join(""),o=e.checksum(n,20),a=e.checksum(n.concat(o),15);return{text:this.text,data:e.getEncoding("\xFF")+r+e.getEncoding(o)+e.getEncoding(a)+e.getEncoding("\xFF")+"1"}}}],[{key:"getEncoding",value:function(n){return rn.BINARIES[e.symbolValue(n)]}},{key:"getSymbol",value:function(n){return rn.SYMBOLS[n]}},{key:"symbolValue",value:function(n){return rn.SYMBOLS.indexOf(n)}},{key:"checksum",value:function(n,r){var o=n.slice().reverse().reduce(function(a,s,m){var b=m%r+1;return a+e.symbolValue(s)*b},0);return e.getSymbol(o%47)}}]),e})(xf.default);ai.default=Of});var Jo=_(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var wf=(function(){function t(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}})(),Tf=si(),Mf=Rf(Tf);function Rf(t){return t&&t.__esModule?t:{default:t}}function Af(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Df(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 If(