/* * PHP QR Code encoder * * QR Code CANVAS support * * PHP QR Code is distributed under LGPL 3 * Copyright (C) 2010 Dominik Dzienia * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('12 15(C){f(C==\'0\'){14 0}v{a 13=C.1r();a Y=1;f(C==13)Y=-1;a 1l=13.1i(0)-1w;14 1l*Y}}12 1Q(C){a b=1L 1Y();a r=C.o(\',\');1k(r.N>0){a Q=r.u();a J=Q.1r();1m(J){l\'P\':l\'R\':f(Q==J){b.d(\'S\')}v{b.d(\'W\')}b.d(J);a p=r.u();a V=p.N;U(a i=0;i=1j){t+=((n-1j)+10)}v f(n>=1h){t+=((n-1h)+1y)}v f(n>=1e){t+=(n-1e)}b.d(t+\'\')}k;l\'B\':a 1d=s(r.u());U(a 11=0;11<1d;11++){f(Q==J){b.d(\'S\')}v{b.d(\'W\')}b.d(\'B\');b.d(\'M\');a g=s(r.u());a h=s(r.u());b.d(g+\'\');b.d(h+\'\');b.d(\'T\');a p=r.u();p=p.o(\'1\').q(\'1z\').o(\'2\').q(\'1C\').o(\'3\').q(\'1F\').o(\'4\').q(\'1D\').o(\'5\').q(\'1E\').o(\'6\').q(\'1s\').o(\'7\').q(\'1x\').o(\'8\').q(\'1v\').o(\'9\').q(\'1t\');a V=p.N;U(a i=0;i