27 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!26437merge,!26197V4 dev xmr,!20778V4 dev,!20539Allow multiple modals,!20854Fixes 15534,!19581V4 fix popover,!20493V4 dev display,!20636Fix docs for heading sizes,!19824blockquote-center,!22547Finished a new translation for bootstrap,!18704Extend form docs with example form errors,!19533Npm deps,!22143Fix selectable disabled toggle radio buttons,!22598test,!21067dfsa,!19602V4 palettes arun,!19448New pull request for testing,!19358XXL grid size,!19825.blockquote-center,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!19754Issue template,!19580ExitStars,!17021v4
!function(e){if(e.document){vart=e.document;t.querySelectorAll||(t.querySelectorAll=function(n){varr,i=t.createElement("style"),o=[];for(t.documentElement.firstChild.appendChild(i),t._qsa=[],i.styleSheet.cssText=n+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",e.scrollBy(0,0),i.parentNode.removeChild(i);t._qsa.length;)r=t._qsa.shift(),r.style.removeAttribute("x-qsa"),o.push(r);returnt._qsa=null,o}),t.querySelector||(t.querySelector=function(e){varn=t.querySelectorAll(e);returnn.length?n[0]:null}),t.getElementsByClassName||(t.getElementsByClassName=function(e){returne=String(e).replace(/^|\s+/g,"."),t.querySelectorAll(e)}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throwTypeError("Object.keys called on non-object");vart,n=[];for(tine)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);returnn}),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(void0===this||null===this)throwTypeError();vart=Object(this),n=t.length>>>0;if("function"!=typeofe)throwTypeError();varr,i=arguments[1];for(r=0;n>r;r++)rint&&e.call(i,t[r],r,t)}),function(e){vart="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=e.atob||function(e){e=String(e);varn,r=0,i=[],o=0,a=0;if(e=e.replace(/\s/g,""),e.length%4===0&&(e=e.replace(/=+$/,"")),e.length%4===1)throwError("InvalidCharacterError");if(/[^+/0-9A-Za-z]/.test(e))throwError("InvalidCharacterError");for(;r<e.length;)n=t.indexOf(e.charAt(r)),o=o<<6|n,a+=6,24===a&&(i.push(String.fromCharCode(o>>16&255)),i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o)),a=0,o=0),r+=1;return12===a?(o>>=4,i.push(String.fromCharCode(255&o))):18===a&&(o>>=2,i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o))),i.join("")},e.btoa=e.btoa||function(e){e=String(e);varn,r,i,o,a,s,l,d=0,h=[];if(/[^\x00-\xFF]/.test(e))throwError("InvalidCharacterError");for(;d<e.length;)n=e.charCodeAt(d++),r=e.charCodeAt(d++),i=e.charCodeAt(d++),o=n>>2,a=(3&n)<<4|r>>4,s=(15&r)<<2|i>>6,l=63&i,d===e.length+2?(s=64,l=64):d===e.length+1&&(l=64),h.push(t.charAt(o),t.charAt(a),t.charAt(s),t.charAt(l));returnh.join("")}}(e),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(e){vart=this.__proto__||this.constructor.prototype;returneinthis&&(!(eint)||t[e]!==this[e])}),function(){if("performance"ine==!1&&(e.performance={}),Date.now=Date.now||function(){return(newDate).getTime()},"now"ine.performance==!1){vart=Date.now();performance.timing&&performance.timing.navigationStart&&(t=performance.timing.navigationStart),e.performance.now=function(){returnDate.now()-t}}}(),e.requestAnimationFrame||(e.webkitRequestAnimationFrame?!function(e){e.requestAnimationFrame=function(t){returnwebkitRequestAnimationFrame(function(){t(e.performance.now())})},e.cancelAnimationFrame=webkitCancelAnimationFrame}(e):e.mozRequestAnimationFrame?!function(e){e.requestAnimationFrame=function(t){returnmozRequestAnimationFrame(function(){t(e.performance.now())})},e.cancelAnimationFrame=mozCancelAnimationFrame}(e):!function(e){e.requestAnimationFrame=function(t){returne.setTimeout(t,1e3/60)},e.cancelAnimationFrame=e.clearTimeout}(e))}}(this),function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):"object"==typeofexports?exports.Holder=t():e.Holder=t()}(this,function(){returnfunction(e){functiont(r){if(n[r])returnn[r].exports;vari=n[r]={exports:{},id:r,loaded:!1};returne[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}varn={};returnt.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){(function(t){functionr(e,t,n,r){vara=i(n.substr(n.lastIndexOf(e.domain)),e);a&&o({mode:null,el:r,flags:a,engineSettings:t})}functioni(e,t){varn={theme:k(M.settings.themes.gray,null),stylesheets:t.stylesheets,instanceOptions:t},r=e.split("?"),i=r[0].split("/");n.holderURL=e;varo=i[1],a=o.match(/([\d]+p?)x([\d]+p?)/);if(!a)return!1;if(n.fluid=-1!==o.indexOf("p"),n.dimensions={width:a[1].replace("p","%"),height:a[2].replace("p","%")},2===r.length){vars=v.parse(r[1]);if(s.bg&&(n.theme.background=w.parseColor(s.bg)),s.fg&&(n.theme.foreground=w.parseColor(s.fg)),s.bg&&!s.fg&&(n.autoFg=!0),s.theme&&n.instanceOptions.themes.hasOwnProperty(s.theme)&&(n.theme=k(n.instanceOptions.themes[s.theme],null)),s.text&&(n.text=s.text),s.textmode&&(n.textmode=s.textmode),s.size&&(n.size=s.size),s.font&&(n.font=s.font),s.align&&(n.align=s.align),n.nowrap=w.truthy(s.nowrap),n.auto=w.truthy(s.auto),n.outline=w.truthy(s.outline),w.truthy(s.random)){M.vars.cache.themeKeys=M.vars.cache.themeKeys||Object.keys(n.instanceOptions.themes);varl=M.vars.cache.themeKeys[0|Math.random()*M.vars.cache.themeKeys.length];n.theme=k(n.instanceOptions.themes[l],null)}}returnn}functiono(e){vart=e.mode,n=e.el,r=e.flags,i=e.engineSettings,o=r.dimensions,s=r.theme,l=o.width+"x"+o.height;if(t=null==t?r.fluid?"fluid":"image":t,null!=r.text&&(s.text=r.text,"object"===n.nodeName.toLowerCase())){for(varu=s.text.split("\\n"),c=0;c<u.length;c++)u[c]=w.encodeHtmlEntity(u[c]);s.text=u.join("\\n")}varf=r.holderURL,p=k(i,null);if(r.font&&(s.font=r.font,!p.noFontFallback&&"img"===n.nodeName.toLowerCase()&&M.setup.supportsCanvas&&"svg"===p.renderer&&(p=k(p,{renderer:"canvas"}))),r.font&&"canvas"==p.renderer&&(p.reRender=!0),"background"==t)null==n.getAttribute("data-background-src")&&x.setAttr(n,{"data-background-src":f});else{varg={};g[M.vars.dataAttr]=f,x.setAttr(n,g)}r.theme=s,n.holderData={flags:r,engineSettings:p},("image"==t||"fluid"==t)&&x.setAttr(n,{alt:s.text?s.text+" ["+l+"]":l});varm={mode:t,el:n,holderSettings:{dimensions:o,theme:s,flags:r},engineSettings:p};"image"==t?(r.auto||(n.style.width=o.width+"px",n.style.height=o.height+"px"),"html"==p.renderer?n.style.backgroundColor=s.background:(a(m),"exact"==r.textmode&&(n.holderData.resizeUpdate=!0,M.vars.resizableImages.push(n),d(n)))):"background"==t&&"html"!=p.renderer?a(m):"fluid"==t&&(n.holderData.resizeUpdate=!0,"%"==o.height.slice(-1)?n.style.height=o.height:null!=r.auto&&r.auto||(n.style.height=o.height+"px"),"%"==o.width.slice(-1)?n.style.width=o.width:null!=r.auto&&r.auto||(n.style.width=o.width+"px"),("inline"==n.style.display||""===n.style.display||"none"==n.style.display)&&(n.style.display="block"),h(n),"html"==p.renderer?n.style.backgroundColor=s.background:(M.vars.resizableImages.push(n),d(n)))}functiona(e){functionn(){vart=null;switch(l.renderer){case"canvas":t=z(h,e);break;case"svg":t=C(h,e);break;default:throw"Holder: invalid renderer: "+l.renderer}returnt}varr=null,i=e.mode,o=e.el,a=e.holderSettings,l=e.engineSettings;switch(l.renderer){case"svg":if(!M.setup.supportsSVG)return;break;case"canvas":if(!M.setup.supportsCanvas)return;break;default:return}vard={width:a.dimensions.width,height:a.dimensions.height,theme:a.theme,flags:a.flags},h=s(d);if(r=n(),null==r)throw"Holder: couldn't render placeholder";"background"==i?(o.style.backgroundImage="url("+r+")",o.style.backgroundSize=d.width+"px "+d.height+"px"):("img"===o.nodeName.toLowerCase()?x.setAttr(o,{src:r}):"object"===o.nodeName.toLowerCase()&&(x.setAttr(o,{data:r}),x.setAttr(o,{type:"image/svg+xml"})),l.reRender&&t.setTimeout(function(){vare=n();if(null==e)throw"Holder: couldn't render placeholder";"img"===o.nodeName.toLowerCase()?x.setAttr(o,{src:e}):"object"===o.nodeName.toLowerCase()&&(x.setAttr(o,{data:e}),x.setAttr(o,{type:"image/svg+xml"}))},150)),x.setAttr(o,{"data-holder-rendered":!0})}functions(e){functiont(e,t,n,r){t.width=n,t.height=r,e.width=Math.max(e.width,t.width),e.height+=t.height}varn=M.defaults.size;switch(parseFloat(e.theme.size)?n=e.theme.size:parseFloat(e.flags.size)&&(n=e.flags.size),e.font={family:e.theme.font?e.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:l(e.width,e.height,n,M.defaults.scale),units:e.theme.units?e.theme.units:M.defaults.units,weight:e.theme.fontweight?e.theme.fontweight:"bold"},e.text=e.theme.text||Math.floor(e.width)+"x"+Math.floor(e.height),e.noWrap=e.theme.nowrap||e.flags.nowrap,e.align=e.theme.align||e.flags.align||"center",e.flags.textmode){case"literal":e.text=e.flags.dimensions.width+"x"+e.flags.dimensions.height;break;case"exact":if(!e.flags.exactDimensions)break;e.text=Math.floor(e.flags.exactDimensions.width)+"x"+Math.floor(e.flags.exactDimensions.height)}varr=newy({width:e.width,height:e.height}),i=r.Shape,o=newi.Rect("holderBg",{fill:e.theme.background});if(o.resize(e.width,e.height),r.root.add(o),e.flags.outline){vara=newS(o.properties.fill);a=a.lighten(a.lighterThan("7f7f7f")?-.1:.1),o.properties.outline={fill:a.toHex(!0),width:2}}vars=e.theme.foreground;if(e.flags.autoFg){vard=newS(o.properties.fill),h=newS("fff"),u=newS("000",{alpha:.285714});s=d.blendAlpha(d.lighterThan("7f7f7f")?u:h).toHex(!0)}varc=newi.Group("holderTextGroup",{text:e.text,align:e.align,font:e.font,fill:s});c.moveTo(null,null,1),r.root.add(c);varf=c.textPositionData=j(r);if(!f)throw"Holder: staging fallback not supported yet.";c.properties.leading=f.boundingBox.height;varp=null,g=null,m=e.width*M.vars.lineWrapRatio,v=m;if(f.lineCount>1){varw,b=0,x=0,A=0;g=newi.Group("line"+A),("left"===e.align||"right"===e.align)&&(v=e.width*(1-2*(1-M.vars.lineWrapRatio)));for(varC=0;C<f.words.length;C++){vark=f.words[C];p=newi.Text(k.text);varE="\\n"==k.text;!e.noWrap&&(b+k.width>=v||E===!0)&&(t(c,g,b,c.properties.leading),c.add(g),b=0,x+=c.properties.leading,A+=1,g=newi.Group("line"+A),g.y=x),E!==!0&&(p.moveTo(b,0),b+=f.spaceWidth+k.width,g.add(p))}if(t(c,g,b,c.properties.leading),c.add(g),"left"===e.align)c.moveTo(e.width-m,null,null);elseif("right"===e.align){for(winc.children)g=c.children[w],g.moveTo(e.width-g.width,null,null);c.moveTo(0-(e.width-m),null,null)}else{for(winc.children)g=c.children[w],g.moveTo((c.width-g.width)/2,null,null);c.moveTo((e.width-c.width)/2,null,null)}c.moveTo(null,(e.height-c.height)/2,null),(e.height-c.height)/2<0&&c.moveTo(null,0,null)}elsep=newi.Text(e.text),g=newi.Group("line0"),g.add(p),c.add(g),"left"===e.align?c.moveTo(e.width-m,null,null):"right"===e.align?c.moveTo(0-(e.width-m),null,null):c.moveTo((e.width-f.boundingBox.width)/2,null,null),c.moveTo(null,(e.height-f.boundingBox.height)/2,null);returnr}functionl(e,t,n,r){vari=parseInt(e,10),o=parseInt(t,10),a=Math.max(i,o),s=Math.min(i,o),l=.8*Math.min(s,a*r);returnMath.round(Math.max(n,l))}functiond(e){vart;t=null==e||null==e.nodeType?M.vars.resizableImages:[e];for(varn=0,r=t.length;r>n;n++){vari=t[n];if(i.holderData){varo=i.holderData.flags,s=E(i);if(s){if(!i.holderData.resizeUpdate)continue;if(o.fluid&&o.auto){varl=i.holderData.fluidConfig;switch(l.mode){case"width":s.height=s.width/l.ratio;break;case"height":s.width=s.height*l.ratio}}vard={mode:"image",holderSettings:{dimensions:s,theme:o.theme,flags:o},el:i,engineSettings:i.holderData.engineSettings};"exact"==o.textmode&&(o.exactDimensions=s,d.holderSettings.dimensions=o.dimensions),a(d)}elsef(i)}}}functionh(e){if(e.holderData){vart=E(e);if(t){varn=e.holderData.flags,r={fluidHeight:"%"==n.dimensions.height.slice(-1),fluidWidth:"%"==n.dimensions.width.slice(-1),mode:null,initialDimensions:t};r.fluidWidth&&!r.fluidHeight?(r.mode="width",r.ratio=r.initialDimensions.width/parseFloat(n.dimensions.height)):!r.fluidWidth&&r.fluidHeight&&(r.mode="height",r.ratio=parseFloat(n.dimensions.width)/r.initialDimensions.height),e.holderData.fluidConfig=r}elsef(e)}}functionu(){vare,n=[],r=Object.keys(M.vars.invisibleImages);r.forEach(function(t){e=M.vars.invisibleImages[t],E(e)&&"img"==e.nodeName.toLowerCase()&&(n.push(e),deleteM.vars.invisibleImages[t])}),n.length&&F.run({images:n}),setTimeout(function(){t.requestAnimationFrame(u)},10)}functionc(){M.vars.visibilityCheckStarted||(t.requestAnimationFrame(u),M.vars.visibilityCheckStarted=!0)}functionf(e){e.holderData.invisibleId||(M.vars.invisibleId+=1,M.vars.invisibleImages["i"+M.vars.invisibleId]=e,e.holderData.invisibleId=M.vars.invisibleId)}functionp(e){M.vars.debounceTimer||e.call(this),M.vars.debounceTimer&&t.clearTimeout(M.vars.debounceTimer),M.vars.debounceTimer=t.setTimeout(function(){M.vars.debounceTimer=null,e.call(this)},M.setup.debounce)}functiong(){p(function(){d(null)})}varm=n(2),v=n(3),y=n(4),w=n(5),b=n(6),x=n(7),S=n(8),A=n(9),C=n(10),k=w.extend,E=w.dimensionCheck,T=A.svg_ns,F={version:A.version,addTheme:function(e,t){returnnull!=e&&null!=t&&(M.settings.themes[e]=t),deleteM.vars.cache.themeKeys,this},addImage:function(e,t){varn=x.getNodeArray(t);returnn.forEach(function(t){varn=x.newEl("img"),r={};r[M.setup.dataAttr]=e,x.setAttr(n,r),t.appendChild(n)}),this},setResizeUpdate:function(e,t){e.holderData&&(e.holderData.resizeUpdate=!!t,e.holderData.resizeUpdate&&d(e))},run:function(e){e=e||{};varn={},a=k(M.settings,e);M.vars.preempted=!0,M.vars.dataAttr=a.dataAttr||M.setup.dataAttr,M.vars.lineWrapRatio=a.lineWrapRatio||M.setup.lineWrapRatio,n.renderer=a.renderer?a.renderer:M.setup.renderer,-1===M.setup.renderers.join(",").indexOf(n.renderer)&&(n.renderer=M.setup.supportsSVG?"svg":M.setup.supportsCanvas?"canvas":"html");vars=x.getNodeArray(a.images),l=x.getNodeArray(a.bgnodes),d=x.getNodeArray(a.stylenodes),h=x.getNodeArray(a.objects);returnn.stylesheets=[],n.svgXMLStylesheet=!0,n.noFontFallback=a.noFontFallback?a.noFontFallback:!1,d.forEach(function(e){if(e.attributes.rel&&e.attributes.href&&"stylesheet"==e.attributes.rel.value){vart=e.attributes.href.value,r=x.newEl("a");r.href=t;vari=r.protocol+"//"+r.host+r.pathname+r.search;n.stylesheets.push(i)}}),l.forEach(function(e){if(t.getComputedStyle){varr=t.getComputedStyle(e,null).getPropertyValue("background-image"),s=e.getAttribute("data-background-src"),l=s||r,d=null,h=a.domain+"/",u=l.indexOf(h);if(0===u)d=l;elseif(1===u&&"?"===l[0])d=l.slice(1);else{varc=l.substr(u).match(/([^\"]*)"?\)/);if(null!==c)d=c[1];elseif(0===l.indexOf("url("))throw"Holder: unable to parse background URL: "+l}if(null!=d){varf=i(d,a);f&&o({mode:"background",el:e,flags:f,engineSettings:n})}}}),h.forEach(function(e){vart={};try{t.data=e.getAttribute("data"),t.dataSrc=e.getAttribute(M.vars.dataAttr)}catch(i){}varo=null!=t.data&&0===t.data.indexOf(a.domain),s=null!=t.dataSrc&&0===t.dataSrc.indexOf(a.domain);o?r(a,n,t.data,e):s&&r(a,n,t.dataSrc,e)}),s.forEach(function(e){vart={};try{t.src=e.getAttribute("src"),t.dataSrc=e.getAttribute(M.vars.dataAttr),t.rendered=e.getAttribute("data-holder-rendered")}catch(i){}varo=null!=t.src,s=null!=t.dataSrc&&0===t.dataSrc.indexOf(a.domain),l=null!=t.rendered&&"true"==t.rendered;o?0===t.src.indexOf(a.domain)?r(a,n,t.src,e):s&&(l?r(a,n,t.dataSrc,e):!function(e,t,n,i,o){w.imageExists(e,function(e){e||r(t,n,i,o)})}(t.src,a,n,t.dataSrc,e)):s&&r(a,n,t.dataSrc,e)}),this}},M={settings:{domain:"holder.js",images:"img",objects:"object",bgnodes:"body .holderjs",stylenodes:"head link.holderjs",themes:{gray:{background:"#EEEEEE",foreground:"#AAAAAA"},social:{background:"#3a5a97",foreground:"#FFFFFF"},industrial:{background:"#434A52",foreground:"#C2F200"},sky:{background:"#0D8FDB",foreground:"#FFFFFF"},vine:{background:"#39DBAC",foreground:"#1E292C"},lava:{background:"#F8591A",foreground:"#1C2846"}}},defaults:{size:10,units:"pt",scale:1/16}},j=function(){vare=null,t=null,n=null;returnfunction(r){vari=r.root;if(M.setup.supportsSVG){varo=!1,a=function(e){returndocument.createTextNode(e)};(null==e||e.parentNode!==document.body)&&(o=!0),e=b.initSVG(e,i.properties.width,i.properties.height),e.style.display="block",o&&(t=x.newEl("text",T),n=a(null),x.setAttr(t,{x:0}),t.appendChild(n),e.appendChild(t),document.body.appendChild(e),e.style.visibility="hidden",e.style.position="absolute",e.style.top="-100%",e.style.left="-100%");vars=i.children.holderTextGroup,l=s.properties;x.setAttr(t,{y:l.font.size,style:w.cssProps({"font-weight":l.font.weight,"font-size":l.font.size+l.font.units,"font-family":l.font.family})}),n.nodeValue=l.text;vard=t.getBBox(),h=Math.ceil(d.width/(i.properties.width*M.vars.lineWrapRatio)),u=l.text.split(""),c=l.text.match(/\\n/g);h+=null==c?0:c.length,n.nodeValue=l.text.replace(/[]+/g,"");varf=t.getComputedTextLength(),p=d.width-f,g=Math.round(p/Math.max(1,u.length-1)),m=[];if(h>1){n.nodeValue="";for(varv=0;v<u.length;v++)if(0!==u[v].length){n.nodeValue=w.decodeHtmlEntity(u[v]);vary=t.getBBox();m.push({text:u[v],width:y.width})}}returne.style.display="none",{spaceWidth:g,lineCount:h,boundingBox:d,words:m}}return!1}}(),z=function(){vare=x.newEl("canvas"),t=null;returnfunction(n){null==t&&(t=e.getContext("2d"));varr=n.root;e.width=M.dpr(r.properties.width),e.height=M.dpr(r.properties.height),t.textBaseline="middle";vari=r.children.holderBg,o=M.dpr(i.width),a=M.dpr(i.height),s=2,l=s/2;t.fillStyle=i.properties.fill,t.fillRect(0,0,o,a),i.properties.outline&&(t.strokeStyle=i.properties.outline.fill,t.lineWidth=i.properties.outline.width,t.moveTo(l,l),t.lineTo(o-l,l),t.lineTo(o-l,a-l),t.lineTo(l,a-l),t.lineTo(l,l),t.moveTo(0,l),t.lineTo(o,a-l),t.moveTo(0,a-l),t.lineTo(o,l),t.stroke());vard=r.children.holderTextGroup;t.font=d.properties.font.weight+""+M.dpr(d.properties.font.size)+d.properties.font.units+""+d.properties.font.family+", monospace",t.fillStyle=d.properties.fill;for(varhind.children){varu=d.children[h];for(varcinu.children){varf=u.children[c],p=M.dpr(d.x+u.x+f.x),g=M.dpr(d.y+u.y+f.y+d.properties.leading/2);t.fillText(f.properties.text,p,g)}}returne.toDataURL("image/png")}}();for(varDinM.flags)M.flags.hasOwnProperty(D)&&(M.flags[D].match=function(e){returne.match(this.regex)});M.setup={renderer:"html",debounce:100,ratio:1,supportsCanvas:!1,supportsSVG:!1,lineWrapRatio:.9,dataAttr:"data-src",renderers:["html","canvas","svg"]},M.dpr=function(e){returne*M.setup.ratio},M.vars={preempted:!1,resizableImages:[],invisibleImages:{},invisibleId:0,visibilityCheckStarted:!1,debounceTimer:null,cache:{}},function(){vare=1,n=1,r=x.newEl("canvas"),i=null;r.getContext&&-1!=r.toDataURL("image/png").indexOf("data:image/png")&&(M.setup.renderer="canvas",i=r.getContext("2d"),M.setup.supportsCanvas=!0),M.setup.supportsCanvas&&(e=t.devicePixelRatio||1,n=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),M.setup.ratio=e/n,document.createElementNS&&document.createElementNS(T,"svg").createSVGRect&&(M.setup.renderer="svg",M.setup.supportsSVG=!0)}(),c(),m&&m(function(){M.vars.preempted||F.run(),t.addEventListener?(t.addEventListener("resize",g,!1),t.addEventListener("orientationchange",g,!1)):t.attachEvent("onresize",g),"object"==typeoft.Turbolinks&&t.document.addEventListener("page:change",function(){F.run()})}),e.exports=F}).call(t,function(){returnthis}())},function(e,t,n){functionr(e){functiont(e){if(!x){if(!a.body)returni(t);for(x=!0;e=S.shift();)i(e)}}functionn(e){(w||e.type===l||a[c]===u)&&(r(),t())}functionr(){w?(a[y](m,n,d),e[y](l,n,d)):(a[p](v,n),e[p](h,n))}functioni(e,t){setTimeout(e,+t>=0?t:1)}functiono(e){x?i(e):S.push(e)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",functionC(){document.removeEventListener("DOMContentLoaded",C,!1),document.readyState="complete"},!1),document.readyState="loading");vara=e.document,s=a.documentElement,l="load",d=!1,h="on"+l,u="complete",c="readyState",f="attachEvent",p="detachEvent",g="addEventListener",m="DOMContentLoaded",v="onreadystatechange",y="removeEventListener",w=gina,b=d,x=d,S=[];if(a[c]===u)i(t);elseif(w)a[g](m,n,d),e[g](l,n,d);else{a[f](v,n),e[f](h,n);try{b=null==e.frameElement&&s}catch(A){}b&&b.doScroll&&!functionk(){if(!x){try{b.doScroll("left")}catch(e){returni(k,50)}r(),t()}}()}returno.version="1.4.0",o.isReady=function(){returnx},o}e.exports="undefined"!=typeofwindow&&r(window)},function(e,t,n){varr=encodeURIComponent,i=decodeURIComponent,o=n(11),a=n(12),s=/(\w+)\[(\d+)\]/,l=/\w+\.\w+/;t.parse=function(e){if("string"!=typeofe)return{};if(e=o(e),""===e)return{};"?"===e.charAt(0)&&(e=e.slice(1));for(vart={},n=e.split("&"),r=0;r<n.length;r++){vara,d,h,u=n[r].split("="),c=i(u[0]);if(a=s.exec(c))t[a[1]]=t[a[1]]||[],t[a[1]][a[2]]=i(u[1]);elseif(a=l.test(c)){for(a=c.split("."),d=t;a.length;)if(h=a.shift(),h.length){if(d[h]){if(d[h]&&"object"!=typeofd[h])break}elsed[h]={};a.length||(d[h]=i(u[1])),d=d[h]}}elset[u[0]]=null==u[1]?"":i(u[1])}returnt},t.stringify=function(e){if(!e)return"";vart=[];for(varnine){vari=e[n];if("array"!=a(i))t.push(r(n)+"="+r(e[n]));elsefor(varo=0;o<i.length;++o)t.push(r(n+"["+o+"]")+"="+r(i[o]))}returnt.join("&")}},function(e,t,n){varr=function(e){functiont(e,t){for(varnint)e[n]=t[n];returne}varn=1,r=function(e){n++,this.parent=null,this.children={},this.id=n,this.name="n"+n,"undefined"!=typeofe&&(this.name=e),this.x=this.y=this.z=0,this.width=this.height=0};r.prototype.resize=function(e,t){null!=e&&(this.width=e),null!=t&&(this.height=t)},r.prototype.moveTo=function(e,t,n){this.x=null!=e?e:this.x,this.y=null!=t?t:this.y,this.z=null!=n?n:this.z},r.prototype.add=function(e){vart=e.name;if("undefined"!=typeofthis.children[t])throw"SceneGraph: child already exists: "+t;this.children[t]=e,e.parent=this};vari=function(){r.call(this,"root"),this.properties=e};i.prototype=newr;varo=function(e,n){if(r.call(this,e),this.properties={fill:"#000000"},"undefined"!=typeofn)t(this.properties,n);elseif("undefined"!=typeofe&&"string"!=typeofe)throw"SceneGraph: invalid node name"};o.prototype=newr;vara=function(){o.apply(this,arguments),this.type="group"};a.prototype=newo;vars=function(){o.apply(this,arguments),this.type="rect"};s.prototype=newo;varl=function(e){o.call(this),this.type="text",this.properties.text=e};l.prototype=newo;vard=newi;returnthis.Shape={Rect:s,Text:l,Group:a},this.root=d,this};e.exports=r},function(e,t,n){t.extend=function(e,t){varn={};for(varrine)e.hasOwnProperty(r)&&(n[r]=e[r]);if(null!=t)for(variint)t.hasOwnProperty(i)&&(n[i]=t[i]);returnn},t.cssProps=function(e){vart=[];for(varnine)e.hasOwnProperty(n)&&t.push(n+":"+e[n]);returnt.join(";")},t.encodeHtmlEntity=function(e){for(vart=[],n=0,r=e.length-1;r>=0;r--)n=e.charCodeAt(r),t.unshift(n>128?["&#",n,";"].join(""):e[r]);returnt.join("")},t.imageExists=function(e,t){varn=newImage;n.onerror=function(){t.call(this,!1)},n.onload=function(){t.call(this,!0)},n.src=e},t.decodeHtmlEntity=function(e){returne.replace(/&#(\d+);/g,function(e,t){returnString.fromCharCode(t)})},t.dimensionCheck=function(e){vart={height:e.clientHeight,width:e.clientWidth};returnt.height&&t.width?t:!1},t.truthy=function(e){return"string"==typeofe?"true"===e||"yes"===e||"1"===e||"on"===e||"✓"===e:!!e},t.parseColor=function(e){vart,n=/(^(?:#?)[0-9a-f]{6}$)|(^(?:#?)[0-9a-f]{3}$)/i,r=/^rgb\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,i=/^rgba\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0\.\d{1,}|1)\)$/,o=e.match(n);returnnull!==o?(t=o[1]||o[2],"#"!==t[0]?"#"+t:t):(o=e.match(r),null!==o?t="rgb("+o.slice(1).join(",")+")":(o=e.match(i),null!==o?t="rgba("+o.slice(1).join(",")+")":null))}},function(e,t,n){(function(e){varr=n(7),i="http://www.w3.org/2000/svg",o=8;t.initSVG=function(e,t,n){vara,s,l=!1;e&&e.querySelector?(s=e.querySelector("style"),null===s&&(l=!0)):(e=r.newEl("svg",i),l=!0),l&&(a=r.newEl("defs",i),s=r.newEl("style",i),r.setAttr(s,{type:"text/css"}),a.appendChild(s),e.appendChild(a)),e.webkitMatchesSelector&&e.setAttribute("xmlns",i);for(vard=0;d<e.childNodes.length;d++)e.childNodes[d].nodeType===o&&e.removeChild(e.childNodes[d]);for(;s.childNodes.length;)s.removeChild(s.childNodes[0]);returnr.setAttr(e,{width:t,height:n,viewBox:"0 0 "+t+""+n,preserveAspectRatio:"none"}),e},t.svgStringToDataURI=function(){vart="data:image/svg+xml;charset=UTF-8,",n="data:image/svg+xml;charset=UTF-8;base64,";returnfunction(r,i){returni?n+btoa(e.unescape(encodeURIComponent(r))):t+encodeURIComponent(r)}}(),t.serializeSVG=function(t,n){if(e.XMLSerializer){vari=newXMLSerializer,o="",a=n.stylesheets;if(n.svgXMLStylesheet){for(vars=r.createXML(),l=a.length-1;l>=0;l--){vard=s.createProcessingInstruction("xml-stylesheet",'href="'+a[l]+'" rel="stylesheet"');s.insertBefore(d,s.firstChild)}s.removeChild(s.documentElement),o=i.serializeToString(s)}varh=i.serializeToString(t);returnh=h.replace(/\&(\#[0-9]{2,}\;)/g,"&$1"),o+h}}}).call(t,function(){returnthis}())},function(e,t,n){(function(e){t.newEl=function(t,n){returne.document?null==n?e.document.createElement(t):e.document.createElementNS(n,t):void0},t.setAttr=function(e,t){for(varnint)e.setAttribute(n,t[n])},t.createXML=function(){returne.DOMParser?(newDOMParser).parseFromString("<xml />","application/xml"):void0},t.getNodeArray=function(t){varn=null;return"string"==typeoft?n=document.querySelectorAll(t):e.NodeList&&tinstanceofe.NodeList?n=t:e.Node&&tinstanceofe.Node?n=[t]:e.HTMLCollection&&tinstanceofe.HTMLCollection?n=t:tinstanceofArray?n=t:null===t&&(n=[]),n=Array.prototype.slice.call(n)}}).call(t,function(){returnthis}())},function(e,t,n){varr=function(e,t){"string"==typeofe&&(this.original=e,"#"===e.charAt(0)&&(e=e.slice(1)),/[^a-f0-9]+/i.test(e)||(3===e.length&&(e=e.replace(/./g,"$&$&")),6===e.length&&(this.alpha=1,t&&t.alpha&&(this.alpha=t.alpha),this.set(parseInt(e,16)))))};r.rgb2hex=function(e,t,n){functionr(e){vart=(0|e).toString(16);return16>e&&(t="0"+t),t}return[e,t,n].map(r).join("")},r.hsl2rgb=function(e,t,n){varr=e/60,i=(1-Math.abs(2*n-1))*t,o=i*(1-Math.abs(parseInt(r)%2-1)),a=n-i/2,s=0,l=0,d=0;returnr>=0&&1>r?(s=i,l=o):r>=1&&2>r?(s=o,l=i):r>=2&&3>r?(l=i,d=o):r>=3&&4>r?(l=o,d=i):r>=4&&5>r?(s=o,d=i):r>=5&&6>r&&(s=i,d=o),s+=a,l+=a,d+=a,s=parseInt(255*s),l=parseInt(255*l),d=parseInt(255*d),[s,l,d]},r.prototype.set=function(e){this.raw=e;vart=(16711680&this.raw)>>16,n=(65280&this.raw)>>8,r=255&this.raw,i=.2126*t+.7152*n+.0722*r,o=-.09991*t-.33609*n+.436*r,a=.615*t-.55861*n-.05639*r;returnthis.rgb={r:t,g:n,b:r},this.yuv={y:i,u:o,v:a},this},r.prototype.lighten=function(e){vart=Math.min(1,Math.max(0,Math.abs(e)))*(0>e?-1:1),n=255*t|0,i=Math.min(255,Math.max(0,this.rgb.r+n)),o=Math.min(255,Math.max(0,this.rgb.g+n)),a=Math.min(255,Math.max(0,this.rgb.b+n)),s=r.rgb2hex(i,o,a);returnnewr(s)},r.prototype.toHex=function(e){return(e?"#":"")+this.raw.toString(16)},r.prototype.lighterThan=function(e){returneinstanceofr||(e=newr(e)),this.yuv.y>e.yuv.y},r.prototype.blendAlpha=function(e){einstanceofr||(e=newr(e));vart=e,n=this,i=t.alpha*t.rgb.r+(1-t.alpha)*n.rgb.r,o=t.alpha*t.rgb.g+(1-t.alpha)*n.rgb.g,a=t.alpha*t.rgb.b+(1-t.alpha)*n.rgb.b;returnnewr(r.rgb2hex(i,o,a))},e.exports=r},function(e,t,n){e.exports={version:"2.8.2",svg_ns:"http://www.w3.org/2000/svg"}},function(e,t,n){(function(t){varr=n(6),i=n(7),o=n(5),a=n(9),s=a.svg_ns,l="\nCreated with Holder.js "+a.version+".\nLearn more at http://holderjs.com\n(c) 2012-2015 Ivan Malopinsky - http://imsky.co\n";e.exports=function(){if(t.XMLSerializer){vare=i.createXML(),n=r.initSVG(null,0,0),a=i.newEl("rect",s);returnn.appendChild(a),function(t,d){varh=t.root;r.initSVG(n,h.properties.width,h.properties.height);for(varu=n.querySelectorAll("g"),c=0;c<u.length;c++)u[c].parentNode.removeChild(u[c]);varf=d.holderSettings.flags.holderURL,p="holder_"+(Number(newDate)+32768+(0|32768*Math.random())).toString(16),g=i.newEl("g",s),m=h.children.holderTextGroup,v=m.properties,y=i.newEl("g",s),w=m.textPositionData,b="#"+p+" text { "+o.cssProps({fill:v.fill,"font-weight":v.font.weight,"font-family":v.font.family+", monospace","font-size":v.font.size+v.font.units})+" } ",x=e.createComment("\nSource URL: "+f+l),S=e.createCDATASection(b),A=n.querySelector("style"),C=h.children.holderBg;if(i.setAttr(g,{id:p}),n.insertBefore(x,n.firstChild),A.appendChild(S),g.appendChild(a),C.properties.outline){vark=i.newEl("path",s),E=C.properties.outline.width,T=E/2;i.setAttr(k,{d:["M",T,T,"H",C.width-T,"V",C.height-T,"H",T,"V",0,"M",0,T,"L",C.width,C.height-T,"M",0,C.height-T,"L",C.width,T].join(""),"stroke-width":C.properties.outline.width,stroke:C.properties.outline.fill,fill:"none"}),g.appendChild(k)}g.appendChild(y),n.appendChild(g),i.setAttr(a,{width:C.width,height:C.height,fill:C.properties.fill}),m.y+=.8*w.boundingBox.height;for(varFinm.children){varM=m.children[F];for(varjinM.children){varz=M.children[j],D=m.x+M.x+z.x,O=m.y+M.y+z.y,L=i.newEl("text",s),R=document.createTextNode(null);i.setAttr(L,{x:D,y:O}),R.nodeValue=z.properties.text,L.appendChild(R),y.appendChild(L)}}varI=r.svgStringToDataURI(r.serializeSVG(n,d.engineSettings),"background"===d.mode);returnI}}}()}).call(t,function(){returnthis}())},function(e,t,n){functionr(e){returne.replace(/^\s*|\s*$/g,"")}t=e.exports=r,t.left=function(e){returne.replace(/^\s*/,"")},t.right=function(e){returne.replace(/\s*$/,"")}},function(e,t,n){varr=Object.prototype.toString;e.exports=function(e){switch(r.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}returnnull===e?"null":void0===e?"undefined":e!==e?"nan":e&&1===e.nodeType?"element":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeofe)}}])}),function(e,t){t&&(Holder=e.Holder)}(this,"undefined"!=typeofMeteor&&"undefined"!=typeofPackage);
!function(t){if(t.document){vare=t.document;e.querySelectorAll||(e.querySelectorAll=function(r){varn,i=e.createElement("style"),o=[];for(e.documentElement.firstChild.appendChild(i),e._qsa=[],i.styleSheet.cssText=r+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",t.scrollBy(0,0),i.parentNode.removeChild(i);e._qsa.length;)n=e._qsa.shift(),n.style.removeAttribute("x-qsa"),o.push(n);returne._qsa=null,o}),e.querySelector||(e.querySelector=function(t){varr=e.querySelectorAll(t);returnr.length?r[0]:null}),e.getElementsByClassName||(e.getElementsByClassName=function(t){returnt=String(t).replace(/^|\s+/g,"."),e.querySelectorAll(t)}),Object.keys||(Object.keys=function(t){if(t!==Object(t))throwTypeError("Object.keys called on non-object");vare,r=[];for(eint)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);returnr}),Array.prototype.forEach||(Array.prototype.forEach=function(t){if(void0===this||null===this)throwTypeError();vare=Object(this),r=e.length>>>0;if("function"!=typeoft)throwTypeError();varn,i=arguments[1];for(n=0;r>n;n++)nine&&t.call(i,e[n],n,e)}),function(t){vare="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.atob=t.atob||function(t){t=String(t);varr,n=0,i=[],o=0,a=0;if(t=t.replace(/\s/g,""),t.length%4===0&&(t=t.replace(/=+$/,"")),t.length%4===1)throwError("InvalidCharacterError");if(/[^+\/0-9A-Za-z]/.test(t))throwError("InvalidCharacterError");for(;n<t.length;)r=e.indexOf(t.charAt(n)),o=o<<6|r,a+=6,24===a&&(i.push(String.fromCharCode(o>>16&255)),i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o)),a=0,o=0),n+=1;return12===a?(o>>=4,i.push(String.fromCharCode(255&o))):18===a&&(o>>=2,i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o))),i.join("")},t.btoa=t.btoa||function(t){t=String(t);varr,n,i,o,a,s,l,h=0,u=[];if(/[^\x00-\xFF]/.test(t))throwError("InvalidCharacterError");for(;h<t.length;)r=t.charCodeAt(h++),n=t.charCodeAt(h++),i=t.charCodeAt(h++),o=r>>2,a=(3&r)<<4|n>>4,s=(15&n)<<2|i>>6,l=63&i,h===t.length+2?(s=64,l=64):h===t.length+1&&(l=64),u.push(e.charAt(o),e.charAt(a),e.charAt(s),e.charAt(l));returnu.join("")}}(t),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(t){vare=this.__proto__||this.constructor.prototype;returntinthis&&(!(tine)||e[t]!==this[t])}),function(){if("performance"int==!1&&(t.performance={}),Date.now=Date.now||function(){return(newDate).getTime()},"now"int.performance==!1){vare=Date.now();performance.timing&&performance.timing.navigationStart&&(e=performance.timing.navigationStart),t.performance.now=function(){returnDate.now()-e}}}(),t.requestAnimationFrame||(t.webkitRequestAnimationFrame&&t.webkitCancelAnimationFrame?!function(t){t.requestAnimationFrame=function(e){returnwebkitRequestAnimationFrame(function(){e(t.performance.now())})},t.cancelAnimationFrame=t.webkitCancelAnimationFrame}(t):t.mozRequestAnimationFrame&&t.mozCancelAnimationFrame?!function(t){t.requestAnimationFrame=function(e){returnmozRequestAnimationFrame(function(){e(t.performance.now())})},t.cancelAnimationFrame=t.mozCancelAnimationFrame}(t):!function(t){t.requestAnimationFrame=function(e){returnt.setTimeout(e,1e3/60)},t.cancelAnimationFrame=t.clearTimeout}(t))}}(this),function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.Holder=e():t.Holder=e()}(this,function(){returnfunction(t){functione(n){if(r[n])returnr[n].exports;vari=r[n]={exports:{},id:n,loaded:!1};returnt[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}varr={};returne.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){(function(e){functionn(t,e,r,n){vara=i(r.substr(r.lastIndexOf(t.domain)),t);a&&o({mode:null,el:n,flags:a,engineSettings:e})}functioni(t,e){varr={theme:T(U.settings.themes.gray,null),stylesheets:e.stylesheets,instanceOptions:e},n=t.indexOf("?"),i=[t];-1!==n&&(i=[t.slice(0,n),t.slice(n+1)]);varo=i[0].split("/");r.holderURL=t;vara=o[1],s=a.match(/([\d]+p?)x([\d]+p?)/);if(!s)return!1;if(r.fluid=-1!==a.indexOf("p"),r.dimensions={width:s[1].replace("p","%"),height:s[2].replace("p","%")},2===i.length){varl=v.parse(i[1]);if(l.bg&&(r.theme.bg=w.parseColor(l.bg)),l.fg&&(r.theme.fg=w.parseColor(l.fg)),l.bg&&!l.fg&&(r.autoFg=!0),l.theme&&r.instanceOptions.themes.hasOwnProperty(l.theme)&&(r.theme=T(r.instanceOptions.themes[l.theme],null)),l.text&&(r.text=l.text),l.textmode&&(r.textmode=l.textmode),l.size&&(r.size=l.size),l.font&&(r.font=l.font),l.align&&(r.align=l.align),l.lineWrap&&(r.lineWrap=l.lineWrap),r.nowrap=w.truthy(l.nowrap),r.auto=w.truthy(l.auto),r.outline=w.truthy(l.outline),w.truthy(l.random)){U.vars.cache.themeKeys=U.vars.cache.themeKeys||Object.keys(r.instanceOptions.themes);varh=U.vars.cache.themeKeys[0|Math.random()*U.vars.cache.themeKeys.length];r.theme=T(r.instanceOptions.themes[h],null)}}returnr}functiono(t){vare=t.mode,r=t.el,n=t.flags,i=t.engineSettings,o=n.dimensions,s=n.theme,l=o.width+"x"+o.height;e=null==e?n.fluid?"fluid":"image":e;varf=/holder_([a-z]+)/g,c=!1;if(null!=n.text&&(s.text=n.text,"object"===r.nodeName.toLowerCase())){for(vard=s.text.split("\\n"),p=0;p<d.length;p++)d[p]=w.encodeHtmlEntity(d[p]);s.text=d.join("\\n")}if(s.text){varg=s.text.match(f);null!==g&&g.forEach(function(t){"holder_dimensions"===t&&(s.text=s.text.replace(t,l))})}varm=n.holderURL,v=T(i,null);if(n.font&&(s.font=n.font,!v.noFontFallback&&"img"===r.nodeName.toLowerCase()&&U.setup.supportsCanvas&&"svg"===v.renderer&&(v=T(v,{renderer:"canvas"}))),n.font&&"canvas"==v.renderer&&(v.reRender=!0),"background"==e)null==r.getAttribute("data-background-src")&&E.setAttr(r,{"data-background-src":m});else{vary={};y[U.vars.dataAttr]=m,E.setAttr(r,y)}n.theme=s,r.holderData={flags:n,engineSettings:v},("image"==e||"fluid"==e)&&E.setAttr(r,{alt:s.text?c?s.text:s.text+" ["+l+"]":l});varb={mode:e,el:r,holderSettings:{dimensions:o,theme:s,flags:n},engineSettings:v};"image"==e?(n.auto||(r.style.width=o.width+"px",r.style.height=o.height+"px"),"html"==v.renderer?r.style.backgroundColor=s.bg:(a(b),"exact"==n.textmode&&(r.holderData.resizeUpdate=!0,U.vars.resizableImages.push(r),h(r)))):"background"==e&&"html"!=v.renderer?a(b):"fluid"==e&&(r.holderData.resizeUpdate=!0,"%"==o.height.slice(-1)?r.style.height=o.height:null!=n.auto&&n.auto||(r.style.height=o.height+"px"),"%"==o.width.slice(-1)?r.style.width=o.width:null!=n.auto&&n.auto||(r.style.width=o.width+"px"),("inline"==r.style.display||""===r.style.display||"none"==r.style.display)&&(r.style.display="block"),u(r),"html"==v.renderer?r.style.backgroundColor=s.bg:(U.vars.resizableImages.push(r),h(r)))}functiona(t){functionr(){vare=null;switch(l.renderer){case"canvas":e=I(u,t);break;case"svg":e=S(u,t);break;default:throw"Holder: invalid renderer: "+l.renderer}returne}varn=null,i=t.mode,o=t.el,a=t.holderSettings,l=t.engineSettings;switch(l.renderer){case"svg":if(!U.setup.supportsSVG)return;break;case"canvas":if(!U.setup.supportsCanvas)return;break;default:return}varh={width:a.dimensions.width,height:a.dimensions.height,theme:a.theme,flags:a.flags},u=s(h);if(n=r(),null==n)throw"Holder: couldn't render placeholder";"background"==i?(o.style.backgroundImage="url("+n+")",o.style.backgroundSize=h.width+"px "+h.height+"px"):("img"===o.nodeName.toLowerCase()?E.setAttr(o,{src:n}):"object"===o.nodeName.toLowerCase()&&E.setAttr(o,{data:n,type:"image/svg+xml"}),l.reRender&&e.setTimeout(function(){vart=r();if(null==t)throw"Holder: couldn't render placeholder";"img"===o.nodeName.toLowerCase()?E.setAttr(o,{src:t}):"object"===o.nodeName.toLowerCase()&&E.setAttr(o,{data:t,type:"image/svg+xml"})},150)),E.setAttr(o,{"data-holder-rendered":!0})}functions(t){functione(t,e,r,n){e.width=r,e.height=n,t.width=Math.max(t.width,e.width),t.height+=e.height}varr=U.defaults.size;switch(parseFloat(t.theme.size)?r=t.theme.size:parseFloat(t.flags.size)&&(r=t.flags.size),t.font={family:t.theme.font?t.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:l(t.width,t.height,r,U.defaults.scale),units:t.theme.units?t.theme.units:U.defaults.units,weight:t.theme.fontweight?t.theme.fontweight:"bold"},t.text=t.theme.text||Math.floor(t.width)+"x"+Math.floor(t.height),t.noWrap=t.theme.nowrap||t.flags.nowrap,t.align=t.theme.align||t.flags.align||"center",t.flags.textmode){case"literal":t.text=t.flags.dimensions.width+"x"+t.flags.dimensions.height;break;case"exact":if(!t.flags.exactDimensions)break;t.text=Math.floor(t.flags.exactDimensions.width)+"x"+Math.floor(t.flags.exactDimensions.height)}varn=t.flags.lineWrap||U.setup.lineWrapRatio,i=t.width*n,o=i,a=newy({width:t.width,height:t.height}),s=a.Shape,h=news.Rect("holderBg",{fill:t.theme.bg});if(h.resize(t.width,t.height),a.root.add(h),t.flags.outline){varu=newA(h.properties.fill);u=u.lighten(u.lighterThan("7f7f7f")?-.1:.1),h.properties.outline={fill:u.toHex(!0),width:2}}varf=t.theme.fg;if(t.flags.autoFg){varc=newA(h.properties.fill),d=newA("fff"),p=newA("000",{alpha:.285714});f=c.blendAlpha(c.lighterThan("7f7f7f")?p:d).toHex(!0)}varg=news.Group("holderTextGroup",{text:t.text,align:t.align,font:t.font,fill:f});g.moveTo(null,null,1),a.root.add(g);varm=g.textPositionData=L(a);if(!m)throw"Holder: staging fallback not supported yet.";g.properties.leading=m.boundingBox.height;varv=null,w=null;if(m.lineCount>1){varb,E=0,x=0,S=0;w=news.Group("line"+S),("left"===t.align||"right"===t.align)&&(o=t.width*(1-2*(1-n)));for(varI=0;I<m.words.length;I++){varT=m.words[I];v=news.Text(T.text);varB="\\n"==T.text;!t.noWrap&&(E+T.width>=o||B===!0)&&(e(g,w,E,g.properties.leading),g.add(w),E=0,x+=g.properties.leading,S+=1,w=news.Group("line"+S),w.y=x),B!==!0&&(v.moveTo(E,0),E+=m.spaceWidth+T.width,w.add(v))}if(e(g,w,E,g.properties.leading),g.add(w),"left"===t.align)g.moveTo(t.width-i,null,null);elseif("right"===t.align){for(bing.children)w=g.children[b],w.moveTo(t.width-w.width,null,null);g.moveTo(0-(t.width-i),null,null)}else{for(bing.children)w=g.children[b],w.moveTo((g.width-w.width)/2,null,null);g.moveTo((t.width-g.width)/2,null,null)}g.moveTo(null,(t.height-g.height)/2,null),(t.height-g.height)/2<0&&g.moveTo(null,0,null)}elsev=news.Text(t.text),w=news.Group("line0"),w.add(v),g.add(w),"left"===t.align?g.moveTo(t.width-i,null,null):"right"===t.align?g.moveTo(0-(t.width-i),null,null):g.moveTo((t.width-m.boundingBox.width)/2,null,null),g.moveTo(null,(t.height-m.boundingBox.height)/2,null);returna}functionl(t,e,r,n){vari=parseInt(t,10),o=parseInt(e,10),a=Math.max(i,o),s=Math.min(i,o),l=.8*Math.min(s,a*n);returnMath.round(Math.max(r,l))}functionh(t){vare;e=null==t||null==t.nodeType?U.vars.resizableImages:[t];for(varr=0,n=e.length;n>r;r++){vari=e[r];if(i.holderData){varo=i.holderData.flags,s=B(i);if(s){if(!i.holderData.resizeUpdate)continue;if(o.fluid&&o.auto){varl=i.holderData.fluidConfig;switch(l.mode){case"width":s.height=s.width/l.ratio;break;case"height":s.width=s.height*l.ratio}}varh={mode:"image",holderSettings:{dimensions:s,theme:o.theme,flags:o},el:i,engineSettings:i.holderData.engineSettings};"exact"==o.textmode&&(o.exactDimensions=s,h.holderSettings.dimensions=o.dimensions),a(h)}elsed(i)}}}functionu(t){if(t.holderData){vare=B(t);if(e){varr=t.holderData.flags,n={fluidHeight:"%"==r.dimensions.height.slice(-1),fluidWidth:"%"==r.dimensions.width.slice(-1),mode:null,initialDimensions:e};n.fluidWidth&&!n.fluidHeight?(n.mode="width",n.ratio=n.initialDimensions.width/parseFloat(r.dimensions.height)):!n.fluidWidth&&n.fluidHeight&&(n.mode="height",n.ratio=parseFloat(r.dimensions.width)/n.initialDimensions.height),t.holderData.fluidConfig=n}elsed(t)}}functionf(){vart,r=[],n=Object.keys(U.vars.invisibleImages);n.forEach(function(e){t=U.vars.invisibleImages[e],B(t)&&"img"==t.nodeName.toLowerCase()&&(r.push(t),deleteU.vars.invisibleImages[e])}),r.length&&C.run({images:r}),setTimeout(function(){e.requestAnimationFrame(f)},10)}functionc(){U.vars.visibilityCheckStarted||(e.requestAnimationFrame(f),U.vars.visibilityCheckStarted=!0)}functiond(t){t.holderData.invisibleId||(U.vars.invisibleId+=1,U.vars.invisibleImages["i"+U.vars.invisibleId]=t,t.holderData.invisibleId=U.vars.invisibleId)}functionp(t){U.vars.debounceTimer||t.call(this),U.vars.debounceTimer&&e.clearTimeout(U.vars.debounceTimer),U.vars.debounceTimer=e.setTimeout(function(){U.vars.debounceTimer=null,t.call(this)},U.setup.debounce)}functiong(){p(function(){h(null)})}varm=r(2),v=r(3),y=r(10),w=r(11),b=r(12),E=r(13),A=r(14),x=r(15),S=r(16),I=r(19),T=w.extend,B=w.dimensionCheck,R=x.svg_ns,C={version:x.version,addTheme:function(t,e){returnnull!=t&&null!=e&&(U.settings.themes[t]=e),deleteU.vars.cache.themeKeys,this},addImage:function(t,e){varr=E.getNodeArray(e);returnr.forEach(function(e){varr=E.newEl("img"),n={};n[U.setup.dataAttr]=t,E.setAttr(r,n),e.appendChild(r)}),this},setResizeUpdate:function(t,e){t.holderData&&(t.holderData.resizeUpdate=!!e,t.holderData.resizeUpdate&&h(t))},run:function(t){t=t||{};varr={},a=T(U.settings,t);U.vars.preempted=!0,U.vars.dataAttr=a.dataAttr||U.setup.dataAttr,r.renderer=a.renderer?a.renderer:U.setup.renderer,-1===U.setup.renderers.join(",").indexOf(r.renderer)&&(r.renderer=U.setup.supportsSVG?"svg":U.setup.supportsCanvas?"canvas":"html");vars=E.getNodeArray(a.images),l=E.getNodeArray(a.bgnodes),h=E.getNodeArray(a.stylenodes),u=E.getNodeArray(a.objects);returnr.stylesheets=[],r.svgXMLStylesheet=!0,r.noFontFallback=a.noFontFallback?a.noFontFallback:!1,h.forEach(function(t){if(t.attributes.rel&&t.attributes.href&&"stylesheet"==t.attributes.rel.value){vare=t.attributes.href.value,n=E.newEl("a");n.href=e;vari=n.protocol+"//"+n.host+n.pathname+n.search;r.stylesheets.push(i)}}),l.forEach(function(t){if(e.getComputedStyle){varn=e.getComputedStyle(t,null).getPropertyValue("background-image"),s=t.getAttribute("data-background-src"),l=s||n,h=null,u=a.domain+"/",f=l.indexOf(u);if(0===f)h=l;elseif(1===f&&"?"===l[0])h=l.slice(1);else{varc=l.substr(f).match(/([^\"]*)"?\)/);if(null!==c)h=c[1];elseif(0===l.indexOf("url("))throw"Holder: unable to parse background URL: "+l}if(null!=h){vard=i(h,a);d&&o({mode:"background",el:t,flags:d,engineSettings:r})}}}),u.forEach(function(t){vare={};try{e.data=t.getAttribute("data"),e.dataSrc=t.getAttribute(U.vars.dataAttr)}catch(i){}varo=null!=e.data&&0===e.data.indexOf(a.domain),s=null!=e.dataSrc&&0===e.dataSrc.indexOf(a.domain);o?n(a,r,e.data,t):s&&n(a,r,e.dataSrc,t)}),s.forEach(function(t){vare={};try{e.src=t.getAttribute("src"),e.dataSrc=t.getAttribute(U.vars.dataAttr),e.rendered=t.getAttribute("data-holder-rendered")}catch(i){}varo=null!=e.src,s=null!=e.dataSrc&&0===e.dataSrc.indexOf(a.domain),l=null!=e.rendered&&"true"==e.rendered;o?0===e.src.indexOf(a.domain)?n(a,r,e.src,t):s&&(l?n(a,r,e.dataSrc,t):!function(t,e,r,i,o){w.imageExists(t,function(t){t||n(e,r,i,o)})}(e.src,a,r,e.dataSrc,t)):s&&n(a,r,e.dataSrc,t)}),this}},U={settings:{domain:"holder.js",images:"img",objects:"object",bgnodes:"body .holderjs",stylenodes:"head link.holderjs",themes:{gray:{bg:"#EEEEEE",fg:"#AAAAAA"},social:{bg:"#3a5a97",fg:"#FFFFFF"},industrial:{bg:"#434A52",fg:"#C2F200"},sky:{bg:"#0D8FDB",fg:"#FFFFFF"},vine:{bg:"#39DBAC",fg:"#1E292C"},lava:{bg:"#F8591A",fg:"#1C2846"}}},defaults:{size:10,units:"pt",scale:1/16}},L=function(){vart=null,e=null,r=null;returnfunction(n){vari=n.root;if(U.setup.supportsSVG){varo=!1,a=function(t){returndocument.createTextNode(t)};(null==t||t.parentNode!==document.body)&&(o=!0),t=b.initSVG(t,i.properties.width,i.properties.height),t.style.display="block",o&&(e=E.newEl("text",R),r=a(null),E.setAttr(e,{x:0}),e.appendChild(r),t.appendChild(e),document.body.appendChild(t),t.style.visibility="hidden",t.style.position="absolute",t.style.top="-100%",t.style.left="-100%");vars=i.children.holderTextGroup,l=s.properties;E.setAttr(e,{y:l.font.size,style:w.cssProps({"font-weight":l.font.weight,"font-size":l.font.size+l.font.units,"font-family":l.font.family})}),r.nodeValue=l.text;varh=e.getBBox(),u=Math.ceil(h.width/i.properties.width),f=l.text.split(""),c=l.text.match(/\\n/g);u+=null==c?0:c.length,r.nodeValue=l.text.replace(/[]+/g,"");vard=e.getComputedTextLength(),p=h.width-d,g=Math.round(p/Math.max(1,f.length-1)),m=[];if(u>1){r.nodeValue="";for(varv=0;v<f.length;v++)if(0!==f[v].length){r.nodeValue=w.decodeHtmlEntity(f[v]);vary=e.getBBox();m.push({text:f[v],width:y.width})}}returnt.style.display="none",{spaceWidth:g,lineCount:u,boundingBox:h,words:m}}return!1}}();for(varPinU.flags)U.flags.hasOwnProperty(P)&&(U.flags[P].match=function(t){returnt.match(this.regex)});U.setup={renderer:"html",debounce:100,ratio:1,supportsCanvas:!1,supportsSVG:!1,lineWrapRatio:.9,dataAttr:"data-src",renderers:["html","canvas","svg"]},U.vars={preempted:!1,resizableImages:[],invisibleImages:{},invisibleId:0,visibilityCheckStarted:!1,debounceTimer:null,cache:{}},function(){vart=E.newEl("canvas");t.getContext&&-1!=t.toDataURL("image/png").indexOf("data:image/png")&&(U.setup.renderer="canvas",U.setup.supportsCanvas=!0),document.createElementNS&&document.createElementNS(R,"svg").createSVGRect&&(U.setup.renderer="svg",U.setup.supportsSVG=!0)}(),c(),m&&m(function(){U.vars.preempted||C.run(),e.addEventListener?(e.addEventListener("resize",g,!1),e.addEventListener("orientationchange",g,!1)):e.attachEvent("onresize",g),"object"==typeofe.Turbolinks&&e.document.addEventListener("page:change",function(){C.run()})}),t.exports=C}).call(e,function(){returnthis}())},function(t,e){functionr(t){functione(t){if(!E){if(!a.body)returni(e);for(E=!0;t=A.shift();)i(t)}}functionr(t){(w||t.type===l||a[c]===f)&&(n(),e())}functionn(){w?(a[y](m,r,h),t[y](l,r,h)):(a[p](v,r),t[p](u,r))}functioni(t,e){setTimeout(t,+e>=0?e:1)}functiono(t){E?i(t):A.push(t)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",functionS(){document.removeEventListener("DOMContentLoaded",S,!1),document.readyState="complete"},!1),document.readyState="loading");vara=t.document,s=a.documentElement,l="load",h=!1,u="on"+l,f="complete",c="readyState",d="attachEvent",p="detachEvent",g="addEventListener",m="DOMContentLoaded",v="onreadystatechange",y="removeEventListener",w=gina,b=h,E=h,A=[];if(a[c]===f)i(e);elseif(w)a[g](m,r,h),t[g](l,r,h);else{a[d](v,r),t[d](u,r);try{b=null==t.frameElement&&s}catch(x){}b&&b.doScroll&&!functionI(){if(!E){try{b.doScroll("left")}catch(t){returni(I,50)}n(),e()}}()}returno.version="1.4.0",o.isReady=function(){returnE},o}t.exports="undefined"!=typeofwindow&&r(window)},function(t,e,r){varn=encodeURIComponent,i=decodeURIComponent,o=r(4),a=r(5),s=/(\w+)\[(\d+)\]/,l=/\w+\.\w+/;e.parse=function(t){if("string"!=typeoft)return{};if(t=o(t),""===t)return{};"?"===t.charAt(0)&&(t=t.slice(1));for(vare={},r=t.split("&"),n=0;n<r.length;n++){vara,h,u,f=r[n].split("="),c=i(f[0]);if(a=s.exec(c))e[a[1]]=e[a[1]]||[],e[a[1]][a[2]]=i(f[1]);elseif(a=l.test(c)){for(a=c.split("."),h=e;a.length;)if(u=a.shift(),u.length){if(h[u]){if(h[u]&&"object"!=typeofh[u])break}elseh[u]={};a.length||(h[u]=i(f[1])),h=h[u]}}elsee[f[0]]=null==f[1]?"":i(f[1])}returne},e.stringify=function(t){if(!t)return"";vare=[];for(varrint){vari=t[r];if("array"!=a(i))e.push(n(r)+"="+n(t[r]));elsefor(varo=0;o<i.length;++o)e.push(n(r+"["+o+"]")+"="+n(i[o]))}returne.join("&")}},function(t,e){functionr(t){returnt.replace(/^\s*|\s*$/g,"")}e=t.exports=r,e.left=function(t){returnt.replace(/^\s*/,"")},e.right=function(t){returnt.replace(/\s*$/,"")}},function(t,e,r){(function(e){varr=Object.prototype.toString;t.exports=function(t){switch(r.call(t)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}returnnull===t?"null":void0===t?"undefined":t!==t?"nan":t&&1===t.nodeType?"element":"undefined"!=typeofe&&e.isBuffer(t)?"buffer":(t=t.valueOf?t.valueOf():Object.prototype.valueOf.apply(t),typeoft)}}).call(e,r(6).Buffer)},function(t,e,r){(function(t,n){functioni(){functiont(){}try{vare=newUint8Array(1);returne.foo=function(){return42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeofe.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}functiono(){returnt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiont(e){returnthisinstanceoft?(this.length=0,this.parent=void0,"number"==typeofe?a(this,e):"string"==typeofe?s(this,e,arguments.length>1?arguments[1]:"utf8"):l(this,e)):arguments.length>1?newt(e,arguments[1]):newt(e)}functiona(e,r){if(e=g(e,0>r?0:0|m(r)),!t.TYPED_ARRAY_SUPPORT)for(varn=0;r>n;n++)e[n]=0;returne}functions(t,e,r){("string"!=typeofr||""===r)&&(r="utf8");varn=0|y(e,r);returnt=g(t,n),t.write(e,r),t}functionl(e,r){if(t.isBuffer(r))returnh(e,r);if(J(r))returnu(e,r);if(null==r)thrownewTypeError("must start with number, buffer, array or string");if("undefined"!=typeofArrayBuffer){if(r.bufferinstanceofArrayBuffer)returnf(e,r);if(rinstanceofArrayBuffer)returnc(e,r)}returnr.length?d(e,r):p(e,r)}functionh(t,e){varr=0|m(e.length);returnt=g(t,r),e.copy(t,0,0,r),t}functionu(t,e){varr=0|m(e.length);t=g(t,r);for(varn=0;r>n;n+=1)t[n]=255&e[n];returnt}functionf(t,e){varr=0|m(e.length);t=g(t,r);for(varn=0;r>n;n+=1)t[n]=255&e[n];returnt}functionc(e,r){returnt.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(newUint8Array(r))):e=f(e,newUint8Array(r)),e}functiond(t,e){varr=0|m(e.length);t=g(t,r);for(varn=0;r>n;n+=1)t[n]=255&e[n];returnt}functionp(t,e){varr,n=0;"Buffer"===e.type&&J(e.data)&&(r=e.data,n=0|m(r.length)),t=g(t,n);for(vari=0;n>i;i+=1)t[i]=255&r[i];returnt}functiong(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(newUint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);varn=0!==r&&r<=t.poolSize>>>1;returnn&&(e.parent=K),e}functionm(t){if(t>=o())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return0|t}functionv(e,r){if(!(thisinstanceofv))returnnewv(e,r);varn=newt(e,r);returndeleten.parent,n}functiony(t,e){"string"!=typeoft&&(t=""+t);varr=t.length;if(0===r)return0;for(varn=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":returnr;case"utf8":case"utf-8":returnq(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnV(t).length;default:if(n)returnq(t).length;e=(""+e).toLowerCase(),n=!0}}functionw(t,e,r){varn=!1;if(e=0|e,r=void0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":returnL(this,e,r);case"utf8":case"utf-8":returnB(this,e,r);case"ascii":returnC(this,e,r);case"binary":returnU(this,e,r);case"base64":returnT(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnP(this,e,r);default:if(n)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}functionb(t,e,r,n){r=Number(r)||0;vari=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;varo=e.length;if(o%2!==0)thrownewError("Invalid hex string");n>o/2&&(n=o/2);for(vara=0;n>a;a++){vars=parseInt(e.substr(2*a,2),16);if(isNaN(s))thrownewError("Invalid hex string");t[r+a]=s}returna}functionE(t,e,r,n){returnW(q(e,t.length-r),t,r,n)}functionA(t,e,r,n){returnW(H(e),t,r,n)}functionx(t,e,r,n){returnA(t,e,r,n)}functionS(t,e,r,n){returnW(V(e),t,r,n)}functionI(t,e,r,n){returnW(G(e,t.length-r),t,r,n)}functionT(t,e,r){return0===e&&r===t.length?$.fromByteArray(t):$.fromByteArray(t.slice(e,r))}functionB(t,e,r){r=Math.min(t.length,r);for(varn=[],i=e;r>i;){varo=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r>=i+s){varl,h,u,f;switch(s){case1:128>o&&(a=o);break;case2:l=t[i+1],128===(192&l)&&(f=(31&o)<<6|63&l,f>127&&(a=f));break;case3:l=t[i+1],h=t[i+2],128===(192&l)&&128===(192&h)&&(f=(15&o)<<12|(63&l)<<6|63&h,f>2047&&(55296>f||f>57343)&&(a=f));break;case4:l=t[i+1],h=t[i+2],u=t[i+3],128===(192&l)&&128===(192&h)&&128===(192&u)&&(f=(15&o)<<18|(63&l)<<12|(63&h)<<6|63&u,f>65535&&1114112>f&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}returnR(n)}functionR(t){vare=t.length;if(Z>=e)returnString.fromCharCode.apply(String,t);for(varr="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Z));returnr}functionC(t,e,r){varn="";r=Math.min(t.length,r);for(vari=e;r>i;i++)n+=String.fromCharCode(127&t[i]);returnn}functionU(t,e,r){varn="";r=Math.min(t.length,r);for(vari=e;r>i;i++)n+=String.fromCharCode(t[i]);returnn}functionL(t,e,r){varn=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(vari="",o=e;r>o;o++)i+=Y(t[o]);returni}functionP(t,e,r){for(varn=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);returni}function_(t,e,r){if(t%1!==0||0>t)thrownewRangeError("offset is not uint");if(t+e>r)thrownewRangeError("Trying to access beyond buffer length")}functionO(e,r,n,i,o,a){if(!t.isBuffer(e))thrownewTypeError("buffer must be a Buffer instance");if(r>o||a>r)thrownewRangeError("value is out of bounds");if(n+i>e.length)thrownewRangeError("index out of range")}functionD(t,e,r,n){0>e&&(e=65535+e+1);for(vari=0,o=Math.min(t.length-r,2);o>i;i++)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}functionk(t,e,r,n){0>e&&(e=4294967295+e+1);for(vari=0,o=Math.min(t.length-r,4);o>i;i++)t[r+i]=e>>>8*(n?i:3-i)&255}functionM(t,e,r,n,i,o){if(e>i||o>e)thrownewRangeError("value is out of bounds");if(r+n>t.length)thrownewRangeError("index out of range");if(0>r)thrownewRangeError("index out of range")}functionF(t,e,r,n,i){returni||M(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,r,n,23,4),r+4}functionj(t,e,r,n,i){returni||M(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,r,n,52,8),r+8}functionz(t){if(t=N(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";returnt}functionN(t){returnt.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}functionY(t){return16>t?"0"+t.toString(16):t.toString(16)}functionq(t,e){e=e||1/0;for(varr,n=t.length,i=null,o=[],a=0;n>a;a++){if(r=t.charCodeAt(a),r>55295&&57344>r){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(56320>r){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=i-55296<<10|r-56320|65536}elsei&&(e-=3)>-1&&o.push(239,191,189);if(i=null,128>r){if((e-=1)<0)break;o.push(r)}elseif(2048>r){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}elseif(65536>r){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))thrownewError("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}returno}functionH(t){for(vare=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));returne}functionG(t,e){for(varr,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);a++)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);returno}functionV(t){return$.toByteArray(z(t))}functionW(t,e,r,n){for(vari=0;n>i&&!(i+r>=e.length||i>=t.length);i++)e[i+r]=t[i];returni}var$=r(7),X=r(8),J=r(9);e.Buffer=t,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;varK={};t.TYPED_ARRAY_SUPPORT=void0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:i(),t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))thrownewTypeError("Arguments must be Buffers");if(e===r)return0;for(varn=e.length,i=r.length,o=0,a=Math.min(n,i);a>o&&e[o]===r[o];)++o;returno!==a&&(n=e[o],i=r[o]),i>n?-1:n>i?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!J(e))thrownewTypeError("list argument must be an Array of Buffers.");if(0===e.length)returnnewt(0);varn;if(void0===r)for(r=0,n=0;n<e.length;n++)r+=e[n].length;vari=newt(r),o=0;for(n=0;n<e.length;n++){vara=e[n];a.copy(i,o),o+=a.length}returni},t.byteLength=y,t.prototype.length=void0,t.prototype.parent=void0,t.prototype.toString=function(){vart=0|this.length;return0===t?"":0===arguments.length?B(this,0,t):w.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))thrownewTypeError("Argument must be a Buffer");returnthis===e?!0:0===t.compare(this,e)},t.prototype.inspect=function(){vart="",r=e.INSPECT_MAX_BYTES;returnthis.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(""),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(e){if(!t.isBuffer(e))thrownewTypeError("Argument must be a Buffer");returnthis===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,r){functionn(t,e,r){for(varn=-1,i=0;r+i<t.length;i++)if(t[r+i]===e[-1===n?0:i-n]){if(-1===n&&(n=i),i-n+1===e.length)returnr+n}elsen=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeofe)return0===e.length?-1:String.prototype.indexOf.call(this,e,r);if(t.isBuffer(e))returnn(this,e,r);if("number"==typeofe)returnt.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,r):n(this,[e],r);thrownewTypeError("val must be string, number or Buffer")},t.prototype.get=function(t){returnconsole.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){returnconsole.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,r,n){if(void0===e)n="utf8",r=this.length,e=0;elseif(void0===r&&"string"==typeofe)n=e,r=this.length,e=0;elseif(isFinite(e))e=0|e,isFinite(r)?(r=0|r,void0===n&&(n="utf8")):(n=r,r=void0);else{vari=n;n=e,e=0|r,r=i}varo=this.length-e;if((void0===r||r>o)&&(r=o),t.length>0&&(0>r||0>e)||e>this.length)thrownewRangeError("attempt to write outside buffer bounds");n||(n="utf8");for(vara=!1;;)switch(n){case"hex":returnb(this,t,e,r);case"utf8":case"utf-8":returnE(this,t,e,r);case"ascii":returnA(this,t,e,r);case"binary":returnx(this,t,e,r);case"base64":returnS(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnI(this,t,e,r);default:if(a)thrownewTypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};varZ=4096;t.prototype.slice=function(e,r){varn=this.length;e=~~e,r=void0===r?n:~~r,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>r?(r+=n,0>r&&(r=0)):r>n&&(r=n),e>r&&(r=e);vari;if(t.TYPED_ARRAY_SUPPORT)i=t._augment(this.subarray(e,r));else{varo=r-e;i=newt(o,void0);for(vara=0;o>a;a++)i[a]=this[a+e]}returni.length&&(i.parent=this.parent||this),i},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||_(t,e,this.length);for(varn=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;returnn},t.prototype.readUIntBE=function(t,e,r){t=0|t,e=0|e,r||_(t,e,this.length);for(varn=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;returnn},t.prototype.readUInt8=function(t,e){returne||_(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){returne||_(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){returne||_(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){returne||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){returne||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||_(t,e,this.length);for(varn=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;returni*=128,n>=i&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||_(t,e,this.length);for(varn=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;
\ No newline at end of file
returni*=128,o>=i&&(o-=Math.pow(2,8*e)),o},t.prototype.readInt8=function(t,e){returne||_(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||_(t,2,this.length);varr=this[t]|this[t+1]<<8;return32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||_(t,2,this.length);varr=this[t+1]|this[t]<<8;return32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){returne||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){returne||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){returne||_(t,4,this.length),X.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){returne||_(t,4,this.length),X.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){returne||_(t,8,this.length),X.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){returne||_(t,8,this.length),X.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||O(this,t,e,r,Math.pow(2,8*r),0);vari=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;returne+r},t.prototype.writeUIntBE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||O(this,t,e,r,Math.pow(2,8*r),0);vari=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;returne+r},t.prototype.writeUInt8=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):D(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):D(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):k(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):k(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){vari=Math.pow(2,8*r-1);O(this,t,e,r,i-1,-i)}varo=0,a=1,s=0>t?1:0;for(this[e]=255&t;++o<r&&(a*=256);)this[e+o]=(t/a>>0)-s&255;returne+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){vari=Math.pow(2,8*r-1);O(this,t,e,r,i-1,-i)}varo=r-1,a=1,s=0>t?1:0;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=(t/a>>0)-s&255;returne+r},t.prototype.writeInt8=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):D(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):D(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):k(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){returne=+e,r=0|r,n||O(this,e,r,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):k(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){returnF(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){returnF(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){returnj(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){returnj(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,i){if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&n>i&&(i=n),i===n)return0;if(0===e.length||0===this.length)return0;if(0>r)thrownewRangeError("targetStart out of bounds");if(0>n||n>=this.length)thrownewRangeError("sourceStart out of bounds");if(0>i)thrownewRangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);varo,a=i-n;if(this===e&&r>n&&i>r)for(o=a-1;o>=0;o--)e[o+r]=this[o+n];elseif(1e3>a||!t.TYPED_ARRAY_SUPPORT)for(o=0;a>o;o++)e[o+r]=this[o+n];elsee._set(this.subarray(n,n+a),r);returna},t.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),e>r)thrownewRangeError("end < start");if(r!==e&&0!==this.length){if(0>e||e>=this.length)thrownewRangeError("start out of bounds");if(0>r||r>this.length)thrownewRangeError("end out of bounds");varn;if("number"==typeoft)for(n=e;r>n;n++)this[n]=t;else{vari=q(t.toString()),o=i.length;for(n=e;r>n;n++)this[n]=i[n%o]}returnthis}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeofUint8Array){if(t.TYPED_ARRAY_SUPPORT)returnnewt(this).buffer;for(vare=newUint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];returne.buffer}thrownewTypeError("Buffer.toArrayBuffer not supported in this browser")};varQ=t.prototype;t._augment=function(e){returne.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=Q.get,e.set=Q.set,e.write=Q.write,e.toString=Q.toString,e.toLocaleString=Q.toString,e.toJSON=Q.toJSON,e.equals=Q.equals,e.compare=Q.compare,e.indexOf=Q.indexOf,e.copy=Q.copy,e.slice=Q.slice,e.readUIntLE=Q.readUIntLE,e.readUIntBE=Q.readUIntBE,e.readUInt8=Q.readUInt8,e.readUInt16LE=Q.readUInt16LE,e.readUInt16BE=Q.readUInt16BE,e.readUInt32LE=Q.readUInt32LE,e.readUInt32BE=Q.readUInt32BE,e.readIntLE=Q.readIntLE,e.readIntBE=Q.readIntBE,e.readInt8=Q.readInt8,e.readInt16LE=Q.readInt16LE,e.readInt16BE=Q.readInt16BE,e.readInt32LE=Q.readInt32LE,e.readInt32BE=Q.readInt32BE,e.readFloatLE=Q.readFloatLE,e.readFloatBE=Q.readFloatBE,e.readDoubleLE=Q.readDoubleLE,e.readDoubleBE=Q.readDoubleBE,e.writeUInt8=Q.writeUInt8,e.writeUIntLE=Q.writeUIntLE,e.writeUIntBE=Q.writeUIntBE,e.writeUInt16LE=Q.writeUInt16LE,e.writeUInt16BE=Q.writeUInt16BE,e.writeUInt32LE=Q.writeUInt32LE,e.writeUInt32BE=Q.writeUInt32BE,e.writeIntLE=Q.writeIntLE,e.writeIntBE=Q.writeIntBE,e.writeInt8=Q.writeInt8,e.writeInt16LE=Q.writeInt16LE,e.writeInt16BE=Q.writeInt16BE,e.writeInt32LE=Q.writeInt32LE,e.writeInt32BE=Q.writeInt32BE,e.writeFloatLE=Q.writeFloatLE,e.writeFloatBE=Q.writeFloatBE,e.writeDoubleLE=Q.writeDoubleLE,e.writeDoubleBE=Q.writeDoubleBE,e.fill=Q.fill,e.inspect=Q.inspect,e.toArrayBuffer=Q.toArrayBuffer,e};vartt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(6).Buffer,function(){returnthis}())},function(t,e,r){varn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";functione(t){vare=t.charCodeAt(0);returne===a||e===f?62:e===s||e===c?63:l>e?-1:l+10>e?e-l+26+26:u+26>e?e-u:h+26>e?e-h+26:void0}functionr(t){functionr(t){h[f++]=t}varn,i,a,s,l,h;if(t.length%4>0)thrownewError("Invalid string. Length must be a multiple of 4");varu=t.length;l="="===t.charAt(u-2)?2:"="===t.charAt(u-1)?1:0,h=newo(3*t.length/4-l),a=l>0?t.length-4:t.length;varf=0;for(n=0,i=0;a>n;n+=4,i+=3)s=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&s)>>16),r((65280&s)>>8),r(255&s);return2===l?(s=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&s)):1===l&&(s=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(s>>8&255),r(255&s)),h}functioni(t){functione(t){returnn.charAt(t)}functionr(t){returne(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}vari,o,a,s=t.length%3,l="";for(i=0,a=t.length-s;a>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],l+=r(o);switch(s){case1:o=t[t.length-1],l+=e(o>>2),l+=e(o<<4&63),l+="==";break;case2:o=(t[t.length-2]<<8)+t[t.length-1],l+=e(o>>10),l+=e(o>>4&63),l+=e(o<<2&63),l+="="}returnl}varo="undefined"!=typeofUint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),l="0".charCodeAt(0),h="a".charCodeAt(0),u="A".charCodeAt(0),f="-".charCodeAt(0),c="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=i}(e)},function(t,e){e.read=function(t,e,r,n,i){varo,a,s=8*i-n-1,l=(1<<s)-1,h=l>>1,u=-7,f=r?i-1:0,c=r?-1:1,d=t[e+f];for(f+=c,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+t[e+f],f+=c,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+t[e+f],f+=c,u-=8);if(0===o)o=1-h;else{if(o===l)returna?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,n),o-=h}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){vara,s,l,h=8*o-i-1,u=(1<<h)-1,f=u>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+f>=1?c/l:c*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,h+=i;h>0;t[r+d]=255&a,d+=p,a/=256,h-=8);t[r+d-p]|=128*g}},function(t,e){varr=Array.isArray,n=Object.prototype.toString;t.exports=r||function(t){return!!t&&"[object Array]"==n.call(t)}},function(t,e){varr=function(t){functione(t,e){for(varrine)t[r]=e[r];returnt}varr=1,n=function(t){r++,this.parent=null,this.children={},this.id=r,this.name="n"+r,"undefined"!=typeoft&&(this.name=t),this.x=this.y=this.z=0,this.width=this.height=0};n.prototype.resize=function(t,e){null!=t&&(this.width=t),null!=e&&(this.height=e)},n.prototype.moveTo=function(t,e,r){this.x=null!=t?t:this.x,this.y=null!=e?e:this.y,this.z=null!=r?r:this.z},n.prototype.add=function(t){vare=t.name;if("undefined"!=typeofthis.children[e])throw"SceneGraph: child already exists: "+e;this.children[e]=t,t.parent=this};vari=function(){n.call(this,"root"),this.properties=t};i.prototype=newn;varo=function(t,r){if(n.call(this,t),this.properties={fill:"#000000"},"undefined"!=typeofr)e(this.properties,r);elseif("undefined"!=typeoft&&"string"!=typeoft)throw"SceneGraph: invalid node name"};o.prototype=newn;vara=function(){o.apply(this,arguments),this.type="group"};a.prototype=newo;vars=function(){o.apply(this,arguments),this.type="rect"};s.prototype=newo;varl=function(t){o.call(this),this.type="text",this.properties.text=t};l.prototype=newo;varh=newi;returnthis.Shape={Rect:s,Text:l,Group:a},this.root=h,this};t.exports=r},function(t,e){(function(t){e.extend=function(t,e){varr={};for(varnint)t.hasOwnProperty(n)&&(r[n]=t[n]);if(null!=e)for(variine)e.hasOwnProperty(i)&&(r[i]=e[i]);returnr},e.cssProps=function(t){vare=[];for(varrint)t.hasOwnProperty(r)&&e.push(r+":"+t[r]);returne.join(";")},e.encodeHtmlEntity=function(t){for(vare=[],r=0,n=t.length-1;n>=0;n--)r=t.charCodeAt(n),r>128?e.unshift(["&#",r,";"].join("")):e.unshift(t[n]);returne.join("")},e.imageExists=function(t,e){varr=newImage;r.onerror=function(){e.call(this,!1)},r.onload=function(){e.call(this,!0)},r.src=t},e.decodeHtmlEntity=function(t){returnt.replace(/&#(\d+);/g,function(t,e){returnString.fromCharCode(e)})},e.dimensionCheck=function(t){vare={height:t.clientHeight,width:t.clientWidth};returne.height&&e.width?e:!1},e.truthy=function(t){return"string"==typeoft?"true"===t||"yes"===t||"1"===t||"on"===t||"✓"===t:!!t},e.parseColor=function(t){vare,r=/(^(?:#?)[0-9a-f]{6}$)|(^(?:#?)[0-9a-f]{3}$)/i,n=/^rgb\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,i=/^rgba\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0\.\d{1,}|1)\)$/,o=t.match(r);returnnull!==o?(e=o[1]||o[2],"#"!==e[0]?"#"+e:e):(o=t.match(n),null!==o?e="rgb("+o.slice(1).join(",")+")":(o=t.match(i),null!==o?e="rgba("+o.slice(1).join(",")+")":null))},e.canvasRatio=function(){vare=1,r=1;if(t.document){varn=t.document.createElement("canvas");if(n.getContext){vari=n.getContext("2d");e=t.devicePixelRatio||1,r=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1}}returne/r}}).call(e,function(){returnthis}())},function(t,e,r){(function(t){varn=r(13),i="http://www.w3.org/2000/svg",o=8;e.initSVG=function(t,e,r){vara,s,l=!1;t&&t.querySelector?(s=t.querySelector("style"),null===s&&(l=!0)):(t=n.newEl("svg",i),l=!0),l&&(a=n.newEl("defs",i),s=n.newEl("style",i),n.setAttr(s,{type:"text/css"}),a.appendChild(s),t.appendChild(a)),t.webkitMatchesSelector&&t.setAttribute("xmlns",i);for(varh=0;h<t.childNodes.length;h++)t.childNodes[h].nodeType===o&&t.removeChild(t.childNodes[h]);for(;s.childNodes.length;)s.removeChild(s.childNodes[0]);returnn.setAttr(t,{width:e,height:r,viewBox:"0 0 "+e+""+r,preserveAspectRatio:"none"}),t},e.svgStringToDataURI=function(){vare="data:image/svg+xml;charset=UTF-8,",r="data:image/svg+xml;charset=UTF-8;base64,";returnfunction(n,i){returni?r+btoa(t.unescape(encodeURIComponent(n))):e+encodeURIComponent(n)}}(),e.serializeSVG=function(e,r){if(t.XMLSerializer){vari=newXMLSerializer,o="",a=r.stylesheets;if(r.svgXMLStylesheet){for(vars=n.createXML(),l=a.length-1;l>=0;l--){varh=s.createProcessingInstruction("xml-stylesheet",'href="'+a[l]+'" rel="stylesheet"');s.insertBefore(h,s.firstChild)}s.removeChild(s.documentElement),o=i.serializeToString(s)}varu=i.serializeToString(e);returnu=u.replace(/\&(\#[0-9]{2,}\;)/g,"&$1"),o+u}}}).call(e,function(){returnthis}())},function(t,e){(function(t){e.newEl=function(e,r){returnt.document?null==r?t.document.createElement(e):t.document.createElementNS(r,e):void0},e.setAttr=function(t,e){for(varrine)t.setAttribute(r,e[r])},e.createXML=function(){returnt.DOMParser?(newDOMParser).parseFromString("<xml />","application/xml"):void0},e.getNodeArray=function(e){varr=null;return"string"==typeofe?r=document.querySelectorAll(e):t.NodeList&&einstanceoft.NodeList?r=e:t.Node&&einstanceoft.Node?r=[e]:t.HTMLCollection&&einstanceoft.HTMLCollection?r=e:einstanceofArray?r=e:null===e&&(r=[]),r=Array.prototype.slice.call(r)}}).call(e,function(){returnthis}())},function(t,e){varr=function(t,e){"string"==typeoft&&(this.original=t,"#"===t.charAt(0)&&(t=t.slice(1)),/[^a-f0-9]+/i.test(t)||(3===t.length&&(t=t.replace(/./g,"$&$&")),6===t.length&&(this.alpha=1,e&&e.alpha&&(this.alpha=e.alpha),this.set(parseInt(t,16)))))};r.rgb2hex=function(t,e,r){functionn(t){vare=(0|t).toString(16);return16>t&&(e="0"+e),e}return[t,e,r].map(n).join("")},r.hsl2rgb=function(t,e,r){varn=t/60,i=(1-Math.abs(2*r-1))*e,o=i*(1-Math.abs(parseInt(n)%2-1)),a=r-i/2,s=0,l=0,h=0;returnn>=0&&1>n?(s=i,l=o):n>=1&&2>n?(s=o,l=i):n>=2&&3>n?(l=i,h=o):n>=3&&4>n?(l=o,h=i):n>=4&&5>n?(s=o,h=i):n>=5&&6>n&&(s=i,h=o),s+=a,l+=a,h+=a,s=parseInt(255*s),l=parseInt(255*l),h=parseInt(255*h),[s,l,h]},r.prototype.set=function(t){this.raw=t;vare=(16711680&this.raw)>>16,r=(65280&this.raw)>>8,n=255&this.raw,i=.2126*e+.7152*r+.0722*n,o=-.09991*e-.33609*r+.436*n,a=.615*e-.55861*r-.05639*n;returnthis.rgb={r:e,g:r,b:n},this.yuv={y:i,u:o,v:a},this},r.prototype.lighten=function(t){vare=Math.min(1,Math.max(0,Math.abs(t)))*(0>t?-1:1),n=255*e|0,i=Math.min(255,Math.max(0,this.rgb.r+n)),o=Math.min(255,Math.max(0,this.rgb.g+n)),a=Math.min(255,Math.max(0,this.rgb.b+n)),s=r.rgb2hex(i,o,a);returnnewr(s)},r.prototype.toHex=function(t){return(t?"#":"")+this.raw.toString(16)},r.prototype.lighterThan=function(t){returntinstanceofr||(t=newr(t)),this.yuv.y>t.yuv.y},r.prototype.blendAlpha=function(t){tinstanceofr||(t=newr(t));vare=t,n=this,i=e.alpha*e.rgb.r+(1-e.alpha)*n.rgb.r,o=e.alpha*e.rgb.g+(1-e.alpha)*n.rgb.g,a=e.alpha*e.rgb.b+(1-e.alpha)*n.rgb.b;returnnewr(r.rgb2hex(i,o,a))},t.exports=r},function(t,e){t.exports={version:"2.9.2",svg_ns:"http://www.w3.org/2000/svg"}},function(t,e,r){functionn(t,e){returnf.element({tag:e,width:t.width,height:t.height,fill:t.properties.fill})}functioni(t){returnh.cssProps({fill:t.fill,"font-weight":t.font.weight,"font-family":t.font.family+", monospace","font-size":t.font.size+t.font.units})}functiono(t,e,r){varn=r/2;return["M",n,n,"H",t-n,"V",e-n,"H",n,"V",0,"M",0,n,"L",t,e-n,"M",0,e-n,"L",t,n].join("")}vara=r(17),s=r(12),l=r(15),h=r(11),u=l.svg_ns,f={element:function(t){vare=t.tag,r=t.content||"";returndeletet.tag,deletet.content,[e,r,t]}};t.exports=function(t,e){varr=e.engineSettings,l=r.stylesheets,h=l.map(function(t){return'<?xml-stylesheet rel="stylesheet" href="'+t+'"?>'}).join("\n"),c="holder_"+Number(newDate).toString(16),d=t.root,p=d.children.holderTextGroup,g="#"+c+" text { "+i(p.properties)+" } ";p.y+=.8*p.textPositionData.boundingBox.height;varm=[];Object.keys(p.children).forEach(function(t){vare=p.children[t];Object.keys(e.children).forEach(function(t){varr=e.children[t],n=p.x+e.x+r.x,i=p.y+e.y+r.y,o=f.element({tag:"text",content:r.properties.text,x:n,y:i});m.push(o)})});varv=f.element({tag:"g",content:m}),y=null;if(d.children.holderBg.properties.outline){varw=d.children.holderBg.properties.outline;y=f.element({tag:"path",d:o(d.children.holderBg.width,d.children.holderBg.height,w.width),"stroke-width":w.width,stroke:w.fill,fill:"none"})}varb=n(d.children.holderBg,"rect"),E=[];E.push(b),w&&E.push(y),E.push(v);varA=f.element({tag:"g",id:c,content:E}),x=f.element({tag:"style",content:g,type:"text/css"}),S=f.element({tag:"defs",content:x}),I=f.element({tag:"svg",content:[S,A],width:d.properties.width,height:d.properties.height,xmlns:u,viewBox:[0,0,d.properties.width,d.properties.height].join(""),preserveAspectRatio:"none"}),T=a(I);T=h+T[0];varB=s.svgStringToDataURI(T,"background"===e.mode);returnB}},function(t,e,r){r(18);t.exports=functionn(t,e,r){"use strict";functioni(t){vare=t.match(/^[\w-]+/),n={tag:e?e[0]:"div",attr:{},children:[]},i=t.match(/#([\w-]+)/),o=t.match(/\$([\w-]+)/),a=t.match(/\.[\w-]+/g);returni&&(n.attr.id=i[1],r[i[1]]=n),o&&(r[o[1]]=n),a&&(n.attr["class"]=a.join("").replace(/\./g,"")),t.match(/&$/g)&&(d=!1),n}functiono(t,e){returnnull!==e&&e!==!1&&void0!==e?"string"!=typeofe&&"object"!=typeofe?String(e):e:void0}functiona(t){returnt||0===t?String(t).replace(/&/g,"&").replace(/"/g,"""):""}functions(t){returnString(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}varl,h,u,f,c=1,d=!0;if(r=r||{},"string"==typeoft[0])t[0]=i(t[0]);else{if(!Array.isArray(t[0]))thrownewError("First element of array must be a string, or an array and not "+JSON.stringify(t[0]));c=0}for(;c<t.length;c++){if(t[c]===!1||null===t[c]){t[0]=!1;break}if(void0!==t[c]&&t[c]!==!0)if("string"==typeoft[c])d&&(t[c]=s(t[c])),t[0].children.push(t[c]);elseif("number"==typeoft[c])t[0].children.push(t[c]);elseif(Array.isArray(t[c])){if(Array.isArray(t[c][0])){if(t[c].reverse().forEach(function(e){t.splice(c+1,0,e)}),0!==c)continue;c++}n(t[c],e,r),t[c][0]&&t[0].children.push(t[c][0])}elseif("function"==typeoft[c])u=t[c];else{if("object"!=typeoft[c])thrownewTypeError('"'+t[c]+'" is not allowed as a value.');for(hint[c])t[c].hasOwnProperty(h)&&null!==t[c][h]&&t[c][h]!==!1&&("style"===h&&"object"==typeoft[c][h]?t[0].attr[h]=JSON.stringify(t[c][h],o).slice(2,-2).replace(/","/g,";").replace(/":"/g,":").replace(/\\"/g,"'"):t[0].attr[h]=t[c][h])}}if(t[0]!==!1){l="<"+t[0].tag;for(fint[0].attr)t[0].attr.hasOwnProperty(f)&&(l+=""+f+'="'+a(t[0].attr[f])+'"');l+=">",t[0].children.forEach(function(t){l+=t}),l+="</"+t[0].tag+">",t[0]=l}returnr[0]=t[0],u&&u(t[0]),r}},function(t,e){"use strict";functionr(t){vare=""+t,r=n.exec(e);if(!r)returne;vari,o="",a=0,s=0;for(a=r.index;a<e.length;a++){switch(e.charCodeAt(a)){case34:i=""";break;case38:i="&";break;case39:i="'";break;case60:i="<";break;case62:i=">";break;default:continue}s!==a&&(o+=e.substring(s,a)),s=a+1,o+=i}returns!==a?o+e.substring(s,a):o}varn=/["'&<>]/;t.exports=r},function(t,e,r){varn=r(13),i=r(11);t.exports=function(){vart=n.newEl("canvas"),e=null;returnfunction(r){null==e&&(e=t.getContext("2d"));varn=i.canvasRatio(),o=r.root;t.width=n*o.properties.width,t.height=n*o.properties.height,e.textBaseline="middle";vara=o.children.holderBg,s=n*a.width,l=n*a.height,h=2,u=h/2;e.fillStyle=a.properties.fill,e.fillRect(0,0,s,l),a.properties.outline&&(e.strokeStyle=a.properties.outline.fill,e.lineWidth=a.properties.outline.width,e.moveTo(u,u),e.lineTo(s-u,u),e.lineTo(s-u,l-u),e.lineTo(u,l-u),e.lineTo(u,u),e.moveTo(0,u),e.lineTo(s,l-u),e.moveTo(0,l-u),e.lineTo(s,u),e.stroke());varf=o.children.holderTextGroup;e.font=f.properties.font.weight+""+n*f.properties.font.size+f.properties.font.units+""+f.properties.font.family+", monospace",e.fillStyle=f.properties.fill;for(varcinf.children){vard=f.children[c];for(varpind.children){varg=d.children[p],m=n*(f.x+d.x+g.x),v=n*(f.y+d.y+g.y+f.properties.leading/2);e.fillText(g.properties.text,m,v)}}returnt.toDataURL("image/png")}}()}])}),function(t,e){e&&(Holder=t.Holder)}(this,"undefined"!=typeofMeteor&&"undefined"!=typeofPackage);