/*! PlaneUI v0.1.0 | planeui.patch.ie8.min.js | The Modern HTML5 Cross-Device Responsive Front-end UI Framework. | MIT License | By: Pandao | https://github.com/pandao/planeui | 2015-06-27 */ !function(e){return}(this),function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=_.elements;return"string"==typeof e?e.split(" "):e}function i(e,t){var n=_.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),_.elements=n+" "+e,l(t)}function a(e){var t=v[e[S]];return t||(t={},y++,e[S]=y,v[y]=t),t}function o(e,n,r){if(n||(n=t),m)return n.createElement(e);r||(r=a(n));var i;return i=r.cache[e]?r.cache[e].cloneNode():L.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!i.canHaveChildren||R.test(e)||i.tagUrn?i:r.frag.appendChild(i)}function c(e,n){if(e||(e=t),m)return e.createDocumentFragment();n=n||a(e);for(var i=n.frag.cloneNode(),o=0,c=r(),s=c.length;s>o;o++)i.createElement(c[o]);return i}function s(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return _.shivMethods?o(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(_,t.frag)}function l(e){e||(e=t);var r=a(e);return!_.shivCSS||E||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),m||s(e,r),e}function u(e){for(var t,n=e.getElementsByTagName("*"),i=n.length,a=RegExp("^(?:"+r().join("|")+")$","i"),o=[];i--;)t=n[i],a.test(t.nodeName)&&o.push(t.applyElement(d(t)));return o}function d(e){for(var t,n=e.attributes,r=n.length,i=e.ownerDocument.createElement(x+":"+e.nodeName);r--;)t=n[r],t.specified&&i.setAttribute(t.nodeName,t.nodeValue);return i.style.cssText=e.style.cssText,i}function p(e){for(var t,n=e.split("{"),i=n.length,a=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),o="$1"+x+"\\:$2";i--;)t=n[i]=n[i].split("}"),t[t.length-1]=t[t.length-1].replace(a,o),n[i]=t.join("}");return n.join("{")}function f(e){for(var t=e.length;t--;)e[t].removeNode()}function h(e){function t(){clearTimeout(o._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,i,o=a(e),c=e.namespaces,s=e.parentWindow;return!N||e.printShived?e:("undefined"==typeof c[x]&&c.add(x),s.attachEvent("onbeforeprint",function(){t();for(var a,o,c,s=e.styleSheets,l=[],d=s.length,f=Array(d);d--;)f[d]=s[d];for(;c=f.pop();)if(!c.disabled&&I.test(c.media)){try{a=c.imports,o=a.length}catch(h){o=0}for(d=0;o>d;d++)f.push(a[d]);try{l.push(c.cssText)}catch(h){}}l=p(l.reverse().join("")),i=u(e),r=n(e,l)}),s.attachEvent("onafterprint",function(){f(i),clearTimeout(o._removeSheetTimer),o._removeSheetTimer=setTimeout(t,500)}),e.printShived=!0,e)}var E,m,g="3.7.2",T=e.html5||{},R=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,L=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,S="_html5shiv",y=0,v={};!function(){try{var e=t.createElement("a");e.innerHTML="",E="hidden"in e,m=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){E=!0,m=!0}}();var _={elements:T.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:g,shivCSS:T.shivCSS!==!1,supportsUnknownElements:m,shivMethods:T.shivMethods!==!1,type:"default",shivDocument:l,createElement:o,createDocumentFragment:c,addElements:i};e.html5=_,l(t);var I=/^$|\b(?:all|print)\b/,x="html5shiv",N=!m&&function(){var n=t.documentElement;return!("undefined"==typeof t.namespaces||"undefined"==typeof t.parentWindow||"undefined"==typeof n.applyElement||"undefined"==typeof n.removeNode||"undefined"==typeof e.attachEvent)}();_.type+=" print",_.shivPrint=h,h(t)}(this,document),function(e){"use strict";e.matchMedia=e.matchMedia||function(e,t){var n,r=e.documentElement,i=r.firstElementChild||r.firstChild,a=e.createElement("body"),o=e.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",a.style.background="none",a.appendChild(o),function(e){return o.innerHTML='­',r.insertBefore(a,i),n=42===o.offsetWidth,r.removeChild(a),{matches:n,media:e}}}(e.document)}(this),function(e){"use strict";if(e.matchMedia&&e.matchMedia("all").addListener)return!1;var t=e.matchMedia,n=t("only all").matches,r=!1,i=0,a=[],o=function(n){e.clearTimeout(i),i=e.setTimeout(function(){for(var n=0,r=a.length;r>n;n++){var i=a[n].mql,o=a[n].listeners||[],c=t(i.media).matches;if(c!==i.matches){i.matches=c;for(var s=0,l=o.length;l>s;s++)o[s].call(e,i)}}},30)};e.matchMedia=function(i){var c=t(i),s=[],l=0;return c.addListener=function(t){n&&(r||(r=!0,e.addEventListener("resize",o,!0)),0===l&&(l=a.push({mql:c,listeners:s})),s.push(t))},c.removeListener=function(e){for(var t=0,n=s.length;n>t;t++)s[t]===e&&s.splice(t,1)},c}}(this),function(e){"use strict";function t(){L(!0)}var n={};e.respond=n,n.update=function(){};var r=[],i=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),a=function(e,t){var n=i();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))};if(n.ajax=a,n.queue=r,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},n.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesSupported){var o,c,s,l=e.document,u=l.documentElement,d=[],p=[],f=[],h={},E=30,m=l.getElementsByTagName("head")[0]||u,g=l.getElementsByTagName("base")[0],T=m.getElementsByTagName("link"),R=function(){var e,t=l.createElement("div"),n=l.body,r=u.style.fontSize,i=n&&n.style.fontSize,a=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=a=l.createElement("body"),n.style.background="none"),u.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),a&&u.insertBefore(n,u.firstChild),e=t.offsetWidth,a?u.removeChild(n):n.removeChild(t),u.style.fontSize=r,i&&(n.style.fontSize=i),e=s=parseFloat(e)},L=function(t){var n="clientWidth",r=u[n],i="CSS1Compat"===l.compatMode&&r||l.body[n]||r,a={},h=T[T.length-1],g=(new Date).getTime();if(t&&o&&E>g-o)return e.clearTimeout(c),void(c=e.setTimeout(L,E));o=g;for(var S in d)if(d.hasOwnProperty(S)){var y=d[S],v=y.minw,_=y.maxw,I=null===v,x=null===_,N="em";v&&(v=parseFloat(v)*(v.indexOf(N)>-1?s||R():1)),_&&(_=parseFloat(_)*(_.indexOf(N)>-1?s||R():1)),y.hasquery&&(I&&x||!(I||i>=v)||!(x||_>=i))||(a[y.media]||(a[y.media]=[]),a[y.media].push(p[y.rules]))}for(var O in f)f.hasOwnProperty(O)&&f[O]&&f[O].parentNode===m&&m.removeChild(f[O]);f.length=0;for(var D in a)if(a.hasOwnProperty(D)){var b=l.createElement("style"),F=a[D].join("\n");b.type="text/css",b.media=D,m.insertBefore(b,h.nextSibling),b.styleSheet?b.styleSheet.cssText=F:b.appendChild(l.createTextNode(F)),f.push(b)}},S=function(e,t,r){var i=e.replace(n.regex.keyframes,"").match(n.regex.media),a=i&&i.length||0;t=t.substring(0,t.lastIndexOf("/"));var o=function(e){return e.replace(n.regex.urls,"$1"+t+"$2$3")},c=!a&&r;t.length&&(t+="/"),c&&(a=1);for(var s=0;a>s;s++){var l,u,f,h;c?(l=r,p.push(o(e))):(l=i[s].match(n.regex.findStyles)&&RegExp.$1,p.push(RegExp.$2&&o(RegExp.$2))),f=l.split(","),h=f.length;for(var E=0;h>E;E++)u=f[E],d.push({media:u.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:p.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}L()},y=function(){if(r.length){var t=r.shift();a(t.href,function(n){S(n,t.href,t.media),h[t.href]=!0,e.setTimeout(function(){y()},0)})}},v=function(){for(var t=0;t