mirror of https://github.com/hashicorp/consul
1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
|
!function(t,e){function i(){var t=g.elements;return"string"==typeof t?t.split(" "):t}function n(t){var e=f[t[d]];return e||(e={},p++,t[d]=p,f[p]=e),e}function r(t,i,r){return i||(i=e),l?i.createElement(t):(r||(r=n(i)),i=r.cache[t]?r.cache[t].cloneNode():u.test(t)?(r.cache[t]=r.createElem(t)).cloneNode():r.createElem(t),i.canHaveChildren&&!c.test(t)?r.frag.appendChild(i):i)}function s(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return g.shivMethods?r(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/\w+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(g,e.frag)}function o(t){t||(t=e);var i=n(t);if(g.shivCSS&&!a&&!i.hasCSS){var r,o=t;r=o.createElement("p"),o=o.getElementsByTagName("head")[0]||o.documentElement,r.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>",r=o.insertBefore(r.lastChild,o.firstChild),i.hasCSS=!!r}return l||s(t,i),t}var a,l,h=t.html5||{},c=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?: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,d="_html5shiv",p=0,f={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",a="hidden"in t;var i;if(!(i=1==t.childNodes.length)){e.createElement("a");var n=e.createDocumentFragment();i="undefined"==typeof n.cloneNode||"undefined"==typeof n.createDocumentFragment||"undefined"==typeof n.createElement}l=i}catch(r){l=a=!0}}();var g={elements:h.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==h.shivCSS,supportsUnknownElements:l,shivMethods:!1!==h.shivMethods,type:"default",shivDocument:o,createElement:r,createDocumentFragment:function(t,r){if(t||(t=e),l)return t.createDocumentFragment();for(var r=r||n(t),s=r.frag.cloneNode(),o=0,a=i(),h=a.length;h>o;o++)s.createElement(a[o]);return s}};t.html5=g,o(e)}(this,document);
|