mycpen-blog1 0.0.0-fybkugvhlb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/atom.xml +547 -0
- package/baidu_urls.txt +10 -0
- package/baidusitemap.xml +311 -0
- package/content.json +1 -0
- package/css/hbe.style.css +1 -0
- package/css/style.css +9 -0
- package/css/style.min.css +9 -0
- package/fonts/iconfont.eot +0 -0
- package/fonts/iconfont.ttf +0 -0
- package/fonts/iconfont.woff +0 -0
- package/img/avatar.jpg +0 -0
- package/img/favicon-2.png +0 -0
- package/img/favicon.png +0 -0
- package/js/application.js +1 -0
- package/js/application.min.js +1 -0
- package/js/hexo_resize_image.js +1 -0
- package/js/insight.js +1 -0
- package/js/jquery.min.js +2 -0
- package/js/plugin.js +37 -0
- package/js/plugin.js.map +1 -0
- package/js/plugin.min.js +1 -0
- package/js/valine.js +22 -0
- package/lib/hbe.js +1 -0
- package/package.json +19 -0
- package/sitemap.xml +1284 -0
package/js/plugin.min.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
!function(t){var e="undefined"==typeof module?t.baidu=t.baidu||{}:module.exports;e.template=function(e,n){var o=function(){if(!t.document)return i._compile(e);var n=document.getElementById(e);if(n){if(i.cache[e])return i.cache[e];var o=/^(textarea|input)$/i.test(n.nodeName)?n.value:n.innerHTML;return i._compile(o)}return i._compile(e)}(),r=i._isObject(n)?o(n):o;return o=null,r};var i=e.template;i.versions=i.versions||[],i.versions.push("1.0.6"),i.cache={},i.LEFT_DELIMITER=i.LEFT_DELIMITER||"{%",i.RIGHT_DELIMITER=i.RIGHT_DELIMITER||"%}",i.ESCAPE=!0,i._encodeHTML=function(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\\/g,"\").replace(/"/g,""").replace(/'/g,"'")},i._encodeReg=function(t){return String(t).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},i._encodeEventHTML=function(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\n/g,"\n").replace(/\\r/g,"\r")},i._compile=function(t){var e="var _template_fun_array=[];\nvar fn=(function(__data__){\nvar _template_varName='';\nfor(name in __data__){\n_template_varName+=('var '+name+'=__data__[\"'+name+'\"];');\n};\neval(_template_varName);\n_template_fun_array.push('"+i._analysisStr(t)+"');\n_template_varName=null;\n})(_template_object);\nfn = null;\nreturn _template_fun_array.join('');\n";return new Function("_template_object",e)},i._isObject=function(t){return"function"==typeof t||!(!t||"object"!=typeof t)},i._analysisStr=function(t){var e=i.LEFT_DELIMITER,n=i.RIGHT_DELIMITER,o=i._encodeReg(e),r=i._encodeReg(n);return t=String(t).replace(new RegExp("("+o+"[^"+r+"]*)//.*\n","g"),"$1").replace(new RegExp("\x3c!--.*?--\x3e","g"),"").replace(new RegExp(o+"\\*.*?\\*"+r,"g"),"").replace(new RegExp("[\\r\\t\\n]","g"),"").replace(new RegExp(o+"(?:(?!"+r+")[\\s\\S])*"+r+"|((?:(?!"+o+")[\\s\\S])+)","g"),(function(t,e){var i="";if(e)for(i=e.replace(/\\/g,"\").replace(/'/g,"'");/<[^<]*?'[^<]*?>/g.test(i);)i=i.replace(/(<[^<]*?)'([^<]*?>)/g,"$1\r$2");else i=t;return i})),t=t.replace(new RegExp("("+o+"[\\s]*?var[\\s]*?.*?[\\s]*?[^;])[\\s]*?"+r,"g"),"$1;"+n).replace(new RegExp("("+o+":?[hvu]?[\\s]*?=[\\s]*?[^;|"+r+"]*?);[\\s]*?"+r,"g"),"$1"+n).split(e).join("\t"),(t=i.ESCAPE?t.replace(new RegExp("\\t=(.*?)"+r,"g"),"',typeof($1) === 'undefined'?'':baidu.template._encodeHTML($1),'"):t.replace(new RegExp("\\t=(.*?)"+r,"g"),"',typeof($1) === 'undefined'?'':$1,'")).replace(new RegExp("\\t:h=(.*?)"+r,"g"),"',typeof($1) === 'undefined'?'':baidu.template._encodeHTML($1),'").replace(new RegExp("\\t(?::=|-)(.*?)"+r,"g"),"',typeof($1)==='undefined'?'':$1,'").replace(new RegExp("\\t:u=(.*?)"+r,"g"),"',typeof($1)==='undefined'?'':encodeURIComponent($1),'").replace(new RegExp("\\t:v=(.*?)"+r,"g"),"',typeof($1)==='undefined'?'':baidu.template._encodeEventHTML($1),'").split("\t").join("');").split(n).join("_template_fun_array.push('").split("\r").join("\\'")}}(window),function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.GeoPattern=t()}}((function(){return function t(e,i,n){function o(s,a){if(!i[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+s+"'")}var h=i[s]={exports:{}};e[s][0].call(h.exports,(function(t){var i=e[s][1][t];return o(i||t)}),h,h.exports,t,e,i,n)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e){e.exports=t("./lib/")},{"./lib/":3}],2:[function(t,e){"use strict";e.exports={hex2rgb:function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgb2hex:function(t){return"#"+["r","g","b"].map((function(e){return("0"+t[e].toString(16)).slice(-2)})).join("")},rgb2hsl:function(t){var e=t.r,i=t.g,n=t.b;e/=255,i/=255,n/=255;var o,r,s=Math.max(e,i,n),a=Math.min(e,i,n),l=(s+a)/2;if(s===a)o=r=0;else{var h=s-a;switch(r=l>.5?h/(2-s-a):h/(s+a),s){case e:o=(i-n)/h+(n>i?6:0);break;case i:o=(n-e)/h+2;break;case n:o=(e-i)/h+4}o/=6}return{h:o,s:r,l:l}},hsl2rgb:function(t){function e(t,e,i){return 0>i&&(i+=1),i>1&&(i-=1),1/6>i?t+6*(e-t)*i:.5>i?e:2/3>i?t+(e-t)*(2/3-i)*6:t}var i,n,o,r=t.h,s=t.s,a=t.l;if(0===s)i=n=o=a;else{var l=.5>a?a*(1+s):a+s-a*s,h=2*a-l;i=e(h,l,r+1/3),n=e(h,l,r),o=e(h,l,r-1/3)}return{r:Math.round(255*i),g:Math.round(255*n),b:Math.round(255*o)}},rgb2rgbString:function(t){return"rgb("+[t.r,t.g,t.b].join(",")+")"}}},{}],3:[function(t,e){!function(i){"use strict";function n(t){return function(e,i){return"object"==typeof e&&(i=e,e=null),null==e&&(e=(new Date).toString()),i||(i={}),t.call(this,e,i)}}var o=t("./pattern"),r=e.exports={generate:n((function(t,e){return new o(t,e)}))};i&&(i.fn.geopattern=n((function(t,e){return this.each((function(){var n=i(this).attr("data-title-sha");n&&(e=i.extend({hash:n},e));var o=r.generate(t,e);i(this).css("background-image",o.toDataUrl())}))})))}("undefined"!=typeof jQuery?jQuery:null)},{"./pattern":4}],4:[function(t,e){(function(i){"use strict";function n(t,e,i){return parseInt(t.substr(e,i||1),16)}function o(t,e,i,n,o){return(parseFloat(t)-e)*(o-n)/(i-e)+n}function r(t){return t%2==0?y:m}function s(t){return o(t,0,15,T,C)}function a(t){return[[t,0,t,3*t],[0,t,3*t,t]]}function l(t){return[0,0,t,t,0,t,0,0].join(",")}function h(t,e,i,n,o){var a=l(n),h=s(o[0]),c=r(o[0]),u={stroke:b,"stroke-opacity":w,"fill-opacity":h,fill:c};t.polyline(a,u).transform({translate:[e+n,i],scale:[-1,1]}),t.polyline(a,u).transform({translate:[e+n,i+2*n],scale:[1,-1]}),h=s(o[1]),c=r(o[1]),u={stroke:b,"stroke-opacity":w,"fill-opacity":h,fill:c},t.polyline(a,u).transform({translate:[e+n,i+2*n],scale:[-1,-1]}),t.polyline(a,u).transform({translate:[e+n,i],scale:[1,1]})}function c(t,e,i,n,o){var a=s(o),h=r(o),c=l(n),u={stroke:b,"stroke-opacity":w,"fill-opacity":a,fill:h};t.polyline(c,u).transform({translate:[e,i+n],scale:[1,-1]}),t.polyline(c,u).transform({translate:[e+2*n,i+n],scale:[-1,-1]}),t.polyline(c,u).transform({translate:[e,i+n],scale:[1,1]}),t.polyline(c,u).transform({translate:[e+2*n,i+n],scale:[-1,1]})}var u=t("extend"),p=t("./color"),f=t("./sha1"),d=t("./svg"),g={baseColor:"#933c3c"},v=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],m="#222",y="#ddd",b="#000",w=.02,T=.02,C=.15,k=e.exports=function(t,e){return this.opts=u({},g,e),this.hash=e.hash||f(t),this.svg=new d,this.generateBackground(),this.generatePattern(),this};k.prototype.toSvg=function(){return this.svg.toString()},k.prototype.toString=function(){return this.toSvg()},k.prototype.toBase64=function(){var t=this.toSvg();return"undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(t):new i(t).toString("base64")},k.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},k.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},k.prototype.generateBackground=function(){var t,e,i,r;this.opts.color?i=p.hex2rgb(this.opts.color):(e=o(n(this.hash,14,3),0,4095,0,359),r=n(this.hash,17),(t=p.rgb2hsl(p.hex2rgb(this.opts.baseColor))).h=(360*t.h-e+360)%360/360,t.s=r%2==0?Math.min(1,(100*t.s+r)/100):Math.max(0,(100*t.s-r)/100),i=p.hsl2rgb(t)),this.color=p.rgb2hex(i),this.svg.rect(0,0,"100%","100%",{fill:p.rgb2rgbString(i)})},k.prototype.generatePattern=function(){var t=this.opts.generator;if(t){if(v.indexOf(t)<0)throw new Error("The generator "+t+" does not exist.")}else t=v[n(this.hash,20)];return this["geo"+t.slice(0,1).toUpperCase()+t.slice(1)]()},k.prototype.geoHexagons=function(){var t,e,i,a,l,h,c,u=o(n(this.hash,0),0,15,8,60),p=u*Math.sqrt(3),f=2*u,d=function(t){var e=t,i=e/2,n=Math.sin(60*Math.PI/180)*e;return[0,n,i,0,i+e,0,2*e,n,i+e,2*n,i,2*n,0,n].join(",")}(u);for(this.svg.setWidth(3*f+3*u),this.svg.setHeight(6*p),e=0,c=0;6>c;c++)for(h=0;6>h;h++)t=h%2==0?c*p:c*p+p/2,i=s(l=n(this.hash,e)),a={fill:r(l),"fill-opacity":i,stroke:b,"stroke-opacity":w},this.svg.polyline(d,a).transform({translate:[h*u*1.5-f/2,t-p/2]}),0===h&&this.svg.polyline(d,a).transform({translate:[6*u*1.5-f/2,t-p/2]}),0===c&&(t=h%2==0?6*p:6*p+p/2,this.svg.polyline(d,a).transform({translate:[h*u*1.5-f/2,t-p/2]})),0===h&&0===c&&this.svg.polyline(d,a).transform({translate:[6*u*1.5-f/2,5*p+p/2]}),e++},k.prototype.geoSineWaves=function(){var t,e,i,a,l,h,c=Math.floor(o(n(this.hash,0),0,15,100,400)),u=Math.floor(o(n(this.hash,1),0,15,30,100)),p=Math.floor(o(n(this.hash,2),0,15,3,30));for(this.svg.setWidth(c),this.svg.setHeight(36*p),t=0;36>t;t++)e=s(l=n(this.hash,t)),a={fill:"none",stroke:r(l),opacity:e,"stroke-width":p+"px"},i="M0 "+u+" C "+(h=c/4*.7)+" 0, "+(c/2-h)+" 0, "+c/2+" "+u+" S "+(c-h)+" "+2*u+", "+c+" "+u+" S "+(1.5*c-h)+" 0, "+1.5*c+", "+u,this.svg.path(i,a).transform({translate:[-c/4,p*t-1.5*u]}),this.svg.path(i,a).transform({translate:[-c/4,p*t-1.5*u+36*p]})},k.prototype.geoChevrons=function(){var t,e,i,a,l,h,c,u=o(n(this.hash,0),0,15,30,80),p=o(n(this.hash,0),0,15,30,80),f=function(t,e){var i=.66*e;return[[0,0,t/2,e-i,t/2,e,0,i,0,0],[t/2,e-i,t,0,t,i,t/2,e,t/2,e-i]].map((function(t){return t.join(",")}))}(u,p);for(this.svg.setWidth(6*u),this.svg.setHeight(6*p*.66),e=0,c=0;6>c;c++)for(h=0;6>h;h++)i=s(l=n(this.hash,e)),t=r(l),a={stroke:b,"stroke-opacity":w,fill:t,"fill-opacity":i,"stroke-width":1},this.svg.group(a).transform({translate:[h*u,c*p*.66-p/2]}).polyline(f).end(),0===c&&this.svg.group(a).transform({translate:[h*u,6*p*.66-p/2]}).polyline(f).end(),e+=1},k.prototype.geoPlusSigns=function(){var t,e,i,l,h,c,u,p=o(n(this.hash,0),0,15,10,25),f=3*p,d=a(p);for(this.svg.setWidth(12*p),this.svg.setHeight(12*p),e=0,u=0;6>u;u++)for(c=0;6>c;c++)i=s(h=n(this.hash,e)),t=u%2==0?0:1,l={fill:r(h),stroke:b,"stroke-opacity":w,"fill-opacity":i},this.svg.group(l).transform({translate:[c*f-c*p+t*p-p,u*f-u*p-f/2]}).rect(d).end(),0===c&&this.svg.group(l).transform({translate:[4*f-c*p+t*p-p,u*f-u*p-f/2]}).rect(d).end(),0===u&&this.svg.group(l).transform({translate:[c*f-c*p+t*p-p,4*f-u*p-f/2]}).rect(d).end(),0===c&&0===u&&this.svg.group(l).transform({translate:[4*f-c*p+t*p-p,4*f-u*p-f/2]}).rect(d).end(),e++},k.prototype.geoXes=function(){var t,e,i,l,h,c,u,p=o(n(this.hash,0),0,15,10,25),f=a(p),d=3*p*.943;for(this.svg.setWidth(3*d),this.svg.setHeight(3*d),e=0,u=0;6>u;u++)for(c=0;6>c;c++)i=s(h=n(this.hash,e)),t=c%2==0?u*d-.5*d:u*d-.5*d+d/4,l={fill:r(h),opacity:i},this.svg.group(l).transform({translate:[c*d/2-d/2,t-u*d/2],rotate:[45,d/2,d/2]}).rect(f).end(),0===c&&this.svg.group(l).transform({translate:[6*d/2-d/2,t-u*d/2],rotate:[45,d/2,d/2]}).rect(f).end(),0===u&&(t=c%2==0?6*d-d/2:6*d-d/2+d/4,this.svg.group(l).transform({translate:[c*d/2-d/2,t-6*d/2],rotate:[45,d/2,d/2]}).rect(f).end()),5===u&&this.svg.group(l).transform({translate:[c*d/2-d/2,t-11*d/2],rotate:[45,d/2,d/2]}).rect(f).end(),0===c&&0===u&&this.svg.group(l).transform({translate:[6*d/2-d/2,t-6*d/2],rotate:[45,d/2,d/2]}).rect(f).end(),e++},k.prototype.geoOverlappingCircles=function(){var t,e,i,a,l,h,c=o(n(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*c),this.svg.setHeight(6*c),t=0,h=0;6>h;h++)for(l=0;6>l;l++)e=s(a=n(this.hash,t)),i={fill:r(a),opacity:e},this.svg.circle(l*c,h*c,c,i),0===l&&this.svg.circle(6*c,h*c,c,i),0===h&&this.svg.circle(l*c,6*c,c,i),0===l&&0===h&&this.svg.circle(6*c,6*c,c,i),t++},k.prototype.geoOctogons=function(){var t,e,i,a,l,h,c=o(n(this.hash,0),0,15,10,60),u=function(t){var e=.33*t;return[e,0,t-e,0,t,e,t,t-e,t-e,t,e,t,0,t-e,0,e,e,0].join(",")}(c);for(this.svg.setWidth(6*c),this.svg.setHeight(6*c),e=0,h=0;6>h;h++)for(l=0;6>l;l++)i=s(a=n(this.hash,e)),t=r(a),this.svg.polyline(u,{fill:t,"fill-opacity":i,stroke:b,"stroke-opacity":w}).transform({translate:[l*c,h*c]}),e+=1},k.prototype.geoSquares=function(){var t,e,i,a,l,h,c=o(n(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*c),this.svg.setHeight(6*c),e=0,h=0;6>h;h++)for(l=0;6>l;l++)i=s(a=n(this.hash,e)),t=r(a),this.svg.rect(l*c,h*c,c,c,{fill:t,"fill-opacity":i,stroke:b,"stroke-opacity":w}),e+=1},k.prototype.geoConcentricCircles=function(){var t,e,i,a,l,h,c=o(n(this.hash,0),0,15,10,60),u=c/5;for(this.svg.setWidth(6*(c+u)),this.svg.setHeight(6*(c+u)),e=0,h=0;6>h;h++)for(l=0;6>l;l++)i=s(a=n(this.hash,e)),t=r(a),this.svg.circle(l*c+l*u+(c+u)/2,h*c+h*u+(c+u)/2,c/2,{fill:"none",stroke:t,opacity:i,"stroke-width":u+"px"}),i=s(a=n(this.hash,39-e)),t=r(a),this.svg.circle(l*c+l*u+(c+u)/2,h*c+h*u+(c+u)/2,c/4,{fill:t,"fill-opacity":i}),e+=1},k.prototype.geoOverlappingRings=function(){var t,e,i,a,l,h,c=o(n(this.hash,0),0,15,10,60),u=c/4;for(this.svg.setWidth(6*c),this.svg.setHeight(6*c),t=0,h=0;6>h;h++)for(l=0;6>l;l++)e=s(a=n(this.hash,t)),i={fill:"none",stroke:r(a),opacity:e,"stroke-width":u+"px"},this.svg.circle(l*c,h*c,c-u/2,i),0===l&&this.svg.circle(6*c,h*c,c-u/2,i),0===h&&this.svg.circle(l*c,6*c,c-u/2,i),0===l&&0===h&&this.svg.circle(6*c,6*c,c-u/2,i),t+=1},k.prototype.geoTriangles=function(){var t,e,i,a,l,h,c,u=o(n(this.hash,0),0,15,15,80),p=u/2*Math.sqrt(3),f=function(t,e){var i=t/2;return[i,0,t,e,0,e,i,0].join(",")}(u,p);for(this.svg.setWidth(3*u),this.svg.setHeight(6*p),t=0,c=0;6>c;c++)for(h=0;6>h;h++)e=s(l=n(this.hash,t)),a={fill:r(l),"fill-opacity":e,stroke:b,"stroke-opacity":w},i=c%2==0?h%2==0?180:0:h%2!=0?180:0,this.svg.polyline(f,a).transform({translate:[h*u*.5-u/2,p*c],rotate:[i,u/2,p/2]}),0===h&&this.svg.polyline(f,a).transform({translate:[6*u*.5-u/2,p*c],rotate:[i,u/2,p/2]}),t+=1},k.prototype.geoDiamonds=function(){var t,e,i,a,l,h,c,u=o(n(this.hash,0),0,15,10,50),p=o(n(this.hash,1),0,15,10,50),f=function(t,e){return[t/2,0,t,e/2,t/2,e,0,e/2].join(",")}(u,p);for(this.svg.setWidth(6*u),this.svg.setHeight(3*p),e=0,c=0;6>c;c++)for(h=0;6>h;h++)i=s(l=n(this.hash,e)),a={fill:r(l),"fill-opacity":i,stroke:b,"stroke-opacity":w},t=c%2==0?0:u/2,this.svg.polyline(f,a).transform({translate:[h*u-u/2+t,p/2*c-p/2]}),0===h&&this.svg.polyline(f,a).transform({translate:[6*u-u/2+t,p/2*c-p/2]}),0===c&&this.svg.polyline(f,a).transform({translate:[h*u-u/2+t,p/2*6-p/2]}),0===h&&0===c&&this.svg.polyline(f,a).transform({translate:[6*u-u/2+t,p/2*6-p/2]}),e+=1},k.prototype.geoNestedSquares=function(){var t,e,i,a,l,h,c=o(n(this.hash,0),0,15,4,12),u=7*c;for(this.svg.setWidth(6*(u+c)+6*c),this.svg.setHeight(6*(u+c)+6*c),t=0,h=0;6>h;h++)for(l=0;6>l;l++)e=s(a=n(this.hash,t)),i={fill:"none",stroke:r(a),opacity:e,"stroke-width":c+"px"},this.svg.rect(l*u+l*c*2+c/2,h*u+h*c*2+c/2,u,u,i),e=s(a=n(this.hash,39-t)),i={fill:"none",stroke:r(a),opacity:e,"stroke-width":c+"px"},this.svg.rect(l*u+l*c*2+c/2+2*c,h*u+h*c*2+c/2+2*c,3*c,3*c,i),t+=1},k.prototype.geoMosaicSquares=function(){var t,e,i,r=o(n(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),t=0,i=0;4>i;i++)for(e=0;4>e;e++)e%2==0?i%2==0?c(this.svg,e*r*2,i*r*2,r,n(this.hash,t)):h(this.svg,e*r*2,i*r*2,r,[n(this.hash,t),n(this.hash,t+1)]):i%2==0?h(this.svg,e*r*2,i*r*2,r,[n(this.hash,t),n(this.hash,t+1)]):c(this.svg,e*r*2,i*r*2,r,n(this.hash,t)),t+=1},k.prototype.geoPlaid=function(){var t,e,i,o,a,l,h=0,c=0;for(e=0;36>e;)h+=n(this.hash,e)+5,i=s(l=n(this.hash,e+1)),t=r(l),o=l+5,this.svg.rect(0,h,"100%",o,{opacity:i,fill:t}),h+=o,e+=2;for(e=0;36>e;)c+=n(this.hash,e)+5,i=s(l=n(this.hash,e+1)),t=r(l),a=l+5,this.svg.rect(c,0,a,"100%",{opacity:i,fill:t}),c+=a,e+=2;this.svg.setWidth(c),this.svg.setHeight(h)},k.prototype.geoTessellation=function(){var t,e,i,a,l,h=o(n(this.hash,0),0,15,5,40),c=h*Math.sqrt(3),u=2*h,p=h/2*Math.sqrt(3),f=function(t,e){return[0,0,e,t/2,0,t,0,0].join(",")}(h,p),d=3*h+2*p,g=2*c+2*h;for(this.svg.setWidth(d),this.svg.setHeight(g),e=0;20>e;e++)switch(l=n(this.hash,e),i=s(l),t=r(l),a={stroke:b,"stroke-opacity":w,fill:t,"fill-opacity":i,"stroke-width":1},e){case 0:this.svg.rect(-h/2,-h/2,h,h,a),this.svg.rect(d-h/2,-h/2,h,h,a),this.svg.rect(-h/2,g-h/2,h,h,a),this.svg.rect(d-h/2,g-h/2,h,h,a);break;case 1:this.svg.rect(u/2+p,c/2,h,h,a);break;case 2:this.svg.rect(-h/2,g/2-h/2,h,h,a),this.svg.rect(d-h/2,g/2-h/2,h,h,a);break;case 3:this.svg.rect(u/2+p,1.5*c+h,h,h,a);break;case 4:this.svg.polyline(f,a).transform({translate:[h/2,-h/2],rotate:[0,h/2,p/2]}),this.svg.polyline(f,a).transform({translate:[h/2,g- -h/2],rotate:[0,h/2,p/2],scale:[1,-1]});break;case 5:this.svg.polyline(f,a).transform({translate:[d-h/2,-h/2],rotate:[0,h/2,p/2],scale:[-1,1]}),this.svg.polyline(f,a).transform({translate:[d-h/2,g+h/2],rotate:[0,h/2,p/2],scale:[-1,-1]});break;case 6:this.svg.polyline(f,a).transform({translate:[d/2+h/2,c/2]});break;case 7:this.svg.polyline(f,a).transform({translate:[d-d/2-h/2,c/2],scale:[-1,1]});break;case 8:this.svg.polyline(f,a).transform({translate:[d/2+h/2,g-c/2],scale:[1,-1]});break;case 9:this.svg.polyline(f,a).transform({translate:[d-d/2-h/2,g-c/2],scale:[-1,-1]});break;case 10:this.svg.polyline(f,a).transform({translate:[h/2,g/2-h/2]});break;case 11:this.svg.polyline(f,a).transform({translate:[d-h/2,g/2-h/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,h,h,a).transform({translate:[h/2,h/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,h,h,a).transform({scale:[-1,1],translate:[h/2-d,h/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,h,h,a).transform({translate:[h/2,g/2-h/2-h],rotate:[30,0,h]});break;case 15:this.svg.rect(0,0,h,h,a).transform({scale:[-1,1],translate:[h/2-d,g/2-h/2-h],rotate:[30,0,h]});break;case 16:this.svg.rect(0,0,h,h,a).transform({scale:[1,-1],translate:[h/2,g/2-g-h/2-h],rotate:[30,0,h]});break;case 17:this.svg.rect(0,0,h,h,a).transform({scale:[-1,-1],translate:[h/2-d,g/2-g-h/2-h],rotate:[30,0,h]});break;case 18:this.svg.rect(0,0,h,h,a).transform({scale:[1,-1],translate:[h/2,h/2-g],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,h,h,a).transform({scale:[-1,-1],translate:[h/2-d,h/2-g],rotate:[-30,0,0]})}}}).call(this,t("buffer").Buffer)},{"./color":2,"./sha1":5,"./svg":6,buffer:8,extend:9}],5:[function(t,e){"use strict";function i(){function t(){for(var t=16;80>t;t++){var e=l[t-3]^l[t-8]^l[t-14]^l[t-16];l[t]=e<<1|e>>>31}var i,c,u=n,p=o,f=r,d=s,g=a;for(t=0;80>t;t++){20>t?(i=d^p&(f^d),c=1518500249):40>t?(i=p^f^d,c=1859775393):60>t?(i=p&f|d&(p|f),c=2400959708):(i=p^f^d,c=3395469782);var v=(u<<5|u>>>27)+i+g+c+(0|l[t]);g=d,d=f,f=p<<30|p>>>2,p=u,u=v}for(n=n+u|0,o=o+p|0,r=r+f|0,s=s+d|0,a=a+g|0,h=0,t=0;16>t;t++)l[t]=0}function e(e){l[h]|=(255&e)<<c,c?c-=8:(h++,c=24),16===h&&t()}function i(t){for(var e="",i=28;i>=0;i-=4)e+=(t>>i&15).toString(16);return e}var n=1732584193,o=4023233417,r=2562383102,s=271733878,a=3285377520,l=new Uint32Array(80),h=0,c=24,u=0;return{update:function(t){if("string"==typeof t)return function(t){var i=t.length;u+=8*i;for(var n=0;i>n;n++)e(t.charCodeAt(n))}(t);var i=t.length;u+=8*i;for(var n=0;i>n;n++)e(t[n])},digest:function(){e(128),(h>14||14===h&&24>c)&&t(),h=14,c=24,e(0),e(0),e(u>0xffffffffff?u/1099511627776:0),e(u>4294967295?u/4294967296:0);for(var l=24;l>=0;l-=8)e(u>>l);return i(n)+i(o)+i(r)+i(s)+i(a)}}}e.exports=function(t){if(void 0===t)return i();var e=i();return e.update(t),e.digest()}},{}],6:[function(t,e){"use strict";function i(){return this.width=100,this.height=100,this.svg=new o("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}var n=t("extend"),o=t("./xml");e.exports=i,i.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},i.prototype.end=function(){return this.context.pop(),this},i.prototype.currentNode=function(){var t=this.currentContext();return t.lastChild||t},i.prototype.transform=function(t){return this.currentNode().setAttribute("transform",Object.keys(t).map((function(e){return e+"("+t[e].join(",")+")"})).join(" ")),this},i.prototype.setAttributes=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))},i.prototype.setWidth=function(t){this.svg.setAttribute("width",Math.floor(t))},i.prototype.setHeight=function(t){this.svg.setAttribute("height",Math.floor(t))},i.prototype.toString=function(){return this.svg.toString()},i.prototype.rect=function(t,e,i,r,s){var a=this;if(Array.isArray(t))return t.forEach((function(t){a.rect.apply(a,t.concat(s))})),this;var l=new o("rect");return this.currentContext().appendChild(l),this.setAttributes(l,n({x:t,y:e,width:i,height:r},s)),this},i.prototype.circle=function(t,e,i,r){var s=new o("circle");return this.currentContext().appendChild(s),this.setAttributes(s,n({cx:t,cy:e,r:i},r)),this},i.prototype.path=function(t,e){var i=new o("path");return this.currentContext().appendChild(i),this.setAttributes(i,n({d:t},e)),this},i.prototype.polyline=function(t,e){var i=this;if(Array.isArray(t))return t.forEach((function(t){i.polyline(t,e)})),this;var r=new o("polyline");return this.currentContext().appendChild(r),this.setAttributes(r,n({points:t},e)),this},i.prototype.group=function(t){var e=new o("g");return this.currentContext().appendChild(e),this.context.push(e),this.setAttributes(e,n({},t)),this}},{"./xml":7,extend:9}],7:[function(t,e){"use strict";var i=e.exports=function(t){return this instanceof i?(this.tagName=t,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new i(t)};i.prototype.appendChild=function(t){return this.children.push(t),this.lastChild=t,this},i.prototype.setAttribute=function(t,e){return this.attributes[t]=e,this},i.prototype.toString=function(){var t=this;return["<",t.tagName,Object.keys(t.attributes).map((function(e){return[" ",e,'="',t.attributes[e],'"'].join("")})).join(""),">",t.children.map((function(t){return t.toString()})).join(""),"</",t.tagName,">"].join("")}},{}],8:[function(){},{}],9:[function(t,e){function i(t){if(!t||"[object Object]"!==o.call(t)||t.nodeType||t.setInterval)return!1;var e,i=n.call(t,"constructor"),r=n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!r)return!1;for(e in t);return void 0===e||n.call(t,e)}var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function t(){var e,n,o,r,s,a,l=arguments[0]||{},h=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},h=2),"object"!=typeof l&&"function"!=typeof l&&(l={});c>h;h++)if(null!=(e=arguments[h]))for(n in e)o=l[n],l!==(r=e[n])&&(u&&r&&(i(r)||(s=Array.isArray(r)))?(s?(s=!1,a=o&&Array.isArray(o)?o:[]):a=o&&i(o)?o:{},l[n]=t(u,a,r)):void 0!==r&&(l[n]=r));return l}},{}]},{},[1])(1)})),function(){"use strict";if(navigator.userAgent.match(/IEMobile\/10\.0/)){var t=document.createElement("style");t.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(t)}}(),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){function e(e,i){var o=this;this.options=t.extend({},n,i),o.navigation=t(e),o.document=t(document),o.window=t(window),""==this.options.parent&&(this.options.parent=o.navigation.parent()),o.nav_open=!1,o.parent_full_width=0,o.radCoef=180/Math.PI,o.sTouch={x:0,y:0},o.cTouch={x:0,y:0},o.sTime=0,o.nav_position=0,o.percent_open=0,o.nav_moving=!1,o.init()}var i="okayNav",n={parent:"",toggle_icon_class:"okayNav__menu-toggle",toggle_icon_content:"<span /><span /><span />",align_right:!0,swipe_enabled:!0,threshold:50,resize_delay:10,beforeOpen:function(){},afterOpen:function(){},beforeClose:function(){},afterClose:function(){},itemHidden:function(){},itemDisplayed:function(){}};t.extend(e.prototype,{init:function(){var e=this;t("body").addClass("okayNav-loaded"),e.navigation.addClass("okayNav loaded").children("ul").addClass("okayNav__nav--visible"),e.options.align_right?e.navigation.append('<ul class="okayNav__nav--invisible transition-enabled nav-right" />').append('<a href="#" class="'+e.options.toggle_icon_class+' okay-invisible">'+e.options.toggle_icon_content+"</a>"):e.navigation.prepend('<ul class="okayNav__nav--invisible transition-enabled nav-left" />').prepend('<a href="#" class="'+e.options.toggle_icon_class+' okay-invisible">'+e.options.toggle_icon_content+"</a>"),e.nav_visible=e.navigation.children(".okayNav__nav--visible"),e.nav_invisible=e.navigation.children(".okayNav__nav--invisible"),e.toggle_icon=e.navigation.children("."+e.options.toggle_icon_class),e.toggle_icon_width=e.toggle_icon.outerWidth(!0),e.default_width=e.getChildrenWidth(e.navigation),e.parent_full_width=t(e.options.parent).outerWidth(!0),e.last_visible_child_width=0,e.initEvents(),e.nav_visible.contents().filter((function(){return this.nodeType=Node.TEXT_NODE&&!1===/\S/.test(this.nodeValue)})).remove(),1==e.options.swipe_enabled&&e.initSwipeEvents()},initEvents:function(){var e=this;e.document.on("click.okayNav",(function(i){var n=t(i.target);!0===e.nav_open&&0==n.closest(".okayNav").length&&e.closeInvisibleNav(),i.target===e.toggle_icon.get(0)&&(i.preventDefault(),e.toggleInvisibleNav())}));var i=e._debounce((function(){e.recalcNav()}),e.options.resize_delay);e.window.on("load.okayNav resize.okayNav",i)},initSwipeEvents:function(){var e=this;e.document.on("touchstart.okayNav",(function(i){if(e.nav_invisible.removeClass("transition-enabled"),1==i.originalEvent.touches.length){var n=i.originalEvent.touches[0];(n.pageX<25&&0==e.options.align_right||n.pageX>t(e.options.parent).outerWidth(!0)-25&&1==e.options.align_right||!0===e.nav_open)&&(e.sTouch.x=e.cTouch.x=n.pageX,e.sTouch.y=e.cTouch.y=n.pageY,e.sTime=Date.now())}})).on("touchmove.okayNav",(function(t){var i=t.originalEvent.touches[0];e._triggerMove(i.pageX,i.pageY),e.nav_moving=!0})).on("touchend.okayNav",(function(t){e.sTouch={x:0,y:0},e.cTouch={x:0,y:0},e.sTime=0,e.percent_open>100-e.options.threshold?(e.nav_position=0,e.closeInvisibleNav()):1==e.nav_moving&&(e.nav_position=e.nav_invisible.width(),e.openInvisibleNav()),e.nav_moving=!1,e.nav_invisible.addClass("transition-enabled")}))},_getDirection:function(t){return this.options.align_right?t>0?-1:1:t<0?-1:1},_triggerMove:function(t,e){var i=this;i.cTouch.x=t,i.cTouch.y=e;Date.now();var n=i.cTouch.x-i.sTouch.x,o=i.cTouch.y-i.sTouch.y,r=o*o,s=Math.sqrt(n*n+r),a=Math.sqrt(r),l=Math.asin(Math.sin(a/s))*i.radCoef;if(i.sTime,i.sTouch.x=t,i.sTouch.y=e,l<20){var h=i._getDirection(n),c=i.nav_position+h*s,u=i.nav_invisible.width(),p=0;c<0?p=-c:c>u&&(p=u-c);var f=(u-(i.nav_position+h*s+p))/u*100;i.nav_position+=h*s+p,i.percent_open=f}},getParent:function(){return this.options.parent},getVisibleNav:function(){return this.nav_visible},getInvisibleNav:function(){return this.nav_invisible},getNavToggleIcon:function(){return this.toggle_icon},_debounce:function(t,e,i){var n;return function(){var o=this,r=arguments,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(o,r)}),e),s&&t.apply(o,r)}},openInvisibleNav:function(){var t=this;t.options.enable_swipe||t.options.beforeOpen.call(),t.toggle_icon.addClass("icon--active"),t.nav_invisible.addClass("nav-open"),t.nav_open=!0,t.options.afterOpen.call()},closeInvisibleNav:function(){var t=this;t.options.enable_swipe||t.options.beforeClose.call(),t.toggle_icon.removeClass("icon--active"),t.nav_invisible.removeClass("nav-open"),t.nav_open=!1,t.options.afterClose.call()},toggleInvisibleNav:function(){var t=this;t.nav_open?t.closeInvisibleNav():t.openInvisibleNav()},getChildrenWidth:function(e){for(var i=0,n=t(e).children(),o=0;o<n.length;o++)i+=t(n[o]).outerWidth(!0);return i},getVisibleItemCount:function(){return t("li",this.nav_visible).length},getHiddenItemCount:function(){return t("li",this.nav_invisible).length},recalcNav:function(){var e=this,i=t(e.options.parent).outerWidth(!0),n=e.getChildrenWidth(e.options.parent),o=e.navigation.outerWidth(!0),r=e.getVisibleItemCount(),s=e.nav_visible.outerWidth(!0)+e.toggle_icon_width,a=n+e.last_visible_child_width+e.toggle_icon_width;return i>n-o+e.default_width?(e._expandAllItems(),void e.toggle_icon.addClass("okay-invisible")):(r>0&&o<=s&&i<=a&&e._collapseNavItem(),i>a+e.toggle_icon_width+15&&e._expandNavItem(),void(0==e.getHiddenItemCount()?e.toggle_icon.addClass("okay-invisible"):e.toggle_icon.removeClass("okay-invisible")))},_collapseNavItem:function(){var e=this,i=t("li:last-child",e.nav_visible);e.last_visible_child_width=i.outerWidth(!0),e.document.trigger("okayNav:collapseItem",i),i.detach().prependTo(e.nav_invisible),e.options.itemHidden.call(),e.recalcNav()},_expandNavItem:function(){var e=this,i=t("li:first-child",e.nav_invisible);e.document.trigger("okayNav:expandItem",i),i.detach().appendTo(e.nav_visible),e.options.itemDisplayed.call()},_expandAllItems:function(){var e=this;t("li",e.nav_invisible).detach().appendTo(e.nav_visible),e.options.itemDisplayed.call()},_collapseAllItems:function(){var e=this;t("li",e.nav_visible).detach().appendTo(e.nav_invisible),e.options.itemHidden.call()},destroy:function(){var e=this;t("li",e.nav_invisible).appendTo(e.nav_visible),e.nav_invisible.remove(),e.nav_visible.removeClass("okayNav__nav--visible"),e.toggle_icon.remove(),e.document.unbind(".okayNav"),e.window.unbind(".okayNav")}}),t.fn[i]=function(n){var o,r=arguments;return void 0===n||"object"==typeof n?this.each((function(){t.data(this,"plugin_"+i)||t.data(this,"plugin_"+i,new e(this,n))})):"string"==typeof n&&"_"!==n[0]&&"init"!==n?(this.each((function(){var s=t.data(this,"plugin_"+i);s instanceof e&&"function"==typeof s[n]&&(o=s[n].apply(s,Array.prototype.slice.call(r,1))),"destroy"===n&&t.data(this,"plugin_"+i,null)})),void 0!==o?o:this):void 0}})),function(t){"use strict";function e(e,i,n,o){var r=t(n,i);r.addData(e),r.make(),o=o||0;var s=r.getModuleCount(),a=r.getModuleCount()+2*o;this.text=e,this.level=i,this.version=n,this.moduleCount=a,this.isDark=function(t,e){return e-=o,!(0>(t-=o)||t>=s||0>e||e>=s)&&r.isDark(t,e)},this.addBlank=function(t,e,i,n){var o=this.isDark,r=1/a;this.isDark=function(s,a){var l=a*r,h=s*r,c=l+r,u=h+r;return o(s,a)&&(t>c||l>i||e>u||h>n)}}}function i(t,i,n,o,r){n=Math.max(1,n||1),o=Math.min(40,o||40);for(var s=n;o>=s;s+=1)try{return new e(t,i,s,r)}catch(t){}}function n(t,e,i){c(i.background).is("img")?e.drawImage(i.background,0,0,i.size,i.size):i.background&&(e.fillStyle=i.background,e.fillRect(i.left,i.top,i.size,i.size));var n=i.mode;1===n||2===n?function(t,e,i){var n=i.size,o="bold "+i.mSize*n+"px "+i.fontname,r=c("<canvas/>")[0].getContext("2d");r.font=o;var s=r.measureText(i.label).width,a=i.mSize,l=s/n,h=(1-l)*i.mPosX,u=(1-a)*i.mPosY,p=h+l,f=u+a,d=.01;1===i.mode?t.addBlank(0,u-d,n,f+d):t.addBlank(h-d,u-d,p+d,f+d),e.fillStyle=i.fontcolor,e.font=o,e.fillText(i.label,h*n,u*n+.75*i.mSize*n)}(t,e,i):(3===n||4===n)&&function(t,e,i){var n=i.size,o=i.image.naturalWidth||1,r=i.image.naturalHeight||1,s=i.mSize,a=s*o/r,l=(1-a)*i.mPosX,h=(1-s)*i.mPosY,c=l+a,u=h+s,p=.01;3===i.mode?t.addBlank(0,h-p,n,u+p):t.addBlank(l-p,h-p,c+p,u+p),e.drawImage(i.image,l*n,h*n,a*n,s*n)}(t,e,i)}function o(t,e,i,n,o,r,s,a){t.isDark(s,a)&&e.rect(n,o,r,r)}function r(t,e,i,n,o,r,s,a){var l=t.isDark,h=n+r,c=o+r,u=i.radius*r,p=s-1,f=s+1,d=a-1,g=a+1,v=l(s,a),m=l(p,d),y=l(p,a),b=l(p,g),w=l(s,g),T=l(f,g),C=l(f,a),k=l(f,d),_=l(s,d);v?function(t,e,i,n,o,r,s,a,l,h){s?t.moveTo(e+r,i):t.moveTo(e,i),a?(t.lineTo(n-r,i),t.arcTo(n,i,n,o,r)):t.lineTo(n,i),l?(t.lineTo(n,o-r),t.arcTo(n,o,e,o,r)):t.lineTo(n,o),h?(t.lineTo(e+r,o),t.arcTo(e,o,e,i,r)):t.lineTo(e,o),s?(t.lineTo(e,i+r),t.arcTo(e,i,n,i,r)):t.lineTo(e,i)}(e,n,o,h,c,u,!y&&!_,!y&&!w,!C&&!w,!C&&!_):function(t,e,i,n,o,r,s,a,l,h){s&&(t.moveTo(e+r,i),t.lineTo(e,i),t.lineTo(e,i+r),t.arcTo(e,i,e+r,i,r)),a&&(t.moveTo(n-r,i),t.lineTo(n,i),t.lineTo(n,i+r),t.arcTo(n,i,n-r,i,r)),l&&(t.moveTo(n-r,o),t.lineTo(n,o),t.lineTo(n,o-r),t.arcTo(n,o,n-r,o,r)),h&&(t.moveTo(e+r,o),t.lineTo(e,o),t.lineTo(e,o-r),t.arcTo(e,o,e+r,o,r))}(e,n,o,h,c,u,y&&_&&m,y&&w&&b,C&&w&&T,C&&_&&k)}function s(t,e,i){var n,s,a=t.moduleCount,l=i.size/a,h=o;for(p&&i.radius>0&&i.radius<=.5&&(h=r),e.beginPath(),n=0;a>n;n+=1)for(s=0;a>s;s+=1){h(t,e,i,i.left+s*l,i.top+n*l,l,n,s)}if(c(i.fill).is("img")){e.strokeStyle="rgba(0,0,0,0.5)",e.lineWidth=2,e.stroke();var u=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",e.fill(),e.globalCompositeOperation=u,e.clip(),e.drawImage(i.fill,0,0,i.size,i.size),e.restore()}else e.fillStyle=i.fill,e.fill()}function a(t,e){var o=i(e.text,e.ecLevel,e.minVersion,e.maxVersion,e.quiet);if(!o)return null;var r=c(t).data("qrcode",o),a=r[0].getContext("2d");return n(o,a,e),s(o,a,e),r}function l(t){return a(c("<canvas/>").attr("width",t.size).attr("height",t.size),t)}function h(t){return u&&"canvas"===t.render?l(t):u&&"image"===t.render?function(t){return c("<img/>").attr("src",l(t)[0].toDataURL("image/png"))}(t):function(t){var e=i(t.text,t.ecLevel,t.minVersion,t.maxVersion,t.quiet);if(!e)return null;var n,o,r=t.size,s=t.background,a=Math.floor,l=e.moduleCount,h=a(r/l),u=a(.5*(r-h*l)),p={position:"relative",left:0,top:0,padding:0,margin:0,width:r,height:r},f={position:"absolute",padding:0,margin:0,width:h,height:h,"background-color":t.fill},d=c("<div/>").data("qrcode",e).css(p);for(s&&d.css("background-color",s),n=0;l>n;n+=1)for(o=0;l>o;o+=1)e.isDark(n,o)&&c("<div/>").css(f).css({left:u+o*h,top:u+n*h}).appendTo(d);return d}(t)}var c=jQuery,u=function(){var t=document.createElement("canvas");return Boolean(t.getContext&&t.getContext("2d"))}(),p="[object Opera]"!==Object.prototype.toString.call(window.opera),f={render:"canvas",minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};c.fn.qrcode=function(t){var e=c.extend({},f,t);return this.each((function(){"canvas"===this.nodeName.toLowerCase()?a(this,e):c(this).append(h(e))}))}}(function(){var t=function(){function t(e,i){if(void 0===e.length)throw new Error(e.length+"/"+i);var n=function(){for(var t=0;t<e.length&&0==e[t];)t+=1;for(var n=new Array(e.length-t+i),o=0;o<e.length-t;o+=1)n[o]=e[o+t];return n}(),o={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(e){for(var i=new Array(o.getLength()+e.getLength()-1),n=0;n<o.getLength();n+=1)for(var r=0;r<e.getLength();r+=1)i[n+r]^=v.gexp(v.glog(o.getAt(n))+v.glog(e.getAt(r)));return t(i,0)},mod:function(e){if(o.getLength()-e.getLength()<0)return o;for(var i=v.glog(o.getAt(0))-v.glog(e.getAt(0)),n=new Array(o.getLength()),r=0;r<o.getLength();r+=1)n[r]=o.getAt(r);for(r=0;r<e.getLength();r+=1)n[r]^=v.gexp(v.glog(e.getAt(r))+i);return t(n,0).mod(e)}};return o}var e=function(e,i){var n=e,o=s[i],r=null,a=0,l=null,h=new Array,c={},u=function(t,e){r=function(t){for(var e=new Array(t),i=0;t>i;i+=1){e[i]=new Array(t);for(var n=0;t>n;n+=1)e[i][n]=null}return e}(a=4*n+17),p(0,0),p(a-7,0),p(0,a-7),d(),f(),w(t,e),n>=7&&v(t),null==l&&(l=_(n,o,h)),T(l,e)},p=function(t,e){for(var i=-1;7>=i;i+=1)if(!(-1>=t+i||t+i>=a))for(var n=-1;7>=n;n+=1)-1>=e+n||e+n>=a||(r[t+i][e+n]=i>=0&&6>=i&&(0==n||6==n)||n>=0&&6>=n&&(0==i||6==i)||i>=2&&4>=i&&n>=2&&4>=n)},f=function(){for(var t=8;a-8>t;t+=1)null==r[t][6]&&(r[t][6]=t%2==0);for(var e=8;a-8>e;e+=1)null==r[6][e]&&(r[6][e]=e%2==0)},d=function(){for(var t=g.getPatternPosition(n),e=0;e<t.length;e+=1)for(var i=0;i<t.length;i+=1){var o=t[e],s=t[i];if(null==r[o][s])for(var a=-2;2>=a;a+=1)for(var l=-2;2>=l;l+=1)r[o+a][s+l]=-2==a||2==a||-2==l||2==l||0==a&&0==l}},v=function(t){for(var e=g.getBCHTypeNumber(n),i=0;18>i;i+=1){var o=!t&&1==(e>>i&1);r[Math.floor(i/3)][i%3+a-8-3]=o}for(i=0;18>i;i+=1){o=!t&&1==(e>>i&1);r[i%3+a-8-3][Math.floor(i/3)]=o}},w=function(t,e){for(var i=o<<3|e,n=g.getBCHTypeInfo(i),s=0;15>s;s+=1){var l=!t&&1==(n>>s&1);6>s?r[s][8]=l:8>s?r[s+1][8]=l:r[a-15+s][8]=l}for(s=0;15>s;s+=1){l=!t&&1==(n>>s&1);8>s?r[8][a-s-1]=l:9>s?r[8][15-s-1+1]=l:r[8][15-s-1]=l}r[a-8][8]=!t},T=function(t,e){for(var i=-1,n=a-1,o=7,s=0,l=g.getMaskFunction(e),h=a-1;h>0;h-=2)for(6==h&&(h-=1);;){for(var c=0;2>c;c+=1)if(null==r[n][h-c]){var u=!1;s<t.length&&(u=1==(t[s]>>>o&1)),l(n,h-c)&&(u=!u),r[n][h-c]=u,-1==(o-=1)&&(s+=1,o=7)}if(0>(n+=i)||n>=a){n-=i,i=-i;break}}},C=function(e,i){for(var n=0,o=0,r=0,s=new Array(i.length),a=new Array(i.length),l=0;l<i.length;l+=1){var h=i[l].dataCount,c=i[l].totalCount-h;o=Math.max(o,h),r=Math.max(r,c),s[l]=new Array(h);for(var u=0;u<s[l].length;u+=1)s[l][u]=255&e.getBuffer()[u+n];n+=h;var p=g.getErrorCorrectPolynomial(c),f=t(s[l],p.getLength()-1).mod(p);a[l]=new Array(p.getLength()-1);for(u=0;u<a[l].length;u+=1){var d=u+f.getLength()-a[l].length;a[l][u]=d>=0?f.getAt(d):0}}var v=0;for(u=0;u<i.length;u+=1)v+=i[u].totalCount;var m=new Array(v),y=0;for(u=0;o>u;u+=1)for(l=0;l<i.length;l+=1)u<s[l].length&&(m[y]=s[l][u],y+=1);for(u=0;r>u;u+=1)for(l=0;l<i.length;l+=1)u<a[l].length&&(m[y]=a[l][u],y+=1);return m},_=function(t,e,i){for(var n=m.getRSBlocks(t,e),o=y(),r=0;r<i.length;r+=1){var s=i[r];o.put(s.getMode(),4),o.put(s.getLength(),g.getLengthInBits(s.getMode(),t)),s.write(o)}var a=0;for(r=0;r<n.length;r+=1)a+=n[r].dataCount;if(o.getLengthInBits()>8*a)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*a+")");for(o.getLengthInBits()+4<=8*a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*a||(o.put(236,8),o.getLengthInBits()>=8*a));)o.put(17,8);return C(o,n)};return c.addData=function(t){var e=b(t);h.push(e),l=null},c.isDark=function(t,e){if(0>t||t>=a||0>e||e>=a)throw new Error(t+","+e);return r[t][e]},c.getModuleCount=function(){return a},c.make=function(){u(!1,function(){for(var t=0,e=0,i=0;8>i;i+=1){u(!0,i);var n=g.getLostPoint(c);(0==i||t>n)&&(t=n,e=i)}return e}())},c.createTableTag=function(t,e){t=t||2;var i="";i+='<table style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",i+='">',i+="<tbody>";for(var n=0;n<c.getModuleCount();n+=1){i+="<tr>";for(var o=0;o<c.getModuleCount();o+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=" width: "+t+"px;",i+=" height: "+t+"px;",i+=" background-color: ",i+=c.isDark(n,o)?"#000000":"#ffffff",i+=";",i+='"/>';i+="</tr>"}return(i+="</tbody>")+"</table>"},c.createImgTag=function(t,e){t=t||2,e=void 0===e?4*t:e;var i=c.getModuleCount()*t+2*e,n=e,o=i-e;return k(i,i,(function(e,i){if(e>=n&&o>e&&i>=n&&o>i){var r=Math.floor((e-n)/t),s=Math.floor((i-n)/t);return c.isDark(s,r)?0:1}return 1}))},c};e.stringToBytes=function(t){for(var e=new Array,i=0;i<t.length;i+=1){var n=t.charCodeAt(i);e.push(255&n)}return e},e.createStringToBytes=function(t,e){var i=function(){for(var i=T(t),n=function(){var t=i.read();if(-1==t)throw new Error;return t},o=0,r={};;){var s=i.read();if(-1==s)break;var a=n(),l=n()<<8|n();r[String.fromCharCode(s<<8|a)]=l,o+=1}if(o!=e)throw new Error(o+" != "+e);return r}(),n="?".charCodeAt(0);return function(t){for(var e=new Array,o=0;o<t.length;o+=1){var r=t.charCodeAt(o);if(128>r)e.push(r);else{var s=i[t.charAt(o)];"number"==typeof s?(255&s)==s?e.push(s):(e.push(s>>>8),e.push(255&s)):e.push(n)}}return e}};var i=1,n=2,o=4,r=8,s={L:1,M:0,Q:3,H:2},a=0,l=1,h=2,c=3,u=4,p=5,f=6,d=7,g=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],s=1335,g=7973,m={},y=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e};return m.getBCHTypeInfo=function(t){for(var e=t<<10;y(e)-y(s)>=0;)e^=s<<y(e)-y(s);return 21522^(t<<10|e)},m.getBCHTypeNumber=function(t){for(var e=t<<12;y(e)-y(g)>=0;)e^=g<<y(e)-y(g);return t<<12|e},m.getPatternPosition=function(t){return e[t-1]},m.getMaskFunction=function(t){switch(t){case a:return function(t,e){return(t+e)%2==0};case l:return function(t,e){return t%2==0};case h:return function(t,e){return e%3==0};case c:return function(t,e){return(t+e)%3==0};case u:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case p:return function(t,e){return t*e%2+t*e%3==0};case f:return function(t,e){return(t*e%2+t*e%3)%2==0};case d:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw new Error("bad maskPattern:"+t)}},m.getErrorCorrectPolynomial=function(e){for(var i=t([1],0),n=0;e>n;n+=1)i=i.multiply(t([1,v.gexp(n)],0));return i},m.getLengthInBits=function(t,e){if(e>=1&&10>e)switch(t){case i:return 10;case n:return 9;case o:case r:return 8;default:throw new Error("mode:"+t)}else if(27>e)switch(t){case i:return 12;case n:return 11;case o:return 16;case r:return 10;default:throw new Error("mode:"+t)}else{if(!(41>e))throw new Error("type:"+e);switch(t){case i:return 14;case n:return 13;case o:return 16;case r:return 12;default:throw new Error("mode:"+t)}}},m.getLostPoint=function(t){for(var e=t.getModuleCount(),i=0,n=0;e>n;n+=1)for(var o=0;e>o;o+=1){for(var r=0,s=t.isDark(n,o),a=-1;1>=a;a+=1)if(!(0>n+a||n+a>=e))for(var l=-1;1>=l;l+=1)0>o+l||o+l>=e||(0!=a||0!=l)&&s==t.isDark(n+a,o+l)&&(r+=1);r>5&&(i+=3+r-5)}for(n=0;e-1>n;n+=1)for(o=0;e-1>o;o+=1){var h=0;t.isDark(n,o)&&(h+=1),t.isDark(n+1,o)&&(h+=1),t.isDark(n,o+1)&&(h+=1),t.isDark(n+1,o+1)&&(h+=1),(0==h||4==h)&&(i+=3)}for(n=0;e>n;n+=1)for(o=0;e-6>o;o+=1)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(i+=40);for(o=0;e>o;o+=1)for(n=0;e-6>n;n+=1)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(i+=40);var c=0;for(o=0;e>o;o+=1)for(n=0;e>n;n+=1)t.isDark(n,o)&&(c+=1);return i+10*(Math.abs(100*c/e/e-50)/5)},m}(),v=function(){for(var t=new Array(256),e=new Array(256),i=0;8>i;i+=1)t[i]=1<<i;for(i=8;256>i;i+=1)t[i]=t[i-4]^t[i-5]^t[i-6]^t[i-8];for(i=0;255>i;i+=1)e[t[i]]=i;var n={glog:function(t){if(1>t)throw new Error("glog("+t+")");return e[t]},gexp:function(e){for(;0>e;)e+=255;for(;e>=256;)e-=255;return t[e]}};return n}(),m=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var i={};return i.totalCount=t,i.dataCount=e,i},i={},n=function(e,i){switch(i){case s.L:return t[4*(e-1)+0];case s.M:return t[4*(e-1)+1];case s.Q:return t[4*(e-1)+2];case s.H:return t[4*(e-1)+3];default:return}};return i.getRSBlocks=function(t,i){var o=n(t,i);if(void 0===o)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+i);for(var r=o.length/3,s=new Array,a=0;r>a;a+=1)for(var l=o[3*a+0],h=o[3*a+1],c=o[3*a+2],u=0;l>u;u+=1)s.push(e(h,c));return s},i}(),y=function(){var t=new Array,e=0,i={getBuffer:function(){return t},getAt:function(e){var i=Math.floor(e/8);return 1==(t[i]>>>7-e%8&1)},put:function(t,e){for(var n=0;e>n;n+=1)i.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return e},putBit:function(i){var n=Math.floor(e/8);t.length<=n&&t.push(0),i&&(t[n]|=128>>>e%8),e+=1}};return i},b=function(t){var i=o,n=e.stringToBytes(t),r={getMode:function(){return i},getLength:function(t){return n.length},write:function(t){for(var e=0;e<n.length;e+=1)t.put(n[e],8)}};return r},w=function(){var t=new Array,e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,i,n){i=i||0,n=n||t.length;for(var o=0;n>o;o+=1)e.writeByte(t[o+i])},writeString:function(t){for(var i=0;i<t.length;i+=1)e.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var i=0;i<t.length;i+=1)i>0&&(e+=","),e+=t[i];return e+"]"}};return e},T=function(t){var e=t,i=0,n=0,o=0,r={read:function(){for(;8>o;){if(i>=e.length){if(0==o)return-1;throw new Error("unexpected end of file./"+o)}var t=e.charAt(i);if(i+=1,"="==t)return o=0,-1;t.match(/^\s$/)||(n=n<<6|s(t.charCodeAt(0)),o+=6)}var r=n>>>o-8&255;return o-=8,r}},s=function(t){if(t>=65&&90>=t)return t-65;if(t>=97&&122>=t)return t-97+26;if(t>=48&&57>=t)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw new Error("c:"+t)};return r},C=function(t,e){var i=t,n=e,o=new Array(t*e),r={setPixel:function(t,e,n){o[e*i+t]=n},write:function(t){t.writeString("GIF87a"),t.writeShort(i),t.writeShort(n),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(i),t.writeShort(n),t.writeByte(0);var e=s(2);t.writeByte(2);for(var o=0;e.length-o>255;)t.writeByte(255),t.writeBytes(e,o,255),o+=255;t.writeByte(e.length-o),t.writeBytes(e,o,e.length-o),t.writeByte(0),t.writeString(";")}},s=function(t){for(var e=1<<t,i=1+(1<<t),n=t+1,r=a(),s=0;e>s;s+=1)r.add(String.fromCharCode(s));r.add(String.fromCharCode(e)),r.add(String.fromCharCode(i));var l=w(),h=function(t){var e=t,i=0,n=0,o={write:function(t,o){if(t>>>o!=0)throw new Error("length over");for(;i+o>=8;)e.writeByte(255&(t<<i|n)),o-=8-i,t>>>=8-i,n=0,i=0;n|=t<<i,i+=o},flush:function(){i>0&&e.writeByte(n)}};return o}(l);h.write(e,n);var c=0,u=String.fromCharCode(o[c]);for(c+=1;c<o.length;){var p=String.fromCharCode(o[c]);c+=1,r.contains(u+p)?u+=p:(h.write(r.indexOf(u),n),r.size()<4095&&(r.size()==1<<n&&(n+=1),r.add(u+p)),u=p)}return h.write(r.indexOf(u),n),h.write(i,n),h.flush(),l.toByteArray()},a=function(){var t={},e=0,i={add:function(n){if(i.contains(n))throw new Error("dup key:"+n);t[n]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return i};return r},k=function(t,e,i,n){for(var o=C(t,e),r=0;e>r;r+=1)for(var s=0;t>s;s+=1)o.setPixel(s,r,i(s,r));var a=w();o.write(a);for(var l=function(){var t=0,e=0,i=0,n="",o={},r=function(t){n+=String.fromCharCode(s(63&t))},s=function(t){if(0>t);else{if(26>t)return 65+t;if(52>t)return t-26+97;if(62>t)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw new Error("n:"+t)};return o.writeByte=function(n){for(t=t<<8|255&n,e+=8,i+=1;e>=6;)r(t>>>e-6),e-=6},o.flush=function(){if(e>0&&(r(t<<6-e),t=0,e=0),i%3!=0)for(var o=3-i%3,s=0;o>s;s+=1)n+="="},o.toString=function(){return n},o}(),h=a.toByteArray(),c=0;c<h.length;c+=1)l.writeByte(h[c]);l.flush();var u="";return u+="<img",u+=' src="',u+="data:image/gif;base64,",u+=l,u+='"',u+=' width="',u+=t,u+='"',u+=' height="',u+=e,u+='"',n&&(u+=' alt="',u+=n,u+='"'),u+"/>"};return e}();return function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports&&(module.exports=t())}((function(){return t})),function(t){t.stringToBytes=function(t){return function(t){for(var e=[],i=0;i<t.length;i++){var n=t.charCodeAt(i);128>n?e.push(n):2048>n?e.push(192|n>>6,128|63&n):55296>n||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(i++,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return e}(t)}}(t),t}()),function(t){t.fn.share=function(e){function i(e,i){var n=function(e){0===e.mobileSites.length&&e.sites.length&&(e.mobileSites=e.sites);var i=(t(window).width()<=768?e.mobileSites:e.sites.length?e.sites:[]).slice(0),n=e.disabled;return"string"==typeof i&&(i=i.split(/\s*,\s*/)),"string"==typeof n&&(n=n.split(/\s*,\s*/)),/MicroMessenger/i.test(navigator.userAgent)&&n.push("wechat"),n.length&&t.each(n,(function(e,n){var o=t.inArray(n,i);-1!==o&&i.splice(o,1)})),i}(i);"prepend"==i.mode&&n.reverse(),n.length&&t.each(n,(function(n,o){var r=function(t,e){var i=s[t];for(var n in e.summary=e.description,e)if(e.hasOwnProperty(n)){var o=t+n.replace(/^[a-z]/,(function(t){return t.toUpperCase()})),r=encodeURIComponent(void 0===e[o]?e[n]:e[o]);i=i.replace(new RegExp("{{"+n.toUpperCase()+"}}","g"),r)}return i}(o,i),l=i.initialized?e.find(".icon-"+o):t('<a class="icon icon-'+o+'"></a>');return!l.length||(l.prop("aria-label","分享到 "+a[o]),l.prop("href",r),"wechat"===o?l.prop("tabindex",-1):l.prop("target","_blank"),void(i.initialized||("prepend"==i.mode?e.prepend(l):e.append(l))))}))}var n=t(document.head),o={url:location.href,site_url:location.origin,source:n.find("[name=site], [name=Site]").attr("content")||document.title,title:n.find("[name=title], [name=Title]").attr("content")||document.title,description:n.find("[name=description], [name=Description]").attr("content")||"",image:t("img:first").prop("src")||"",imageSelector:void 0,weiboKey:"",wechatQrcodeTitle:"微信分享",wechatQrcodeHelper:"<p>打开微信“扫一扫”</p><p>点击屏幕右上角分享按钮</p>",wechatQrcodeSize:100,mobileSites:[],sites:["weibo","qq","wechat","tencent","douban","qzone","linkedin","diandian","facebook","twitter","google"],disabled:[],initialized:!1},r=t.extend({},o,e),s={qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{URL}}&title={{TITLE}}&desc={{DESCRIPTION}}&summary={{SUMMARY}}&site={{SOURCE}}",qq:"http://connect.qq.com/widget/shareqq/index.html?url={{URL}}&title={{TITLE}}&source={{SOURCE}}&desc={{DESCRIPTION}}&pics={{IMAGE}}",tencent:"http://share.v.t.qq.com/index.php?c=share&a=index&title={{TITLE}}&url={{URL}}&pic={{IMAGE}}",weibo:"http://service.weibo.com/share/share.php?url={{URL}}&title={{TITLE}}&pic={{IMAGE}}&appkey={{WEIBOKEY}}",wechat:"javascript:;",douban:"http://shuo.douban.com/!service/share?href={{URL}}&name={{TITLE}}&text={{DESCRIPTION}}&image={{IMAGE}}&starid=0&aid=0&style=11",diandian:"http://www.diandian.com/share?lo={{URL}}&ti={{TITLE}}&type=link",linkedin:"http://www.linkedin.com/shareArticle?mini=true&ro=true&title={{TITLE}}&url={{URL}}&summary={{SUMMARY}}&source={{SOURCE}}&armin=armin",facebook:"https://www.facebook.com/sharer/sharer.php?u={{URL}}&title={{TITLE}}&description={{DESCRIPTION}}&caption={{SUBHEAD}}&link={{URL}}&picture={{IMAGE}}",twitter:"https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{SITE_URL}}",google:"https://plus.google.com/share?url={{URL}}"},a={qzone:"QQ空间",qq:"QQ",tencent:"腾讯微博",weibo:"微博",wechat:"微信",douban:"豆瓣",diandian:"点点",linkedin:"LinkedIn",facebook:"Facebook",twitter:"Twitter",google:"Google"};this.each((function(){if(t(this).data("initialized"))return!0;var e=t.extend({},r,t(this).data());e.imageSelector&&(e.image=t(e.imageSelector).map((function(){return t(this).prop("src")})).get().join("||"));var n=t(this).addClass("share-component social-share");i(n,e),function(t,e){var i=t.find("a.icon-wechat");i.length&&(i.append('<div class="wechat-qrcode"><h4>'+e.wechatQrcodeTitle+'</h4><div class="qrcode"></div><div class="help">'+e.wechatQrcodeHelper+"</div></div>"),i.find(".qrcode").qrcode({render:"image",size:e.wechatQrcodeSize,text:e.url}),i.offset().top<100&&i.find(".wechat-qrcode").addClass("bottom"))}(n,e),t(this).data("initialized",!0)}))},t((function(){t(".share-component,.social-share").share()}))}(jQuery),function(e){e.fn.extend({slimScroll:function(i){var n=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},i);return this.each((function(){function o(t){if(h){var i=0;(t=t||window.event).wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3),e(t.target||t.srcTarget||t.srcElement).closest("."+n.wrapperClass).is(y.parent())&&r(i,!0),t.preventDefault&&!m&&t.preventDefault(),m||(t.returnValue=!1)}}function r(t,e,i){m=!1;var o=y.outerHeight()-w.outerHeight();e&&(e=parseInt(w.css("top"))+t*parseInt(n.wheelStep)/100*w.outerHeight(),e=Math.min(Math.max(e,0),o),e=0<t?Math.ceil(e):Math.floor(e),w.css({top:e+"px"})),e=(g=parseInt(w.css("top"))/(y.outerHeight()-w.outerHeight()))*(y[0].scrollHeight-y.outerHeight()),i&&(t=(e=t)/y[0].scrollHeight*y.outerHeight(),t=Math.min(Math.max(t,0),o),w.css({top:t+"px"})),y.scrollTop(e),y.trigger("slimscrolling",~~e),a(),l()}function s(){d=Math.max(y.outerHeight()/y[0].scrollHeight*y.outerHeight(),30),w.css({height:d+"px"});var t=d==y.outerHeight()?"none":"block";w.css({display:t})}function a(){s(),clearTimeout(p),g==~~g?(m=n.allowPageScroll,v!=g&&y.trigger("slimscroll",~~g?"bottom":"top")):m=!1,v=g,d>=y.outerHeight()?m=!0:(w.stop(!0,!0).fadeIn("fast"),n.railVisible&&T.stop(!0,!0).fadeIn("fast"))}function l(){n.alwaysVisible||(p=setTimeout((function(){n.disableFadeOut&&h||c||u||(w.fadeOut("slow"),T.fadeOut("slow"))}),1e3))}var h,c,u,p,f,d,g,v,m=!1,y=e(this);if(y.parent().hasClass(n.wrapperClass)){var b=y.scrollTop(),w=y.siblings("."+n.barClass),T=y.siblings("."+n.railClass);if(s(),e.isPlainObject(i)){if("height"in i&&"auto"==i.height){y.parent().css("height","auto"),y.css("height","auto");var C=y.parent().parent().height();y.parent().css("height",C),y.css("height",C)}else"height"in i&&(C=i.height,y.parent().css("height",C),y.css("height",C));if("scrollTo"in i)b=parseInt(n.scrollTo);else if("scrollBy"in i)b+=parseInt(n.scrollBy);else if("destroy"in i)return w.remove(),T.remove(),void y.unwrap();r(b,!1,!0)}}else if(!e.isPlainObject(i)||!("destroy"in i)){n.height="auto"==n.height?y.parent().height():n.height,b=e("<div></div>").addClass(n.wrapperClass).css({position:"relative",overflow:"hidden",width:n.width,height:n.height}),y.css({overflow:"hidden",width:n.width,height:n.height});T=e("<div></div>").addClass(n.railClass).css({width:n.size,height:"100%",position:"absolute",top:0,display:n.alwaysVisible&&n.railVisible?"block":"none","border-radius":n.railBorderRadius,background:n.railColor,opacity:n.railOpacity,zIndex:90}),w=e("<div></div>").addClass(n.barClass).css({background:n.color,width:n.size,position:"absolute",top:0,opacity:n.opacity,display:n.alwaysVisible?"block":"none","border-radius":n.borderRadius,BorderRadius:n.borderRadius,MozBorderRadius:n.borderRadius,WebkitBorderRadius:n.borderRadius,zIndex:99}),C="right"==n.position?{right:n.distance}:{left:n.distance};T.css(C),w.css(C),y.wrap(b),y.parent().append(w),y.parent().append(T),l(),n.railDraggable&&w.bind("mousedown",(function(i){var n=e(document);return u=!0,t=parseFloat(w.css("top")),pageY=i.pageY,n.bind("mousemove.slimscroll",(function(e){currTop=t+e.pageY-pageY,w.css("top",currTop),r(0,w.position().top,!1)})),n.bind("mouseup.slimscroll",(function(t){u=!1,l(),n.unbind(".slimscroll")})),!1})).bind("selectstart.slimscroll",(function(t){return t.stopPropagation(),t.preventDefault(),!1})),T.hover((function(){a()}),(function(){l()})),w.hover((function(){c=!0}),(function(){c=!1})),y.hover((function(){h=!0,a(),l()}),(function(){h=!1,l()})),y.bind("touchstart",(function(t,e){t.originalEvent.touches.length&&(f=t.originalEvent.touches[0].pageY)})),y.bind("touchmove",(function(t){m||t.originalEvent.preventDefault(),t.originalEvent.touches.length&&(r((f-t.originalEvent.touches[0].pageY)/n.touchScrollStep,!0),f=t.originalEvent.touches[0].pageY)})),s(),"bottom"===n.start?(w.css({top:y.outerHeight()-w.outerHeight()}),r(0,!0)):"top"!==n.start&&(r(e(n.start).position().top,null,!0),n.alwaysVisible||w.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",o,!1),this.addEventListener("mousewheel",o,!1)):document.attachEvent("onmousewheel",o)}})),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){t.fn.keepInView=function(e){return this.each((function(i,n){var o,r,s={fixed:!1,edgeOffset:0,zindex:t(n).css("zIndex"),customClass:!1,trigger:"both",scrollable:!1,h:t(n).height(),w:t(n).width(),offsetAnchor:!1,cloned:!1},a=t.extend({},s,e);a.cloned?(r=t(n).parents().eq(0),o=t(n).clone().prependTo(r).hide().addClass("KIV-cloned"),t(n).addClass("KIV-original")):o=t(n);var l=t(n).offset(),h=t(n).css("position"),c=t(n).css("left"),u="auto"===c?parseInt(t(n).css("marginLeft"),10):0,p={position:"fixed",left:c-u+"px",width:a.scrollable?a.w-15:a.w,height:a.scrollable?t(window).height()-l.top+"px":a.h,zIndex:a.zindex},f=function(e){o.css(t.extend({},p,e))},d=function(e){o.css({top:e+"px"}),a.offsetAnchor&&(t(n).css({visibility:"hidden"}),o.slideDown("normal"))};if(a.offsetAnchor){var g=t("a[name]"),v=t.makeArray(g),m=function(){var e=+new Date;do{var i=v.shift();void 0!==v[0]&&t(i).css({position:"relative",display:"block",top:"-"+o.outerHeight()+"px"})}while(void 0!==v[0]&&+new Date-e<50);void 0!==v[0]&&setTimeout(m,0)};m()}var y=function(e){if(o.height()>t(window).height()&&!a.scrollable)return!1;a.clearStyle&&o.removeAttr("style");var i="",s=t(window).height(),c=o.outerHeight();if(r=t(n).parents().eq(0),s<parseInt(l.top+c-Math.abs(t(window).scrollTop())+a.edgeOffset,10)&&!a.fixed&&(i="bottom"),t(window).scrollTop()>l.top-a.edgeOffset&&!a.fixed&&(i="top"),a.scrollable?f({height:s-l.top+"px",overflow:"auto"}):f(),"bottom"!==i||"both"!==a.trigger&&"bottom"!==a.trigger?"top"!==i||"both"!==a.trigger&&"top"!==a.trigger?a.fixed?o.css({top:a.edgeOffset,left:l.left,height:"auto"}):a.scrollable?o.css({position:h,top:l.top+"px",height:s-l.top+t(window).scrollTop()+"px"}):a.offsetAnchor?(t(n).css({visibility:"visible"}),o.hide()):o.removeAttr("style"):a.scrollable?f({height:s+"px",top:a.edgeOffset+"px",overflow:"auto"}):d(a.edgeOffset):a.scrollable?f({height:s+"px",top:s-c-a.edgeOffset+"px",overflow:"auto"}):d(s-c-a.edgeOffset),a.customClass&&("both"===a.trigger?"bottom"===i||"top"===i?o.addClass(a.customClass+"-"+i):i||o.removeClass(a.customClass+"-top").removeClass(a.customClass+"-bottom"):i===a.trigger?o.addClass(a.customClass+"-"+a.trigger):i||o.removeClass(a.customClass+"-"+a.trigger)),a.parentClass)if("both"===a.trigger){var u=a.customClass+"-";r.find('[class*="'+u+'"]')?r.addClass(a.parentClass):r.removeClass(a.parentClass)}else if(i===a.trigger){u=a.customClass+"-"+a.trigger;r.find('[class*="'+u+'"]')?r.addClass(a.parentClass):r.removeClass(a.parentClass)}else i||r.removeClass(a.parentClass)},b=function(){a.w=o.width(),a.h=o.height(),l=o.offset(),a.clearStyle=!0,requestAnimationFrame(y)},w=function(){a.clearStyle=!1,requestAnimationFrame(y)};o.on("update.sticky",b),o.on("unstick.sticky",(function(){o.removeAttr("style").off(".sticky"),t(window).off(".sticky",b).off(".sticky",w)})),t(window).on("resize.sticky",o,b).on("scroll.sticky",o,w).trigger("scroll")}))}})),function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each((function(){var i=t(this),o=i.data("bs.collapse"),r=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!o&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),o||i.data("bs.collapse",o=new n(this,r)),"string"==typeof e&&o[e]()}))}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"),e&&e.transitioning))){var r=t.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(i.call(o,"hide"),e||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[s](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(n.TRANSITION_DURATION):o.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(i,n){var o=t(n);this.addAriaAndCollapsedClass(e(o),o)}),this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var o=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(n){var o=t(this);o.attr("data-target")||n.preventDefault();var r=e(o),s=r.data("bs.collapse")?"toggle":o.data();i.call(r,s)}))}(jQuery),function(t){"use strict";function e(e,n){return this.each((function(){var o=t(this),r=o.data("bs.modal"),s=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e);r||o.data("bs.modal",r=new i(this,s)),"string"==typeof e?r[e](n):s.show&&r.show(n)}))}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){n.$element.one("mouseup.dismiss.bs.modal",(function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var o=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),o&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:e});o?n.$dialog.one("bsTransitionEnd",(function(){n.$element.trigger("focus").trigger(r)})).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(r)})))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var n=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))}),this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;r?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(i){var n=t(this),o=n.attr("href"),r=t(n.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},r.data(),n.data());n.is("a")&&i.preventDefault(),r.one("show.bs.modal",(function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",(function(){n.is(":visible")&&n.trigger("focus")}))})),e.call(r,s,this)}))}(jQuery),function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each((function(){var n=t(this),o=n.data("bs.scrollspy"),r="object"==typeof i&&i;o||n.data("bs.scrollspy",o=new e(this,r)),"string"==typeof i&&o[i]()}))}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var e=t(this),o=e.data("target")||e.attr("href"),r=/^#./.test(o)&&t(o);return r&&r.length&&r.is(":visible")&&[[r[i]().top+n,o]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){e.offsets.push(this[0]),e.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(r[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",(function(){t('[data-spy="scroll"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(jQuery),function(t){"use strict";function e(e){return this.each((function(){var n=t(this),o=n.data("bs.tab");o||n.data("bs.tab",o=new i(this)),"string"==typeof e&&o[e]()}))}var i=function(e){this.element=t(e)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=i.find(".active:last a"),r=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),e.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),(function(){o.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:o[0]})}))}}},i.prototype.activate=function(e,n,o){function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var s=n.find("> .active"),a=o&&t.support.transition&&(s.length&&s.hasClass("fade")||!!n.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(i.TRANSITION_DURATION):r(),s.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var o=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,(function(t,n){i[t]!=n&&(e[t]=n)})),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)):i.show())},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)):i.hide()},e.prototype.show=function(){var i=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;var o=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=r[0].offsetWidth,p=r[0].offsetHeight;if(h){var f=a,d=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+p>d.bottom?"top":"top"==a&&c.top-p<d.top?"bottom":"right"==a&&c.right+u>d.width?"left":"left"==a&&c.left-u<d.left?"right":a,r.removeClass(f).addClass(a)}var g=this.getCalculatedOffset(a,c,u,p);this.applyPlacement(g,a);var v=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",v).emulateTransitionEnd(e.TRANSITION_DURATION):v()}},e.prototype.applyPlacement=function(e,i){var n=this.tip(),o=n[0].offsetWidth,r=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=r&&(e.top=e.top+r-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var u=/top|bottom/.test(i),p=u?2*c.left-o+l:2*c.top-r+h,f=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(p,n[0][f],u)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(i){function n(){"in"!=o.hoverState&&r.detach(),o.$element&&o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),i&&i()}var o=this,r=t(this.$tip),s=t.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(e.TRANSITION_DURATION):n(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName,o=i.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=window.SVGElement&&i instanceof window.SVGElement,s=n?{top:0,left:0}:r?null:e.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,a,l,s)},e.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,i,n){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-s.scroll,l=e.top+r-s.scroll+n;a<s.top?o.top=s.top-a:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var h=e.left-r,c=e.left+r+i;h<s.left?o.left=s.left-h:c>s.right&&(o.left=s.left+s.width-c)}return o},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null}))};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each((function(){var n=t(this),o=n.data("bs.tooltip"),r="object"==typeof i&&i;!o&&/destroy|hide/.test(i)||(o||n.data("bs.tooltip",o=new e(this,r)),"string"==typeof i&&o[i]())}))},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",(function(){i=!0}));return setTimeout((function(){i||t(n).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(jQuery);
|