text: (function(core) {
  
      if (typeof define == "function" && define.amd) { // AMD
          define("uikit", function(){
  
              var uikit = core(window, window.jQuery, window.document);
  
              uikit.load = function(res, req, onload, config) {
  
                  var resources = res.split(','), load = [], i, base = (config.config && config.config.uikit && config.config.uikit.base ? config.config.uikit.base : "").replace(/\/+$/g, "");
  
                  if (!base) {
                      throw new Error( "Please define base path to UIkit in the requirejs config." );
                  }
  
                  for (i = 0; i < resources.length; i += 1) {
                      var resource = resources[i].replace(/\./g, '/');
                      load.push(base+'/js/addons/'+resource);
                  }
  
                  req(load, function() {
                      onload(uikit);
                  });
              };
  
              return uikit;
          });
      }
  
      if (!window.jQuery) {
          throw new Error( "UIkit requires jQuery" );
      }
  
      if (window && window.jQuery) {
          core(window, window.jQuery, window.document);
      }
  
  
  })(function(global, $, doc) {
  
      "use strict";
  
      var UI = $.UIkit || {}, $html = $("html"), $win = $(window), $doc = $(document);
  
      if (UI.fn) {
          return UI;
      }
  
      UI.version = '2.10.0';
      UI.$doc    = $doc;
      UI.$win    = $win;
  
      UI.fn = function(command, options) {
  
          var args = arguments, cmd = command.match(/^([a-z\-]+)(?:\.([a-z]+))?/i), component = cmd[1], method = cmd[2];
  
          if (!UI[component]) {
              $.error("UIkit component [" + component + "] does not exist.");
              return this;
          }
  
          return this.each(function() {
              var $this = $(this), data = $this.data(component);
              if (!data) $this.data(component, (data = UI[component](this, method ? undefined : options)));
              if (method) data[method].apply(data, Array.prototype.slice.call(args, 1));
          });
      };
  
  
      UI.support = {};
      UI.support.transition = (function() {
  
          var transitionEnd = (function() {
  
              var element = doc.body || doc.documentElement,
                  transEndEventNames = {
                      WebkitTransition: 'webkitTransitionEnd',
                      MozTransition: 'transitionend',
                      OTransition: 'oTransitionEnd otransitionend',
                      transition: 'transitionend'
                  }, name;
  
              for (name in transEndEventNames) {
                  if (element.style[name] !== undefined) return transEndEventNames[name];
              }
          }());
  
          return transitionEnd && { end: transitionEnd };
      })();
  
      UI.support.animation = (function() {
  
          var animationEnd = (function() {
  
              var element = doc.body || doc.documentElement,
                  animEndEventNames = {
                      WebkitAnimation: 'webkitAnimationEnd',
                      MozAnimation: 'animationend',
                      OAnimation: 'oAnimationEnd oanimationend',
                      animation: 'animationend'
                  }, name;
  
              for (name in animEndEventNames) {
                  if (element.style[name] !== undefined) return animEndEventNames[name];
              }
          }());
  
          return animationEnd && { end: animationEnd };
      })();
  
      UI.support.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function(callback){ setTimeout(callback, 1000/60); };
      UI.support.touch                 = (
          ('ontouchstart' in window && navigator.userAgent.toLowerCase().match(/mobile|tablet/)) ||
          (global.DocumentTouch && document instanceof global.DocumentTouch)  ||
          (global.navigator['msPointerEnabled'] && global.navigator['msMaxTouchPoints'] > 0) || //IE 10
          (global.navigator['pointerEnabled'] && global.navigator['maxTouchPoints'] > 0) || //IE >=11
          false
      );
      UI.support.mutationobserver = (global.MutationObserver || global.WebKitMutationObserver || null);
  
      UI.Utils = {};
  
      UI.Utils.debounce = function(func, wait, immediate) {
          var timeout;
          return function() {
              var context = this, args = arguments;
              var later = function() {
                  timeout = null;
                  if (!immediate) func.apply(context, args);
              };
              var callNow = immediate && !timeout;
              clearTimeout(timeout);
              timeout = setTimeout(later, wait);
              if (callNow) func.apply(context, args);
          };
      };
  
      UI.Utils.removeCssRules = function(selectorRegEx) {
          var idx, idxs, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref;
  
          if(!selectorRegEx) return;
  
          setTimeout(function(){
              try {
                _ref = document.styleSheets;
                for (_i = 0, _len = _ref.length; _i < _len; _i++) {
                  stylesheet = _ref[_i];
                  idxs = [];
                  stylesheet.cssRules = stylesheet.cssRules;
                  for (idx = _j = 0, _len1 = stylesheet.cssRules.length; _j < _len1; idx = ++_j) {
                    if (stylesheet.cssRules[idx].type === CSSRule.STYLE_RULE && selectorRegEx.test(stylesheet.cssRules[idx].selectorText)) {
                      idxs.unshift(idx);
                    }
                  }
                  for (_k = 0, _len2 = idxs.length; _k < _len2; _k++) {
                    stylesheet.deleteRule(idxs[_k]);
                  }
                }
              } catch (_error) {}
          }, 0);
      };
  
      UI.Utils.isInView = function(element, options) {
  
          var $element = $(element);
  
          if (!$element.is(':visible')) {
              return false;
          }
  
          var window_left = $win.scrollLeft(), window_top = $win.scrollTop(), offset = $element.offset(), left = offset.left, top = offset.top;
  
          options = $.extend({topoffset:0, leftoffset:0}, options);
  
          if (top + $element.height() >= window_top && top - options.topoffset <= window_top + $win.height() &&
              left + $element.width() >= window_left && left - options.leftoffset <= window_left + $win.width()) {
            return true;
          } else {
            return false;
          }
      };
  
      UI.Utils.checkDisplay = function(context) {
          $('[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]', context || document).trigger('uk.check.display');
      };
  
      UI.Utils.options = function(string) {
  
          if ($.isPlainObject(string)) return string;
  
          var start = (string ? string.indexOf("{") : -1), options = {};
  
          if (start != -1) {
              try {
                  options = (new Function("", "var json = " + string.substr(start) + "; return JSON.parse(JSON.stringify(json));"))();
              } catch (e) {}
          }
  
          return options;
      };
  
      UI.Utils.template = function(str, data) {
  
          var tokens = str.replace(/\n/g, '\\n').replace(/\{\{\{\s*(.+?)\s*\}\}\}/g, "{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),
              i=0, toc, cmd, prop, val, fn, output = [], openblocks = 0;
  
          while(i < tokens.length) {
  
              toc = tokens[i];
  
              if(toc.match(/\{\{\s*(.+?)\s*\}\}/)) {
                  i = i + 1;
                  toc  = tokens[i];
                  cmd  = toc[0];
                  prop = toc.substring(toc.match(/^(\^|\#|\!|\~|\:)/) ? 1:0);
  
                  switch(cmd) {
                      case '~':
                          output.push("for(var $i=0;$i<"+prop+".length;$i++) { var $item = "+prop+"[$i];");
                          openblocks++;
                          break;
                      case ':':
                          output.push("for(var $key in "+prop+") { var $val = "+prop+"[$key];");
                          openblocks++;
                          break;
                      case '#':
                          output.push("if("+prop+") {");
                          openblocks++;
                          break;
                      case '^':
                          output.push("if(!"+prop+") {");
                          openblocks++;
                          break;
                      case '/':
                          output.push("}");
                          openblocks--;
                          break;
                      case '!':
                          output.push("__ret.push("+prop+");");
                          break;
                      default:
                          output.push("__ret.push(escape("+prop+"));");
                          break;
                  }
              } else {
                  output.push("__ret.push('"+toc.replace(/\'/g, "\\'")+"');");
              }
              i = i + 1;
          }
  
          fn  = [
              'var __ret = [];',
              'try {',
              'with($data){', (!openblocks ? output.join('') : '__ret = ["Not all blocks are closed correctly."]'), '};',
              '}catch(e){__ret = [e.message];}',
              'return __ret.join("").replace(/\\n\\n/g, "\\n");',
              "function escape(html) { return String(html).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');}"
          ].join("\n");
  
          var func = new Function('$data', fn);
          return data ? func(data) : func;
      };
  
      UI.Utils.events       = {};
      UI.Utils.events.click = UI.support.touch ? 'tap' : 'click';
  
      $.UIkit = UI;
      $.fn.uk = UI.fn;
  
      $.UIkit.langdirection = $html.attr("dir") == "rtl" ? "right" : "left";
  
  
      // DOM mutation save ready helper function
  
      UI.domObservers = [];
  
      UI.domObserve = function(selector, fn) {
  
          if(!UI.support.mutationobserver) return;
  
          $(selector).each(function() {
  
              var element = this;
  
              try {
  
                  var observer = new UI.support.mutationobserver(UI.Utils.debounce(function(mutations) {
                      fn.apply(element, []);
                      $(element).trigger('uk.dom.changed');
                  }, 50));
  
                  // pass in the target node, as well as the observer options
                  observer.observe(element, { childList: true, subtree: true });
  
              } catch(e) {}
          });
      };
  
      UI.ready = function(fn) {
          $(function() { fn(document); });
          UI.domObservers.push(fn);
      };
  
      $doc.on('uk.domready', function(){
          UI.domObservers.forEach(function(fn){
              fn(document);
          });
          $doc.trigger('uk.dom.changed');
      });
  
      $(function(){
  
          // custom scroll observer
          setInterval((function(){
  
              var memory = {x: window.pageXOffset, y:window.pageYOffset};
  
              var fn = function(){
  
                  if (memory.x != window.pageXOffset || memory.y != window.pageYOffset) {
                      memory = {x: window.pageXOffset, y:window.pageYOffset};
                      $doc.trigger('uk-scroll', [memory]);
                  }
              };
  
              if ($.UIkit.support.touch) {
                  $doc.on('touchmove touchend MSPointerMove MSPointerUp', fn);
              }
  
              if(memory.x || memory.y) fn();
  
              return fn;
  
          })(), 15);
  
          // Check for dom modifications
          UI.domObserve('[data-uk-observe]', function() {
  
              var ele = this;
  
              UI.domObservers.forEach(function(fn){
                  fn(ele);
              });
          });
  
  
          if (UI.support.touch) {
  
              // remove css hover rules for touch devices
              // UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/);
  
              // viewport unit fix for uk-height-viewport - should be fixed in iOS 8
              if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {
  
                  UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){
  
                      var fn = function() {
                          $('.uk-height-viewport').css('height', window.innerHeight);
                          return fn;
                      };
  
                      return fn();
  
                  })(), 100));
              }
          }
      });
  
      // add touch identifier class
      $html.addClass(UI.support.touch ? "uk-touch" : "uk-notouch");
  
      // add uk-hover class on tap to support overlays on touch devices
      if (UI.support.touch) {
  
          var hoverset = false, selector = '.uk-overlay, .uk-overlay-toggle, .uk-has-hover', exclude;
  
          $doc.on('touchstart MSPointerDown', selector, function() {
  
              if(hoverset) $('.uk-hover').removeClass('uk-hover');
  
              hoverset = $(this).addClass('uk-hover');
  
          }).on('touchend MSPointerUp', function(e) {
  
              exclude = $(e.target).parents(selector);
  
              if (hoverset) hoverset.not(exclude).removeClass('uk-hover');
          });
      }
  
      return UI;
  });