Skip to content

Instantly share code, notes, and snippets.

@demun
Created November 11, 2012 13:50
Show Gist options
  • Save demun/4054944 to your computer and use it in GitHub Desktop.
Save demun/4054944 to your computer and use it in GitHub Desktop.
PIE.min.js: CSS3 rendering for IE
/*
PIE: CSS3 rendering for IE
Version 1.0.0
http://css3pie.com
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
*/
(function(){var g=document;var c=window.PIE;if(!c){c=window.PIE={F:"-pie-",nb:"Pie",La:"pie_",Ac:{TD:1,TH:1},cc:{TABLE:1,THEAD:1,TBODY:1,TFOOT:1,TR:1,INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,IMG:1,HR:1},fc:{A:1,INPUT:1,TEXTAREA:1,SELECT:1,BUTTON:1},Gd:{submit:1,button:1,reset:1},aa:function(){}};try{g.execCommand("BackgroundImageCache",false,true)}catch(e){}for(var i=4,d=g.createElement("div"),b=d.getElementsByTagName("i"),h;d.innerHTML="<!--[if gt IE "+ ++i+"]><i></i><![endif]-->",b[0];){}c.O=i;if(i===6){c.F=c.F.replace(/^-/,"")}c.ja=g.documentMode||c.O;d.innerHTML='<v:shape adj="1"/>';h=d.firstChild;h.style.behavior="url(#default#VML)";c.zc=typeof h.adj==="object";(function(){var j,f=0,k={};c.p={Za:function(l){if(!j){j=g.createDocumentFragment();j.namespaces.add("css3vml","urn:schemas-microsoft-com:vml")}return j.createElement("css3vml:"+l)},Ba:function(l){return l&&l._pieId||(l._pieId="_"+ ++f)},Eb:function(q){var p,o,l,m,n=arguments;p=1;for(o=n.length;p<o;p++){m=n[p];for(l in m){if(m.hasOwnProperty(l)){q[l]=m[l]}}}return q},Rb:function(q,p,o){var l=k[q],m,n;if(l){Object.prototype.toString.call(l)==="[object Array]"?l.push([p,o]):p.call(o,l)}else{n=k[q]=[[p,o]];m=new Image;m.onload=function(){l=k[q]={h:m.width,f:m.height};for(var r=0,s=n.length;r<s;r++){n[r][0].call(n[r][1],l)}m.onload=null};m.src=q}}}})();c.Na={gc:function(C,B,A,z){function y(){s=u>=90&&u<270?B:0;o=u<180?A:0;q=B-s;l=A-o}function x(){for(;u<0;){u+=360}u%=360}var u=z.sa;z=z.zb;var v,w,s,o,q,l,f,D;if(z){z=z.coords(C,B,A);v=z.x;w=z.y}if(u){u=u.jd();x();y();if(!z){v=s;w=o}z=c.Na.tc(v,w,u,q,l);C=z[0];z=z[1]}else{if(z){C=B-v;z=A-w}else{v=w=C=0;z=A}}f=C-v;D=z-w;if(u===void 0){u=!f?D<0?90:270:!D?f<0?180:0:-Math.atan2(D,f)/Math.PI*180;x();y()}return{sa:u,xc:v,yc:w,td:C,ud:z,Wd:s,Xd:o,rd:q,sd:l,kd:f,ld:D,rc:c.Na.dc(v,w,C,z)}},tc:function(j,f,m,l,k){if(m===0||m===180){return[l,f]}else{if(m===90||m===270){return[j,k]}else{m=Math.tan(-m*Math.PI/180);j=m*j-f;f=-1/m;l=f*l-k;k=f-m;return[(l-j)/k,(m*l-f*j)/k]}}},dc:function(j,f,l,k){j=l-j;f=k-f;return Math.abs(j===0?f:f===0?j:Math.sqrt(j*j+f*f))}};c.ea=function(){this.Gb=[];this.oc={}};c.ea.prototype={ba:function(j){var f=c.p.Ba(j),l=this.oc,k=this.Gb;if(!(f in l)){l[f]=k.length;k.push(j)}},Ha:function(j){j=c.p.Ba(j);var f=this.oc;if(j&&j in f){delete this.Gb[f[j]];delete f[j]}},xa:function(){for(var j=this.Gb,f=j.length;f--;){j[f]&&j[f]()}}};c.Oa=new c.ea;c.Oa.Rd=function(){var j=this,f;if(!j.Sd){f=g.documentElement.currentStyle.getAttribute(c.F+"poll-interval")||250;(function k(){j.xa();setTimeout(k,f)})();j.Sd=1}};(function(){function f(){c.L.xa();window.detachEvent("onunload",f);window.PIE=null}c.L=new c.ea;window.attachEvent("onunload",f);c.L.ta=function(j,l,k){j.attachEvent(l,k);this.ba(function(){j.detachEvent(l,k)})}})();c.Qa=new c.ea;c.L.ta(window,"onresize",function(){c.Qa.xa()});(function(){function f(){c.mb.xa()}c.mb=new c.ea;c.L.ta(window,"onscroll",f);c.Qa.ba(f)})();(function(){function j(){k=c.kb.md()}function f(){if(k){for(var m=0,l=k.length;m<l;m++){c.attach(k[m])}k=0}}var k;if(c.ja<9){c.L.ta(window,"onbeforeprint",j);c.L.ta(window,"onafterprint",f)}})();c.lb=new c.ea;c.L.ta(g,"onmouseup",function(){c.lb.xa()});c.he=function(){function k(j){this.Y=j}var f=g.createElement("length-calc"),q=g.body||g.documentElement,p=f.style,o={},n=["mm","cm","in","pt","pc"],l=n.length,m={};p.position="absolute";p.top=p.left="-9999px";for(q.appendChild(f);l--;){p.width="100"+n[l];o[n[l]]=f.offsetWidth/100}q.removeChild(f);p.width="1em";k.prototype={Kb:/(px|em|ex|mm|cm|in|pt|pc|%)$/,ic:function(){var j=this.Jd;if(j===void 0){j=this.Jd=parseFloat(this.Y)}return j},yb:function(){var j=this.ae;if(!j){j=this.ae=(j=this.Y.match(this.Kb))&&j[0]||"px"}return j},a:function(s,r){var t=this.ic(),j=this.yb();switch(j){case"px":return t;case"%":return t*(typeof r==="function"?r():r)/100;case"em":return t*this.xb(s);case"ex":return t*this.xb(s)/2;default:return t*o[j]}},xb:function(s){var r=s.currentStyle.fontSize,t,j;if(r.indexOf("px")>0){return parseFloat(r)}else{if(s.tagName in c.cc){j=this;t=s.parentNode;return c.n(r).a(t,function(){return j.xb(t)})}else{s.appendChild(f);r=f.offsetWidth;f.parentNode===s&&s.removeChild(f);return r}}}};c.n=function(j){return m[j]||(m[j]=new k(j))};return k}();c.Ja=function(){function j(m){this.X=m}var f=c.n("50%"),l={top:1,center:1,bottom:1},k={left:1,center:1,right:1};j.prototype={zd:function(){if(!this.ac){var q=this.X,p=q.length,m=c.v,n=m.qa,o=c.n("0");n=n.na;o=["left",o,"top",o];if(p===1){q.push(new m.ob(n,"center"));p++}if(p===2){n&(q[0].k|q[1].k)&&q[0].d in l&&q[1].d in k&&q.push(q.shift());if(q[0].k&n){if(q[0].d==="center"){o[1]=f}else{o[0]=q[0].d}}else{if(q[0].W()){o[1]=c.n(q[0].d)}}if(q[1].k&n){if(q[1].d==="center"){o[3]=f}else{o[2]=q[1].d}}else{if(q[1].W()){o[3]=c.n(q[1].d)}}}this.ac=o}return this.ac},coords:function(q,p,m){var n=this.zd(),o=n[1].a(q,p);q=n[3].a(q,m);return{x:n[0]==="right"?p-o:o,y:n[2]==="bottom"?m-q:q}}};return j}();c.Ka=function(){function f(j,k){this.h=j;this.f=k}f.prototype={a:function(k,r,q,p,o){var l=this.h,m=this.f,n=r/q;p=p/o;if(l==="contain"){l=p>n?r:q*p;m=p>n?r/p:q}else{if(l==="cover"){l=p<n?r:q*p;m=p<n?r/p:q}else{if(l==="auto"){m=m==="auto"?o:m.a(k,q);l=m*p}else{l=l.a(k,r);m=m==="auto"?l/p:m.a(k,q)}}}return{h:l,f:m}}};f.Kc=new f("auto","auto");return f}();c.Ec=function(){function f(j){this.Y=j}f.prototype={Kb:/[a-z]+$/i,yb:function(){return this.ad||(this.ad=this.Y.match(this.Kb)[0].toLowerCase())},jd:function(){var j=this.Vc,k;if(j===undefined){j=this.yb();k=parseFloat(this.Y,10);j=this.Vc=j==="deg"?k:j==="rad"?k/Math.PI*180:j==="grad"?k/400*360:j==="turn"?k*360:0}return j}};return f}();c.Jc=function(){function j(k){this.Y=k}var f={};j.Qd=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/;j.Fb={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"0FF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000",blanchedalmond:"FFEBCD",blue:"00F",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"0FF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"F0F",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgreen:"90EE90",lightgrey:"D3D3D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"789",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"0F0",limegreen:"32CD32",linen:"FAF0E6",magenta:"F0F",maroon:"800000",mediumauqamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"688E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"F00",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFF",whitesmoke:"F5F5F5",yellow:"FF0",yellowgreen:"9ACD32"};j.prototype={parse:function(){if(!this.Ua){var l=this.Y,k;if(k=l.match(j.Qd)){this.Ua="rgb("+k[1]+","+k[2]+","+k[3]+")";this.Yb=parseFloat(k[4])}else{if((k=l.toLowerCase()) in j.Fb){l="#"+j.Fb[k]}this.Ua=l;this.Yb=l==="transparent"?0:1}}},U:function(k){this.parse();return this.Ua==="currentColor"?k.currentStyle.color:this.Ua},fa:function(){this.parse();return this.Yb}};c.ha=function(k){return f[k]||(f[k]=new j(k))};return j}();c.v=function(){function j(k){this.$a=k;this.ch=0;this.X=[];this.Ga=0}var f=j.qa={Ia:1,Wb:2,z:4,Lc:8,Xb:16,na:32,K:64,oa:128,pa:256,Ra:512,Tc:1024,URL:2048};j.ob=function(l,k){this.k=l;this.d=k};j.ob.prototype={Ca:function(){return this.k&f.K||this.k&f.oa&&this.d==="0"},W:function(){return this.Ca()||this.k&f.Ra}};j.prototype={de:/\s/,Kd:/^[\+\-]?(\d*\.)?\d+/,url:/^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i,nc:/^\-?[_a-z][\w-]*/i,Yd:/^("([^"]*)"|'([^']*)')/,Bd:/^#([\da-f]{6}|[\da-f]{3})/i,be:{px:f.K,em:f.K,ex:f.K,mm:f.K,cm:f.K,"in":f.K,pt:f.K,pc:f.K,deg:f.Ia,rad:f.Ia,grad:f.Ia},fd:{rgb:1,rgba:1,hsl:1,hsla:1},next:function(w){function v(m,k){m=new j.ob(m,k);if(!w){p.X.push(m);p.Ga++}return m}function u(){p.Ga++;return null}var t,q,r,s,p=this;if(this.Ga<this.X.length){return this.X[this.Ga++]}for(;this.de.test(this.$a.charAt(this.ch));){this.ch++}if(this.ch>=this.$a.length){return u()}q=this.ch;t=this.$a.substring(this.ch);r=t.charAt(0);switch(r){case"#":if(s=t.match(this.Bd)){this.ch+=s[0].length;return v(f.z,s[0])}break;case'"':case"'":if(s=t.match(this.Yd)){this.ch+=s[0].length;return v(f.Tc,s[2]||s[3]||"")}break;case"/":case",":this.ch++;return v(f.pa,r);case"u":if(s=t.match(this.url)){this.ch+=s[0].length;return v(f.URL,s[2]||s[3]||s[4]||"")}}if(s=t.match(this.Kd)){r=s[0];this.ch+=r.length;if(t.charAt(r.length)==="%"){this.ch++;return v(f.Ra,r+"%")}if(s=t.substring(r.length).match(this.nc)){r+=s[0];this.ch+=s[0].length;return v(this.be[s[0].toLowerCase()]||f.Lc,r)}return v(f.oa,r)}if(s=t.match(this.nc)){r=s[0];this.ch+=r.length;if(r.toLowerCase() in c.Jc.Fb||r==="currentColor"||r==="transparent"){return v(f.z,r)}if(t.charAt(r.length)==="("){this.ch++;if(r.toLowerCase() in this.fd){t=function(k){return k&&k.k&f.oa};s=function(k){return k&&k.k&(f.oa|f.Ra)};var l=function(m,k){return m&&m.d===k},o=function(){return p.next(1)};if((r.charAt(0)==="r"?s(o()):t(o()))&&l(o(),",")&&s(o())&&l(o(),",")&&s(o())&&(r==="rgb"||r==="hsa"||l(o(),",")&&t(o()))&&l(o(),")")){return v(f.z,this.$a.substring(q,this.ch))}return u()}return v(f.Xb,r)}return v(f.na,r)}this.ch++;return v(f.Wb,r)},D:function(){return this.X[this.Ga---2]},all:function(){for(;this.next();){}return this.X},ma:function(o,n){for(var m=[],l,k;l=this.next();){if(o(l)){k=true;this.D();break}m.push(l)}return n&&!k?null:m}};return j}();var a=function(f){this.e=f};a.prototype={Z:0,Od:function(){var j=this.qb,f;return !j||(f=this.o())&&(j.x!==f.x||j.y!==f.y)},Td:function(){var j=this.qb,f;return !j||(f=this.o())&&(j.h!==f.h||j.f!==f.f)},hc:function(){var j=this.e,f=j.getBoundingClientRect(),m=c.ja===9,l=c.O===7,k=f.right-f.left;return{x:f.left,y:f.top,h:m||l?j.offsetWidth:k,f:m||l?j.offsetHeight:f.bottom-f.top,Hd:l&&k?j.offsetWidth/k:1}},o:function(){return this.Z?this.Va||(this.Va=this.hc()):this.hc()},Ad:function(){return !!this.qb},cb:function(){++this.Z},hb:function(){if(!--this.Z){if(this.Va){this.qb=this.Va}this.Va=null}}};(function(){function f(j){var k=c.p.Ba(j);return function(){if(this.Z){var l=this.$b||(this.$b={});return k in l?l[k]:(l[k]=j.call(this))}else{return j.call(this)}}}c.B={Z:0,ka:function(j){function k(l){this.e=l;this.Zb=this.ia()}c.p.Eb(k.prototype,c.B,j);k.$c={};return k},j:function(){var j=this.ia(),k=this.constructor.$c;return j?j in k?k[j]:(k[j]=this.la(j)):null},ia:f(function(){var k=this.e,p=this.constructor,o=k.style;k=k.currentStyle;var n=this.wa,m=this.Fa,l=p.Yc||(p.Yc=c.F+n);p=p.Zc||(p.Zc=c.nb+m.charAt(0).toUpperCase()+m.substring(1));return o[p]||k.getAttribute(l)||o[m]||k.getAttribute(n)}),i:f(function(){return !!this.j()}),H:f(function(){var j=this.ia(),k=j!==this.Zb;this.Zb=j;return k}),va:f,cb:function(){++this.Z},hb:function(){--this.Z||delete this.$b}}})();c.Sb=c.B.ka({wa:c.F+"background",Fa:c.nb+"Background",cd:{scroll:1,fixed:1,local:1},fb:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},sc:{"padding-box":1,"border-box":1,"content-box":1},Pd:{top:1,right:1,bottom:1,left:1,center:1},Ud:{contain:1,cover:1},eb:{Ma:"backgroundClip",z:"backgroundColor",da:"backgroundImage",Pa:"backgroundOrigin",S:"backgroundPosition",T:"backgroundRepeat",Sa:"backgroundSize"},la:function(J){function I(j){return j&&j.W()||j.k&A&&j.d in o}function H(j){return j&&(j.W()&&c.n(j.d)||j.d==="auto"&&"auto")}var G=this.e.currentStyle,F,E,B,C=c.v.qa,D=C.pa,A=C.na,x=C.z,y,w,s=0,o=this.Pd,f,z,u={M:[]};if(this.wb()){F=new c.v(J);for(B={};E=F.next();){y=E.k;w=E.d;if(!B.P&&y&C.Xb&&w==="linear-gradient"){f={ca:[],P:w};for(z={};E=F.next();){y=E.k;w=E.d;if(y&C.Wb&&w===")"){z.color&&f.ca.push(z);f.ca.length>1&&c.p.Eb(B,f);break}if(y&x){if(f.sa||f.zb){E=F.D();if(E.k!==D){break}F.next()}z={color:c.ha(w)};E=F.next();if(E.W()){z.db=c.n(E.d)}else{F.D()}}else{if(y&C.Ia&&!f.sa&&!z.color&&!f.ca.length){f.sa=new c.Ec(E.d)}else{if(I(E)&&!f.zb&&!z.color&&!f.ca.length){F.D();f.zb=new c.Ja(F.ma(function(j){return !I(j)},false))}else{if(y&D&&w===","){if(z.color){f.ca.push(z);z={}}}else{break}}}}}}else{if(!B.P&&y&C.URL){B.Ab=w;B.P="image"}else{if(I(E)&&!B.$){F.D();B.$=new c.Ja(F.ma(function(j){return !I(j)},false))}else{if(y&A){if(w in this.fb&&!B.bb){B.bb=w}else{if(w in this.sc&&!B.Wa){B.Wa=w;if((E=F.next())&&E.k&A&&E.d in this.sc){B.ub=E.d}else{B.ub=w;F.D()}}else{if(w in this.cd&&!B.bc){B.bc=w}else{return null}}}}else{if(y&x&&!u.color){u.color=c.ha(w)}else{if(y&D&&w==="/"&&!B.Xa&&B.$){E=F.next();if(E.k&A&&E.d in this.Ud){B.Xa=new c.Ka(E.d)}else{if(E=H(E)){y=H(F.next());if(!y){y=E;F.D()}B.Xa=new c.Ka(E,y)}else{return null}}}else{if(y&D&&w===","&&B.P){B.Hb=J.substring(s,F.ch-1);s=F.ch;u.M.push(B);B={}}else{return null}}}}}}}}if(B.P){B.Hb=J.substring(s);u.M.push(B)}}else{this.Bc(c.ja<9?function(){var l=this.eb,m=G[l.S+"X"],k=G[l.S+"Y"],j=G[l.da],n=G[l.z];if(n!=="transparent"){u.color=c.ha(n)}if(j!=="none"){u.M=[{P:"image",Ab:(new c.v(j)).next().d,bb:G[l.T],$:new c.Ja((new c.v(m+" "+k)).all())}]}}:function(){var v=this.eb,m=/\s*,\s*/,r=G[v.da].split(m),q=G[v.z],p,n,l,t,j,k;if(q!=="transparent"){u.color=c.ha(q)}if((t=r.length)&&r[0]!=="none"){q=G[v.T].split(m);p=G[v.S].split(m);n=G[v.Pa].split(m);l=G[v.Ma].split(m);v=G[v.Sa].split(m);u.M=[];for(m=0;m<t;m++){if((j=r[m])&&j!=="none"){k=v[m].split(" ");u.M.push({Hb:j+" "+q[m]+" "+p[m]+" / "+v[m]+" "+n[m]+" "+l[m],P:"image",Ab:(new c.v(j)).next().d,bb:q[m],$:new c.Ja((new c.v(p[m])).all()),Wa:n[m],ub:l[m],Xa:new c.Ka(k[0],k[1])})}}}})}return u.color||u.M[0]?u:null},Bc:function(v){var u=c.ja>8,t=this.eb,s=this.e.runtimeStyle,r=s[t.da],q=s[t.z],m=s[t.T],o,p,l,f;if(r){s[t.da]=""}if(q){s[t.z]=""}if(m){s[t.T]=""}if(u){o=s[t.Ma];p=s[t.Pa];f=s[t.S];l=s[t.Sa];if(o){s[t.Ma]=""}if(p){s[t.Pa]=""}if(f){s[t.S]=""}if(l){s[t.Sa]=""}}v=v.call(this);if(r){s[t.da]=r}if(q){s[t.z]=q}if(m){s[t.T]=m}if(u){if(o){s[t.Ma]=o}if(p){s[t.Pa]=p}if(f){s[t.S]=f}if(l){s[t.Sa]=l}}return v},ia:c.B.va(function(){return this.wb()||this.Bc(function(){var j=this.e.currentStyle,f=this.eb;return j[f.z]+" "+j[f.da]+" "+j[f.T]+" "+j[f.S+"X"]+" "+j[f.S+"Y"]})}),wb:c.B.va(function(){var f=this.e;return f.style[this.Fa]||f.currentStyle.getAttribute(this.wa)}),qc:function(){var f=0;if(c.O<7){f=this.e;f=""+(f.style[c.nb+"PngFix"]||f.currentStyle.getAttribute(c.F+"png-fix"))==="true"}return f},i:c.B.va(function(){return(this.wb()||this.qc())&&!!this.j()})});c.Vb=c.B.ka({wc:["Top","Right","Bottom","Left"],Id:{thin:"1px",medium:"3px",thick:"5px"},la:function(){var k={},f={},p={},o=false,n=true,m=true,l=true;this.Cc(function(){for(var x=this.e.currentStyle,y=0,w,s,u,q,j,A,z;y<4;y++){u=this.wc[y];z=u.charAt(0).toLowerCase();w=f[z]=x["border"+u+"Style"];s=x["border"+u+"Color"];u=x["border"+u+"Width"];if(y>0){if(w!==q){m=false}if(s!==j){n=false}if(u!==A){l=false}}q=w;j=s;A=u;p[z]=c.ha(s);u=k[z]=c.n(f[z]==="none"?"0":this.Id[u]||u);if(u.a(this.e)>0){o=true}}});return o?{J:k,Zd:f,gd:p,ee:l,hd:n,$d:m}:null},ia:c.B.va(function(){var j=this.e,f=j.currentStyle,k;j.tagName in c.Ac&&j.offsetParent.currentStyle.borderCollapse==="collapse"||this.Cc(function(){k=f.borderWidth+"|"+f.borderStyle+"|"+f.borderColor});return k}),Cc:function(j){var f=this.e.runtimeStyle,l=f.borderWidth,k=f.borderColor;if(l){f.borderWidth=""}if(k){f.borderColor=""}j=j.call(this);if(l){f.borderWidth=l}if(k){f.borderColor=k}return j}});(function(){c.jb=c.B.ka({wa:"border-radius",Fa:"borderRadius",la:function(k){var r=null,q,p,o,l,m=false;if(k){p=new c.v(k);var n=function(){for(var j=[],s;(o=p.next())&&o.W();){l=c.n(o.d);s=l.ic();if(s<0){return null}if(s>0){m=true}j.push(l)}return j.length>0&&j.length<5?{tl:j[0],tr:j[1]||j[0],br:j[2]||j[0],bl:j[3]||j[1]||j[0]}:null};if(k=n()){if(o){if(o.k&c.v.qa.pa&&o.d==="/"){q=n()}}else{q=k}if(m&&k&&q){r={x:k,y:q}}}}return r}});var f=c.n("0");f={tl:f,tr:f,br:f,bl:f};c.jb.Dc={x:f,y:f}})();c.Ub=c.B.ka({wa:"border-image",Fa:"borderImage",fb:{stretch:1,round:1,repeat:1,space:1},la:function(D){var C=null,B,A,z,y,u,w,x=0,s=c.v.qa,o=s.na,q=s.oa,l=s.Ra;if(D){B=new c.v(D);C={};for(var f=function(j){return j&&j.k&s.pa&&j.d==="/"},F=function(j){return j&&j.k&o&&j.d==="fill"},E=function(){y=B.ma(function(j){return !(j.k&(q|l))});if(F(B.next())&&!C.fill){C.fill=true}else{B.D()}if(f(B.next())){x++;u=B.ma(function(j){return !j.W()&&!(j.k&o&&j.d==="auto")});if(f(B.next())){x++;w=B.ma(function(j){return !j.Ca()})}}else{B.D()}};D=B.next();){A=D.k;z=D.d;if(A&(q|l)&&!y){B.D();E()}else{if(F(D)&&!C.fill){C.fill=true;E()}else{if(A&o&&this.fb[z]&&!C.repeat){C.repeat={f:z};if(D=B.next()){if(D.k&o&&this.fb[D.d]){C.repeat.Ob=D.d}else{B.D()}}}else{if(A&s.URL&&!C.src){C.src=z}else{return null}}}}}if(!C.src||!y||y.length<1||y.length>4||u&&u.length>4||x===1&&u.length<1||w&&w.length>4||x===2&&w.length<1){return null}if(!C.repeat){C.repeat={f:"stretch"}}if(!C.repeat.Ob){C.repeat.Ob=C.repeat.f}D=function(j,k){return{t:k(j[0]),r:k(j[1]||j[0]),b:k(j[2]||j[0]),l:k(j[3]||j[1]||j[0])}};C.slice=D(y,function(j){return c.n(j.k&q?j.d+"px":j.d)});if(u&&u[0]){C.J=D(u,function(j){return j.W()?c.n(j.d):j.d})}if(w&&w[0]){C.Da=D(w,function(j){return j.Ca()?c.n(j.d):j.d})}}return C}});c.Ic=c.B.ka({wa:"box-shadow",Fa:"boxShadow",la:function(j){var f,m=c.n,l=c.v.qa,k;if(j){k=new c.v(j);f={Da:[],Bb:[]};for(j=function(){for(var s,p,q,r,o,t;s=k.next();){q=s.d;p=s.k;if(p&l.pa&&q===","){break}else{if(s.Ca()&&!o){k.D();o=k.ma(function(n){return !n.Ca()})}else{if(p&l.z&&!r){r=q}else{if(p&l.na&&q==="inset"&&!t){t=true}else{return false}}}}}s=o&&o.length;if(s>1&&s<5){(t?f.Bb:f.Da).push({fe:m(o[0].d),ge:m(o[1].d),blur:m(o[2]?o[2].d:"0"),Vd:m(o[3]?o[3].d:"0"),color:c.ha(r||"currentColor")});return true}return false};j();){}}return f&&(f.Bb.length||f.Da.length)?f:null}});c.Uc=c.B.ka({ia:c.B.va(function(){var f=this.e.currentStyle;return f.visibility+"|"+f.display}),la:function(){var j=this.e,f=j.runtimeStyle;j=j.currentStyle;var l=f.visibility,k;f.visibility="";k=j.visibility;f.visibility=l;return{ce:k!=="hidden",nd:j.display!=="none"}},i:function(){return false}});c.u={R:function(j){function f(n,m,l,k){this.e=n;this.s=m;this.g=l;this.parent=k}c.p.Eb(f.prototype,c.u,j);return f},Cb:false,Q:function(){return false},Ea:c.aa,Lb:function(){this.m();this.i()&&this.V()},ib:function(){this.Cb=true},Mb:function(){this.i()?this.V():this.m()},sb:function(j,f){this.vc(j);for(var n=this.ra||(this.ra=[]),m=j+1,l=n.length,k;m<l;m++){if(k=n[m]){break}}n[j]=f;this.I().insertBefore(f,k||null)},za:function(j){var f=this.ra;return f&&f[j]||null},vc:function(j){var f=this.za(j),k=this.Ta;if(f&&k){k.removeChild(f);this.ra[j]=null}},Aa:function(j,f,n,m){var l=this.rb||(this.rb={}),k=l[j];if(!k){k=l[j]=c.p.Za("shape");if(f){k.appendChild(k[f]=c.p.Za(f))}if(m){n=this.za(m);if(!n){this.sb(m,g.createElement("group"+m));n=this.za(m)}}n.appendChild(k);j=k.style;j.position="absolute";j.left=j.top=0;j.behavior="url(#default#VML)"}return k},vb:function(j){var f=this.rb,k=f&&f[j];if(k){k.parentNode.removeChild(k);delete f[j]}return !!k},kc:function(v){var u=this.e,t=this.s.o(),s=t.h,r=t.f,q,m,o,p,l,f;t=v.x.tl.a(u,s);q=v.y.tl.a(u,r);m=v.x.tr.a(u,s);o=v.y.tr.a(u,r);p=v.x.br.a(u,s);l=v.y.br.a(u,r);f=v.x.bl.a(u,s);v=v.y.bl.a(u,r);s=Math.min(s/(t+m),r/(o+l),s/(f+p),r/(q+v));if(s<1){t*=s;q*=s;m*=s;o*=s;p*=s;l*=s;f*=s;v*=s}return{x:{tl:t,tr:m,br:p,bl:f},y:{tl:q,tr:o,br:l,bl:v}}},ya:function(F,E,D){E=E||1;var C,B,A=this.s.o();B=A.h*E;A=A.f*E;var x=this.g.G,y=Math.floor,z=Math.ceil,w=F?F.Jb*E:0,q=F?F.Ib*E:0,s=F?F.tb*E:0;F=F?F.Db*E:0;var o,f,H,G,u;if(D||x.i()){C=this.kc(D||x.j());D=C.x.tl*E;x=C.y.tl*E;o=C.x.tr*E;f=C.y.tr*E;H=C.x.br*E;G=C.y.br*E;u=C.x.bl*E;E=C.y.bl*E;B="m"+y(F)+","+y(x)+"qy"+y(D)+","+y(w)+"l"+z(B-o)+","+y(w)+"qx"+z(B-q)+","+y(f)+"l"+z(B-q)+","+z(A-G)+"qy"+z(B-H)+","+z(A-s)+"l"+y(u)+","+z(A-s)+"qx"+y(F)+","+z(A-E)+" x e"}else{B="m"+y(F)+","+y(w)+"l"+z(B-q)+","+y(w)+"l"+z(B-q)+","+z(A-s)+"l"+y(F)+","+z(A-s)+"xe"}return B},I:function(){var j=this.parent.za(this.N),f;if(!j){j=g.createElement(this.Ya);f=j.style;f.position="absolute";f.top=f.left=0;this.parent.sb(this.N,j)}return j},mc:function(){var j=this.e,f=j.currentStyle,n=j.runtimeStyle,m=j.tagName,l=c.O===6,k;if(l&&(m in c.cc||m==="FIELDSET")||m==="BUTTON"||m==="INPUT"&&j.type in c.Gd){n.borderWidth="";m=this.g.w.wc;for(k=m.length;k--;){l=m[k];n["padding"+l]="";n["padding"+l]=c.n(f["padding"+l]).a(j)+c.n(f["border"+l+"Width"]).a(j)+(c.O!==8&&k%2?1:0)}n.borderWidth=0}else{if(l){if(j.childNodes.length!==1||j.firstChild.tagName!=="ie6-mask"){f=g.createElement("ie6-mask");m=f.style;m.visibility="visible";for(m.zoom=1;m=j.firstChild;){f.appendChild(m)}j.appendChild(f);n.visibility="hidden"}}else{n.borderColor="transparent"}}},ie:function(){},m:function(){this.parent.vc(this.N);delete this.rb;delete this.ra}};c.Rc=c.u.R({i:function(){var j=this.ed;for(var f in j){if(j.hasOwnProperty(f)&&j[f].i()){return true}}return false},Q:function(){return this.g.Pb.H()},ib:function(){if(this.i()){var k=this.jc(),f=k,q;k=k.currentStyle;var p=k.position,o=this.I().style,n=0,l=0;l=this.s.o();var m=l.Hd;if(p==="fixed"&&c.O>6){n=l.x*m;l=l.y*m;f=p}else{do{f=f.offsetParent}while(f&&f.currentStyle.position==="static");if(f){q=f.getBoundingClientRect();f=f.currentStyle;n=(l.x-q.left)*m-(parseFloat(f.borderLeftWidth)||0);l=(l.y-q.top)*m-(parseFloat(f.borderTopWidth)||0)}else{f=g.documentElement;n=(l.x+f.scrollLeft-f.clientLeft)*m;l=(l.y+f.scrollTop-f.clientTop)*m}f="absolute"}o.position=f;o.left=n;o.top=l;o.zIndex=p==="static"?-1:k.zIndex;this.Cb=true}},Mb:c.aa,Nb:function(){var f=this.g.Pb.j();this.I().style.display=f.ce&&f.nd?"":"none"},Lb:function(){this.i()?this.Nb():this.m()},jc:function(){var f=this.e;return f.tagName in c.Ac?f.offsetParent:f},I:function(){var j=this.Ta,f;if(!j){f=this.jc();j=this.Ta=g.createElement("css3-container");j.style.direction="ltr";this.Nb();f.parentNode.insertBefore(j,f)}return j},ab:c.aa,m:function(){var j=this.Ta,f;if(j&&(f=j.parentNode)){f.removeChild(j)}delete this.Ta;delete this.ra}});c.Fc=c.u.R({N:2,Ya:"background",Q:function(){var f=this.g;return f.C.H()||f.G.H()},i:function(){var f=this.g;return f.q.i()||f.G.i()||f.C.i()||f.ga.i()&&f.ga.j().Bb},V:function(){var f=this.s.o();if(f.h&&f.f){this.od();this.pd()}},od:function(){var j=this.g.C.j(),f=this.s.o(),n=this.e,m=j&&j.color,l,k;if(m&&m.fa()>0){this.lc();j=this.Aa("bgColor","fill",this.I(),1);l=f.h;f=f.f;j.stroked=false;j.coordsize=l*2+","+f*2;j.coordorigin="1,1";j.path=this.ya(null,2);k=j.style;k.width=l;k.height=f;j.fill.color=m.U(n);n=m.fa();if(n<1){j.fill.opacity=n}}else{this.vb("bgColor")}},pd:function(){var k=this.g.C.j(),f=this.s.o();k=k&&k.M;var p,o,n,m,l;if(k){this.lc();o=f.h;n=f.f;for(l=k.length;l--;){f=k[l];p=this.Aa("bgImage"+l,"fill",this.I(),2);p.stroked=false;p.fill.type="tile";p.fillcolor="none";p.coordsize=o*2+","+n*2;p.coordorigin="1,1";p.path=this.ya(0,2);m=p.style;m.width=o;m.height=n;if(f.P==="linear-gradient"){this.bd(p,f)}else{p.fill.src=f.Ab;this.Nd(p,l)}}}for(l=k?k.length:0;this.vb("bgImage"+l++);){}},Nd:function(j,f){var k=this;c.p.Rb(j.fill.src,function(B){var A=k.e,z=k.s.o(),w=z.h;z=z.f;if(w&&z){var x=j.fill,y=k.g,u=y.w.j(),q=u&&u.J;u=q?q.t.a(A):0;var s=q?q.r.a(A):0,o=q?q.b.a(A):0;q=q?q.l.a(A):0;y=y.C.j().M[f];A=y.$?y.$.coords(A,w-B.h-q-s,z-B.f-u-o):{x:0,y:0};y=y.bb;o=s=0;var l=w+1,D=z+1,C=c.O===8?0:1;q=Math.round(A.x)+q+0.5;u=Math.round(A.y)+u+0.5;x.position=q/w+","+u/z;x.size.x=1;x.size=B.h+"px,"+B.f+"px";if(y&&y!=="repeat"){if(y==="repeat-x"||y==="no-repeat"){s=u+1;D=u+B.f+C}if(y==="repeat-y"||y==="no-repeat"){o=q+1;l=q+B.h+C}j.style.clip="rect("+s+"px,"+l+"px,"+D+"px,"+o+"px)"}}})},bd:function(L,K){var J=this.e,I=this.s.o(),H=I.h,G=I.f;L=L.fill;I=K.ca;var D=I.length,E=Math.PI,F=c.Na,C=F.tc,z=F.dc;K=F.gc(J,H,G,K);F=K.sa;var A=K.xc,y=K.yc,w=K.Wd,o=K.Xd,f=K.rd,B=K.sd,x=K.kd,u=K.ld;K=K.rc;H=F%90?Math.atan2(x*H/G,u)/E*180:F+90;H+=180;H%=360;f=C(w,o,F,f,B);G=z(w,o,f[0],f[1]);E=[];f=C(A,y,F,w,o);z=z(A,y,f[0],f[1])/G*100;C=[];for(F=0;F<D;F++){C.push(I[F].db?I[F].db.a(J,K):F===0?0:F===D-1?K:null)}for(F=1;F<D;F++){if(C[F]===null){A=C[F-1];K=F;do{y=C[++K]}while(y===null);C[F]=A+(y-A)/(K-F+1)}C[F]=Math.max(C[F],C[F-1])}for(F=0;F<D;F++){E.push(z+C[F]/G*100+"% "+I[F].color.U(J))}L.angle=H;L.type="gradient";L.method="sigma";L.color=I[0].color.U(J);L.color2=I[D-1].color.U(J);if(L.colors){L.colors.value=E.join(",")}else{L.colors=E.join(",")}},lc:function(){var f=this.e.runtimeStyle;f.backgroundImage="url(about:blank)";f.backgroundColor="transparent"},m:function(){c.u.m.call(this);var f=this.e.runtimeStyle;f.backgroundImage=f.backgroundColor=""}});c.Gc=c.u.R({N:4,Ya:"border",Q:function(){var f=this.g;return f.w.H()||f.G.H()},i:function(){var f=this.g;return f.G.i()&&!f.q.i()&&f.w.i()},V:function(){var r=this.e,q=this.g.w.j(),p=this.s.o(),o=p.h;p=p.f;var n,m,f,k,l;if(q){this.mc();q=this.wd(2);k=0;for(l=q.length;k<l;k++){f=q[k];n=this.Aa("borderPiece"+k,f.stroke?"stroke":"fill",this.I());n.coordsize=o*2+","+p*2;n.coordorigin="1,1";n.path=f.path;m=n.style;m.width=o;m.height=p;n.filled=!!f.fill;n.stroked=!!f.stroke;if(f.stroke){n=n.stroke;n.weight=f.Qb+"px";n.color=f.color.U(r);n.dashstyle=f.stroke==="dashed"?"2 2":f.stroke==="dotted"?"1 1":"solid";n.linestyle=f.stroke==="double"&&f.Qb>2?"ThinThin":"Single"}else{n.fill.color=f.fill.U(r)}}for(;this.vb("borderPiece"+k++);){}}},wd:function(L){var K=this.e,J,I,H,G=this.g.w,D=[],E,F,C,z,A=Math.round,y,w,o;if(G.i()){J=G.j();G=J.J;w=J.Zd;o=J.gd;if(J.ee&&J.$d&&J.hd){if(o.t.fa()>0){J=G.t.a(K);C=J/2;D.push({path:this.ya({Jb:C,Ib:C,tb:C,Db:C},L),stroke:w.t,color:o.t,Qb:J})}}else{L=L||1;J=this.s.o();I=J.h;H=J.f;J=A(G.t.a(K));C=A(G.r.a(K));z=A(G.b.a(K));K=A(G.l.a(K));var f={t:J,r:C,b:z,l:K};K=this.g.G;if(K.i()){y=this.kc(K.j())}E=Math.floor;F=Math.ceil;var B=function(k,j){return y?y[k][j]:0},x=function(m,r,q,p,n,l){var s=B("x",m),j=B("y",m),k=m.charAt(1)==="r";m=m.charAt(0)==="b";return s>0&&j>0?(l?"al":"ae")+(k?F(I-s):E(s))*L+","+(m?F(H-j):E(j))*L+","+(E(s)-r)*L+","+(E(j)-q)*L+","+p*65535+","+2949075*(n?1:-1):(l?"m":"l")+(k?I-r:r)*L+","+(m?H-q:q)*L},u=function(m,k,j,n){var l=m==="t"?E(B("x","tl"))*L+","+F(k)*L:m==="r"?F(I-k)*L+","+E(B("y","tr"))*L:m==="b"?F(I-B("x","br"))*L+","+E(H-k)*L:E(k)*L+","+F(H-B("y","bl"))*L;m=m==="t"?F(I-B("x","tr"))*L+","+F(k)*L:m==="r"?F(I-k)*L+","+F(H-B("y","br"))*L:m==="b"?E(B("x","bl"))*L+","+E(H-k)*L:E(k)*L+","+E(B("y","tl"))*L;return j?(n?"m"+m:"")+"l"+l:(n?"m"+l:"")+"l"+m};K=function(m,r,q,p,n,l){var t=m==="l"||m==="r",j=f[m],k,s;if(j>0&&w[m]!=="none"&&o[m].fa()>0){k=f[t?m:r];r=f[t?r:m];s=f[t?m:q];q=f[t?q:m];if(w[m]==="dashed"||w[m]==="dotted"){D.push({path:x(p,k,r,l+45,0,1)+x(p,0,0,l,1,0),fill:o[m]});D.push({path:u(m,j/2,0,1),stroke:w[m],Qb:j,color:o[m]});D.push({path:x(n,s,q,l,0,1)+x(n,0,0,l-45,1,0),fill:o[m]})}else{D.push({path:x(p,k,r,l+45,0,1)+u(m,j,0,0)+x(n,s,q,l,0,0)+(w[m]==="double"&&j>2?x(n,s-E(s/3),q-E(q/3),l-45,1,0)+u(m,F(j/3*2),1,0)+x(p,k-E(k/3),r-E(r/3),l,1,0)+"x "+x(p,E(k/3),E(r/3),l+45,0,1)+u(m,E(j/3),1,0)+x(n,E(s/3),E(q/3),l,0,0):"")+x(n,0,0,l-45,1,0)+u(m,0,1,0)+x(p,0,0,l,1,0),fill:o[m]})}}};K("t","l","r","tl","tr",90);K("r","t","b","tr","br",0);K("b","r","l","br","bl",-90);K("l","b","t","bl","tl",-180)}}return D},m:function(){if(this.ec||!this.g.q.i()){this.e.runtimeStyle.borderColor=""}c.u.m.call(this)}});c.Tb=c.u.R({N:5,Md:["t","tr","r","br","b","bl","l","tl","c"],Q:function(){return this.g.q.H()},i:function(){return this.g.q.i()},V:function(){this.I();var j=this.g.q.j(),f=this.g.w.j(),m=this.s.o(),l=this.e,k=this.uc;c.p.Rb(j.src,function(D){function A(q,t,p,n,v){q=k[q].style;var r=Math.max;q.width=r(t,0);q.height=r(p,0);q.left=n;q.top=v}function B(q,r,p){for(var n=0,t=q.length;n<t;n++){k[q[n]].imagedata[r]=p}}var C=m.h,z=m.f,w=c.n("0"),x=j.J||(f?f.J:{t:w,r:w,b:w,l:w});w=x.t.a(l);var u=x.r.a(l),o=x.b.a(l);x=x.l.a(l);var F=j.slice,E=F.t.a(l),y=F.r.a(l),s=F.b.a(l);F=F.l.a(l);A("tl",x,w,0,0);A("t",C-x-u,w,x,0);A("tr",u,w,C-u,0);A("r",u,z-w-o,C-u,w);A("br",u,o,C-u,z-o);A("b",C-x-u,o,x,z-o);A("bl",x,o,0,z-o);A("l",x,z-w-o,0,w);A("c",C-x-u,z-w-o,x,w);B(["tl","t","tr"],"cropBottom",(D.f-E)/D.f);B(["tl","l","bl"],"cropRight",(D.h-F)/D.h);B(["bl","b","br"],"cropTop",(D.f-s)/D.f);B(["tr","r","br"],"cropLeft",(D.h-y)/D.h);B(["l","r","c"],"cropTop",E/D.f);B(["l","r","c"],"cropBottom",s/D.f);B(["t","b","c"],"cropLeft",F/D.h);B(["t","b","c"],"cropRight",y/D.h);k.c.style.display=j.fill?"":"none"},this)},I:function(){var j=this.parent.za(this.N),f,n,m,l=this.Md,k=l.length;if(!j){j=g.createElement("border-image");f=j.style;f.position="absolute";this.uc={};for(m=0;m<k;m++){n=this.uc[l[m]]=c.p.Za("rect");n.appendChild(c.p.Za("imagedata"));f=n.style;f.behavior="url(#default#VML)";f.position="absolute";f.top=f.left=0;n.imagedata.src=this.g.q.j().src;n.stroked=false;n.filled=false;j.appendChild(n)}this.parent.sb(this.N,j)}return j},Ea:function(){if(this.i()){var j=this.e,f=j.runtimeStyle,k=this.g.q.j().J;f.borderStyle="solid";if(k){f.borderTopWidth=k.t.a(j)+"px";f.borderRightWidth=k.r.a(j)+"px";f.borderBottomWidth=k.b.a(j)+"px";f.borderLeftWidth=k.l.a(j)+"px"}this.mc()}},m:function(){var f=this.e.runtimeStyle;f.borderStyle="";if(this.ec||!this.g.w.i()){f.borderColor=f.borderWidth=""}c.u.m.call(this)}});c.Hc=c.u.R({N:1,Ya:"outset-box-shadow",Q:function(){var f=this.g;return f.ga.H()||f.G.H()},i:function(){var f=this.g.ga;return f.i()&&f.j().Da[0]},V:function(){function ab(o,l,n,k,p,m,j){o=aa.Aa("shadow"+o+l,"fill",Y,T-o);l=o.fill;o.coordsize=P*2+","+Q*2;o.coordorigin="1,1";o.stroked=false;o.filled=true;l.color=p.U(Z);if(m){l.type="gradienttitle";l.color2=l.color;l.opacity=0}o.path=j;R=o.style;R.left=n;R.top=k;R.width=P;R.height=Q;return o}var aa=this,Z=this.e,Y=this.I(),X=this.g,W=X.ga.j().Da;X=X.G.j();var T=W.length,U=T,V,S=this.s.o(),P=S.h,Q=S.f;S=c.O===8?1:0;for(var N=["tl","tr","br","bl"],K,H,C,R,M,J,O,F,A,w,f,L,G,I;U--;){H=W[U];M=H.fe.a(Z);J=H.ge.a(Z);V=H.Vd.a(Z);O=H.blur.a(Z);H=H.color;F=-V-O;if(!X&&O){X=c.jb.Dc}F=this.ya({Jb:F,Ib:F,tb:F,Db:F},2,X);if(O){A=(V+O)*2+P;w=(V+O)*2+Q;f=A?O*2/A:0;L=w?O*2/w:0;if(O-V>P/2||O-V>Q/2){for(V=4;V--;){K=N[V];G=K.charAt(0)==="b";I=K.charAt(1)==="r";K=ab(U,K,M,J,H,O,F);C=K.fill;C.focusposition=(I?1-f:f)+","+(G?1-L:L);C.focussize="0,0";K.style.clip="rect("+((G?w/2:0)+S)+"px,"+(I?A:A/2)+"px,"+(G?w:w/2)+"px,"+((I?A/2:0)+S)+"px)"}}else{K=ab(U,"",M,J,H,O,F);C=K.fill;C.focusposition=f+","+L;C.focussize=1-f*2+","+(1-L*2)}}else{K=ab(U,"",M,J,H,O,F);M=H.fa();if(M<1){K.fill.opacity=M}}}}});c.Pc=c.u.R({N:6,Ya:"imgEl",Q:function(){var f=this.g;return this.e.src!==this.Xc||f.G.H()},i:function(){var f=this.g;return f.G.i()||f.C.qc()},V:function(){this.Xc=l;this.Cd();var t=this.Aa("img","fill",this.I()),s=t.fill,r=this.s.o(),q=r.h;r=r.f;var p=this.g.w.j(),o=p&&p.J;p=this.e;var l=p.src,m=Math.round,n=p.currentStyle,f=c.n;if(!o||c.O<7){o=c.n("0");o={t:o,r:o,b:o,l:o}}t.stroked=false;s.type="frame";s.src=l;s.position=(q?0.5/q:0)+","+(r?0.5/r:0);t.coordsize=q*2+","+r*2;t.coordorigin="1,1";t.path=this.ya({Jb:m(o.t.a(p)+f(n.paddingTop).a(p)),Ib:m(o.r.a(p)+f(n.paddingRight).a(p)),tb:m(o.b.a(p)+f(n.paddingBottom).a(p)),Db:m(o.l.a(p)+f(n.paddingLeft).a(p))},2);t=t.style;t.width=q;t.height=r},Cd:function(){this.e.runtimeStyle.filter="alpha(opacity=0)"},m:function(){c.u.m.call(this);this.e.runtimeStyle.filter=""}});c.Oc=c.u.R({ib:c.aa,Mb:c.aa,Nb:c.aa,Lb:c.aa,Ld:/^,+|,+$/g,Fd:/,+/g,gb:function(j,f){(this.pb||(this.pb=[]))[j]=f||void 0},ab:function(){var j=this.pb,f;if(j&&(f=j.join(",").replace(this.Ld,"").replace(this.Fd,","))!==this.Wc){this.Wc=this.e.runtimeStyle.background=f}},m:function(){this.e.runtimeStyle.background="";delete this.pb}});c.Mc=c.u.R({ua:1,Q:function(){return this.g.C.H()},i:function(){var f=this.g;return f.C.i()||f.q.i()},V:function(){var j=this.g.C.j(),f,n,m=0,l,k;if(j){f=[];if(n=j.M){for(;l=n[m++];){if(l.P==="linear-gradient"){k=this.vd(l.Wa);k=(l.Xa||c.Ka.Kc).a(this.e,k.h,k.f,k.h,k.f);f.push("url(data:image/svg+xml,"+escape(this.xd(l,k.h,k.f))+") "+this.dd(l.$)+" / "+k.h+"px "+k.f+"px "+(l.bc||"")+" "+(l.Wa||"")+" "+(l.ub||""))}else{f.push(l.Hb)}}}j.color&&f.push(j.color.Y);this.parent.gb(this.ua,f.join(","))}},dd:function(f){return f?f.X.map(function(j){return j.d}).join(" "):"0 0"},vd:function(j){var f=this.e,m=this.s.o(),l=m.h;m=m.f;var k;if(j!=="border-box"){if((k=this.g.w.j())&&(k=k.J)){l-=k.l.a(f)+k.l.a(f);m-=k.t.a(f)+k.b.a(f)}}if(j==="content-box"){j=c.n;k=f.currentStyle;l-=j(k.paddingLeft).a(f)+j(k.paddingRight).a(f);m-=j(k.paddingTop).a(f)+j(k.paddingBottom).a(f)}return{h:l,f:m}},xd:function(C,B,A){var z=this.e,y=C.ca,x=y.length,u=c.Na.gc(z,B,A,C);C=u.xc;var v=u.yc,w=u.td,s=u.ud;u=u.rc;var o,q,l,f,D;o=[];for(q=0;q<x;q++){o.push(y[q].db?y[q].db.a(z,u):q===0?0:q===x-1?u:null)}for(q=1;q<x;q++){if(o[q]===null){f=o[q-1];l=q;do{D=o[++l]}while(D===null);o[q]=f+(D-f)/(l-q+1)}}B=['<svg width="'+B+'" height="'+A+'" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g" gradientUnits="userSpaceOnUse" x1="'+C/B*100+'%" y1="'+v/A*100+'%" x2="'+w/B*100+'%" y2="'+s/A*100+'%">'];for(q=0;q<x;q++){B.push('<stop offset="'+o[q]/u+'" stop-color="'+y[q].color.U(z)+'" stop-opacity="'+y[q].color.fa()+'"/>')}B.push('</linearGradient></defs><rect width="100%" height="100%" fill="url(#g)"/></svg>');return B.join("")},m:function(){this.parent.gb(this.ua)}});c.Nc=c.u.R({T:"repeat",Sc:"stretch",Qc:"round",ua:0,Q:function(){return this.g.q.H()},i:function(){return this.g.q.i()},V:function(){var r=this,q=r.g.q.j(),p=r.g.w.j(),o=r.s.o(),n=q.repeat,m=n.f,f=n.Ob,k=r.e,l=0;c.p.Rb(q.src,function(am){function aj(C,B,y,x,v,s,u,z,D,t){L.push('<pattern patternUnits="userSpaceOnUse" id="pattern'+V+'" x="'+(m===al?C+y/2-D/2:C)+'" y="'+(f===al?B+x/2-t/2:B)+'" width="'+D+'" height="'+t+'"><svg width="'+D+'" height="'+t+'" viewBox="'+v+" "+s+" "+u+" "+z+'" preserveAspectRatio="none"><image xlink:href="'+W+'" x="0" y="0" width="'+ae+'" height="'+aa+'" /></svg></pattern>');Q.push('<rect x="'+C+'" y="'+B+'" width="'+y+'" height="'+x+'" fill="url(#pattern'+V+')" />');V++}var ak=o.h,ah=o.f,ae=am.h,aa=am.f,W=r.Dd(q.src,ae,aa),al=r.T,ag=r.Sc;am=r.Qc;var ac=Math.ceil,ai=c.n("0"),Y=q.J||(p?p.J:{t:ai,r:ai,b:ai,l:ai});ai=Y.t.a(k);var T=Y.r.a(k),R=Y.b.a(k);Y=Y.l.a(k);var N=q.slice,af=N.t.a(k),Z=N.r.a(k),ab=N.b.a(k);N=N.l.a(k);var ad=ak-Y-T,X=ah-ai-R,w=ae-N-Z,U=aa-af-ab,A=m===ag?ad:w*ai/af,j=f===ag?X:U*T/Z,S=m===ag?ad:w*R/ab;ag=f===ag?X:U*Y/N;var L=[],Q=[],V=0;if(m===am){A-=(A-(ad%A||A))/ac(ad/A);S-=(S-(ad%S||S))/ac(ad/S)}if(f===am){j-=(j-(X%j||j))/ac(X/j);ag-=(ag-(X%ag||ag))/ac(X/ag)}am=['<svg width="'+ak+'" height="'+ah+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'];aj(0,0,Y,ai,0,0,N,af,Y,ai);aj(Y,0,ad,ai,N,0,w,af,A,ai);aj(ak-T,0,T,ai,ae-Z,0,Z,af,T,ai);aj(0,ai,Y,X,0,af,N,U,Y,ag);if(q.fill){aj(Y,ai,ad,X,N,af,w,U,A||S||w,ag||j||U)}aj(ak-T,ai,T,X,ae-Z,af,Z,U,T,j);aj(0,ah-R,Y,R,0,aa-ab,N,ab,Y,R);aj(Y,ah-R,ad,R,N,aa-ab,w,ab,S,R);aj(ak-T,ah-R,T,R,ae-Z,aa-ab,Z,ab,T,R);am.push("<defs>"+L.join("\n")+"</defs>"+Q.join("\n")+"</svg>");r.parent.gb(r.ua,"url(data:image/svg+xml,"+escape(am.join(""))+") no-repeat border-box border-box");l&&r.parent.ab()},r);l=1},Dd:function(){var f={};return function(j,n,m){var l=f[j],k;if(!l){l=new Image;k=g.createElement("canvas");l.src=j;k.width=n;k.height=m;k.getContext("2d").drawImage(l,0,0);l=f[j]=k.toDataURL()}return l}}(),Ea:c.Tb.prototype.Ea,m:function(){var f=this.e.runtimeStyle;this.parent.gb(this.ua);f.borderColor=f.borderStyle=f.borderWidth=""}});c.kb=function(){function D(j,k){j.className+=" "+k}function C(j){var m=E.slice.call(arguments,1),k=m.length;setTimeout(function(){if(j){for(;k--;){D(j,m[k])}}},0)}function B(j){var m=E.slice.call(arguments,1),k=m.length;setTimeout(function(){if(j){for(;k--;){var n=m[k];n=F[n]||(F[n]=new RegExp("\\b"+n+"\\b","g"));j.className=j.className.replace(n,"")}}},0)}function A(aq){function ao(){if(!p){var I,H,G=c.ja,K=aq.currentStyle,P=K.getAttribute(y)==="true",J=K.getAttribute(w)!=="false",M=K.getAttribute(x)!=="false";r=K.getAttribute(u);r=G>7?r!=="false":r==="true";if(!t){t=1;aq.runtimeStyle.zoom=1;K=aq;for(var O=1;K=K.previousSibling;){if(K.nodeType===1){O=0;break}}O&&D(aq,l)}ab.cb();if(P&&(H=ab.o())&&(I=g.documentElement||g.body)&&(H.y>I.clientHeight||H.x>I.clientWidth||H.y+H.f<0||H.x+H.h<0)){if(!j){j=1;c.mb.ba(ao)}}else{p=1;j=t=0;c.mb.Ha(ao);if(G===9){ag={C:new c.Sb(aq),q:new c.Ub(aq),w:new c.Vb(aq)};v=[ag.C,ag.q];Z=new c.Oc(aq,ab,ag);I=[new c.Mc(aq,ab,ag,Z),new c.Nc(aq,ab,ag,Z)]}else{ag={C:new c.Sb(aq),w:new c.Vb(aq),q:new c.Ub(aq),G:new c.jb(aq),ga:new c.Ic(aq),Pb:new c.Uc(aq)};v=[ag.C,ag.w,ag.q,ag.G,ag.ga,ag.Pb];Z=new c.Rc(aq,ab,ag);I=[new c.Hc(aq,ab,ag,Z),new c.Fc(aq,ab,ag,Z),new c.Gc(aq,ab,ag,Z),new c.Tb(aq,ab,ag,Z)];aq.tagName==="IMG"&&I.push(new c.Pc(aq,ab,ag,Z));Z.ed=I}ad=[Z].concat(I);if(I=aq.currentStyle.getAttribute(c.F+"watch-ancestors")){I=parseInt(I,10);H=0;for(P=aq.parentNode;P&&(I==="NaN"||H++<I);){af(P,"onpropertychange",am);af(P,"onmouseenter",ae);af(P,"onmouseleave",ac);af(P,"onmousedown",aa);if(P.tagName in c.fc){af(P,"onfocus",aj);af(P,"onblur",al)}P=P.parentNode}}if(r){c.Oa.ba(ap);c.Oa.Rd()}ap(1)}if(!n){n=1;G<9&&af(aq,"onmove",ak);af(aq,"onresize",ak);af(aq,"onpropertychange",ai);M&&af(aq,"onmouseenter",ae);if(M||J){af(aq,"onmouseleave",ac)}J&&af(aq,"onmousedown",aa);if(aq.tagName in c.fc){af(aq,"onfocus",aj);af(aq,"onblur",al)}c.Qa.ba(ak);c.L.ba(T)}ab.hb()}}function ak(){ab&&ab.Ad()&&ap()}function ap(I){if(!k){if(p){var H,G=ad.length;ah();for(H=0;H<G;H++){ad[H].Ea()}if(I||ab.Od()){for(H=0;H<G;H++){ad[H].ib()}}if(I||ab.Td()){for(H=0;H<G;H++){ad[H].Mb()}}Z.ab();N()}else{t||ao()}}}function ai(){var I,H=ad.length,G;I=event;if(!k&&!(I&&I.propertyName in f)){if(p){ah();for(I=0;I<H;I++){ad[I].Ea()}for(I=0;I<H;I++){G=ad[I];G.Cb||G.ib();G.Q()&&G.Lb()}Z.ab();N()}else{t||ao()}}}function ae(){C(aq,s)}function ac(){B(aq,s,o)}function aa(){C(aq,o);c.lb.ba(an)}function an(){B(aq,o);c.lb.Ha(an)}function aj(){C(aq,q)}function al(){B(aq,q)}function am(){var G=event.propertyName;if(G==="className"||G==="id"){ai()}}function ah(){ab.cb();for(var G=v.length;G--;){v[G].cb()}}function N(){for(var G=v.length;G--;){v[G].hb()}ab.hb()}function af(I,H,G){I.attachEvent(H,G);m.push([I,H,G])}function T(){if(n){for(var H=m.length,G;H--;){G=m[H];G[0].detachEvent(G[1],G[2])}c.L.Ha(T);n=0;m=[]}}function L(){if(!k){var H,G;T();k=1;if(ad){H=0;for(G=ad.length;H<G;H++){ad[H].ec=1;ad[H].m()}}r&&c.Oa.Ha(ap);c.Qa.Ha(ap);ad=ab=ag=v=aq=null}}var ad,Z,ab=new a(aq),ag,v,t,p,n,m=[],j,k,r;this.Ed=ao;this.update=ap;this.m=L;this.qd=aq}var z={},y=c.F+"lazy-init",u=c.F+"poll",w=c.F+"track-active",x=c.F+"track-hover",s=c.La+"hover",o=c.La+"active",q=c.La+"focus",l=c.La+"first-child",f={background:1,bgColor:1,display:1},F={},E=[];A.yd=function(j){var k=c.p.Ba(j);return z[k]||(z[k]=new A(j))};A.m=function(j){j=c.p.Ba(j);var k=z[j];if(k){k.m();delete z[j]}};A.md=function(){var j=[],m;if(z){for(var k in z){if(z.hasOwnProperty(k)){m=z[k];j.push(m.qd);m.m()}}z={}}return j};return A}();c.supportsVML=c.zc;c.attach=function(f){c.ja<10&&c.zc&&c.kb.yd(f).Ed()};c.detach=function(f){c.kb.m(f)}}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment