diff --git a/hoosk/hoosk0/controllers/Hoosk_default.php b/hoosk/hoosk0/controllers/Hoosk_default.php index 025581f..3c1bd3e 100644 --- a/hoosk/hoosk0/controllers/Hoosk_default.php +++ b/hoosk/hoosk0/controllers/Hoosk_default.php @@ -12,8 +12,8 @@ function __construct() define ('THEME_FOLDER', BASE_URL.'/theme/'.THEME); $this->data['settings']=$this->Hoosk_page_model->getSettings(); } - - + + public function index() { $totSegments = $this->uri->total_segments(); @@ -32,7 +32,7 @@ public function index() $this->error(); } } - + public function category() { $catSlug = $this->uri->segment(2); @@ -45,7 +45,7 @@ public function category() $this->error(); } } - + public function article() { $articleURL = $this->uri->segment(2); @@ -58,16 +58,16 @@ public function article() $this->error(); } } - + public function error() { $this->data['page']['pageTitle']="Oops, Error"; $this->data['page']['pageDescription']="Oops, Error"; $this->data['page']['pageKeywords']="Oops, Error"; $this->data['page']['pageID']="0"; + $this->data['page']['pageTemplate']="error"; $this->data['header'] = $this->load->view('templates/header', $this->data, true); $this->data['footer'] = $this->load->view('templates/footer', '', true); - $this->load->view('templates/error', $this->data); + $this->load->view('templates/'.$this->data['page']['pageTemplate'], $this->data); } } - diff --git a/hoosk/hoosk0/third_party/Sioen/Types/ButtonConverter.php b/hoosk/hoosk0/third_party/Sioen/Types/ButtonConverter.php index cf75caa..c5c49d2 100644 --- a/hoosk/hoosk0/third_party/Sioen/Types/ButtonConverter.php +++ b/hoosk/hoosk0/third_party/Sioen/Types/ButtonConverter.php @@ -17,9 +17,11 @@ public function toJson(\DOMElement $node) public function toHtml(array $data) { - // echo "
"; - // print_r($data); - //die(); - return '' . $data['html'] . '' . "\n"; + if ($data['is_block']==1){ + $block=" btn-block"; + } else { + $block = ""; + } + return '' . $data['html'] . '' . "\n"; } } diff --git a/hoosk/hoosk0/third_party/Sioen/Types/HeadingConverter.php b/hoosk/hoosk0/third_party/Sioen/Types/HeadingConverter.php index 7946707..29db75a 100644 --- a/hoosk/hoosk0/third_party/Sioen/Types/HeadingConverter.php +++ b/hoosk/hoosk0/third_party/Sioen/Types/HeadingConverter.php @@ -19,6 +19,6 @@ public function toJson(\DOMElement $node) public function toHtml(array $data) { - return Markdown::defaultTransform('## ' . $data['text']); + return "<".$data['heading'].">".$data['text'] . "".$data['heading'].">"; } } diff --git a/theme/admin/js/trevor/sir-trevor.js b/theme/admin/js/trevor/sir-trevor.js index 0a553ea..220b609 100644 --- a/theme/admin/js/trevor/sir-trevor.js +++ b/theme/admin/js/trevor/sir-trevor.js @@ -118,12 +118,12 @@ pos2 = -1, after_len = after.length, before_len = before.length; - + for (var i = 0; i < after_len; i++) { if (pos1 == -1 && before.substr(i, 1) != after.substr(i, 1)) { pos1 = i - 1; } - + if (pos2 == -1 && before.substr(before_len - i - 1, 1) != after.substr(after_len - i - 1, 1) @@ -131,7 +131,7 @@ pos2 = i; } } - + return { result: after.substr(pos1, after_len - pos2 - pos1 + 1), pos1: pos1, @@ -144,64 +144,64 @@ -- Tweaked so we use the parent class of dropzone */ - + (function($){ function dragEnter(e) { e.preventDefault(); } - + function dragOver(e) { e.originalEvent.dataTransfer.dropEffect = "copy"; $(e.currentTarget).addClass('st-drag-over'); e.preventDefault(); } - + function dragLeave(e) { $(e.currentTarget).removeClass('st-drag-over'); e.preventDefault(); } - + $.fn.dropArea = function(){ this.bind("dragenter", dragEnter). bind("dragover", dragOver). bind("dragleave", dragLeave); return this; }; - + $.fn.noDropArea = function(){ this.unbind("dragenter"). unbind("dragover"). unbind("dragleave"); return this; }; - + $.fn.caretToEnd = function(){ var range,selection; - + range = document.createRange(); range.selectNodeContents(this[0]); range.collapse(false); - + selection = window.getSelection(); selection.removeAllRanges(); selection.addRange(range); - + return this; }; - + })(jQuery); /* - Backbone Inheritence + Backbone Inheritence -- From: https://github.com/documentcloud/backbone/blob/master/backbone.js Backbone.js 0.9.2 (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. */ - + var extend = function(protoProps, staticProps) { var parent = this; var child; - + // The constructor function for the new subclass is either defined by you // (the "constructor" property in your `extend` definition), or defaulted // by us to simply call the parent's constructor. @@ -210,30 +210,30 @@ } else { child = function(){ return parent.apply(this, arguments); }; } - + // Add static properties to the constructor function, if supplied. _.extend(child, parent, staticProps); - + // Set the prototype chain to inherit from `parent`, without calling // `parent`'s constructor function. var Surrogate = function(){ this.constructor = child; }; Surrogate.prototype = parent.prototype; child.prototype = new Surrogate; - + // Add prototype properties (instance properties) to the subclass, // if supplied. if (protoProps) _.extend(child.prototype, protoProps); - + // Set a convenience property in case the parent's prototype is needed // later. child.__super__ = parent.prototype; - + return child; }; /* * Ultra simple logging */ - + SirTrevor.log = function(message) { if (!_.isUndefined(console) && SirTrevor.DEBUG) { console.log(message); @@ -295,34 +295,34 @@ } } }; - + if (window.i18n === undefined || window.i18n.init === undefined) { // Minimal i18n stub that only reads the English strings SirTrevor.log("Using i18n stub"); window.i18n = { t: function(key, options) { var parts = key.split(':'), str, obj, part, i; - + obj = SirTrevor.Locales[SirTrevor.LANGUAGE]; - + for(i = 0; i < parts.length; i++) { part = parts[i]; - + if(!_.isUndefined(obj[part])) { obj = obj[part]; } } - + str = obj; - + if (!_.isString(str)) { return ""; } - + if (str.indexOf('__') >= 0) { _.each(options, function(value, opt) { str = str.replace('__' + opt + '__', value); }); } - + return str; } }; @@ -341,19 +341,19 @@ * By default we store the complete data on the instances $el * We can easily extend this and store it on some server or something */ - + SirTrevor.editorStore = function(editor, method, options) { var resp; - + options = options || {}; - + switch(method) { - + case "create": // Grab our JSON from the textarea and clean any whitespace incase there is a line wrap between the opening and closing textarea tags var content = _.trim(editor.$el.val()); editor.dataStore = { data: [] }; - + if (content.length > 0) { try { // Ensure the JSON string has a data element that's an array @@ -365,39 +365,39 @@ } catch(e) { editor.errors.push({ text: i18n.t("errors:load_fail") }); editor.renderErrors(); - + SirTrevor.log('Sorry there has been a problem with parsing the JSON'); SirTrevor.log(e); } } break; - + case "reset": editor.dataStore = { data: [] }; break; - + case "add": if (options.data) { editor.dataStore.data.push(options.data); resp = editor.dataStore; } break; - + case "save": // Store to our element editor.$el.val((editor.dataStore.data.length > 0) ? JSON.stringify(editor.dataStore) : ''); break; - + case "read": resp = editor.dataStore; break; - + } - + if(resp) { return resp; } - + }; /* SirTrevor.Submittable @@ -407,77 +407,77 @@ We also need this to be highly extensible so it can be overridden. This will be triggered *by anything* so it needs to subscribe to events. */ - + SirTrevor.Submittable = function($form){ this.$form = $form; this.intialize(); }; - + _.extend(SirTrevor.Submittable.prototype, { - + intialize: function(){ this.$submitBtn = this.$form.find("input[type='submit']"); - + var btnTitles = []; - + _.each(this.$submitBtn, function(btn){ btnTitles.push($(btn).attr('value')); }); - + this.submitBtnTitles = btnTitles; this.canSubmit = true; this.globalUploadCount = 0; this._bindEvents(); }, - + setSubmitButton: function(e, message) { this.$submitBtn.attr('value', message); }, - + resetSubmitButton: function(){ _.each(this.$submitBtn, function(item, index){ $(item).attr('value', this.submitBtnTitles[index]); }, this); }, - + onUploadStart: function(e){ this.globalUploadCount++; SirTrevor.log('onUploadStart called ' + this.globalUploadCount); - + if(this.globalUploadCount === 1) { this._disableSubmitButton(); } }, - + onUploadStop: function(e) { this.globalUploadCount = (this.globalUploadCount <= 0) ? 0 : this.globalUploadCount - 1; - + SirTrevor.log('onUploadStop called ' + this.globalUploadCount); - + if(this.globalUploadCount === 0) { this._enableSubmitButton(); } }, - + onError: function(e){ SirTrevor.log('onError called'); this.canSubmit = false; }, - + _disableSubmitButton: function(message){ this.setSubmitButton(null, message || i18n.t("general:wait")); this.$submitBtn .attr('disabled', 'disabled') .addClass('disabled'); }, - + _enableSubmitButton: function(){ this.resetSubmitButton(); this.$submitBtn .removeAttr('disabled') .removeClass('disabled'); }, - + _events : { "disableSubmitButton" : "_disableSubmitButton", "enableSubmitButton" : "_enableSubmitButton", @@ -487,46 +487,46 @@ "onUploadStart" : "onUploadStart", "onUploadStop" : "onUploadStop" }, - + _bindEvents: function(){ _.forEach(this._events, function(callback, type) { SirTrevor.EventBus.on(type, this[callback], this); }, this); } - + }); /* * Sir Trevor Uploader * Generic Upload implementation that can be extended for blocks */ - + SirTrevor.fileUploader = function(block, file, success, error) { - + var uid = [block.blockID, (new Date()).getTime(), 'raw'].join('-'); var data = new FormData(); - + data.append('attachment[name]', file.name); data.append('attachment[file]', file); data.append('attachment[uid]', uid); - + block.resetMessages(); - + var callbackSuccess = function(data){ SirTrevor.log('Upload callback called'); - + if (!_.isUndefined(success) && _.isFunction(success)) { _.bind(success, block)(data); } }; - + var callbackError = function(jqXHR, status, errorThrown){ SirTrevor.log('Upload callback error called'); - + if (!_.isUndefined(error) && _.isFunction(error)) { _.bind(error, block)(status); } }; - + var xhr = $.ajax({ url: SirTrevor.DEFAULTS.uploadUrl, data: data, @@ -536,57 +536,57 @@ dataType: 'json', type: 'POST' }); - + block.addQueuedItem(uid, xhr); - + xhr.done(callbackSuccess) .fail(callbackError) .always(_.bind(block.removeQueuedItem, block, uid)); - + return xhr; }; /* Underscore helpers */ - + var url_regex = /^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/; - + _.mixin({ isURI : function(string) { return (url_regex.test(string)); }, - + titleize: function(str){ if (str === null) return ''; str = String(str).toLowerCase(); return str.replace(/(?:^|\s|-)\S/g, function(c){ return c.toUpperCase(); }); }, - + classify: function(str){ return _.titleize(String(str).replace(/[\W_]/g, ' ')).replace(/\s/g, ''); }, - + classifyList: function(a){ return _.map(a, function(i){ return _.classify(i); }); }, - + capitalize : function(string) { return string.charAt(0).toUpperCase() + string.substring(1).toLowerCase(); }, - + underscored: function(str){ return _.trim(str).replace(/([a-z\d])([A-Z]+)/g, '$1_$2') .replace(/[-\s]+/g, '_').toLowerCase(); }, - + trim : function(string) { return string.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); }, - + reverse: function(str) { return str.split("").reverse().join(""); }, - + flattern: function(obj) { var x = {}; _.each(obj, function(a,b) { @@ -594,33 +594,33 @@ }); return x; }, - + to_slug: function(str) { return str .toLowerCase() .replace(/[^\w ]+/g,'') .replace(/ +/g,'-'); } - + }); - + SirTrevor.toHTML = function(markdown, type) { // MD -> HTML type = _.classify(type); - + var html = markdown, shouldWrap = type === "Text"; - + if(_.isUndefined(shouldWrap)) { shouldWrap = false; } - + if (shouldWrap) { html = "" + html; } - + html = html.replace(/\[([^\]]+)\]\(([^\)]+)\)/gm,function(match, p1, p2){ return ""+p1.replace(/\r?\n/g, '')+""; }); - + // This may seem crazy, but because JS doesn't have a look behind, // we reverse the string to regex out the italic items (and bold) // and look for something that doesn't start (or end in the reversed strings case) @@ -634,9 +634,9 @@ return ">b/<"+ p1.replace(/\r?\n/g, '').replace(/[\s]+$/,'') +">b<"; }) ); - + html = html.replace(/^\> (.+)$/mg,"$1"); - + // Use custom formatters toHTML functions (if any exist) var formatName, format; for(formatName in SirTrevor.Formatters) { @@ -648,7 +648,7 @@ } } } - + // Use custom block toHTML functions (if any exist) var block; if (SirTrevor.Blocks.hasOwnProperty(type)) { @@ -658,17 +658,17 @@ html = block.prototype.toHTML(html); } } - + if (shouldWrap) { html = html.replace(/\r?\n\r?\n/gm, ""); html = html.replace(/\r?\n/gm, ""); } - + html = html.replace(/\t/g, " ") .replace(/\r?\n/g, ""; } - + return html; }; SirTrevor.toMarkdown = function(content, type) { type = _.classify(type); - + var markdown = content; - + //Normalise whitespace markdown = markdown.replace(/ /g," "); - + // First of all, strip any additional formatting // MSWord, I'm looking at you, punk. markdown = markdown.replace(/( class=(")?Mso[a-zA-Z]+(")?)/g, '') .replace(//g, '') .replace(/\/\*(.*?)\*\//g, '') .replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi, ''); - + var badTags = ['style', 'script', 'applet', 'embed', 'noframes', 'noscript'], tagStripper, i; - + for (i = 0; i< badTags.length; i++) { tagStripper = new RegExp('<'+badTags[i]+'.*?'+badTags[i]+'(.*?)>', 'gi'); markdown = markdown.replace(tagStripper, ''); } - + // Escape anything in here that *could* be considered as MD // Markdown chars we care about: * [] _ () - markdown = markdown.replace(/\*/g, "\\*") @@ -716,24 +716,24 @@ .replace(/\(/g, "\\(") .replace(/\)/g, "\\)") .replace(/\-/g, "\\-"); - + var inlineTags = ["em", "i", "strong", "b"]; - + for (i = 0; i< inlineTags.length; i++) { tagStripper = new RegExp('<'+inlineTags[i]+'>
") .replace(/\*\*/, "") .replace(/__/, ""); // Cleanup any markdown characters left - + // Replace escaped html = html.replace(/\\\*/g, "*") .replace(/\\\[/g, "[") @@ -677,36 +677,36 @@ .replace(/\\\(/g, "(") .replace(/\\\)/g, ")") .replace(/\\\-/g, "-"); - + if (shouldWrap) { html += "
'+inlineTags[i]+'>', 'gi'); markdown = markdown.replace(tagStripper, '
'); } - + function replaceBolds(match, p1, p2){ if(_.isUndefined(p2)) { p2 = ''; } return "**" + p1.replace(/<(.)?br(.)?>/g, '') + "**" + p2; } - + function replaceItalics(match, p1, p2){ if(_.isUndefined(p2)) { p2 = ''; } return "_" + p1.replace(/<(.)?br(.)?>/g, '') + "_" + p2; } - + markdown = markdown.replace(/<(\w+)(?:\s+\w+="[^"]+(?:"\$[^"]+"[^"]+)?")*>\s*<\/\1>/gim, '') //Empty elements .replace(/\n/mg,"") .replace(/(.*?)<\/a>/gim, function(match, p1, p2){ @@ -743,8 +743,8 @@ .replace(/(?:\s*)(.*?)(\s*)?<\/b>/gim, replaceBolds) .replace(/(?:\s*)(.*?)(\s*)?<\/em>/gim, replaceItalics) .replace(/(?:\s*)(.*?)(\s*)?<\/i>/gim, replaceItalics); - - + + // Use custom formatters toMarkdown functions (if any exist) var formatName, format; for(formatName in SirTrevor.Formatters) { @@ -756,7 +756,7 @@ } } } - + // Do our generic stripping out markdown = markdown.replace(/([^<>]+)( )/g,"$1\n$2") // Divitis style line breaks (handle the first line) .replace(//g,'\n') // ^ (double opening divs with one close from Chrome) @@ -765,7 +765,7 @@ .replace(/<\/p>/g,"\n\n") // P tags as line breaks .replace(/<(.)?br(.)?>/g,"\n") // Convert normal line breaks .replace(/</g,"<").replace(/>/g,">"); // Encoding - + // Use custom block toMarkdown functions (if any exist) var block; if (SirTrevor.Blocks.hasOwnProperty(type)) { @@ -775,10 +775,10 @@ markdown = block.prototype.toMarkdown(markdown); } } - + // Strip remaining HTML markdown = markdown.replace(/<\/?[^>]+(>|$)/g, ""); - + return markdown; }; @@ -786,45 +786,45 @@ /* Block Mixins */ SirTrevor.BlockMixins.Ajaxable = { - + mixinName: "Ajaxable", - + ajaxable: true, - + initializeAjaxable: function(){ this._queued = []; }, - + addQueuedItem: function(name, deffered) { SirTrevor.log("Adding queued item for " + this.blockID + " called " + name); SirTrevor.EventBus.trigger("onUploadStart"); - + this._queued.push({ name: name, deffered: deffered }); }, - + removeQueuedItem: function(name) { SirTrevor.log("Removing queued item for " + this.blockID + " called " + name); SirTrevor.EventBus.trigger("onUploadStop"); - + this._queued = _.reject(this._queued, function(queued){ return queued.name == name; }); }, - + hasItemsInQueue: function() { return this._queued.length > 0; }, - + resolveAllInQueue: function() { _.each(this._queued, function(item){ SirTrevor.log("Aborting queued request: " + item.name); item.deffered.abort(); }, this); } - + }; SirTrevor.BlockMixins.Controllable = { - + mixinName: "Controllable", - + initializeControllable: function() { SirTrevor.log("Adding controllable to block " + this.blockID); this.$control_ui = $('', {'class': 'st-block__control-ui'}); @@ -838,171 +838,171 @@ ); this.$inner.append(this.$control_ui); }, - + getControlTemplate: function(cmd) { return $("", { 'data-icon': cmd, 'class': 'st-icon st-block-control-ui-btn st-block-control-ui-btn--' + cmd }); }, - + addUiControl: function(cmd, handler) { this.$control_ui.append(this.getControlTemplate(cmd)); this.$control_ui.on('click', '.st-block-control-ui-btn--' + cmd, handler); } }; /* Adds drop functionaltiy to this block */ - + SirTrevor.BlockMixins.Droppable = { - + mixinName: "Droppable", valid_drop_file_types: ['File', 'Files', 'text/plain', 'text/uri-list'], - + initializeDroppable: function() { SirTrevor.log("Adding droppable to block " + this.blockID); - + this.drop_options = _.extend({}, SirTrevor.DEFAULTS.Block.drop_options, this.drop_options); - + var drop_html = $(_.template(this.drop_options.html, { block: this })); - + this.$editor.hide(); this.$inputs.append(drop_html); this.$dropzone = drop_html; - + // Bind our drop event this.$dropzone.dropArea() .bind('drop', _.bind(this._handleDrop, this)); - + this.$inner.addClass('st-block__inner--droppable'); }, - + _handleDrop: function(e) { e.preventDefault(); - + e = e.originalEvent; - + var el = $(e.target), types = e.dataTransfer.types, type, data = []; - + el.removeClass('st-dropzone--dragover'); - + /* Check the type we just received, delegate it away to our blockTypes to process */ - + if (!_.isUndefined(types) && _.some(types, function(type){ return _.include(this.valid_drop_file_types, type); }, this)) { this.onDrop(e.dataTransfer); } - + SirTrevor.EventBus.trigger('block:content:dropped'); } - + }; SirTrevor.BlockMixins.Fetchable = { - + mixinName: "Fetchable", - + initializeFetchable: function(){ this.withMixin(SirTrevor.BlockMixins.Ajaxable); }, - + fetch: function(options, success, failure){ var uid = _.uniqueId(this.blockID + "_fetch"), xhr = $.ajax(options); - + this.resetMessages(); this.addQueuedItem(uid, xhr); - + if(!_.isUndefined(success)) { xhr.done(_.bind(success, this)); } - + if(!_.isUndefined(failure)) { xhr.fail(_.bind(failure, this)); } - + xhr.always(_.bind(this.removeQueuedItem, this, uid)); - + return xhr; } - + }; SirTrevor.BlockMixins.Pastable = { - + mixinName: "Pastable", - + initializePastable: function() { SirTrevor.log("Adding pastable to block " + this.blockID); - + this.paste_options = _.extend({}, SirTrevor.DEFAULTS.Block.paste_options, this.paste_options); this.$inputs.append(_.template(this.paste_options.html, this)); - + this.$('.st-paste-block') .bind('click', function(){ $(this).select(); }) .bind('paste', this._handleContentPaste) .bind('submit', this._handleContentPaste); } - + }; SirTrevor.BlockMixins.Uploadable = { - + mixinName: "Uploadable", - + uploadsCount: 0, - + initializeUploadable: function() { SirTrevor.log("Adding uploadable to block " + this.blockID); this.withMixin(SirTrevor.BlockMixins.Ajaxable); - + this.upload_options = _.extend({}, SirTrevor.DEFAULTS.Block.upload_options, this.upload_options); this.$inputs.append(_.template(this.upload_options.html, this)); }, - + uploader: function(file, success, failure){ return SirTrevor.fileUploader(this, file, success, failure); } - + }; SirTrevor.BlockPositioner = (function(){ - + var template = [ "", "", "", "" ].join("\n"); - + var BlockPositioner = function(block_element, instance_id) { this.$block = block_element; this.instanceID = instance_id; this.total_blocks = 0; - + this._ensureElement(); this._bindFunctions(); - + this.initialize(); }; - + _.extend(BlockPositioner.prototype, FunctionBind, Renderable, { - + bound: ['onBlockCountChange', 'onSelectChange', 'toggle', 'show', 'hide'], - + className: 'st-block-positioner', visibleClass: 'st-block-positioner--is-visible', - + initialize: function(){ this.$el.append(template); this.$select = this.$('.st-block-positioner__select'); - + this.$select.on('change', this.onSelectChange); - + SirTrevor.EventBus.on(this.instanceID + ":blocks:count_update", this.onBlockCountChange); }, - + onBlockCountChange: function(new_count) { // count only siblings blocks new_count = this.$block.siblings('.st-block').length + 1; @@ -1011,7 +1011,7 @@ this.renderPositionList(); } }, - + onSelectChange: function() { var val = this.$select.val(); if (val !== 0) { @@ -1020,7 +1020,7 @@ this.toggle(); } }, - + renderPositionList: function() { var inner = ""; for(var i = 1; i <= this.total_blocks; i++) { @@ -1028,43 +1028,43 @@ } this.$select.html(inner); }, - + toggle: function() { this.$select.val(0); this.$el.toggleClass(this.visibleClass); }, - + show: function(){ this.$el.addClass(this.visibleClass); }, - + hide: function(){ this.$el.removeClass(this.visibleClass); } - + }); - + return BlockPositioner; - + })(); SirTrevor.BlockReorder = (function(){ - + var BlockReorder = function(block_element) { this.$block = block_element; - + this._ensureElement(); this._bindFunctions(); - + this.initialize(); }; - + _.extend(BlockReorder.prototype, FunctionBind, Renderable, { - + bound: ['onMouseDown', 'onClick', 'onDragStart', 'onDragEnd', 'onDrag', 'onDrop'], - + className: 'st-block-ui-btn st-block-ui-btn--reorder st-icon', tagName: 'a', - + attributes: function() { return { 'html': 'reorder', @@ -1072,29 +1072,29 @@ 'data-icon': 'move' }; }, - + initialize: function() { this.$el.bind('mousedown touchstart', this.onMouseDown) .bind('click', this.onClick) .bind('dragstart', this.onDragStart) .bind('dragend touchend', this.onDragEnd) .bind('drag touchmove', this.onDrag); - + this.$block.dropArea() .bind('drop', this.onDrop); }, - + onMouseDown: function() { SirTrevor.EventBus.trigger("block:reorder:down"); }, - + onDrop: function(ev) { ev.preventDefault(); ev.stopPropagation(); // to prevent event handling on outer blocks - + var dropped_on = this.$block, item_id = ev.originalEvent.dataTransfer.getData("text/plain"); - + if (!_.isUndefined(item_id) && item_id.substr(0,9) == 'st-block-') { var block = $('#' + item_id); if (!_.isEmpty(block) && @@ -1107,216 +1107,216 @@ SirTrevor.EventBus.trigger("block:reorder:dropped", item_id); } }, - + onDragStart: function(ev) { var btn = $(ev.currentTarget).parent(); - + ev.originalEvent.dataTransfer.setDragImage(this.$block[0], btn.position().left, btn.position().top); ev.originalEvent.dataTransfer.setData('Text', this.$block.attr('id')); - + SirTrevor.EventBus.trigger("block:reorder:dragstart"); this.$block.addClass('st-block--dragging'); }, - + onDragEnd: function(ev) { SirTrevor.EventBus.trigger("block:reorder:dragend"); this.$block.removeClass('st-block--dragging'); }, - + onDrag: function(ev){}, - + onClick: function() { }, - + render: function() { return this; } - + }); - + return BlockReorder; - + })(); SirTrevor.BlockDeletion = (function(){ - + var BlockDeletion = function() { this._ensureElement(); this._bindFunctions(); }; - + _.extend(BlockDeletion.prototype, FunctionBind, Renderable, { - + tagName: 'a', className: 'st-block-ui-btn st-block-ui-btn--delete st-icon', - + attributes: { html: 'delete', 'data-icon': 'bin' } - + }); - + return BlockDeletion; - + })(); var bestNameFromField = function(field) { var msg = field.attr("data-st-name") || field.attr("name"); - + if (!msg) { msg = 'Field'; } - + return _.capitalize(msg); }; - + SirTrevor.BlockValidations = { - + errors: [], - + valid: function(){ this.performValidations(); return this.errors.length === 0; }, - + // This method actually does the leg work // of running our validators and custom validators performValidations: function() { this.resetErrors(); - + var required_fields = this.$('.st-required'); _.each(required_fields, this.validateField, this); _.each(this.validations, this.runValidator, this); - + this.$el.toggleClass('st-block--with-errors', this.errors.length > 0); }, - + // Everything in here should be a function that returns true or false validations: [], - + validateField: function(field) { field = $(field); - + var content = field.attr('contenteditable') ? field.text() : field.val(); - + if (content.length === 0) { this.setError(field, i18n.t("errors:block_empty", { name: bestNameFromField(field) })); } }, - + runValidator: function(validator) { if (!_.isUndefined(this[validator])) { this[validator].call(this); } }, - + setError: function(field, reason) { var $msg = this.addMessage(reason, "st-msg--error"); field.addClass('st-error'); - + this.errors.push({ field: field, reason: reason, msg: $msg }); }, - + resetErrors: function() { _.each(this.errors, function(error){ error.field.removeClass('st-error'); error.msg.remove(); }); - + this.$messages.removeClass("st-block__messages--is-visible"); this.errors = []; } - + }; SirTrevor.BlockStore = { - + blockStorage: {}, - + createStore: function(blockData) { this.blockStorage = { type: _.underscored(this.type), data: blockData || {} }; }, - + save: function() { this.toData(); }, - + saveAndReturnData: function() { this.save(); return this.blockStorage; }, - + saveAndGetData: function() { var store = this.saveAndReturnData(); return store.data || store; }, - + getData: function() { return this.blockStorage.data; }, - + setData: function(blockData) { SirTrevor.log("Setting data for block " + this.blockID); _.extend(this.blockStorage.data, blockData || {}); }, - + setAndRetrieveData: function(blockData) { this.setData(blockData); return this.getData(); }, - + setAndLoadData: function(blockData) { this.setData(blockData); this.beforeLoadingData(); }, - + toData: function() {}, loadData: function() {}, - + beforeLoadingData: function() { SirTrevor.log("loadData for " + this.blockID); SirTrevor.EventBus.trigger("editor/block/loadData"); this.loadData(this.getData()); }, - + _loadData: function() { SirTrevor.log("_loadData is deprecated and will be removed in the future. Please use beforeLoadingData instead."); this.beforeLoadingData(); }, - + checkAndLoadData: function() { if (!_.isEmpty(this.getData())) { this.beforeLoadingData(); } } - + }; SirTrevor.SimpleBlock = (function(){ - + var SimpleBlock = function(data, instance_id, sirTrevor) { this.createStore(data); this.blockID = _.uniqueId('st-block-'); this.instanceID = instance_id; this.sirTrevor = sirTrevor; - + this._ensureElement(); this._bindFunctions(); - + this.initialize.apply(this, arguments); }; - + _.extend(SimpleBlock.prototype, FunctionBind, SirTrevor.Events, Renderable, SirTrevor.BlockStore, { - + focus : function() {}, - + valid : function() { return true; }, - + className: 'st-block', - + block_template: _.template( "<%= editor_html %>" ), - + attributes: function() { return { 'id': this.blockID, @@ -1324,109 +1324,109 @@ 'data-instance': this.instanceID }; }, - + title: function() { return _.titleize(this.type.replace(/[\W_]/g, ' ')); }, - + blockCSSClass: function() { this.blockCSSClass = _.to_slug(this.type); return this.blockCSSClass; }, - + type: '', - + 'class': function() { return _.classify(this.type); }, - + editorHTML: '', - + initialize: function() {}, - + onBlockRender: function(){}, beforeBlockRender: function(){}, - + _setBlockInner : function() { var editor_html = _.result(this, 'editorHTML'); - + this.$el.append( this.block_template({ editor_html: editor_html }) ); - + this.$inner = this.$el.find('.st-block__inner'); this.$inner.bind('click mouseover', function(e){ e.stopPropagation(); }); }, - + render: function() { this.beforeBlockRender(); - + this._setBlockInner(); this._blockPrepare(); - + return this; }, - + _blockPrepare : function() { this._initUI(); this._initMessages(); - + this.checkAndLoadData(); - + this.$el.addClass('st-item-ready'); this.on("onRender", this.onBlockRender); this.save(); }, - + _withUIComponent: function(component, className, callback) { this.$ui.append(component.render().$el); (className && callback) && this.$ui.on('click', className, callback); }, - + _initUI : function() { var ui_element = $("", { 'class': 'st-block__ui' }); this.$inner.append(ui_element); this.$ui = ui_element; this._initUIComponents(); }, - + _initMessages: function() { var msgs_element = $("", { 'class': 'st-block__messages' }); this.$inner.prepend(msgs_element); this.$messages = msgs_element; }, - + addMessage: function(msg, additionalClass) { var $msg = $("", { html: msg, 'class': "st-msg " + additionalClass }); this.$messages.append($msg) .addClass('st-block__messages--is-visible'); return $msg; }, - + resetMessages: function() { this.$messages.html('') .removeClass('st-block__messages--is-visible'); }, - + _initUIComponents: function() { this._withUIComponent(new SirTrevor.BlockReorder(this.$el)); } - + }); - + SimpleBlock.fn = SimpleBlock.prototype; - + SimpleBlock.extend = extend; // Allow our Block to be extended. - + return SimpleBlock; - + })(); SirTrevor.Block = (function(){ - + var Block = function(data, instance_id, sirTrevor) { SirTrevor.SimpleBlock.apply(this, arguments); }; - + var delete_template = [ "", "" ].join("\n"); - + var drop_options = { html: ['', ''].join('\n'), re_render_on_reorder: false }; - + var paste_options = { html: ['"', ' class="st-block__paste-input st-paste-block">'].join('') }; - + var upload_options = { html: [ ' ', @@ -1444,12 +1444,12 @@ '', @@ -1458,109 +1458,109 @@ '' ].join('\n') }; - + SirTrevor.DEFAULTS.Block = { drop_options: drop_options, paste_options: paste_options, upload_options: upload_options }; - + _.extend(Block.prototype, SirTrevor.SimpleBlock.fn, SirTrevor.BlockValidations, { - + bound: ["_handleContentPaste", "_onFocus", "_onBlur", "onDrop", "onDeleteClick", "clearInsertedStyles", "getSelectionForFormatter", "onBlockRender"], - + className: 'st-block st-icon--add', - + attributes: function() { return _.extend(SirTrevor.SimpleBlock.fn.attributes.call(this), { 'data-icon-after' : "add" }); }, - + icon_name: 'default', - + validationFailMsg: function() { return i18n.t('errors:validation_fail', { type: _.result(this,'title') }); }, - + editorHTML: '', - + toolbarEnabled: true, - + droppable: false, pastable: false, uploadable: false, fetchable: false, ajaxable: false, - + drop_options: {}, paste_options: {}, upload_options: {}, - + formattable: true, - + _previousSelection: '', - + initialize: function() {}, - + toMarkdown: function(markdown){ return markdown; }, toHTML: function(html){ return html; }, - + withMixin: function(mixin) { if (!_.isObject(mixin)) { return; } - + var initializeMethod = "initialize" + mixin.mixinName; - + if (_.isUndefined(this[initializeMethod])) { _.extend(this, mixin); this[initializeMethod](); } }, - + render: function() { this.beforeBlockRender(); this._setBlockInner(); - + this.$editor = this.$inner.children().first(); - + if(this.droppable || this.pastable || this.uploadable) { var input_html = $("", { 'class': 'st-block__inputs' }); this.$inner.append(input_html); this.$inputs = input_html; } - + if (this.hasTextBlock) { this._initTextBlocks(); } if (this.droppable) { this.withMixin(SirTrevor.BlockMixins.Droppable); } if (this.pastable) { this.withMixin(SirTrevor.BlockMixins.Pastable); } if (this.uploadable) { this.withMixin(SirTrevor.BlockMixins.Uploadable); } if (this.fetchable) { this.withMixin(SirTrevor.BlockMixins.Fetchable); } if (this.controllable) { this.withMixin(SirTrevor.BlockMixins.Controllable); } - + if (this.formattable) { this._initFormatting(); } - + this._blockPrepare(); - + return this; }, - + remove: function() { if (this.ajaxable) { this.resolveAllInQueue(); } - + this.$el.remove(); }, - + loading: function() { if(!_.isUndefined(this.spinner)) { this.ready(); } - + this.spinner = new Spinner(SirTrevor.DEFAULTS.spinner); this.spinner.spin(this.$el[0]); - + this.$el.addClass('st--is-loading'); }, - + ready: function() { this.$el.removeClass('st--is-loading'); if (!_.isUndefined(this.spinner)) { @@ -1568,17 +1568,17 @@ delete this.spinner; } }, - + /* Generic toData implementation. Can be overwritten, although hopefully this will cover most situations */ toData: function() { SirTrevor.log("toData for " + this.blockID); - + var bl = this.$el, dataObj = {}; - + /* Simple to start. Add conditions later */ if (this.hasTextBlock()) { var content = this.getTextBlock().html(); @@ -1586,7 +1586,7 @@ dataObj.text = SirTrevor.toMarkdown(content, this.type); } } - + // Add any inputs to the data attr if(this.$(':input').not('.st-paste-block').length > 0) { this.$(':input').each(function(index,input){ @@ -1595,128 +1595,128 @@ } }); } - + // Set if(!_.isEmpty(dataObj)) { this.setData(dataObj); } }, - + /* Generic implementation to tell us when the block is active */ focus: function() { this.getTextBlock().focus(); }, - + blur: function() { this.getTextBlock().blur(); }, - + onFocus: function() { this.getTextBlock().bind('focus', this._onFocus); }, - + onBlur: function() { this.getTextBlock().bind('blur', this._onBlur); }, - + /* * Event handlers */ - + _onFocus: function() { this.trigger('blockFocus', this.$el); }, - + _onBlur: function() {}, - + onDrop: function(dataTransferObj) {}, - + onDeleteClick: function(ev) { ev.preventDefault(); - + var onDeleteConfirm = function(e) { e.preventDefault(); this.trigger('removeBlock', this.blockID); }; - + var onDeleteDeny = function(e) { e.preventDefault(); this.$el.removeClass('st-block--delete-active'); $delete_el.remove(); }; - + if (this.isEmpty()) { onDeleteConfirm.call(this, new Event('click')); return; } - + this.$inner.append(_.template(delete_template)); this.$el.addClass('st-block--delete-active'); - + var $delete_el = this.$inner.find('.st-block__ui-delete-controls'); - + this.$inner.on('click', '.st-block-ui-btn--confirm-delete', _.bind(onDeleteConfirm, this)) .on('click', '.st-block-ui-btn--deny-delete', _.bind(onDeleteDeny, this)); }, - + pastedMarkdownToHTML: function(content) { return SirTrevor.toHTML(SirTrevor.toMarkdown(content, this.type), this.type); }, - + onContentPasted: function(event, target){ target.html(this.pastedMarkdownToHTML(target[0].innerHTML)); this.getTextBlock().caretToEnd(); }, - + beforeLoadingData: function() { this.loading(); - + if(this.droppable || this.uploadable || this.pastable) { this.$editor.show(); this.$inputs.hide(); } - + SirTrevor.SimpleBlock.fn.beforeLoadingData.call(this); - + this.ready(); }, - + _handleContentPaste: function(ev) { var target = $(ev.currentTarget); - + _.delay(_.bind(this.onContentPasted, this, ev, target), 0); }, - + _getBlockClass: function() { return 'st-block--' + this.className; }, - + /* * Init functions for adding functionality */ - + _initUIComponents: function() { - + var positioner = new SirTrevor.BlockPositioner(this.$el, this.instanceID); - + this._withUIComponent( positioner, '.st-block-ui-btn--reorder', positioner.toggle ); - + this._withUIComponent( new SirTrevor.BlockReorder(this.$el) ); - + this._withUIComponent( new SirTrevor.BlockDeletion(), '.st-block-ui-btn--delete', this.onDeleteClick ); - + this.onFocus(); this.onBlur(); }, - + _initFormatting: function() { // Enable formatting keyboard input var formatter; @@ -1729,7 +1729,7 @@ } } }, - + _initTextBlocks: function() { this.getTextBlock() .bind('paste', this._handleContentPaste) @@ -1737,12 +1737,12 @@ .bind('mouseup', this.getSelectionForFormatter) .bind('DOMNodeInserted', this.clearInsertedStyles); }, - + getSelectionForFormatter: function() { _.defer(function(){ var selection = window.getSelection(), selectionStr = selection.toString().trim(); - + if (selectionStr === '') { SirTrevor.EventBus.trigger('formatter:hide'); } else { @@ -1750,58 +1750,58 @@ } }); }, - + clearInsertedStyles: function(e) { var target = e.target; target.removeAttribute('style'); // Hacky fix for Chrome. }, - + hasTextBlock: function() { return this.getTextBlock().length > 0; }, - + getTextBlock: function() { if (_.isUndefined(this.text_block)) { this.text_block = this.$('.st-text-block'); } - + return this.text_block; }, - + isEmpty: function() { return _.isEmpty(this.saveAndGetData()); } - + }); - + Block.extend = extend; // Allow our Block to be extended. - + return Block; - + })(); SirTrevor.Formatter = (function(){ - + var Format = function(options){ this.formatId = _.uniqueId('format-'); this._configure(options || {}); this.initialize.apply(this, arguments); }; - + var formatOptions = ["title", "className", "cmd", "keyCode", "param", "onClick", "toMarkdown", "toHTML"]; - + _.extend(Format.prototype, { - + title: '', className: '', cmd: null, keyCode: null, param: null, - + toMarkdown: function(markdown){ return markdown; }, toHTML: function(html){ return html; }, - + initialize: function(){}, - + _configure: function(options) { if (this.options) options = _.extend({}, this.options, options); for (var i = 0, l = formatOptions.length; i < l; i++) { @@ -1810,15 +1810,15 @@ } this.options = options; }, - + isActive: function() { return document.queryCommandState(this.cmd); }, - + _bindToBlock: function(block) { var formatter = this, ctrlDown = false; - + block .on('keyup','.st-text-block', function(ev) { if(ev.which == 17 || ev.which == 224 || ev.which == 91) { @@ -1829,7 +1829,7 @@ if(ev.which == 17 || ev.which == 224 || ev.which == 91) { ctrlDown = true; } - + if(ev.which == ev.data.formatter.keyCode && ctrlDown === true) { document.execCommand(ev.data.formatter.cmd, false, true); ev.preventDefault(); @@ -1838,57 +1838,57 @@ }); } }); - + Format.extend = extend; // Allow our Formatters to be extended. - + return Format; - + })(); /* Default Blocks */ /* Block Quote */ - + SirTrevor.Blocks.Quote = (function(){ - + var template = _.template([ '', '', '"', ' class="st-input-string st-required js-cite-input" type="text" />' ].join("\n")); - + return SirTrevor.Block.extend({ - + type: "quote", - + title: function(){ return i18n.t('blocks:quote:title'); }, - + icon_name: 'quote', - + editorHTML: function() { return template(this); }, - + loadData: function(data){ this.getTextBlock().html(SirTrevor.toHTML(data.text, this.type)); this.$('.js-cite-input').val(data.cite); }, - + toMarkdown: function(markdown) { return markdown.replace(/^(.+)$/mg,"> $1"); } - + }); - + })(); SirTrevor.Blocks.Columns = (function() { return SirTrevor.Block.extend({ type: "Columns", title: function() { return i18n.t('blocks:columns:title'); }, icon_name: 'columns', - + columns_presets: { 'columns-6-6': [6,6], 'columns-3-9': [3,9], @@ -1899,13 +1899,13 @@ 'columns-3-6-3': [3,6,3], 'columns-3-3-3-3': [3,3,3,3] }, - + controllable: true, - + constructor: function(data, instance_id, sirTrevor) { SirTrevor.Block.apply(this, arguments); }, - + beforeBlockRender: function() { this.controls = { 'twocolumns': this.changeColumnsHandler('columns-6-6'), @@ -1918,35 +1918,35 @@ 'onetwoonecolumns': this.changeColumnsHandler('columns-3-6-3') }; }, - + changeColumnsHandler: function(preset) { var self = this; return function() { self.changeColumns(preset, false) }; }, - + changeColumns: function(preset) { if (this.columns_preset != preset) { this.applyColumns(preset); } }, - + editorHTML: function() { return _.template( '' , {blockID: this.blockID}) }, - + _setBlockInner: function() { SirTrevor.Block.prototype._setBlockInner.apply(this, arguments); this.applyColumns('columns-6-6', true); /* default */ }, - + applyColumns: function(preset, initial) { var self = this; var columns_config = this.columns_presets[preset]; - + var $to_delete = this.getColumns(':gt('+(columns_config.length-1)+')'); // if there are unneeded columns if ($to_delete.length > 0) { @@ -1968,14 +1968,14 @@ $this.trigger('destroy').remove(); }); } - + // apply new configuration var total_width = _.reduce(columns_config, function(total, width){ return total+width; }, 0); var $row = this.$('.columns-row'); - + _.each(columns_config, function(ratio, i) { var width = Math.round(ratio*1000*100/total_width)/1000; - + var $column = self.getColumn(i); if ($column.length == 0) { $column = $(''); @@ -1984,62 +1984,62 @@ $column.prepend(plus.render().$el); $row.append($column); } - + $column.css('width', width+'%'); }); - + this.$('.st-block-control-ui-btn').removeClass('active') .filter('[data-icon='+preset+']').addClass('active'); - + this.columns_preset = preset; - + if (!initial) this.trigger('block:columns:change'); }, - + onBlockRender: function() { this.$('.st-block-control-ui-btn').filter('[data-icon='+this.columns_preset+']').addClass('active'); }, - + getRow: function() { if (this.$row) return this.$row; return this.$row = this.$('#'+this.blockID+'-columns-row'); }, - + getColumns: function(filter) { return this.getRow().children(filter); }, - + getColumn: function(index) { return this.getRow().children(':eq('+index+')'); }, - + toData: function() { var self = this; var column_config = this.columns_presets[this.columns_preset]; var dataObj = { columns: [], preset: this.columns_preset }; - + this.getColumns().each(function(i) { var blocksData = []; $(this).children('.st-block').each(function(){ var block = self.sirTrevor.findBlockById(this.getAttribute('id')); blocksData.push(block.saveAndReturnData()); }); - + dataObj.columns.push({ width: column_config[i], blocks: blocksData }); }); - + this.setData(dataObj); }, - + loadData: function(data) { if (data.preset) { this.applyColumns(data.preset, true); } - + var columns_data = (data.columns || []); for (var i=0; i', - + + editorHTML: '', + icon_name: 'heading', - + loadData: function(data){ this.getTextBlock().html(SirTrevor.toHTML(data.text, this.type)); + this.$('[name=heading]').val(data.heading); } }); /* Simple Image Block */ - + SirTrevor.Blocks.Image = SirTrevor.Block.extend({ - + type: "image", title: function() { return i18n.t('blocks:image:title'); }, - + droppable: true, uploadable: true, - + icon_name: 'image', - + loadData: function(data){ // Create our image tag this.$editor.html($('', { src: data.file.url })); }, - + onBlockRender: function(){ /* Setup the upload button */ this.$inputs.find('button').bind('click', function(ev){ ev.preventDefault(); }); @@ -2105,18 +2105,18 @@ this.onDrop(ev.currentTarget); }, this)); }, - + onDrop: function(transferData){ var file = transferData.files[0], urlAPI = (typeof URL !== "undefined") ? URL : (typeof webkitURL !== "undefined") ? webkitURL : null; - + // Handle one upload at a time if (/image/.test(file.type)) { this.loading(); // Show this image on here this.$inputs.hide(); this.$editor.html($('', { src: urlAPI.createObjectURL(file) })).show(); - + this.uploader( file, function(data) { @@ -2146,9 +2146,9 @@ loadData: function(data){ // Create our image tag this.$editor.html($('', { src: data.file.url })).show(); this.$editor.append($('')); -this.$editor.append($('', {type: 'text', class: 'st-input-string js-caption-input', name: 'caption', placeholder: '', style: 'width: 100%; margin-top:10px; text-align: center;', value: data.caption})); +this.$editor.append($('', {type: 'text', class: 'st-input-string js-caption-input form-control', name: 'caption', placeholder: '', style: 'width: 100%; margin-top:10px; text-align: center;', value: data.caption})); this.$editor.append($('')); -this.$editor.append($('', {type: 'text', class: 'st-input-string js-source-input', name: 'source', placeholder: 'http://', style: 'width: 100%; margin-top:10px; text-align: center;', value: data.source}));}, +this.$editor.append($('', {type: 'text', class: 'st-input-string js-source-input form-control', name: 'source', placeholder: 'http://', style: 'width: 100%; margin-top:10px; text-align: center;', value: data.source}));}, onBlockRender: function(){ /* Setup the upload button */ this.$inputs.find('button').bind('click', function(ev){ ev.preventDefault(); }); @@ -2229,27 +2229,27 @@ this.ready(); }, }); })(); - - + + /* Text Block */ SirTrevor.Blocks.Text = SirTrevor.Block.extend({ - + type: "text", - + title: function() { return i18n.t('blocks:text:title'); }, - + editorHTML: '', - + icon_name: 'text', - + loadData: function(data){ this.getTextBlock().html(SirTrevor.toHTML(data.text, this.type)); } }); SirTrevor.Blocks.Tweet = (function(){ - + var tweet_template = _.template([ "", "", '' ].join("\n")); - + return SirTrevor.Block.extend({ - + type: "tweet", droppable: true, pastable: true, fetchable: true, - + drop_options: { re_render_on_reorder: true }, - + title: function(){ return i18n.t('blocks:tweet:title'); }, - + fetchUrl: function(tweetID) { return "/tweets/?tweet_id=" + tweetID; }, - + icon_name: 'twitter', - + loadData: function(data) { if (_.isUndefined(data.status_url)) { data.status_url = ''; } this.$inner.find('iframe').remove(); this.$inner.prepend(tweet_template(data)); }, - + onContentPasted: function(event){ // Content pasted. Delegate to the drop parse method var input = $(event.target), val = input.val(); - + // Pass this to the same handler as onDrop this.handleTwitterDropPaste(val); }, - + handleTwitterDropPaste: function(url){ if (!this.validTweetUrl(url)) { SirTrevor.log("Invalid Tweet URL"); return; } - + // Twitter status var tweetID = url.match(/[^\/]+$/); if (!_.isEmpty(tweetID)) { this.loading(); tweetID = tweetID[0]; - + var ajaxOptions = { url: this.fetchUrl(tweetID), dataType: "json" }; - + this.fetch(ajaxOptions, this.onTweetSuccess, this.onTweetFail); } }, - + validTweetUrl: function(url) { return (_.isURI(url) && url.indexOf("twitter") !== -1 && url.indexOf("status") !== -1); }, - + onTweetSuccess: function(data) { // Parse the twitter object into something a bit slimmer.. var obj = { @@ -2335,89 +2335,89 @@ this.ready(); entities: data.entities, status_url: "https://twitter.com/" + data.user.screen_name + "/status/" + data.id_str }; - + this.setAndLoadData(obj); this.ready(); }, - + onTweetFail: function() { this.addMessage(i18n.t("blocks:tweet:fetch_error")); this.ready(); }, - + onDrop: function(transferData){ var url = transferData.getData('text/plain'); this.handleTwitterDropPaste(url); } }); - + })(); /* Unordered List */ - + SirTrevor.Blocks.List = (function() { - + var template = '<%= text %>
", @@ -2258,68 +2258,68 @@ this.ready(); "'; - + return SirTrevor.Block.extend({ - + type: 'list', - + title: function() { return i18n.t('blocks:list:title'); }, - + icon_name: 'list', - + editorHTML: function() { return _.template(template, this); }, - + loadData: function(data){ this.getTextBlock().html("" + SirTrevor.toHTML(data.text, this.type) + "
"); }, - + onBlockRender: function() { this.checkForList = _.bind(this.checkForList, this); this.getTextBlock().on('click keyup', this.checkForList); }, - + checkForList: function() { if (this.$('ul').length === 0) { document.execCommand("insertUnorderedList", false, false); } }, - + toMarkdown: function(markdown) { return markdown.replace(/<\/li>/mg,"\n") .replace(/<\/?[^>]+(>|$)/g, "") .replace(/^(.+)$/mg," - $1"); }, - + toHTML: function(html) { html = html.replace(/^ - (.+)$/mg,"$1 ") .replace(/\n/mg, ""); - + return html; }, - + onContentPasted: function(event, target) { var replace = this.pastedMarkdownToHTML(target[0].innerHTML), list = this.$('ul').html(replace); - + this.getTextBlock().caretToEnd(); }, - + isEmpty: function() { return _.isEmpty(this.saveAndGetData().text); } - + }); - + })(); SirTrevor.Blocks.Video = (function(){ - + return SirTrevor.Block.extend({ - + // more providers at https://gist.github.com/jeffling/a9629ae28e076785a14f providers: { vimeo: { @@ -2436,128 +2436,128 @@ this.ready(); dailymotion: { regex: /(?:http[s]?:\/\/)?(?:www.)?dai(?:.ly|lymotion.com\/video)\/([^\W_]*)/, html: "" - } + } }, - + type: 'video', title: function() { return i18n.t('blocks:video:title'); }, - + droppable: true, pastable: true, - + icon_name: 'video', - + loadData: function(data){ if (!this.providers.hasOwnProperty(data.source)) { return; } - + if (this.providers[data.source].square) { this.$editor.addClass('st-block__editor--with-square-media'); } else { this.$editor.addClass('st-block__editor--with-sixteen-by-nine-media'); } - + var embed_string = this.providers[data.source].html .replace('{{protocol}}', window.location.protocol) .replace('{{remote_id}}', data.remote_id) .replace('{{width}}', this.$editor.width()); // for videos that can't resize automatically like vine - + this.$editor.html(embed_string); }, - + onContentPasted: function(event){ this.handleDropPaste($(event.target).val()); }, - + handleDropPaste: function(url){ if(!_.isURI(url)) { return; } - + var match, data; - + _.each(this.providers, function(provider, index) { match = provider.regex.exec(url); - + if(match !== null && !_.isUndefined(match[1])) { data = { source: index, remote_id: match[1] }; - + this.setAndLoadData(data); } }, this); }, - + onDrop: function(transferData){ var url = transferData.getData('text/plain'); this.handleDropPaste(url); } }); - + })(); /* Default Formatters */ /* Our base formatters */ (function(){ - - + + var Bold = SirTrevor.Formatter.extend({ title: "bold", cmd: "bold", keyCode: 66, text : "B" }); - + var Italic = SirTrevor.Formatter.extend({ title: "italic", cmd: "italic", keyCode: 73, text : "i" }); - + var Link = SirTrevor.Formatter.extend({ - + title: "link", iconName: "link", cmd: "CreateLink", text : "link", - + onClick: function() { - + var link = prompt(i18n.t("general:link")), link_regex = /((ftp|http|https):\/\/.)|mailto(?=\:[-\.\w]+@)/; - + if(link && link.length > 0) { - + if (!link_regex.test(link)) { link = "http://" + link; } - + document.execCommand(this.cmd, false, link); } }, - + isActive: function() { var selection = window.getSelection(), node; - + if (selection.rangeCount > 0) { node = selection.getRangeAt(0) .startContainer .parentNode; } - + return (node && node.nodeName == "A"); } }); - + var UnLink = SirTrevor.Formatter.extend({ title: "unlink", iconName: "link", cmd: "unlink", text : "link" }); - + /* Create our formatters and add a static reference to them */ @@ -2565,48 +2565,48 @@ this.ready(); SirTrevor.Formatters.Italic = new Italic(); SirTrevor.Formatters.Link = new Link(); SirTrevor.Formatters.Unlink = new UnLink(); - + })(); /* Marker */ SirTrevor.BlockControl = (function(){ - + var BlockControl = function(type, instance_scope) { this.type = type; this.instance_scope = instance_scope; this.block_type = SirTrevor.Blocks[this.type].prototype; this.can_be_rendered = this.block_type.toolbarEnabled; - + this._ensureElement(); }; - + _.extend(BlockControl.prototype, FunctionBind, Renderable, SirTrevor.Events, { - + tagName: 'a', className: "st-block-control", - + attributes: function() { return { 'data-type': this.block_type.type }; }, - + render: function() { this.$el.html(' ' + _.result(this.block_type, 'title')); return this; } }); - + return BlockControl; - + })(); /* SirTrevor Block Controls -- Gives an interface for adding new Sir Trevor blocks. */ - + SirTrevor.BlockControls = (function(){ - + var BlockControls = function(available_types, instance_scope) { this.instance_scope = instance_scope; this.available_types = available_types || []; @@ -2614,16 +2614,16 @@ this.ready(); this._bindFunctions(); this.initialize(); }; - + _.extend(BlockControls.prototype, FunctionBind, Renderable, SirTrevor.Events, { - + bound: ['handleControlButtonClick'], block_controls: null, - + className: "st-block-controls", - + html: "" + i18n.t("general:close") + "", - + initialize: function() { for(var block_type in this.available_types) { if (SirTrevor.Blocks.hasOwnProperty(block_type)) { @@ -2633,83 +2633,83 @@ this.ready(); } } } - + this.$el.delegate('.st-block-control', 'click', this.handleControlButtonClick); }, - + show: function() { this.$el.addClass('st-block-controls--active'); - + SirTrevor.EventBus.trigger('block:controls:shown'); }, - + hide: function() { this.$el.removeClass('st-block-controls--active'); - + SirTrevor.EventBus.trigger('block:controls:hidden'); }, - + handleControlButtonClick: function(e) { e.stopPropagation(); - + this.trigger('createBlock', $(e.currentTarget).attr('data-type'), null, this.current_container); } - + }); - + return BlockControls; - + })(); - - + + /* SirTrevor Floating Block Controls -- Draws the 'plus' between blocks */ - + SirTrevor.FloatingBlockControls = (function(){ - + var FloatingBlockControls = function(wrapper, instance_id) { this.$wrapper = wrapper; this.instance_id = instance_id; - + this._ensureElement(); this._bindFunctions(); - + this.initialize(); }; - + _.extend(FloatingBlockControls.prototype, FunctionBind, Renderable, SirTrevor.Events, { - + className: "st-block-controls__top", - + attributes: function() { return { 'data-icon': 'add' }; }, - + bound: ['handleBlockMouseOut', 'handleBlockMouseOver', 'handleBlockClick', 'onDrop'], - + initialize: function() { this.$el.on('click', this.handleBlockClick) .dropArea() .bind('drop', this.onDrop); - + this.$wrapper.on('mouseover', '.st-block', this.handleBlockMouseOver) .on('mouseout', '.st-block', this.handleBlockMouseOut) .on('click', '.st-block--with-plus', this.handleBlockClick); }, - + onDrop: function(ev) { ev.preventDefault(); ev.stopPropagation(); // to prevent event handling on outer blocks - + var dropped_on = this.$el, item_id = ev.originalEvent.dataTransfer.getData("text/plain"), block = $('#' + item_id); - + if (!_.isUndefined(item_id) && !_.isEmpty(block) && dropped_on.attr('id') != item_id && @@ -2717,37 +2717,37 @@ this.ready(); ) { dropped_on.after(block); } - + SirTrevor.EventBus.trigger("block:reorder:dropped", item_id); }, - + handleBlockMouseOver: function(e) { var block = $(e.currentTarget); - + if (!block.hasClass('st-block--with-plus')) { block.addClass('st-block--with-plus'); } }, - + handleBlockMouseOut: function(e) { var block = $(e.currentTarget); - + if (block.hasClass('st-block--with-plus')) { block.removeClass('st-block--with-plus'); } }, - + handleBlockClick: function(e) { e.stopPropagation(); - + var block = $(e.currentTarget); this.trigger('showBlockControls', block); } - + }); - + return FloatingBlockControls; - + })(); /* FormatBar */ /* @@ -2756,27 +2756,27 @@ this.ready(); Displayed on focus on a text area. Renders with all available options for the editor instance */ - + SirTrevor.FormatBar = (function(){ - + var FormatBar = function(options) { this.options = _.extend({}, SirTrevor.DEFAULTS.formatBar, options || {}); this._ensureElement(); this._bindFunctions(); - + this.initialize.apply(this, arguments); }; - + _.extend(FormatBar.prototype, FunctionBind, SirTrevor.Events, Renderable, { - + className: 'st-format-bar', - + bound: ["onFormatButtonClick", "renderBySelection", "hide"], - + initialize: function() { var formatName, format, btn; this.$btns = []; - + for (formatName in SirTrevor.Formatters) { if (SirTrevor.Formatters.hasOwnProperty(formatName)) { format = SirTrevor.Formatters[formatName]; @@ -2786,42 +2786,42 @@ this.ready(); 'data-type': formatName, 'data-cmd': format.cmd }); - + this.$btns.push(btn); btn.appendTo(this.$el); } } - + this.$b = $(document); this.$el.bind('click', '.st-format-btn', this.onFormatButtonClick); }, - + hide: function() { this.$el.removeClass('st-format-bar--is-ready'); }, - + show: function() { this.$el.addClass('st-format-bar--is-ready'); }, - + remove: function(){ this.$el.remove(); }, - + renderBySelection: function(rectangles) { - + var selection = window.getSelection(), range = selection.getRangeAt(0), boundary = range.getBoundingClientRect(), coords = {}; - + coords.top = boundary.top + 20 + window.pageYOffset - this.$el.height() + 'px'; coords.left = ((boundary.left + boundary.right) / 2) - (this.$el.width() / 2) + 'px'; - + this.highlightSelectedButtons(); this.show(); - + this.$el.css(coords); }, - + highlightSelectedButtons: function() { var formatter; _.each(this.$btns, function($btn) { @@ -2830,15 +2830,15 @@ this.ready(); formatter.isActive()); }, this); }, - + onFormatButtonClick: function(ev){ ev.stopPropagation(); - + var btn = $(ev.target), format = SirTrevor.Formatters[btn.attr('data-type')]; - + if (_.isUndefined(format)) return false; - + // Do we have a click function defined on this formatter? if(!_.isUndefined(format.onClick) && _.isFunction(format.onClick)) { format.onClick(); // Delegate @@ -2846,15 +2846,15 @@ this.ready(); // Call default document.execCommand(btn.attr('data-cmd'), false, format.param); } - + this.highlightSelectedButtons(); return false; } - + }); - + return FormatBar; - + })(); /* Sir Trevor Editor @@ -2863,19 +2863,19 @@ this.ready(); Each block references this instance. BlockTypes are global however. */ - + SirTrevor.Editor = (function(){ - + var SirTrevorEditor = function(options) { this.initialize(options); }; - + _.extend(SirTrevorEditor.prototype, FunctionBind, SirTrevor.Events, { - + bound: ['onFormSubmit', 'showBlockControls', 'hideAllTheThings', 'hideBlockControls', 'onNewBlockCreated', 'changeBlockPosition', 'onBlockDragStart', 'onBlockDragEnd', 'removeBlockDragOver', 'onBlockDropped', 'createBlock'], - + events: { 'block:reorder:down': 'hideBlockControls', 'block:reorder:dragstart': 'onBlockDragStart', @@ -2884,36 +2884,36 @@ this.ready(); 'block:reorder:dropped': 'onBlockDropped', 'block:create:new': 'onNewBlockCreated' }, - + initialize: function(options) { SirTrevor.log("Init SirTrevor.Editor"); - + this.blockTypes = {}; this.blockCounts = {}; // Cached block type counts this.blocks = []; // Block references this.errors = []; this.options = _.extend({}, SirTrevor.DEFAULTS, options || {}); this.ID = _.uniqueId('st-editor-'); - + if (!this._ensureAndSetElements()) { return false; } - + if(!_.isUndefined(this.options.onEditorRender) && _.isFunction(this.options.onEditorRender)) { this.onEditorRender = this.options.onEditorRender; } - + this._setRequired(); this._setBlocksTypes(); this._bindFunctions(); - + this.store("create"); - + SirTrevor.instances.push(this); - + this.build(); - + SirTrevor.bindFormSubmit(this.$form); }, - + /* Build the Editor instance. Check to see if we've been passed JSON already, and if not try and create a default block. @@ -2921,28 +2921,28 @@ this.ready(); */ build: function() { this.$el.hide(); - + this.block_controls = new SirTrevor.BlockControls(this.blockTypes, this.ID); this.fl_block_controls = new SirTrevor.FloatingBlockControls(this.$wrapper, this.ID, this); this.formatBar = new SirTrevor.FormatBar(this.options.formatBar); - + this.listenTo(this.block_controls, 'createBlock', this.createBlock); this.listenTo(this.fl_block_controls, 'showBlockControls', this.showBlockControls); - + this._setEvents(); - + SirTrevor.EventBus.on(this.ID + ":blocks:change_position", this.changeBlockPosition); SirTrevor.EventBus.on("formatter:position", this.formatBar.renderBySelection); SirTrevor.EventBus.on("formatter:hide", this.formatBar.hide); - + this.$wrapper.prepend(this.fl_block_controls.render().$el); $(document.body).append(this.formatBar.render().$el); this.$outer.append(this.block_controls.render().$el); - + $(window).bind('click', this.hideAllTheThings); - + var store = this.store("read"); - + if (store.data.length > 0) { _.each(store.data, function(block){ SirTrevor.log('Creating: ' + block.type); @@ -2951,80 +2951,80 @@ this.ready(); } else if (this.options.defaultType !== false) { this.createBlock(this.options.defaultType, {}); } - + this.$wrapper.addClass('st-ready'); - + if(!_.isUndefined(this.onEditorRender)) { this.onEditorRender(); } }, - + destroy: function() { // Destroy the rendered sub views this.formatBar.destroy(); this.fl_block_controls.destroy(); this.block_controls.destroy(); - + // Destroy all blocks _.each(this.$wrapper.children('.st-block'), function(block) { this.removeBlock(block.id); }, this); - + // Stop listening to events this.stopListening(); SirTrevor.unbindFormSubmit(this.$form); - + // Cleanup element var el = this.$el.detach(); - + // Remove instance SirTrevor.instances = _.reject(SirTrevor.instances, _.bind(function(instance) { return instance.ID == this.ID; }, this)); - + // Clear the store this.store("reset"); - + this.$outer.replaceWith(el); }, - + reinitialize: function(options) { this.destroy(); this.initialize(options || this.options); }, - + _setEvents: function() { _.each(this.events, function(callback, type) { SirTrevor.EventBus.on(type, this[callback], this); }, this); }, - + hideAllTheThings: function(e) { this.block_controls.hide(); this.formatBar.hide(); - + if (!_.isUndefined(this.block_controls.current_container)) { this.block_controls.current_container.removeClass("with-st-controls"); } }, - + showBlockControls: function(container) { if (!_.isUndefined(this.block_controls.current_container)) { this.block_controls.current_container.removeClass("with-st-controls"); } - + this.block_controls.show(); - + container.append(this.block_controls.$el.detach()); container.addClass('with-st-controls'); - + this.block_controls.current_container = container; }, - + store: function(method, options){ return SirTrevor.editorStore(this, method, options || {}); }, - + /* Create an instance of a block from an available type. We have to check the number of blocks we're allowed to create before adding one and handle fails accordingly. @@ -3033,91 +3033,91 @@ this.ready(); */ createBlock: function(type, data, $container) { type = _.classify(type); - + if(this._blockLimitReached()) { SirTrevor.log("Cannot add any more blocks. Limit reached."); return false; } - + if (!this._isBlockTypeAvailable(type)) { SirTrevor.log("Block type not available " + type); return false; } - + // Can we have another one of these blocks? if (!this._canAddBlockType(type)) { SirTrevor.log("Block Limit reached for type " + type); return false; } - + // additionally pass master editor object to block (needed for nested blocks) var block = new SirTrevor.Blocks[type](data, this.ID, this); - + // optional `$container` argument can define the DOM element to adopt new block // this is used for initial blocks structure building to support nested blocks this._renderInPosition(block.render().$el, $container); - + this.listenTo(block, 'removeBlock', this.removeBlock); - + this.blocks.push(block); this._incrementBlockTypeCount(type); - + block.focus(); - + SirTrevor.EventBus.trigger(data ? "block:create:existing" : "block:create:new", block); SirTrevor.log("Block created of type " + type); block.trigger("onRender"); - + this.$wrapper.toggleClass('st--block-limit-reached', this._blockLimitReached()); this.triggerBlockCountUpdate(); - + return block; }, - + onNewBlockCreated: function(block) { this.hideBlockControls(); this.scrollTo(block.$el); }, - + scrollTo: function(element) { $('html, body').animate({ scrollTop: element.offset().top }, 300, "linear"); }, - + blockFocus: function(block) { this.block_controls.current_container = null; }, - + hideBlockControls: function() { if (!_.isUndefined(this.block_controls.current_container)) { this.block_controls.current_container.removeClass("with-st-controls"); } - + this.block_controls.hide(); }, - + removeBlockDragOver: function() { this.$outer.find('.st-drag-over').removeClass('st-drag-over'); }, - + triggerBlockCountUpdate: function() { SirTrevor.EventBus.trigger(this.ID + ":blocks:count_update", this.blocks.length); }, - + changeBlockPosition: function($block, selectedPosition) { selectedPosition = selectedPosition - 1; - + var blockPosition = this.getBlockPosition($block); var $blockBy = $block.parent().children('.st-block').eq(selectedPosition); - + var where = (blockPosition > selectedPosition) ? "Before" : "After"; - + if($blockBy && $blockBy.attr('id') !== $block.attr('id')) { this.hideAllTheThings(); $block["insert" + where]($blockBy); this.scrollTo($block); } }, - + onBlockDropped: function(block_id) { this.hideAllTheThings(); var block = this.findBlockById(block_id); @@ -3127,17 +3127,17 @@ this.ready(); block.beforeLoadingData(); } }, - + onBlockDragStart: function() { this.hideBlockControls(); this.$wrapper.addClass("st-outer--is-reordering"); }, - + onBlockDragEnd: function() { this.removeBlockDragOver(); this.$wrapper.removeClass("st-outer--is-reordering"); }, - + _renderInPosition: function(block, $container) { if (!_.isUndefined($container)) { $container.after(block); @@ -3145,30 +3145,30 @@ this.ready(); this.$wrapper.append(block); } }, - + _incrementBlockTypeCount: function(type) { this.blockCounts[type] = (_.isUndefined(this.blockCounts[type])) ? 1: this.blockCounts[type] + 1; }, - + _getBlockTypeCount: function(type) { return (_.isUndefined(this.blockCounts[type])) ? 0 : this.blockCounts[type]; }, - + _canAddBlockType: function(type) { var block_type_limit = this._getBlockTypeLimit(type); - + return !(block_type_limit !== 0 && this._getBlockTypeCount(type) >= block_type_limit); }, - + _blockLimitReached: function() { return (this.options.blockLimit !== 0 && this.blocks.length >= this.options.blockLimit); }, - + removeBlock: function(block_id) { var block = this.findBlockById(block_id), type = _.classify(block.type), controls = block.$el.find('.st-block-controls'); - + var nested_blocks = block.$el.find('.st-block'); if (nested_blocks.length > 0) { @@ -3179,7 +3179,7 @@ this.ready(); // remove nested blocks in depth first order for (var i=0; i0) { return false; } - + this.errors.push({ text: i18n.t("errors:required_type_empty", { type: type }) }); SirTrevor.log("A required block type " + type + " is empty"); } }; - + if (_.isArray(this.required)) { _.each(this.required, blockTypeIterator, this); } }, - + renderErrors: function() { if (this.errors.length === 0) { return false; } - + if (_.isUndefined(this.$errors)) { this.$errors = this._errorsContainer(); } - + var str = " "; - + _.each(this.errors, function(error) { str += '
"; - + this.$errors.append(str); this.$errors.show(); }, - + _errorsContainer: function() { if (_.isUndefined(this.options.errorsContainer)) { var $container = $("- '+ error.text +'
'; }); - + str += "", { 'class': 'st-errors', html: "" + i18n.t("errors:title") + "
" }); - + this.$outer.prepend($container); return $container; } - + return $element(this.options.errorsContainer); }, - + removeErrors: function() { if (this.errors.length === 0) { return false; } - + this.$errors.hide().find('ul').html(''); - + this.errors = []; }, - + findBlockById: function(block_id) { return _.find(this.blocks, function(b){ return b.blockID == block_id; }); }, - + getBlocksByType: function(block_type) { return _.filter(this.blocks, function(b){ return _.classify(b.type) == block_type; }); }, - + getBlocksByIDs: function(block_ids) { return _.filter(this.blocks, function(b){ return _.contains(block_ids, b.blockID); }); }, - + getBlockPosition: function($block) { return $block.parent().children('.st-block').index($block); }, - + /* Get Block Type Limit -- @@ -3352,10 +3352,10 @@ this.ready(); */ _getBlockTypeLimit: function(t) { if (!this._isBlockTypeAvailable(t)) { return 0; } - + return parseInt((_.isUndefined(this.options.blockTypeLimits[t])) ? 0 : this.options.blockTypeLimits[t], 10); }, - + /* Availability helper methods -- @@ -3364,29 +3364,29 @@ this.ready(); _isBlockTypeAvailable: function(t) { return !_.isUndefined(this.blockTypes[t]); }, - + _ensureAndSetElements: function() { if(_.isUndefined(this.options.el) || _.isEmpty(this.options.el)) { SirTrevor.log("You must provide an el"); return false; } - + this.$el = this.options.el; this.el = this.options.el[0]; this.$form = this.$el.parents('form'); - + var $outer = $("").attr({ 'id': this.ID, 'class': 'st-outer', 'dropzone': 'copy link move' }); var $wrapper = $("").attr({ 'class': 'st-blocks' }); - + // Wrap our element in lots of containers *eww* this.$el.wrap($outer).wrap($wrapper); - + this.$outer = this.$form.find('#' + this.ID); this.$wrapper = this.$outer.find('.st-blocks'); - + return true; }, - + /* Set our blockTypes These will either be set on a per Editor instance, or set on a global scope. @@ -3394,7 +3394,7 @@ this.ready(); _setBlocksTypes: function() { this.blockTypes = _.flattern((_.isUndefined(this.options.blockTypes)) ? SirTrevor.Blocks : this.options.blockTypes); }, - + /* Get our required blocks (if any) */ _setRequired: function() { if (_.isArray(this.options.required) && !_.isEmpty(this.options.required)) { @@ -3404,11 +3404,11 @@ this.ready(); } } }); - + return SirTrevorEditor; - + })(); - + /* We need a form handler here to handle all the form submits */ SirTrevor.setDefaults = function(options) { diff --git a/theme/blue/css/bootstrap.min.css b/theme/blue/css/bootstrap.min.css deleted file mode 100644 index 2dd5459..0000000 --- a/theme/blue/css/bootstrap.min.css +++ /dev/null @@ -1,5 +0,0 @@ -/*! - * Bootstrap v3.3.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:before,:after{color:#000!important;text-shadow:none!important;background:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before,.glyphicon-eur:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{margin:5px auto 10px;display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.3;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:400;line-height:1;color:#777}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px;}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}mark,.mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#2980b9;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{padding-bottom:10px;position:relative;min-height:1px;margin:15px 0 5px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px;line-height:1.42857143 \0}input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px;line-height:1.5 \0}input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px;line-height:1.33 \0}_:-ms-fullscreen,:root input[type=date],_:-ms-fullscreen,:root input[type=time],_:-ms-fullscreen,:root input[type=datetime-local],_:-ms-fullscreen,:root input[type=month]{line-height:1.42857143}_:-ms-fullscreen.input-sm,:root input[type=date].input-sm,_:-ms-fullscreen.input-sm,:root input[type=time].input-sm,_:-ms-fullscreen.input-sm,:root input[type=datetime-local].input-sm,_:-ms-fullscreen.input-sm,:root input[type=month].input-sm{line-height:1.5}_:-ms-fullscreen.input-lg,:root input[type=date].input-lg,_:-ms-fullscreen.input-lg,:root input[type=time].input-lg,_:-ms-fullscreen.input-lg,:root input[type=datetime-local].input-lg,_:-ms-fullscreen.input-lg,:root input[type=month].input-lg{line-height:1.33}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.radio input[type=radio],.radio-inline input[type=radio],.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox]{position:absolute;margin-top:4px \9;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],input[type=radio].disabled,input[type=checkbox].disabled,fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm,.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm,select.form-group-sm .form-control{height:30px;line-height:30px}textarea.input-sm,textarea.form-group-sm .form-control,select[multiple].input-sm,select[multiple].form-group-sm .form-control{height:auto}.input-lg,.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg,select.form-group-lg .form-control{height:46px;line-height:46px}textarea.input-lg,textarea.form-group-lg .form-control,select[multiple].input-lg,select[multiple].form-group-lg .form-control{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type=radio],.form-inline .checkbox input[type=checkbox]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.3px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus,.btn.focus{color:#333;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default.focus,.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled.focus,.btn-default[disabled].focus,fieldset[disabled] .btn-default.focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#2980b9}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary.focus,.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#3071a9;border-color:#285e8e}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled.focus,.btn-primary[disabled].focus,fieldset[disabled] .btn-primary.focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success.focus,.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled.focus,.btn-success[disabled].focus,fieldset[disabled] .btn-success.focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info.focus,.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled.focus,.btn-info[disabled].focus,fieldset[disabled] .btn-info.focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning.focus,.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled.focus,.btn-warning[disabled].focus,fieldset[disabled] .btn-warning.focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger.focus,.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled.focus,.btn-danger[disabled].focus,fieldset[disabled] .btn-danger.focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#428bca;border-radius:0}.btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#777;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none;visibility:hidden}.collapse.in{display:block;visibility:visible}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#428bca;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=radio],.input-group-addon input[type=checkbox]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none;visibility:hidden}.tab-content>.active{display:block;visibility:visible}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important;visibility:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:0 -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:right;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0}.navbar-form .radio input[type=radio],.navbar-form .checkbox input[type=checkbox]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:hover,.navbar-default .btn-link:focus{color:#333}.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:hover,.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus{color:#ccc}.navbar-inverse{background-color:#3498db;border-color:#2980b9}.navbar-inverse .navbar-brand{color:#eee}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#eee}.navbar-inverse .navbar-nav>li>a{color:#eee}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#2980b9}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#2980b9}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#2980b9}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#2980b9}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#2980b9}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#2980b9}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#2980b9}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#eee}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#2980b9}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#eee}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#eee}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#fff}.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#428bca;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{color:#2a6496;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#428bca;border-color:#428bca}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:hover,a.label:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:hover,.label-default[href]:focus{background-color:#5e5e5e}.label-primary{background-color:#428bca}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.carousel-indicators {display:none;}.jumbotron{padding:12px 0;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:15px 0}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-right:auto;margin-left:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar,.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress.active .progress-bar,.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-left,.media-right,.media-body{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:hover,.list-group-item.disabled:focus{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>.small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,a.list-group-item-success:focus{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,a.list-group-item-info:focus{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,a.list-group-item-warning:focus{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,a.list-group-item-danger:focus{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0}.panel>.table caption,.panel>.table-responsive>.table caption,.panel>.panel-collapse>.table caption{padding-right:15px;padding-left:15px}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body,.panel-group .panel-heading+.panel-collapse>.list-group{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#2980b9}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#428bca}.panel-primary>.panel-heading .badge{color:#428bca;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-size:12px;line-height:1.4;visibility:visible;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.next,.carousel-inner>.item.active.right{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.prev,.carousel-inner>.item.active.left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right,.carousel-inner>.item.active{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%;margin-left:-10px}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%;margin-right:-10px}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{display:table;content:" "}.clearfix:after,.dl-horizontal dd:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-footer:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none!important}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} \ No newline at end of file diff --git a/theme/blue/css/index.html b/theme/blue/css/index.html deleted file mode 100644 index c942a79..0000000 --- a/theme/blue/css/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - -403 Forbidden - - - -Directory access is forbidden.
- - - \ No newline at end of file diff --git a/theme/blue/css/socicon.css b/theme/blue/css/socicon.css deleted file mode 100644 index 50b19ed..0000000 --- a/theme/blue/css/socicon.css +++ /dev/null @@ -1,142 +0,0 @@ -@font-face { - font-family: 'socicon'; - src: url('../fonts/socicon-webfont.eot'); - src: url('../fonts/socicon-webfont.eot?#iefix') format('embedded-opentype'), - url('../fonts/socicon-webfont.woff') format('woff'), - url('../fonts/socicon-webfont.woff2') format('woff2'), - url('../fonts/socicon-webfont.ttf') format('truetype'), - url('../fonts/socicon-webfont.svg#sociconregular') format('svg'); - font-weight: normal; - font-style: normal; - text-transform: initial; -} - -.socicon { - font-family: 'socicon' !important; -} - -.socicon { - position: relative; - top: 1px; - display: inline-block; - font-family: 'socicon'; - font-style: normal; - font-weight: normal; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - background:#252525;padding: 6px 6px 4px;margin-left:2px;border-radius:50%;color:#fff;cursor:pointer;transition:0.3s;font-size:1.4em; - -} - - - - -.socicon-twitter:hover {background:#3cf!important;color:#fff!important;} -.socicon-facebook:hover {background:#3b5998!important;color:#fff!important;} -.socicon-google:hover {background:#dd4b39!important;color:#fff!important;} -.socicon-vimeo:hover {background:#1ab7ea!important;color:#fff!important;} -.socicon-pinterest:hover {background:#bd081c!important;color:#fff!important;} -.socicon-linkedin:hover {background:#0077b5!important;color:#fff!important;} -.socicon-foursquare:hover {background:#F94877!important;color:#fff!important;} -.socicon-myspace:hover {background:#000!important;color:#fff!important;} -.socicon-soundcloud:hover {background:#ff8800!important;color:#fff!important;} -.socicon-spotify:hover {background:#2ebd59!important;color:#fff!important;} -.socicon-lastfm:hover {background:#d51007!important;color:#fff!important;} -.socicon-youtube:hover {background:#cd201f!important;color:#fff!important;} -.socicon-dailymotion:hover {background:#0f58a8!important;color:#fff!important;} -.socicon-vine:hover {background:#00b488!important;color:#fff!important;} -.socicon-flickr:hover {background:#0063dc!important;color:#fff!important;} -.socicon-instagram:hover {background:#3f729b!important;color:#fff!important;} -.socicon-tumblr:hover {background:#35465c!important;color:#fff!important;} -.socicon-reddit:hover {background:#ff4500!important;color:#fff!important;} -.socicon-envato:hover {background:#82b541!important;color:#fff!important;} -.socicon-github:hover {background:#4183c4!important;color:#fff!important;} -.socicon-tripadvisor:hover {background:#589442!important;color:#fff!important;} -.socicon-stackoverflow:hover {background:#fe7a15!important;color:#fff!important;} -.socicon-persona:hover {background:#777!important;color:#fff!important;} - - - - - -.socicon-twitter:before { content: "a"; } -.socicon-facebook:before { content: "b"; } -.socicon-google:before { content: "c"; } -.socicon-pinterest:before { content: "d"; } -.socicon-foursquare:before { content: "e"; } -.socicon-yahoo:before { content: "f"; } -.socicon-skype:before { content: "g"; } -.socicon-yelp:before { content: "h"; } -.socicon-feedburner:before { content: "i"; } -.socicon-linkedin:before { content: "j"; } -.socicon-viadeo:before { content: "k"; } -.socicon-xing:before { content: "l"; } -.socicon-myspace:before { content: "m"; } -.socicon-soundcloud:before { content: "n"; } -.socicon-spotify:before { content: "o"; } -.socicon-grooveshark:before { content: "p"; } -.socicon-lastfm:before { content: "q"; } -.socicon-youtube:before { content: "r"; } -.socicon-vimeo:before { content: "s"; } -.socicon-dailymotion:before { content: "t"; } -.socicon-vine:before { content: "u"; } -.socicon-flickr:before { content: "v"; } -.socicon-500px:before { content: "w"; } -.socicon-instagram:before { content: "x"; } -.socicon-wordpress:before { content: "y"; } -.socicon-tumblr:before { content: "z"; } -.socicon-blogger:before { content: "A"; } -.socicon-technorati:before { content: "B"; } -.socicon-reddit:before { content: "C"; } -.socicon-dribbble:before { content: "D"; } -.socicon-stumbleupon:before { content: "E"; } -.socicon-digg:before { content: "F"; } -.socicon-envato:before { content: "G"; } -.socicon-behance:before { content: "H"; } -.socicon-delicious:before { content: "I"; } -.socicon-deviantart:before { content: "J"; } -.socicon-forrst:before { content: "K"; } -.socicon-playstore:before { content: "L"; } -.socicon-zerply:before { content: "M"; } -.socicon-wikipedia:before { content: "N"; } -.socicon-apple:before { content: "O"; } -.socicon-flattr:before { content: "P"; } -.socicon-github:before { content: "Q"; } -.socicon-chimein:before { content: "R"; } -.socicon-friendfeed:before { content: "S"; } -.socicon-newsvine:before { content: "T"; } -.socicon-identica:before { content: "U"; } -.socicon-bebo:before { content: "V"; } -.socicon-zynga:before { content: "W"; } -.socicon-steam:before { content: "X"; } -.socicon-xbox:before { content: "Y"; } -.socicon-windows:before { content: "Z"; } -.socicon-outlook:before { content: "1"; } -.socicon-coderwall:before { content: "2"; } -.socicon-tripadvisor:before { content: "3"; } -.socicon-appnet:before { content: "4"; } -.socicon-goodreads:before { content: "5"; } -.socicon-tripit:before { content: "6"; } -.socicon-lanyrd:before { content: "7"; } -.socicon-slideshare:before { content: "8"; } -.socicon-buffer:before { content: "9"; } -.socicon-rss:before { content: ","; } -.socicon-vkontakte:before { content: ";"; } -.socicon-disqus:before { content: ":"; } -.socicon-houzz:before { content: "+"; } -.socicon-mail:before { content: "@"; } -.socicon-patreon:before { content: "="; } -.socicon-paypal:before { content: "-"; } -.socicon-playstation:before { content: "^"; } -.socicon-smugmug:before { content: "¨"; } -.socicon-swarm:before { content: "$"; } -.socicon-triplej:before { content: "*"; } -.socicon-yammer:before { content: "&"; } -.socicon-stackoverflow:before { content: "("; } -.socicon-drupal:before { content: "#"; } -.socicon-odnoklassniki:before { content : ".";} -.socicon-android:before { content: "_"; } - -.socicon-meetup:before { content: "]"; } -.socicon-persona:before { content: ")"; } \ No newline at end of file diff --git a/theme/blue/css/styles.css b/theme/blue/css/styles.css deleted file mode 100644 index dd3cfed..0000000 --- a/theme/blue/css/styles.css +++ /dev/null @@ -1,34 +0,0 @@ -.jumbotron.errorpadding {padding-top:125px;padding-bottom:60px;background:#eee;} -.jumbotron.jumbo-padding {padding-top:125px;padding-bottom:60px;background:#eee;} -.jumbotron.slider-padding {padding:0;margin-top:60px;} -.jumbotron.errorpadding img {margin-bottom:15px;} -.jumbotron.text-center img {display:block;margin:0 auto;} -.carouselpadding {margin-top:45px;} -.carousel-inner > .item > a > img {margin:0 auto!important;width:100%;} -.carouselpadding .carousel {margin-bottom:20px;} -.navbar-brand img { - height: 36px!important; -} - -.navbar-brand { - float: left!important; - font-size: 18px!important; - line-height: 20px!important; - padding: 12px 15px; - height: 60px!important; -} - -.navbar-nav > li > a { - padding-bottom: 20px!important; - padding-top: 20px!important; -} - -h2, p {color:#2c3e50} -.btn-lg, .btn-sm, .btn-xs {margin:5px 0;display:inline-block;} -.row h1,.row .h1,.row h2,.row .h2,.row h3,.row .h3 {margin-bottom: 15px;} -.list-group-item > a > .badge {float: right;} -.meta {font-size:0.8em;} -.text-right {text-align:right;} -.text-left {text-align:left;} -.float-right {float:right;} -.float-left {float:left;} \ No newline at end of file diff --git a/theme/blue/fonts/glyphicons-halflings-regular.eot b/theme/blue/fonts/glyphicons-halflings-regular.eot deleted file mode 100644 index 4a4ca86..0000000 Binary files a/theme/blue/fonts/glyphicons-halflings-regular.eot and /dev/null differ diff --git a/theme/blue/fonts/glyphicons-halflings-regular.svg b/theme/blue/fonts/glyphicons-halflings-regular.svg deleted file mode 100644 index 25691af..0000000 --- a/theme/blue/fonts/glyphicons-halflings-regular.svg +++ /dev/null @@ -1,229 +0,0 @@ - - - \ No newline at end of file diff --git a/theme/blue/fonts/glyphicons-halflings-regular.ttf b/theme/blue/fonts/glyphicons-halflings-regular.ttf deleted file mode 100644 index 67fa00b..0000000 Binary files a/theme/blue/fonts/glyphicons-halflings-regular.ttf and /dev/null differ diff --git a/theme/blue/fonts/glyphicons-halflings-regular.woff b/theme/blue/fonts/glyphicons-halflings-regular.woff deleted file mode 100644 index 8c54182..0000000 Binary files a/theme/blue/fonts/glyphicons-halflings-regular.woff and /dev/null differ diff --git a/theme/blue/fonts/socicon-webfont.eot b/theme/blue/fonts/socicon-webfont.eot deleted file mode 100644 index fbf9f9b..0000000 Binary files a/theme/blue/fonts/socicon-webfont.eot and /dev/null differ diff --git a/theme/blue/fonts/socicon-webfont.svg b/theme/blue/fonts/socicon-webfont.svg deleted file mode 100644 index a81407c..0000000 --- a/theme/blue/fonts/socicon-webfont.svg +++ /dev/null @@ -1,115 +0,0 @@ - - - \ No newline at end of file diff --git a/theme/blue/fonts/socicon-webfont.ttf b/theme/blue/fonts/socicon-webfont.ttf deleted file mode 100644 index 9639b52..0000000 Binary files a/theme/blue/fonts/socicon-webfont.ttf and /dev/null differ diff --git a/theme/blue/fonts/socicon-webfont.woff b/theme/blue/fonts/socicon-webfont.woff deleted file mode 100644 index c1318f3..0000000 Binary files a/theme/blue/fonts/socicon-webfont.woff and /dev/null differ diff --git a/theme/blue/fonts/socicon-webfont.woff2 b/theme/blue/fonts/socicon-webfont.woff2 deleted file mode 100644 index c5dd9dd..0000000 Binary files a/theme/blue/fonts/socicon-webfont.woff2 and /dev/null differ diff --git a/theme/blue/images/index.html b/theme/blue/images/index.html deleted file mode 100644 index c942a79..0000000 --- a/theme/blue/images/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - -403 Forbidden - - - -Directory access is forbidden.
- - - \ No newline at end of file diff --git a/theme/blue/images/large_logo.png b/theme/blue/images/large_logo.png deleted file mode 100644 index 18ffd58..0000000 Binary files a/theme/blue/images/large_logo.png and /dev/null differ diff --git a/theme/blue/images/logo.png b/theme/blue/images/logo.png deleted file mode 100644 index 2473d22..0000000 Binary files a/theme/blue/images/logo.png and /dev/null differ diff --git a/theme/blue/index.html b/theme/blue/index.html deleted file mode 100644 index 1a4a5ae..0000000 --- a/theme/blue/index.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - -Bootstrap 3 layout scaffolding grid - - - - - - - - - - - - --- - - -------Bootstrap 3 Grid
-See How it Stacks Up
- ------12 wide
---4 cols
-4 cols
-4 cols
---6 cols, 6 small cols
-6 cols, 6 small cols
---4 cols, 6 small cols-4 cols, 6 small cols-4 cols, 12 small cols---3 md cols
-3 md cols
-3 md cols
-3 md cols
---3 xs cols
-3 xs cols
-3 xs cols
-3 xs cols
- Edit on Bootply -
- - - - - - - \ No newline at end of file diff --git a/theme/blue/js/bootstrap.min.js b/theme/blue/js/bootstrap.min.js deleted file mode 100644 index 63866bc..0000000 --- a/theme/blue/js/bootstrap.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * Bootstrap v3.3.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.0",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.0",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus","focus"==b.type)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.0",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c="prev"==a?-1:1,d=this.getItemIndex(b),e=(d+c)%this.$items.length;return this.$items.eq(e)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i="next"==b?"first":"last",j=this;if(!f.length){if(!this.options.wrap)return;f=this.$element.find(".item")[i]()}if(f.hasClass("active"))return this.sliding=!1;var k=f[0],l=a.Event("slide.bs.carousel",{relatedTarget:k,direction:h});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var m=a(this.$indicators.children()[this.getItemIndex(f)]);m&&m.addClass("active")}var n=a.Event("slid.bs.carousel",{relatedTarget:k,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),j.sliding=!1,setTimeout(function(){j.$element.trigger(n)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(n)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&"show"==b&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a(this.options.trigger).filter('[href="#'+b.id+'"], [data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.0",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":a.extend({},e.data(),{trigger:this});c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.0",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(b){if(/(38|40|27|32)/.test(b.which)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var e=c(d),g=e.hasClass("open");if(!g&&27!=b.which||g&&27==b.which)return 27==b.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.divider):visible a",i=e.find('[role="menu"]'+h+', [role="listbox"]'+h);if(i.length){var j=i.index(b.target);38==b.which&&j>0&&j--,40==b.which&&j').prependTo(this.$element).on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},c.prototype.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b,g=f&&f.selector;(e||"destroy"!=b)&&(g?(e||d.data("bs.tooltip",e={}),e[g]||(e[g]=new c(this,f))):e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};c.VERSION="3.3.0",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:' ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-mp.width?"left":"left"==h&&k.left-l g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j g.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b,g=f&&f.selector;(e||"destroy"!=b)&&(g?(e||d.data("bs.popover",e={}),e[g]||(e[g]=new c(this,f))):e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.0",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:' '}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},c.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){var e=a.proxy(this.process,this);this.$body=a("body"),this.$scrollElement=a(a(c).is("body")?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.0",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b="offset",c=0;a.isWindow(this.$scrollElement[0])||(b="position",c=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var d=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+c,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){d.offsets.push(this[0]),d.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.0",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e) -}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.0",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=i?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a("body").height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); \ No newline at end of file diff --git a/theme/blue/js/index.html b/theme/blue/js/index.html deleted file mode 100644 index c942a79..0000000 --- a/theme/blue/js/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -Directory access is forbidden.
- - - \ No newline at end of file diff --git a/theme/blue/templates/article.php b/theme/blue/templates/article.php deleted file mode 100644 index 4cfb11f..0000000 --- a/theme/blue/templates/article.php +++ /dev/null @@ -1,37 +0,0 @@ - - - --- - - --------- - - \ No newline at end of file diff --git a/theme/blue/templates/category.php b/theme/blue/templates/category.php deleted file mode 100644 index d349ba8..0000000 --- a/theme/blue/templates/category.php +++ /dev/null @@ -1,47 +0,0 @@ - - - -------Latest Articles:
Categories:
-----
-- --
--- - -uri->total_segments(); - if(!is_numeric($this->uri->segment($totSegments))){ - $offset = 0; - } else if(is_numeric($this->uri->segment($totSegments))){ - $offset = $this->uri->segment($totSegments); - } - $limit = 10; -?> --------- - - \ No newline at end of file diff --git a/theme/blue/templates/error.php b/theme/blue/templates/error.php deleted file mode 100644 index a42acd9..0000000 --- a/theme/blue/templates/error.php +++ /dev/null @@ -1,24 +0,0 @@ - - - -------Latest Articles:
Categories:
--- ----- - ---
--- - ------ --Oops, there has been an error.
-Sorry this page is currently unavailable.
--- - - \ No newline at end of file diff --git a/theme/blue/templates/footer.php b/theme/blue/templates/footer.php deleted file mode 100644 index ba94a4d..0000000 --- a/theme/blue/templates/footer.php +++ /dev/null @@ -1,20 +0,0 @@ - -
--- - - - - - ---- --- --