{"version":3,"sources":["libs/html5shiv/html5shiv.js"],"names":["window","document","version","options","html5","reSkip","saveClones","supportsHtml5Styles","expando","expanID","expandoData","supportsUnknownElements","a","createElement","innerHTML","childNodes","length","frag","createDocumentFragment","cloneNode","e","addStyleSheet","ownerDocument","cssText","p","parent","getElementsByTagName","documentElement","insertBefore","lastChild","firstChild","getElements","elements","split","addElements","newElements","join","shivDocument","getExpandoData","data","nodeName","node","cache","test","createElem","canHaveChildren","tagUrn","appendChild","clone","i","elems","l","shivMethods","createFrag","Function","replace","shivCSS","hasCSS","module","exports"],"mappings":";;;;AAAA;;;AAGA;;AAAE,WAASA,MAAT,EAAiBC,QAAjB,EAA2B;AAC7B;;AACE;AACA,MAAIC,OAAO,GAAG,OAAd;AAEA;;AACA,MAAIC,OAAO,GAAGH,MAAM,CAACI,KAAP,IAAgB,EAA9B;AAEA;;AACA,MAAIC,MAAM,GAAG,oEAAb;AAEA;;AACA,MAAIC,UAAU,GAAG,4GAAjB;AAEA;;AACA,MAAIC,mBAAJ;AAEA;;AACA,MAAIC,OAAO,GAAG,YAAd;AAEA;;AACA,MAAIC,OAAO,GAAG,CAAd;AAEA;;AACA,MAAIC,WAAW,GAAG,EAAlB;AAEA;;AACA,MAAIC,uBAAJ;;AAEC,eAAW;AACV,QAAI;AACA,UAAIC,CAAC,GAAGX,QAAQ,CAACY,aAAT,CAAuB,GAAvB,CAAR;AACAD,MAAAA,CAAC,CAACE,SAAF,GAAc,aAAd,CAFA,CAGA;;AACAP,MAAAA,mBAAmB,GAAI,YAAYK,CAAnC;;AAEAD,MAAAA,uBAAuB,GAAGC,CAAC,CAACG,UAAF,CAAaC,MAAb,IAAuB,CAAvB,IAA6B,YAAW;AAChE;AACCf,QAAAA,QAAQ,CAACY,aAAV,CAAyB,GAAzB;AACA,YAAII,IAAI,GAAGhB,QAAQ,CAACiB,sBAAT,EAAX;AACA,eACE,OAAOD,IAAI,CAACE,SAAZ,IAAyB,WAAzB,IACA,OAAOF,IAAI,CAAC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AOjB,aAAP;AACD;AAED;;AAEA;;;;;;;;;;;AASA,MAAIlB,KAAK,GAAG;AAEV;;;;;AAKA,gBAAYD,OAAO,CAAC6B,QAAR,IAAoB,yLAPtB;;AASV;;;AAGA,eAAW9B,OAZD;;AAcV;;;;;AAKA,eAAYC,OAAO,CAACqD,OAAR,KAAoB,KAnBtB;;AAqBV;;;;;AAKA,+BAA2B7C,uBA1BjB;;AA4BV;;;;;;AAMA,mBAAgBR,OAAO,CAACiD,WAAR,KAAwB,KAlC9B;;AAoCV;;;;;AAKA,YAAQ,SAzCE;AA2CV;AACA,oBAAgBf,YA5CN;AA8CV;AACAxB,IAAAA,aAAa,EAAEA,aA/CL;AAiDV;AACAK,IAAAA,sBAAsB,EAAEA,sBAlDd;AAoDV;AACAgB,IAAAA,WAAW,EAAEA;AArDH,GAAZ;AAwDA;AAEA;;AACAlC,EAAAA,MAAM,CAACI,KAAP,GAAeA,KAAf,CAzT2B,CA2T3B;;AACAiC,EAAAA,YAAY,CAACpC,QAAD,CAAZ;;AAEA,MAAG,QAAOyD,MAAP,yCAAOA,MAAP,MAAiB,QAAjB,IAA6BA,MAAM,CAACC,OAAvC,EAA+C;AAC7CD,IAAAA,MAAM,CAACC,OAAP,GAAiBvD,KAAjB;AACD;AAEF,CAlUC,EAkUA,OAAOJ,MAAP,KAAkB,WAAlB,GAAgCA,MAAhC,SAlUA,EAkU+CC,QAlU/C,CAAD","sourcesContent":["/**\r\n* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed\r\n*/\r\n;(function(window, document) {\r\n/*jshint evil:true */\r\n /** version */\r\n var version = '3.7.3';\r\n\r\n /** Preset options */\r\n var options = window.html5 || {};\r\n\r\n /** Used to skip problem elements */\r\n var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;\r\n\r\n /** Not all elements can be cloned in IE **/\r\n 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;\r\n\r\n /** Detect whether the browser supports default html5 styles */\r\n var supportsHtml5Styles;\r\n\r\n /** Name of the expando, to work with multiple documents or to re-shiv one document */\r\n var expando = '_html5shiv';\r\n\r\n /** The id for the the documents expando */\r\n var expanID = 0;\r\n\r\n /** Cached data for each document */\r\n var expandoData = {};\r\n\r\n /** Detect whether the browser supports unknown elements */\r\n var supportsUnknownElements;\r\n\r\n (function() {\r\n try {\r\n var a = document.createElement('a');\r\n a.innerHTML = '';\r\n //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles\r\n supportsHtml5Styles = ('hidden' in a);\r\n\r\n supportsUnknownElements = a.childNodes.length == 1 || (function() {\r\n // assign a false positive if unable to shiv\r\n (document.createElement)('a');\r\n var frag = document.createDocumentFragment();\r\n return (\r\n typeof frag.cloneNode == 'undefined' ||\r\n typeof frag.createDocumentFragment == 'undefined' ||\r\n typeof frag.createElement == 'undefined'\r\n );\r\n }());\r\n } catch(e) {\r\n // assign a false positive if detection fails => unable to shiv\r\n supportsHtml5Styles = true;\r\n supportsUnknownElements = true;\r\n }\r\n\r\n }());\r\n\r\n /*--------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a style sheet with the given CSS text and adds it to the document.\r\n * @private\r\n * @param {Document} ownerDocument The document.\r\n * @param {String} cssText The CSS text.\r\n * @returns {StyleSheet} The style element.\r\n */\r\n function addStyleSheet(ownerDocument, cssText) {\r\n var p = ownerDocument.createElement('p'),\r\n parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;\r\n\r\n p.innerHTML = 'x';\r\n return parent.insertBefore(p.lastChild, parent.firstChild);\r\n }\r\n\r\n /**\r\n * Returns the value of `html5.elements` as an array.\r\n * @private\r\n * @returns {Array} An array of shived element node names.\r\n */\r\n function getElements() {\r\n var elements = html5.elements;\r\n return typeof elements == 'string' ? elements.split(' ') : elements;\r\n }\r\n\r\n /**\r\n * Extends the built-in list of html5 elements\r\n * @memberOf html5\r\n * @param {String|Array} newElements whitespace separated list or array of new element names to shiv\r\n * @param {Document} ownerDocument The context document.\r\n */\r\n function addElements(newElements, ownerDocument) {\r\n var elements = html5.elements;\r\n if(typeof elements != 'string'){\r\n elements = elements.join(' ');\r\n }\r\n if(typeof newElements != 'string'){\r\n newElements = newElements.join(' ');\r\n }\r\n html5.elements = elements +' '+ newElements;\r\n shivDocument(ownerDocument);\r\n }\r\n\r\n /**\r\n * Returns the data associated to the given document\r\n * @private\r\n * @param {Document} ownerDocument The document.\r\n * @returns {Object} An object of data.\r\n */\r\n function getExpandoData(ownerDocument) {\r\n var data = expandoData[ownerDocument[expando]];\r\n if (!data) {\r\n data = {};\r\n expanID++;\r\n ownerDocument[expando] = expanID;\r\n expandoData[expanID] = data;\r\n }\r\n return data;\r\n }\r\n\r\n /**\r\n * returns a shived element for the given nodeName and document\r\n * @memberOf html5\r\n * @param {String} nodeName name of the element\r\n * @param {Document|DocumentFragment} ownerDocument The context document.\r\n * @returns {Object} The shived element.\r\n */\r\n function createElement(nodeName, ownerDocument, data){\r\n if (!ownerDocument) {\r\n ownerDocument = document;\r\n }\r\n if(supportsUnknownElements){\r\n return ownerDocument.createElement(nodeName);\r\n }\r\n if (!data) {\r\n data = getExpandoData(ownerDocument);\r\n }\r\n var node;\r\n\r\n if (data.cache[nodeName]) {\r\n node = data.cache[nodeName].cloneNode();\r\n } else if (saveClones.test(nodeName)) {\r\n node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();\r\n } else {\r\n node = data.createElem(nodeName);\r\n }\r\n\r\n // Avoid adding some elements to fragments in IE < 9 because\r\n // * Attributes like `name` or `type` cannot be set/changed once an element\r\n // is inserted into a document/fragment\r\n // * Link elements with `src` attributes that are inaccessible, as with\r\n // a 403 response, will cause the tab/window to crash\r\n // * Script elements appended to fragments will execute when their `src`\r\n // or `text` property is set\r\n return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;\r\n }\r\n\r\n /**\r\n * returns a shived DocumentFragment for the given document\r\n * @memberOf html5\r\n * @param {Document} ownerDocument The context document.\r\n * @returns {Object} The shived DocumentFragment.\r\n */\r\n function createDocumentFragment(ownerDocument, data){\r\n if (!ownerDocument) {\r\n ownerDocument = document;\r\n }\r\n if(supportsUnknownElements){\r\n return ownerDocument.createDocumentFragment();\r\n }\r\n data = data || getExpandoData(ownerDocument);\r\n var clone = data.frag.cloneNode(),\r\n i = 0,\r\n elems = getElements(),\r\n l = elems.length;\r\n for(;i