Comparing version 2.0.9 to 2.0.10
@@ -23,3 +23,3 @@ { | ||
"tag": "1.0.0", | ||
"commit": "48431ed53b0693b71a5c8e7d6157909de074616c" | ||
"commit": "59eace192aa327622f45af7738c019fab2ddba53" | ||
}, | ||
@@ -26,0 +26,0 @@ "_source": "git@github.com:mobify/imageresize-client.git", |
@@ -9,3 +9,3 @@ (function (root, factory) { | ||
// like Node. | ||
module.exports = factory(require('./utils.js')); | ||
module.exports = factory(require('../mobifyjs-utils/utils.js')); | ||
} else { | ||
@@ -129,2 +129,6 @@ // Browser globals (root is window) | ||
if (opts.cacheBreaker) { | ||
bits.push('cb' + opts.cacheBreaker); | ||
} | ||
if (opts.cacheHours) { | ||
@@ -131,0 +135,0 @@ bits.push('c' + opts.cacheHours); |
@@ -24,3 +24,3 @@ { | ||
"tag": "1.0.0", | ||
"commit": "6d5660bde594ec4c5e2f8df97508fef1efbb1244" | ||
"commit": "d86b79d11173d1ba09c4cf1b746bfac9fcba9785" | ||
}, | ||
@@ -27,0 +27,0 @@ "_source": "git@github.com:mobify/jazzcat-client.git", |
{ | ||
"name": "jazzcat-client", | ||
"version": "2.0.6", | ||
"version": "1.0.0", | ||
"main": "jazzcat.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -32,3 +32,3 @@ /** | ||
// like Node. | ||
var Utils = require('./utils.js'); | ||
var Utils = require('../mobifyjs-utils/utils.js'); | ||
module.exports = factory(Utils); | ||
@@ -341,2 +341,4 @@ } else { | ||
Jazzcat.optimizeScripts = function(scripts, options) { | ||
options = options || {}; | ||
if (options && options.cacheOverrideTime !== undefined) { | ||
@@ -346,2 +348,3 @@ Utils.extend(httpCache.options, | ||
} | ||
scripts = Array.prototype.slice.call(scripts); | ||
@@ -355,8 +358,11 @@ | ||
options = Utils.extend({}, Jazzcat.defaults, options || {}); | ||
var jsonp = (options.responseType === 'jsonp'); | ||
var concat = options.concat; | ||
// A Boolean to control whether the loader is inlined into the document, | ||
// or only added to the returned scripts array | ||
var inlineLoader = ((options.inlineLoader !== undefined) ? | ||
options.inlineLoader: true); | ||
// helper method for inserting the loader script | ||
// before the first uncached script in the "uncached" array | ||
var insertLoader = function(script, urls) { | ||
var insertLoaderInContainingElement = function(script, urls) { | ||
if (script) { | ||
@@ -368,2 +374,8 @@ var loader = Jazzcat.getLoaderScript(urls, options); | ||
}; | ||
// helper for appending loader script into an array before the | ||
// referenced script | ||
var appendLoaderForScriptsToArray = function(array, urls) { | ||
var loader = Jazzcat.getLoaderScript(urls, options); | ||
array.push(loader); | ||
}; | ||
@@ -374,10 +386,15 @@ var url; | ||
firstScript: undefined, | ||
urls: [] | ||
urls: [], | ||
scripts: [] | ||
}, | ||
'body': { | ||
firstScript: undefined, | ||
urls: [] | ||
urls: [], | ||
scripts: [] | ||
} | ||
}; | ||
// an array to accumulate resulting scripts in and later return | ||
var resultScripts = []; | ||
for (var i=0, len=scripts.length; i<len; i++) { | ||
@@ -393,6 +410,11 @@ var script = scripts[i]; | ||
// skip if the script is inline | ||
// skip if modifying inline, append to results otherwise | ||
url = script.getAttribute(options.attribute); | ||
if (!url) { | ||
continue; | ||
if (inlineLoader) { | ||
continue; | ||
} else { | ||
resultScripts.push(script); | ||
continue; | ||
} | ||
} | ||
@@ -406,7 +428,12 @@ url = Utils.absolutify(url); | ||
// Load what we have in http cache, and insert loader into document | ||
if (jsonp && !Jazzcat.cacheLoaderInserted) { | ||
// Load what we have in http cache, and insert loader into document | ||
// or result array | ||
if (!Jazzcat.cacheLoaderInserted) { | ||
httpCache.load(httpCache.options); | ||
var httpLoaderScript = Jazzcat.getHttpCacheLoaderScript(); | ||
script.parentNode.insertBefore(httpLoaderScript, script); | ||
var httpLoaderScript = Jazzcat.getHttpCacheLoaderScript(options); | ||
if (inlineLoader) { | ||
script.parentNode.insertBefore(httpLoaderScript, script); | ||
} else { | ||
resultScripts.push(httpLoaderScript); | ||
} | ||
// ensure this doesn't happen again for this page load | ||
@@ -416,45 +443,48 @@ Jazzcat.cacheLoaderInserted = true; | ||
var parent = (script.parentNode.nodeName === "HEAD" ? "head" : "body"); | ||
var parent; | ||
if (inlineLoader) { | ||
parent = (script.parentNode.nodeName === "HEAD" ? "head" : "body"); | ||
} else { | ||
// If we're not going to use the inline loader, we'll do | ||
// something terrible and put everything into the head bucket | ||
parent = 'head'; | ||
} | ||
if (jsonp) { | ||
// if: the script is not in the cache (or not jsonp), add a loader | ||
// else: queue for concatenation | ||
if (!httpCache.get(url)) { | ||
if (!concat) { | ||
insertLoader(script, [url]); | ||
// if: the script is not in the cache, add a loader | ||
// else: queue for concatenation | ||
if (!httpCache.get(url)) { | ||
if (!concat) { | ||
if (inlineLoader) { | ||
insertLoaderInContainingElement(script, [url]); | ||
} else { | ||
appendLoaderForScriptsToArray(resultScripts, [url]); | ||
} | ||
else { | ||
if (toConcat[parent].firstScript === undefined) { | ||
toConcat[parent].firstScript = script; | ||
} | ||
toConcat[parent].urls.push(url); | ||
} | ||
} | ||
script.type = 'text/mobify-script'; | ||
// Rewriting script to grab contents from our in-memory cache | ||
// ex. <script>Jazzcat.exec("http://code.jquery.com/jquery.js")</script> | ||
if (script.hasAttribute('onload')){ | ||
var onload = script.getAttribute('onload'); | ||
script.innerHTML = options.execCallback + "('" + url + "', '" + onload.replace(/'/g, '\\\'') + "');"; | ||
script.removeAttribute('onload'); | ||
} else { | ||
script.innerHTML = options.execCallback + "('" + url + "');"; | ||
} | ||
// Remove the src attribute | ||
script.removeAttribute(options.attribute); | ||
} | ||
else { | ||
if (!concat) { | ||
var jazzcatUrl = Jazzcat.getURL([url], options); | ||
script.setAttribute(options.attribute, jazzcatUrl); | ||
} | ||
else { | ||
toConcat[parent].urls.push(url); | ||
// Remember details of first uncached script | ||
if (toConcat[parent].firstScript === undefined) { | ||
toConcat[parent].firstScript = script; | ||
var firstUncachedScriptIndex = resultScripts.length; | ||
} | ||
toConcat[parent].urls.push(url); | ||
} | ||
} | ||
script.type = 'text/mobify-script'; | ||
// Rewriting script to grab contents from our in-memory cache | ||
// ex. <script>Jazzcat.exec("http://code.jquery.com/jquery.js")</script> | ||
if (script.hasAttribute('onload')){ | ||
var onload = script.getAttribute('onload'); | ||
script.innerHTML = options.execCallback + "('" + url + "', '" + onload.replace(/'/g, '\\\'') + "');"; | ||
script.removeAttribute('onload'); | ||
} else { | ||
script.innerHTML = options.execCallback + "('" + url + "');"; | ||
} | ||
// Remove the src attribute | ||
script.removeAttribute(options.attribute); | ||
// Enqueue the script to be returned | ||
if (!inlineLoader) { | ||
resultScripts.push(script); | ||
} | ||
} | ||
@@ -464,13 +494,12 @@ // insert the loaders for uncached head and body scripts if | ||
if (concat) { | ||
insertLoader(toConcat['head'].firstScript, toConcat['head'].urls); | ||
insertLoader(toConcat['body'].firstScript, toConcat['body'].urls); | ||
} | ||
// if responseType is js and we are concatenating, remove original scripts | ||
if (!jsonp && concat) { | ||
for (var i=0, len=scripts.length; i<len; i++) { | ||
var script = scripts[i]; | ||
// Only remove scripts if they are external | ||
if (script.getAttribute(options.attribute)) { | ||
script.parentNode.removeChild(script); | ||
if (inlineLoader) { | ||
insertLoaderInContainingElement(toConcat['head'].firstScript, | ||
toConcat['head'].urls); | ||
insertLoaderInContainingElement(toConcat['body'].firstScript, | ||
toConcat['body'].urls); | ||
} else { | ||
// splice in loader for uncached scripts if there are any | ||
if (firstUncachedScriptIndex) { | ||
var loader = Jazzcat.getLoaderScript(toConcat['head'].urls, options); | ||
resultScripts.splice(firstUncachedScriptIndex, 0, loader); | ||
} | ||
@@ -480,3 +509,8 @@ } | ||
return scripts; | ||
// If the loader was inlined, return the original set of scripts | ||
if (inlineLoader) { | ||
return scripts; | ||
} | ||
// Otherwise return the generated list | ||
return resultScripts; | ||
}; | ||
@@ -488,8 +522,8 @@ | ||
*/ | ||
Jazzcat.getHttpCacheLoaderScript = function() { | ||
Jazzcat.getHttpCacheLoaderScript = function(options) { | ||
var loadFromCacheScript = document.createElement('script'); | ||
loadFromCacheScript.type = 'text/mobify-script'; | ||
loadFromCacheScript.innerHTML = (httpCache.options.overrideTime ? | ||
"Jazzcat.httpCache.load(" + JSON.stringify(httpCache.options) + ");" : | ||
"Jazzcat.httpCache.load();" ); | ||
options.cacheLoadCallback + "(" + JSON.stringify(httpCache.options) + ");" : | ||
options.cacheLoadCallback + "();" ); | ||
@@ -527,5 +561,6 @@ return loadFromCacheScript; | ||
(options.projectName ? '/project-' + options.projectName : '') + | ||
(options.cacheBreaker ? '/cb' + options.cacheBreaker : '') + | ||
'/' + options.responseType + | ||
(options.responseType === 'jsonp' ? '/' + options.loadCallback : '') + | ||
'/' + encodeURIComponent(JSON.stringify(urls.slice().sort())); // TODO only sort for jsonp | ||
'/' + encodeURIComponent(JSON.stringify(urls.slice().sort())); | ||
}; | ||
@@ -622,2 +657,4 @@ | ||
loadCallback: 'Jazzcat.load', | ||
cacheLoadCallback: 'Jazzcat.httpCache.load', | ||
inlineLoader: 'true', | ||
concat: false, | ||
@@ -628,2 +665,2 @@ projectName: '', | ||
return Jazzcat; | ||
})); | ||
})); |
@@ -19,3 +19,3 @@ { | ||
"tag": "1.0.0", | ||
"commit": "89d52e45b6a27645ba6e13e96686256157b0639c" | ||
"commit": "671864cf97e170e8b524cc1fed26a6218b92a307" | ||
}, | ||
@@ -22,0 +22,0 @@ "_source": "git@github.com:mobify/mobifyjs-utils.git", |
{ | ||
"name": "mobifyjs", | ||
"version": "2.0.8", | ||
"version": "2.0.10", | ||
"main": "build/mobify.min.js", | ||
"dependencies": { | ||
"mobifyjs-utils": "git@github.com:mobify/mobifyjs-utils.git#1.0.0", | ||
"jazzcat-client": "git@github.com:mobify/jazzcat-client.git#1.0.0", | ||
"imageresize-client": "git@github.com:mobify/imageresize-client.git#1.0.0" | ||
}, | ||
"devDependencies": { | ||
}, | ||
"ignore": [ | ||
@@ -6,0 +14,0 @@ "node_modules", |
@@ -1,1 +0,1 @@ | ||
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a){var b=a("./src/mobify-library"),c=window.Mobify&&window.Mobify.capturing||!1;c&&b.Capture.initCapture(function(a){var c=a.capturedDoc,d=c.querySelectorAll("img, picture");b.ResizeImages.resize(d),a.renderCapturedDoc()})},{"./src/mobify-library":6}],2:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/patchAnchorLinks"],e):"object"==typeof c?b.exports=e(a("./utils.js"),a("./patchAnchorLinks.js")):d.Capture=e(d.Utils,d.patchAnchorLinks)}(this,function(a,b){function c(a){return a.nodeName.toLowerCase()}function d(a){return a.replace('"',""")}function e(b){return b?[].map.call(b.childNodes,function(b){var d=c(b);return"#comment"==d?"<!--"+b.textContent+"-->":"plaintext"==d?b.textContent:"script"==d&&(/mobify/.test(b.src)||/mobify/i.test(b.textContent))?"":b.outerHTML||b.nodeValue||a.outerHTML(b)}).join(""):""}window.Mobify&&!window.Mobify.capturing&&document.getElementsByTagName("plaintext").length&&(window.Mobify.capturing=!0);var f=/(<script[\s\S]*?>)/gi,g={style:' media="mobify-media"',script:' type="text/mobify-script"'},h=new RegExp(a.values(g).join("|"),"g"),i={img:["src"],source:["src"],iframe:["src"],script:["src","type"],link:["href"],style:["media"]},j=new RegExp("<("+a.keys(i).join("|")+")([\\s\\S]*?)>","gi"),k={},l={};for(var m in i)if(i.hasOwnProperty(m)){var n=i[m];n.forEach(function(a){l[a]=!0}),k[m]=new RegExp("\\s+((?:"+n.join("|")+")\\s*=\\s*(?:('|\")[\\s\\S]+?\\2))","gi")}var o=document.createElement("div"),p=function(a,b){this.sourceDoc=a,this.prefix=b||"x-",window.Mobify&&(window.Mobify.prefix=this.prefix)};return p.init=p.initCapture=function(b,c,d){var c=c||document,e=function(b,c,d){var e=new p(c,d),f=p.createDocumentFragmentsStrings(e.sourceDoc);a.extend(e,f);var g=e.createDocumentFragments();a.extend(e,g),b(e)};if(a.domIsReady(c))e(b,c,d);else{var f=!1,g=function(){f||(f=!0,h&&clearInterval(h),e(b,c,d))},h=setInterval(function(){a.domIsReady(c)&&g()},100);c.addEventListener("readystatechange",g,!1)}},p.removeClosingTagsAtEndOfString=function(a){var b=a.match(/((<\/[^>]+>)+)$/);return b?a.substring(0,a.length-b[0].length):a},p.removeTargetSelf=function(a){return a.replace(/target=("_self"|\'_self\')/gi,"")},p.cloneAttributes=function(a,b){var c=a.match(/^<(\w+)([\s\S]*)$/i);return o.innerHTML="<div"+c[2],[].forEach.call(o.firstChild.attributes,function(a){try{b.setAttribute(a.nodeName,a.nodeValue)}catch(c){console.error("Error copying attributes while capturing: ",c)}}),b},p.disable=function(a,b){var c=function(){return function(a,c,d){return lowercaseTagName=c.toLowerCase(),result="<"+lowercaseTagName+(g[lowercaseTagName]||"")+d.replace(k[lowercaseTagName]," "+b+"$1")+">"}}(),d=/(<!--[\s\S]*?-->)|(?=<\/script)/i,e=a.split(d),h=e.map(function(a){var b;return a?/^<!--/.test(a)?a:(b=a.split(f),b[0]=b[0].replace(j,c),b[1]&&(b[1]=b[1].replace(j,c)),b):""});return[].concat.apply([],h).join("")},p.enable=function(b,c){var d=new RegExp("\\s"+c+"("+a.keys(l).join("|")+")","gi");return b.replace(d," $1").replace(h,"")},p.openTag=function(a){if(!a)return"";a.length&&(a=a[0]);var b=[];return[].forEach.call(a.attributes,function(a){b.push(" ",a.name,'="',d(a.value),'"')}),"<"+c(a)+b.join("")+">"},p.setElementContentFromString=function(a,b){for(o.innerHTML=b;o.firstChild;a.appendChild(o.firstChild));},p.createDocumentFragmentsStrings=function(b){var c=b.getElementsByTagName("head")[0]||b.createElement("head"),d=b.getElementsByTagName("body")[0]||b.createElement("body"),f=b.getElementsByTagName("html")[0];captured={doctype:a.getDoctype(b),htmlOpenTag:p.openTag(f),headOpenTag:p.openTag(c),bodyOpenTag:p.openTag(d),headContent:e(c),bodyContent:e(d)},captured.all=function(a){return this.doctype+this.htmlOpenTag+this.headOpenTag+(a||"")+this.headContent+this.bodyContent};var g=/<!--(?:[\s\S]*?)-->|(<\/head\s*>|<body[\s\S]*$)/gi,h=captured.bodyContent=captured.headContent+captured.bodyContent;captured.headContent="";for(var i;i=g.exec(h);i)if(i[1]){captured.headContent=h.slice(0,i.index);var j=new RegExp("^[\\s\\S]*(<head(?:[^>'\"]*|'[^']*?'|\"[^\"]*?\")*>)([\\s\\S]*)$").exec(captured.headContent);if(j&&(captured.headOpenTag=j[1],captured.headContent=j[2]),"/"!=i[1][1]){captured.bodyContent=i[0];var k=/^((?:[^>'"]*|'[^']*?'|"[^"]*?")*>)([\s\S]*)$/.exec(captured.bodyContent);k&&(captured.bodyOpenTag=k[1],captured.bodyContent=k[2]);break}captured.bodyContent=h.slice(i.index+i[1].length)}return captured},p.prototype.restore=function(){var b=this,c=b.sourceDoc,d=function(){c.removeEventListener("readystatechange",d,!1),setTimeout(function(){c.open(),c.write(b.all()),c.close()},15)};a.domIsReady(c)?d():c.addEventListener("readystatechange",d,!1)},p.prototype.createDocumentFragments=function(){var a={},b=a.capturedDoc=document.implementation.createHTMLDocument(""),c=a.htmlEl=b.documentElement,d=a.headEl=c.firstChild,e=a.bodyEl=c.lastChild;p.cloneAttributes(this.htmlOpenTag,c),p.cloneAttributes(this.headOpenTag,d),p.cloneAttributes(this.bodyOpenTag,e),e.innerHTML=p.disable(this.bodyContent,this.prefix);var f=b.querySelectorAll("head");if(f.length>1)for(;f[1].hasChildNodes();)f[1].removeChild(f[1].lastChild);var g=p.disable(this.headContent,this.prefix);try{d.innerHTML=g}catch(h){var i=d.getElementsByTagName("title")[0];i&&d.removeChild(i),p.setElementContentFromString(d,g)}return a},p.prototype.enabledHTMLString=p.prototype.escapedHTMLString=function(){var b=this.capturedDoc,c=p.enable(a.outerHTML(b.documentElement),this.prefix),d=this.doctype+c;return d},p.prototype.render=function(a){var b;b=a?p.enable(a,this.prefix):this.enabledHTMLString();var c=this.sourceDoc;window.Mobify&&(window.Mobify.capturing=!1),setTimeout(function(){c.open("text/html","replace"),c.write(b),c.close()})},p.prototype.getCapturedDoc=function(){return this.capturedDoc},p.getMobifyLibrary=function(a){var a=a||document,b=a.getElementById("mobify-js");return b||(b=a.getElementsByTagName("script")[0],b.id="mobify-js",b.setAttribute("class","mobify")),b},p.getPostload=function(a){var a=a||document,b=void 0,c=window.Mobify.Tag&&window.Mobify.Tag.options&&window.Mobify.Tag.getOptions(Mobify.Tag.options)||{},d=c.post&&c.post.toString()||window.Mobify.mainExecutable;return d?(b=document.createElement("script"),b.innerHTML="var postload = "+d+"; postload();",b.id="postload",b.setAttribute("class","mobify")):b=a.getElementById("main-executable"),b},p.insertMobifyScripts=function(a,b){var c=p.getMobifyLibrary(a),d=b.head||b.getElementsByTagName("head")[0];if(d){var e=p.getPostload(a);if(e){var f=b.importNode(e,!1);e.src||(f.innerHTML=e.innerHTML),d.insertBefore(f,d.firstChild)}var g=b.importNode(c,!1);d.insertBefore(g,d.firstChild)}},p.prototype.renderCapturedDoc=function(){if(p.insertMobifyScripts(this.sourceDoc,this.capturedDoc),window.Mobify&&window.Mobify.points){var a=this.bodyEl,b=this.capturedDoc.createElement("div");b.id="mobify-point",b.setAttribute("style","display: none;"),b.innerHTML=window.Mobify.points[0],a.insertBefore(b,a.firstChild)}this.render()},p.patchAnchorLinks=b,p})},{"./patchAnchorLinks.js":7,"./utils.js":10}],3:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("./utils.js");b.exports=e(f)}else d.CssOptimize=e(d.Utils)}(this,function(a){var b=window.cssOptimize={};b.getCssUrl=function(b,d){var e=a.extend({},c,d),f=[e.protoAndHost];return e.projectName&&f.push("project-"+e.projectName),f.push(e.endpoint),f.push(b),f.join("/")},b._rewriteHref=function(c,d){var e,f=c.getAttribute(d.targetAttribute);f&&(e=a.absolutify(f),a.httpUrl(e)&&(c.setAttribute("data-orig-href",f),c.setAttribute(d.targetAttribute,b.getCssUrl(e,d)),d.onerror&&c.setAttribute("onerror",d.onerror)))},b.optimize=function(d,e){for(var f,g=a.extend({},c,e),h=0,i=d.length;i>h;h++)f=d[h],"LINK"===f.nodeName&&"stylesheet"===f.getAttribute("rel")&&f.getAttribute(g.targetAttribute)&&!f.hasAttribute("mobify-optimized")&&(f.setAttribute("mobify-optimized",""),b._rewriteHref(f,g))};var c=(b.restoreOriginalHref=function(a){var b;a.target.removeAttribute("onerror"),(b=a.target.getAttribute("data-orig-href"))&&a.target.setAttribute("href",b)},b._defaults={protoAndHost:"//jazzcat.mobify.com",endpoint:"cssoptimizer",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),targetAttribute:"x-href",onerror:"Mobify.CssOptimize.restoreOriginalHref(event);"});return b})},{"./utils.js":10}],4:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/capture"],e):"object"==typeof c&&(b.exports=e(a("../utils.js"),a("../capture.js")))}(this,function(a,b){var c=window.Mobify&&window.Mobify.capturing||!1;if(c){var d=b.prototype.renderCapturedDoc;return void(b.prototype.renderCapturedDoc=function(){for(var a=this.capturedDoc.querySelectorAll("picture img"),b=0,c=a.length;c>b;b++){var e=a[b],f=window.Mobify&&window.Mobify.prefix+"src";e.setAttribute("data-orig-src",e.getAttribute(f)),e.removeAttribute(f)}d.apply(this,arguments)})}window.matchMedia=window.matchMedia||a.matchMedia(document),function(a){"use strict";var b,c=!1||a.localStorage&&"true"===a.localStorage["picturefill-prefHD"];a.document.createElement("picture")&&a.document.createElement("source")&&a.HTMLPictureElement||(a.picturefill=function(){for(var d=a.document.getElementsByTagName("picture"),e=0,f=d.length;f>e;e++){var g=d[e].getElementsByTagName("source"),h=null,i=[];if(!g.length){var j=d[e].innerHTML,k=a.document.createElement("div"),l=j.replace(/(<)source([^>]+>)/gim,"$1div$2").match(/<div[^>]+>/gim);k.innerHTML=l.join(""),g=k.getElementsByTagName("div")}for(var m=0,n=g.length;n>m;m++){var o=g[m].getAttribute("media");(!o||a.matchMedia&&a.matchMedia(o).matches)&&i.push(g[m])}if(h=d[e].getElementsByTagName("img")[0],i.length){var p=i.pop(),q=p.getAttribute("srcset");if(h||(h=a.document.createElement("img"),h.alt=d[e].getAttribute("alt"),d[e].appendChild(h)),q){var r=c&&a.devicePixelRatio||1,g=q.split(",");b=a.devicePixelRatio>1;for(var s=g.length,t=s-1;t>=0;t--){var u=g[t].replace(/^\s*/,"").replace(/\s*$/,"").split(" "),v=parseFloat(u[1],10);if(r>=v){if(h.getAttribute("src")!==u[0]){var w=document.createElement("img");w.src=u[0],w.onload=function(){this.width=this.cloneNode(!0).width/v},h.parentNode.replaceChild(w,h)}break}}}else h.src=p.getAttribute("src")}}},a.addEventListener?(a.addEventListener("resize",a.picturefill,!1),a.addEventListener("DOMContentLoaded",function(){a.picturefill(),a.removeEventListener("load",a.picturefill,!1)},!1),a.addEventListener("load",a.picturefill,!1)):a.attachEvent&&a.attachEvent("onload",a.picturefill))}(this)})},{"../capture.js":2,"../utils.js":10}],5:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("./utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b={cache:{},options:{},utils:{}},c="Mobify-Jazzcat-Cache-v1.0";b.reset=function(a){b.cache=a||{}},b.get=function(a,c){var d=b.cache[a.split("#")[0]];return d&&c&&(d.lastUsed=Date.now()),d},b.set=function(a,c){b.cache[a]=c},b.load=function(a){var d,e,f=localStorage.getItem(c);if(a&&void 0!==a.overrideTime&&(e={overrideTime:a.overrideTime}),f){try{f=JSON.parse(f)}catch(g){return}for(d in f)f.hasOwnProperty(d)&&!b.utils.isStale(f[d],e)&&b.set(d,f[d])}};var d=!0;b.save=function(e){var f,g=10;return d?(d=!1,void function h(){var i=function(){var i,j,k,l=9007199254740991;f=f||a.clone(b.cache);try{j=JSON.stringify(f)}catch(m){return d=!0,e&&e(m)}try{localStorage.setItem(c,j)}catch(m){if(!--g)return d=!0,e&&e(m);for(var n in f)if(f.hasOwnProperty(n)){if(i=f[n],!i.lastUsed){k=n,l=0;break}i.lastUsed<=l&&(k=n,l=i.lastUsed)}return delete f[k],h()}d=!0,e&&e()};a.domIsReady()?i():setTimeout(h,15)}()):e&&e("Save currently in progress")};var e=/^\s*(public|private|no-cache|no-store)\s*$/,f=/^\s*(max-age)\s*=\s*(\d+)\s*$/;b.utils.ccParse=function(a){var b,c={};return a.split(",").forEach(function(a){(b=e.exec(a))?c[b[1]]=!0:(b=f.exec(a))&&(c[b[1]]=parseInt(b[2],10))}),c},b.utils.isStale=function(a,c){var d,e,f,g,h=864e5,i=a.headers||{},j=i["cache-control"],k=Date.now(),l=Date.parse(i.date),m=i["last-modified"];return l&&l+6e5>k?!1:c&&(g=c.overrideTime)&&l?k>l+60*g*1e3:j&&l?(j=b.utils.ccParse(j),!j["max-age"]||j["no-store"]||j["no-cache"]?!0:k>l+1e3*j["max-age"]):i.expires&&(d=Date.parse(i.expires))?k>d:m&&(m=Date.parse(m))&&l&&(f=l-m,e=k-l,.1*f>e&&h>e)?!1:!0};var g=window.Jazzcat={httpCache:b,write:document.write};g.isIncompatibleBrowser=function(b){var c=/(firefox)[\/\s](\d+)|(opera[\s\S]*version[\/\s](11|12))/i.exec(b||navigator.userAgent);return c&&c[1]&&+c[2]<12||c&&c[3]||!a.supportsLocalStorage()||!window.JSON?!0:!1},g.cacheLoaderInserted=!1,g.optimizeScripts=function(c,d){if(d&&void 0!==d.cacheOverrideTime&&a.extend(b.options,{overrideTime:d.cacheOverrideTime}),c=Array.prototype.slice.call(c),!c.length||g.isIncompatibleBrowser())return c;d=a.extend({},g.defaults,d||{});for(var e,f="jsonp"===d.responseType,h=d.concat,i=function(a,b){if(a){var c=g.getLoaderScript(b,d);a.parentNode.insertBefore(c,a)}},j={head:{firstScript:void 0,urls:[]},body:{firstScript:void 0,urls:[]}},k=0,l=c.length;l>k;k++){var m=c[k];if(!(m.hasAttribute("mobify-optimized")||m.hasAttribute("skip-optimize")||/mobify/i.test(m.className))&&(e=m.getAttribute(d.attribute),e&&(e=a.absolutify(e),a.httpUrl(e)))){if(f&&!g.cacheLoaderInserted){b.load(b.options);var n=g.getHttpCacheLoaderScript();m.parentNode.insertBefore(n,m),g.cacheLoaderInserted=!0}var o="HEAD"===m.parentNode.nodeName?"head":"body";if(f){if(b.get(e)||(h?(void 0===j[o].firstScript&&(j[o].firstScript=m),j[o].urls.push(e)):i(m,[e])),m.type="text/mobify-script",m.hasAttribute("onload")){var p=m.getAttribute("onload");m.innerHTML=d.execCallback+"('"+e+"', '"+p.replace(/'/g,"\\'")+"');",m.removeAttribute("onload")}else m.innerHTML=d.execCallback+"('"+e+"');";m.removeAttribute(d.attribute)}else if(h)void 0===j[o].firstScript&&(j[o].firstScript=m),j[o].urls.push(e);else{var q=g.getURL([e],d);m.setAttribute(d.attribute,q)}}}if(h&&(i(j.head.firstScript,j.head.urls),i(j.body.firstScript,j.body.urls)),!f&&h)for(var k=0,l=c.length;l>k;k++){var m=c[k];m.getAttribute(d.attribute)&&m.parentNode.removeChild(m)}return c},g.getHttpCacheLoaderScript=function(){var a=document.createElement("script");return a.type="text/mobify-script",a.innerHTML=b.options.overrideTime?"Jazzcat.httpCache.load("+JSON.stringify(b.options)+");":"Jazzcat.httpCache.load();",a},g.getLoaderScript=function(a,b){var c;return a&&a.length&&(c=document.createElement("script"),c.setAttribute("mobify-optimized",""),c.setAttribute(b.attribute,g.getURL(a,b))),c},g.getURL=function(b,c){var c=a.extend({},g.defaults,c||{});return c.base+(c.projectName?"/project-"+c.projectName:"")+"/"+c.responseType+("jsonp"===c.responseType?"/"+c.loadCallback:"")+"/"+encodeURIComponent(JSON.stringify(b.slice().sort()))};var h=/(<\/scr)(ipt\s*>)/gi;return g.exec=function(a,c){var d,e=b.get(a,!0),f="";c?(c=";"+c+";",f=' onload="'+c+'"'):c="",e?(d='data-orig-src="'+a+'"',d+=">"+e.body.replace(h,"$1\\$2")+c):d='src="'+a+'"'+f+">",g.write.call(document,"<script "+d+"</script>")},g.load=function(a){var c,d=0,e=!1;if(a){for(;c=a[d++];)"ready"==c.status&&c.statusCode>=200&&c.statusCode<300&&(e=!0,b.set(encodeURI(c.url),c));e&&b.save()}},g.defaults={selector:"script",attribute:"x-src",base:"//jazzcat.mobify.com",responseType:"jsonp",execCallback:"Jazzcat.exec",loadCallback:"Jazzcat.load",concat:!1,projectName:""},g})},{"./utils.js":10}],6:[function(a,b,c){!function(d,e){if("function"==typeof a&&"function"==typeof define&&define.amd)a(["mobifyjs/utils","mobifyjs/capture","mobifyjs/resizeImages","mobifyjs/jazzcat","mobifyjs/unblockify","mobifyjs/cssOptimize","mobifyjs/external/picturefill"],e,void 0,!0);else if("object"==typeof c){var f=a("./utils"),g=a("./capture"),h=a("./resizeImages"),i=a("./jazzcat"),j=a("./cssOptimize"),k=a("./unblockify");a("./external/picturefill"),b.exports=e(f,g,h,i,k,j)}}(this,function(a,b,c,d,e,f){var g=window.Mobify=window.Mobify||{};return g.Utils=a,g.Capture=b,g.ResizeImages=c,g.Jazzcat=d,g.CssOptimize=f,g.Unblockify=e,g.api="2.0",g})},{"./capture":2,"./cssOptimize":3,"./external/picturefill":4,"./jazzcat":5,"./resizeImages":8,"./unblockify":9,"./utils":10}],7:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("./utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b=function(a){return a=window.navigator.userAgent,/firefox|fennec/i.test(a)},c=function(a){var b=a.body;if(b&&b.addEventListener){var c=function(a){var b=a.target,c=function(a){return"A"==a.nodeName&&/^#/.test(a.getAttribute("href"))};if(c(b)){var e="undefined"!=typeof a.defaultPrevented?a.defaultPrevented:a.getPreventDefault&&a.getPreventDefault();if(!e){a.preventDefault(),a.defaultPrevented=!1;var f=!0;a.preventDefault=function(){a.defaultPrevented=!0,f=!1},setTimeout(function(){f&&d(b.getAttribute("href"))},50)}}},d=function(b){var c,d=/^#([^\s]*)/,e=b.match(d);if(e&&""===e[1])c=a.body;else if(e&&e[1])var c=a.getElementById(e[1]);c&&c.scrollIntoView&&c.scrollIntoView()};b.addEventListener("click",c,!1)}},d=function(){b()&&a.waitForReady(document,c)};return d})},{"./utils.js":10}],8:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils"],e):"object"==typeof c?b.exports=e(a("./utils.js")):d.ResizeImages=e(d.Utils)}(this,function(a){function b(b){if(a.supportsLocalStorage()){var c={supported:b,date:Date.now()};localStorage.setItem(d,JSON.stringify(c))}}var c=window.ResizeImages={},d="Mobify-Webp-Support-v2";c.userAgentWebpDetect=function(a){var b=/(Android\s|Chrome\/|Opera9.8*Version\/..\.|Opera..\.)/i,c=new RegExp("(Android\\s(0|1|2|3|(4(?!.*Chrome)))\\.)|(Chrome\\/[0-8]\\.)|(Chrome\\/9\\.0\\.)|(Chrome\\/1[4-6]\\.)|(Android\\sChrome\\/1.\\.)|(Android\\sChrome\\/20\\.)|(Chrome\\/(1.|20|21|22)\\.)|(Opera.*(Version/|Opera\\s)(10|11)\\.)","i");return b.test(a)?c.test(a)?!1:!0:!1},c.dataUriWebpDetect=function(a){var c=new Image;c.onload=function(){var d=1===c.width?!0:!1;b(d),a&&a(d)},c.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQABgBwlpAADcAD+/gbQAA=="},c.supportsWebp=function(e){if(a.supportsLocalStorage()){var f,g=localStorage.getItem(d);if(g&&(f=JSON.parse(g)),f&&Date.now()-f.date<6048e5)return f.supported}c.dataUriWebpDetect(e);var h=c.userAgentWebpDetect(navigator.userAgent);return b(h),h},c.getImageURL=function(a,b){var d=b;d||(d=c.processOptions());var e=[d.proto+d.host];if(d.projectName){var f="project-"+d.projectName;e.push(f)}return d.cacheHours&&e.push("c"+d.cacheHours),d.format?e.push(d.format+(d.quality||"")):d.quality&&e.push("q"+d.quality),d.maxWidth&&(e.push(d.maxWidth),d.maxHeight&&e.push(d.maxHeight)),e.push(a),e.join("/")},c._rewriteSrcAttribute=function(b,d,e){if(e=b.getAttribute(d.sourceAttribute)||e){var g=a.absolutify(e);a.httpUrl(g)&&(d.onerror&&b.setAttribute("onerror",d.onerror),b.setAttribute(d.targetAttribute,c.getImageURL(g,d)),b.setAttribute("data-orig-src",e),f||d.sourceAttribute==d.targetAttribute||b.removeAttribute(d.sourceAttribute))}},c._resizeSourceElement=function(b,d,e){var f=b.getAttribute("data-width"),g=d;f&&(g=a.clone(d),g.maxWidth=f),c._rewriteSrcAttribute(b,g,e)},c._crawlPictureElement=function(a,b){var d=a.getElementsByTagName("source");if(0!==d.length&&!a.hasAttribute("mobify-optimized")){a.setAttribute("mobify-optimized","");for(var e=a.getAttribute("data-src"),f=0,g=d.length;g>f;f++)c._resizeSourceElement(d[f],b,e)}};var e=[320,640,768,1080,1536,2048,4e3];c._getBinnedDimension=function(a){for(var b=0,c=0,d=e.length;d>c&&(b=e[c],!(b>=a));c++);return b},c._shouldResize=function(b){var c=a.getMetaViewportProperties(b);return c?!c["initial-scale"]&&c.width?"device-width"==c.width:!c.width&&c["initial-scale"]?"1"==c["initial-scale"]:c.width&&c["initial-scale"]?(initialScale=parseInt(c["initial-scale"]),initialScale>=1&&"device-width"==c.width):!1:!1},c.processOptions=function(b){var d=a.clone(c.defaults);if(b&&a.extend(d,b),null==d.resize&&b.document){var e=c._shouldResize(b.document);c.defaults.resize=d.resize=e}if(!d.format&&d.webp&&(d.format="webp"),d.resize){var f=d.devicePixelRatio||window.devicePixelRatio,g=a.getPhysicalScreenSize(f),h=d.maxWidth||c._getBinnedDimension(g.width),i=d.maxHeight||void 0;f&&d.maxWidth&&(h*=f,d.maxHeight&&(i*=f)),d.maxWidth=Math.ceil(h),d.maxHeight&&i&&(d.maxHeight=Math.ceil(i))}else d.maxWidth=d.maxHeight=d.devicePixelRatio=null;return d},c.resize=function(a,b){if(a.length){b&&!b.document&&(b.document=a[0].ownerDocument);for(var d=c.processOptions(b),e=0;e<a.length;e++){var f=a[e];"IMG"!==f.nodeName||f.hasAttribute("mobify-optimized")?"PICTURE"===f.nodeName&&c._crawlPictureElement(f,d):(f.setAttribute("mobify-optimized",""),c._rewriteSrcAttribute(f,d))}return a}},c.restoreOriginalSrc=function(a){var b;a.target.removeAttribute("onerror"),b=a.target.getAttribute("data-orig-src"),b&&a.target.setAttribute("src",b)};var f=window.Mobify&&window.Mobify.capturing||!1;return c.defaults={proto:"//",host:"ir0.mobify.com",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),sourceAttribute:"x-src",targetAttribute:f?"x-src":"src",webp:c.supportsWebp(),resize:!0,onerror:"ResizeImages.restoreOriginalSrc(event);"},c})},{"./utils.js":10}],9:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils","mobifyjs/capture"],e);else if("object"==typeof c){var f=a("./utils.js"),g=a("./capture.js");b.exports=e(f,g)}else d.Unblockify=e(d.Utils,d.Capture)}(this,function(a,b){var c={};return c.moveScripts=function(b,c){a.removeElements(b,c);for(var d=0,e=b.length;e>d;d++){var f=b[d];c.body.appendChild(f)}},c.unblock=function(a){var d=b.prototype.insertMobifyScripts;b.prototype.insertMobifyScripts=function(){d.call(this);var b=this.capturedDoc;c.moveScripts(a,b)}},c})},{"./capture.js":2,"./utils.js":10}],10:[function(a,b,c){!function(a,d){"function"==typeof define&&define.amd?define([],d):"object"==typeof c?b.exports=d():a.Utils=d()}(this,function(){var a={};a.extend=function(a){return[].slice.call(arguments,1).forEach(function(b){for(var c in b)void 0!==b[c]&&(a[c]=b[c])}),a},a.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},a.values=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(a[c]);return b},a.clone=function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var b=document.createElement("a");a.absolutify=function(a){return b.href=a,b.href};var c=/^https?/;a.httpUrl=function(a){return c.test(a)},a.outerHTML=function(a){if(a.outerHTML)return a.outerHTML;var b=document.createElement("div");b.appendChild(a.cloneNode(!0));var c=b.innerHTML;return b=null,c},a.getDoctype=function(a){a=a||document;var b=a.doctype||[].filter.call(a.childNodes,function(a){return a.nodeType==Node.DOCUMENT_TYPE_NODE})[0];return b?"<!DOCTYPE HTML"+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+(b.systemId?' "'+b.systemId+'"':"")+">":""},a.getMetaViewportProperties=function(a){var b=/,\s?/;a=a||document;var c={},d=a.querySelectorAll('meta[name="viewport"]');if(0==d.length)return!1;var e=d[0].getAttribute("content");if(null==e)return!1;for(var f=e.split(b),g=0;g<f.length;g++){var h=f[g].split("=");if(h.length>=2){var i=h[0],j=h[1];c[i]=j}}return c},a.removeBySelector=function(b,c){c=c||document;var d=c.querySelectorAll(b);return a.removeElements(d,c)},a.removeElements=function(a,b){b=b||document;for(var c=0,d=a.length;d>c;c++){var e=a[c];e.parentNode.removeChild(e)}return a};var d;return a.supportsLocalStorage=function(){if(void 0!==d)return d;var a="modernizr";try{localStorage.setItem(a,a),localStorage.removeItem(a),d=!0}catch(b){d=!1}return d},a.matchMedia=function(a){"use strict";var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}},a.domIsReady=function(a){var a=a||document;return a.attachEvent?"complete"===a.readyState:"loading"!==a.readyState},a.getPhysicalScreenSize=function(a){function b(b){var c=a||window.devicePixelRatio||1;return b.width=Math.round(b.width*c),b.height=Math.round(b.height*c),b}var c=navigator.userAgent.match(/ip(hone|od|ad)/i),d=(navigator.userAgent.match(/android (\d)/i)||{})[1],e={width:window.outerWidth,height:window.outerHeight};if(!c)return d>3?b(e):e;var f=window.orientation%180;return f?(e.height=screen.width,e.width=screen.height):(e.width=screen.width,e.height=screen.height),b(e)},a.waitForReady=function(b,c){var d=!1,e=function(){d||(d=!0,f&&clearInterval(f),c(b))},f=setInterval(function(){a.domIsReady(b)&&e()},100);b.addEventListener("readystatechange",e,!1)},a})},{}]},{},[1]); | ||
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils"],e):"object"==typeof c?b.exports=e(a("../mobifyjs-utils/utils.js")):d.ResizeImages=e(d.Utils)}(this,function(a){function b(b){if(a.supportsLocalStorage()){var c={supported:b,date:Date.now()};localStorage.setItem(d,JSON.stringify(c))}}var c=window.ResizeImages={},d="Mobify-Webp-Support-v2";c.userAgentWebpDetect=function(a){var b=/(Android\s|Chrome\/|Opera9.8*Version\/..\.|Opera..\.)/i,c=new RegExp("(Android\\s(0|1|2|3|(4(?!.*Chrome)))\\.)|(Chrome\\/[0-8]\\.)|(Chrome\\/9\\.0\\.)|(Chrome\\/1[4-6]\\.)|(Android\\sChrome\\/1.\\.)|(Android\\sChrome\\/20\\.)|(Chrome\\/(1.|20|21|22)\\.)|(Opera.*(Version/|Opera\\s)(10|11)\\.)","i");return b.test(a)?c.test(a)?!1:!0:!1},c.dataUriWebpDetect=function(a){var c=new Image;c.onload=function(){var d=1===c.width?!0:!1;b(d),a&&a(d)},c.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQABgBwlpAADcAD+/gbQAA=="},c.supportsWebp=function(e){if(a.supportsLocalStorage()){var f,g=localStorage.getItem(d);if(g&&(f=JSON.parse(g)),f&&Date.now()-f.date<6048e5)return f.supported}c.dataUriWebpDetect(e);var h=c.userAgentWebpDetect(navigator.userAgent);return b(h),h},c.getImageURL=function(a,b){var d=b;d||(d=c.processOptions());var e=[d.proto+d.host];if(d.projectName){var f="project-"+d.projectName;e.push(f)}return d.cacheBreaker&&e.push("cb"+d.cacheBreaker),d.cacheHours&&e.push("c"+d.cacheHours),d.format?e.push(d.format+(d.quality||"")):d.quality&&e.push("q"+d.quality),d.maxWidth&&(e.push(d.maxWidth),d.maxHeight&&e.push(d.maxHeight)),e.push(a),e.join("/")},c._rewriteSrcAttribute=function(b,d,e){if(e=b.getAttribute(d.sourceAttribute)||e){var g=a.absolutify(e);a.httpUrl(g)&&(d.onerror&&b.setAttribute("onerror",d.onerror),b.setAttribute(d.targetAttribute,c.getImageURL(g,d)),b.setAttribute("data-orig-src",e),f||d.sourceAttribute==d.targetAttribute||b.removeAttribute(d.sourceAttribute))}},c._resizeSourceElement=function(b,d,e){var f=b.getAttribute("data-width"),g=d;f&&(g=a.clone(d),g.maxWidth=f),c._rewriteSrcAttribute(b,g,e)},c._crawlPictureElement=function(a,b){var d=a.getElementsByTagName("source");if(0!==d.length&&!a.hasAttribute("mobify-optimized")){a.setAttribute("mobify-optimized","");for(var e=a.getAttribute("data-src"),f=0,g=d.length;g>f;f++)c._resizeSourceElement(d[f],b,e)}};var e=[320,640,768,1080,1536,2048,4e3];c._getBinnedDimension=function(a){for(var b=0,c=0,d=e.length;d>c&&(b=e[c],!(b>=a));c++);return b},c._shouldResize=function(b){var c=a.getMetaViewportProperties(b);return c?!c["initial-scale"]&&c.width?"device-width"==c.width:!c.width&&c["initial-scale"]?"1"==c["initial-scale"]:c.width&&c["initial-scale"]?(initialScale=parseInt(c["initial-scale"]),initialScale>=1&&"device-width"==c.width):!1:!1},c.processOptions=function(b){var d=a.clone(c.defaults);if(b&&a.extend(d,b),null==d.resize&&b.document){var e=c._shouldResize(b.document);c.defaults.resize=d.resize=e}if(!d.format&&d.webp&&(d.format="webp"),d.resize){var f=d.devicePixelRatio||window.devicePixelRatio,g=a.getPhysicalScreenSize(f),h=d.maxWidth||c._getBinnedDimension(g.width),i=d.maxHeight||void 0;f&&d.maxWidth&&(h*=f,d.maxHeight&&(i*=f)),d.maxWidth=Math.ceil(h),d.maxHeight&&i&&(d.maxHeight=Math.ceil(i))}else d.maxWidth=d.maxHeight=d.devicePixelRatio=null;return d},c.resize=function(a,b){if(a.length){b&&!b.document&&(b.document=a[0].ownerDocument);for(var d=c.processOptions(b),e=0;e<a.length;e++){var f=a[e];"IMG"!==f.nodeName||f.hasAttribute("mobify-optimized")?"PICTURE"===f.nodeName&&c._crawlPictureElement(f,d):(f.setAttribute("mobify-optimized",""),c._rewriteSrcAttribute(f,d))}return a}},c.restoreOriginalSrc=function(a){var b;a.target.removeAttribute("onerror"),b=a.target.getAttribute("data-orig-src"),b&&a.target.setAttribute("src",b)};var f=window.Mobify&&window.Mobify.capturing||!1;return c.defaults={proto:"//",host:"ir0.mobify.com",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),sourceAttribute:"x-src",targetAttribute:f?"x-src":"src",webp:c.supportsWebp(),resize:!0,onerror:"ResizeImages.restoreOriginalSrc(event);"},c})},{"../mobifyjs-utils/utils.js":3}],2:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("../mobifyjs-utils/utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b={cache:{},options:{},utils:{}},c="Mobify-Jazzcat-Cache-v1.0";b.reset=function(a){b.cache=a||{}},b.get=function(a,c){var d=b.cache[a.split("#")[0]];return d&&c&&(d.lastUsed=Date.now()),d},b.set=function(a,c){b.cache[a]=c},b.load=function(a){var d,e,f=localStorage.getItem(c);if(a&&void 0!==a.overrideTime&&(e={overrideTime:a.overrideTime}),f){try{f=JSON.parse(f)}catch(g){return}for(d in f)f.hasOwnProperty(d)&&!b.utils.isStale(f[d],e)&&b.set(d,f[d])}};var d=!0;b.save=function(e){var f,g=10;return d?(d=!1,void function h(){var i=function(){var i,j,k,l=9007199254740991;f=f||a.clone(b.cache);try{j=JSON.stringify(f)}catch(m){return d=!0,e&&e(m)}try{localStorage.setItem(c,j)}catch(m){if(!--g)return d=!0,e&&e(m);for(var n in f)if(f.hasOwnProperty(n)){if(i=f[n],!i.lastUsed){k=n,l=0;break}i.lastUsed<=l&&(k=n,l=i.lastUsed)}return delete f[k],h()}d=!0,e&&e()};a.domIsReady()?i():setTimeout(h,15)}()):e&&e("Save currently in progress")};var e=/^\s*(public|private|no-cache|no-store)\s*$/,f=/^\s*(max-age)\s*=\s*(\d+)\s*$/;b.utils.ccParse=function(a){var b,c={};return a.split(",").forEach(function(a){(b=e.exec(a))?c[b[1]]=!0:(b=f.exec(a))&&(c[b[1]]=parseInt(b[2],10))}),c},b.utils.isStale=function(a,c){var d,e,f,g,h=864e5,i=a.headers||{},j=i["cache-control"],k=Date.now(),l=Date.parse(i.date),m=i["last-modified"];return l&&l+6e5>k?!1:c&&(g=c.overrideTime)&&l?k>l+60*g*1e3:j&&l?(j=b.utils.ccParse(j),!j["max-age"]||j["no-store"]||j["no-cache"]?!0:k>l+1e3*j["max-age"]):i.expires&&(d=Date.parse(i.expires))?k>d:m&&(m=Date.parse(m))&&l&&(f=l-m,e=k-l,.1*f>e&&h>e)?!1:!0};var g=window.Jazzcat={httpCache:b,write:document.write};g.isIncompatibleBrowser=function(b){var c=/(firefox)[\/\s](\d+)|(opera[\s\S]*version[\/\s](11|12))/i.exec(b||navigator.userAgent);return c&&c[1]&&+c[2]<12||c&&c[3]||!a.supportsLocalStorage()||!window.JSON?!0:!1},g.cacheLoaderInserted=!1,g.optimizeScripts=function(c,d){if(d=d||{},d&&void 0!==d.cacheOverrideTime&&a.extend(b.options,{overrideTime:d.cacheOverrideTime}),c=Array.prototype.slice.call(c),!c.length||g.isIncompatibleBrowser())return c;d=a.extend({},g.defaults,d||{});for(var e,f=d.concat,h=void 0!==d.inlineLoader?d.inlineLoader:!0,i=function(a,b){if(a){var c=g.getLoaderScript(b,d);a.parentNode.insertBefore(c,a)}},j=function(a,b){var c=g.getLoaderScript(b,d);a.push(c)},k={head:{firstScript:void 0,urls:[],scripts:[]},body:{firstScript:void 0,urls:[],scripts:[]}},l=[],m=0,n=c.length;n>m;m++){var o=c[m];if(!(o.hasAttribute("mobify-optimized")||o.hasAttribute("skip-optimize")||/mobify/i.test(o.className)))if(e=o.getAttribute(d.attribute)){if(e=a.absolutify(e),a.httpUrl(e)){if(!g.cacheLoaderInserted){b.load(b.options);var p=g.getHttpCacheLoaderScript(d);h?o.parentNode.insertBefore(p,o):l.push(p),g.cacheLoaderInserted=!0}var q;if(q=h?"HEAD"===o.parentNode.nodeName?"head":"body":"head",!b.get(e))if(f){if(k[q].urls.push(e),void 0===k[q].firstScript){k[q].firstScript=o;var r=l.length}}else h?i(o,[e]):j(l,[e]);if(o.type="text/mobify-script",o.hasAttribute("onload")){var s=o.getAttribute("onload");o.innerHTML=d.execCallback+"('"+e+"', '"+s.replace(/'/g,"\\'")+"');",o.removeAttribute("onload")}else o.innerHTML=d.execCallback+"('"+e+"');";o.removeAttribute(d.attribute),h||l.push(o)}}else{if(h)continue;l.push(o)}}if(f)if(h)i(k.head.firstScript,k.head.urls),i(k.body.firstScript,k.body.urls);else if(r){var t=g.getLoaderScript(k.head.urls,d);l.splice(r,0,t)}return h?c:l},g.getHttpCacheLoaderScript=function(a){var c=document.createElement("script");return c.type="text/mobify-script",c.innerHTML=b.options.overrideTime?a.cacheLoadCallback+"("+JSON.stringify(b.options)+");":a.cacheLoadCallback+"();",c},g.getLoaderScript=function(a,b){var c;return a&&a.length&&(c=document.createElement("script"),c.setAttribute("mobify-optimized",""),c.setAttribute(b.attribute,g.getURL(a,b))),c},g.getURL=function(b,c){var c=a.extend({},g.defaults,c||{});return c.base+(c.projectName?"/project-"+c.projectName:"")+(c.cacheBreaker?"/cb"+c.cacheBreaker:"")+"/"+c.responseType+("jsonp"===c.responseType?"/"+c.loadCallback:"")+"/"+encodeURIComponent(JSON.stringify(b.slice().sort()))};var h=/(<\/scr)(ipt\s*>)/gi;return g.exec=function(a,c){var d,e=b.get(a,!0),f="";c?(c=";"+c+";",f=' onload="'+c+'"'):c="",e?(d='data-orig-src="'+a+'"',d+=">"+e.body.replace(h,"$1\\$2")+c):d='src="'+a+'"'+f+">",g.write.call(document,"<script "+d+"</script>")},g.load=function(a){var c,d=0,e=!1;if(a){for(;c=a[d++];)"ready"==c.status&&c.statusCode>=200&&c.statusCode<300&&(e=!0,b.set(encodeURI(c.url),c));e&&b.save()}},g.defaults={selector:"script",attribute:"x-src",base:"//jazzcat.mobify.com",responseType:"jsonp",execCallback:"Jazzcat.exec",loadCallback:"Jazzcat.load",cacheLoadCallback:"Jazzcat.httpCache.load",inlineLoader:"true",concat:!1,projectName:""},g})},{"../mobifyjs-utils/utils.js":3}],3:[function(a,b,c){!function(a,d){"function"==typeof define&&define.amd?define([],d):"object"==typeof c?b.exports=d():a.Utils=d()}(this,function(){var a={};a.extend=function(a){return[].slice.call(arguments,1).forEach(function(b){for(var c in b)void 0!==b[c]&&(a[c]=b[c])}),a},a.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},a.values=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(a[c]);return b},a.clone=function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var b=document.createElement("a");a.absolutify=function(a){return b.href=a,b.href};var c=/^https?/;a.httpUrl=function(a){return c.test(a)},a.outerHTML=function(a){if(a.outerHTML)return a.outerHTML;var b=document.createElement("div");b.appendChild(a.cloneNode(!0));var c=b.innerHTML;return b=null,c},a.getDoctype=function(a){a=a||document;var b=a.doctype||[].filter.call(a.childNodes,function(a){return a.nodeType==Node.DOCUMENT_TYPE_NODE})[0];return b?"<!DOCTYPE HTML"+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+(b.systemId?' "'+b.systemId+'"':"")+">":""},a.getMetaViewportProperties=function(a){var b=/,\s?/;a=a||document;var c={},d=a.querySelectorAll('meta[name="viewport"]');if(0==d.length)return!1;var e=d[0].getAttribute("content");if(null==e)return!1;for(var f=e.split(b),g=0;g<f.length;g++){var h=f[g].split("=");if(h.length>=2){var i=h[0],j=h[1];c[i]=j}}return c},a.removeBySelector=function(b,c){c=c||document;var d=c.querySelectorAll(b);return a.removeElements(d,c)},a.removeElements=function(a,b){b=b||document;for(var c=0,d=a.length;d>c;c++){var e=a[c];e.parentNode.removeChild(e)}return a};var d;return a.supportsLocalStorage=function(){if(void 0!==d)return d;var a="modernizr";try{localStorage.setItem(a,a),localStorage.removeItem(a),d=!0}catch(b){d=!1}return d},a.matchMedia=function(a){"use strict";var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}},a.domIsReady=function(a){var a=a||document;return a.attachEvent?"complete"===a.readyState:"loading"!==a.readyState},a.getPhysicalScreenSize=function(a){function b(b){var c=a||window.devicePixelRatio||1;return b.width=Math.round(b.width*c),b.height=Math.round(b.height*c),b}var c=navigator.userAgent.match(/ip(hone|od|ad)/i),d=(navigator.userAgent.match(/android (\d)/i)||{})[1],e={width:window.outerWidth,height:window.outerHeight};if(!c)return d>3?b(e):e;var f=window.orientation%180;return f?(e.height=screen.width,e.width=screen.height):(e.width=screen.width,e.height=screen.height),b(e)},a.waitForReady=function(b,c){var d=!1,e=function(){d||(d=!0,f&&clearInterval(f),c(b))},f=setInterval(function(){a.domIsReady(b)&&e()},100);b.addEventListener("readystatechange",e,!1)},a})},{}],4:[function(a){var b=a("./src/mobify-library"),c=window.Mobify&&window.Mobify.capturing||!1;c&&b.Capture.initCapture(function(a){var c=a.capturedDoc,d=c.querySelectorAll("img, picture");b.ResizeImages.resize(d),a.renderCapturedDoc()})},{"./src/mobify-library":8}],5:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/patchAnchorLinks"],e):"object"==typeof c?b.exports=e(a("../bower_components/mobifyjs-utils/utils.js"),a("./patchAnchorLinks.js")):d.Capture=e(d.Utils,d.patchAnchorLinks)}(this,function(a,b){function c(a){return a.nodeName.toLowerCase()}function d(a){return a.replace('"',""")}function e(b){return b?[].map.call(b.childNodes,function(b){var d=c(b);return"#comment"==d?"<!--"+b.textContent+"-->":"plaintext"==d?b.textContent:"script"==d&&(/mobify/.test(b.src)||/mobify/i.test(b.textContent))?"":b.outerHTML||b.nodeValue||a.outerHTML(b)}).join(""):""}window.Mobify&&!window.Mobify.capturing&&document.getElementsByTagName("plaintext").length&&(window.Mobify.capturing=!0);var f=/(<script[\s\S]*?>)/gi,g={style:' media="mobify-media"',script:' type="text/mobify-script"'},h=new RegExp(a.values(g).join("|"),"g"),i={img:["src"],source:["src"],iframe:["src"],script:["src","type"],link:["href"],style:["media"]},j=new RegExp("<("+a.keys(i).join("|")+")([\\s\\S]*?)>","gi"),k={},l={};for(var m in i)if(i.hasOwnProperty(m)){var n=i[m];n.forEach(function(a){l[a]=!0}),k[m]=new RegExp("\\s+((?:"+n.join("|")+")\\s*=\\s*(?:('|\")[\\s\\S]+?\\2))","gi")}var o=document.createElement("div"),p=function(a,b){this.sourceDoc=a,this.prefix=b||"x-",window.Mobify&&(window.Mobify.prefix=this.prefix)};return p.init=p.initCapture=function(b,c,d){var c=c||document,e=function(b,c,d){var e=new p(c,d),f=p.createDocumentFragmentsStrings(e.sourceDoc);a.extend(e,f);var g=e.createDocumentFragments();a.extend(e,g),b(e)};if(a.domIsReady(c))e(b,c,d);else{var f=!1,g=function(){f||(f=!0,h&&clearInterval(h),e(b,c,d))},h=setInterval(function(){a.domIsReady(c)&&g()},100);c.addEventListener("readystatechange",g,!1)}},p.removeClosingTagsAtEndOfString=function(a){var b=a.match(/((<\/[^>]+>)+)$/);return b?a.substring(0,a.length-b[0].length):a},p.removeTargetSelf=function(a){return a.replace(/target=("_self"|\'_self\')/gi,"")},p.cloneAttributes=function(a,b){var c=a.match(/^<(\w+)([\s\S]*)$/i);return o.innerHTML="<div"+c[2],[].forEach.call(o.firstChild.attributes,function(a){try{b.setAttribute(a.nodeName,a.nodeValue)}catch(c){console.error("Error copying attributes while capturing: ",c)}}),b},p.disable=function(a,b){var c=function(){return function(a,c,d){return lowercaseTagName=c.toLowerCase(),result="<"+lowercaseTagName+(g[lowercaseTagName]||"")+d.replace(k[lowercaseTagName]," "+b+"$1")+">"}}(),d=/(<!--[\s\S]*?-->)|(?=<\/script)/i,e=a.split(d),h=e.map(function(a){var b;return a?/^<!--/.test(a)?a:(b=a.split(f),b[0]=b[0].replace(j,c),b[1]&&(b[1]=b[1].replace(j,c)),b):""});return[].concat.apply([],h).join("")},p.enable=function(b,c){var d=new RegExp("\\s"+c+"("+a.keys(l).join("|")+")","gi");return b.replace(d," $1").replace(h,"")},p.openTag=function(a){if(!a)return"";a.length&&(a=a[0]);var b=[];return[].forEach.call(a.attributes,function(a){b.push(" ",a.name,'="',d(a.value),'"')}),"<"+c(a)+b.join("")+">"},p.setElementContentFromString=function(a,b){for(o.innerHTML=b;o.firstChild;a.appendChild(o.firstChild));},p.createDocumentFragmentsStrings=function(b){var c=b.getElementsByTagName("head")[0]||b.createElement("head"),d=b.getElementsByTagName("body")[0]||b.createElement("body"),f=b.getElementsByTagName("html")[0];captured={doctype:a.getDoctype(b),htmlOpenTag:p.openTag(f),headOpenTag:p.openTag(c),bodyOpenTag:p.openTag(d),headContent:e(c),bodyContent:e(d)},captured.all=function(a){return this.doctype+this.htmlOpenTag+this.headOpenTag+(a||"")+this.headContent+this.bodyContent};var g=/<!--(?:[\s\S]*?)-->|(<\/head\s*>|<body[\s\S]*$)/gi,h=captured.bodyContent=captured.headContent+captured.bodyContent;captured.headContent="";for(var i;i=g.exec(h);i)if(i[1]){captured.headContent=h.slice(0,i.index);var j=new RegExp("^[\\s\\S]*(<head(?:[^>'\"]*|'[^']*?'|\"[^\"]*?\")*>)([\\s\\S]*)$").exec(captured.headContent);if(j&&(captured.headOpenTag=j[1],captured.headContent=j[2]),"/"!=i[1][1]){captured.bodyContent=i[0];var k=/^((?:[^>'"]*|'[^']*?'|"[^"]*?")*>)([\s\S]*)$/.exec(captured.bodyContent);k&&(captured.bodyOpenTag=k[1],captured.bodyContent=k[2]);break}captured.bodyContent=h.slice(i.index+i[1].length)}return captured},p.prototype.restore=function(){var b=this,c=b.sourceDoc,d=function(){c.removeEventListener("readystatechange",d,!1),setTimeout(function(){c.open(),c.write(b.all()),c.close()},15)};a.domIsReady(c)?d():c.addEventListener("readystatechange",d,!1)},p.prototype.createDocumentFragments=function(){var a={},b=a.capturedDoc=document.implementation.createHTMLDocument(""),c=a.htmlEl=b.documentElement,d=a.headEl=c.firstChild,e=a.bodyEl=c.lastChild;p.cloneAttributes(this.htmlOpenTag,c),p.cloneAttributes(this.headOpenTag,d),p.cloneAttributes(this.bodyOpenTag,e),e.innerHTML=p.disable(this.bodyContent,this.prefix);var f=b.querySelectorAll("head");if(f.length>1)for(;f[1].hasChildNodes();)f[1].removeChild(f[1].lastChild);var g=p.disable(this.headContent,this.prefix);try{d.innerHTML=g}catch(h){var i=d.getElementsByTagName("title")[0];i&&d.removeChild(i),p.setElementContentFromString(d,g)}return a},p.prototype.enabledHTMLString=p.prototype.escapedHTMLString=function(){var b=this.capturedDoc,c=p.enable(a.outerHTML(b.documentElement),this.prefix),d=this.doctype+c;return d},p.prototype.render=function(a){var b;b=a?p.enable(a,this.prefix):this.enabledHTMLString();var c=this.sourceDoc;window.Mobify&&(window.Mobify.capturing=!1),setTimeout(function(){c.open("text/html","replace"),c.write(b),c.close()})},p.prototype.getCapturedDoc=function(){return this.capturedDoc},p.getMobifyLibrary=function(a){var a=a||document,b=a.getElementById("mobify-js");return b||(b=a.getElementsByTagName("script")[0],b.id="mobify-js",b.setAttribute("class","mobify")),b},p.getPostload=function(a){var a=a||document,b=void 0,c=window.Mobify.Tag&&window.Mobify.Tag.options&&window.Mobify.Tag.getOptions(Mobify.Tag.options)||{},d=c.post&&c.post.toString()||window.Mobify.mainExecutable;return d?(b=document.createElement("script"),b.innerHTML="var postload = "+d+"; postload();",b.id="postload",b.setAttribute("class","mobify")):b=a.getElementById("main-executable"),b},p.insertMobifyScripts=function(a,b){var c=p.getMobifyLibrary(a),d=b.head||b.getElementsByTagName("head")[0];if(d){var e=p.getPostload(a);if(e){var f=b.importNode(e,!1);e.src||(f.innerHTML=e.innerHTML),d.insertBefore(f,d.firstChild)}var g=b.importNode(c,!1);d.insertBefore(g,d.firstChild)}},p.prototype.renderCapturedDoc=function(){if(p.insertMobifyScripts(this.sourceDoc,this.capturedDoc),window.Mobify&&window.Mobify.points){var a=this.bodyEl,b=this.capturedDoc.createElement("div");b.id="mobify-point",b.setAttribute("style","display: none;"),b.innerHTML=window.Mobify.points[0],a.insertBefore(b,a.firstChild)}this.render()},p.patchAnchorLinks=b,p})},{"../bower_components/mobifyjs-utils/utils.js":3,"./patchAnchorLinks.js":9}],6:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils.js");b.exports=e(f)}else d.CssOptimize=e(d.Utils)}(this,function(a){var b=window.cssOptimize={};b.getCssUrl=function(b,d){var e=a.extend({},c,d),f=[e.protoAndHost];return e.projectName&&f.push("project-"+e.projectName),f.push(e.endpoint),f.push(b),f.join("/")},b._rewriteHref=function(c,d){var e,f=c.getAttribute(d.targetAttribute);f&&(e=a.absolutify(f),a.httpUrl(e)&&(c.setAttribute("data-orig-href",f),c.setAttribute(d.targetAttribute,b.getCssUrl(e,d)),d.onerror&&c.setAttribute("onerror",d.onerror)))},b.optimize=function(d,e){for(var f,g=a.extend({},c,e),h=0,i=d.length;i>h;h++)f=d[h],"LINK"===f.nodeName&&"stylesheet"===f.getAttribute("rel")&&f.getAttribute(g.targetAttribute)&&!f.hasAttribute("mobify-optimized")&&(f.setAttribute("mobify-optimized",""),b._rewriteHref(f,g))};var c=(b.restoreOriginalHref=function(a){var b;a.target.removeAttribute("onerror"),(b=a.target.getAttribute("data-orig-href"))&&a.target.setAttribute("href",b)},b._defaults={protoAndHost:"//jazzcat.mobify.com",endpoint:"cssoptimizer",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),targetAttribute:"x-href",onerror:"Mobify.CssOptimize.restoreOriginalHref(event);"});return b})},{"../bower_components/mobifyjs-utils/utils.js":3}],7:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/capture"],e):"object"==typeof c&&(b.exports=e(a("../../bower_components/mobifyjs-utils/utils.js"),a("../capture.js")))}(this,function(a,b){var c=window.Mobify&&window.Mobify.capturing||!1;if(c){var d=b.prototype.renderCapturedDoc;return void(b.prototype.renderCapturedDoc=function(){for(var a=this.capturedDoc.querySelectorAll("picture img"),b=0,c=a.length;c>b;b++){var e=a[b],f=window.Mobify&&window.Mobify.prefix+"src";e.setAttribute("data-orig-src",e.getAttribute(f)),e.removeAttribute(f)}d.apply(this,arguments)})}window.matchMedia=window.matchMedia||a.matchMedia(document),function(a){"use strict";var b,c=!1||a.localStorage&&"true"===a.localStorage["picturefill-prefHD"];a.document.createElement("picture")&&a.document.createElement("source")&&a.HTMLPictureElement||(a.picturefill=function(){for(var d=a.document.getElementsByTagName("picture"),e=0,f=d.length;f>e;e++){var g=d[e].getElementsByTagName("source"),h=null,i=[];if(!g.length){var j=d[e].innerHTML,k=a.document.createElement("div"),l=j.replace(/(<)source([^>]+>)/gim,"$1div$2").match(/<div[^>]+>/gim);k.innerHTML=l.join(""),g=k.getElementsByTagName("div")}for(var m=0,n=g.length;n>m;m++){var o=g[m].getAttribute("media");(!o||a.matchMedia&&a.matchMedia(o).matches)&&i.push(g[m])}if(h=d[e].getElementsByTagName("img")[0],i.length){var p=i.pop(),q=p.getAttribute("srcset");if(h||(h=a.document.createElement("img"),h.alt=d[e].getAttribute("alt"),d[e].appendChild(h)),q){var r=c&&a.devicePixelRatio||1,g=q.split(",");b=a.devicePixelRatio>1;for(var s=g.length,t=s-1;t>=0;t--){var u=g[t].replace(/^\s*/,"").replace(/\s*$/,"").split(" "),v=parseFloat(u[1],10);if(r>=v){if(h.getAttribute("src")!==u[0]){var w=document.createElement("img");w.src=u[0],w.onload=function(){this.width=this.cloneNode(!0).width/v},h.parentNode.replaceChild(w,h)}break}}}else h.src=p.getAttribute("src")}}},a.addEventListener?(a.addEventListener("resize",a.picturefill,!1),a.addEventListener("DOMContentLoaded",function(){a.picturefill(),a.removeEventListener("load",a.picturefill,!1)},!1),a.addEventListener("load",a.picturefill,!1)):a.attachEvent&&a.attachEvent("onload",a.picturefill))}(this)})},{"../../bower_components/mobifyjs-utils/utils.js":3,"../capture.js":5}],8:[function(a,b,c){!function(d,e){if("function"==typeof a&&"function"==typeof define&&define.amd)a(["mobifyjs/utils","mobifyjs/capture","mobifyjs/resizeImages","mobifyjs/jazzcat","mobifyjs/unblockify","mobifyjs/cssOptimize","mobifyjs/external/picturefill"],e,void 0,!0);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils"),g=a("./capture"),h=a("../bower_components/imageresize-client/resizeImages"),i=a("../bower_components/jazzcat-client/jazzcat"),j=a("./cssOptimize"),k=a("./unblockify");a("./external/picturefill"),b.exports=e(f,g,h,i,k,j)}}(this,function(a,b,c,d,e,f){var g=window.Mobify=window.Mobify||{};return g.Utils=a,g.Capture=b,g.ResizeImages=c,g.Jazzcat=d,g.CssOptimize=f,g.Unblockify=e,g.api="2.0",g})},{"../bower_components/imageresize-client/resizeImages":1,"../bower_components/jazzcat-client/jazzcat":2,"../bower_components/mobifyjs-utils/utils":3,"./capture":5,"./cssOptimize":6,"./external/picturefill":7,"./unblockify":10}],9:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b=function(a){return a=window.navigator.userAgent,/firefox|fennec/i.test(a)},c=function(a){var b=a.body;if(b&&b.addEventListener){var c=function(a){var b=a.target,c=function(a){return"A"==a.nodeName&&/^#/.test(a.getAttribute("href"))};if(c(b)){var e="undefined"!=typeof a.defaultPrevented?a.defaultPrevented:a.getPreventDefault&&a.getPreventDefault();if(!e){a.preventDefault(),a.defaultPrevented=!1;var f=!0;a.preventDefault=function(){a.defaultPrevented=!0,f=!1},setTimeout(function(){f&&d(b.getAttribute("href"))},50)}}},d=function(b){var c,d=/^#([^\s]*)/,e=b.match(d);if(e&&""===e[1])c=a.body;else if(e&&e[1])var c=a.getElementById(e[1]);c&&c.scrollIntoView&&c.scrollIntoView()};b.addEventListener("click",c,!1)}},d=function(){b()&&a.waitForReady(document,c)};return d})},{"../bower_components/mobifyjs-utils/utils.js":3}],10:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils","mobifyjs/capture"],e);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils.js"),g=a("./capture.js");b.exports=e(f,g)}else d.Unblockify=e(d.Utils,d.Capture)}(this,function(a,b){var c={};return c.moveScripts=function(b,c){a.removeElements(b,c);for(var d=0,e=b.length;e>d;d++){var f=b[d];c.body.appendChild(f)}},c.unblock=function(a){var d=b.prototype.insertMobifyScripts;b.prototype.insertMobifyScripts=function(){d.call(this);var b=this.capturedDoc;c.moveScripts(a,b)}},c})},{"../bower_components/mobifyjs-utils/utils.js":3,"./capture.js":5}]},{},[4]); |
@@ -1,1 +0,1 @@ | ||
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/patchAnchorLinks"],e):"object"==typeof c?b.exports=e(a("./utils.js"),a("./patchAnchorLinks.js")):d.Capture=e(d.Utils,d.patchAnchorLinks)}(this,function(a,b){function c(a){return a.nodeName.toLowerCase()}function d(a){return a.replace('"',""")}function e(b){return b?[].map.call(b.childNodes,function(b){var d=c(b);return"#comment"==d?"<!--"+b.textContent+"-->":"plaintext"==d?b.textContent:"script"==d&&(/mobify/.test(b.src)||/mobify/i.test(b.textContent))?"":b.outerHTML||b.nodeValue||a.outerHTML(b)}).join(""):""}window.Mobify&&!window.Mobify.capturing&&document.getElementsByTagName("plaintext").length&&(window.Mobify.capturing=!0);var f=/(<script[\s\S]*?>)/gi,g={style:' media="mobify-media"',script:' type="text/mobify-script"'},h=new RegExp(a.values(g).join("|"),"g"),i={img:["src"],source:["src"],iframe:["src"],script:["src","type"],link:["href"],style:["media"]},j=new RegExp("<("+a.keys(i).join("|")+")([\\s\\S]*?)>","gi"),k={},l={};for(var m in i)if(i.hasOwnProperty(m)){var n=i[m];n.forEach(function(a){l[a]=!0}),k[m]=new RegExp("\\s+((?:"+n.join("|")+")\\s*=\\s*(?:('|\")[\\s\\S]+?\\2))","gi")}var o=document.createElement("div"),p=function(a,b){this.sourceDoc=a,this.prefix=b||"x-",window.Mobify&&(window.Mobify.prefix=this.prefix)};return p.init=p.initCapture=function(b,c,d){var c=c||document,e=function(b,c,d){var e=new p(c,d),f=p.createDocumentFragmentsStrings(e.sourceDoc);a.extend(e,f);var g=e.createDocumentFragments();a.extend(e,g),b(e)};if(a.domIsReady(c))e(b,c,d);else{var f=!1,g=function(){f||(f=!0,h&&clearInterval(h),e(b,c,d))},h=setInterval(function(){a.domIsReady(c)&&g()},100);c.addEventListener("readystatechange",g,!1)}},p.removeClosingTagsAtEndOfString=function(a){var b=a.match(/((<\/[^>]+>)+)$/);return b?a.substring(0,a.length-b[0].length):a},p.removeTargetSelf=function(a){return a.replace(/target=("_self"|\'_self\')/gi,"")},p.cloneAttributes=function(a,b){var c=a.match(/^<(\w+)([\s\S]*)$/i);return o.innerHTML="<div"+c[2],[].forEach.call(o.firstChild.attributes,function(a){try{b.setAttribute(a.nodeName,a.nodeValue)}catch(c){console.error("Error copying attributes while capturing: ",c)}}),b},p.disable=function(a,b){var c=function(){return function(a,c,d){return lowercaseTagName=c.toLowerCase(),result="<"+lowercaseTagName+(g[lowercaseTagName]||"")+d.replace(k[lowercaseTagName]," "+b+"$1")+">"}}(),d=/(<!--[\s\S]*?-->)|(?=<\/script)/i,e=a.split(d),h=e.map(function(a){var b;return a?/^<!--/.test(a)?a:(b=a.split(f),b[0]=b[0].replace(j,c),b[1]&&(b[1]=b[1].replace(j,c)),b):""});return[].concat.apply([],h).join("")},p.enable=function(b,c){var d=new RegExp("\\s"+c+"("+a.keys(l).join("|")+")","gi");return b.replace(d," $1").replace(h,"")},p.openTag=function(a){if(!a)return"";a.length&&(a=a[0]);var b=[];return[].forEach.call(a.attributes,function(a){b.push(" ",a.name,'="',d(a.value),'"')}),"<"+c(a)+b.join("")+">"},p.setElementContentFromString=function(a,b){for(o.innerHTML=b;o.firstChild;a.appendChild(o.firstChild));},p.createDocumentFragmentsStrings=function(b){var c=b.getElementsByTagName("head")[0]||b.createElement("head"),d=b.getElementsByTagName("body")[0]||b.createElement("body"),f=b.getElementsByTagName("html")[0];captured={doctype:a.getDoctype(b),htmlOpenTag:p.openTag(f),headOpenTag:p.openTag(c),bodyOpenTag:p.openTag(d),headContent:e(c),bodyContent:e(d)},captured.all=function(a){return this.doctype+this.htmlOpenTag+this.headOpenTag+(a||"")+this.headContent+this.bodyContent};var g=/<!--(?:[\s\S]*?)-->|(<\/head\s*>|<body[\s\S]*$)/gi,h=captured.bodyContent=captured.headContent+captured.bodyContent;captured.headContent="";for(var i;i=g.exec(h);i)if(i[1]){captured.headContent=h.slice(0,i.index);var j=new RegExp("^[\\s\\S]*(<head(?:[^>'\"]*|'[^']*?'|\"[^\"]*?\")*>)([\\s\\S]*)$").exec(captured.headContent);if(j&&(captured.headOpenTag=j[1],captured.headContent=j[2]),"/"!=i[1][1]){captured.bodyContent=i[0];var k=/^((?:[^>'"]*|'[^']*?'|"[^"]*?")*>)([\s\S]*)$/.exec(captured.bodyContent);k&&(captured.bodyOpenTag=k[1],captured.bodyContent=k[2]);break}captured.bodyContent=h.slice(i.index+i[1].length)}return captured},p.prototype.restore=function(){var b=this,c=b.sourceDoc,d=function(){c.removeEventListener("readystatechange",d,!1),setTimeout(function(){c.open(),c.write(b.all()),c.close()},15)};a.domIsReady(c)?d():c.addEventListener("readystatechange",d,!1)},p.prototype.createDocumentFragments=function(){var a={},b=a.capturedDoc=document.implementation.createHTMLDocument(""),c=a.htmlEl=b.documentElement,d=a.headEl=c.firstChild,e=a.bodyEl=c.lastChild;p.cloneAttributes(this.htmlOpenTag,c),p.cloneAttributes(this.headOpenTag,d),p.cloneAttributes(this.bodyOpenTag,e),e.innerHTML=p.disable(this.bodyContent,this.prefix);var f=b.querySelectorAll("head");if(f.length>1)for(;f[1].hasChildNodes();)f[1].removeChild(f[1].lastChild);var g=p.disable(this.headContent,this.prefix);try{d.innerHTML=g}catch(h){var i=d.getElementsByTagName("title")[0];i&&d.removeChild(i),p.setElementContentFromString(d,g)}return a},p.prototype.enabledHTMLString=p.prototype.escapedHTMLString=function(){var b=this.capturedDoc,c=p.enable(a.outerHTML(b.documentElement),this.prefix),d=this.doctype+c;return d},p.prototype.render=function(a){var b;b=a?p.enable(a,this.prefix):this.enabledHTMLString();var c=this.sourceDoc;window.Mobify&&(window.Mobify.capturing=!1),setTimeout(function(){c.open("text/html","replace"),c.write(b),c.close()})},p.prototype.getCapturedDoc=function(){return this.capturedDoc},p.getMobifyLibrary=function(a){var a=a||document,b=a.getElementById("mobify-js");return b||(b=a.getElementsByTagName("script")[0],b.id="mobify-js",b.setAttribute("class","mobify")),b},p.getPostload=function(a){var a=a||document,b=void 0,c=window.Mobify.Tag&&window.Mobify.Tag.options&&window.Mobify.Tag.getOptions(Mobify.Tag.options)||{},d=c.post&&c.post.toString()||window.Mobify.mainExecutable;return d?(b=document.createElement("script"),b.innerHTML="var postload = "+d+"; postload();",b.id="postload",b.setAttribute("class","mobify")):b=a.getElementById("main-executable"),b},p.insertMobifyScripts=function(a,b){var c=p.getMobifyLibrary(a),d=b.head||b.getElementsByTagName("head")[0];if(d){var e=p.getPostload(a);if(e){var f=b.importNode(e,!1);e.src||(f.innerHTML=e.innerHTML),d.insertBefore(f,d.firstChild)}var g=b.importNode(c,!1);d.insertBefore(g,d.firstChild)}},p.prototype.renderCapturedDoc=function(){if(p.insertMobifyScripts(this.sourceDoc,this.capturedDoc),window.Mobify&&window.Mobify.points){var a=this.bodyEl,b=this.capturedDoc.createElement("div");b.id="mobify-point",b.setAttribute("style","display: none;"),b.innerHTML=window.Mobify.points[0],a.insertBefore(b,a.firstChild)}this.render()},p.patchAnchorLinks=b,p})},{"./patchAnchorLinks.js":6,"./utils.js":9}],2:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("./utils.js");b.exports=e(f)}else d.CssOptimize=e(d.Utils)}(this,function(a){var b=window.cssOptimize={};b.getCssUrl=function(b,d){var e=a.extend({},c,d),f=[e.protoAndHost];return e.projectName&&f.push("project-"+e.projectName),f.push(e.endpoint),f.push(b),f.join("/")},b._rewriteHref=function(c,d){var e,f=c.getAttribute(d.targetAttribute);f&&(e=a.absolutify(f),a.httpUrl(e)&&(c.setAttribute("data-orig-href",f),c.setAttribute(d.targetAttribute,b.getCssUrl(e,d)),d.onerror&&c.setAttribute("onerror",d.onerror)))},b.optimize=function(d,e){for(var f,g=a.extend({},c,e),h=0,i=d.length;i>h;h++)f=d[h],"LINK"===f.nodeName&&"stylesheet"===f.getAttribute("rel")&&f.getAttribute(g.targetAttribute)&&!f.hasAttribute("mobify-optimized")&&(f.setAttribute("mobify-optimized",""),b._rewriteHref(f,g))};var c=(b.restoreOriginalHref=function(a){var b;a.target.removeAttribute("onerror"),(b=a.target.getAttribute("data-orig-href"))&&a.target.setAttribute("href",b)},b._defaults={protoAndHost:"//jazzcat.mobify.com",endpoint:"cssoptimizer",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),targetAttribute:"x-href",onerror:"Mobify.CssOptimize.restoreOriginalHref(event);"});return b})},{"./utils.js":9}],3:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/capture"],e):"object"==typeof c&&(b.exports=e(a("../utils.js"),a("../capture.js")))}(this,function(a,b){var c=window.Mobify&&window.Mobify.capturing||!1;if(c){var d=b.prototype.renderCapturedDoc;return void(b.prototype.renderCapturedDoc=function(){for(var a=this.capturedDoc.querySelectorAll("picture img"),b=0,c=a.length;c>b;b++){var e=a[b],f=window.Mobify&&window.Mobify.prefix+"src";e.setAttribute("data-orig-src",e.getAttribute(f)),e.removeAttribute(f)}d.apply(this,arguments)})}window.matchMedia=window.matchMedia||a.matchMedia(document),function(a){"use strict";var b,c=!1||a.localStorage&&"true"===a.localStorage["picturefill-prefHD"];a.document.createElement("picture")&&a.document.createElement("source")&&a.HTMLPictureElement||(a.picturefill=function(){for(var d=a.document.getElementsByTagName("picture"),e=0,f=d.length;f>e;e++){var g=d[e].getElementsByTagName("source"),h=null,i=[];if(!g.length){var j=d[e].innerHTML,k=a.document.createElement("div"),l=j.replace(/(<)source([^>]+>)/gim,"$1div$2").match(/<div[^>]+>/gim);k.innerHTML=l.join(""),g=k.getElementsByTagName("div")}for(var m=0,n=g.length;n>m;m++){var o=g[m].getAttribute("media");(!o||a.matchMedia&&a.matchMedia(o).matches)&&i.push(g[m])}if(h=d[e].getElementsByTagName("img")[0],i.length){var p=i.pop(),q=p.getAttribute("srcset");if(h||(h=a.document.createElement("img"),h.alt=d[e].getAttribute("alt"),d[e].appendChild(h)),q){var r=c&&a.devicePixelRatio||1,g=q.split(",");b=a.devicePixelRatio>1;for(var s=g.length,t=s-1;t>=0;t--){var u=g[t].replace(/^\s*/,"").replace(/\s*$/,"").split(" "),v=parseFloat(u[1],10);if(r>=v){if(h.getAttribute("src")!==u[0]){var w=document.createElement("img");w.src=u[0],w.onload=function(){this.width=this.cloneNode(!0).width/v},h.parentNode.replaceChild(w,h)}break}}}else h.src=p.getAttribute("src")}}},a.addEventListener?(a.addEventListener("resize",a.picturefill,!1),a.addEventListener("DOMContentLoaded",function(){a.picturefill(),a.removeEventListener("load",a.picturefill,!1)},!1),a.addEventListener("load",a.picturefill,!1)):a.attachEvent&&a.attachEvent("onload",a.picturefill))}(this)})},{"../capture.js":1,"../utils.js":9}],4:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("./utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b={cache:{},options:{},utils:{}},c="Mobify-Jazzcat-Cache-v1.0";b.reset=function(a){b.cache=a||{}},b.get=function(a,c){var d=b.cache[a.split("#")[0]];return d&&c&&(d.lastUsed=Date.now()),d},b.set=function(a,c){b.cache[a]=c},b.load=function(a){var d,e,f=localStorage.getItem(c);if(a&&void 0!==a.overrideTime&&(e={overrideTime:a.overrideTime}),f){try{f=JSON.parse(f)}catch(g){return}for(d in f)f.hasOwnProperty(d)&&!b.utils.isStale(f[d],e)&&b.set(d,f[d])}};var d=!0;b.save=function(e){var f,g=10;return d?(d=!1,void function h(){var i=function(){var i,j,k,l=9007199254740991;f=f||a.clone(b.cache);try{j=JSON.stringify(f)}catch(m){return d=!0,e&&e(m)}try{localStorage.setItem(c,j)}catch(m){if(!--g)return d=!0,e&&e(m);for(var n in f)if(f.hasOwnProperty(n)){if(i=f[n],!i.lastUsed){k=n,l=0;break}i.lastUsed<=l&&(k=n,l=i.lastUsed)}return delete f[k],h()}d=!0,e&&e()};a.domIsReady()?i():setTimeout(h,15)}()):e&&e("Save currently in progress")};var e=/^\s*(public|private|no-cache|no-store)\s*$/,f=/^\s*(max-age)\s*=\s*(\d+)\s*$/;b.utils.ccParse=function(a){var b,c={};return a.split(",").forEach(function(a){(b=e.exec(a))?c[b[1]]=!0:(b=f.exec(a))&&(c[b[1]]=parseInt(b[2],10))}),c},b.utils.isStale=function(a,c){var d,e,f,g,h=864e5,i=a.headers||{},j=i["cache-control"],k=Date.now(),l=Date.parse(i.date),m=i["last-modified"];return l&&l+6e5>k?!1:c&&(g=c.overrideTime)&&l?k>l+60*g*1e3:j&&l?(j=b.utils.ccParse(j),!j["max-age"]||j["no-store"]||j["no-cache"]?!0:k>l+1e3*j["max-age"]):i.expires&&(d=Date.parse(i.expires))?k>d:m&&(m=Date.parse(m))&&l&&(f=l-m,e=k-l,.1*f>e&&h>e)?!1:!0};var g=window.Jazzcat={httpCache:b,write:document.write};g.isIncompatibleBrowser=function(b){var c=/(firefox)[\/\s](\d+)|(opera[\s\S]*version[\/\s](11|12))/i.exec(b||navigator.userAgent);return c&&c[1]&&+c[2]<12||c&&c[3]||!a.supportsLocalStorage()||!window.JSON?!0:!1},g.cacheLoaderInserted=!1,g.optimizeScripts=function(c,d){if(d&&void 0!==d.cacheOverrideTime&&a.extend(b.options,{overrideTime:d.cacheOverrideTime}),c=Array.prototype.slice.call(c),!c.length||g.isIncompatibleBrowser())return c;d=a.extend({},g.defaults,d||{});for(var e,f="jsonp"===d.responseType,h=d.concat,i=function(a,b){if(a){var c=g.getLoaderScript(b,d);a.parentNode.insertBefore(c,a)}},j={head:{firstScript:void 0,urls:[]},body:{firstScript:void 0,urls:[]}},k=0,l=c.length;l>k;k++){var m=c[k];if(!(m.hasAttribute("mobify-optimized")||m.hasAttribute("skip-optimize")||/mobify/i.test(m.className))&&(e=m.getAttribute(d.attribute),e&&(e=a.absolutify(e),a.httpUrl(e)))){if(f&&!g.cacheLoaderInserted){b.load(b.options);var n=g.getHttpCacheLoaderScript();m.parentNode.insertBefore(n,m),g.cacheLoaderInserted=!0}var o="HEAD"===m.parentNode.nodeName?"head":"body";if(f){if(b.get(e)||(h?(void 0===j[o].firstScript&&(j[o].firstScript=m),j[o].urls.push(e)):i(m,[e])),m.type="text/mobify-script",m.hasAttribute("onload")){var p=m.getAttribute("onload");m.innerHTML=d.execCallback+"('"+e+"', '"+p.replace(/'/g,"\\'")+"');",m.removeAttribute("onload")}else m.innerHTML=d.execCallback+"('"+e+"');";m.removeAttribute(d.attribute)}else if(h)void 0===j[o].firstScript&&(j[o].firstScript=m),j[o].urls.push(e);else{var q=g.getURL([e],d);m.setAttribute(d.attribute,q)}}}if(h&&(i(j.head.firstScript,j.head.urls),i(j.body.firstScript,j.body.urls)),!f&&h)for(var k=0,l=c.length;l>k;k++){var m=c[k];m.getAttribute(d.attribute)&&m.parentNode.removeChild(m)}return c},g.getHttpCacheLoaderScript=function(){var a=document.createElement("script");return a.type="text/mobify-script",a.innerHTML=b.options.overrideTime?"Jazzcat.httpCache.load("+JSON.stringify(b.options)+");":"Jazzcat.httpCache.load();",a},g.getLoaderScript=function(a,b){var c;return a&&a.length&&(c=document.createElement("script"),c.setAttribute("mobify-optimized",""),c.setAttribute(b.attribute,g.getURL(a,b))),c},g.getURL=function(b,c){var c=a.extend({},g.defaults,c||{});return c.base+(c.projectName?"/project-"+c.projectName:"")+"/"+c.responseType+("jsonp"===c.responseType?"/"+c.loadCallback:"")+"/"+encodeURIComponent(JSON.stringify(b.slice().sort()))};var h=/(<\/scr)(ipt\s*>)/gi;return g.exec=function(a,c){var d,e=b.get(a,!0),f="";c?(c=";"+c+";",f=' onload="'+c+'"'):c="",e?(d='data-orig-src="'+a+'"',d+=">"+e.body.replace(h,"$1\\$2")+c):d='src="'+a+'"'+f+">",g.write.call(document,"<script "+d+"</script>")},g.load=function(a){var c,d=0,e=!1;if(a){for(;c=a[d++];)"ready"==c.status&&c.statusCode>=200&&c.statusCode<300&&(e=!0,b.set(encodeURI(c.url),c));e&&b.save()}},g.defaults={selector:"script",attribute:"x-src",base:"//jazzcat.mobify.com",responseType:"jsonp",execCallback:"Jazzcat.exec",loadCallback:"Jazzcat.load",concat:!1,projectName:""},g})},{"./utils.js":9}],5:[function(a,b,c){!function(d,e){if("function"==typeof a&&"function"==typeof define&&define.amd)a(["mobifyjs/utils","mobifyjs/capture","mobifyjs/resizeImages","mobifyjs/jazzcat","mobifyjs/unblockify","mobifyjs/cssOptimize","mobifyjs/external/picturefill"],e,void 0,!0);else if("object"==typeof c){var f=a("./utils"),g=a("./capture"),h=a("./resizeImages"),i=a("./jazzcat"),j=a("./cssOptimize"),k=a("./unblockify");a("./external/picturefill"),b.exports=e(f,g,h,i,k,j)}}(this,function(a,b,c,d,e,f){var g=window.Mobify=window.Mobify||{};return g.Utils=a,g.Capture=b,g.ResizeImages=c,g.Jazzcat=d,g.CssOptimize=f,g.Unblockify=e,g.api="2.0",g})},{"./capture":1,"./cssOptimize":2,"./external/picturefill":3,"./jazzcat":4,"./resizeImages":7,"./unblockify":8,"./utils":9}],6:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("./utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b=function(a){return a=window.navigator.userAgent,/firefox|fennec/i.test(a)},c=function(a){var b=a.body;if(b&&b.addEventListener){var c=function(a){var b=a.target,c=function(a){return"A"==a.nodeName&&/^#/.test(a.getAttribute("href"))};if(c(b)){var e="undefined"!=typeof a.defaultPrevented?a.defaultPrevented:a.getPreventDefault&&a.getPreventDefault();if(!e){a.preventDefault(),a.defaultPrevented=!1;var f=!0;a.preventDefault=function(){a.defaultPrevented=!0,f=!1},setTimeout(function(){f&&d(b.getAttribute("href"))},50)}}},d=function(b){var c,d=/^#([^\s]*)/,e=b.match(d);if(e&&""===e[1])c=a.body;else if(e&&e[1])var c=a.getElementById(e[1]);c&&c.scrollIntoView&&c.scrollIntoView()};b.addEventListener("click",c,!1)}},d=function(){b()&&a.waitForReady(document,c)};return d})},{"./utils.js":9}],7:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils"],e):"object"==typeof c?b.exports=e(a("./utils.js")):d.ResizeImages=e(d.Utils)}(this,function(a){function b(b){if(a.supportsLocalStorage()){var c={supported:b,date:Date.now()};localStorage.setItem(d,JSON.stringify(c))}}var c=window.ResizeImages={},d="Mobify-Webp-Support-v2";c.userAgentWebpDetect=function(a){var b=/(Android\s|Chrome\/|Opera9.8*Version\/..\.|Opera..\.)/i,c=new RegExp("(Android\\s(0|1|2|3|(4(?!.*Chrome)))\\.)|(Chrome\\/[0-8]\\.)|(Chrome\\/9\\.0\\.)|(Chrome\\/1[4-6]\\.)|(Android\\sChrome\\/1.\\.)|(Android\\sChrome\\/20\\.)|(Chrome\\/(1.|20|21|22)\\.)|(Opera.*(Version/|Opera\\s)(10|11)\\.)","i");return b.test(a)?c.test(a)?!1:!0:!1},c.dataUriWebpDetect=function(a){var c=new Image;c.onload=function(){var d=1===c.width?!0:!1;b(d),a&&a(d)},c.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQABgBwlpAADcAD+/gbQAA=="},c.supportsWebp=function(e){if(a.supportsLocalStorage()){var f,g=localStorage.getItem(d);if(g&&(f=JSON.parse(g)),f&&Date.now()-f.date<6048e5)return f.supported}c.dataUriWebpDetect(e);var h=c.userAgentWebpDetect(navigator.userAgent);return b(h),h},c.getImageURL=function(a,b){var d=b;d||(d=c.processOptions());var e=[d.proto+d.host];if(d.projectName){var f="project-"+d.projectName;e.push(f)}return d.cacheHours&&e.push("c"+d.cacheHours),d.format?e.push(d.format+(d.quality||"")):d.quality&&e.push("q"+d.quality),d.maxWidth&&(e.push(d.maxWidth),d.maxHeight&&e.push(d.maxHeight)),e.push(a),e.join("/")},c._rewriteSrcAttribute=function(b,d,e){if(e=b.getAttribute(d.sourceAttribute)||e){var g=a.absolutify(e);a.httpUrl(g)&&(d.onerror&&b.setAttribute("onerror",d.onerror),b.setAttribute(d.targetAttribute,c.getImageURL(g,d)),b.setAttribute("data-orig-src",e),f||d.sourceAttribute==d.targetAttribute||b.removeAttribute(d.sourceAttribute))}},c._resizeSourceElement=function(b,d,e){var f=b.getAttribute("data-width"),g=d;f&&(g=a.clone(d),g.maxWidth=f),c._rewriteSrcAttribute(b,g,e)},c._crawlPictureElement=function(a,b){var d=a.getElementsByTagName("source");if(0!==d.length&&!a.hasAttribute("mobify-optimized")){a.setAttribute("mobify-optimized","");for(var e=a.getAttribute("data-src"),f=0,g=d.length;g>f;f++)c._resizeSourceElement(d[f],b,e)}};var e=[320,640,768,1080,1536,2048,4e3];c._getBinnedDimension=function(a){for(var b=0,c=0,d=e.length;d>c&&(b=e[c],!(b>=a));c++);return b},c._shouldResize=function(b){var c=a.getMetaViewportProperties(b);return c?!c["initial-scale"]&&c.width?"device-width"==c.width:!c.width&&c["initial-scale"]?"1"==c["initial-scale"]:c.width&&c["initial-scale"]?(initialScale=parseInt(c["initial-scale"]),initialScale>=1&&"device-width"==c.width):!1:!1},c.processOptions=function(b){var d=a.clone(c.defaults);if(b&&a.extend(d,b),null==d.resize&&b.document){var e=c._shouldResize(b.document);c.defaults.resize=d.resize=e}if(!d.format&&d.webp&&(d.format="webp"),d.resize){var f=d.devicePixelRatio||window.devicePixelRatio,g=a.getPhysicalScreenSize(f),h=d.maxWidth||c._getBinnedDimension(g.width),i=d.maxHeight||void 0;f&&d.maxWidth&&(h*=f,d.maxHeight&&(i*=f)),d.maxWidth=Math.ceil(h),d.maxHeight&&i&&(d.maxHeight=Math.ceil(i))}else d.maxWidth=d.maxHeight=d.devicePixelRatio=null;return d},c.resize=function(a,b){if(a.length){b&&!b.document&&(b.document=a[0].ownerDocument);for(var d=c.processOptions(b),e=0;e<a.length;e++){var f=a[e];"IMG"!==f.nodeName||f.hasAttribute("mobify-optimized")?"PICTURE"===f.nodeName&&c._crawlPictureElement(f,d):(f.setAttribute("mobify-optimized",""),c._rewriteSrcAttribute(f,d))}return a}},c.restoreOriginalSrc=function(a){var b;a.target.removeAttribute("onerror"),b=a.target.getAttribute("data-orig-src"),b&&a.target.setAttribute("src",b)};var f=window.Mobify&&window.Mobify.capturing||!1;return c.defaults={proto:"//",host:"ir0.mobify.com",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),sourceAttribute:"x-src",targetAttribute:f?"x-src":"src",webp:c.supportsWebp(),resize:!0,onerror:"ResizeImages.restoreOriginalSrc(event);"},c})},{"./utils.js":9}],8:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils","mobifyjs/capture"],e);else if("object"==typeof c){var f=a("./utils.js"),g=a("./capture.js");b.exports=e(f,g)}else d.Unblockify=e(d.Utils,d.Capture)}(this,function(a,b){var c={};return c.moveScripts=function(b,c){a.removeElements(b,c);for(var d=0,e=b.length;e>d;d++){var f=b[d];c.body.appendChild(f)}},c.unblock=function(a){var d=b.prototype.insertMobifyScripts;b.prototype.insertMobifyScripts=function(){d.call(this);var b=this.capturedDoc;c.moveScripts(a,b)}},c})},{"./capture.js":1,"./utils.js":9}],9:[function(a,b,c){!function(a,d){"function"==typeof define&&define.amd?define([],d):"object"==typeof c?b.exports=d():a.Utils=d()}(this,function(){var a={};a.extend=function(a){return[].slice.call(arguments,1).forEach(function(b){for(var c in b)void 0!==b[c]&&(a[c]=b[c])}),a},a.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},a.values=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(a[c]);return b},a.clone=function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var b=document.createElement("a");a.absolutify=function(a){return b.href=a,b.href};var c=/^https?/;a.httpUrl=function(a){return c.test(a)},a.outerHTML=function(a){if(a.outerHTML)return a.outerHTML;var b=document.createElement("div");b.appendChild(a.cloneNode(!0));var c=b.innerHTML;return b=null,c},a.getDoctype=function(a){a=a||document;var b=a.doctype||[].filter.call(a.childNodes,function(a){return a.nodeType==Node.DOCUMENT_TYPE_NODE})[0];return b?"<!DOCTYPE HTML"+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+(b.systemId?' "'+b.systemId+'"':"")+">":""},a.getMetaViewportProperties=function(a){var b=/,\s?/;a=a||document;var c={},d=a.querySelectorAll('meta[name="viewport"]');if(0==d.length)return!1;var e=d[0].getAttribute("content");if(null==e)return!1;for(var f=e.split(b),g=0;g<f.length;g++){var h=f[g].split("=");if(h.length>=2){var i=h[0],j=h[1];c[i]=j}}return c},a.removeBySelector=function(b,c){c=c||document;var d=c.querySelectorAll(b);return a.removeElements(d,c)},a.removeElements=function(a,b){b=b||document;for(var c=0,d=a.length;d>c;c++){var e=a[c];e.parentNode.removeChild(e)}return a};var d;return a.supportsLocalStorage=function(){if(void 0!==d)return d;var a="modernizr";try{localStorage.setItem(a,a),localStorage.removeItem(a),d=!0}catch(b){d=!1}return d},a.matchMedia=function(a){"use strict";var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}},a.domIsReady=function(a){var a=a||document;return a.attachEvent?"complete"===a.readyState:"loading"!==a.readyState},a.getPhysicalScreenSize=function(a){function b(b){var c=a||window.devicePixelRatio||1;return b.width=Math.round(b.width*c),b.height=Math.round(b.height*c),b}var c=navigator.userAgent.match(/ip(hone|od|ad)/i),d=(navigator.userAgent.match(/android (\d)/i)||{})[1],e={width:window.outerWidth,height:window.outerHeight};if(!c)return d>3?b(e):e;var f=window.orientation%180;return f?(e.height=screen.width,e.width=screen.height):(e.width=screen.width,e.height=screen.height),b(e)},a.waitForReady=function(b,c){var d=!1,e=function(){d||(d=!0,f&&clearInterval(f),c(b))},f=setInterval(function(){a.domIsReady(b)&&e()},100);b.addEventListener("readystatechange",e,!1)},a})},{}]},{},[5]); | ||
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils"],e):"object"==typeof c?b.exports=e(a("../mobifyjs-utils/utils.js")):d.ResizeImages=e(d.Utils)}(this,function(a){function b(b){if(a.supportsLocalStorage()){var c={supported:b,date:Date.now()};localStorage.setItem(d,JSON.stringify(c))}}var c=window.ResizeImages={},d="Mobify-Webp-Support-v2";c.userAgentWebpDetect=function(a){var b=/(Android\s|Chrome\/|Opera9.8*Version\/..\.|Opera..\.)/i,c=new RegExp("(Android\\s(0|1|2|3|(4(?!.*Chrome)))\\.)|(Chrome\\/[0-8]\\.)|(Chrome\\/9\\.0\\.)|(Chrome\\/1[4-6]\\.)|(Android\\sChrome\\/1.\\.)|(Android\\sChrome\\/20\\.)|(Chrome\\/(1.|20|21|22)\\.)|(Opera.*(Version/|Opera\\s)(10|11)\\.)","i");return b.test(a)?c.test(a)?!1:!0:!1},c.dataUriWebpDetect=function(a){var c=new Image;c.onload=function(){var d=1===c.width?!0:!1;b(d),a&&a(d)},c.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQABgBwlpAADcAD+/gbQAA=="},c.supportsWebp=function(e){if(a.supportsLocalStorage()){var f,g=localStorage.getItem(d);if(g&&(f=JSON.parse(g)),f&&Date.now()-f.date<6048e5)return f.supported}c.dataUriWebpDetect(e);var h=c.userAgentWebpDetect(navigator.userAgent);return b(h),h},c.getImageURL=function(a,b){var d=b;d||(d=c.processOptions());var e=[d.proto+d.host];if(d.projectName){var f="project-"+d.projectName;e.push(f)}return d.cacheBreaker&&e.push("cb"+d.cacheBreaker),d.cacheHours&&e.push("c"+d.cacheHours),d.format?e.push(d.format+(d.quality||"")):d.quality&&e.push("q"+d.quality),d.maxWidth&&(e.push(d.maxWidth),d.maxHeight&&e.push(d.maxHeight)),e.push(a),e.join("/")},c._rewriteSrcAttribute=function(b,d,e){if(e=b.getAttribute(d.sourceAttribute)||e){var g=a.absolutify(e);a.httpUrl(g)&&(d.onerror&&b.setAttribute("onerror",d.onerror),b.setAttribute(d.targetAttribute,c.getImageURL(g,d)),b.setAttribute("data-orig-src",e),f||d.sourceAttribute==d.targetAttribute||b.removeAttribute(d.sourceAttribute))}},c._resizeSourceElement=function(b,d,e){var f=b.getAttribute("data-width"),g=d;f&&(g=a.clone(d),g.maxWidth=f),c._rewriteSrcAttribute(b,g,e)},c._crawlPictureElement=function(a,b){var d=a.getElementsByTagName("source");if(0!==d.length&&!a.hasAttribute("mobify-optimized")){a.setAttribute("mobify-optimized","");for(var e=a.getAttribute("data-src"),f=0,g=d.length;g>f;f++)c._resizeSourceElement(d[f],b,e)}};var e=[320,640,768,1080,1536,2048,4e3];c._getBinnedDimension=function(a){for(var b=0,c=0,d=e.length;d>c&&(b=e[c],!(b>=a));c++);return b},c._shouldResize=function(b){var c=a.getMetaViewportProperties(b);return c?!c["initial-scale"]&&c.width?"device-width"==c.width:!c.width&&c["initial-scale"]?"1"==c["initial-scale"]:c.width&&c["initial-scale"]?(initialScale=parseInt(c["initial-scale"]),initialScale>=1&&"device-width"==c.width):!1:!1},c.processOptions=function(b){var d=a.clone(c.defaults);if(b&&a.extend(d,b),null==d.resize&&b.document){var e=c._shouldResize(b.document);c.defaults.resize=d.resize=e}if(!d.format&&d.webp&&(d.format="webp"),d.resize){var f=d.devicePixelRatio||window.devicePixelRatio,g=a.getPhysicalScreenSize(f),h=d.maxWidth||c._getBinnedDimension(g.width),i=d.maxHeight||void 0;f&&d.maxWidth&&(h*=f,d.maxHeight&&(i*=f)),d.maxWidth=Math.ceil(h),d.maxHeight&&i&&(d.maxHeight=Math.ceil(i))}else d.maxWidth=d.maxHeight=d.devicePixelRatio=null;return d},c.resize=function(a,b){if(a.length){b&&!b.document&&(b.document=a[0].ownerDocument);for(var d=c.processOptions(b),e=0;e<a.length;e++){var f=a[e];"IMG"!==f.nodeName||f.hasAttribute("mobify-optimized")?"PICTURE"===f.nodeName&&c._crawlPictureElement(f,d):(f.setAttribute("mobify-optimized",""),c._rewriteSrcAttribute(f,d))}return a}},c.restoreOriginalSrc=function(a){var b;a.target.removeAttribute("onerror"),b=a.target.getAttribute("data-orig-src"),b&&a.target.setAttribute("src",b)};var f=window.Mobify&&window.Mobify.capturing||!1;return c.defaults={proto:"//",host:"ir0.mobify.com",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),sourceAttribute:"x-src",targetAttribute:f?"x-src":"src",webp:c.supportsWebp(),resize:!0,onerror:"ResizeImages.restoreOriginalSrc(event);"},c})},{"../mobifyjs-utils/utils.js":3}],2:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("../mobifyjs-utils/utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b={cache:{},options:{},utils:{}},c="Mobify-Jazzcat-Cache-v1.0";b.reset=function(a){b.cache=a||{}},b.get=function(a,c){var d=b.cache[a.split("#")[0]];return d&&c&&(d.lastUsed=Date.now()),d},b.set=function(a,c){b.cache[a]=c},b.load=function(a){var d,e,f=localStorage.getItem(c);if(a&&void 0!==a.overrideTime&&(e={overrideTime:a.overrideTime}),f){try{f=JSON.parse(f)}catch(g){return}for(d in f)f.hasOwnProperty(d)&&!b.utils.isStale(f[d],e)&&b.set(d,f[d])}};var d=!0;b.save=function(e){var f,g=10;return d?(d=!1,void function h(){var i=function(){var i,j,k,l=9007199254740991;f=f||a.clone(b.cache);try{j=JSON.stringify(f)}catch(m){return d=!0,e&&e(m)}try{localStorage.setItem(c,j)}catch(m){if(!--g)return d=!0,e&&e(m);for(var n in f)if(f.hasOwnProperty(n)){if(i=f[n],!i.lastUsed){k=n,l=0;break}i.lastUsed<=l&&(k=n,l=i.lastUsed)}return delete f[k],h()}d=!0,e&&e()};a.domIsReady()?i():setTimeout(h,15)}()):e&&e("Save currently in progress")};var e=/^\s*(public|private|no-cache|no-store)\s*$/,f=/^\s*(max-age)\s*=\s*(\d+)\s*$/;b.utils.ccParse=function(a){var b,c={};return a.split(",").forEach(function(a){(b=e.exec(a))?c[b[1]]=!0:(b=f.exec(a))&&(c[b[1]]=parseInt(b[2],10))}),c},b.utils.isStale=function(a,c){var d,e,f,g,h=864e5,i=a.headers||{},j=i["cache-control"],k=Date.now(),l=Date.parse(i.date),m=i["last-modified"];return l&&l+6e5>k?!1:c&&(g=c.overrideTime)&&l?k>l+60*g*1e3:j&&l?(j=b.utils.ccParse(j),!j["max-age"]||j["no-store"]||j["no-cache"]?!0:k>l+1e3*j["max-age"]):i.expires&&(d=Date.parse(i.expires))?k>d:m&&(m=Date.parse(m))&&l&&(f=l-m,e=k-l,.1*f>e&&h>e)?!1:!0};var g=window.Jazzcat={httpCache:b,write:document.write};g.isIncompatibleBrowser=function(b){var c=/(firefox)[\/\s](\d+)|(opera[\s\S]*version[\/\s](11|12))/i.exec(b||navigator.userAgent);return c&&c[1]&&+c[2]<12||c&&c[3]||!a.supportsLocalStorage()||!window.JSON?!0:!1},g.cacheLoaderInserted=!1,g.optimizeScripts=function(c,d){if(d=d||{},d&&void 0!==d.cacheOverrideTime&&a.extend(b.options,{overrideTime:d.cacheOverrideTime}),c=Array.prototype.slice.call(c),!c.length||g.isIncompatibleBrowser())return c;d=a.extend({},g.defaults,d||{});for(var e,f=d.concat,h=void 0!==d.inlineLoader?d.inlineLoader:!0,i=function(a,b){if(a){var c=g.getLoaderScript(b,d);a.parentNode.insertBefore(c,a)}},j=function(a,b){var c=g.getLoaderScript(b,d);a.push(c)},k={head:{firstScript:void 0,urls:[],scripts:[]},body:{firstScript:void 0,urls:[],scripts:[]}},l=[],m=0,n=c.length;n>m;m++){var o=c[m];if(!(o.hasAttribute("mobify-optimized")||o.hasAttribute("skip-optimize")||/mobify/i.test(o.className)))if(e=o.getAttribute(d.attribute)){if(e=a.absolutify(e),a.httpUrl(e)){if(!g.cacheLoaderInserted){b.load(b.options);var p=g.getHttpCacheLoaderScript(d);h?o.parentNode.insertBefore(p,o):l.push(p),g.cacheLoaderInserted=!0}var q;if(q=h?"HEAD"===o.parentNode.nodeName?"head":"body":"head",!b.get(e))if(f){if(k[q].urls.push(e),void 0===k[q].firstScript){k[q].firstScript=o;var r=l.length}}else h?i(o,[e]):j(l,[e]);if(o.type="text/mobify-script",o.hasAttribute("onload")){var s=o.getAttribute("onload");o.innerHTML=d.execCallback+"('"+e+"', '"+s.replace(/'/g,"\\'")+"');",o.removeAttribute("onload")}else o.innerHTML=d.execCallback+"('"+e+"');";o.removeAttribute(d.attribute),h||l.push(o)}}else{if(h)continue;l.push(o)}}if(f)if(h)i(k.head.firstScript,k.head.urls),i(k.body.firstScript,k.body.urls);else if(r){var t=g.getLoaderScript(k.head.urls,d);l.splice(r,0,t)}return h?c:l},g.getHttpCacheLoaderScript=function(a){var c=document.createElement("script");return c.type="text/mobify-script",c.innerHTML=b.options.overrideTime?a.cacheLoadCallback+"("+JSON.stringify(b.options)+");":a.cacheLoadCallback+"();",c},g.getLoaderScript=function(a,b){var c;return a&&a.length&&(c=document.createElement("script"),c.setAttribute("mobify-optimized",""),c.setAttribute(b.attribute,g.getURL(a,b))),c},g.getURL=function(b,c){var c=a.extend({},g.defaults,c||{});return c.base+(c.projectName?"/project-"+c.projectName:"")+(c.cacheBreaker?"/cb"+c.cacheBreaker:"")+"/"+c.responseType+("jsonp"===c.responseType?"/"+c.loadCallback:"")+"/"+encodeURIComponent(JSON.stringify(b.slice().sort()))};var h=/(<\/scr)(ipt\s*>)/gi;return g.exec=function(a,c){var d,e=b.get(a,!0),f="";c?(c=";"+c+";",f=' onload="'+c+'"'):c="",e?(d='data-orig-src="'+a+'"',d+=">"+e.body.replace(h,"$1\\$2")+c):d='src="'+a+'"'+f+">",g.write.call(document,"<script "+d+"</script>")},g.load=function(a){var c,d=0,e=!1;if(a){for(;c=a[d++];)"ready"==c.status&&c.statusCode>=200&&c.statusCode<300&&(e=!0,b.set(encodeURI(c.url),c));e&&b.save()}},g.defaults={selector:"script",attribute:"x-src",base:"//jazzcat.mobify.com",responseType:"jsonp",execCallback:"Jazzcat.exec",loadCallback:"Jazzcat.load",cacheLoadCallback:"Jazzcat.httpCache.load",inlineLoader:"true",concat:!1,projectName:""},g})},{"../mobifyjs-utils/utils.js":3}],3:[function(a,b,c){!function(a,d){"function"==typeof define&&define.amd?define([],d):"object"==typeof c?b.exports=d():a.Utils=d()}(this,function(){var a={};a.extend=function(a){return[].slice.call(arguments,1).forEach(function(b){for(var c in b)void 0!==b[c]&&(a[c]=b[c])}),a},a.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},a.values=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(a[c]);return b},a.clone=function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var b=document.createElement("a");a.absolutify=function(a){return b.href=a,b.href};var c=/^https?/;a.httpUrl=function(a){return c.test(a)},a.outerHTML=function(a){if(a.outerHTML)return a.outerHTML;var b=document.createElement("div");b.appendChild(a.cloneNode(!0));var c=b.innerHTML;return b=null,c},a.getDoctype=function(a){a=a||document;var b=a.doctype||[].filter.call(a.childNodes,function(a){return a.nodeType==Node.DOCUMENT_TYPE_NODE})[0];return b?"<!DOCTYPE HTML"+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+(b.systemId?' "'+b.systemId+'"':"")+">":""},a.getMetaViewportProperties=function(a){var b=/,\s?/;a=a||document;var c={},d=a.querySelectorAll('meta[name="viewport"]');if(0==d.length)return!1;var e=d[0].getAttribute("content");if(null==e)return!1;for(var f=e.split(b),g=0;g<f.length;g++){var h=f[g].split("=");if(h.length>=2){var i=h[0],j=h[1];c[i]=j}}return c},a.removeBySelector=function(b,c){c=c||document;var d=c.querySelectorAll(b);return a.removeElements(d,c)},a.removeElements=function(a,b){b=b||document;for(var c=0,d=a.length;d>c;c++){var e=a[c];e.parentNode.removeChild(e)}return a};var d;return a.supportsLocalStorage=function(){if(void 0!==d)return d;var a="modernizr";try{localStorage.setItem(a,a),localStorage.removeItem(a),d=!0}catch(b){d=!1}return d},a.matchMedia=function(a){"use strict";var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}},a.domIsReady=function(a){var a=a||document;return a.attachEvent?"complete"===a.readyState:"loading"!==a.readyState},a.getPhysicalScreenSize=function(a){function b(b){var c=a||window.devicePixelRatio||1;return b.width=Math.round(b.width*c),b.height=Math.round(b.height*c),b}var c=navigator.userAgent.match(/ip(hone|od|ad)/i),d=(navigator.userAgent.match(/android (\d)/i)||{})[1],e={width:window.outerWidth,height:window.outerHeight};if(!c)return d>3?b(e):e;var f=window.orientation%180;return f?(e.height=screen.width,e.width=screen.height):(e.width=screen.width,e.height=screen.height),b(e)},a.waitForReady=function(b,c){var d=!1,e=function(){d||(d=!0,f&&clearInterval(f),c(b))},f=setInterval(function(){a.domIsReady(b)&&e()},100);b.addEventListener("readystatechange",e,!1)},a})},{}],4:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/patchAnchorLinks"],e):"object"==typeof c?b.exports=e(a("../bower_components/mobifyjs-utils/utils.js"),a("./patchAnchorLinks.js")):d.Capture=e(d.Utils,d.patchAnchorLinks)}(this,function(a,b){function c(a){return a.nodeName.toLowerCase()}function d(a){return a.replace('"',""")}function e(b){return b?[].map.call(b.childNodes,function(b){var d=c(b);return"#comment"==d?"<!--"+b.textContent+"-->":"plaintext"==d?b.textContent:"script"==d&&(/mobify/.test(b.src)||/mobify/i.test(b.textContent))?"":b.outerHTML||b.nodeValue||a.outerHTML(b)}).join(""):""}window.Mobify&&!window.Mobify.capturing&&document.getElementsByTagName("plaintext").length&&(window.Mobify.capturing=!0);var f=/(<script[\s\S]*?>)/gi,g={style:' media="mobify-media"',script:' type="text/mobify-script"'},h=new RegExp(a.values(g).join("|"),"g"),i={img:["src"],source:["src"],iframe:["src"],script:["src","type"],link:["href"],style:["media"]},j=new RegExp("<("+a.keys(i).join("|")+")([\\s\\S]*?)>","gi"),k={},l={};for(var m in i)if(i.hasOwnProperty(m)){var n=i[m];n.forEach(function(a){l[a]=!0}),k[m]=new RegExp("\\s+((?:"+n.join("|")+")\\s*=\\s*(?:('|\")[\\s\\S]+?\\2))","gi")}var o=document.createElement("div"),p=function(a,b){this.sourceDoc=a,this.prefix=b||"x-",window.Mobify&&(window.Mobify.prefix=this.prefix)};return p.init=p.initCapture=function(b,c,d){var c=c||document,e=function(b,c,d){var e=new p(c,d),f=p.createDocumentFragmentsStrings(e.sourceDoc);a.extend(e,f);var g=e.createDocumentFragments();a.extend(e,g),b(e)};if(a.domIsReady(c))e(b,c,d);else{var f=!1,g=function(){f||(f=!0,h&&clearInterval(h),e(b,c,d))},h=setInterval(function(){a.domIsReady(c)&&g()},100);c.addEventListener("readystatechange",g,!1)}},p.removeClosingTagsAtEndOfString=function(a){var b=a.match(/((<\/[^>]+>)+)$/);return b?a.substring(0,a.length-b[0].length):a},p.removeTargetSelf=function(a){return a.replace(/target=("_self"|\'_self\')/gi,"")},p.cloneAttributes=function(a,b){var c=a.match(/^<(\w+)([\s\S]*)$/i);return o.innerHTML="<div"+c[2],[].forEach.call(o.firstChild.attributes,function(a){try{b.setAttribute(a.nodeName,a.nodeValue)}catch(c){console.error("Error copying attributes while capturing: ",c)}}),b},p.disable=function(a,b){var c=function(){return function(a,c,d){return lowercaseTagName=c.toLowerCase(),result="<"+lowercaseTagName+(g[lowercaseTagName]||"")+d.replace(k[lowercaseTagName]," "+b+"$1")+">"}}(),d=/(<!--[\s\S]*?-->)|(?=<\/script)/i,e=a.split(d),h=e.map(function(a){var b;return a?/^<!--/.test(a)?a:(b=a.split(f),b[0]=b[0].replace(j,c),b[1]&&(b[1]=b[1].replace(j,c)),b):""});return[].concat.apply([],h).join("")},p.enable=function(b,c){var d=new RegExp("\\s"+c+"("+a.keys(l).join("|")+")","gi");return b.replace(d," $1").replace(h,"")},p.openTag=function(a){if(!a)return"";a.length&&(a=a[0]);var b=[];return[].forEach.call(a.attributes,function(a){b.push(" ",a.name,'="',d(a.value),'"')}),"<"+c(a)+b.join("")+">"},p.setElementContentFromString=function(a,b){for(o.innerHTML=b;o.firstChild;a.appendChild(o.firstChild));},p.createDocumentFragmentsStrings=function(b){var c=b.getElementsByTagName("head")[0]||b.createElement("head"),d=b.getElementsByTagName("body")[0]||b.createElement("body"),f=b.getElementsByTagName("html")[0];captured={doctype:a.getDoctype(b),htmlOpenTag:p.openTag(f),headOpenTag:p.openTag(c),bodyOpenTag:p.openTag(d),headContent:e(c),bodyContent:e(d)},captured.all=function(a){return this.doctype+this.htmlOpenTag+this.headOpenTag+(a||"")+this.headContent+this.bodyContent};var g=/<!--(?:[\s\S]*?)-->|(<\/head\s*>|<body[\s\S]*$)/gi,h=captured.bodyContent=captured.headContent+captured.bodyContent;captured.headContent="";for(var i;i=g.exec(h);i)if(i[1]){captured.headContent=h.slice(0,i.index);var j=new RegExp("^[\\s\\S]*(<head(?:[^>'\"]*|'[^']*?'|\"[^\"]*?\")*>)([\\s\\S]*)$").exec(captured.headContent);if(j&&(captured.headOpenTag=j[1],captured.headContent=j[2]),"/"!=i[1][1]){captured.bodyContent=i[0];var k=/^((?:[^>'"]*|'[^']*?'|"[^"]*?")*>)([\s\S]*)$/.exec(captured.bodyContent);k&&(captured.bodyOpenTag=k[1],captured.bodyContent=k[2]);break}captured.bodyContent=h.slice(i.index+i[1].length)}return captured},p.prototype.restore=function(){var b=this,c=b.sourceDoc,d=function(){c.removeEventListener("readystatechange",d,!1),setTimeout(function(){c.open(),c.write(b.all()),c.close()},15)};a.domIsReady(c)?d():c.addEventListener("readystatechange",d,!1)},p.prototype.createDocumentFragments=function(){var a={},b=a.capturedDoc=document.implementation.createHTMLDocument(""),c=a.htmlEl=b.documentElement,d=a.headEl=c.firstChild,e=a.bodyEl=c.lastChild;p.cloneAttributes(this.htmlOpenTag,c),p.cloneAttributes(this.headOpenTag,d),p.cloneAttributes(this.bodyOpenTag,e),e.innerHTML=p.disable(this.bodyContent,this.prefix);var f=b.querySelectorAll("head");if(f.length>1)for(;f[1].hasChildNodes();)f[1].removeChild(f[1].lastChild);var g=p.disable(this.headContent,this.prefix);try{d.innerHTML=g}catch(h){var i=d.getElementsByTagName("title")[0];i&&d.removeChild(i),p.setElementContentFromString(d,g)}return a},p.prototype.enabledHTMLString=p.prototype.escapedHTMLString=function(){var b=this.capturedDoc,c=p.enable(a.outerHTML(b.documentElement),this.prefix),d=this.doctype+c;return d},p.prototype.render=function(a){var b;b=a?p.enable(a,this.prefix):this.enabledHTMLString();var c=this.sourceDoc;window.Mobify&&(window.Mobify.capturing=!1),setTimeout(function(){c.open("text/html","replace"),c.write(b),c.close()})},p.prototype.getCapturedDoc=function(){return this.capturedDoc},p.getMobifyLibrary=function(a){var a=a||document,b=a.getElementById("mobify-js");return b||(b=a.getElementsByTagName("script")[0],b.id="mobify-js",b.setAttribute("class","mobify")),b},p.getPostload=function(a){var a=a||document,b=void 0,c=window.Mobify.Tag&&window.Mobify.Tag.options&&window.Mobify.Tag.getOptions(Mobify.Tag.options)||{},d=c.post&&c.post.toString()||window.Mobify.mainExecutable;return d?(b=document.createElement("script"),b.innerHTML="var postload = "+d+"; postload();",b.id="postload",b.setAttribute("class","mobify")):b=a.getElementById("main-executable"),b},p.insertMobifyScripts=function(a,b){var c=p.getMobifyLibrary(a),d=b.head||b.getElementsByTagName("head")[0];if(d){var e=p.getPostload(a);if(e){var f=b.importNode(e,!1);e.src||(f.innerHTML=e.innerHTML),d.insertBefore(f,d.firstChild)}var g=b.importNode(c,!1);d.insertBefore(g,d.firstChild)}},p.prototype.renderCapturedDoc=function(){if(p.insertMobifyScripts(this.sourceDoc,this.capturedDoc),window.Mobify&&window.Mobify.points){var a=this.bodyEl,b=this.capturedDoc.createElement("div");b.id="mobify-point",b.setAttribute("style","display: none;"),b.innerHTML=window.Mobify.points[0],a.insertBefore(b,a.firstChild)}this.render()},p.patchAnchorLinks=b,p})},{"../bower_components/mobifyjs-utils/utils.js":3,"./patchAnchorLinks.js":8}],5:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils.js");b.exports=e(f)}else d.CssOptimize=e(d.Utils)}(this,function(a){var b=window.cssOptimize={};b.getCssUrl=function(b,d){var e=a.extend({},c,d),f=[e.protoAndHost];return e.projectName&&f.push("project-"+e.projectName),f.push(e.endpoint),f.push(b),f.join("/")},b._rewriteHref=function(c,d){var e,f=c.getAttribute(d.targetAttribute);f&&(e=a.absolutify(f),a.httpUrl(e)&&(c.setAttribute("data-orig-href",f),c.setAttribute(d.targetAttribute,b.getCssUrl(e,d)),d.onerror&&c.setAttribute("onerror",d.onerror)))},b.optimize=function(d,e){for(var f,g=a.extend({},c,e),h=0,i=d.length;i>h;h++)f=d[h],"LINK"===f.nodeName&&"stylesheet"===f.getAttribute("rel")&&f.getAttribute(g.targetAttribute)&&!f.hasAttribute("mobify-optimized")&&(f.setAttribute("mobify-optimized",""),b._rewriteHref(f,g))};var c=(b.restoreOriginalHref=function(a){var b;a.target.removeAttribute("onerror"),(b=a.target.getAttribute("data-orig-href"))&&a.target.setAttribute("href",b)},b._defaults={protoAndHost:"//jazzcat.mobify.com",endpoint:"cssoptimizer",projectName:"oss-"+location.hostname.replace(/[^\w]/g,"-"),targetAttribute:"x-href",onerror:"Mobify.CssOptimize.restoreOriginalHref(event);"});return b})},{"../bower_components/mobifyjs-utils/utils.js":3}],6:[function(a,b,c){!function(d,e){"function"==typeof define&&define.amd?define(["mobifyjs/utils","mobifyjs/capture"],e):"object"==typeof c&&(b.exports=e(a("../../bower_components/mobifyjs-utils/utils.js"),a("../capture.js")))}(this,function(a,b){var c=window.Mobify&&window.Mobify.capturing||!1;if(c){var d=b.prototype.renderCapturedDoc;return void(b.prototype.renderCapturedDoc=function(){for(var a=this.capturedDoc.querySelectorAll("picture img"),b=0,c=a.length;c>b;b++){var e=a[b],f=window.Mobify&&window.Mobify.prefix+"src";e.setAttribute("data-orig-src",e.getAttribute(f)),e.removeAttribute(f)}d.apply(this,arguments)})}window.matchMedia=window.matchMedia||a.matchMedia(document),function(a){"use strict";var b,c=!1||a.localStorage&&"true"===a.localStorage["picturefill-prefHD"];a.document.createElement("picture")&&a.document.createElement("source")&&a.HTMLPictureElement||(a.picturefill=function(){for(var d=a.document.getElementsByTagName("picture"),e=0,f=d.length;f>e;e++){var g=d[e].getElementsByTagName("source"),h=null,i=[];if(!g.length){var j=d[e].innerHTML,k=a.document.createElement("div"),l=j.replace(/(<)source([^>]+>)/gim,"$1div$2").match(/<div[^>]+>/gim);k.innerHTML=l.join(""),g=k.getElementsByTagName("div")}for(var m=0,n=g.length;n>m;m++){var o=g[m].getAttribute("media");(!o||a.matchMedia&&a.matchMedia(o).matches)&&i.push(g[m])}if(h=d[e].getElementsByTagName("img")[0],i.length){var p=i.pop(),q=p.getAttribute("srcset");if(h||(h=a.document.createElement("img"),h.alt=d[e].getAttribute("alt"),d[e].appendChild(h)),q){var r=c&&a.devicePixelRatio||1,g=q.split(",");b=a.devicePixelRatio>1;for(var s=g.length,t=s-1;t>=0;t--){var u=g[t].replace(/^\s*/,"").replace(/\s*$/,"").split(" "),v=parseFloat(u[1],10);if(r>=v){if(h.getAttribute("src")!==u[0]){var w=document.createElement("img");w.src=u[0],w.onload=function(){this.width=this.cloneNode(!0).width/v},h.parentNode.replaceChild(w,h)}break}}}else h.src=p.getAttribute("src")}}},a.addEventListener?(a.addEventListener("resize",a.picturefill,!1),a.addEventListener("DOMContentLoaded",function(){a.picturefill(),a.removeEventListener("load",a.picturefill,!1)},!1),a.addEventListener("load",a.picturefill,!1)):a.attachEvent&&a.attachEvent("onload",a.picturefill))}(this)})},{"../../bower_components/mobifyjs-utils/utils.js":3,"../capture.js":4}],7:[function(a,b,c){!function(d,e){if("function"==typeof a&&"function"==typeof define&&define.amd)a(["mobifyjs/utils","mobifyjs/capture","mobifyjs/resizeImages","mobifyjs/jazzcat","mobifyjs/unblockify","mobifyjs/cssOptimize","mobifyjs/external/picturefill"],e,void 0,!0);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils"),g=a("./capture"),h=a("../bower_components/imageresize-client/resizeImages"),i=a("../bower_components/jazzcat-client/jazzcat"),j=a("./cssOptimize"),k=a("./unblockify");a("./external/picturefill"),b.exports=e(f,g,h,i,k,j)}}(this,function(a,b,c,d,e,f){var g=window.Mobify=window.Mobify||{};return g.Utils=a,g.Capture=b,g.ResizeImages=c,g.Jazzcat=d,g.CssOptimize=f,g.Unblockify=e,g.api="2.0",g})},{"../bower_components/imageresize-client/resizeImages":1,"../bower_components/jazzcat-client/jazzcat":2,"../bower_components/mobifyjs-utils/utils":3,"./capture":4,"./cssOptimize":5,"./external/picturefill":6,"./unblockify":9}],8:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils"],e);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils.js");b.exports=e(f)}else d.Jazzcat=e(d.Utils)}(this,function(a){var b=function(a){return a=window.navigator.userAgent,/firefox|fennec/i.test(a)},c=function(a){var b=a.body;if(b&&b.addEventListener){var c=function(a){var b=a.target,c=function(a){return"A"==a.nodeName&&/^#/.test(a.getAttribute("href"))};if(c(b)){var e="undefined"!=typeof a.defaultPrevented?a.defaultPrevented:a.getPreventDefault&&a.getPreventDefault();if(!e){a.preventDefault(),a.defaultPrevented=!1;var f=!0;a.preventDefault=function(){a.defaultPrevented=!0,f=!1},setTimeout(function(){f&&d(b.getAttribute("href"))},50)}}},d=function(b){var c,d=/^#([^\s]*)/,e=b.match(d);if(e&&""===e[1])c=a.body;else if(e&&e[1])var c=a.getElementById(e[1]);c&&c.scrollIntoView&&c.scrollIntoView()};b.addEventListener("click",c,!1)}},d=function(){b()&&a.waitForReady(document,c)};return d})},{"../bower_components/mobifyjs-utils/utils.js":3}],9:[function(a,b,c){!function(d,e){if("function"==typeof define&&define.amd)define(["mobifyjs/utils","mobifyjs/capture"],e);else if("object"==typeof c){var f=a("../bower_components/mobifyjs-utils/utils.js"),g=a("./capture.js");b.exports=e(f,g)}else d.Unblockify=e(d.Utils,d.Capture)}(this,function(a,b){var c={};return c.moveScripts=function(b,c){a.removeElements(b,c);for(var d=0,e=b.length;e>d;d++){var f=b[d];c.body.appendChild(f)}},c.unblock=function(a){var d=b.prototype.insertMobifyScripts;b.prototype.insertMobifyScripts=function(){d.call(this);var b=this.capturedDoc;c.moveScripts(a,b)}},c})},{"../bower_components/mobifyjs-utils/utils.js":3,"./capture.js":4}]},{},[7]); |
@@ -24,4 +24,2 @@ // http://stackoverflow.com/questions/13567312/working-project-structure-that-uses-grunt-js-to-combine-javascript-files-using-r | ||
'http://localhost:3000/tests/capture.html', | ||
'http://localhost:3000/tests/jazzcat.html', | ||
'http://localhost:3000/tests/resizeImages.html', | ||
'http://localhost:3000/tests/unblockify.html', | ||
@@ -34,3 +32,2 @@ 'http://localhost:3000/tests/cssOptimize.html', | ||
'http://localhost:3000/tests/tag-old-browser.html', | ||
'http://localhost:3000/tests/utils.html' | ||
] | ||
@@ -107,4 +104,2 @@ } | ||
'http://localhost:3000/tests/capture.html', | ||
'http://localhost:3000/tests/resizeImages.html', | ||
'http://localhost:3000/tests/jazzcat.html', | ||
'http://localhost:3000/tests/unblockify.html', | ||
@@ -116,3 +111,2 @@ 'http://localhost:3000/tests/cssOptimize.html', | ||
'http://localhost:3000/tests/tag-integration-tests.html', | ||
'http://localhost:3000/tests/utils.html' | ||
], | ||
@@ -119,0 +113,0 @@ concurrency: 16, |
{ | ||
"name": "mobifyjs", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Mobify.js is an open source library for improving responsive sites by providing responsive images, JS/CSS optimization, Adaptive Templating and more.", | ||
"author": "Mobify <dev@mobify.com>", | ||
"devDependencies": { | ||
"express": "3.3.1", | ||
"grunt": "~0.4.0", | ||
@@ -8,0 +9,0 @@ "grunt-requirejs": "~0.4.0", |
@@ -17,3 +17,3 @@ # Mobify.js | ||
Mobify.js uses Grunt.js and Require.js to build the library, and manage all of the dependencies. First, you will need to install the grunt-cli globally: | ||
Mobify.js uses Bower, Grunt.js and Require.js to build the library, and manage all of the dependencies. First, you will need to install the grunt-cli globally: | ||
@@ -27,2 +27,3 @@ npm install -g grunt-cli | ||
npm install | ||
bower install | ||
@@ -29,0 +30,0 @@ Now, to build the library, simply run the following command: |
@@ -9,3 +9,3 @@ (function (root, factory) { | ||
// like Node. | ||
module.exports = factory(require('./utils.js'), require('./patchAnchorLinks.js')); | ||
module.exports = factory(require('../bower_components/mobifyjs-utils/utils.js'), require('./patchAnchorLinks.js')); | ||
} else { | ||
@@ -12,0 +12,0 @@ // Browser globals (root is window) |
@@ -5,5 +5,8 @@ require.config({ | ||
"keepBuildDir": true, | ||
"paths": { | ||
"mobifyjs": "." | ||
"paths": { | ||
"mobifyjs": ".", | ||
"mobifyjs/utils": "../bower_components/mobifyjs-utils/utils", | ||
"mobifyjs/jazzcat": "../bower_components/jazzcat-client/jazzcat", | ||
"mobifyjs/resizeImages": "../bower_components/imageresize-client/resizeImages" | ||
}, | ||
}); |
@@ -12,3 +12,3 @@ /** | ||
// like Node. | ||
var Utils = require('./utils.js'); | ||
var Utils = require('../bower_components/mobifyjs-utils/utils.js'); | ||
module.exports = factory(Utils); | ||
@@ -15,0 +15,0 @@ } else { |
@@ -9,3 +9,4 @@ (function (root, factory) { | ||
// like Node. | ||
module.exports = factory(require('../utils.js'), require('../capture.js')); | ||
module.exports = factory(require('../../bower_components/mobifyjs-utils/utils.js'), | ||
require('../capture.js')); | ||
} | ||
@@ -12,0 +13,0 @@ }(this, function (Utils, Capture) { |
@@ -15,6 +15,6 @@ (function (root, factory) { | ||
// like Node. | ||
var Utils = require('./utils'); | ||
var Utils = require('../bower_components/mobifyjs-utils/utils'); | ||
var Capture = require('./capture'); | ||
var ResizeImages = require('./resizeImages'); | ||
var Jazzcat = require('./jazzcat'); | ||
var ResizeImages = require('../bower_components/imageresize-client/resizeImages'); | ||
var Jazzcat = require('../bower_components/jazzcat-client/jazzcat'); | ||
var CssOptimize = require('./cssOptimize'); | ||
@@ -21,0 +21,0 @@ var Unblockify = require('./unblockify'); |
@@ -10,3 +10,3 @@ // Fixes anchor links (on FF) | ||
// like Node. | ||
var Utils = require('./utils.js'); | ||
var Utils = require('../bower_components/mobifyjs-utils/utils.js'); | ||
module.exports = factory(Utils); | ||
@@ -13,0 +13,0 @@ } else { |
@@ -9,3 +9,3 @@ (function (root, factory) { | ||
// like Node. | ||
var Utils = require('./utils.js'); | ||
var Utils = require('../bower_components/mobifyjs-utils/utils.js'); | ||
var Capture = require('./capture.js'); | ||
@@ -12,0 +12,0 @@ module.exports = factory(Utils, Capture); |
@@ -77,2 +77,6 @@ --- | ||
document's viewport meta tag. The default is true. | ||
- `cacheBreaker`: A string used to break the cache. By default, the Image | ||
Resizer service caches images to avoid reprocessing the same image more than | ||
once. Use this option if you change an image and need to break Image Resizer's | ||
cache. | ||
@@ -79,0 +83,0 @@ **Example** |
@@ -39,3 +39,3 @@ --- | ||
// path to mobify.js | ||
"//cdn.mobify.com/mobifyjs/build/mobify-2.0.9.min.js", | ||
"//cdn.mobify.com/mobifyjs/build/mobify-2.0.10.min.js", | ||
@@ -74,3 +74,3 @@ // calls to APIs go here (or path to a main.js) | ||
<script async src="//cdn.mobify.com/mobifyjs/build/mobify-2.0.9.min.js"></script> | ||
<script async src="//cdn.mobify.com/mobifyjs/build/mobify-2.0.10.min.js"></script> | ||
<script> | ||
@@ -77,0 +77,0 @@ var intervalId = setInterval(function(){ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
22976477
414
43046
120
16