rescode
Version:
Generate Codes (EAN13, QRCODE ..)
1,081 lines • 84.3 kB
JavaScript
var BWIPJS = require("../bwip.js");
// file: bwipp/renlinear.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 renlinear
BWIPJS.bwipp["renlinear"]=function() {
function $f0(){
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f1(){
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f2(){
this.stk[this.ptr++]="maxh"; //ident
var t=this.dstk.get("h");
if (t===undefined) throw new Error("dict: h: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("y");
if (t===undefined) throw new Error("dict: y: 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-1]; this.ptr--;
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f3(){
this.stk[this.ptr++]="h"; //ident
var t=this.dstk.get("bhs");
if (t===undefined) throw new Error("dict: bhs: 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++]=2;
this.stk[this.ptr-2]=Math.floor(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--;
this.stk[this.ptr++]=72;
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;
this.stk[this.ptr++]="c"; //ident
var t=this.dstk.get("d");
if (t===undefined) throw new Error("dict: d: 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("x");
if (t===undefined) throw new Error("dict: x: 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-1]; this.ptr--;
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
this.stk[this.ptr++]="y"; //ident
var t=this.dstk.get("bbs");
if (t===undefined) throw new Error("dict: bbs: 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++]=2;
this.stk[this.ptr-2]=Math.floor(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--;
this.stk[this.ptr++]=72;
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;
this.stk[this.ptr++]="w"; //ident
var t=this.dstk.get("d");
if (t===undefined) throw new Error("dict: d: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("inkspread");
if (t===undefined) throw new Error("dict: inkspread: 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-1]; this.ptr--;
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
var t=this.dstk.get("bars");
if (t===undefined) throw new Error("dict: bars: 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++]=2;
this.stk[this.ptr-2]=Math.floor(this.stk[this.ptr-2]/this.stk[this.ptr-1]); this.ptr--;
this.stk[this.ptr++]=Infinity;
var t=this.dstk.get("h");
if (t===undefined) throw new Error("dict: h: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("c");
if (t===undefined) throw new Error("dict: c: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("y");
if (t===undefined) throw new Error("dict: y: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("w");
if (t===undefined) throw new Error("dict: w: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
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;
var t=this.dstk.get("h");
if (t===undefined) throw new Error("dict: h: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("y");
if (t===undefined) throw new Error("dict: y: 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-1]; this.ptr--;
var t=this.dstk.get("maxh");
if (t===undefined) throw new Error("dict: maxh: 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-1]; this.ptr--;
this.stk[this.ptr++]=$f2;
var t6=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t6.call(this)==-1) return -1;
}
}
function $f4(){
var t=this.dstk.get("bars");
if (t===undefined) throw new Error("dict: bars: 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++]=2;
this.stk[this.ptr-2]=Math.floor(this.stk[this.ptr-2]/this.stk[this.ptr-1]); this.ptr--;
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;
}
function $f5(){
this.stk[this.ptr++]="d"; //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;
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;
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.dstk.get("barratio");
if (t===undefined) throw new Error("dict: barratio: 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-1]; this.ptr--;
var t=this.dstk.get("barratio");
if (t===undefined) throw new Error("dict: barratio: 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-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.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
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;
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;
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++]=0;
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++]=$f3;
this.stk[this.ptr++]=$f4;
var t7=this.stk[--this.ptr];
var t8=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t8.call(this)==-1) return -1;
} else {
if (t7.call(this)==-1) return -1;
}
}
function $f6(){
this.stk[this.ptr++]="d"; //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;
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;
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.dstk.get("spaceratio");
if (t===undefined) throw new Error("dict: spaceratio: 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-1]; this.ptr--;
var t=this.dstk.get("spaceratio");
if (t===undefined) throw new Error("dict: spaceratio: 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-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.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f7(){
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("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++]=2;
this.stk[this.ptr-2]=this.stk[this.ptr-2]%this.stk[this.ptr-1]; this.ptr--;
this.stk[this.ptr++]=0;
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++]=$f5;
this.stk[this.ptr++]=$f6;
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++]="x"; //ident
var t=this.dstk.get("x");
if (t===undefined) throw new Error("dict: x: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("d");
if (t===undefined) throw new Error("dict: d: 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-1]; this.ptr--;
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f8(){
var t=this.dstk.get("width");
if (t===undefined) throw new Error("dict: width: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=72;
this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--;
var t=this.dstk.get("x");
if (t===undefined) throw new Error("dict: x: 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-1]; this.ptr--;
this.stk[this.ptr++]=1;
var y=this.stk[--this.ptr];
this.scale(this.stk[--this.ptr],y);
}
function $f9(){
this.stk[this.ptr++]=255;
this.stk[this.ptr-2]=this.stk[this.ptr-2]/this.stk[this.ptr-1]; this.ptr--;
}
function $f10(){
this.stk[this.ptr++]=BWIPJS.psstring("< >");
this.stk[this.ptr++]=8;
this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]);
if (typeof(this.stk[this.ptr-1])=="number") {
for (var n=this.stk[--this.ptr],t=this.ptr+n; this.ptr<t; this.ptr++) this.stk[this.ptr]=this.stk[this.ptr-n];
} else if (this.stk[this.ptr-1] instanceof BWIPJS.psstring||this.stk[this.ptr-1] instanceof BWIPJS.psarray) {
this.stk[this.ptr-1].assign(0,this.stk[this.ptr-2]);
this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,this.stk[this.ptr-2].length);
this.ptr--;
} else {
var src=this.stk[this.ptr-2]; var dst=this.stk[this.ptr-1];
for (var i in src) dst[i]=src[i];
this.stk[this.ptr-2]=dst;
this.ptr--;
}
this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++;
this.stk[this.ptr++]=1;
var t=this.dstk.get("anycolor");
if (t===undefined) throw new Error("dict: anycolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3;
var t=this.stk[--this.ptr];
if (t instanceof Function) t.call(this); else this.eval(t);
this.stk[this.ptr++]=$f9;
var t19=this.stk[--this.ptr];
var t18=this.stk[--this.ptr];
for (t17 in t18) {
if (t18 instanceof BWIPJS.psstring || t18 instanceof BWIPJS.psarray) {
if (t17.charCodeAt(0) > 57) continue;
this.stk[this.ptr++]=t18.get(t17);
} else {
this.stk[this.ptr++]=t17;
this.stk[this.ptr++]=t18[t17];
}
if (t19.call(this)==-1) break;
}
this.setrgb(this.stk[this.ptr-3],this.stk[this.ptr-2],this.stk[this.ptr-1]);
this.ptr-=3;
}
function $f11(){
this.stk[this.ptr++]=255;
this.stk[this.ptr-2]=this.stk[this.ptr-2]/this.stk[this.ptr-1]; this.ptr--;
}
function $f12(){
this.stk[this.ptr++]=BWIPJS.psstring("< >");
this.stk[this.ptr++]=10;
this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]);
if (typeof(this.stk[this.ptr-1])=="number") {
for (var n=this.stk[--this.ptr],t=this.ptr+n; this.ptr<t; this.ptr++) this.stk[this.ptr]=this.stk[this.ptr-n];
} else if (this.stk[this.ptr-1] instanceof BWIPJS.psstring||this.stk[this.ptr-1] instanceof BWIPJS.psarray) {
this.stk[this.ptr-1].assign(0,this.stk[this.ptr-2]);
this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,this.stk[this.ptr-2].length);
this.ptr--;
} else {
var src=this.stk[this.ptr-2]; var dst=this.stk[this.ptr-1];
for (var i in src) dst[i]=src[i];
this.stk[this.ptr-2]=dst;
this.ptr--;
}
this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++;
this.stk[this.ptr++]=1;
var t=this.dstk.get("anycolor");
if (t===undefined) throw new Error("dict: anycolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3;
var t=this.stk[--this.ptr];
if (t instanceof Function) t.call(this); else this.eval(t);
this.stk[this.ptr++]=$f11;
var t23=this.stk[--this.ptr];
var t22=this.stk[--this.ptr];
for (t21 in t22) {
if (t22 instanceof BWIPJS.psstring || t22 instanceof BWIPJS.psarray) {
if (t21.charCodeAt(0) > 57) continue;
this.stk[this.ptr++]=t22.get(t21);
} else {
this.stk[this.ptr++]=t21;
this.stk[this.ptr++]=t22[t21];
}
if (t23.call(this)==-1) break;
}
this.setcmyk(this.stk[this.ptr-4],this.stk[this.ptr-3],this.stk[this.ptr-2],this.stk[this.ptr-1]);
this.ptr-=4;
}
function $f13(){
this.stk[this.ptr++]="anycolor"; //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("anycolor");
if (t===undefined) throw new Error("dict: anycolor: 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++]=6;
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++]=$f10;
var t20=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t20.call(this)==-1) return -1;
}
var t=this.dstk.get("anycolor");
if (t===undefined) throw new Error("dict: anycolor: 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++]=8;
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++]=$f12;
var t24=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t24.call(this)==-1) return -1;
}
}
function $f14(){
this.gsave();
var t=this.dstk.get("backgroundcolor");
if (t===undefined) throw new Error("dict: backgroundcolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("setanycolor");
if (t===undefined) throw new Error("dict: setanycolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.fill();
this.grestore();
}
function $f15(){
var t=this.dstk.get("bordercolor");
if (t===undefined) throw new Error("dict: bordercolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("setanycolor");
if (t===undefined) throw new Error("dict: setanycolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
}
function $f16(){
this.gsave();
var t=this.dstk.get("bordercolor");
if (t===undefined) throw new Error("dict: bordercolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("unset");
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++]=$f15;
var t26=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t26.call(this)==-1) return -1;
}
var t=this.dstk.get("borderwidth");
if (t===undefined) throw new Error("dict: borderwidth: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.setlinewidth(this.stk[--this.ptr]);
this.stroke();
this.grestore();
}
function $f17(){
var t=this.dstk.get("barcolor");
if (t===undefined) throw new Error("dict: barcolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("setanycolor");
if (t===undefined) throw new Error("dict: setanycolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
}
function $f18(){
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--;
this.newpath();
this.setlinewidth(this.stk[--this.ptr]);
var y=this.stk[--this.ptr];
this.moveto(this.stk[--this.ptr],y);
this.stk[this.ptr++]=0;
var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t;
var y=this.stk[--this.ptr];
this.rlineto(this.stk[--this.ptr],y);
this.stroke();
}
function $f19(){
this.ptr--;
}
function $f20(){
this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++;
this.stk[this.ptr++]=-1;
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++]=$f18;
this.stk[this.ptr++]=$f19;
var t29=this.stk[--this.ptr];
var t30=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t30.call(this)==-1) return -1;
} else {
if (t29.call(this)==-1) return -1;
}
}
function $f21(){
var t=this.dstk.get("textcolor");
if (t===undefined) throw new Error("dict: textcolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("setanycolor");
if (t===undefined) throw new Error("dict: setanycolor: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
}
function $f22(){
}
function $f23(){
this.stk[this.ptr++]=2;
if (typeof(this.stk[this.ptr-1])=="number") {
for (var n=this.stk[--this.ptr],t=this.ptr+n; this.ptr<t; this.ptr++) this.stk[this.ptr]=this.stk[this.ptr-n];
} else if (this.stk[this.ptr-1] instanceof BWIPJS.psstring||this.stk[this.ptr-1] instanceof BWIPJS.psarray) {
this.stk[this.ptr-1].assign(0,this.stk[this.ptr-2]);
this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,this.stk[this.ptr-2].length);
this.ptr--;
} else {
var src=this.stk[this.ptr-2]; var dst=this.stk[this.ptr-1];
for (var i in src) dst[i]=src[i];
this.stk[this.ptr-2]=dst;
this.ptr--;
}
this.stk[this.ptr++]="s"; //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++]="fn"; //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.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.findfont(BWIPJS.psstring(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.ptr--; this.stk[this.ptr-1].FontSize = this.stk[this.ptr];
this.setfont(this.stk[--this.ptr]);
}
function $f24(){
this.ptr--;
this.ptr--;
}
function $f25(){
this.stk[this.ptr++]=$f22;
var t37=this.stk[--this.ptr];
var t36=this.stk[--this.ptr];
for (t35 in t36) {
if (t36 instanceof BWIPJS.psstring || t36 instanceof BWIPJS.psarray) {
if (t35.charCodeAt(0) > 57) continue;
this.stk[this.ptr++]=t36.get(t35);
} else {
this.stk[this.ptr++]=t35;
this.stk[this.ptr++]=t36[t35];
}
if (t37.call(this)==-1) break;
}
this.stk[this.ptr++]=2;
if (typeof(this.stk[this.ptr-1])=="number") {
for (var n=this.stk[--this.ptr],t=this.ptr+n; this.ptr<t; this.ptr++) this.stk[this.ptr]=this.stk[this.ptr-n];
} else if (this.stk[this.ptr-1] instanceof BWIPJS.psstring||this.stk[this.ptr-1] instanceof BWIPJS.psarray) {
this.stk[this.ptr-1].assign(0,this.stk[this.ptr-2]);
this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,this.stk[this.ptr-2].length);
this.ptr--;
} else {
var src=this.stk[this.ptr-2]; var dst=this.stk[this.ptr-1];
for (var i in src) dst[i]=src[i];
this.stk[this.ptr-2]=dst;
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;
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--;
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("fn");
if (t===undefined) throw new Error("dict: fn: 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--;
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++]=$f23;
this.stk[this.ptr++]=$f24;
var t38=this.stk[--this.ptr];
var t39=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t39.call(this)==-1) return -1;
} else {
if (t38.call(this)==-1) return -1;
}
var y=this.stk[--this.ptr];
this.moveto(this.stk[--this.ptr],y);
this.show(this.stk[--this.ptr],0,0);
}
function $f26(){
this.stk[this.ptr++]="s"; //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++]="fn"; //ident
this.stk[this.ptr++]=BWIPJS.psstring("");
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;
this.stk[this.ptr++]=$f25;
var t42=this.stk[--this.ptr];
var t41=this.stk[--this.ptr];
for (t40 in t41) {
if (t41 instanceof BWIPJS.psstring || t41 instanceof BWIPJS.psarray) {
if (t40.charCodeAt(0) > 57) continue;
this.stk[this.ptr++]=t41.get(t40);
} else {
this.stk[this.ptr++]=t40;
this.stk[this.ptr++]=t41[t40];
}
if (t42.call(this)==-1) break;
}
}
function $f27(){
}
function $f28(){
this.stk[this.ptr++]=0;
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++]=$f27;
var t45=this.stk[--this.ptr];
var t44=this.stk[--this.ptr];
for (t43 in t44) {
if (t44 instanceof BWIPJS.psstring || t44 instanceof BWIPJS.psarray) {
if (t43.charCodeAt(0) > 57) continue;
this.stk[this.ptr++]=t44.get(t43);
} else {
this.stk[this.ptr++]=t43;
this.stk[this.ptr++]=t44[t43];
}
if (t45.call(this)==-1) break;
}
}
function $f29(){
this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++;
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.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.dstk.get("tstr");
if (t===undefined) throw new Error("dict: tstr: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=3;
this.stk[this.ptr++]=1;
var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr];
if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a;
if (b < 0) var t=this.stk.splice(this.ptr-a, -b);
else var t=this.stk.splice(this.ptr-a, a-b);
this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(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 $f30(){
this.stk[this.ptr++]="txt"; //ident
this.stk[this.ptr++]=Infinity;
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++]=$f28;
var t48=this.stk[--this.ptr];
var t47=this.stk[--this.ptr];
for (t46 in t47) {
if (t47 instanceof BWIPJS.psstring || t47 instanceof BWIPJS.psarray) {
if (t46.charCodeAt(0) > 57) continue;
this.stk[this.ptr++]=t47.get(t46);
} else {
this.stk[this.ptr++]=t46;
this.stk[this.ptr++]=t47[t46];
}
if (t48.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.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
this.stk[this.ptr++]="tstr"; //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;
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]);
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("txt");
if (t===undefined) throw new Error("dict: txt: 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++]=$f29;
var t53=this.stk[--this.ptr];
var t51=this.stk[--this.ptr];
var t50=this.stk[--this.ptr];
var t49=this.stk[--this.ptr];
for (var t52=t49; t50<0 ? t52>=t51 : t52<=t51; t52+=t50) {
this.stk[this.ptr++]=t52;
if (t53.call(this)==-1) break;
}
}
function $f31(){
this.stk[this.ptr++]="tstr"; //ident
var t=this.dstk.get("alttext");
if (t===undefined) throw new Error("dict: alttext: 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;
}
function $f32(){
this.stk[this.ptr++]=0;
}
function $f33(){
this.stk[this.ptr++]=this.currentfont();
this.stk[this.ptr++]="PaintType"; //ident
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;
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--;
}
function $f34(){
this.stk[this.ptr++]=false;
}
function $f35(){
this.stk[this.ptr++]=this.currentfont();
this.stk[this.ptr++]="StrokeWidth"; //ident
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-2]/this.stk[this.ptr-1]; this.ptr--;
this.stk[this.ptr++]=0;
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.currentfont();
this.stk[this.ptr++]="FontMatrix"; //ident
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 m=(BWIPJS.pstype(this.stk[this.ptr-1])=="arraytype"?this.stk[--this.ptr]:null);
var dx=this.stk[this.ptr-2]; var dy=this.stk[this.ptr-1];
var t=this.dtransform(m,dx,dy);
this.stk[this.ptr-2]=t.dx; this.stk[this.ptr-1]=t.dy;
this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++;
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;
this.stk[this.ptr]=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-1]=Math.sqrt(this.stk[this.ptr-1]);
this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--;
}
function $f36(){
this.gsave();
this.newpath();
this.stk[this.ptr++]=0;
this.stk[this.ptr++]=0;
var y=this.stk[--this.ptr];
this.moveto(this.stk[--this.ptr],y);
this.stk[this.ptr++]=BWIPJS.psstring("0");
this.stk[this.ptr++]=false;
this.charpath(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2;
var t=this.pathbbox();
this.stk[this.ptr++]=t.llx; this.stk[this.ptr++]=t.lly;
this.stk[this.ptr++]=t.urx; this.stk[this.ptr++]=t.ury;
this.stk[this.ptr++]=4;
this.stk[this.ptr++]=1;
var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr];
if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a;
if (b < 0) var t=this.stk.splice(this.ptr-a, -b);
else var t=this.stk.splice(this.ptr-a, a-b);
this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(t));
this.ptr--;
this.ptr--;
this.ptr--;
this.grestore();
this.stk[this.ptr++]=this.currentfont();
this.stk[this.ptr++]="PaintType"; //ident
this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1]]!==undefined; this.ptr--;
this.stk[this.ptr++]=$f33;
this.stk[this.ptr++]=$f34;
var t56=this.stk[--this.ptr];
var t57=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t57.call(this)==-1) return -1;
} else {
if (t56.call(this)==-1) return -1;
}
this.stk[this.ptr++]=this.currentfont();
this.stk[this.ptr++]="StrokeWidth"; //ident
this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1]]!==undefined; 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++]=$f35;
var t58=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t58.call(this)==-1) return -1;
}
}
function $f37(){
this.stk[this.ptr++]="textxpos"; //ident
var t=this.dstk.get("textxoffset");
if (t===undefined) throw new Error("dict: textxoffset: 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;
}
function $f38(){
this.stk[this.ptr++]="textxpos"; //ident
var t=this.dstk.get("x");
if (t===undefined) throw new Error("dict: x: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("textxoffset");
if (t===undefined) throw new Error("dict: textxoffset: 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-1]; this.ptr--;
var t=this.dstk.get("textwidth");
if (t===undefined) throw new Error("dict: textwidth: 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-1]; this.ptr--;
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f39(){
this.stk[this.ptr++]="textxpos"; //ident
var t=this.dstk.get("textwidth");
if (t===undefined) throw new Error("dict: textwidth: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("textxoffset");
if (t===undefined) throw new Error("dict: textxoffset: 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-1]; this.ptr--;
this.stk[this.ptr-1]=-this.stk[this.ptr-1];
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f40(){
this.stk[this.ptr++]="textxpos"; //ident
var t=this.dstk.get("x");
if (t===undefined) throw new Error("dict: x: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("textxoffset");
if (t===undefined) throw new Error("dict: textxoffset: 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-1]; this.ptr--;
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f41(){
this.stk[this.ptr++]="textxpos"; //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++]="textgaps"; //ident
var t=this.dstk.get("x");
if (t===undefined) throw new Error("dict: x: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("textwidth");
if (t===undefined) throw new Error("dict: textwidth: 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-1]; this.ptr--;
var t=this.dstk.get("tstr");
if (t===undefined) throw new Error("dict: tstr: 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]/this.stk[this.ptr-1]; this.ptr--;
this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f42(){
this.stk[this.ptr++]="textypos"; //ident
var t=this.dstk.get("textyoffset");
if (t===undefined) throw new Error("dict: textyoffset: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("maxh");
if (t===undefined) throw new Error("dict: maxh: 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-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.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f43(){
this.stk[this.ptr++]="textypos"; //ident
var t=this.dstk.get("textyoffset");
if (t===undefined) throw new Error("dict: textyoffset: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("maxh");
if (t===undefined) throw new Error("dict: maxh: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("textascent");
if (t===undefined) throw new Error("dict: textascent: 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-1]; this.ptr--;
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.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
}
function $f44(){
var t=this.dstk.get("textfont");
if (t===undefined) throw new Error("dict: textfont: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr-1]=this.findfont(BWIPJS.psstring(this.stk[this.ptr-1]));
var t=this.dstk.get("textsize");
if (t===undefined) throw new Error("dict: textsize: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.ptr--; this.stk[this.ptr-1].FontSize = this.stk[this.ptr];
this.setfont(this.stk[--this.ptr]);
var t=this.dstk.get("alttext");
if (t===undefined) throw new Error("dict: alttext: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("");
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++]=$f30;
this.stk[this.ptr++]=$f31;
var t54=this.stk[--this.ptr];
var t55=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t55.call(this)==-1) return -1;
} else {
if (t54.call(this)==-1) return -1;
}
var t=this.dstk.get("tstr");
if (t===undefined) throw new Error("dict: tstr: 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++]=0;
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++]=$f32;
this.stk[this.ptr++]=$f36;
var t59=this.stk[--this.ptr];
var t60=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t60.call(this)==-1) return -1;
} else {
if (t59.call(this)==-1) return -1;
}
this.stk[this.ptr++]="textascent"; //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++]="textwidth"; //ident
var t=this.dstk.get("tstr");
if (t===undefined) throw new Error("dict: tstr: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.stringwidth(this.stk[--this.ptr]);
this.stk[this.ptr++]=t.w; this.stk[this.ptr++]=t.h;
this.ptr--;
var t=this.dstk.get("tstr");
if (t===undefined) throw new Error("dict: tstr: 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--;
var t=this.dstk.get("textgaps");
if (t===undefined) throw new Error("dict: textgaps: 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-1]; this.ptr--;
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;
this.stk[this.ptr++]="textxpos"; //ident
var t=this.dstk.get("textxoffset");
if (t===undefined) throw new Error("dict: textxoffset: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("x");
if (t===undefined) throw new Error("dict: x: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("textwidth");
if (t===undefined) throw new Error("dict: textwidth: 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-1]; this.ptr--;
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.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2;
var t=this.dstk.get("textxalign");
if (t===undefined) throw new Error("dict: textxalign: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("left");
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++]=$f37;
var t61=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t61.call(this)==-1) return -1;
}
var t=this.dstk.get("textxalign");
if (t===undefined) throw new Error("dict: textxalign: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("right");
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++]=$f38;
var t62=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t62.call(this)==-1) return -1;
}
var t=this.dstk.get("textxalign");
if (t===undefined) throw new Error("dict: textxalign: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("offleft");
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++]=$f39;
var t63=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t63.call(this)==-1) return -1;
}
var t=this.dstk.get("textxalign");
if (t===undefined) throw new Error("dict: textxalign: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("offright");
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++]=$f40;
var t64=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t64.call(this)==-1) return -1;
}
var t=this.dstk.get("textxalign");
if (t===undefined) throw new Error("dict: textxalign: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("justify");
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--;
var t=this.dstk.get("textwidth");
if (t===undefined) throw new Error("dict: textwidth: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("x");
if (t===undefined) throw new Error("dict: x: 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-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++]=$f41;
var t65=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t65.call(this)==-1) return -1;
}
this.stk[this.ptr++]="textypos"; //ident
var t=this.dstk.get("textyoffset");
if (t===undefined) throw new Error("dict: textyoffset: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("textascent");
if (t===undefined) throw new Error("dict: textascent: 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-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-1]=-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("textyalign");
if (t===undefined) throw new Error("dict: textyalign: undefined");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
this.stk[this.ptr++]=BWIPJS.psstring("above");
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++]=$f42;
var t66=this.stk[--this.ptr];
if (this.stk[--this.ptr]) {
if (t66.call(this)==-1) return -1;
}
var t=this.dstk.get("textyalign");
if (t===undefined) throw new Error("dict: textyalign: undefined");
if (t instance