vintasoft-web-twain-js
Version:
VintaSoft Twain .NET SDK provides JavaScript API and VintaSoft Web TWAIN service, which allow to create web application for acquiring images from TWAIN/SANE/eSCL image scanner in Windows and Linux. Developed web applications can be used in all major web b
106 lines • 83.9 kB
JavaScript
// Copyright 2014-2025 VintaSoft LLC. All rights reserved.
// This software is protected by International copyright laws.
// Any copying, duplication, deployment, redistribution, modification or other
// disposition hereof is STRICTLY PROHIBITED without an express written license
// granted by VintaSoft LLC. This notice may not be removed or otherwise
// altered under any circumstances.
// This code may NOT be used apart of the VintaSoft product.
var Vintasoft;
(function(q){function b(b,q,c){b=N[b];for(var A="",E=q;E<q+c;E++)A+=String.fromCharCode(b[E]^255);return A}if(void 0==q.Shared)throw Error("Vintasoft.Shared is not found.");if("4.5.0.1"!==q.version)throw Error("Wrong version of Vintasoft.Shared script.");var N=[];N.push([190,141,141,158,134,223,154,147,154,146,154,145,139,223,150,145,223,158,141,141,158,134,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,150,154,140,182,145,153,144,216,223,155,144,154,140,223,145,144,139,223,151,158,
137,154,223,153,150,154,147,155,223,216,156,158,143,158,157,150,147,150,139,134,169,158,147,138,154,216,209,175,176,172,171,173,154,140,150,133,154,188,158,145,137,158,140,171,151,154,223,216,153,150,147,154,177,158,146,154,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,171,151,154,223,216,151,154,150,152,151,139,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,147,154,140,140,223,139,151,158,145,223,
206,209,176,143,154,145,187,154,137,150,156,154,178,158,145,158,152,154,141,187,154,153,158,138,147,139,223,150,146,158,152,154,223,147,158,134,144,138,139,223,150,140,223,145,144,139,223,152,154,139,209,190,141,141,158,134,223,154,147,154,146,154,145,139,223,150,145,223,158,141,141,158,134,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,150,154,140,182,145,153,144,216,223,155,144,154,140,223,145,144,139,223,151,158,137,154,223,153,150,154,147,155,223,216,156,158,143,158,157,150,147,
150,139,134,182,155,216,209,171,168,190,182,177,223,155,154,137,150,156,154,223,150,140,223,145,144,139,223,156,147,144,140,154,155,209,171,151,154,223,216,140,138,143,143,144,141,139,154,155,169,158,147,138,154,140,190,140,190,141,141,158,134,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,141,154,143,141,154,140,154,145,139,223,158,141,141,158,134,209,187,154,147,154,139,154,190,147,147,182,146,158,152,154,140,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,
150,139,150,154,140,182,145,153,144,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,184,154,139,182,146,158,152,154,185,150,147,154,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,184,154,139,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,168,150,145,204,205,182,146,158,152,154,
223,150,145,153,144,223,150,140,223,145,144,139,223,141,154,156,154,150,137,154,155,209,187,154,137,150,156,154,223,150,140,223,145,144,139,223,171,168,190,182,177,223,155,154,137,150,156,154,209,171,151,154,223,216,158,156,142,138,150,141,154,155,182,146,158,152,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,190,156,142,138,150,141,154,155,182,146,158,152,154,181,172,223,156,147,158,140,140,209,
188,158,143,158,157,150,147,150,139,150,154,140,223,158,141,154,223,145,144,139,223,141,154,156,154,150,137,154,155,209,171,168,190,182,177,223,155,154,137,150,156,154,223,146,158,145,158,152,154,141,223,150,140,223,145,144,139,223,156,147,144,140,154,155,209,188,158,145,156,154,147,171,141,158,145,140,153,154,141,188,138,141,141,154,145,139,223,150,146,158,152,154,223,147,158,134,144,138,139,223,150,140,223,145,144,139,223,152,154,139,209,223,182,146,158,152,154,223,156,144,147,147,154,156,139,150,
144,145,223,150,140,223,145,144,139,223,156,147,154,158,141,154,155,209,175,158,141,158,146,158,139,154,141,223,216,140,151,144,136,182,145,155,150,156,158,139,144,141,140,216,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,214,171,151,154,223,216,140,138,156,156,154,140,140,185,138,145,156,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,223,153,138,145,156,139,150,144,145,209,175,158,141,158,146,158,139,154,141,223,216,140,151,144,136,170,182,216,
223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,184,154,139,187,154,137,150,156,154,182,145,153,144,140,215,187,154,139,154,156,139,189,144,141,155,154,141,171,151,154,223,216,139,136,158,150,145,187,154,137,150,156,154,178,158,145,158,152,154,141,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,187,154,137,150,156,154,178,158,145,158,152,154,141,181,172,223,156,147,
158,140,140,209,172,154,139,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,171,151,154,223,216,154,141,141,144,141,185,138,145,156,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,223,153,138,145,156,139,150,144,145,209,188,147,144,140,154,187,154,137,150,156,154,182,146,158,152,154,223,147,158,134,144,138,139,223,150,140,223,145,144,139,223,141,154,140,154,139,209,173,154,153,141,154,140,151,171,136,158,150,145,172,154,140,140,150,144,145,168,150,
145,188,186,171,151,154,223,216,150,146,158,152,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,156,147,158,140,140,223,168,154,157,190,156,142,138,150,141,154,155,182,146,158,152,154,181,172,209,177,144,139,223,156,144,141,141,154,156,139,223,137,158,147,138,154,223,144,153,223,138,145,150,139,223,144,153,223,146,154,158,140,138,141,154,223,153,144,141,223,154,172,188,179,223,155,154,137,150,156,154,209,223,
172,138,143,143,144,141,139,154,155,223,137,158,147,138,154,140,197,223,182,145,156,151,154,140,211,223,178,150,147,147,150,146,154,139,154,141,140,211,223,188,154,145,139,150,146,154,139,154,141,140,211,223,175,150,135,154,147,140,209,146,144,155,154,178,144,155,158,147,223,150,146,158,152,154,223,158,156,142,138,150,140,150,139,150,144,145,223,150,140,223,153,158,150,147,154,155,209,168,150,145,155,144,136,140,171,151,154,223,216,158,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,
216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,138,145,155,154,153,150,145,154,155,209,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,140,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,145,223,158,141,141,158,134,209,140,144,138,141,156,154,182,145,153,144,141,146,158,139,150,144,145,223,158,157,144,138,139,223,171,168,190,182,177,223,155,154,137,150,156,154,140,223,150,140,223,145,
144,139,223,141,154,156,154,150,137,154,155,209,188,151,158,145,152,154,182,146,158,152,154,188,144,145,139,141,158,140,139,187,154,137,150,156,154,223,150,140,223,145,144,139,223,172,190,177,186,223,155,154,137,150,156,154,209,190,156,142,138,150,141,154,178,144,155,158,147,171,151,154,223,216,140,138,143,143,144,141,139,154,155,169,158,147,138,154,140,190,140,173,158,145,152,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,
223,144,153,223,168,154,157,171,136,158,150,145,173,158,145,152,154,181,172,223,156,147,158,140,140,209,169,150,145,139,158,140,144,153,139,223,168,154,157,223,171,168,190,182,177,223,140,154,141,137,150,156,154,223,150,140,223,145,144,139,223,153,144,138,145,155,209,171,141,158,145,140,153,154,141,223,150,140,223,145,144,139,223,156,158,145,156,154,147,154,155,209,172,154,139,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,150,154,140,184,154,139,168,150,145,201,203,190,145,155,141,144,
150,155,168,182,190,223,210,223,184,154,139,188,138,141,141,154,145,139,184,154,139,182,146,158,152,154,182,145,153,144,187,154,137,150,156,154,223,150,140,223,145,144,139,223,154,172,188,179,223,155,154,137,150,156,154,209,221,223,155,150,153,153,154,141,140,223,153,141,144,146,223,169,150,145,139,158,172,144,153,139,223,171,168,190,182,177,223,181,158,137,158,172,156,141,150,143,139,223,190,175,182,223,137,154,141,140,150,144,145,223,221,171,168,190,182,177,223,155,154,137,150,156,154,223,150,140,
223,145,144,139,223,144,143,154,145,154,155,209,184,154,139,182,146,158,152,154,175,177,184,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,223,145,138,146,157,154,141,211,223,140,139,141,150,145,152,223,144,141,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,182,155,
186,145,138,146,181,172,223,156,147,158,140,140,209,188,147,144,140,154,171,136,158,150,145,172,154,140,140,150,144,145,187,154,140,148,154,136,182,146,158,152,154,171,151,154,223,216,156,144,145,139,158,150,145,154,141,171,134,143,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,169,158,147,138,154,188,144,145,139,158,150,145,154,141,171,134,143,154,186,145,138,146,181,172,223,
156,147,158,140,140,209,172,158,145,154,187,154,140,143,154,156,148,147,154,182,146,158,152,154,171,168,190,182,177,223,155,154,137,150,156,154,223,146,158,145,158,152,154,141,223,150,140,223,145,144,139,223,144,143,154,145,154,155,209,150,145,143,138,139,172,144,138,141,156,154,171,151,154,223,216,139,136,158,150,145,187,154,137,150,156,154,178,158,145,158,152,154,141,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,
223,156,147,158,140,140,223,168,154,157,171,136,158,150,145,187,154,137,150,156,154,178,158,145,158,152,154,141,181,172,209,182,146,158,152,154,223,147,158,134,144,138,139,223,150,140,223,145,144,139,223,140,154,139,209,214,210,215,221,209,223,175,147,154,158,140,154,223,138,140,154,223,139,151,154,223,140,158,146,154,223,137,154,141,140,150,144,145,223,153,144,141,223,169,150,145,139,158,140,144,153,139,223,168,154,157,223,171,168,190,182,177,223,140,154,141,137,150,156,154,223,158,145,155,223,169,
150,145,139,158,172,144,153,139,223,171,168,190,182,177,223,181,158,137,158,172,156,141,150,143,139,223,190,175,182,209,169,150,145,139,158,140,144,153,139,223,168,154,157,223,171,168,190,182,177,223,140,154,141,137,150,156,154,223,137,154,141,140,150,144,145,223,221,187,144,156,138,146,154,145,139,223,153,154,154,155,154,141,223,150,140,223,145,144,139,223,153,144,138,145,155,209,171,151,154,223,216,150,145,155,154,135,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,
154,223,147,154,140,140,223,139,151,158,145,223,207,209,166,144,138,223,140,151,144,138,147,155,223,140,143,154,156,150,153,134,223,156,144,141,141,154,156,139,223,171,168,190,182,177,223,140,154,141,137,150,156,154,223,176,173,223,155,154,153,150,145,154,223,139,151,154,223,155,154,153,158,138,147,139,223,171,168,190,182,177,223,140,154,141,137,150,156,154,209,182,140,182,146,158,152,154,189,147,158,145,148,150,175,144,155,171,151,154,223,216,140,138,156,156,154,140,140,185,138,145,156,216,223,143,
158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,171,151,154,223,216,158,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,150,176,172,188,141,154,158,139,154,171,136,158,150,145,172,154,140,140,150,144,145,171,151,154,223,216,137,158,147,138,154,171,134,143,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,
223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,169,158,147,138,154,171,134,143,154,186,145,138,146,181,172,223,156,147,158,140,140,209,188,158,143,158,157,150,147,150,139,134,223,137,158,147,138,154,223,150,140,223,145,144,139,223,140,154,139,209,171,151,154,223,216,135,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,147,154,140,140,223,139,151,158,145,223,207,209,182,146,158,152,154,140,223,158,141,154,223,145,
144,139,223,140,158,137,154,155,209,184,154,139,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,150,154,140,190,145,144,139,151,154,141,223,155,154,137,150,156,154,223,216,182,146,158,152,154,223,150,140,223,145,144,139,223,153,144,138,145,155,223,150,145,223,156,144,147,147,154,156,139,150,144,145,209,177,144,139,223,156,144,141,141,154,156,139,223,137,158,147,138,154,223,144,153,223,138,145,150,139,223,144,153,223,146,154,158,140,138,141,154,223,153,144,141,223,172,190,177,186,223,155,
154,137,150,156,154,209,223,172,138,143,143,144,141,139,154,155,223,137,158,147,138,154,140,197,223,182,145,156,151,154,140,211,223,178,150,147,147,150,146,154,139,154,141,140,211,223,188,154,145,139,150,146,154,139,154,141,140,211,223,175,150,135,154,147,140,209,186,140,156,147,182,145,137,154,141,139,182,146,158,152,154,171,151,154,223,216,136,150,155,139,151,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,147,154,140,140,223,139,151,158,145,223,206,209,196,
150,145,139,154,145,139,173,154,140,154,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,187,154,147,154,139,154,182,146,158,152,154,178,158,156,223,176,172,172,158,137,154,182,146,158,152,154,140,182,146,158,152,154,223,150,140,223,145,144,139,223,141,154,146,144,137,154,155,223,153,141,144,146,223,150,146,158,152,154,223,156,144,147,147,154,156,139,150,144,145,209,216,223,150,140,223,144,143,154,145,154,155,223,158,147,141,154,158,155,134,209,182,146,158,152,154,223,143,141,
144,156,154,140,140,150,145,152,223,150,140,223,153,158,150,147,154,155,209,184,154,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,141,154,140,144,147,138,139,150,144,145,171,151,154,223,216,154,141,141,144,141,185,138,145,156,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,169,158,147,138,154,216,223,143,158,141,158,146,154,139,154,141,
223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,184,154,139,187,154,153,158,138,147,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,156,144,147,144,141,178,144,155,154,187,154,137,150,156,154,223,150,140,223,145,144,139,223,144,143,154,145,154,155,209,179,150,145,138,135,188,151,158,145,152,154,182,146,158,152,154,189,141,150,152,151,139,145,154,140,140,171,151,154,223,216,158,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,216,223,143,158,141,
158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,190,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,186,145,138,146,181,172,223,156,147,158,140,140,209,186,147,154,146,154,145,139,223,144,153,223,158,141,141,158,134,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,140,216,223,146,138,140,139,223,157,154,223,158,223,145,138,146,157,154,141,223,144,141,223,150,
145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,182,155,186,145,138,146,181,172,223,156,147,158,140,140,209,171,151,154,223,216,150,146,158,152,154,182,155,140,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,141,154,143,141,154,140,154,145,139,223,145,144,139,223,154,146,143,139,134,223,158,141,141,158,134,223,144,153,223,140,139,141,150,145,152,140,209,171,151,154,223,216,156,158,143,158,
157,150,147,150,139,134,182,155,216,223,153,150,154,147,155,223,156,158,145,145,144,139,223,151,158,137,154,223,146,144,141,154,223,139,151,158,145,223,202,207,223,140,134,146,157,144,147,140,209,171,151,154,223,216,150,145,155,154,135,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,152,141,154,158,139,154,141,223,139,151,158,145,223,156,144,147,147,154,156,139,150,144,145,223,140,150,133,154,209,178,158,156,150,145,139,144,140,151,182,146,158,152,154,223,157,
150,139,146,158,143,223,150,140,223,145,144,139,223,141,154,139,141,150,154,137,154,155,209,178,158,156,182,145,139,154,147,188,141,144,143,182,146,158,152,154,184,154,139,172,138,143,143,144,141,139,154,155,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,150,154,140,172,138,143,143,144,141,139,154,155,223,156,158,143,158,157,150,147,150,139,150,154,140,223,158,141,154,223,145,144,139,223,141,154,156,154,150,137,154,155,209,150,175,151,144,145,154,173,144,139,158,139,154,182,146,158,152,
154,176,143,154,145,187,154,137,150,156,154,172,154,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,171,151,154,223,216,138,140,158,152,154,178,144,155,154,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,223,145,138,146,157,154,141,223,144,141,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,145,153,144,181,172,223,156,147,158,140,140,209,171,151,154,
223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,140,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,171,141,138,154,182,146,158,152,154,140,223,158,141,154,223,145,144,139,223,141,154,139,141,150,154,137,154,155,209,178,158,156,175,175,188,171,151,154,223,216,156,158,143,158,157,150,147,150,139,134,182,155,216,223,153,150,154,147,155,223,146,138,140,139,223,157,154,223,158,223,140,139,141,150,145,152,209,171,151,
154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,150,154,140,182,145,153,144,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,145,223,158,141,141,158,134,209,146,158,156,176,172,150,175,158,155,155,158,139,158,197,150,146,158,152,154,208,143,145,152,196,157,158,140,154,201,203,211,178,158,156,201,199,180,188,158,143,158,157,150,147,150,139,134,223,137,158,147,138,154,223,150,140,223,145,144,139,223,152,154,139,209,182,146,158,152,154,223,150,140,
223,150,145,223,143,141,144,156,154,140,140,150,145,152,223,145,144,136,209]);q.Twain=q.Twain||(q.Twain={});(function(p){function s(a,g){if(null==a)throw Error(b(0,2685,43));if(!c.pv.isf(a))throw Error(b(0,875,47));if(null==g)throw Error(b(0,3383,41));if(!c.pv.isf(g))throw Error(b(0,1089,45));}p.version="15.2.2.1";var c=q.Shared,A=c.EnumGenerator.create([{None:0},{Get:1},{GetDefault:2},{GetCurrent:4}],!0),E=c.EnumGenerator.create([{DeviceEvent:7},{ImageAcquired:2},{ImageAcquiring:1},{ImageAcquiringProgress:8},
{None:0},{ScanCanceled:5},{ScanCompleted:3},{ScanFailed:4},{ScanFinished:9},{UserInterfaceClosed:6}],!1),X=c.EnumGenerator.create([{CustomHalftone:2},{Diffusion:3},{Halftones:1},{Threshold:0}],!1),N=c.EnumGenerator.create([{Auto:0},{Clear:1},{NoClear:2}],!1),Q=c.EnumGenerator.create([{None:0},{OnePass:1},{TwoPass:2}],!1),Y=c.EnumGenerator.create([{Black:8},{Blue:2},{Cyan:5},{Green:1},{Magenta:6},{None:3},{Red:0},{White:4},{Yellow:7}],!1),Z=c.EnumGenerator.create([{DetectAndExcludeJobSeparatorAndContinueScanning:3},
{DetectAndExcludeJobSeparatorAndStopScanning:4},{DetectAndIncludeJobSeparatorAndContinueScanning:1},{DetectAndIncludeJobSeparatorAndStopScanning:2},{None:0}],!1),$=c.EnumGenerator.create([{Reflective:0},{Transmissive:1}],!1),aa=c.EnumGenerator.create([{Blue:2},{Green:1},{InfraRed:6},{None:3},{Red:0},{UltraViolet:5},{White:4}],!1),ba=c.EnumGenerator.create([{Auto:1},{LonePixel:2},{MajorityRule:3},{None:0}],!1),ca=c.EnumGenerator.create([{Auto:1},{Current:2},{None:0}],!1),da=c.EnumGenerator.create([{Auto:4},
{AutoPicture:6},{AutoText:5},{Landscape:3},{Portrait:0},{Rotation180:2},{Rotation90:1}],!1),ea=c.EnumGenerator.create([{A0:19},{A0x2:18},{A0x4:17},{A1:20},{A10:25},{A2:21},{A3:11},{A4:1},{A5:5},{A6:13},{A7:22},{A8:23},{A9:24},{B3:12},{B4:6},{B5:2},{B6:7},{BUSINESSCARD:53},{C0:44},{C1:45},{C10:51},{C2:46},{C3:47},{C4:14},{C5:15},{C6:16},{C7:48},{C8:49},{C9:50},{ISOB0:26},{ISOB1:27},{ISOB10:33},{ISOB2:28},{ISOB3:12},{ISOB4:6},{ISOB5:29},{ISOB6:7},{ISOB7:30},{ISOB8:31},{ISOB9:32},{JISB0:34},{JISB1:35},
{JISB10:43},{JISB2:36},{JISB3:37},{JISB4:38},{JISB6:39},{JISB7:40},{JISB8:41},{JISB9:42},{None:0},{USEXECUTIVE:10},{USLEDGER:9},{USLEGAL:4},{USLETTER:3},{USSTATEMENT:52}],!1),fa=c.EnumGenerator.create([{Chocolate:0},{Vanilla:1}],!1),J=c.EnumGenerator.create([{BGR:12},{BW:0},{CIELAB:13},{CIELUV:14},{CIEXYZ:8},{CMY:4},{CMYK:5},{Gray:1},{Infrared:16},{Lab:9},{Palette:3},{RGB:2},{SRGB:10},{SRGB64:11},{YCBCR:15},{YUV:6},{YUVK:7}],!1),ga=c.EnumGenerator.create([{File:1},{Memory:2},{Native:0}],!1),K=c.EnumGenerator.create([{BitFields:12},
{Group31D:2},{Group31DEol:3},{Group32D:4},{Group4:5},{Jbig:8},{Jpeg:6},{Lzw:7},{None:0},{Packbits:1},{Png:9},{Rle4:10},{Rle8:11}],!1),ha=c.EnumGenerator.create([{Bmp:2},{Dejavu:14},{EXIF:9},{FlashPix:5},{Jpeg:4},{Jpeg2000:11},{Jpeg2000JPN:12},{Jpeg2000JPX:13},{PDF:10},{PDFA:15},{Pict:1},{Png:7},{SamsungSrw:32770},{SPIFF:8},{Tiff:0},{TiffMulti:6},{XBM:3}],!1),ia=c.EnumGenerator.create([{Array:3},{Enum:4},{OneValue:5},{Range:6},{Undefined:0}],!1),ja=c.EnumGenerator.create([{Bool:6},{Fix32:7},{Frame:8},
{Int16:1},{Int16Handle:44},{Int32:2},{Int8:0},{Str1024:13},{Str128:11},{Str255:12},{Str32:9},{Str64:10},{UInt16:4},{UInt32:5},{UInt32Handle:43},{UInt8:3},{UInt8Handle:15},{Undefined:-1},{Uni512:14}],!1),R=c.EnumGenerator.create([{Inches:0},{Centimeters:1},{Picas:2},{Points:3},{Twips:4},{Pixels:5},{Millimeters:6}],!1),S=c.EnumGenerator.create([{XferCount:1},{ICompression:256},{IPixelType:257},{IUnits:258},{IXferMech:259},{Author:4096},{Caption:4097},{FeederEnabled:4098},{FeederLoaded:4099},{TimeDate:4100},
{SupportedCaps:4101},{ExtendedCaps:4102},{AutoFeed:4103},{ClearPage:4104},{FeedPage:4105},{RewindPage:4106},{Indicators:4107},{SupportedCapsExt:4108},{PaperDetectable:4109},{UIControllable:4110},{DeviceOnline:4111},{AutoScan:4112},{ThumbnailsEnabled:4113},{Duplex:4114},{DuplexEnabled:4115},{EnableDsUiOnly:4116},{CustomDsData:4117},{EndOrSer:4118},{JobControl:4119},{Alarms:4120},{AlarmVolume:4121},{AutomaticCapture:4122},{TimeBeforeFirstCapture:4123},{TimeBetweenCaptures:4124},{ClearBuffers:4125},
{MaxBatchBuffers:4126},{DeviceTimeDate:4127},{PowerSupply:4128},{CameraPreviewUI:4129},{DeviceEvents:4130},{SerialNumber:4132},{Printer:4134},{PrinterEnabled:4135},{PrinterIndex:4136},{PrinterMode:4137},{PrinterString:4138},{PrinterSuffix:4139},{Language:4140},{FeederAlignment:4141},{FeederOrder:4142},{ReacquireAllowed:4144},{BatteryMinutes:4146},{BatteryPercentage:4147},{CameraSide:4148},{Segmented:4149},{AutomaticSenseMedium:4155},{CameraEnabled:4150},{CameraOrder:4151},{MicrEnabled:4152},{FeederPrep:4153},
{FeederPocket:4154},{CustomInterfaceGuid:4156},{SupportedCapsSegmentUnique:4157},{SupportedDats:4158},{DoubleFeedDetection:4159},{DoubleFeedDetectionLength:4160},{DoubleFeedDetectionSensitivity:4161},{DoubleFeedDetectionResponse:4162},{PaperHandling:4163},{IndicatorsMode:4164},{PrinterVerticalOffset:4165},{PowerSaveTime:4166},{ISupportedExtImageInfo:4446},{IAutoBright:4352},{IBrightness:4353},{IContrast:4355},{ICustomHalftone:4356},{IExposureTime:4357},{IFilter:4358},{IFlashUsed:4359},{IGamma:4360},
{IHalftones:4361},{IHighlight:4362},{IImageFileFormat:4364},{ILampState:4365},{ILightSource:4366},{IOrientation:4368},{IPhysicalWidth:4369},{IPhysicalHeight:4370},{IShadow:4371},{IFrames:4372},{IXNativeResolution:4374},{IYNativeResolution:4375},{IXResolution:4376},{IYResolution:4377},{IMaxFrames:4378},{ITiles:4379},{IBitOrder:4380},{ICcittKFactor:4381},{ILightPath:4382},{IPixelFlavor:4383},{IPlanarChunky:4384},{IRotation:4385},{ISupportedSizes:4386},{IThreshold:4387},{IXScaling:4388},{IYScaling:4389},
{IBitOrderCodes:4390},{IPixelFlavorCodes:4391},{IJpegPixelType:4392},{ITimeFill:4394},{IBitDepth:4395},{IBitDepthReduction:4396},{IUndefinedImageSize:4397},{IImageDataSet:4398},{IExtImageInfo:4399},{IMinimumHeight:4400},{IMinimumWidth:4401},{IFlipRotation:4406},{IBarCodeDetectionEnabled:4407},{ISupportedBarCodeTypes:4408},{IBarCodeMaxSearchPriorities:4409},{IBarCodeSearchPriorities:4410},{IBarCodeSearchMode:4411},{IBarCodeMaxRetries:4412},{IBarCodeTimeout:4413},{IZoomFactor:4414},{IPatchCodeDetectionEnabled:4415},
{ISupportedPatchCodeTypes:4416},{IPatchCodeMaxSearchPriorities:4417},{IPatchCodeSearchPriorities:4418},{IPatchCodeSearchMode:4419},{IPatchCodeMaxRetries:4420},{IPatchCodeTimeout:4421},{IFlashUsed2:4422},{IImageFilter:4423},{INoiseFilter:4424},{IOverScan:4425},{IAutomaticBorderDetection:4432},{IAutomaticDeskew:4433},{IAutomaticRotate:4434},{IJpegQuality:4435},{IFeederType:4436},{IIccProfile:4437},{IAutoSize:4438},{IAutoDiscardBlankPages:4404},{IAutomaticCropUsesFrame:4439},{IAutomaticLengthDetection:4440},
{IAutomaticColorEnabled:4441},{IAutomaticColorNonColorPixelType:4442},{IColorManagementEnabled:4443},{IImageMerge:4444},{IImageMergeHeightThreshold:4445},{IFilmType:4447},{IMirror:4448},{IJpegSubsampling:4449},{PrinterCharRotation:4167},{PrinterFontStyle:4168},{PrinterIndexLeadChar:4169},{PrinterIndexMaxValue:4170},{PrinterIndexNumDigits:4171},{PrinterIndexStep:4172},{PrinterIndexTrigger:4173},{PrinterStringPreview:4174}],!1),na=c.EnumGenerator.create([{Afghanistan:1001},{Algeria:213},{Americansamoa:684},
{Andorra:33},{Angola:1002},{Anguilla:8090},{Antigua:8091},{Argentina:54},{Aruba:297},{Ascensioni:247},{Australia:61},{Austria:43},{Bahamas:8092},{Bahrain:973},{Bangladesh:880},{Barbados:8093},{Belgium:32},{Belize:501},{Benin:229},{Bermuda:8094},{Bhutan:1003},{Bolivia:591},{Botswana:267},{Britain:6},{Britvirginis:8095},{Brazil:55},{Brunei:673},{Bulgaria:359},{Burkinafaso:1004},{Burma:1005},{Burundi:1006},{Camaroon:237},{Canada:2},{Capeverdeis:238},{Caymanis:8096},{CentralAfRep:1007},{Chad:1008},{Chile:56},
{China:86},{Christmasis:1009},{Cocosis:1009},{Colombia:57},{Comoros:1010},{Congo:1011},{Cookis:1012},{Costarica:506},{Cuba:5},{Cyprus:357},{Czechoslovakia:42},{Denmark:45},{Djibouti:1013},{Dominica:8097},{Domincanrep:8098},{Easteris:1014},{Ecuador:593},{Egypt:20},{Elsalvador:503},{Eqguinea:1015},{Ethiopia:251},{Falklandis:1016},{Faeroeis:298},{FijiIslands:679},{Finland:358},{France:33},{Frantilles:596},{Frguiana:594},{Frpolyneisa:689},{Futanais:1043},{Gabon:241},{Gambia:220},{Germany:49},{Ghana:233},
{Gibralter:350},{Greece:30},{Greenland:299},{Grenada:8099},{Grenedines:8015},{Guadeloupe:590},{Guam:671},{Guantanamobay:5399},{Guatemala:502},{Guinea:224},{Guineabissau:1017},{Guyana:592},{Haiti:509},{Honduras:504},{Hongkong:852},{Hungary:36},{Iceland:354},{India:91},{Indonesia:62},{Iran:98},{Iraq:964},{Ireland:353},{Israel:972},{Italy:39},{Ivorycoast:225},{Jamaica:8010},{Japan:81},{Jordan:962},{Kenya:254},{Kiribati:1018},{Korea:82},{Kuwait:965},{Laos:1019},{Lebanon:1020},{Liberia:231},{Libya:218},
{Liechtenstein:41},{Luxenbourg:352},{Macao:853},{Madagascar:1021},{Malawi:265},{Malaysia:60},{Maldives:960},{Mali:1022},{Malta:356},{Marshallis:692},{Mauritania:1023},{Mauritius:230},{Mexico:3},{Micronesia:691},{Miquelon:508},{Monaco:33},{Mongolia:1024},{Montserrat:8011},{Morocco:212},{Mozambique:1025},{Namibia:264},{Nauru:1026},{Nepal:977},{Netherlands:31},{Nethantilles:599},{Nevis:8012},{Newcaledonia:687},{Newzealand:64},{Nicaragua:505},{Niger:227},{Nigeria:234},{Niue:1027},{Norfolki:1028},{Norway:47},
{Oman:968},{Pakistan:92},{Palau:1029},{Panama:507},{Paraguay:595},{Peru:51},{Phillippines:63},{Pitcairnis:1030},{Pnewguinea:675},{Poland:48},{Portugal:351},{Qatar:974},{Reunioni:1031},{Romania:40},{Rwanda:250},{Saipan:670},{Sanmarino:39},{Saotome:1033},{SaudiArabia:966},{Senegal:221},{Seychellesis:1034},{Sierraleone:1035},{Singapore:65},{Solomonis:1036},{Somali:1037},{SouthAfrica:27},{Spain:34},{Srilanka:94},{Sthelena:1032},{Stkitts:8013},{Stlucia:8014},{Stpierre:508},{Stvincent:8015},{Sudan:1038},
{Suriname:597},{Swaziland:268},{Sweden:46},{Switzerland:41},{Syria:1039},{Taiwan:886},{Tanzania:255},{Thailand:66},{Tobago:8016},{Togo:228},{Tongais:676},{Trinidad:8016},{Tunisia:216},{Turkey:90},{Turkscaicos:8017},{Tuvalu:1040},{Uganda:256},{UaEmirates:971},{UnitedKingdom:44},{Usa:1},{Uruguay:598},{Vanuatu:1041},{VaticanCity:39},{Venezuela:58},{Wake:1042},{Wallisis:1043},{WesternSahara:1044},{WesternSamoa:1045},{Yemen:1046},{Yugoslavia:38},{Zaire:243},{Zambia:260},{Zimbabwe:263},{Albania:355},{Armenia:374},
{Azerbaijan:994},{Belarus:375},{Bosniaherzgo:387},{Cambodia:855},{Croatia:385},{CzechRepublic:420},{Diegogarcia:246},{Eritrea:291},{Estonia:372},{Georgia:995},{Latvia:371},{Lesotho:266},{Lithuania:370},{Macedonia:389},{Mayotteis:269},{Moldova:373},{Myanmar:95},{NorthKorea:850},{Puertorico:787},{Russia:7},{Serbia:381},{Slovakia:421},{Slovenia:386},{SouthKorea:82},{Ukraine:380},{UsVirginis:340},{Vietnam:84}],!1),oa=c.EnumGenerator.create([{UserLocale:-1},{Danish:0},{Dutch:1},{English:2},{FrenchCanadian:3},
{Finnish:4},{French:5},{German:6},{Icelandic:7},{Italian:8},{Norwegian:9},{Portuguese:10},{Spanish:11},{Swedish:12},{EnglishUsa:13},{Afrikaans:14},{Albania:15},{Arabic:16},{ArabicAlgeria:17},{ArabicBahrain:18},{ArabicEgypt:19},{ArabicIraq:20},{ArabicJordan:21},{ArabicKuwait:22},{ArabicLebanon:23},{ArabicLibya:24},{ArabicMorocco:25},{ArabicOman:26},{ArabicQatar:27},{ArabicSaudiArabia:28},{ArabicSyria:29},{ArabicTunisia:30},{ArabicUae:31},{ArabicYemen:32},{Basque:33},{Byelorussian:34},{Bulgarian:35},
{Catalan:36},{Chinese:37},{ChineseHongkong:38},{ChinesePrc:39},{ChineseSingapore:40},{ChineseSimplified:41},{ChineseTaiwan:42},{ChineseTraditional:43},{Croatia:44},{Czech:45},{DutchBelgian:46},{EnglishAustralian:47},{EnglishCanadian:48},{EnglishIreland:49},{EnglishNewZealand:50},{EnglishSouthAfrica:51},{EnglishUnitedKingdom:52},{Estonian:53},{Faeroese:54},{Farsi:55},{FrenchBelgian:56},{FrenchLuxembourg:57},{FrenchSwiss:58},{GermanAustrian:59},{GermanLuxembourg:60},{GermanLiechtenstein:61},{GermanSwiss:62},
{Greek:63},{Hebrew:64},{Hungarian:65},{Indonesian:66},{ItalianSwiss:67},{Japanese:68},{Korean:69},{KoreanJihab:70},{Latvian:71},{Lithuanian:72},{NorwegianBokmal:73},{NorwegianNynorsk:74},{Polish:75},{PortugueseBrazil:76},{Romanian:77},{Russian:78},{SerbianLatin:79},{Slovak:80},{Slovenian:81},{SpanishMexican:82},{SpanishModern:83},{Thai:84},{Turkish:85},{Ukrainian:86},{Assmese:87},{Bengali:88},{Bihari:89},{Bodo:90},{Dogri:91},{Gujarati:92},{Haryanvi:93},{Hindi:94},{Kannada:95},{Kashmiri:96},{Malayalam:97},
{Marathi:98},{Marwari:99},{Meghalayan:100},{Mizo:101},{Naga:102},{Orissi:103},{Punjabi:104},{Pushtu:105},{SerbianCyrillic:106},{Sikkimi:107},{SwedishFinland:108},{Tamil:109},{Telugu:110},{Tripuri:111},{Urdu:112},{Vietnamese:113}],!1),pa=c.EnumGenerator.create([{Platen:0},{FeederWithoutDuplex:1},{FeederWithDuplex:2}],!1),qa=c.EnumGenerator.create([{BlackAndWhite1:0},{Grayscale8:1},{Grayscale16:2},{RGB24:3},{RGB48:4}],!1),w=function(){};w._575=null;w._601=null;w._703=null;w._1157=null;w.register=function(b,
c,e,m){w._575=b;w._601=c;w._703=e;w._1157=m};w.getUserOS=function(){var c=window.navigator,g=null,e=null;if(null!=c){var g=c.userAgent,m=c.userAgentData;null!=m&&(e=m.platform);null==e&&(e=c.platform)}var c=[b(0,4395,5),b(0,3948,9),b(0,3987,8),b(0,4292,6),b(0,4426,6)],m=[b(0,552,5),b(0,1812,5),b(0,1415,7),b(0,1190,5)],k=[b(0,4074,6),b(0,4400,4),b(0,2681,4)],l=null;-1!==c.indexOf(e)?l=b(0,3247,6):-1!==k.indexOf(e)?l=b(0,2777,3):-1!==m.indexOf(e)?l=b(0,1415,7):/Android/.test(g)?l=b(0,1817,7):/Linux/.test(e)&&
(l=b(0,3533,5));return l};var T=function(a,g,e,m){var k=T.prototype;k.get_Left=function(){return this._1252};k.set_Left=function(b){c.pv.n(b);this._1252=b};k.get_Top=function(){return this._333};k.set_Top=function(b){c.pv.n(b);this._333=b};k.get_Right=function(){return this._118};k.set_Right=function(b){c.pv.n(b);this._118=b};k.get_Bottom=function(){return this._952};k.set_Bottom=function(b){c.pv.n(b);this._952=b};k.equals=function(b){return c.pv.ic(b,T)?this._1252===b._1252&&this._333===b._333&&
this._118===b._118&&this._952===b._952:!1};k.toRectangle=function(){return{x:this._1252,y:this._333,width:this._118-this._1252,height:this._952-this._333}};k.toString=function(){return b(0,970,1)+this._1252+b(0,3207,1)+this._333+b(0,2381,3)+this._118+b(0,3207,1)+this._952+b(0,874,1)};c.pv.n(a,g,e,m);this._1252=a;this._333=g;this._118=e;this._952=m},U=function(b,g,e){var m=U.prototype;c.pv.n(b,g,e);this._846=b;this._8=g;this._361=e;m.get_MinValue=function(){return this._846};m.get_MaxValue=function(){return this._8};
m.get_StepSize=function(){return this._361}},L=function(b,g,e,m){var k=L.prototype;c.pv.n(b,g,e,m);this._944=b;this._1287=g;this._203=e;this._562=m;k.get_X=function(){return this._944};k.get_Y=function(){return this._1287};k.get_Width=function(){return this._203};k.get_Height=function(){return this._562}},ka=function(a,g,e,m,k,l,f){var d=ka.prototype;c.pv.s(a);c.pv.s(g);if(!c.pv.ic(e,ia))throw Error(b(0,2115,91));if(!c.pv.ic(m,ja))throw Error(b(0,2798,78));this._940=a;this._878=g;this._328=e;this._1088=
m;this._648=k;this._803=l;this._19=f;d.get_Id=function(){return this._940};d.get_Name=function(){return this._878};d.get_ContainerType=function(){return this._328};d.get_ValueType=function(){return this._1088};d.get_CurrentValue=function(){return this._648};d.get_DefaultValue=function(){return this._803};d.get_SupportedValues=function(){return this._19}},V=function(a,g){var e=V.prototype;null!=a&&0==Array.isArray(a)&&c.pv.te(b(0,344,60));if(null!=g&&!c.pv.ic(g,U))throw Error(b(0,1639,83));this._527=
a;this._560=g;e.get_SupportedValuesAsArray=function(){return this._527};e.get_SupportedValuesAsRange=function(){return this._560}},F=function(){var b=F.prototype;b.get_IsTwain2Compatible=function(){return this._1313};b.set_IsTwain2Compatible=function(b){c.pv.b(b);this._1313=b};b.get_Is32BitDevicesSupported=function(){return this._553};b.set_Is32BitDevicesSupported=function(b){c.pv.b(b);this._553=b};b.get_Is64BitDevicesSupported=function(){return this._1168};b.set_Is64BitDevicesSupported=function(b){c.pv.b(b);
this._1168=b};b.get_CountryCode=function(){return this._1159};b.set_CountryCode=function(b){this._1159=c.pv.e(b,p.WebTwainCountryCodeEnumJS)};b.get_LanguageType=function(){return this._132};b.set_LanguageType=function(b){c.pv.e(b,p.WebTwainLanguageTypeEnumJS);this._132=b};b.get_TopMostUiWindow=function(){return this._1295};b.set_TopMostUiWindow=function(b){c.pv.b(b);this._1295=b};b.get_AllowableSessionInactivityTime=function(){return this._84};b.set_AllowableSessionInactivityTime=function(b){c.pv.n(b);
(100>b||36E5<b)&&pv.toe();this._84=b};this._1168=this._553=this._1313=!0;this._1159=new na(1);this._132=new oa(2);this._1295=!0;this._84=6E4;this._799=""};c.WebServiceJS.defaultTwainService=-1;var O=function(a){function g(a,f,d){var g=!1,r="",h=!1;null!=f&&null!=d&&(h=!0);var z={data:{twainSessionId:a._554}},z=new c.WebRequestJS(b(0,956,14),function(b){var c=b.devices;b=b.defaultDeviceIndex;for(var d=[],h=0;h<c.length;h++){var r=c[h],r=new H(r.productName,r.productFamily,r.manufacturer,r.driverVersion,
r.twainVersion,a,r.is64Bit);d.push(r)}if(null!=a._1270)for(h=0;h<a._1270.length;){c=a._1270[h];for(r=0;r<d.length;r++)if(c._729===d[r]._729){d[r]=c;break}a._1270.splice(h,1)}a._1270=d;a._1194=d[b];g=!0;null!=f&&f(a,a._1270,a._1194)},function(c){r=void 0!==c.errorMessage&&""!==c.errorMessage?c.errorMessage:b(0,1534,48);null!=d&&d(a,r)},z,h);a._325.sendRequest(z);if(!h&&!g)throw Error(r);}function e(a){!1===a._57&&c.pv.te(b(0,2224,35))}function m(a){var f=new c.WebRequestJS(b(0,1171,19),null,null,{data:{twainSessionId:a._554}});
a._325.sendRequest(f)}var k=O.prototype;null==a&&(a=c.WebServiceJS.defaultTwainService);c.pv.c(a,c.WebServiceJS,b(0,2592,77));this._325=a;this._1194=this._890=this._1270=this._281=this._554=this._165=null;this._57=!1;this._1313=!0;k.get_IsOpened=function(){return this._57};k.get_IsTwain2Compatible=function(){return this._1313};k.get_OpenedDevice=function(){return this._890};k.get_TwainServiceVersion=function(){return this._165};k.get_TwainApiVersion=function(){return p.version};k.get_TwainSessionId=
function(){return this._554};k.get_Devices=function(){e(this);null==this._1270&&g(this);return this._1270};k.get_DefaultDevice=function(){e(this);null==this._1270&&g(this);return this._1194};k.open=function(a){function f(){m(r)}function d(b){r._57=!0;r._1313=a._1313;z=!0}function g(c){e=void 0!==c.errorMessage&&""!==c.errorMessage?c.errorMessage:b(0,2224,35)}c.pv.c(a,F);var r=this,h=!1,z=!1,e="",k={data:{isTwain2Compatible:a._1313,regUser:w._575,regUrl:w._601,regCode:w._703,expirationDate:w._1157,
is32BitDevicesSupported:a._553,is64BitDevicesSupported:a._1168,applicationUrl:window.location.href,countryCode:a._1159.valueOf(),languageType:a._132.valueOf()}},k=new c.WebRequestJS(b(0,2780,18),function(c){c.serviceVersion!==p.version?e=b(0,2482,37)+c.serviceVersion+b(0,1878,55)+p.version+b(0,2384,98):(r._165=c.serviceVersion,r._554=c.sessionId,r._281=setInterval(f,a._84),h=!0)},function(c){e=null!=c.serviceVersion&&c.serviceVersion!==p.version?b(0,2482,37)+c.serviceVersion+b(0,1878,55)+p.version+
b(0,2384,98):void 0!==c.errorMessage&&""!==c.errorMessage?void 0!==c.Message?void 0!==c.MessageDetail?c.errorMessage+b(0,799,1)+c.Message+b(0,799,1)+c.MessageDetail:c.errorMessage+b(0,799,1)+c.Message:c.errorMessage:b(0,1722,41)},k,!1);this._325.sendRequest(k);if(h){if(k={data:{twainSessionId:this._554,applicationProductName:a._799,topMostUiWindow:a._1295}},k=new c.WebRequestJS(b(0,186,17),d,g,k,!1),r._325.sendRequest(k),!z)throw Error(e);}else throw Error(e);};k.openAsync=function(a,f,d){function g(){m(e)}
function r(b){e._57=!0;e._1313=a._1313;f(e)}function h(c){var a=b(0,2224,35);void 0!==c.errorMessage&&""!==c.errorMessage&&(a=c.errorMessage);d(e,a)}c.pv.c(a,F);s(f,d);var e=this,k={data:{isTwain2Compatible:a._1313,regUser:w._575,regUrl:w._601,regCode:w._703,expirationDate:w._1157,is32BitDevicesSupported:a._553,is64BitDevicesSupported:a._1168,applicationUrl:window.location.href,countryCode:a._1159.valueOf(),languageType:a._132.valueOf()}},q=new c.WebRequestJS(b(0,2780,18),function(f){f.serviceVersion!==
p.version?(f=b(0,2482,37)+f.serviceVersion+b(0,1878,55)+p.version+b(0,2384,98),d(e,f)):(e._165=f.serviceVersion,e._554=f.sessionId,e._281=setInterval(g,a._84),k={data:{twainSessionId:e._554,applicationProductName:a._799,topMostUiWindow:a._1295}},f=new c.WebRequestJS(b(0,186,17),r,h,k),e._325.sendRequest(f))},function(c){var a=b(0,1722,41);void 0!==c.errorMessage&&""!==c.errorMessage&&(a=void 0!==c.Message?void 0!==c.MessageDetail?c.errorMessage+b(0,799,1)+c.Message+b(0,799,1)+c.MessageDetail:c.errorMessage+
b(0,799,1)+c.Message:c.errorMessage);d(e,a)},k);this._325.sendRequest(q)};k.close=function(){e(this);var a=this,f=!1,d="";null!=this._281&&(clearInterval(this._281),this._281=null);var g={data:{twainSessionId:this._554}},g=new c.WebRequestJS(b(0,2087,17),function(b){a._57=!1;a._165=null;a._554=null;a._1270=null;a._890=null;a._1194=null;f=!0},function(c){d=void 0!==c.errorMessage&&""!==c.errorMessage?c.errorMessage:b(0,718,35)},g,!1);this._325.sendRequest(g);if(!f)throw Error(d);};k.closeAsync=function(a,
f){s(a,f);e(this);var d=this;null!=this._281&&(clearInterval(this._281),this._281=null);var g={data:{twainSessionId:this._554}},g=new c.WebRequestJS(b(0,2087,17),function(b){d._57=!1;d._165=null;d._554=null;d._1270=null;d._890=null;d._1194=null;a(d)},function(c){var a="",a=void 0!==c.errorMessage&&""!==c.errorMessage?c.errorMessage:b(0,718,35);f(d,a)},g);this._325.sendRequest(g)};k.getDevicesAsync=function(b,c){s(b,c);e(this);null==this._1270?g(this,b,c):b(this,this._1270,this._1194)};k.findDeviceByName=
function(b){for(var c=this.get_Devices(),a=0;a<c.length;a++)if(c[a].get_DeviceName()==b)return twainDevices[a];return null}},la=function(b){function g(b,c){return b._455.getCapability(c,4).get_CurrentValue()}var e=la.prototype;c.pv.c(b,H);this._455=b;e.get_Enabled=function(){return g(this,4098)};e.set_Enabled=function(b){c.pv.b(b);this._455.setCapability(4098,b.toString())};e.get_PaperDetectable=function(){return g(this,4109)};e.get_Loaded=function(){return g(this,4099)};e.get_DuplexMode=function(){return g(this,
4114)};e.get_DuplexEnabled=function(){return g(this,4115)};e.set_DuplexEnabled=function(b){c.pv.b(b);this._455.setCapability(4115,b.toString())};e.get_AutoFeed=function(){return g(this,4103)};e.set_AutoFeed=function(b){c.pv.b(b);this._455.setCapability(4103,b.toString())};e.feedPage=function(){this._455.setCapability(4105,(!0).toString())};e.clearPage=function(){this._455.setCapability(4104,(!0).toString())};e.rewindPage=function(){this._455.setCapability(4106,(!0).toString())}},H=function(a,g,e,
m,k,l,f){function d(n){if(null==n)throw Error(b(0,484,49));if(c.pv.ic(n,c.WebEnumItemBaseJS))n=n.valueOf().toString();else if(c.pv.isn(n))n=n.toString();else if(!c.pv.iss(n))throw Error(b(0,1971,116));return n}function G(n){if(null==n)throw Error(b(0,4213,50));if(!Array.isArray(n))throw Error(b(0,1476,52));for(var a=[],f=0;f<n.length;f++){var d=n[f];if(c.pv.ic(d,c.WebEnumItemBaseJS))d=d.valueOf().toString();else if(!c.pv.isn(d))throw Error(b(0,3653,109));a.push(d)}return a}function r(n){if(null==
n)throw Error(b(0,419,53));if(!Array.isArray(n))throw Error(b(0,4340,55));for(var a=0;a<n.length;a++){var f=n[a];if(null==f.capabilityId)throw Error(b(0,235,82));if(!c.pv.iss(f.capabilityId))throw Error(b(0,4298,42));if(50<f.capabilityId.length)throw Error(b(0,3829,58));if(null==f.capabilityValue)throw Error(b(0,0,85));}}function h(n){if(null==n)throw Error(b(0,3424,52));c.pv.ic(n,c.WebEnumItemBaseJS)&&(n=n.valueOf());return n}function z(n){if(null==n)n=(new q.Twain.WebTwainDeviceCapabilityUsageModeEnumJS(b(0,
1809,3))).valueOf();else if(c.pv.ic(n,c.WebEnumItemBaseJS))n=n.valueOf();else if(!c.pv.isn(n))throw Error(b(0,4121,92));return n}function t(n,c){if(0!=n._157)throw Error(b(0,584,27));return n.getCapability(c,4).get_CurrentValue()}function p(n,c){if(1!=n._157)throw Error(b(0,1601,26));return n.getCapability(c,4).get_CurrentValue()}function W(n,c){if(2!=n._157)throw Error(b(0,1852,26));return n.getCapability(c,4).get_CurrentValue()}function x(b,c){var a=b.getCapability(c,1)._19;return null!=a?null!=
a._527?a._527:a._560:null}function u(n,a,f){if(0!=n._157)throw Error(b(0,584,27));c.pv.ic(f,c.WebEnumItemBaseJS)&&(f=f.valueOf());return n.setCapability(a,f.toString())}function w(n,a,f){if(1!=n._157)throw Error(b(0,1601,26));c.pv.ic(f,c.WebEnumItemBaseJS)&&(f=f.valueOf());return n.setCapability(a,f.toString())}function A(n,c,a){if(2!=n._157)throw Error(b(0,1852,26));return n.setCapability(c,a.toString())}function B(b){var c=b.id;null!=b.value&&F(c,b.value);null!=b.currentValue&&F(c,b.currentValue);
null!=b.defaultValue&&F(c,b.defaultValue)}function F(b,a){try{a.containerType=c.pv.e(a.containerType,ia);a.valueType=c.pv.e(a.valueType,ja);var f=a.containerType.valueOf(),d=a.valueType.valueOf();if(0!==f)if(6===f)P(a,I);else{var y=H._1129[b];if(null!=y)P(a,function(b){var n=b;try{n=c.pv.e(b,y)}catch(a){}return n});else switch(d){case 6:P(a,Q);break;case 7:case 1:case 44:case 2:case 0:case 4:case 5:case 43:case 3:case 15:P(a,I);break;case 8:P(a,S)}}}catch(h){}}function P(b,c){null!=b.value&&(b.value=
c(b.value));null!=b.defaultValue&&(b.defaultValue=c(b.defaultValue));b.minValue&&(b.minValue=c(b.minValue));b.maxValue&&(b.maxValue=c(b.maxValue));b.stepSize&&(b.stepSize=c(b.stepSize));var a=b.supportedValues;if(null!=a){for(var f=[],d=0;d<a.length;d++)f[d]=c(a[d]);b.supportedValues=f}}function I(b){return+b}function Q(n){return n===b(0,4263,4)}function S(b){var c=b.match(/\((.*);(.*)\)-\((.*);(.*)\)/);if(5==c.length){for(var a=[],f=1;f<c.length;f++)a.push(+c[f]);if(4===a.length)try{return new T(a[0],
a[1],a[2],a[3])}catch(d){}}return b}function v(n){n._834._890==n&&n._57||c.pv.te(b(0,3512,21))}function C(b,c){var a=null,f=b.valueOf();0!=(f&1)?a=ma(c.id,c.name,c.value):0!=(f&4)?a=ma(c.id,c.name,c.currentValue):0!=(f&2)&&(a=ma(c.id,c.name,c.defaultValue));return a}function ma(b,c,a){var f=a.containerType.valueOf(),d=null;3==f||4==f?d=new V(a.supportedValues,null):6==f&&(d=new V(null,new U(a.minValue,a.maxValue,a.stepSize)));return new ka(b,c,a.containerType,a.valueType,a.value,a.defaultValue,d)}
c.pv.c(l,O);c.pv.s(a,g,e,m,k);this._834=l;this._57=!1;this._729=a;this._1343=g;this._887=e;this._1003=m;this._391=k;this._910=f;this._1263=this._691=this._1055=null;this._157=0;this._729.substring(0,4)==b(0,2206,4)?this._157=1:this._729.substring(0,4)==b(0,3148,4)&&(this._157=2);this._398=0;a=H.prototype;a.get_IsOpened=function(){return this._57};a.get_DeviceName=function(){return this._729};a.get_ProductFamily=function(){return this._1343};a.get_Manufacturer=function(){return this._887};a.get_DeviceName=
function(){return this._729};a.get_DriverVersion=function(){return this._1003};a.get_TwainVersion=function(){return this._391};a.get_IsTwain2Compatible=function(){return 2<=this._391};a.get_IsWIA=function(){var c=b(0,1824,6);return this._729.startsWith?this._729.startsWith(c):0===this._729.search(c)};a.get_IsTwain=function(){return 0==this._157};a.get_IsSane=function(){return 1==this._157};a.get_IsEscl=function(){return 2==this._157};a.get_Is64Bit=function(){return this._910};a.get_HasFeeder=function(){v(this);
return this._1055};a.get_HasFlatbed=function(){v(this);return this._691};a.get_DocumentFeeder=function(){this.get_HasFeeder()||c.pv.te(b(0,2519,29));null==this._1263&&(this._1263=new la(this));return this._1263};a.get_AutoBright=function(){return t(this,4352)};a.set_AutoBright=function(b){c.pv.b(b);u(this,4352,b)};a.get_AutoScan=function(){return t(this,4112)};a.set_AutoScan=function(b){c.pv.b(b);u(this,4112,b)};a.get_BitDepth=function(){return t(this,4395)};a.set_BitDepth=function(b){c.pv.n(b);u(this,
4395,b)};a.get_BitDepthReductionMode=function(){return t(this,4396)};a.set_BitDepthReductionMode=function(b){b=c.pv.e(b,X);u(this,4396,b)};a.get_Brightness=function(){return t(this,4353)};a.set_Brightness=function(b){c.pv.n(b);u(this,4353,b)};a.get_BufferedImageCount=function(){return t(this,4125)};a.set_ClearBuffers=function(b){b=c.pv.e(b,N);u(this,4125,b)};a.get_Contrast=function(){return t(this,4355)};a.set_Contrast=function(b){c.pv.n(b);u(this,4355,b)};a.get_FileFormat=function(){return t(this,
4364)};a.set_FileFormat=function(b){b=c.pv.e(b,ha);u(this,4364,b)};a.get_FileJpegQuality=function(){return t(this,4435)};a.set_FileJpegQuality=function(b){c.pv.n(b);u(this,4435,b)};a.get_Halftones=function(){return t(this,4361)};a.set_Halftones=function(b){c.pv.s(b);u(this,4361,b)};a.get_ImageCompression=function(){return t(this,256)};a.set_ImageCompression=function(b){b=c.pv.e(b,K);u(this,256,b)};a.get_ImageFilter=function(){return t(this,4358)};a.set_ImageFilter=function(b){b=c.pv.e(b,Y);u(this,
4358,b)};a.get_JobControl=function(){return t(this,4119)};a.set_JobControl=function(b){b=c.pv.e(b,Z);u(this,4119,b)};a.get_LampState=function(){return t(this,4365)};a.set_LampState=function(b){c.pv.b(b);u(this,4365,b)};a.get_LightPath=function(){return t(this,4382)};a.set_LightPath=function(b){b=c.pv.e(b,$);u(this,4382,b)};a.get_LightSource=function(){return t(this,4366)};a.set_LightSource=function(b){b=c.pv.e(b,aa);u(this,4366,b)};a.get_MaxBatchBuffers=function(){return t(this,4126)};a.set_MaxBatchBuffers=
function(b){c.pv.n(b);u(this,4126,b)};a.get_NoiseFilter=function(){return t(this,4424)};a.set_NoiseFilter=function(b){b=c.pv.e(b,ba);u(this,4424,b)};a.get_Online=function(){return t(this,4111)};a.get_PageAutoSize=function(){return t(this,4438)};a.set_PageAutoSize=function(b){b=c.pv.e(b,ca);u(this,4438,b)};a.get_PageOrientation=function(){return t(this,4368)};a.set_PageOrientation=function(b){b=c.pv.e(b,da);u(this,4368,b)};a.get_PageSize=function(){return t(this,4386)};a.set_PageSize=function(b){b=
c.pv.e(b,ea);u(this,4386,b)};a.get_PixelFlavor=function(){return t(this,4383)};a.set_PixelFlavor=function(b){b=c.pv.e(b,fa);u(this,4383,b)};a.get_PixelType=function(){return t(this,257)};a.set_PixelType=function(b){b=c.pv.e(b,J);u(this,257,b)};a.get_XResolution=function(){return t(this,4376)};a.set_XResolution=function(b){c.pv.n(b);u(this,4376,b)};a.get_YResolution=function(){return t(this,4377)};a.set_YResolution=function(b){c.pv.n(b);u(this,4377,b)};a.get_Threshold=function(){return t(this,4387)};
a.set_Threshold=function(b){c.pv.n(b);u(this,4387,b)};a.get_TransferMode=function(){return t(this,259)};a.set_TransferMode=function(b){b=c.pv.e(b,ga);u(this,259,b)};a.get_UnitOfMeasure=function(){if(0==this._157)return t(this,258);if(1==this._157||2==this._157)return new R(this._398)};a.set_UnitOfMeasure=function(a){a=c.pv.e(a,R);if(0==this._157)u(this,258,a);else if(1==this._157){var f=a.valueOf();if(0==f||1==f||5==f||6==f)this._398=a.valueOf();else throw Error(b(0,3035,113));}else if(2==this._157)if(f=
a.valueOf(),0==f||1==f||5==f||6==f)this._398=a.valueOf();else throw Error(b(0,1264,113));};a.get_XferCount=function(){return t(this,1)};a.set_XferCount=function(b){c.pv.n(b);u(this,1,b)};a.get_SaneScanSource=function(){return p(this,b(0,1528,6))};a.set_SaneScanSource=function(a){c.pv.s(a);w(this,b(0,1528,6),a)};a.get_SaneScanMode=function(){return p(this,b(0,1377,4))};a.set_SaneScanMode=function(a){c.pv.s(a);w(this,b(0,1377,4),a)};a.get_SaneResolution=function(){return p(this,b(0,3373,10))};a.set_SaneResolution=
function(a){c.pv.n(a);w(this,b(0,3373,10),a)};a.get_EsclScanInputSource=function(){return W(this,b(0,2259,11))};a.set_EsclScanInputSource=function(a){c.pv.e(a,pa);A(this,b(0,2259,11),a)};a.get_EsclScanIntent=function(){return W(this