UNPKG

rescode

Version:

Generate Codes (EAN13, QRCODE ..)

852 lines (851 loc) 38.8 kB
var BWIPJS = require("../bwip.js"); // file: bwipp/channelcode.js // // This code was automatically generated from: // Barcode Writer in Pure PostScript - Version 2013-01-25 // // Copyright (c) 2011-2013 Mark Warren // Copyright (c) 2004-2013 Terry Burton // // See the LICENSE file in the bwip.js root directory // for the extended copyright notice. // BEGIN channelcode if (!BWIPJS.bwipp["renlinear"]) BWIPJS.load("bwipp/renlinear.js"); BWIPJS.bwipp["channelcode"]=function() { this.dict["renlinear"]=BWIPJS.bwipp["renlinear"]; function $f0(){ return -1; } function $f1(){ var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f2(){ this.stk[this.ptr++]=true; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f3(){ var a=/^\s*([^\s]+)(\s+.*)?$/.exec(this.stk[this.ptr-1]); if (a) { this.stk[this.ptr-1]=BWIPJS.psstring(a[2]===undefined?"":a[2]); this.stk[this.ptr++]=BWIPJS.psstring(a[1]); this.stk[this.ptr++]=true; } else { this.stk[this.ptr-1]=false; } this.stk[this.ptr++]=false; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f0; var t0=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t0.call(this)==-1) return -1; } this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); var t=this.stk[this.ptr-2].toString(); this.stk[this.ptr-1].assign(0,t); this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,t.length); this.ptr--; this.stk[this.ptr++]=BWIPJS.psstring("="); var h=this.stk[this.ptr-2]; var t=h.indexOf(this.stk[this.ptr-1]); if (t==-1) { this.stk[this.ptr-1]=false; } else { this.stk[this.ptr-2]=h.subset(t+this.stk[this.ptr-1].length); this.stk[this.ptr-1]=h.subset(t,this.stk[this.ptr-1].length); this.stk[this.ptr++]=h.subset(0,t); this.stk[this.ptr++]=true; } this.stk[this.ptr++]=true; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f1; this.stk[this.ptr++]=$f2; var t1=this.stk[--this.ptr]; var t2=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t2.call(this)==-1) return -1; } else { if (t1.call(this)==-1) return -1; } } function $f4(){ this.stk[this.ptr++]=1; this.stk[this.ptr-1]={}; this.dict=this.stk[--this.ptr]; this.dstk.push(this.dict); var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f3; var t3=this.stk[--this.ptr]; while (true) { if (t3.call(this)==-1) break; } this.stk[this.ptr++]=this.dict; this.dstk.pop(); this.dict=this.dstk[this.dstk.length-1]; this.stk[this.ptr++]="options"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f5(){ this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f6(){ this.stk[this.ptr++]="channels"; //ident var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f7(){ this.stk[this.ptr++]="finder"; //ident this.stk[this.ptr++]=BWIPJS.psarray([1,1,1,1,1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f8(){ this.stk[this.ptr++]="finder"; //ident this.stk[this.ptr++]=BWIPJS.psarray([1,1,1,1,1,1,1,1,1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f9(){ this.stk[this.ptr++]=1; } function $f10(){ this.stk[this.ptr++]=2; } function $f11(){ var t=this.dstk.get("b"); if (t===undefined) throw new Error("dict: b: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=3; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; this.stk[this.ptr++]=3; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=4; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=3; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("nexts"); if (t===undefined) throw new Error("dict: nexts: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f12(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=1; this.stk[this.ptr++]=4; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=$f11; var t17=this.stk[--this.ptr]; var t15=this.stk[--this.ptr]; var t14=this.stk[--this.ptr]; var t13=this.stk[--this.ptr]; for (var t16=t13; t14<0 ? t16>=t15 : t16<=t15; t16+=t14) { this.stk[this.ptr++]=t16; if (t17.call(this)==-1) break; } } function $f13(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("s"); if (t===undefined) throw new Error("dict: s: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; var t=this.dstk.get("b"); if (t===undefined) throw new Error("dict: b: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; } function $f14(){ this.stk[this.ptr++]="out"; //ident this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]=3; this.stk[this.ptr++]=1; this.stk[this.ptr++]=10; this.stk[this.ptr++]=$f13; var t22=this.stk[--this.ptr]; var t20=this.stk[--this.ptr]; var t19=this.stk[--this.ptr]; var t18=this.stk[--this.ptr]; for (var t21=t18; t19<0 ? t21>=t20 : t21<=t20; t21+=t19) { this.stk[this.ptr++]=t21; if (t22.call(this)==-1) break; } for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.stk[this.ptr++]=0; var t=this.dstk.get("chan"); if (t===undefined) throw new Error("dict: chan: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f15(){ var t=this.dstk.get("b"); if (t===undefined) throw new Error("dict: b: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=4; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; var t=this.dstk.get("value"); if (t===undefined) throw new Error("dict: value: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("target"); if (t===undefined) throw new Error("dict: target: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f14; var t23=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t23.call(this)==-1) return -1; } this.stk[this.ptr++]="value"; //ident var t=this.dstk.get("value"); if (t===undefined) throw new Error("dict: value: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f16(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=3; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr-2]=this.stk[this.ptr-2]<=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f15; var t24=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t24.call(this)==-1) return -1; } } function $f17(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("s"); if (t===undefined) throw new Error("dict: s: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("b"); if (t===undefined) throw new Error("dict: b: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("s"); if (t===undefined) throw new Error("dict: s: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; var t=this.dstk.get("b"); if (t===undefined) throw new Error("dict: b: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=4; this.stk[this.ptr-2]=this.stk[this.ptr-2]>this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f9; this.stk[this.ptr++]=$f10; var t11=this.stk[--this.ptr]; var t12=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t12.call(this)==-1) return -1; } else { if (t11.call(this)==-1) return -1; } this.stk[this.ptr++]=1; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; var t=this.dstk.get("chan"); if (t===undefined) throw new Error("dict: chan: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-2]=this.stk[this.ptr-2]<this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f12; this.stk[this.ptr++]=$f16; var t25=this.stk[--this.ptr]; var t26=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t26.call(this)==-1) return -1; } else { if (t25.call(this)==-1) return -1; } this.ptr--; this.ptr--; this.ptr--; this.ptr--; } function $f18(){ this.stk[this.ptr++]=1; } function $f19(){ this.stk[this.ptr++]=1; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; } function $f20(){ var t=this.dstk.get("s"); if (t===undefined) throw new Error("dict: s: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; this.stk[this.ptr++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=3; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; var t=this.dstk.get("nextb"); if (t===undefined) throw new Error("dict: nextb: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f21(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("chan"); if (t===undefined) throw new Error("dict: chan: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-2]=this.stk[this.ptr-2]<this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f18; this.stk[this.ptr++]=$f19; var t27=this.stk[--this.ptr]; var t28=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t28.call(this)==-1) return -1; } else { if (t27.call(this)==-1) return -1; } this.stk[this.ptr++]=1; this.stk[this.ptr++]=3; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; this.stk[this.ptr++]=$f20; var t33=this.stk[--this.ptr]; var t31=this.stk[--this.ptr]; var t30=this.stk[--this.ptr]; var t29=this.stk[--this.ptr]; for (var t32=t29; t30<0 ? t32>=t31 : t32<=t31; t32+=t30) { this.stk[this.ptr++]=t32; if (t33.call(this)==-1) break; } this.ptr--; this.ptr--; this.ptr--; } function $f22(){ this.stk[this.ptr++]="chan"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="target"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="value"; //ident this.stk[this.ptr++]=0; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="out"; //ident this.stk[this.ptr++]=-1; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="b"; //ident this.stk[this.ptr++]=BWIPJS.psarray([1,1,1,0,0,0,0,0,0,0,0]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="s"; //ident this.stk[this.ptr++]=BWIPJS.psarray([0,1,1,0,0,0,0,0,0,0,0]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("chan"); if (t===undefined) throw new Error("dict: chan: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=3; var t=this.dstk.get("nexts"); if (t===undefined) throw new Error("dict: nexts: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("out"); if (t===undefined) throw new Error("dict: out: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f23(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("data"); if (t===undefined) throw new Error("dict: data: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; var t=this.dstk.get("mod23"); if (t===undefined) throw new Error("dict: mod23: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; } function $f24(){ this.stk[this.ptr++]="mod23"; //ident this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]=BWIPJS.psarray([]); this.stk[this.ptr++]=BWIPJS.psarray([]); this.stk[this.ptr++]=BWIPJS.psarray([]); this.stk[this.ptr++]=BWIPJS.psarray([13,12,4,9,3,1]); this.stk[this.ptr++]=BWIPJS.psarray([13,2,12,3,18,16,4,1]); this.stk[this.ptr++]=BWIPJS.psarray([11,16,17,8,20,4,10,2,5,1]); this.stk[this.ptr++]=BWIPJS.psarray([1,4,16,18,3,12,2,8,9,13,6,1]); this.stk[this.ptr++]=BWIPJS.psarray([20,16,22,13,15,12,5,4,8,9,21,3,7,1]); this.stk[this.ptr++]=BWIPJS.psarray([2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1]); for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); var t=this.dstk.get("channels"); if (t===undefined) throw new Error("dict: channels: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]=0; this.stk[this.ptr++]=0; this.stk[this.ptr++]=1; var t=this.dstk.get("data"); if (t===undefined) throw new Error("dict: data: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f23; var t38=this.stk[--this.ptr]; var t36=this.stk[--this.ptr]; var t35=this.stk[--this.ptr]; var t34=this.stk[--this.ptr]; for (var t37=t34; t35<0 ? t37>=t36 : t37<=t36; t37+=t35) { this.stk[this.ptr++]=t37; if (t38.call(this)==-1) break; } this.stk[this.ptr++]=23; this.stk[this.ptr-2]=this.stk[this.ptr-2]%this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=3; var t=this.dstk.get("encode"); if (t===undefined) throw new Error("dict: encode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]="check"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f25(){ this.stk[this.ptr++]="i"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("txt"); if (t===undefined) throw new Error("dict: txt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=Infinity; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr++]=0; this.stk[this.ptr++]=0; this.stk[this.ptr++]=BWIPJS.psstring(""); this.stk[this.ptr++]=0; for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; } function $f26(){ var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f27(){ this.stk[this.ptr++]=0; } this.stk[this.ptr++]=20; this.stk[this.ptr-1]={}; this.dict=this.stk[--this.ptr]; this.dstk.push(this.dict); this.stk[this.ptr++]="options"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="barcode"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="dontdraw"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="shortfinder"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="includetext"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="includecheck"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="height"; //ident this.stk[this.ptr++]=1; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr++]="stringtype"; //ident if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f4; var t4=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t4.call(this)==-1) return -1; } var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f5; var t7=this.stk[--this.ptr]; var t6=this.stk[--this.ptr]; for (t5 in t6) { if (t6 instanceof BWIPJS.psstring || t6 instanceof BWIPJS.psarray) { if (t5.charCodeAt(0) > 57) continue; this.stk[this.ptr++]=t6.get(t5); } else { this.stk[this.ptr++]=t5; this.stk[this.ptr++]=t6[t5]; } if (t7.call(this)==-1) break; } this.stk[this.ptr++]="height"; //ident var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=parseFloat(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="barlen"; //ident var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=this.stk[this.ptr-2]>=this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=7; this.stk[this.ptr-2]=this.stk[this.ptr-2]<=this.stk[this.ptr-1]; this.ptr--; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]&this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f6; var t8=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t8.call(this)==-1) return -1; } var t=this.dstk.get("shortfinder"); if (t===undefined) throw new Error("dict: shortfinder: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f7; this.stk[this.ptr++]=$f8; var t9=this.stk[--this.ptr]; var t10=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t10.call(this)==-1) return -1; } else { if (t9.call(this)==-1) return -1; } this.stk[this.ptr++]="nextb"; //ident this.stk[this.ptr++]=$f17; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="nexts"; //ident this.stk[this.ptr++]=$f21; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="encode"; //ident this.stk[this.ptr++]=$f22; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="data"; //ident var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=parseInt(this.stk[this.ptr-1],10); var t=this.dstk.get("channels"); if (t===undefined) throw new Error("dict: channels: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("encode"); if (t===undefined) throw new Error("dict: encode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="check"; //ident this.stk[this.ptr++]=BWIPJS.psarray([]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("includecheck"); if (t===undefined) throw new Error("dict: includecheck: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f24; var t39=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t39.call(this)==-1) return -1; } this.stk[this.ptr++]="sbs"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("finder"); if (t===undefined) throw new Error("dict: finder: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; var t=this.dstk.get("data"); if (t===undefined) throw new Error("dict: data: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; var t=this.dstk.get("check"); if (t===undefined) throw new Error("dict: check: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="txt"; //ident var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=BWIPJS.psarray(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]=0; this.stk[this.ptr++]=1; var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f25; var t44=this.stk[--this.ptr]; var t42=this.stk[--this.ptr]; var t41=this.stk[--this.ptr]; var t40=this.stk[--this.ptr]; for (var t43=t40; t41<0 ? t43>=t42 : t43<=t42; t43+=t41) { this.stk[this.ptr++]=t43; if (t44.call(this)==-1) break; } this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]="ren"; //ident var t=this.dstk.get("renlinear"); if (t===undefined) throw new Error("//renlinear: undefined"); this.stk[this.ptr++]=t; this.stk[this.ptr++]="sbs"; //ident var t=this.dstk.get("sbs"); if (t===undefined) throw new Error("dict: sbs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]="bhs"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("sbs"); if (t===undefined) throw new Error("dict: sbs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=Math.floor(this.stk[this.ptr-2]/this.stk[this.ptr-1]); this.ptr--; this.stk[this.ptr++]=$f26; var t47=this.stk[--this.ptr]; var t45=this.stk[--this.ptr]; for (var t46=0; t46<t45; t46++) { if (t47.call(this)==-1) break; } for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.stk[this.ptr++]="bbs"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("sbs"); if (t===undefined) throw new Error("dict: sbs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=Math.floor(this.stk[this.ptr-2]/this.stk[this.ptr-1]); this.ptr--; this.stk[this.ptr++]=$f27; var t50=this.stk[--this.ptr]; var t48=this.stk[--this.ptr]; for (var t49=0; t49<t48; t49++) { if (t50.call(this)==-1) break; } for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.stk[this.ptr++]="txt"; //ident var t=this.dstk.get("txt"); if (t===undefined) throw new Error("dict: txt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]="textxalign"; //ident this.stk[this.ptr++]=BWIPJS.psstring("center"); this.stk[this.ptr++]="opt"; //ident var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t = {}; for (var i = this.ptr-1; i >= 1 && this.stk[i] !== Infinity; i-=2) { if (this.stk[i-1] === Infinity) throw "dict: malformed stack"; t[this.stk[i-1]]=this.stk[i]; } if (i < 0 || this.stk[i]!==Infinity) throw "dict: underflow"; this.ptr = i; this.stk[this.ptr++]=t; var t=this.dstk.get("dontdraw"); if (t===undefined) throw new Error("dict: dontdraw: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-1]=!this.stk[this.ptr-1]; else this.stk[this.ptr-1]=~this.stk[this.ptr-1]; var t=this.dstk.get("renlinear"); if (t===undefined) throw new Error("//renlinear: undefined"); this.stk[this.ptr++]=t; var t51=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t51.call(this)==-1) return -1; } this.dstk.pop(); this.dict=this.dstk[this.dstk.length-1]; psstptr = this.ptr; } // END OF channelcode