0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-30 12:24:19 +01:00
Bootstrap/docs/assets/js/docs.min.js
2016-10-09 17:26:51 -07:00

26 lines
48 KiB
JavaScript

!function(a,b){"use strict";"function"==typeof define&&define.amd?define([],b):"object"==typeof module&&module.exports?module.exports=b():(a.AnchorJS=b(),a.anchors=new a.AnchorJS)}(this,function(){"use strict";function a(a){function b(a){a.icon=a.hasOwnProperty("icon")?a.icon:"",a.visible=a.hasOwnProperty("visible")?a.visible:"hover",a.placement=a.hasOwnProperty("placement")?a.placement:"right",a.class=a.hasOwnProperty("class")?a.class:"",a.truncate=a.hasOwnProperty("truncate")?Math.floor(a.truncate):64}function c(a){var b;if("string"==typeof a||a instanceof String)b=[].slice.call(document.querySelectorAll(a));else{if(!(Array.isArray(a)||a instanceof NodeList))throw new Error("The selector provided to AnchorJS was invalid.");b=[].slice.call(a)}return b}function d(){if(null===document.head.querySelector("style.anchorjs")){var a,b=document.createElement("style"),c=" .anchorjs-link { opacity: 0; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }",d=" *:hover > .anchorjs-link, .anchorjs-link:focus { opacity: 1; }",e=' @font-face { font-family: "anchorjs-icons"; src: url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype"); }',f=" [data-anchorjs-icon]::after { content: attr(data-anchorjs-icon); }";b.className="anchorjs",b.appendChild(document.createTextNode("")),a=document.head.querySelector('[rel="stylesheet"], style'),void 0===a?document.head.appendChild(b):document.head.insertBefore(b,a),b.sheet.insertRule(c,b.sheet.cssRules.length),b.sheet.insertRule(d,b.sheet.cssRules.length),b.sheet.insertRule(f,b.sheet.cssRules.length),b.sheet.insertRule(e,b.sheet.cssRules.length)}}this.options=a||{},this.elements=[],b(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(a){var e,f,g,h,i,j,k,l,m,n,o,p,q=[];if(b(this.options),p=this.options.visible,"touch"===p&&(p=this.isTouchDevice()?"always":"hover"),a||(a="h1, h2, h3, h4, h5, h6"),e=c(a),0===e.length)return!1;for(d(),f=document.querySelectorAll("[id]"),g=[].map.call(f,function(a){return a.id}),i=0;i<e.length;i++)if(this.hasAnchorJSLink(e[i]))q.push(i);else{if(e[i].hasAttribute("id"))h=e[i].getAttribute("id");else{l=this.urlify(e[i].textContent),m=l,k=0;do void 0!==j&&(m=l+"-"+k),j=g.indexOf(m),k+=1;while(-1!==j);j=void 0,g.push(m),e[i].setAttribute("id",m),h=m}n=h.replace(/-/g," "),o=document.createElement("a"),o.className="anchorjs-link "+this.options.class,o.href="#"+h,o.setAttribute("aria-label","Anchor link for: "+n),o.setAttribute("data-anchorjs-icon",this.options.icon),"always"===p&&(o.style.opacity="1"),""===this.options.icon&&(o.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(o.style.lineHeight="inherit")),"left"===this.options.placement?(o.style.position="absolute",o.style.marginLeft="-1em",o.style.paddingRight="0.5em",e[i].insertBefore(o,e[i].firstChild)):(o.style.paddingLeft="0.375em",e[i].appendChild(o))}for(i=0;i<q.length;i++)e.splice(q[i]-i,1);return this.elements=this.elements.concat(e),this},this.remove=function(a){for(var b,d,e=c(a),f=0;f<e.length;f++)d=e[f].querySelector(".anchorjs-link"),d&&(b=this.elements.indexOf(e[f]),-1!==b&&this.elements.splice(b,1),e[f].removeChild(d));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(a){var c,d=/[& +$,:;=?@"#{}|^~[`%!'\]\.\/\(\)\*\\]/g;return this.options.truncate||b(this.options),c=a.trim().replace(/\'/gi,"").replace(d,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(a){var b=a.firstChild&&(" "+a.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,c=a.lastChild&&(" "+a.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return b||c||!1}}return a}),/*!
* clipboard.js v1.5.12
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
*/
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.Clipboard=a()}}(function(){var a;return 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);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.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){var d=a("matches-selector");b.exports=function(a,b,c){for(var e=c?a:a.parentNode;e&&e!==document;){if(d(e,b))return e;e=e.parentNode}}},{"matches-selector":5}],2:[function(a,b,c){function d(a,b,c,d,f){var g=e.apply(this,arguments);return a.addEventListener(c,g,f),{destroy:function(){a.removeEventListener(c,g,f)}}}function e(a,b,c,d){return function(c){c.delegateTarget=f(c.target,b,!0),c.delegateTarget&&d.call(a,c)}}var f=a("closest");b.exports=d},{closest:1}],3:[function(a,b,c){c.node=function(a){return void 0!==a&&a instanceof HTMLElement&&1===a.nodeType},c.nodeList=function(a){var b=Object.prototype.toString.call(a);return void 0!==a&&("[object NodeList]"===b||"[object HTMLCollection]"===b)&&"length"in a&&(0===a.length||c.node(a[0]))},c.string=function(a){return"string"==typeof a||a instanceof String},c.fn=function(a){var b=Object.prototype.toString.call(a);return"[object Function]"===b}},{}],4:[function(a,b,c){function d(a,b,c){if(!a&&!b&&!c)throw new Error("Missing required arguments");if(!h.string(b))throw new TypeError("Second argument must be a String");if(!h.fn(c))throw new TypeError("Third argument must be a Function");if(h.node(a))return e(a,b,c);if(h.nodeList(a))return f(a,b,c);if(h.string(a))return g(a,b,c);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function e(a,b,c){return a.addEventListener(b,c),{destroy:function(){a.removeEventListener(b,c)}}}function f(a,b,c){return Array.prototype.forEach.call(a,function(a){a.addEventListener(b,c)}),{destroy:function(){Array.prototype.forEach.call(a,function(a){a.removeEventListener(b,c)})}}}function g(a,b,c){return i(document.body,a,b,c)}var h=a("./is"),i=a("delegate");b.exports=d},{"./is":3,delegate:2}],5:[function(a,b,c){function d(a,b){if(f)return f.call(a,b);for(var c=a.parentNode.querySelectorAll(b),d=0;d<c.length;++d)if(c[d]==a)return!0;return!1}var e=Element.prototype,f=e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;b.exports=d},{}],6:[function(a,b,c){function d(a){var b;if("INPUT"===a.nodeName||"TEXTAREA"===a.nodeName)a.focus(),a.setSelectionRange(0,a.value.length),b=a.value;else{a.hasAttribute("contenteditable")&&a.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(a),c.removeAllRanges(),c.addRange(d),b=c.toString()}return b}b.exports=d},{}],7:[function(a,b,c){function d(){}d.prototype={on:function(a,b,c){var d=this.e||(this.e={});return(d[a]||(d[a]=[])).push({fn:b,ctx:c}),this},once:function(a,b,c){function d(){e.off(a,d),b.apply(c,arguments)}var e=this;return d._=b,this.on(a,d,c)},emit:function(a){var b=[].slice.call(arguments,1),c=((this.e||(this.e={}))[a]||[]).slice(),d=0,e=c.length;for(d;e>d;d++)c[d].fn.apply(c[d].ctx,b);return this},off:function(a,b){var c=this.e||(this.e={}),d=c[a],e=[];if(d&&b)for(var f=0,g=d.length;g>f;f++)d[f].fn!==b&&d[f].fn._!==b&&e.push(d[f]);return e.length?c[a]=e:delete c[a],this}},b.exports=d},{}],8:[function(b,c,d){!function(e,f){if("function"==typeof a&&a.amd)a(["module","select"],f);else if("undefined"!=typeof d)f(c,b("select"));else{var g={exports:{}};f(g,e.select),e.clipboardAction=g.exports}}(this,function(a,b){"use strict";function c(a){return a&&a.__esModule?a:{default:a}}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var e=c(b),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),h=function(){function a(b){d(this,a),this.resolveOptions(b),this.initSelection()}return a.prototype.resolveOptions=function(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=a.action,this.emitter=a.emitter,this.target=a.target,this.text=a.text,this.trigger=a.trigger,this.selectedText=""},a.prototype.initSelection=function(){this.text?this.selectFake():this.target&&this.selectTarget()},a.prototype.selectFake=function(){var a=this,b="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return a.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[b?"right":"left"]="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,e.default)(this.fakeElem),this.copyText()},a.prototype.removeFake=function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},a.prototype.selectTarget=function(){this.selectedText=(0,e.default)(this.target),this.copyText()},a.prototype.copyText=function(){var a=void 0;try{a=document.execCommand(this.action)}catch(b){a=!1}this.handleResult(a)},a.prototype.handleResult=function(a){a?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},a.prototype.clearSelection=function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},a.prototype.destroy=function(){this.removeFake()},g(a,[{key:"action",set:function(){var a=arguments.length<=0||void 0===arguments[0]?"copy":arguments[0];if(this._action=a,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(a){if(void 0!==a){if(!a||"object"!==("undefined"==typeof a?"undefined":f(a))||1!==a.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&a.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(a.hasAttribute("readonly")||a.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=a}},get:function(){return this._target}}]),a}();a.exports=h})},{select:6}],9:[function(b,c,d){!function(e,f){if("function"==typeof a&&a.amd)a(["module","./clipboard-action","tiny-emitter","good-listener"],f);else if("undefined"!=typeof d)f(c,b("./clipboard-action"),b("tiny-emitter"),b("good-listener"));else{var g={exports:{}};f(g,e.clipboardAction,e.tinyEmitter,e.goodListener),e.clipboard=g.exports}}(this,function(a,b,c,d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a,b){var c="data-clipboard-"+a;if(b.hasAttribute(c))return b.getAttribute(c)}var j=e(b),k=e(c),l=e(d),m=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this));return e.resolveOptions(d),e.listenClick(c),e}return h(b,a),b.prototype.resolveOptions=function(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action="function"==typeof a.action?a.action:this.defaultAction,this.target="function"==typeof a.target?a.target:this.defaultTarget,this.text="function"==typeof a.text?a.text:this.defaultText},b.prototype.listenClick=function(a){var b=this;this.listener=(0,l.default)(a,"click",function(a){return b.onClick(a)})},b.prototype.onClick=function(a){var b=a.delegateTarget||a.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new j.default({action:this.action(b),target:this.target(b),text:this.text(b),trigger:b,emitter:this})},b.prototype.defaultAction=function(a){return i("action",a)},b.prototype.defaultTarget=function(a){var b=i("target",a);return b?document.querySelector(b):void 0},b.prototype.defaultText=function(a){return i("text",a)},b.prototype.destroy=function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},b}(k.default);a.exports=m})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)}),/*!
Holder - client side image placeholders
Version 2.9.4+cabil
© 2016 Ivan Malopinsky - http://imsky.co
Site: http://holderjs.com
Issues: https://github.com/imsky/holder/issues
License: MIT
*/
!function(a){if(a.document){var b=a.document;b.querySelectorAll||(b.querySelectorAll=function(c){var d,e=b.createElement("style"),f=[];for(b.documentElement.firstChild.appendChild(e),b._qsa=[],e.styleSheet.cssText=c+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",a.scrollBy(0,0),e.parentNode.removeChild(e);b._qsa.length;)d=b._qsa.shift(),d.style.removeAttribute("x-qsa"),f.push(d);return b._qsa=null,f}),b.querySelector||(b.querySelector=function(a){var c=b.querySelectorAll(a);return c.length?c[0]:null}),b.getElementsByClassName||(b.getElementsByClassName=function(a){return a=String(a).replace(/^|\s+/g,"."),b.querySelectorAll(a)}),Object.keys||(Object.keys=function(a){if(a!==Object(a))throw TypeError("Object.keys called on non-object");var b,c=[];for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.push(b);return c}),Array.prototype.forEach||(Array.prototype.forEach=function(a){if(void 0===this||null===this)throw TypeError();var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw TypeError();var d,e=arguments[1];for(d=0;d<c;d++)d in b&&a.call(e,b[d],d,b)}),function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.atob=a.atob||function(a){a=String(a);var c,d=0,e=[],f=0,g=0;if(a=a.replace(/\s/g,""),a.length%4===0&&(a=a.replace(/=+$/,"")),a.length%4===1)throw Error("InvalidCharacterError");if(/[^+\/0-9A-Za-z]/.test(a))throw Error("InvalidCharacterError");for(;d<a.length;)c=b.indexOf(a.charAt(d)),f=f<<6|c,g+=6,24===g&&(e.push(String.fromCharCode(f>>16&255)),e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f)),g=0,f=0),d+=1;return 12===g?(f>>=4,e.push(String.fromCharCode(255&f))):18===g&&(f>>=2,e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f))),e.join("")},a.btoa=a.btoa||function(a){a=String(a);var c,d,e,f,g,h,i,j=0,k=[];if(/[^\x00-\xFF]/.test(a))throw Error("InvalidCharacterError");for(;j<a.length;)c=a.charCodeAt(j++),d=a.charCodeAt(j++),e=a.charCodeAt(j++),f=c>>2,g=(3&c)<<4|d>>4,h=(15&d)<<2|e>>6,i=63&e,j===a.length+2?(h=64,i=64):j===a.length+1&&(i=64),k.push(b.charAt(f),b.charAt(g),b.charAt(h),b.charAt(i));return k.join("")}}(a),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(a){var b=this.__proto__||this.constructor.prototype;return a in this&&(!(a in b)||b[a]!==this[a])}),function(){if("performance"in a==0&&(a.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in a.performance==0){var b=Date.now();performance.timing&&performance.timing.navigationStart&&(b=performance.timing.navigationStart),a.performance.now=function(){return Date.now()-b}}}(),a.requestAnimationFrame||(a.webkitRequestAnimationFrame&&a.webkitCancelAnimationFrame?!function(a){a.requestAnimationFrame=function(b){return webkitRequestAnimationFrame(function(){b(a.performance.now())})},a.cancelAnimationFrame=a.webkitCancelAnimationFrame}(a):a.mozRequestAnimationFrame&&a.mozCancelAnimationFrame?!function(a){a.requestAnimationFrame=function(b){return mozRequestAnimationFrame(function(){b(a.performance.now())})},a.cancelAnimationFrame=a.mozCancelAnimationFrame}(a):!function(a){a.requestAnimationFrame=function(b){return a.setTimeout(b,1e3/60)},a.cancelAnimationFrame=a.clearTimeout}(a))}}(this),function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.Holder=b():a.Holder=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){a.exports=c(1)},function(a,b,c){(function(b){function d(a,b,c,d){var g=e(c.substr(c.lastIndexOf(a.domain)),a);g&&f({mode:null,el:d,flags:g,engineSettings:b})}function e(a,b){var c={theme:A(E.settings.themes.gray,null),stylesheets:b.stylesheets,instanceOptions:b},d=a.indexOf("?"),e=[a];d!==-1&&(e=[a.slice(0,d),a.slice(d+1)]);var f=e[0].split("/");c.holderURL=a;var g=f[1],h=g.match(/([\d]+p?)x([\d]+p?)/);if(!h)return!1;if(c.fluid=g.indexOf("p")!==-1,c.dimensions={width:h[1].replace("p","%"),height:h[2].replace("p","%")},2===e.length){var i=r.parse(e[1]);if(t.truthy(i.ratio)){c.fluid=!0;var j=parseFloat(c.dimensions.width.replace("%","")),k=parseFloat(c.dimensions.height.replace("%",""));k=Math.floor(100*(k/j)),j=100,c.dimensions.width=j+"%",c.dimensions.height=k+"%"}if(c.auto=t.truthy(i.auto),i.bg&&(c.theme.bg=t.parseColor(i.bg)),i.fg&&(c.theme.fg=t.parseColor(i.fg)),i.bg&&!i.fg&&(c.autoFg=!0),i.theme&&c.instanceOptions.themes.hasOwnProperty(i.theme)&&(c.theme=A(c.instanceOptions.themes[i.theme],null)),i.text&&(c.text=i.text),i.textmode&&(c.textmode=i.textmode),i.size&&(c.size=i.size),i.font&&(c.font=i.font),i.align&&(c.align=i.align),i.lineWrap&&(c.lineWrap=i.lineWrap),c.nowrap=t.truthy(i.nowrap),c.outline=t.truthy(i.outline),t.truthy(i.random)){E.vars.cache.themeKeys=E.vars.cache.themeKeys||Object.keys(c.instanceOptions.themes);var l=E.vars.cache.themeKeys[0|Math.random()*E.vars.cache.themeKeys.length];c.theme=A(c.instanceOptions.themes[l],null)}}return c}function f(a){var b=a.mode,c=a.el,d=a.flags,e=a.engineSettings,f=d.dimensions,h=d.theme,i=f.width+"x"+f.height;b=null==b?d.fluid?"fluid":"image":b;var l=/holder_([a-z]+)/g,m=!1;if(null!=d.text&&(h.text=d.text,"object"===c.nodeName.toLowerCase())){for(var n=h.text.split("\\n"),o=0;o<n.length;o++)n[o]=t.encodeHtmlEntity(n[o]);h.text=n.join("\\n")}if(h.text){var p=h.text.match(l);null!==p&&p.forEach(function(a){"holder_dimensions"===a&&(h.text=h.text.replace(a,i))})}var q=d.holderURL,r=A(e,null);if(d.font&&(h.font=d.font,!r.noFontFallback&&"img"===c.nodeName.toLowerCase()&&E.setup.supportsCanvas&&"svg"===r.renderer&&(r=A(r,{renderer:"canvas"}))),d.font&&"canvas"==r.renderer&&(r.reRender=!0),"background"==b)null==c.getAttribute("data-background-src")&&v.setAttr(c,{"data-background-src":q});else{var s={};s[E.vars.dataAttr]=q,v.setAttr(c,s)}d.theme=h,c.holderData={flags:d,engineSettings:r},"image"!=b&&"fluid"!=b||v.setAttr(c,{alt:h.text?m?h.text:h.text+" ["+i+"]":i});var u={mode:b,el:c,holderSettings:{dimensions:f,theme:h,flags:d},engineSettings:r};"image"==b?(d.auto||(c.style.width=f.width+"px",c.style.height=f.height+"px"),"html"==r.renderer?c.style.backgroundColor=h.bg:(g(u),"exact"==d.textmode&&(c.holderData.resizeUpdate=!0,E.vars.resizableImages.push(c),j(c)))):"background"==b&&"html"!=r.renderer?g(u):"fluid"==b&&(c.holderData.resizeUpdate=!0,"%"==f.height.slice(-1)?c.style.height=f.height:null!=d.auto&&d.auto||(c.style.height=f.height+"px"),"%"==f.width.slice(-1)?c.style.width=f.width:null!=d.auto&&d.auto||(c.style.width=f.width+"px"),"inline"!=c.style.display&&""!==c.style.display&&"none"!=c.style.display||(c.style.display="block"),k(c),"html"==r.renderer?c.style.backgroundColor=h.bg:(E.vars.resizableImages.push(c),j(c)))}function g(a){function c(){var b=null;switch(i.renderer){case"canvas":b=z(k,a);break;case"svg":b=y(k,a);break;default:throw"Holder: invalid renderer: "+i.renderer}return b}var d=null,e=a.mode,f=a.el,g=a.holderSettings,i=a.engineSettings;switch(i.renderer){case"svg":if(!E.setup.supportsSVG)return;break;case"canvas":if(!E.setup.supportsCanvas)return;break;default:return}var j={width:g.dimensions.width,height:g.dimensions.height,theme:g.theme,flags:g.flags},k=h(j);if(d=c(),null==d)throw"Holder: couldn't render placeholder";"background"==e?(f.style.backgroundImage="url("+d+")",i.noBackgroundSize||(f.style.backgroundSize=j.width+"px "+j.height+"px")):("img"===f.nodeName.toLowerCase()?v.setAttr(f,{src:d}):"object"===f.nodeName.toLowerCase()&&v.setAttr(f,{data:d,type:"image/svg+xml"}),i.reRender&&b.setTimeout(function(){var a=c();if(null==a)throw"Holder: couldn't render placeholder";"img"===f.nodeName.toLowerCase()?v.setAttr(f,{src:a}):"object"===f.nodeName.toLowerCase()&&v.setAttr(f,{data:a,type:"image/svg+xml"})},150)),v.setAttr(f,{"data-holder-rendered":!0})}function h(a){function b(a,b,c,d){b.width=c,b.height=d,a.width=Math.max(a.width,b.width),a.height+=b.height}var c=E.defaults.size;switch(parseFloat(a.theme.size)?c=a.theme.size:parseFloat(a.flags.size)&&(c=a.flags.size),a.font={family:a.theme.font?a.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:i(a.width,a.height,c,E.defaults.scale),units:a.theme.units?a.theme.units:E.defaults.units,weight:a.theme.fontweight?a.theme.fontweight:"bold"},a.text=a.theme.text||Math.floor(a.width)+"x"+Math.floor(a.height),a.noWrap=a.theme.nowrap||a.flags.nowrap,a.align=a.theme.align||a.flags.align||"center",a.flags.textmode){case"literal":a.text=a.flags.dimensions.width+"x"+a.flags.dimensions.height;break;case"exact":if(!a.flags.exactDimensions)break;a.text=Math.floor(a.flags.exactDimensions.width)+"x"+Math.floor(a.flags.exactDimensions.height)}var d=a.flags.lineWrap||E.setup.lineWrapRatio,e=a.width*d,f=e,g=new s({width:a.width,height:a.height}),h=g.Shape,j=new h.Rect("holderBg",{fill:a.theme.bg});if(j.resize(a.width,a.height),g.root.add(j),a.flags.outline){var k=new w(j.properties.fill);k=k.lighten(k.lighterThan("7f7f7f")?-.1:.1),j.properties.outline={fill:k.toHex(!0),width:2}}var l=a.theme.fg;if(a.flags.autoFg){var m=new w(j.properties.fill),n=new w("fff"),o=new w("000",{alpha:.285714});l=m.blendAlpha(m.lighterThan("7f7f7f")?o:n).toHex(!0)}var p=new h.Group("holderTextGroup",{text:a.text,align:a.align,font:a.font,fill:l});p.moveTo(null,null,1),g.root.add(p);var q=p.textPositionData=F(g);if(!q)throw"Holder: staging fallback not supported yet.";p.properties.leading=q.boundingBox.height;var r=null,t=null;if(q.lineCount>1){var u,v=0,x=0,y=0;t=new h.Group("line"+y),"left"!==a.align&&"right"!==a.align||(f=a.width*(1-2*(1-d)));for(var z=0;z<q.words.length;z++){var A=q.words[z];r=new h.Text(A.text);var B="\\n"==A.text;!a.noWrap&&(v+A.width>=f||B===!0)&&(b(p,t,v,p.properties.leading),p.add(t),v=0,x+=p.properties.leading,y+=1,t=new h.Group("line"+y),t.y=x),B!==!0&&(r.moveTo(v,0),v+=q.spaceWidth+A.width,t.add(r))}if(b(p,t,v,p.properties.leading),p.add(t),"left"===a.align)p.moveTo(a.width-e,null,null);else if("right"===a.align){for(u in p.children)t=p.children[u],t.moveTo(a.width-t.width,null,null);p.moveTo(0-(a.width-e),null,null)}else{for(u in p.children)t=p.children[u],t.moveTo((p.width-t.width)/2,null,null);p.moveTo((a.width-p.width)/2,null,null)}p.moveTo(null,(a.height-p.height)/2,null),(a.height-p.height)/2<0&&p.moveTo(null,0,null)}else r=new h.Text(a.text),t=new h.Group("line0"),t.add(r),p.add(t),"left"===a.align?p.moveTo(a.width-e,null,null):"right"===a.align?p.moveTo(0-(a.width-e),null,null):p.moveTo((a.width-q.boundingBox.width)/2,null,null),p.moveTo(null,(a.height-q.boundingBox.height)/2,null);return g}function i(a,b,c,d){var e=parseInt(a,10),f=parseInt(b,10),g=Math.max(e,f),h=Math.min(e,f),i=.8*Math.min(h,g*d);return Math.round(Math.max(c,i))}function j(a){var b;b=null==a||null==a.nodeType?E.vars.resizableImages:[a];for(var c=0,d=b.length;c<d;c++){var e=b[c];if(e.holderData){var f=e.holderData.flags,h=B(e);if(h){if(!e.holderData.resizeUpdate)continue;if(f.fluid&&f.auto){var i=e.holderData.fluidConfig;switch(i.mode){case"width":h.height=h.width/i.ratio;break;case"height":h.width=h.height*i.ratio}}var j={mode:"image",holderSettings:{dimensions:h,theme:f.theme,flags:f},el:e,engineSettings:e.holderData.engineSettings};"exact"==f.textmode&&(f.exactDimensions=h,j.holderSettings.dimensions=f.dimensions),g(j)}else n(e)}}}function k(a){if(a.holderData){var b=B(a);if(b){var c=a.holderData.flags,d={fluidHeight:"%"==c.dimensions.height.slice(-1),fluidWidth:"%"==c.dimensions.width.slice(-1),mode:null,initialDimensions:b};d.fluidWidth&&!d.fluidHeight?(d.mode="width",d.ratio=d.initialDimensions.width/parseFloat(c.dimensions.height)):!d.fluidWidth&&d.fluidHeight&&(d.mode="height",d.ratio=parseFloat(c.dimensions.width)/d.initialDimensions.height),a.holderData.fluidConfig=d}else n(a)}}function l(){var a,c=[],d=Object.keys(E.vars.invisibleImages);d.forEach(function(b){a=E.vars.invisibleImages[b],B(a)&&"img"==a.nodeName.toLowerCase()&&(c.push(a),delete E.vars.invisibleImages[b])}),c.length&&D.run({images:c}),setTimeout(function(){b.requestAnimationFrame(l)},10)}function m(){E.vars.visibilityCheckStarted||(b.requestAnimationFrame(l),E.vars.visibilityCheckStarted=!0)}function n(a){a.holderData.invisibleId||(E.vars.invisibleId+=1,E.vars.invisibleImages["i"+E.vars.invisibleId]=a,a.holderData.invisibleId=E.vars.invisibleId)}function o(a){E.vars.debounceTimer||a.call(this),E.vars.debounceTimer&&b.clearTimeout(E.vars.debounceTimer),E.vars.debounceTimer=b.setTimeout(function(){E.vars.debounceTimer=null,a.call(this)},E.setup.debounce)}function p(){o(function(){j(null)})}var q=c(2),r=c(3),s=c(6),t=c(7),u=c(8),v=c(9),w=c(10),x=c(11),y=c(12),z=c(15),A=t.extend,B=t.dimensionCheck,C=x.svg_ns,D={version:x.version,addTheme:function(a,b){return null!=a&&null!=b&&(E.settings.themes[a]=b),delete E.vars.cache.themeKeys,this},addImage:function(a,b){var c=v.getNodeArray(b);return c.forEach(function(b){var c=v.newEl("img"),d={};d[E.setup.dataAttr]=a,v.setAttr(c,d),b.appendChild(c)}),this},setResizeUpdate:function(a,b){a.holderData&&(a.holderData.resizeUpdate=!!b,a.holderData.resizeUpdate&&j(a))},run:function(a){a=a||{};var c={},g=A(E.settings,a);E.vars.preempted=!0,E.vars.dataAttr=g.dataAttr||E.setup.dataAttr,c.renderer=g.renderer?g.renderer:E.setup.renderer,E.setup.renderers.join(",").indexOf(c.renderer)===-1&&(c.renderer=E.setup.supportsSVG?"svg":E.setup.supportsCanvas?"canvas":"html");var h=v.getNodeArray(g.images),i=v.getNodeArray(g.bgnodes),j=v.getNodeArray(g.stylenodes),k=v.getNodeArray(g.objects);return c.stylesheets=[],c.svgXMLStylesheet=!0,c.noFontFallback=!!g.noFontFallback,c.noBackgroundSize=!!g.noBackgroundSize,j.forEach(function(a){if(a.attributes.rel&&a.attributes.href&&"stylesheet"==a.attributes.rel.value){var b=a.attributes.href.value,d=v.newEl("a");d.href=b;var e=d.protocol+"//"+d.host+d.pathname+d.search;c.stylesheets.push(e)}}),i.forEach(function(a){if(b.getComputedStyle){var d=b.getComputedStyle(a,null).getPropertyValue("background-image"),h=a.getAttribute("data-background-src"),i=h||d,j=null,k=g.domain+"/",l=i.indexOf(k);if(0===l)j=i;else if(1===l&&"?"===i[0])j=i.slice(1);else{var m=i.substr(l).match(/([^\"]*)"?\)/);if(null!==m)j=m[1];else if(0===i.indexOf("url("))throw"Holder: unable to parse background URL: "+i}if(j){var n=e(j,g);n&&f({mode:"background",el:a,flags:n,engineSettings:c})}}}),k.forEach(function(a){var b={};try{b.data=a.getAttribute("data"),b.dataSrc=a.getAttribute(E.vars.dataAttr)}catch(a){}var e=null!=b.data&&0===b.data.indexOf(g.domain),f=null!=b.dataSrc&&0===b.dataSrc.indexOf(g.domain);e?d(g,c,b.data,a):f&&d(g,c,b.dataSrc,a)}),h.forEach(function(a){var b={};try{b.src=a.getAttribute("src"),b.dataSrc=a.getAttribute(E.vars.dataAttr),b.rendered=a.getAttribute("data-holder-rendered")}catch(a){}var e=null!=b.src,f=null!=b.dataSrc&&0===b.dataSrc.indexOf(g.domain),h=null!=b.rendered&&"true"==b.rendered;e?0===b.src.indexOf(g.domain)?d(g,c,b.src,a):f&&(h?d(g,c,b.dataSrc,a):!function(a,b,c,e,f){t.imageExists(a,function(a){a||d(b,c,e,f)})}(b.src,g,c,b.dataSrc,a)):f&&d(g,c,b.dataSrc,a)}),this}},E={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}},F=function(){var a=null,b=null,c=null;return function(d){var e=d.root;if(E.setup.supportsSVG){var f=!1,g=function(a){return document.createTextNode(a)};null!=a&&a.parentNode===document.body||(f=!0),a=u.initSVG(a,e.properties.width,e.properties.height),a.style.display="block",f&&(b=v.newEl("text",C),c=g(null),v.setAttr(b,{x:0}),b.appendChild(c),a.appendChild(b),document.body.appendChild(a),a.style.visibility="hidden",a.style.position="absolute",a.style.top="-100%",a.style.left="-100%");var h=e.children.holderTextGroup,i=h.properties;v.setAttr(b,{y:i.font.size,style:t.cssProps({"font-weight":i.font.weight,"font-size":i.font.size+i.font.units,"font-family":i.font.family})}),c.nodeValue=i.text;var j=b.getBBox(),k=Math.ceil(j.width/e.properties.width),l=i.text.split(" "),m=i.text.match(/\\n/g);k+=null==m?0:m.length,c.nodeValue=i.text.replace(/[ ]+/g,"");var n=b.getComputedTextLength(),o=j.width-n,p=Math.round(o/Math.max(1,l.length-1)),q=[];if(k>1){c.nodeValue="";for(var r=0;r<l.length;r++)if(0!==l[r].length){c.nodeValue=t.decodeHtmlEntity(l[r]);var s=b.getBBox();q.push({text:l[r],width:s.width})}}return a.style.display="none",{spaceWidth:p,lineCount:k,boundingBox:j,words:q}}return!1}}();for(var G in E.flags)E.flags.hasOwnProperty(G)&&(E.flags[G].match=function(a){return a.match(this.regex)});E.setup={renderer:"html",debounce:100,ratio:1,supportsCanvas:!1,supportsSVG:!1,lineWrapRatio:.9,dataAttr:"data-src",renderers:["html","canvas","svg"]},E.vars={preempted:!1,resizableImages:[],invisibleImages:{},invisibleId:0,visibilityCheckStarted:!1,debounceTimer:null,cache:{}},function(){var a=v.newEl("canvas");a.getContext&&a.toDataURL("image/png").indexOf("data:image/png")!=-1&&(E.setup.renderer="canvas",E.setup.supportsCanvas=!0),document.createElementNS&&document.createElementNS(C,"svg").createSVGRect&&(E.setup.renderer="svg",E.setup.supportsSVG=!0)}(),m(),q&&q(function(){E.vars.preempted||D.run(),b.addEventListener?(b.addEventListener("resize",p,!1),b.addEventListener("orientationchange",p,!1)):b.attachEvent("onresize",p),"object"==typeof b.Turbolinks&&b.document.addEventListener("page:change",function(){D.run()})}),a.exports=D}).call(b,function(){return this}())},function(a,b){function c(a){function b(a){if(!v){if(!g.body)return e(b);for(v=!0;a=w.shift();)e(a)}}function c(a){(t||a.type===i||g[m]===l)&&(d(),b())}function d(){t?(g[s](q,c,j),a[s](i,c,j)):(g[o](r,c),a[o](k,c))}function e(a,b){setTimeout(a,+b>=0?b:1)}function f(a){v?e(a):w.push(a)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function a(){document.removeEventListener("DOMContentLoaded",a,!1),document.readyState="complete"},!1),document.readyState="loading");var g=a.document,h=g.documentElement,i="load",j=!1,k="on"+i,l="complete",m="readyState",n="attachEvent",o="detachEvent",p="addEventListener",q="DOMContentLoaded",r="onreadystatechange",s="removeEventListener",t=p in g,u=j,v=j,w=[];if(g[m]===l)e(b);else if(t)g[p](q,c,j),a[p](i,c,j);else{g[n](r,c),a[n](k,c);try{u=null==a.frameElement&&h}catch(a){}u&&u.doScroll&&!function a(){if(!v){try{u.doScroll("left")}catch(b){return e(a,50)}d(),b()}}()}return f.version="1.4.0",f.isReady=function(){return v},f}a.exports="undefined"!=typeof window&&c(window)},function(a,b,c){var d=encodeURIComponent,e=decodeURIComponent,f=c(4),g=c(5),h=/(\w+)\[(\d+)\]/,i=/\w+\.\w+/;b.parse=function(a){if("string"!=typeof a)return{};if(a=f(a),""===a)return{};"?"===a.charAt(0)&&(a=a.slice(1));for(var b={},c=a.split("&"),d=0;d<c.length;d++){var g,j,k,l=c[d].split("="),m=e(l[0]);if(g=h.exec(m))b[g[1]]=b[g[1]]||[],b[g[1]][g[2]]=e(l[1]);else if(g=i.test(m)){for(g=m.split("."),j=b;g.length;)if(k=g.shift(),k.length){if(j[k]){if(j[k]&&"object"!=typeof j[k])break}else j[k]={};g.length||(j[k]=e(l[1])),j=j[k]}}else b[l[0]]=null==l[1]?"":e(l[1])}return b},b.stringify=function(a){if(!a)return"";var b=[];for(var c in a){var e=a[c];if("array"!=g(e))b.push(d(c)+"="+d(a[c]));else for(var f=0;f<e.length;++f)b.push(d(c+"["+f+"]")+"="+d(e[f]))}return b.join("&")}},function(a,b){function c(a){return a.replace(/^\s*|\s*$/g,"")}b=a.exports=c,b.left=function(a){return a.replace(/^\s*/,"")},b.right=function(a){return a.replace(/\s*$/,"")}},function(a,b){function c(a){return!(null==a||!(a._isBuffer||a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)))}var d=Object.prototype.toString;a.exports=function(a){switch(d.call(a)){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"}return null===a?"null":void 0===a?"undefined":a!==a?"nan":a&&1===a.nodeType?"element":c(a)?"buffer":(a=a.valueOf?a.valueOf():Object.prototype.valueOf.apply(a),typeof a)}},function(a,b){var c=function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}var c=1,d=function(a){c++,this.parent=null,this.children={},this.id=c,this.name="n"+c,"undefined"!=typeof a&&(this.name=a),this.x=this.y=this.z=0,this.width=this.height=0};d.prototype.resize=function(a,b){null!=a&&(this.width=a),null!=b&&(this.height=b)},d.prototype.moveTo=function(a,b,c){this.x=null!=a?a:this.x,this.y=null!=b?b:this.y,this.z=null!=c?c:this.z},d.prototype.add=function(a){var b=a.name;if("undefined"!=typeof this.children[b])throw"SceneGraph: child already exists: "+b;this.children[b]=a,a.parent=this};var e=function(){d.call(this,"root"),this.properties=a};e.prototype=new d;var f=function(a,c){if(d.call(this,a),this.properties={fill:"#000000"},"undefined"!=typeof c)b(this.properties,c);else if("undefined"!=typeof a&&"string"!=typeof a)throw"SceneGraph: invalid node name"};f.prototype=new d;var g=function(){f.apply(this,arguments),this.type="group"};g.prototype=new f;var h=function(){f.apply(this,arguments),this.type="rect"};h.prototype=new f;var i=function(a){f.call(this),this.type="text",this.properties.text=a};i.prototype=new f;var j=new e;return this.Shape={Rect:h,Text:i,Group:g},this.root=j,this};a.exports=c},function(a,b){(function(a){b.extend=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);if(null!=b)for(var e in b)b.hasOwnProperty(e)&&(c[e]=b[e]);return c},b.cssProps=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c+":"+a[c]);return b.join(";")},b.encodeHtmlEntity=function(a){for(var b=[],c=0,d=a.length-1;d>=0;d--)c=a.charCodeAt(d),c>128?b.unshift(["&#",c,";"].join("")):b.unshift(a[d]);return b.join("")},b.imageExists=function(a,b){var c=new Image;c.onerror=function(){b.call(this,!1)},c.onload=function(){b.call(this,!0)},c.src=a},b.decodeHtmlEntity=function(a){return a.replace(/&#(\d+);/g,function(a,b){return String.fromCharCode(b)})},b.dimensionCheck=function(a){var b={height:a.clientHeight,width:a.clientWidth};return!(!b.height||!b.width)&&b},b.truthy=function(a){return"string"==typeof a?"true"===a||"yes"===a||"1"===a||"on"===a||"✓"===a:!!a},b.parseColor=function(a){var b,c=/(^(?:#?)[0-9a-f]{6}$)|(^(?:#?)[0-9a-f]{3}$)/i,d=/^rgb\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,e=/^rgba\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0\.\d{1,}|1)\)$/,f=a.match(c);return null!==f?(b=f[1]||f[2],"#"!==b[0]?"#"+b:b):(f=a.match(d),null!==f?b="rgb("+f.slice(1).join(",")+")":(f=a.match(e),null!==f?b="rgba("+f.slice(1).join(",")+")":null))},b.canvasRatio=function(){var b=1,c=1;if(a.document){var d=a.document.createElement("canvas");if(d.getContext){var e=d.getContext("2d");b=a.devicePixelRatio||1,c=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1}}return b/c}}).call(b,function(){return this}())},function(a,b,c){(function(a){var d=c(9),e="http://www.w3.org/2000/svg",f=8;b.initSVG=function(a,b,c){var g,h,i=!1;a&&a.querySelector?(h=a.querySelector("style"),null===h&&(i=!0)):(a=d.newEl("svg",e),i=!0),i&&(g=d.newEl("defs",e),h=d.newEl("style",e),d.setAttr(h,{type:"text/css"}),g.appendChild(h),a.appendChild(g)),a.webkitMatchesSelector&&a.setAttribute("xmlns",e);for(var j=0;j<a.childNodes.length;j++)a.childNodes[j].nodeType===f&&a.removeChild(a.childNodes[j]);for(;h.childNodes.length;)h.removeChild(h.childNodes[0]);return d.setAttr(a,{width:b,height:c,viewBox:"0 0 "+b+" "+c,preserveAspectRatio:"none"}),a},b.svgStringToDataURI=function(){var b="data:image/svg+xml;charset=UTF-8,",c="data:image/svg+xml;charset=UTF-8;base64,";return function(d,e){return e?c+btoa(a.unescape(encodeURIComponent(d))):b+encodeURIComponent(d)}}(),b.serializeSVG=function(b,c){if(a.XMLSerializer){var e=new XMLSerializer,f="",g=c.stylesheets;if(c.svgXMLStylesheet){for(var h=d.createXML(),i=g.length-1;i>=0;i--){var j=h.createProcessingInstruction("xml-stylesheet",'href="'+g[i]+'" rel="stylesheet"');h.insertBefore(j,h.firstChild)}h.removeChild(h.documentElement),f=e.serializeToString(h)}var k=e.serializeToString(b);return k=k.replace(/\&amp;(\#[0-9]{2,}\;)/g,"&$1"),f+k}}}).call(b,function(){return this}())},function(a,b){(function(a){b.newEl=function(b,c){if(a.document)return null==c?a.document.createElement(b):a.document.createElementNS(c,b)},b.setAttr=function(a,b){for(var c in b)a.setAttribute(c,b[c])},b.createXML=function(){if(a.DOMParser)return(new DOMParser).parseFromString("<xml />","application/xml")},b.getNodeArray=function(b){var c=null;return"string"==typeof b?c=document.querySelectorAll(b):a.NodeList&&b instanceof a.NodeList?c=b:a.Node&&b instanceof a.Node?c=[b]:a.HTMLCollection&&b instanceof a.HTMLCollection?c=b:b instanceof Array?c=b:null===b&&(c=[]),c=Array.prototype.slice.call(c)}}).call(b,function(){return this}())},function(a,b){var c=function(a,b){"string"==typeof a&&(this.original=a,"#"===a.charAt(0)&&(a=a.slice(1)),/[^a-f0-9]+/i.test(a)||(3===a.length&&(a=a.replace(/./g,"$&$&")),6===a.length&&(this.alpha=1,b&&b.alpha&&(this.alpha=b.alpha),this.set(parseInt(a,16)))))};c.rgb2hex=function(a,b,c){function d(a){var b=(0|a).toString(16);return a<16&&(b="0"+b),b}return[a,b,c].map(d).join("")},c.hsl2rgb=function(a,b,c){var d=a/60,e=(1-Math.abs(2*c-1))*b,f=e*(1-Math.abs(parseInt(d)%2-1)),g=c-e/2,h=0,i=0,j=0;return d>=0&&d<1?(h=e,i=f):d>=1&&d<2?(h=f,i=e):d>=2&&d<3?(i=e,j=f):d>=3&&d<4?(i=f,j=e):d>=4&&d<5?(h=f,j=e):d>=5&&d<6&&(h=e,j=f),h+=g,i+=g,j+=g,h=parseInt(255*h),i=parseInt(255*i),j=parseInt(255*j),[h,i,j]},c.prototype.set=function(a){this.raw=a;var b=(16711680&this.raw)>>16,c=(65280&this.raw)>>8,d=255&this.raw,e=.2126*b+.7152*c+.0722*d,f=-.09991*b-.33609*c+.436*d,g=.615*b-.55861*c-.05639*d;return this.rgb={r:b,g:c,b:d},this.yuv={y:e,u:f,v:g},this},c.prototype.lighten=function(a){var b=Math.min(1,Math.max(0,Math.abs(a)))*(a<0?-1:1),d=255*b|0,e=Math.min(255,Math.max(0,this.rgb.r+d)),f=Math.min(255,Math.max(0,this.rgb.g+d)),g=Math.min(255,Math.max(0,this.rgb.b+d)),h=c.rgb2hex(e,f,g);return new c(h)},c.prototype.toHex=function(a){return(a?"#":"")+this.raw.toString(16)},c.prototype.lighterThan=function(a){return a instanceof c||(a=new c(a)),this.yuv.y>a.yuv.y},c.prototype.blendAlpha=function(a){a instanceof c||(a=new c(a));var b=a,d=this,e=b.alpha*b.rgb.r+(1-b.alpha)*d.rgb.r,f=b.alpha*b.rgb.g+(1-b.alpha)*d.rgb.g,g=b.alpha*b.rgb.b+(1-b.alpha)*d.rgb.b;return new c(c.rgb2hex(e,f,g))},a.exports=c},function(a,b){a.exports={version:"2.9.4",svg_ns:"http://www.w3.org/2000/svg"}},function(a,b,c){function d(a,b){return l.element({tag:b,width:a.width,height:a.height,fill:a.properties.fill})}function e(a){return j.cssProps({fill:a.fill,"font-weight":a.font.weight,"font-family":a.font.family+", monospace","font-size":a.font.size+a.font.units})}function f(a,b,c){var d=c/2;return["M",d,d,"H",a-d,"V",b-d,"H",d,"V",0,"M",0,d,"L",a,b-d,"M",0,b-d,"L",a,d].join(" ")}var g=c(13),h=c(8),i=c(11),j=c(7),k=i.svg_ns,l={element:function(a){var b=a.tag,c=a.content||"";return delete a.tag,delete a.content,[b,c,a]}};a.exports=function(a,b){var c=b.engineSettings,i=c.stylesheets,j=i.map(function(a){return'<?xml-stylesheet rel="stylesheet" href="'+a+'"?>'}).join("\n"),m="holder_"+Number(new Date).toString(16),n=a.root,o=n.children.holderTextGroup,p="#"+m+" text { "+e(o.properties)+" } ";o.y+=.8*o.textPositionData.boundingBox.height;var q=[];Object.keys(o.children).forEach(function(a){var b=o.children[a];Object.keys(b.children).forEach(function(a){var c=b.children[a],d=o.x+b.x+c.x,e=o.y+b.y+c.y,f=l.element({tag:"text",content:c.properties.text,x:d,y:e});q.push(f)})});var r=l.element({tag:"g",content:q}),s=null;if(n.children.holderBg.properties.outline){var t=n.children.holderBg.properties.outline;s=l.element({tag:"path",d:f(n.children.holderBg.width,n.children.holderBg.height,t.width),"stroke-width":t.width,stroke:t.fill,fill:"none"})}var u=d(n.children.holderBg,"rect"),v=[];v.push(u),t&&v.push(s),v.push(r);var w=l.element({tag:"g",id:m,content:v}),x=l.element({tag:"style",content:p,type:"text/css"}),y=l.element({tag:"defs",content:x}),z=l.element({tag:"svg",content:[y,w],width:n.properties.width,height:n.properties.height,xmlns:k,viewBox:[0,0,n.properties.width,n.properties.height].join(" "),preserveAspectRatio:"none"}),A=g(z);A=j+A[0];var B=h.svgStringToDataURI(A,"background"===b.mode);return B}},function(a,b,c){c(14),a.exports=function a(b,c,d){"use strict";function e(a){var b=a.match(/^[\w-]+/),c={tag:b?b[0]:"div",attr:{},children:[]},e=a.match(/#([\w-]+)/),f=a.match(/\$([\w-]+)/),g=a.match(/\.[\w-]+/g);return e&&(c.attr.id=e[1],d[e[1]]=c),f&&(d[f[1]]=c),g&&(c.attr.class=g.join(" ").replace(/\./g,"")),a.match(/&$/g)&&(n=!1),c}function f(a,b){if(null!==b&&b!==!1&&void 0!==b)return"string"!=typeof b&&"object"!=typeof b?String(b):b}function g(a){return a||0===a?String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;"):""}function h(a){return String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var i,j,k,l,m=1,n=!0;if(d=d||{},"string"==typeof b[0])b[0]=e(b[0]);else{if(!Array.isArray(b[0]))throw new Error("First element of array must be a string, or an array and not "+JSON.stringify(b[0]));m=0}for(;m<b.length;m++){if(b[m]===!1||null===b[m]){b[0]=!1;break}if(void 0!==b[m]&&b[m]!==!0)if("string"==typeof b[m])n&&(b[m]=h(b[m])),b[0].children.push(b[m]);else if("number"==typeof b[m])b[0].children.push(b[m]);else if(Array.isArray(b[m])){if(Array.isArray(b[m][0])){if(b[m].reverse().forEach(function(a){b.splice(m+1,0,a)}),0!==m)continue;m++}a(b[m],c,d),b[m][0]&&b[0].children.push(b[m][0])}else if("function"==typeof b[m])k=b[m];else{if("object"!=typeof b[m])throw new TypeError('"'+b[m]+'" is not allowed as a value.');for(j in b[m])b[m].hasOwnProperty(j)&&null!==b[m][j]&&b[m][j]!==!1&&("style"===j&&"object"==typeof b[m][j]?b[0].attr[j]=JSON.stringify(b[m][j],f).slice(2,-2).replace(/","/g,";").replace(/":"/g,":").replace(/\\"/g,"'"):b[0].attr[j]=b[m][j])}}if(b[0]!==!1){i="<"+b[0].tag;for(l in b[0].attr)b[0].attr.hasOwnProperty(l)&&(i+=" "+l+'="'+g(b[0].attr[l])+'"');i+=">",b[0].children.forEach(function(a){i+=a}),i+="</"+b[0].tag+">",b[0]=i}return d[0]=b[0],k&&k(b[0]),d}},function(a,b){"use strict";function c(a){var b=""+a,c=d.exec(b);if(!c)return b;var e,f="",g=0,h=0;for(g=c.index;g<b.length;g++){switch(b.charCodeAt(g)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#39;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}h!==g&&(f+=b.substring(h,g)),h=g+1,f+=e}return h!==g?f+b.substring(h,g):f}var d=/["'&<>]/;a.exports=c},function(a,b,c){var d=c(9),e=c(7);a.exports=function(){var a=d.newEl("canvas"),b=null;return function(c){null==b&&(b=a.getContext("2d"));var d=e.canvasRatio(),f=c.root;a.width=d*f.properties.width,a.height=d*f.properties.height,b.textBaseline="middle";var g=f.children.holderBg,h=d*g.width,i=d*g.height,j=2,k=j/2;b.fillStyle=g.properties.fill,b.fillRect(0,0,h,i),g.properties.outline&&(b.strokeStyle=g.properties.outline.fill,b.lineWidth=g.properties.outline.width,b.moveTo(k,k),b.lineTo(h-k,k),b.lineTo(h-k,i-k),b.lineTo(k,i-k),b.lineTo(k,k),b.moveTo(0,k),b.lineTo(h,i-k),b.moveTo(0,i-k),b.lineTo(h,k),b.stroke());var l=f.children.holderTextGroup;b.font=l.properties.font.weight+" "+d*l.properties.font.size+l.properties.font.units+" "+l.properties.font.family+", monospace",b.fillStyle=l.properties.fill;for(var m in l.children){var n=l.children[m];for(var o in n.children){var p=n.children[o],q=d*(l.x+n.x+p.x),r=d*(l.y+n.y+p.y+l.properties.leading/2);b.fillText(p.properties.text,q,r)}}return a.toDataURL("image/png")}}()}])}),function(a,b){b&&(Holder=a.Holder);
}(this,"undefined"!=typeof Meteor&&"undefined"!=typeof Package),/*!
* JavaScript for Bootstrap's docs (https://getbootstrap.com)
* Copyright 2011-2016 The Bootstrap Authors
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see https://creativecommons.org/licenses/by/3.0/.
*/
!function(a){"use strict";a(function(){a(".tooltip-demo").tooltip({selector:'[data-toggle="tooltip"]',container:"body"}),a('[data-toggle="popover"]').popover(),a(".tooltip-test").tooltip(),a(".popover-test").popover(),a('.bd-example-indeterminate [type="checkbox"]').prop("indeterminate",!0),a('.bd-example [href="#"]').click(function(a){a.preventDefault()}),a("#exampleModal").on("show.bs.modal",function(b){var c=a(b.relatedTarget),d=c.data("whatever"),e=a(this);e.find(".modal-title").text("New message to "+d),e.find(".modal-body input").val(d)}),a(".highlight").each(function(){var b='<div class="bd-clipboard"><span class="btn-clipboard" title="Copy to clipboard">Copy</span></div>';a(this).before(b),a(".btn-clipboard").tooltip()});var b=new Clipboard(".btn-clipboard",{target:function(a){return a.parentNode.nextElementSibling}});b.on("success",function(b){a(b.trigger).attr("title","Copied!").tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle"),b.clearSelection()}),b.on("error",function(b){var c=/Mac/i.test(navigator.userAgent)?"Press ⌘ to copy":"Press Ctrl-C to copy";a(b.trigger).attr("title",c).tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle")})})}(jQuery),function(){"use strict";anchors.options.placement="left",anchors.add(".bd-content > h1, .bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5")}();