PageSourceSearch

https://www.pharmaciereference.fr/_nuxt/7LXiYuyj.js

js pharmaciereference.fr collected 2026-10-08 11:53:54 UTC 70,883 bytes, 1 lines download raw bytes

1import{_ as ar}from"./G51tQ2dW.js";import{bu as or,aF as Ve,a_ as Ne,aN as Xt,aO as B,aI as C,aM as Jt,aK as O,aH as Ue,bf as Xe,aP as A,aL as H,bg as ur,aR as U,b4 as Yt,b3 as fr,aZ as cr,aU as lr,b5 as dr,aQ as L,aJ as Je,aS as sr,bd as hr,be as vr,bv as _r,b9 as pr,bo as yr,b8 as gr,aE as Er}from"./3eMLqlDR.js";import{_ as Or}from"./fbL_KNjA.js";import{_ as mr}from"./GjC0tPdM.js";import{f as ze}from"./U8boTekI.js";import{f as ie}from"./CddQA5lD.js";import{p as Ye}from"./BK0RX_ji.js";import"./Cs1Av273.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};v.SENTRY_RELEASE={id:"[email protected]"}}catch{}})();try{(function(){var v=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="579f0602-49b0-4854-8bb1-b698b3b879c2",v._sentryDebugIdIdentifier="sentry-dbid-579f0602-49b0-4854-8bb1-b698b3b879c2")})()}catch{}var ae={},J={},oe={},Qe;function k(){if(Qe)return oe;Qe=1,Object.defineProperty(oe,"__esModule",{value:!0});function v(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}var d=function h(c,f){v(this,h),this.data=c,this.text=f.text||c,this.options=f};return oe.default=d,oe}var Ke;function br(){if(Ke)return J;Ke=1,Object.defineProperty(J,"__esModule",{value:!0}),J.CODE39=void 0;var v=function(){function u(y,g){for(var p=0;p<g.length;p++){var S=g[p];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}return function(y,g,p){return g&&u(y.prototype,g),p&&u(y,p),y}}(),d=k(),h=c(d);function c(u){return u&&u.__esModule?u:{default:u}}function f(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}function _(u,y){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:u}function s(u,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);u.prototype=Object.create(y&&y.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(u,y):u.__proto__=y)}var l=function(u){s(y,u);function y(g,p){return f(this,y),g=g.toUpperCase(),p.mod43&&(g+=r(o(g))),_(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,g,p))}return v(y,[{key:"encode",value:function(){for(var p=t("*"),S=0;S<this.data.length;S++)p+=t(this.data[S])+"0";return p+=t("*"),{data:p,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),y}(h.default),a=["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=[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 t(u){return n(i(u))}function n(u){return e[u].toString(2)}function r(u){return a[u]}function i(u){return a.indexOf(u)}function o(u){for(var y=0,g=0;g<u.length;g++)y+=i(u[g]);return y=y%43,y}return J.CODE39=l,J}var q={},ue={},fe={},x={},We;function ee(){if(We)return x;We=1,Object.defineProperty(x,"__esModule",{value:!0});var v;function d(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var h=x.SET_A=0,c=x.SET_B=1,f=x.SET_C=2;x.SHIFT=98;var _=x.START_A=103,s=x.START_B=104,l=x.START_C=105;return x.MODULO=103,x.STOP=106,x.FNC1=207,x.SET_BY_CODE=(v={},d(v,_,h),d(v,s,c),d(v,l,f),v),x.SWAP={101:h,100:c,99:f},x.A_START_CHAR="Ð",x.B_START_CHAR="Ñ",x.C_START_CHAR="Ò",x.A_CHARS="[\0-_È-Ï]",x.B_CHARS="[ -�È-Ï]",x.C_CHARS="(Ï*[0-9]{2}Ï*)",x.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],x}var Ze;function Fe(){if(Ze)return fe;
1Ze=1,Object.defineProperty(fe,"__esModule",{value:!0});var v=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=k(),h=f(d),c=ee();function f(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)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)}var a=function(e){l(t,e);function t(n,r){_(this,t);var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n.substring(1),r));return i.bytes=n.split("").map(function(o){return o.charCodeAt(0)}),i}return v(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,i=r.shift()-105,o=c.SET_BY_CODE[i];if(o===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(c.FNC1);var u=t.next(r,1,o);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(i)+u.result+t.getBar((u.checksum+i)%c.MODULO)+t.getBar(c.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return c.BARS[r]?c.BARS[r].toString():""}},{key:"correctIndex",value:function(r,i){if(i===c.SET_A){var o=r.shift();return o<32?o+64:o-32}else return i===c.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,i,o){if(!r.length)return{result:"",checksum:0};var u=void 0,y=void 0;if(r[0]>=200){y=r.shift()-105;var g=c.SWAP[y];g!==void 0?u=t.next(r,i+1,g):((o===c.SET_A||o===c.SET_B)&&y===c.SHIFT&&(r[0]=o===c.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),u=t.next(r,i+1,o))}else y=t.correctIndex(r,o),u=t.next(r,i+1,o);var p=t.getBar(y),S=y*i;return{result:p+u.result,checksum:S+u.checksum}}}]),t}(h.default);return fe.default=a,fe}var ce={},et;function wr(){if(et)return ce;et=1,Object.defineProperty(ce,"__esModule",{value:!0});var v=ee(),d=function(l){return l.match(new RegExp("^"+v.A_CHARS+"*"))[0].length},h=function(l){return l.match(new RegExp("^"+v.B_CHARS+"*"))[0].length},c=function(l){return l.match(new RegExp("^"+v.C_CHARS+"*"))[0]};function f(s,l){var a=l?v.A_CHARS:v.B_CHARS,e=s.match(new RegExp("^("+a+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(e)return e[1]+"Ì"+_(s.substring(e[1].length));var t=s.match(new RegExp("^"+a+"+"))[0];return t.length===s.length?s:t+String.fromCharCode(l?205:206)+f(s.substring(t.length),!l)}function _(s){var l=c(s),a=l.length;if(a===s.length)return s;s=s.substring(a);var e=d(s)>=h(s);return l+String.fromCharCode(e?206:205)+f(s,e)}return ce.default=function(s){var l=void 0,a=c(s).length;if(a>=2)l=v.C_START_CHAR+_(s);else{var e=d(s)>h(s);l=(e?v.A_START_CHAR:v.B_START_CHAR)+f(s,e)}return l.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,n){return"Ë"+n})},ce}var tt;function Sr(){if(tt)return ue;tt=1,Object.defineProperty(ue,"__esModule",{value:!0});var v=Fe(),d=f(v),h=wr(),c=f(h);function f(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)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)}var a=function(e){l(t,e);function t(n,r){if(_(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,c.default)(n),r));else var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r));return s(i)}return t}(d.default);return ue.default=a,ue}var le={},rt;function Rr(){if(rt)return le;
1rt=1,Object.defineProperty(le,"__esModule",{value:!0});var v=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Fe(),h=f(d),c=ee();function f(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)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)}var a=function(e){l(t,e);function t(n,r){return _(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.A_START_CHAR+n,r))}return v(t,[{key:"valid",value:function(){return new RegExp("^"+c.A_CHARS+"+$").test(this.data)}}]),t}(h.default);return le.default=a,le}var de={},nt;function xr(){if(nt)return de;nt=1,Object.defineProperty(de,"__esModule",{value:!0});var v=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Fe(),h=f(d),c=ee();function f(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)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)}var a=function(e){l(t,e);function t(n,r){return _(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.B_START_CHAR+n,r))}return v(t,[{key:"valid",value:function(){return new RegExp("^"+c.B_CHARS+"+$").test(this.data)}}]),t}(h.default);return de.default=a,de}var se={},it;function Ar(){if(it)return se;it=1,Object.defineProperty(se,"__esModule",{value:!0});var v=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Fe(),h=f(d),c=ee();function f(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)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)}var a=function(e){l(t,e);function t(n,r){return _(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.C_START_CHAR+n,r))}return v(t,[{key:"valid",value:function(){return new RegExp("^"+c.C_CHARS+"+$").test(this.data)}}]),t}(h.default);return se.default=a,se}var at;function Pr(){if(at)return q;at=1,Object.defineProperty(q,"__esModule",{value:!0}),q.CODE128C=q.CODE128B=q.CODE128A=q.CODE128=void 0;var v=Sr(),d=a(v),h=Rr(),c=a(h),f=xr(),_=a(f),s=Ar(),l=a(s);function a(e){return e&&e.__esModule?e:{default:e}}return q.CODE128=d.default,q.CODE128A=c.default,q.CODE128B=_.default,q.CODE128C=l.default,q}var P={},he={},N={},ot;function te(){return ot||(ot=1,Object.defineProperty(N,"__esModule",{value:!0}),N.SIDE_BIN="101",N.MIDDLE_BIN="01010",N.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"]}
1,N.EAN2_STRUCTURE=["LL","LG","GL","GG"],N.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],N.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]),N}var ve={},_e={},ut;function re(){if(ut)return _e;ut=1,Object.defineProperty(_e,"__esModule",{value:!0});var v=te(),d=function(c,f,_){var s=c.split("").map(function(a,e){return v.BINARIES[f[e]]}).map(function(a,e){return a?a[c[e]]:""});if(_){var l=c.length-1;s=s.map(function(a,e){return e<l?a+_:a})}return s.join("")};return _e.default=d,_e}var ft;function Qt(){if(ft)return ve;ft=1,Object.defineProperty(ve,"__esModule",{value:!0});var v=function(){function n(r,i){for(var o=0;o<i.length;o++){var u=i[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(r,u.key,u)}}return function(r,i,o){return i&&n(r.prototype,i),o&&n(r,o),r}}(),d=te(),h=re(),c=s(h),f=k(),_=s(f);function s(n){return n&&n.__esModule?n:{default:n}}function l(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function a(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function e(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var t=function(n){e(r,n);function r(i,o){l(this,r);var u=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,o));return u.fontSize=!o.flat&&o.fontSize>o.width*10?o.width*10:o.fontSize,u.guardHeight=o.height+u.fontSize/2+o.textMargin,u}return v(r,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(o,u){return this.text.substr(o,u)}},{key:"leftEncode",value:function(o,u){return(0,c.default)(o,u)}},{key:"rightText",value:function(o,u){return this.text.substr(o,u)}},{key:"rightEncode",value:function(o,u){return(0,c.default)(o,u)}},{key:"encodeGuarded",value:function(){var o={fontSize:this.fontSize},u={height:this.guardHeight};return[{data:d.SIDE_BIN,options:u},{data:this.leftEncode(),text:this.leftText(),options:o},{data:d.MIDDLE_BIN,options:u},{data:this.rightEncode(),text:this.rightText(),options:o},{data:d.SIDE_BIN,options:u}]}},{key:"encodeFlat",value:function(){var o=[d.SIDE_BIN,this.leftEncode(),d.MIDDLE_BIN,this.rightEncode(),d.SIDE_BIN];return{data:o.join(""),text:this.text}}}]),r}(_.default);return ve.default=t,ve}var ct;function Mr(){if(ct)return he;ct=1,Object.defineProperty(he,"__esModule",{value:!0});var v=function(){function n(r,i){for(var o=0;o<i.length;o++){var u=i[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(r,u.key,u)}}return function(r,i,o){return i&&n(r.prototype,i),o&&n(r,o),r}}(),d=function n(r,i,o){r===null&&(r=Function.prototype);var u=Object.getOwnPropertyDescriptor(r,i);if(u===void 0){var y=Object.getPrototypeOf(r);return y===null?void 0:n(y,i,o)}else{if("value"in u)return u.value;var g=u.get;return g===void 0?void 0:g.call(o)}},h=te(),c=Qt(),f=_(c);function _(n){return n&&n.__esModule?n:{default:n}}function s(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function l(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function a(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var e=function(r){var i=r.substr(0,12).split("").map(function(o){return+o}).reduce(function(o,u,y){return y%2?o+u*3:o+u},0);return(10-i%10)%10},t=function(n){a(r,n);function r(i,o){s(this,r),i.search(/^[0-9]{12}$/)!==-1&&(i+=e(i));var u=l(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,o));return u.lastChar=o.lastChar,u}return v(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===e(this.data)}},{key:"leftText",value:function(){return d(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var o=this.data.substr(1,6),u=h.EAN13_STRUCTURE[this.data[0]];return d(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftEncode",this).call(this,o,u)}},{key:"rightText",value:function(){return d(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var o=this.data.substr(7,6);return d(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightEncode",this).call(this,o,"RRRRRR")}},{key:"encodeGuarded",value:function(){var o=d(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(o.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(o.push({data:"00"}),o.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),o}}]),r}(f.default);return he.default=t,he}var pe={},lt;function Tr(){if(lt)return pe;
1lt=1,Object.defineProperty(pe,"__esModule",{value:!0});var v=function(){function t(n,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}}(),d=function t(n,r,i){n===null&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,r);if(o===void 0){var u=Object.getPrototypeOf(n);return u===null?void 0:t(u,r,i)}else{if("value"in o)return o.value;var y=o.get;return y===void 0?void 0:y.call(i)}},h=Qt(),c=f(h);function f(t){return t&&t.__esModule?t:{default:t}}function _(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function s(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function l(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var a=function(n){var r=n.substr(0,7).split("").map(function(i){return+i}).reduce(function(i,o,u){return u%2?i+o:i+o*3},0);return(10-r%10)%10},e=function(t){l(n,t);function n(r,i){return _(this,n),r.search(/^[0-9]{7}$/)!==-1&&(r+=a(r)),s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i))}return v(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===a(this.data)}},{key:"leftText",value:function(){return d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var i=this.data.substr(0,4);return d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftEncode",this).call(this,i,"LLLL")}},{key:"rightText",value:function(){return d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var i=this.data.substr(4,4);return d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightEncode",this).call(this,i,"RRRR")}}]),n}(c.default);return pe.default=e,pe}var ye={},dt;function Ir(){if(dt)return ye;dt=1,Object.defineProperty(ye,"__esModule",{value:!0});var v=function(){function r(i,o){for(var u=0;u<o.length;u++){var y=o[u];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(i,y.key,y)}}return function(i,o,u){return o&&r(i.prototype,o),u&&r(i,u),i}}(),d=te(),h=re(),c=s(h),f=k(),_=s(f);function s(r){return r&&r.__esModule?r:{default:r}}function l(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function a(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function e(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var t=function(i){var o=i.split("").map(function(u){return+u}).reduce(function(u,y,g){return g%2?u+y*9:u+y*3},0);return o%10},n=function(r){e(i,r);function i(o,u){return l(this,i),a(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,o,u))}return v(i,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var u=d.EAN5_STRUCTURE[t(this.data)];return{data:"1011"+(0,c.default)(this.data,u,"01"),text:this.text}}}]),i}(_.default);return ye.default=n,ye}var ge={},st;function Dr(){if(st)return ge;st=1,Object.defineProperty(ge,"__esModule",{value:!0});var v=function(){function n(r,i){for(var o=0;o<i.length;o++){var u=i[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(r,u.key,u)}}
1return function(r,i,o){return i&&n(r.prototype,i),o&&n(r,o),r}}(),d=te(),h=re(),c=s(h),f=k(),_=s(f);function s(n){return n&&n.__esModule?n:{default:n}}function l(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function a(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function e(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var t=function(n){e(r,n);function r(i,o){return l(this,r),a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,o))}return v(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var o=d.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,c.default)(this.data,o,"01"),text:this.text}}}]),r}(_.default);return ge.default=t,ge}var Y={},ht;function Kt(){if(ht)return Y;ht=1,Object.defineProperty(Y,"__esModule",{value:!0});var v=function(){function n(r,i){for(var o=0;o<i.length;o++){var u=i[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(r,u.key,u)}}return function(r,i,o){return i&&n(r.prototype,i),o&&n(r,o),r}}();Y.checksum=t;var d=re(),h=_(d),c=k(),f=_(c);function _(n){return n&&n.__esModule?n:{default:n}}function s(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function l(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function a(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var e=function(n){a(r,n);function r(i,o){s(this,r),i.search(/^[0-9]{11}$/)!==-1&&(i+=t(i));var u=l(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,o));return u.displayValue=o.displayValue,o.fontSize>o.width*10?u.fontSize=o.width*10:u.fontSize=o.fontSize,u.guardHeight=o.height+u.fontSize/2+o.textMargin,u}return v(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==t(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var o="";return o+="101",o+=(0,h.default)(this.data.substr(0,6),"LLLLLL"),o+="01010",o+=(0,h.default)(this.data.substr(6,6),"RRRRRR"),o+="101",{data:o,text:this.text}}},{key:"guardedEncoding",value:function(){var o=[];return this.displayValue&&o.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),o.push({data:"101"+(0,h.default)(this.data[0],"L"),options:{height:this.guardHeight}}),o.push({data:(0,h.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),o.push({data:"01010",options:{height:this.guardHeight}}),o.push({data:(0,h.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),o.push({data:(0,h.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&o.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),o}}]),r}(f.default);function t(n){var r=0,i;for(i=1;i<11;i+=2)r+=parseInt(n[i]);for(i=0;i<11;i+=2)r+=parseInt(n[i])*3;return(10-r%10)%10}return Y.default=e,Y}var Ee={},vt;function kr(){if(vt)return Ee;vt=1,Object.defineProperty(Ee,"__esModule",{value:!0});var v=function(){function o(u,y){for(var g=0;g<y.length;g++){var p=y[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,y,g){return y&&o(u.prototype,y),g&&o(u,g),u}}(),d=re(),h=s(d),c=k(),f=s(c),_=Kt();function s(o){return o&&o.__esModule?o:{default:o}}function l(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}function a(o,u){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:o}function e(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(o,u):o.__proto__=u)}var t=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],n=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],r=function(o){e(u,o);function u(y,g){l(this,u);var p=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,y,g));if(p.isValid=!1,y.search(/^[0-9]{6}$/)!==-1)p.middleDigits=y,p.upcA=i(y,"0"),p.text=g.text||""+p.upcA[0]+y+p.upcA[p.upcA.length-1],p.isValid=!0;else if(y.search(/^[01][0-9]{7}
1$/)!==-1)if(p.middleDigits=y.substring(1,y.length-1),p.upcA=i(p.middleDigits,y[0]),p.upcA[p.upcA.length-1]===y[y.length-1])p.isValid=!0;else return a(p);else return a(p);return p.displayValue=g.displayValue,g.fontSize>g.width*10?p.fontSize=g.width*10:p.fontSize=g.fontSize,p.guardHeight=g.height+p.fontSize/2+g.textMargin,p}return v(u,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var g="";return g+="101",g+=this.encodeMiddleDigits(),g+="010101",{data:g,text:this.text}}},{key:"guardedEncoding",value:function(){var g=[];return this.displayValue&&g.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),g.push({data:"101",options:{height:this.guardHeight}}),g.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),g.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&g.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),g}},{key:"encodeMiddleDigits",value:function(){var g=this.upcA[0],p=this.upcA[this.upcA.length-1],S=n[parseInt(p)][parseInt(g)];return(0,h.default)(this.middleDigits,S)}}]),u}(f.default);function i(o,u){for(var y=parseInt(o[o.length-1]),g=t[y],p="",S=0,D=0;D<g.length;D++){var j=g[D];j==="X"?p+=o[S++]:p+=j}return p=""+u+p,""+p+(0,_.checksum)(p)}return Ee.default=r,Ee}var _t;function qr(){if(_t)return P;_t=1,Object.defineProperty(P,"__esModule",{value:!0}),P.UPCE=P.UPC=P.EAN2=P.EAN5=P.EAN8=P.EAN13=void 0;var v=Mr(),d=r(v),h=Tr(),c=r(h),f=Ir(),_=r(f),s=Dr(),l=r(s),a=Kt(),e=r(a),t=kr(),n=r(t);function r(i){return i&&i.__esModule?i:{default:i}}return P.EAN13=d.default,P.EAN8=c.default,P.EAN5=_.default,P.EAN2=l.default,P.UPC=e.default,P.UPCE=n.default,P}var z={},Oe={},V={},pt;function Br(){return pt||(pt=1,Object.defineProperty(V,"__esModule",{value:!0}),V.START_BIN="1010",V.END_BIN="11101",V.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]),V}var yt;function Wt(){if(yt)return Oe;yt=1,Object.defineProperty(Oe,"__esModule",{value:!0});var v=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Br(),h=k(),c=f(h);function f(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)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)}var a=function(e){l(t,e);function t(){return _(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return v(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,i=this.data.match(/.{2}/g).map(function(o){return r.encodePair(o)}).join("");return{data:d.START_BIN+i+d.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var i=d.BINARIES[r[1]];return d.BINARIES[r[0]].split("").map(function(o,u){return(o==="1"?"111":"1")+(i[u]==="1"?"000":"0")}).join("")}}]),t}(c.default);return Oe.default=a,Oe}var me={},gt;function Cr(){if(gt)return me;gt=1,Object.defineProperty(me,"__esModule",{value:!0});var v=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Wt(),h=c(d);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function s(e,t){if(typeof t!="function"&&t!==null)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)}var l=function(t){var n=t.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,i,o){return r+i*(3-o%2*2)},0);return Math.ceil(n/10)*10-n},a=function(e){s(t,e);function t(n,r){return f(this,t),n.search(/^[0-9]{13}$/)!==-1&&(n+=l(n)),_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r))}return v(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===l(this.data)}}]),t}(h.default);return me.default=a,me}var Et;function jr(){if(Et)return z;
1Et=1,Object.defineProperty(z,"__esModule",{value:!0}),z.ITF14=z.ITF=void 0;var v=Wt(),d=f(v),h=Cr(),c=f(h);function f(_){return _&&_.__esModule?_:{default:_}}return z.ITF=d.default,z.ITF14=c.default,z}var T={},be={},Ot;function ne(){if(Ot)return be;Ot=1,Object.defineProperty(be,"__esModule",{value:!0});var v=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=k(),h=c(d);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function s(e,t){if(typeof t!="function"&&t!==null)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)}var l=function(e){s(t,e);function t(n,r){return f(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r))}return v(t,[{key:"encode",value:function(){for(var r="110",i=0;i<this.data.length;i++){var o=parseInt(this.data[i]),u=o.toString(2);u=a(u,4-u.length);for(var y=0;y<u.length;y++)r+=u[y]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t}(h.default);function a(e,t){for(var n=0;n<t;n++)e="0"+e;return e}return be.default=l,be}var we={},Q={},mt;function Ge(){if(mt)return Q;mt=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.mod10=v,Q.mod11=d;function v(h){for(var c=0,f=0;f<h.length;f++){var _=parseInt(h[f]);(f+h.length)%2===0?c+=_:c+=_*2%10+Math.floor(_*2/10)}return(10-c%10)%10}function d(h){for(var c=0,f=[2,3,4,5,6,7],_=0;_<h.length;_++){var s=parseInt(h[h.length-1-_]);c+=f[_%f.length]*s}return(11-c%11)%11}return Q}var bt;function Lr(){if(bt)return we;bt=1,Object.defineProperty(we,"__esModule",{value:!0});var v=ne(),d=c(v),h=Ge();function c(a){return a&&a.__esModule?a:{default:a}}function f(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function s(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var l=function(a){s(e,a);function e(t,n){return f(this,e),_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,h.mod10)(t),n))}return e}(d.default);return we.default=l,we}var Se={},wt;function Nr(){if(wt)return Se;wt=1,Object.defineProperty(Se,"__esModule",{value:!0});var v=ne(),d=c(v),h=Ge();function c(a){return a&&a.__esModule?a:{default:a}}function f(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function s(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var l=function(a){s(e,a);function e(t,n){return f(this,e),_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,h.mod11)(t),n))}return e}(d.default);return Se.default=l,Se}var Re={},St;function Fr(){if(St)return Re;St=1,Object.defineProperty(Re,"__esModule",{value:!0});var v=ne(),d=c(v),h=Ge();function c(a){return a&&a.__esModule?a:{default:a}}function f(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function s(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var l=function(a){s(e,a);function e(t,n){return f(this,e),t+=(0,h.mod10)(t),t+=(0,h.mod10)(t),_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e}(d.default);return Re.default=l,Re}var xe={},Rt;function Gr(){if(Rt)return xe;
1Rt=1,Object.defineProperty(xe,"__esModule",{value:!0});var v=ne(),d=c(v),h=Ge();function c(a){return a&&a.__esModule?a:{default:a}}function f(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function s(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var l=function(a){s(e,a);function e(t,n){return f(this,e),t+=(0,h.mod11)(t),t+=(0,h.mod10)(t),_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e}(d.default);return xe.default=l,xe}var xt;function $r(){if(xt)return T;xt=1,Object.defineProperty(T,"__esModule",{value:!0}),T.MSI1110=T.MSI1010=T.MSI11=T.MSI10=T.MSI=void 0;var v=ne(),d=t(v),h=Lr(),c=t(h),f=Nr(),_=t(f),s=Fr(),l=t(s),a=Gr(),e=t(a);function t(n){return n&&n.__esModule?n:{default:n}}return T.MSI=d.default,T.MSI10=c.default,T.MSI11=_.default,T.MSI1010=l.default,T.MSI1110=e.default,T}var K={},At;function zr(){if(At)return K;At=1,Object.defineProperty(K,"__esModule",{value:!0}),K.pharmacode=void 0;var v=function(){function a(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(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}}(),d=k(),h=c(d);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function s(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var l=function(a){s(e,a);function e(t,n){f(this,e);var r=_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.number=parseInt(t,10),r}return v(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}(h.default);return K.pharmacode=l,K}var W={},Pt;function Hr(){if(Pt)return W;Pt=1,Object.defineProperty(W,"__esModule",{value:!0}),W.codabar=void 0;var v=function(){function a(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(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}}(),d=k(),h=c(d);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function s(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var l=function(a){s(e,a);function e(t,n){f(this,e),t.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(t="A"+t+"A");var r=_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return v(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(),i=0;i<this.data.length;i++)n.push(r[this.data.charAt(i)]),i!==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}(h.default);return W.codabar=l,W}var Z={},Mt;function Ur(){if(Mt)return Z;Mt=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.GenericBarcode=void 0;var v=function(){function a(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(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}}(),d=k(),h=c(d);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function s(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var l=function(a){s(e,a);function e(t,n){return f(this,e),_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return v(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(h.default);return Z.GenericBarcode=l,Z}var Tt;function Vr(){if(Tt)return ae;
1Tt=1,Object.defineProperty(ae,"__esModule",{value:!0});var v=br(),d=Pr(),h=qr(),c=jr(),f=$r(),_=zr(),s=Hr(),l=Ur();return ae.default={CODE39:v.CODE39,CODE128:d.CODE128,CODE128A:d.CODE128A,CODE128B:d.CODE128B,CODE128C:d.CODE128C,EAN13:h.EAN13,EAN8:h.EAN8,EAN5:h.EAN5,EAN2:h.EAN2,UPC:h.UPC,UPCE:h.UPCE,ITF14:c.ITF14,ITF:c.ITF,MSI:f.MSI,MSI10:f.MSI10,MSI11:f.MSI11,MSI1010:f.MSI1010,MSI1110:f.MSI1110,pharmacode:_.pharmacode,codabar:s.codabar,GenericBarcode:l.GenericBarcode},ae}var Ae={},It;function $e(){if(It)return Ae;It=1,Object.defineProperty(Ae,"__esModule",{value:!0});var v=Object.assign||function(d){for(var h=1;h<arguments.length;h++){var c=arguments[h];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(d[f]=c[f])}return d};return Ae.default=function(d,h){return v({},d,h)},Ae}var Pe={},Dt;function Xr(){if(Dt)return Pe;Dt=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=v;function v(d){var h=[];function c(f){if(Array.isArray(f))for(var _=0;_<f.length;_++)c(f[_]);else f.text=f.text||"",f.data=f.data||"",h.push(f)}return c(d),h}return Pe}var Me={},kt;function Jr(){if(kt)return Me;kt=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=v;function v(d){return d.marginTop=d.marginTop||d.margin,d.marginBottom=d.marginBottom||d.margin,d.marginRight=d.marginRight||d.margin,d.marginLeft=d.marginLeft||d.margin,d}return Me}var Te={},Ie={},De={},qt;function Zt(){if(qt)return De;qt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.default=v;function v(d){var h=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];
1for(var c in h)h.hasOwnProperty(c)&&(c=h[c],typeof d[c]=="string"&&(d[c]=parseInt(d[c],10)));return typeof d.displayValue=="string"&&(d.displayValue=d.displayValue!="false"),d}return De}var ke={},Bt;function er(){if(Bt)return ke;Bt=1,Object.defineProperty(ke,"__esModule",{value:!0});var v={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(){}};return ke.default=v,ke}var Ct;function Yr(){if(Ct)return Ie;Ct=1,Object.defineProperty(Ie,"__esModule",{value:!0});var v=Zt(),d=f(v),h=er(),c=f(h);function f(s){return s&&s.__esModule?s:{default:s}}function _(s){var l={};for(var a in c.default)c.default.hasOwnProperty(a)&&(s.hasAttribute("jsbarcode-"+a.toLowerCase())&&(l[a]=s.getAttribute("jsbarcode-"+a.toLowerCase())),s.hasAttribute("data-"+a.toLowerCase())&&(l[a]=s.getAttribute("data-"+a.toLowerCase())));return l.value=s.getAttribute("jsbarcode-value")||s.getAttribute("data-value"),l=(0,d.default)(l),l}return Ie.default=_,Ie}var qe={},Be={},I={},jt;function tr(){if(jt)return I;jt=1,Object.defineProperty(I,"__esModule",{value:!0}),I.getTotalWidthOfEncodings=I.calculateEncodingAttributes=I.getBarcodePadding=I.getEncodingHeight=I.getMaximumHeightOfEncodings=void 0;var v=$e(),d=h(v);function h(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function f(e,t,n){if(n.displayValue&&t<e){if(n.textAlign=="center")return Math.floor((e-t)/2);if(n.textAlign=="left")return 0;if(n.textAlign=="right")return Math.floor(e-t)}return 0}function _(e,t,n){for(var r=0;r<e.length;r++){var i=e[r],o=(0,d.default)(t,i.options),u;o.displayValue?u=a(i.text,o,n):u=0;var y=i.data.length*o.width;i.width=Math.ceil(Math.max(u,y)),i.height=c(i,o),i.barcodePadding=f(u,y,o)}}function s(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t}function l(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t}function a(e,t,n){var r;if(n)r=n;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var i=r.measureText(e);if(!i)return 0;var o=i.width;return o}return I.getMaximumHeightOfEncodings=l,I.getEncodingHeight=c,I.getBarcodePadding=f,I.calculateEncodingAttributes=_,I.getTotalWidthOfEncodings=s,I}var Lt;function Qr(){if(Lt)return Be;Lt=1,Object.defineProperty(Be,"__esModule",{value:!0});var v=function(){function l(a,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}return function(a,e,t){return e&&l(a.prototype,e),t&&l(a,t),a}}(),d=$e(),h=f(d),c=tr();function f(l){return l&&l.__esModule?l:{default:l}}function _(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(a,e,t){_(this,l),this.canvas=a,this.encodings=e,this.options=t}return v(l,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,h.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e=this.canvas.getContext("2d");e.save(),(0,c.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,c.getTotalWidthOfEncodings)(this.encodings),n=(0,c.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,t){var n=this.canvas.getContext("2d"),r=t.data,i;e.textPosition=="top"?i=e.marginTop+e.fontSize+e.textMargin:i=e.marginTop,n.fillStyle=e.lineColor;for(var o=0;o<r.length;o++){var u=o*e.width+t.barcodePadding;r[o]==="1"?n.fillRect(u,i,e.width,e.height):r[o]&&n.fillRect(u,i,e.width,e.height*r[o])}}},{key:"drawCanvasText",value:function(e,t){var n=this.canvas.getContext("2d"),r=e.fontOptions+" "+e.fontSize+"px "+e.font;if(e.displayValue){var i,o;e.textPosition=="top"?o=e.marginTop+e.fontSize-e.textMargin:o=e.height+e.textMargin+e.marginTop+e.fontSize,n.font=r,e.textAlign=="left"||t.barcodePadding>0?(i=0,n.textAlign="left"):e.textAlign=="right"?(i=t.width-1,n.textAlign="right"):(i=t.width/2,n.textAlign="center"),n.fillText(t.text,i,o)}}},{key:"moveCanvasDrawing",value:function(e){var t=this.canvas.getContext("2d");t.translate(e.width,0)}},{key:"restoreCanvas",value:function(){var e=this.canvas.getContext("2d");
1e.restore()}}]),l}();return Be.default=s,Be}var Ce={},Nt;function Kr(){if(Nt)return Ce;Nt=1,Object.defineProperty(Ce,"__esModule",{value:!0});var v=function(){function a(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(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}}(),d=$e(),h=f(d),c=tr();function f(a){return a&&a.__esModule?a:{default:a}}function _(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}var s="http://www.w3.org/2000/svg",l=function(){function a(e,t,n){_(this,a),this.svg=e,this.encodings=t,this.options=n,this.document=n.xmlDocument||document}return v(a,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var n=0;n<this.encodings.length;n++){var r=this.encodings[n],i=(0,h.default)(this.options,r.options),o=this.createGroup(t,i.marginTop,this.svg);this.setGroupOptions(o,i),this.drawSvgBarcode(o,i,r),this.drawSVGText(o,i,r),t+=r.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,c.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,c.getTotalWidthOfEncodings)(this.encodings),n=(0,c.getMaximumHeightOfEncodings)(this.encodings),r=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(r,n),this.options.background&&this.drawRect(0,0,r,n,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,n,r){var i=r.data,o;n.textPosition=="top"?o=n.fontSize+n.textMargin:o=0;for(var u=0,y=0,g=0;g<i.length;g++)y=g*n.width+r.barcodePadding,i[g]==="1"?u++:u>0&&(this.drawRect(y-n.width*u,o,n.width*u,n.height,t),u=0);u>0&&this.drawRect(y-n.width*(u-1),o,n.width*u,n.height,t)}},{key:"drawSVGText",value:function(t,n,r){var i=this.document.createElementNS(s,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||r.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=r.width-1,i.setAttribute("text-anchor","end")):(o=r.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(r.text)),t.appendChild(i)}}},{key:"setSvgAttributes",value:function(t,n){var r=this.svg;r.setAttribute("width",t+"px"),r.setAttribute("height",n+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+t+" "+n),r.setAttribute("xmlns",s),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,n,r){var i=this.document.createElementNS(s,"g");return i.setAttribute("transform","translate("+t+", "+n+")"),r.appendChild(i),i}},{key:"setGroupOptions",value:function(t,n){t.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(t,n,r,i,o){var u=this.document.createElementNS(s,"rect");return u.setAttribute("x",t),u.setAttribute("y",n),u.setAttribute("width",r),u.setAttribute("height",i),o.appendChild(u),u}}]),a}();return Ce.default=l,Ce}var je={},Ft;function Wr(){if(Ft)return je;Ft=1,Object.defineProperty(je,"__esModule",{value:!0});var v=function(){function c(f,_){for(var s=0;s<_.length;s++){var l=_[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(f,l.key,l)}}return function(f,_,s){return _&&c(f.prototype,_),s&&c(f,s),f}}();function d(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var h=function(){function c(f,_,s){d(this,c),this.object=f,this.encodings=_,this.options=s}return v(c,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),c}();return je.default=h,je}var Gt;function Zr(){if(Gt)return qe;Gt=1,Object.defineProperty(qe,"__esModule",{value:!0});var v=Qr(),d=s(v),h=Kr(),c=s(h),f=Wr(),_=s(f);function s(l){return l&&l.__esModule?l:{default:l}}
1return qe.default={CanvasRenderer:d.default,SVGRenderer:c.default,ObjectRenderer:_.default},qe}var X={},$t;function rr(){if($t)return X;$t=1,Object.defineProperty(X,"__esModule",{value:!0});function v(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function d(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:s}function h(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}var c=function(s){h(l,s);function l(a,e){v(this,l);var t=d(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return t.name="InvalidInputException",t.symbology=a,t.input=e,t.message='"'+t.input+'" is not a valid input for '+t.symbology,t}return l}(Error),f=function(s){h(l,s);function l(){v(this,l);var a=d(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return a.name="InvalidElementException",a.message="Not supported type to render on",a}return l}(Error),_=function(s){h(l,s);function l(){v(this,l);var a=d(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return a.name="NoElementException",a.message="No element to render on.",a}return l}(Error);return X.InvalidInputException=c,X.InvalidElementException=f,X.NoElementException=_,X}var zt;function en(){if(zt)return Te;zt=1,Object.defineProperty(Te,"__esModule",{value:!0});var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=Yr(),h=s(d),c=Zr(),f=s(c),_=rr();function s(t){return t&&t.__esModule?t:{default:t}}function l(t){if(typeof t=="string")return a(t);if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(l(t[r]));return n}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return e(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,h.default)(t),renderer:f.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,h.default)(t),renderer:f.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:f.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":v(t))==="object"&&!t.nodeName)return{element:t,renderer:f.default.ObjectRenderer};throw new _.InvalidElementException}}function a(t){var n=document.querySelectorAll(t);if(n.length!==0){for(var r=[],i=0;i<n.length;i++)r.push(l(n[i]));return r}}function e(t){var n=document.createElement("canvas");return{element:n,options:(0,h.default)(t),renderer:f.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",n.toDataURL())}}}return Te.default=l,Te}var Le={},Ht;function tn(){if(Ht)return Le;Ht=1,Object.defineProperty(Le,"__esModule",{value:!0});var v=function(){function c(f,_){for(var s=0;s<_.length;s++){var l=_[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(f,l.key,l)}}return function(f,_,s){return _&&c(f.prototype,_),s&&c(f,s),f}}();function d(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var h=function(){function c(f){d(this,c),this.api=f}return v(c,[{key:"handleCatch",value:function(_){if(_.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw _.message;else throw _;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(_){try{var s=_.apply(void 0,arguments);return this.api._options.valid(!0),s}catch(l){return this.handleCatch(l),this.api}}}]),c}();return Le.default=h,Le}var He,Ut;function rn(){if(Ut)return He;Ut=1;var v=Vr(),d=g(v),h=$e(),c=g(h),f=Xr(),_=g(f),s=Jr(),l=g(s),a=en(),e=g(a),t=Zt(),n=g(t),r=tn(),i=g(r),o=rr(),u=er(),y=g(u);function g(E){return E&&E.__esModule?E:{default:E}
1}var p=function(){},S=function(b,R,w){var m=new p;if(typeof b>"u")throw Error("No element to render on was provided.");return m._renderProperties=(0,e.default)(b),m._encodings=[],m._options=y.default,m._errorHandler=new i.default(m),typeof R<"u"&&(w=w||{},w.format||(w.format=$()),m.options(w)[w.format](R,w).render()),m};S.getModule=function(E){return d.default[E]};for(var D in d.default)d.default.hasOwnProperty(D)&&j(d.default,D);function j(E,b){p.prototype[b]=p.prototype[b.toUpperCase()]=p.prototype[b.toLowerCase()]=function(R,w){var m=this;return m._errorHandler.wrapBarcodeCall(function(){w.text=typeof w.text>"u"?void 0:""+w.text;var M=(0,c.default)(m._options,w);M=(0,n.default)(M);var nr=E[b],ir=G(R,nr,M);return m._encodings.push(ir),m})}}function G(E,b,R){E=""+E;var w=new b(E,R);if(!w.valid())throw new o.InvalidInputException(w.constructor.name,E);var m=w.encode();m=(0,_.default)(m);for(var M=0;M<m.length;M++)m[M].options=(0,c.default)(R,m[M].options);return m}function $(){return d.default.CODE128?"CODE128":Object.keys(d.default)[0]}p.prototype.options=function(E){return this._options=(0,c.default)(this._options,E),this},p.prototype.blank=function(E){var b=new Array(E+1).join("0");return this._encodings.push({data:b}),this},p.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var E;for(var b in this._renderProperties){E=this._renderProperties[b];var R=(0,c.default)(this._options,E.options);R.format=="auto"&&(R.format=$()),this._errorHandler.wrapBarcodeCall(function(){var w=R.value,m=d.default[R.format.toUpperCase()],M=G(w,m,R);F(E,M,R)})}}},p.prototype.render=function(){if(!this._renderProperties)throw new o.NoElementException;if(Array.isArray(this._renderProperties))for(var E=0;E<this._renderProperties.length;E++)F(this._renderProperties[E],this._encodings,this._options);else F(this._renderProperties,this._encodings,this._options);return this},p.prototype._defaults=y.default;function F(E,b,R){b=(0,_.default)(b);for(var w=0;w<b.length;w++)b[w].options=(0,c.default)(R,b[w].options),(0,l.default)(b[w].options);(0,l.default)(R);var m=E.renderer,M=new m(E.element,b,R);M.render(),E.afterRender&&E.afterRender()}return typeof window<"u"&&(window.JsBarcode=S),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(E,b){var R=[];return jQuery(this).each(function(){R.push(this)}),S(R,E,b)}),He=S,He}var nn=rn();const an=or(nn),on=Ve({__name:"CartactiveBarcode",props:{carteFid:{}},setup(v){const d=v,h=Ne();return Xt(()=>{an(h.value,d.carteFid,{format:"EAN13",lineColor:"#A2C037",flat:!0})}),(c,f)=>(C(),B("svg",{id:"barcode",ref_key:"barcode",ref:h},null,512))}}),un={class:"points-range"},fn={class:"range"},cn={class:"progress"},ln={key:0,class:"expiration"},dn=Ve({__name:"PointsRange",props:{customer:{}},setup(v){const d=v,h=Jt(()=>{var c;return Number((c=d.customer)==null?void 0:c.nbPoint)*100/300});return(c,f)=>(C(),B("div",un,[O("div",fn,[O("div",{style:Xe(`margin-left: ${A(h)}%`),class:"points"},H(c.customer.nbPoint)+" PTS ",5),O("div",cn,[O("div",{style:Xe(`width: ${A(h)}%`),class:"bar"},null,4),O("div",{class:ur(["step",parseInt(c.customer.nbPoint)>100?"step--is-active":""].join(" "))},f[0]||(f[0]=[U(" 100 PTS "),O("br",null,null,-1),O("div",{class:"coupon"},"7,50 €",-1)]),2),f[1]||(f[1]=O("div",{class:"step"},[U(" 200 PTS "),O("br"),O("div",{class:"coupon"},"10,00 €")],-1))])]),c.customer.coupon.endDateFormatted?(C(),B("div",ln," Validité du coupon : "+H(c.customer.coupon.endDateFormatted),1)):Ue("",!0)]))}}),Vt=async(v,d)=>{const{adelyaGet:h}=Yt(),c=await h({json_data:JSON.stringify({FidelityMember:{cardnumber:v,actif:1,group:{idExternal:d}}})});async function f(r){const i=await h({json_data:JSON.stringify({AdEvent:{type:r,member:{id:c.FidelityMember.id},group:{idExternal:d}}})});if(i.CompactAdEvent){const o=[];return o.push(i.CompactAdEvent),o}return i.ApiReturn?[]:i}if(!c.FidelityMember||c.ApiReturn&&c.ApiReturn.code==="ERROR")throw new Error("Une erreur Adelya s'est produite.");const _=c.FidelityMember,s=await f("addCA"),l=await f("addPoint"),a=s.map(r=>{const i=l.find(o=>o.cause===r.id);if(r.fvalue==="0.0"&&i){const o=i.univers.split(" ")[1];r.fvalue=o}return{...r,dateFormatted:ze(Ye(r.date,"yyyy-MM-dd HH:mm:ss",new Date,{locale:ie}),"dd/MM/yyyy",{locale:ie}),hoursFormatted:ze(Ye(r.date,"yyyy-MM-dd HH:mm:ss",new Date,{locale:ie}),"HH'h'mm",{locale:ie}),points:i&&i.fvalue?i.fvalue:0}});let e=a;a.length>1&&(e=a.slice().sort((r,i)=>new Date(i.date).getTime()-new Date(r.date).getTime()));const t=await f("COUPON"),n={value:0,endDate:void 0,endDateFormatted:void 0,list:[...t]};return t&&t.forEach(r=>{const i=new Date(r.startDate),o=new Date(r.endDate),u=new Date;r.status1||r.status2||u<i||u>o||(n.value<parseFloat(r.fvalue)&&(n.value=parseFloat(r.fvalue)),(!n.endDate||new Date(n.endDate)<o)&&(n.endDate=o.toString(),n.endDateFormatted=ze(o,"dd/MM/yyyy")))}),{..._,coupon:n,purchases:e}},sn={class:"compte-cartactiv"},hn={class:"breadcrumb"},vn={class:"navigation"},_n={class:"main"}
1,pn={key:0,class:"panels"},yn={class:"panel"},gn={class:"cta"},En={class:"icon"},On={class:"panel"},mn={class:"points"},bn={class:"orders"},wn={class:"date"},Sn={class:"price"},Rn={key:0},xn={key:1},An={class:"points"},Pn={key:1,class:"form"},Mn={class:"wording"},Tn={class:"field"},In={class:"cta"},Fn=Ve({__name:"fidelite",setup(v){const{sendError:d,sendSuccess:h}=fr(),{linkPut:c}=Yt(),{user:f,drugstoreFavorite:_,refreshUser:s}=cr(),{tagSetProperties:l,tagSendEvent:a}=lr(),e=dr([{text:"Accueil",href:"/"},{text:"Mon Compte",href:"/compte/dashboard"},{text:"Mon espace fidélité",href:"/compte/fidelite"}]),t=Er(),n=Ne(),r=Ne(),i=Ne(!1);Xt(async()=>{var g,p,S,D,j,G,$,F,E,b,R;if((p=(g=f.value)==null?void 0:g.patient)!=null&&p.cartesFid&&Array.isArray((D=(S=f.value)==null?void 0:S.patient)==null?void 0:D.cartesFid)&&((G=(j=f.value)==null?void 0:j.patient)!=null&&G.cartesFid.length)&&f.value.patient.cartesFid[0].numero&&_.value)try{r.value=await Vt(f.value.patient.cartesFid[0].numero,_.value.cipOfficine)}catch{d("Le numéro de votre carte de fidélité n'est pas valide.")}else if(($=f.value)!=null&&$.patient&&f.value.patient.cartesFid&&!Array.isArray((E=(F=f.value)==null?void 0:F.patient)==null?void 0:E.cartesFid)&&f.value.patient.cartesFid.cartActive)try{await c(`/patient/${f.value.patientId}`,{cartesFid:[{numero:f.value.patient.cartesFid.cartActive}]}),await s()}catch{d("Mise à jour échouée")}l({name:!f.value.patient.cartesFid||Array.isArray((R=(b=f.value)==null?void 0:b.patient)==null?void 0:R.cartesFid)&&!f.value.patient.cartesFid[0].numero?"Code_Cartactiv":"Ma_cartactiv",chapter1:"Mon_compte",level2:3,customVars:{site:{1:"[mon_compte]"}}})});function o(){typeof window.print=="function"&&window.print()}async function u(){if(!n.value){d("Veuillez saisir un numéro de carte.");return}if(!_.value){d("Veuillez sélectionner une pharmacie favorite.");return}try{i.value=!0,r.value=await Vt(n.value,_.value.cipOfficine),await c(`/patient/${f.value.patientId}`,{cartesFid:[{numero:n.value.toString()}]}),await s(),h("Votre carte a bien été ajouté.")}catch{d("Le numéro de votre carte de fidélité n'est pas valide.")}finally{i.value=!1}}const y=Jt(()=>({programme:t.public.MY_ENV_VAR_ID_PROGRAMME?`/services/${t.public.MY_ENV_VAR_ID_PROGRAMME}`:"/services"}));return(g,p)=>{var b,R,w;const S=ar,D=sr,j=Or,G=on,$=dn,F=mr,E=gr;return C(),B("div",sn,[O("div",hn,[L(S,{"links-list":A(e)},null,8,["links-list"])]),O("div",vn,[L(j,{class:"fid"},{default:Je(()=>[L(D,{name:"my-icon:loyalty",class:"icon icon--complex mb-5"}),p[4]||(p[4]=U(" Mon espace fidélité "))]),_:1,__:[4]})]),O("div",_n,[Array.isArray((b=A(f))==null?void 0:b.patient.cartesFid)&&A(f).patient.cartesFid[0].numero&&A(r)?(C(),B("div",pn,[O("div",yn,[L(G,{"carte-fid":A(f).patient.cartesFid[0].numero},null,8,["carte-fid"]),p[6]||(p[6]=O("div",{class:"wording"},"Vous avez perdu votre carte de fidélité ?",-1)),O("div",gn,[O("div",{class:"base-button",onClick:p[0]||(p[0]=m=>(A(a)("click.action",{name:"imprimer",chapter1:"Ma_cartactiv",type:"action"}),o()))},[p[5]||(p[5]=U(" Imprimer ")),O("div",En,[L(D,{name:"i-mdi:arrow-right",color:"black"})])])])]),O("div",On,[O("div",mn,[p[7]||(p[7]=O("div",{class:"heading"},"Mes Points",-1)),L($,{customer:A(r)},null,8,["customer"]),p[8]||(p[8]=O("div",{class:"heading"},"Derniers achats",-1)),O("ul",bn,[(C(!0),B(hr,null,vr(A(r).purchases,(m,M)=>(C(),B("li",{key:M,class:"item"},[O("div",wn,H(m.dateFormatted)+" "+H(m.hoursFormatted),1),O("div",Sn,[isNaN(parseFloat(m.fvalue))?(C(),B("span",Rn,H(m.fvalue),1)):(C(),B("span",xn,H(m.fvalue)+" €",1))]),O("div",An,H(m.points)+" PTS",1)]))),128))])])])])):Ue("",!0),!((R=A(f))!=null&&R.patient.cartesFid)||Array.isArray((w=A(f))==null?void 0:w.patient.cartesFid)&&!A(f).patient.cartesFid[0].numero?(C(),B("div",Pn,[O("div",Mn,[p[12]||(p[12]=O("p",null," Pour lier votre carte de fidélité, rendez-vous dans votre pharmacie favorite et demandez dès aujourd'hui votre carte de fidélité gratuite. ",-1)),p[13]||(p[13]=O("p",null,"Vous pourrez ensuite :",-1)),p[14]||(p[14]=O("ul",null,[O("li",null," - cumuler des points à chaque achat de produits de parapharmacie "),O("li",null," - cumuler des bons d'achats pour profiter des promotions sur vos produits favoris ")],-1)),O("p",null,[p[10]||(p[10]=U(" Pour en savoir plus, ")),L(F,{to:`${A(y).programme}`},{default:Je(()=>p[9]||(p[9]=[U("cliquez ici")])),_:1,__:[9]},8,["to"]),p[11]||(p[11]=U(". "))])]),p[15]||(p[15]=O("label",{class:"heading"},"Saisissez votre numéro de carte de fidélité",-1)),O("div",Tn,[L(yr,{modelValue:A(n),"onUpdate:modelValue":p[1]||(p[1]=m=>pr(n)?n.value=m:null),type:"text",variant:"underlined",class:"base-input",placeholder:"Numéro carte de fidélité",onKeyup:p[2]||(p[2]=_r(m=>u(),["enter"]))},null,8,["modelValue"])]),O("div",In,[L(E,{"is-loading":A(i),text:"Lier le compte",type:"button",onClick:p[3]||(p[3]=m=>(A(a)("click.action",{name:"lier_le_compte",chapter1:"Ma_cartactiv",type:"action"}),u()))},null,8,["is-loading"])])])):Ue("",!0)])])}}});
1export{Fn as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.