/**
 * jquery.meio.mask.js
 * @author: fabiomcosta
 * @version: 1.1.3
 *
 * Created by Fabio M. Costa on 2008-09-16. Please report any bug at http://www.meiocodigo.com
 *
 * Copyright (c) 2008 Fabio M. Costa http://www.meiocodigo.com
 *
 * The MIT License (http://www.opensource.org/licenses/mit-license.php)
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){m k=(24.3d!=12),1g=(($.V.3e||($.V.3f&&3g($.V.3h.1C(0,3))<1.9))?\'K\':\'1h\');$.1D.3i.1h={3j:7(){4(2.25)2.25(1g,1i,E);L 4(2.26)2.26(1g,1i)},3k:7(){4(2.28)2.28(1g,1i,E);L 4(2.2a)2.2a(1g,1i)}};7 1i(e){m a=2;e=$.1D.3l(e||24.e);e.s=\'1h\';3m(7(){$.1D.3n.W(a,e)},1)};$.M({6:{14:{\'z\':/[a-z]/,\'Z\':/[A-Z]/,\'a\':/[a-1E-Z]/,\'*\':/[0-2b-1E-Z]/,\'@\':/[0-2b-1E-ZçÇáàãâéèêíìóòôõúùü]/},2c:{8:\'3o\',9:\'3p\',13:\'3q\',16:\'3r\',17:\'3s\',18:\'2d\',27:\'3t\',33:\'2e 2f\',34:\'2e 2g\',35:\'x\',36:\'3u\',37:\'3v\',38:\'2f\',39:\'2h\',40:\'2g\',45:\'3w\',46:\'2i\',3x:\'3y\',3z:\'3A\',3B:\'3C\'},2j:{10:\'3D\',3E:\'2i\'},N:{\'+\':\'\',\'-\':\'-\'},1s:{C:\'2d\',6:15,s:\'1F\',v:-1,t:\'\',F:E,2k:u,2l:u,1G:u,2m:E,O:\'[(),.:/ -]\',2n:7(){},1H:7(){},2o:7(){}},1j:{\'2p\':{6:\'(P) G-G\'},\'2p-1t\':{6:\'(n) n-G\'},\'3F\':{6:\'n.n.n-P\'},\'3G\':{6:\'P.n.n/G-P\'},\'2q\':{6:\'39/19/G\'},\'2q-1t\':{6:\'19/39/G\'},\'3H\':{6:\'3I-n\'},\'3J\':{6:\'29:3K\'},\'3L\':{6:\'G G G G\'},\'3M\':{6:\'n.n.n.n\',s:\'q\'},\'1u\':{6:\'P,n.n.n.n\',s:\'q\',t:\'1v\'},\'1u-1t\':{6:\'P.n,n,n,n\',s:\'q\',t:\'1v\'},\'2r-1u\':{6:\'P,n.n.n.n\',s:\'q\',t:\'+1v\'},\'2r-1u-1t\':{6:\'P,n.n.n.n\',s:\'q\',t:\'+1v\'}},1I:7(){4(!2.2s){m b=2,i,1k=(k)?2.2j:2.2c;2.1l=E;Q(i=0;i<=9;i++)2.14[i]=1m 1n(\'[0-\'+i+\']\');2.1k=1k;2.1J=[];$.1K(1k,7(a){b.1J.3N(3O(a))});2.2s=u}},2t:7(d,e){m f=2,$2u=$(d),1L=\'v\';e=e||{};2.1I();l $2u.1K(7(){4(e.C)f.1s.C=e.C;m a=$(2),o=$.M({},f.1s),1M=a.C(o.C),1a=\'\';1a=(H e==\'1b\')?e:(1M!=\'\')?1M:15;4(1a)o.6=1a;4(f.1j[1a])o=$.M(o,f.1j[1a]);4(H e==\'2v\'&&e.3P!=3Q)o=$.M(o,e);4($.2w)o=$.M(o,a.2w());4(o.6!=15){4(a.5(\'6\'))f.1N(a);m b=o.t,q=(o.s==\'q\'),R=1m 1n(o.O,\'g\');4(o.v==-1)o.v=a.C(1L);o=$.M({},o,{1w:1m 1n(o.O),R:R,J:o.6.X(\'\'),1O:o.6.1x(R,\'\').X(\'\')});4((o.s==\'1F\'||q)&&o.2m&&!a.C(\'2x\'))a.C(\'2x\',o.6.p);4(q&&o.2k)a.3R(\'2y-3S\',\'2h\');4(2.I!=\'\'||b!=\'\'){m c=f.1b((2.I!=\'\')?2.I:b,o);2.t=c;a.S(c)}4(o.s==\'1P\')o.s=\'T\';a.5(\'6\',o);a.3T(1L);a.Y(\'3U.6\',{1o:f.2z,1p:f},f.1q).Y(\'3V.6\',{1o:f.2A,1p:f},f.1q).Y(\'3W.6\',{1o:f.2B,1p:f},f.1q).Y(\'1h.6\',{1o:f.1Q,1p:f},f.1q).Y(\'2C.6\',f.2D).Y(\'2E.6\',f.2F).Y(\'2G.6\',f.2H)}})},1N:7(c){m d=$(c);l d.1K(7(){m a=$(2);4(a.5(\'6\')){m b=a.5(\'6\').v;4(b!=-1)a.C(\'v\',b);a.3X(\'.6\').3Y(\'6\')}})},1b:7(a,b){2.1I();m o={};4(H a!=\'1b\')a=1R(a);2I(H b){1r\'1b\':4(2.1j[b])o=$.M(o,2.1j[b]);L o.6=b;2J;1r\'2v\':o=b}4(!o.O)o.O=2.1s.O;m c=1m 1n(o.O),R=1m 1n(o.O,\'g\');4((o.s==\'q\')&&o.t){4(H 2.N[o.t.1c(0)]!=\'12\'){m d=a.1c(0);o.F=(H 2.N[d]!=\'12\')?2.N[d]:2.N[o.t.1c(0)];o.t=o.t.1y(1)}}l 2.1z(a.X(\'\'),o.6.1x(R,\'\').X(\'\'),o.6.X(\'\'),o.s,o.v,o.t,c,o.F)},2D:7(e){m a=$(2),11=a.5(\'6\');11.2K=a.S();11.1S=E;4(11.2l)a.1T()},2F:7(e){m a=$(2),11=a.5(\'6\');4(11.2K!=a.S()&&!11.1S)a.2L(\'2G\')},2H:7(e){$(2).5(\'6\').1S=u},1q:7(e){m a=e.5.1p,o={};o.w=e.3Z;o.$2=$(o.w);4(o.$2.C(\'41\'))l u;o.5=o.$2.5(\'6\');o[o.5.s]=u;o.I=o.$2.S();o.D=a.2M(e);o.r=a.2N(o.w);o.1U=o.I.X(\'\');l e.5.1o.W(a,e,o)},2z:7(e,o){2.1l=$.1V(o.D,2.1J)>-1||e.42||e.43||e.44;4(2.1l){m a=2.1k[o.D];o.5.1H.W(o.w,a?a:\'\',o.D)}l k?2.47(e,o):u},2B:7(e,o){4(o.D==9||o.D==16)l u;4(o.5.s==\'T\'){2.1W(o);l u}l 2.1Q(e,o)},1Q:7(e,o){4(o.q)2.1X(e.s,o);m a=2.1z(o.1U,o.5.1O,o.5.J,o.5.s,o.5.v,o.5.t,o.5.1w,o.5.F);o.$2.S(a);4(!o.q&&o.5.t.p&&(o.r.B==o.r.x))2.1d(o.w,o.r.B,o.r.x);4(($.V.1Y||$.V.48)&&!o.q)2.1d(o.w,o.r.B,o.r.x);4(2.1l)l u;2.1W(o);l u},2A:7(e,o){4(2.1l)l u;4(o.q)2.1X(e.s,o);m c=1R.2O(o.D),1e=o.r.B,1f=o.I,J=o.5.J;4(o.q){m a=1f.1C(0,1e),2P=1f.1C(o.r.x,1f.p);1f=a+c+2P;4(o.5.F&&(1e-o.5.F.p>0))1e-=o.5.F.p}m b=1f.1x(o.5.R,\'\').X(\'\'),1Z=2.2Q(1e,J,o.5.1w);o.U=1e+1Z;4(o.T)o.U=0;4(!2.14[J[o.U]]||(o.5.v!=-1&&b.p>=o.5.v&&o.T)){o.5.2o.W(o.w,c,o.D);l E}L 4(!2.14[J[o.U]].1A(c)){o.5.2n.W(o.w,c,o.D);l E}L o.5.1H.W(o.w,c,o.D);m d=2.1z(b,o.5.1O,J,o.5.s,o.5.v,o.5.t,o.5.1w,o.5.F,1Z);o.$2.S(d);l(o.q)?2.2R(e,o):(o.1F)?2.2S(e,o):u},2S:7(e,o){4(o.r.B==o.r.x){4((o.U==0&&o.I.p==0)||o.U<o.I.p)2.1d(o.w,o.U,o.U+1)}L 2.1d(o.w,o.r.B,o.r.x);l u},2R:7(e,o){4($.V.1Y&&((o.r.B==0&&o.r.x==0)||o.r.B!=o.r.x))2.1d(o.w,o.I.p);l E},1W:7(o){4(o.5.1G&&((o.$2.S().p>=o.5.J.p&&!o.T)||(o.5.v!=-1&&o.1U.p>=o.5.v&&o.T))){m a=2.2T(o.w,o.5.1G);4(a){o.$2.2L(\'2E\');a.2C().1T()}}},1X:7(a,o){4(o.5.F!==E){m b=(a==\'1h\')?o.I.1c(0):1R.2O(o.D);4(2.N&&(H 2.N[b]!=\'12\')){o.5.F=2.N[b]}}},2M:7(e){l(e.49||e.4a||e.4b)},1z:7(a,b,c,d,e,f,g,h,i){4(d==\'q\')a.q();a=2.2U(a,b,d==\'T\'||d==\'1P\');4(f)a=2.2V.W(a,f);a=2.2W(a,c,i,g);2I(d){1r\'q\':a.q();l(h||\'\')+a.20(\'\').1y(a.p-c.p);1r\'1P\':1r\'T\':m j=a.20(\'\');l(e!=-1&&a.p>=e)?j.1y(0,e):j;4c:l a.20(\'\').1y(0,c.p)}l\'\'},2V:7(a){m b=a.p,2X=2.p,i;Q(i=2X-1;i>=0;i--){4(2[i]==a.1c(0))2.4d();L 2J}Q(i=0;i<b;i++)4(!2[i])2[i]=a.1c(i);l 2},2U:7(a,b,c){Q(m i=0,y=0;i<a.p;i++){4(b[y]&&2.14[b[y]]&&!2.14[b[y]].1A(a[i])){a.2Y(i,1);4(!c)y--;i--}4(!c)y++}l a},2W:7(a,b,c,d){4(H c==\'12\')c=0;Q(m i=0;i<a.p+c;i++){4(b[i]&&d.1A(b[i]))a.2Y(i,0,b[i])}l a},2Q:7(a,b,c){m d=0;4e(c.1A(b[a++])){d++}l d},2T:7(a,b){m c=a.2Z.30,31=$.1V(a,c)+1,$K=15,i;Q(i=31;i<c.p;i++){$K=$(c[i]);4(2.21($K,b))l $K}m d=32.4f,3a=$.1V(a.2Z,d)+1,y,1B=15;Q(y=3a;y<d.p;y++){1B=d[y].30;Q(i=0;i<1B.p;i++){$K=$(1B[i]);4(2.21($K,b))l $K}}l 15},21:7(a,b){m c=a.4g(0);l c&&(c.4h>0||c.4i>0)&&c.4j!=\'4k\'&&(b===u||(H b==\'1b\'&&a.4l(b)))},1d:7(a,b,c){4(H c==\'12\')c=b;4(a.3b){a.3b(b,c)}L{m d=a.4m();d.4n();d.3c(\'22\',b);d.4o(\'22\',c-b);d.1T()}},2N:7(a){4(!$.V.1Y)l{B:a.4p,x:a.4q};m b={B:0,x:0},r=32.4r.4s();b.B=0-r.4t().3c(\'22\',-4u);b.x=b.B+r.2y.p;l b},23:7(a){l $(a).S().1x($.6.R,\'\')}}});$.4v.M({4w:7(a){l $.6.2t(2,a)},4x:7(){l $.6.1N(2)},23:7(){l $.6.23(2[0])}})})(4y);',62,283,'||this||if|data|mask|function||||||||||||||return|var|999||length|reverse|range|type|defaultValue|true|maxLength|_this|end||||start|attr|nKey|false|signal|9999|typeof|value|maskArray|input|else|extend|signals|fixedChars|99|for|fixedCharsRegG|val|repeat|rsEp|browser|call|split|bind|||dataObj|undefined||rules|null|||||tmpMask|string|charAt|__setRange|rangeStart|rawValue|pasteEvent|paste|pasteHandler|masks|keyRep|ignore|new|RegExp|func|thisObj|_onMask|case|options|us|decimal|000|fixedCharsReg|replace|substring|__maskArray|test|tmpFormEls|substr|event|zA|fixed|autoTab|onValid|init|ignoreKeys|each|mlStr|attrValue|unset|maskNonFixedCharsArray|infinite|_onPaste|String|changed|select|valueArray|inArray|__autoTab|__changeSignal|msie|extraPos|join|__isNextInput|character|unmaskedVal|window|addEventListener|attachEvent||removeEventListener||detachEvent|9a|keyRepresentation|alt|page|up|down|right|delete|iphoneKeyRepresentation|textAlign|selectCharsOnFocus|setSize|onInvalid|onOverflow|phone|date|signed|hasInit|set|el|object|metadata|size|text|_onKeyDown|_onKeyPress|_onKeyUp|focus|_onFocus|blur|_onBlur|change|_onChange|switch|break|inputFocusValue|trigger|__getKeyNumber|__getRange|fromCharCode|valueEnd|__extraPositionsTill|_keyPressReverse|_keyPressFixed|__getNextInput|__removeInvalidChars|__applyDefaultValue|__applyMask|thisLen|splice|form|elements|initialInputIndex|document||||||||initialFormIndex|setSelectionRange|moveStart|orientation|opera|mozilla|parseFloat|version|special|setup|teardown|fix|setTimeout|handle|backspace|tab|enter|shift|control|esc|home|left|insert|116|f5|123|f12|224|command|go|127|cpf|cnpj|cep|99999|time|59|cc|integer|push|parseInt|constructor|Array|css|align|removeAttr|keydown|keypress|keyup|unbind|removeData|target||readonly|ctrlKey|metaKey|altKey|||_keyPress|safari|charCode|keyCode|which|default|pop|while|forms|get|offsetWidth|offsetHeight|nodeName|FIELDSET|is|createTextRange|collapse|moveEnd|selectionStart|selectionEnd|selection|createRange|duplicate|100000|fn|setMask|unsetMask|jQuery'.split('|'),0,{}))