/** * Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(o,define){define("util/text-metrics.min",["kendo.core.min"],o)}(function(){!function(o){function r(o){return(o+"").replace(n,l)}function e(o){var r,e=[];for(r in o)e.push(r+o[r]);return e.sort().join("")}function t(o){var r,e=2166136261;for(r=0;r>>0}function d(){return{width:0,height:0,baseline:0}}function a(o,r,e){return c.current.measure(o,r,e)}var s,n,l,i,u,c;window.kendo.util=window.kendo.util||{},s=kendo.Class.extend({init:function(o){this._size=o,this._length=0,this._map={}},put:function(o,r){var e=this._map,t={key:o,value:r};e[o]=t,this._head?(this._tail.newer=t,t.older=this._tail,this._tail=t):this._head=this._tail=t,this._length>=this._size?(e[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(o){var r=this._map[o];if(r)return r===this._head&&r!==this._tail&&(this._head=r.newer,this._head.older=null),r!==this._tail&&(r.older&&(r.older.newer=r.newer,r.newer.older=r.older),r.older=this._tail,r.newer=null,this._tail.newer=r,this._tail=r),r.value}}),n=/\r?\n|\r|\t/g,l=" ",i={baselineMarkerSize:1},"undefined"!=typeof document&&(u=document.createElement("div"),u.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;"),c=kendo.Class.extend({init:function(r){this._cache=new s(1e3),this.options=o.extend({},i,r)},measure:function(o,a,s){var n,l,i,c,w,C,g,h,p;if(void 0===s&&(s={}),!o)return d();if(n=e(a),l=t(o+n),i=this._cache.get(l))return i;c=d(),w=s.box||u,C=this._baselineMarker().cloneNode(!1);for(g in a)h=a[g],void 0!==h&&(w.style[g]=h);return p=s.normalizeText!==!1?r(o):o+"",w.textContent=p,w.appendChild(C),document.body.appendChild(w),p.length&&(c.width=w.offsetWidth-this.options.baselineMarkerSize,c.height=w.offsetHeight,c.baseline=C.offsetTop+this.options.baselineMarkerSize),c.width>0&&c.height>0&&this._cache.put(l,c),w.parentNode.removeChild(w),c},_baselineMarker:function(){var o=document.createElement("div");return o.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",o}}),c.current=new c,kendo.deepExtend(kendo.util,{LRUCache:s,TextMetrics:c,measureText:a,objectKey:e,hashKey:t,normalizeText:r})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(o,r,e){(e||r)()}),function(o,define){define("kendo.dataviz.qrcode.min",["kendo.dataviz.core.min","kendo.drawing.min"],o)}(function(){return function(o,r){function e(o){return parseInt(o,2)}function t(o,r){var e=(+o).toString(2);return e.length255&&(o=285^o),so[r]=o,ao[o]=r;o=2*so[r-1]^285,so[r]=o,so[-1]=0}function l(){var o,r,e,t=68;for(o=2;o<=t;o++)r=no[o-1],e=[o,0],no[o]=D(r,e)}function i(o,e){var t=[],d=o.length-1;do t[d]=so[(o[d]+e)%255],d--;while(o[d]!==r);return t}function u(o,r){return parseInt(o.charAt(r),10)}function c(o,r,e,t,d){r[o][t]=(r[o][t]<<1^d)%128,r[o][t]==fo&&(e[o]+=40)}function w(o,r,e,t,d,a){e[o][a]==t?d[o][a]++:(e[o][a]=t,d[o][a]>=5&&(r[o]+=3+d[o][a]-5),d[o][a]=1)}function C(o,r){var e=Math.floor(o/r*100),t=e%5,d=Math.abs(e-t-50),a=Math.abs(e+5-t-50),s=10*Math.min(d/5,a/5);return s}var g,h,p,f,k,B,D,P,v,M,m,_,L,Q,S,x,E,H,A,I,b,R,T,y,O,U,V,z,N,F,Z,K,j,W,G=window.kendo,$=o.extend,q=G.drawing,X=G.dataviz,J=G.ui.Widget,Y=X.Box2D,oo="0000",ro="numeric",eo="alphanumeric",to="byte",ao={1:0},so={0:1},no=[[1,0],[1,25,0]],lo={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},io=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],uo=[1,0,1,1,1],co=[1,0,1],wo={L:"01",M:"00",Q:"11",H:"10"},Co="101010000010010",go="10100110111",ho="1111100100101",po=["11101100","00010001"],fo=93,ko=[function(o,r){return(o+r)%2===0},function(o){return o%2===0},function(o,r){return r%3===0},function(o,r){return(o+r)%3===0},function(o,r){return(Math.floor(o/2)+Math.floor(r/3))%2===0},function(o,r){return o*r%2+o*r%3===0},function(o,r){return(o*r%2+o*r%3)%2===0},function(o,r){return((o+r)%2+o*r%3)%2===0}],Bo=/^\d+/,Do="A-Z0-9 $%*+./:-",Po="A-Z $%*+./:-",vo=RegExp("^["+Po+"]+"),Mo=RegExp("^["+Do+"]+"),mo=RegExp("^[^"+Do+"]+"),_o=8,Lo=5,Qo=8,So=17,xo=9,Eo=16,Ho=Math.round,Ao=G.Class.extend({getVersionIndex:function(o){return o<10?0:o>26?2:1},getBitsCharacterCount:function(o){var r=this;return r.bitsInCharacterCount[r.getVersionIndex(o||40)]},getModeCountString:function(o,r){var e=this;return e.modeIndicator+t(o,e.getBitsCharacterCount(r))},encode:function(){},getStringBitsLength:function(){},getValue:function(){},modeIndicator:"",bitsInCharacterCount:[]}),Io={};Io[ro]=Ao.extend({bitsInCharacterCount:[10,12,14],modeIndicator:"0001",getValue:function(o){return parseInt(o,10)},encode:function(o,r){var e,a=this,s=d(o,3),n=a.getModeCountString(o.length,r);for(e=0;e=o.length)&&(s=-s,a-=8!=a?2:3,d=a,t=s<0?o.length-1:0);return{row:t,column:d}},e.getNextRemainderCell=function(){if(e.move(),o[t][d]===r)return{row:t,column:d}}},f=function(o,r){var e,t,d,a,n,l,i=new p(o[0]);for(a=0;a0;){for(n=0;n=0;e--)t[e]=o[e]^r[e];return t},D=function(o,e){var t,d,a=[];for(t=0;t=0?e[d]:0))%255:ao[so[a[t+d]]^so[(o[t]+e[d])%255]];return a},n(),l(),P=function(o,r){var e,d,a=no[r-1],s=Array(r).concat(o),n=Array(s.length-a.length).concat(a),l=o.length,u=[];for(d=0;d=0;d--)u[r-1-d]=t(s[d],8);return u},v=function(o,r){var t,d,a,s,n,l,i,u,c=0,w=[],C=[],g=r.groups;for(l=0;l=r||o.length==l.length||l.length>=e&&!Mo.test(o.charAt(l.length)))?(a=ro,s=l):w&&(o.length==w.length||w.length>=t||d==eo)?(a=eo,s=l||u):(a=to,s=w?w+mo.exec(o.substring(w.length))[0]:mo.exec(o)[0]),{mode:a,modeString:s}},m=function(o){var r,e,t=[],d=0;for(t.push(M(o,_o,Lo,Qo,r)),r=t[0].mode,o=o.substr(t[0].modeString.length);o.length>0;)e=M(o,So,xo,Eo,r),e.mode!=r?(r=e.mode,t.push(e),d++):t[d].modeString+=e.modeString,o=o.substr(e.modeString.length);return t},_=function(o){var r,e,t=0;for(e=0;e1);return o<=io[e][r].totalDataCodewords?d+1:t+1},Q=function(o,r){var e,t,d="";for(t=0;t=e);return o},H=function(o){var r,e,t=[],d=17+4*o;for(r=0;r=0;t--)6!==t&&a(o,u(r,n-1-s++),e,t);for(s=0,t=d.length-1,e=8;t>=d.length-8;t--)a(o,u(r,n-1-s++),e,t);for(a(o,1,d.length-8,8),e=d.length-7,t=8;e=0&&d=0&&r[e+1][t]==i[d][p]&&r[e+1][t-1]==i[d][p]&&(l[d]+=3),c(d,g,l,p,r[e][t]),c(d,g,l,f,r[t][e]),w(d,l,i,r[e][t],h,p),w(d,l,i,r[t][e],h,f);for(a=k*k,n=Number.MAX_VALUE,e=0;e>6*e&63|128,8)+s;s=(o>>6*a|255>>r<=0?new F:new N},K=function(o,r,e){var d,a,s,n=new Z(e),l=n.getEncodingResult(o,r),i=l.version,u=io[i-1][r],c=k(l.dataString,u.totalDataCodewords),w=v(c,u),C=H(i);return y(C),O(C,i),U(C),i>=7&&b(C,t(0,18)),A(C,t(0,15)),f(C,w),d=V(C),a=C[d],i>=7&&b([a],I(i)),s=wo[r]+t(d,3),A([a],S(s)),a},j={DEFAULT_SIZE:200,QUIET_ZONE_LENGTH:4,DEFAULT_ERROR_CORRECTION_LEVEL:"L",DEFAULT_BACKGROUND:"#fff",DEFAULT_DARK_MODULE_COLOR:"#000",MIN_BASE_UNIT_SIZE:1},W=J.extend({init:function(r,e){var t=this;J.fn.init.call(t,r,e),t.element=o(r),t.wrapper=t.element,t.element.addClass("k-qrcode"),t.surfaceWrap=o("
").css("position","relative").appendTo(this.element),t.surface=q.Surface.create(t.surfaceWrap,{type:t.options.renderAs}),t.setOptions(e)},redraw:function(){var o=this._getSize();this.surfaceWrap.css({width:o,height:o}),this.surface.clear(),this.createVisual(),this.surface.draw(this.visual)},getSize:function(){return G.dimensions(this.element)},_resize:function(){this.redraw()},createVisual:function(){this.visual=this._render()},exportVisual:function(){return this._render()},_render:function(){var o,r,e,t,d,a,s,n=this,l=n._value,i=n.options.border||{},u=n.options.padding||0,c=i.width||0;return i.width=c,s=new q.Group,l&&(e=K(l,n.options.errorCorrection,n.options.encoding),t=n._getSize(),a=t-2*(c+u),o=n._calculateBaseUnit(a,e.length),d=e.length*o,r=c+u+(a-d)/2,s.append(n._renderBackground(t,i)),s.append(n._renderMatrix(e,o,r))),s},_getSize:function(){var o,r,e,t=this;return t.options.size?o=parseInt(t.options.size,10):(r=t.element,e=Math.min(r.width(),r.height()),o=e>0?e:j.DEFAULT_SIZE),o},_calculateBaseUnit:function(o,r){var e=Math.floor(o/r);if(e=o&&e-1>=j.MIN_BASE_UNIT_SIZE&&e--,e},_renderMatrix:function(o,r,e){var t,d,a,s,n,l,i,u,c=new q.MultiPath({fill:{color:this.options.color},stroke:null});for(t=0;t