1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 2"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
2,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); 3; 4/** 5* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 6*/ 7;(function(window, document) { 8/*jshint evil:true */ 9 /** version */ 10 var version = '3.7.3'; 11 12 /** Preset options */ 13 var options = window.html5 || {}; 14 15 /** Used to skip problem elements */ 16 var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; 17 18 /** Not all elements can be cloned in IE **/ 19 var saveClones = /^(?: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; 20 21 /** Detect whether the browser supports default html5 styles */ 22 var supportsHtml5Styles; 23 24 /** Name of the expando, to work with multiple documents or to re-shiv one document */ 25 var expando = '_html5shiv'; 26 27 /** The id for the the documents expando */ 28 var expanID = 0; 29 30 /** Cached data for each document */ 31 var expandoData = {}; 32 33 /** Detect whether the browser supports unknown elements */ 34 var supportsUnknownElements; 35 36 (function() { 37 try { 38 var a = document.createElement('a'); 39 a.innerHTML = '<xyz></xyz>'; 40 //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles 41 supportsHtml5Styles = ('hidden' in a); 42 43 supportsUnknownElements = a.childNodes.length == 1 || (function() { 44 // assign a false positive if unable to shiv 45 (document.createElement)('a'); 46 var frag = document.createDocumentFragment(); 47 return ( 48 typeof frag.cloneNode == 'undefined' || 49 typeof frag.createDocumentFragment == 'undefined' || 50 typeof frag.createElement == 'undefined' 51 ); 52 }()); 53 } catch(e) { 54 // assign a false positive if detection fails => unable to shiv 55 supportsHtml5Styles = true; 56 supportsUnknownElements = true; 57 } 58 59 }()); 60 61 /*--------------------------------------------------------------------------*/ 62 63 /** 64 * Creates a style sheet with the given CSS text and adds it to the document. 65 * @private 66 * @param {Document} ownerDocument The document. 67 * @param {String} cssText The CSS text. 68 * @returns {StyleSheet} The style element. 69 */ 70 function addStyleSheet(ownerDocument, cssText) { 71 var p = ownerDocument.createElement('p'), 72 parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; 73 74 p.innerHTML = 'x<style>' + cssText + '</style>'; 75 return parent.insertBefore(p.lastChild, parent.firstChild); 76 } 77 78 /** 79 * Returns the value of `html5.elements` as an array.
80 * @private 81 * @returns {Array} An array of shived element node names. 82 */ 83 function getElements() { 84 var elements = html5.elements; 85 return typeof elements == 'string' ? elements.split(' ') : elements; 86 } 87 88 /** 89 * Extends the built-in list of html5 elements 90 * @memberOf html5 91 * @param {String|Array} newElements whitespace separated list or array of new element names to shiv 92 * @param {Document} ownerDocument The context document. 93 */ 94 function addElements(newElements, ownerDocument) { 95 var elements = html5.elements; 96 if(typeof elements != 'string'){ 97 elements = elements.join(' '); 98 } 99 if(typeof newElements != 'string'){ 100 newElements = newElements.join(' '); 101 } 102 html5.elements = elements +' '+ newElements; 103 shivDocument(ownerDocument); 104 } 105 106 /** 107 * Returns the data associated to the given document 108 * @private 109 * @param {Document} ownerDocument The document. 110 * @returns {Object} An object of data. 111 */ 112 function getExpandoData(ownerDocument) { 113 var data = expandoData[ownerDocument[expando]]; 114 if (!data) { 115 data = {}; 116 expanID++; 117 ownerDocument[expando] = expanID; 118 expandoData[expanID] = data; 119 } 120 return data; 121 } 122 123 /** 124 * returns a shived element for the given nodeName and document 125 * @memberOf html5 126 * @param {String} nodeName name of the element 127 * @param {Document|DocumentFrag
vendor: 6,334 bytes, lines 127-329
127ment} ownerDocument The context document. 128 * @returns {Object} The shived element. 129 */ 130 function createElement(nodeName, ownerDocument, data){ 131 if (!ownerDocument) { 132 ownerDocument = document; 133 } 134 if(supportsUnknownElements){ 135 return ownerDocument.createElement(nodeName); 136 } 137 if (!data) { 138 data = getExpandoData(ownerDocument); 139 } 140 var node; 141 142 if (data.cache[nodeName]) { 143 node = data.cache[nodeName].cloneNode(); 144 } else if (saveClones.test(nodeName)) { 145 node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); 146 } else { 147 node = data.createElem(nodeName); 148 } 149 150 // Avoid adding some elements to fragments in IE < 9 because 151 // * Attributes like `name` or `type` cannot be set/changed once an element 152 // is inserted into a document/fragment 153 // * Link elements with `src` attributes that are inaccessible, as with 154 // a 403 response, will cause the tab/window to crash 155 // * Script elements appended to fragments will execute when their `src` 156 // or `text` property is set 157 return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; 158 } 159 160 /** 161 * returns a shived DocumentFragment for the given document 162 * @memberOf html5 163 * @param {Document} ownerDocument The context document. 164 * @returns {Object} The shived DocumentFragment. 165 */ 166 function createDocumentFragment(ownerDocument, data){ 167 if (!ownerDocument) { 168 ownerDocument = document; 169 } 170 if(supportsUnknownElements){ 171 return ownerDocument.createDocumentFragment(); 172 } 173 data = data || getExpandoData(ownerDocument); 174 var clone = data.frag.cloneNode(), 175 i = 0, 176 elems = getElements(), 177 l = elems.length; 178 for(;i<l;i++){ 179 clone.createElement(elems[i]); 180 } 181 return clone; 182 } 183 184 /** 185 * Shivs the `createElement` and `createDocumentFragment` methods of the document. 186 * @private 187 * @param {Document|DocumentFragment} ownerDocument The document. 188 * @param {Object} data of the document. 189 */ 190 function shivMethods(ownerDocument, data) { 191 if (!data.cache) { 192 data.cache = {}; 193 data.createElem = ownerDocument.createElement; 194 data.createFrag = ownerDocument.createDocumentFragment; 195 data.frag = data.createFrag(); 196 } 197 198 199 ownerDocument.createElement = function(nodeName) { 200 //abort shiv 201 if (!html5.shivMethods) { 202 return data.createElem(nodeName); 203 } 204 return createElement(nodeName, ownerDocument, data); 205 }; 206 207 ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' + 208 'var n=f.cloneNode(),c=n.createElement;' + 209 'h.shivMethods&&(' + 210 // unroll the `createElement` calls 211 getElements().join().replace(/[\w\-:]+/g, function(nodeName) { 212 data.createElem(nodeName); 213 data.frag.createElement(nodeName); 214 return 'c("' + nodeName + '")'; 215 }) + 216 ');return n}' 217 )(html5, data.frag); 218 } 219 220 /*--------------------------------------------------------------------------*/ 221 222 /** 223 * Shivs the given document. 224 * @memberOf html5 225 * @param {Document} ownerDocument The document to shiv. 226 * @returns {Document} The shived document. 227 */ 228 function shivDocument(ownerDocument) { 229 if (!ownerDocument) { 230 ownerDocument = document; 231 } 232 var data = getExpandoData(ownerDocument); 233 234 if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) { 235 data.hasCSS = !!addStyleSheet(ownerDocument, 236 // corrects block display not defined in IE6/7/8/9 237 'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' + 238 // adds styling not present in IE6/7/8/9 239 'mark{background:#FF0;color:#000}' + 240 // hides non-rendered elements 241 'template{display:none}' 242 ); 243 } 244 if (!supportsUnknownElements) { 245 shivMethods(ownerDocument, data); 246 } 247 return ownerDocument; 248 } 249 250 /*--------------------------------------------------------------------------*/ 251 252 /** 253 * The `html5` object is exposed so that more elements can be shived and 254 * existing shiving can be detected on iframes. 255 * @type Object 256 * @example 257 * 258 * // options can be changed before the script is included 259 * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false }; 260 */ 261 var html5 = { 262 263 /** 264 * An array or space separated string of node names of the elements to shiv. 265 * @memberOf html5 266 * @type Array|String 267 */ 268 'elements': options.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', 269 270 /** 271 * current version of html5shiv 272 */ 273 'version': version, 274 275 /** 276 * A flag to indicate that the HTML5 style sheet should be inserted. 277 * @memberOf html5 278 * @type Boolean 279 */ 280 'shivCSS': (options.shivCSS !== false), 281 282 /** 283 * Is equal to true if a browser supports creating unknown/HTML5 elements 284 * @memberOf html5 285 * @type boolean 286 */ 287 'supportsUnknownElements': supportsUnknownElements, 288 289 /** 290 * A flag to indicate that the document's `createElement` and `createDocumentFragment` 291 * methods should be overwritten. 292 * @memberOf html5 293 * @type Boolean 294 */ 295 'shivMethods': (options.shivMethods !== false), 296 297 /** 298 * A string to describe the type of `html5` object ("default" or "default print"). 299 * @memberOf html5 300 * @type String 301 */ 302 'type': 'default', 303 304 // shivs the document according to the specified `html5` object options 305 'shivDocument': shivDocument, 306 307 //creates a shived element 308 createElement: createElement, 309 310 //creates a shived documentFragment 311 createDocumentFragment: createDocumentFragment, 312 313 //extends list of elements 314 addElements: addElements 315 }; 316 317 /*--------------------------------------------------------------------------*/ 318 319 // expose html5 320 window.html5 = html5; 321 322 // shiv the document 323 shivDocument(document); 324 325 if(typeof module == 'object' && module.exports){ 326 module.exports = html5; 327 } 328 329}(typeof window !== "undefined" ? window : this, document));
329;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.