소스 검색

update wangEditor

gsw945 4 년 전
부모
커밋
354f32be38

+ 4 - 0
README.md

@@ -205,6 +205,10 @@ docker run -p 8181:8181 --name mindoc -e DB_ADAPTER=mysql -e MYSQL_PORT_3306_TCP
 - ~~to-markdown~~[Turndown](https://github.com/domchristie/turndown) HTML转Markdown库
 - ~~quill 富文本编辑器~~
 - [wangEditor](https://github.com/wangeditor-team/wangEditor) 富文本编辑器
+  - 参考
+    - [wangEditor v4.7 富文本编辑器教程](https://www.bookstack.cn/books/wangeditor-4.7-zh)
+    - [扩展菜单注册太过繁琐 #2493](https://github.com/wangeditor-team/wangEditor/issues/2493)
+  - 工具: `https://babeljs.io/repl` + `@babel/plugin-transform-classes`
 - [Vue.js](https://github.com/vuejs/vue) 框架
 
 

+ 1 - 1
controllers/BookController.go

@@ -164,7 +164,7 @@ func (c *BookController) SaveBook() {
 	if !models.NewItemsets().Exist(itemId) {
 		c.JsonResult(6006, i18n.Tr(c.Lang, "message.project_space_not_exist"))
 	}
-	if editor != "markdown" && editor != "html" {
+	if editor != "markdown" && editor != "html" && editor != "new_html" {
 		editor = "markdown"
 	}
 

+ 2 - 0
controllers/DocumentController.go

@@ -223,6 +223,8 @@ func (c *DocumentController) Edit() {
 	if bookResult.Editor == "markdown" {
 		c.TplName = "document/markdown_edit_template.tpl"
 	} else if bookResult.Editor == "html" {
+		c.TplName = "document/html_edit_template.tpl"
+	} else if bookResult.Editor == "new_html" {
 		c.TplName = "document/new_html_edit_template.tpl"
 	} else {
 		c.TplName = "document/" + bookResult.Editor + "_edit_template.tpl"

+ 106 - 0
static/js/class2browser.js

@@ -0,0 +1,106 @@
+/**
+ * 将es6的class语法转为浏览器可以直接使用的语法,
+ * 取自 https://babeljs.io/repl
+ * 需要添加 @babel/plugin-transform-classes
+ * 是要到的方法添加了`c2b`前缀
+ */
+
+function c2b_classCallCheck(instance, Constructor) {
+  if (!(instance instanceof Constructor)) {
+    throw new TypeError("Cannot call a class as a function");
+  }
+}
+
+function _defineProperties(target, props) {
+  for (var i = 0; i < props.length; i++) {
+    var descriptor = props[i];
+    descriptor.enumerable = descriptor.enumerable || false;
+    descriptor.configurable = true;
+    if ("value" in descriptor) descriptor.writable = true;
+    Object.defineProperty(target, descriptor.key, descriptor);
+  }
+}
+
+function c2b_createClass(Constructor, protoProps, staticProps) {
+  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
+  if (staticProps) _defineProperties(Constructor, staticProps);
+  return Constructor;
+}
+
+function c2b_inherits(subClass, superClass) {
+  if (typeof superClass !== "function" && superClass !== null) {
+    throw new TypeError("Super expression must either be null or a function");
+  }
+  subClass.prototype = Object.create(superClass && superClass.prototype, {
+    constructor: { value: subClass, writable: true, configurable: true }
+  });
+  if (superClass) _setPrototypeOf(subClass, superClass);
+}
+
+function _setPrototypeOf(o, p) {
+  _setPrototypeOf =
+    Object.setPrototypeOf ||
+    function _setPrototypeOf(o, p) {
+      o.__proto__ = p;
+      return o;
+    };
+  return _setPrototypeOf(o, p);
+}
+
+function c2b_createSuper(Derived) {
+  var hasNativeReflectConstruct = _isNativeReflectConstruct();
+  return function _createSuperInternal() {
+    var Super = _getPrototypeOf(Derived),
+      result;
+    if (hasNativeReflectConstruct) {
+      var NewTarget = _getPrototypeOf(this).constructor;
+      result = Reflect.construct(Super, arguments, NewTarget);
+    } else {
+      result = Super.apply(this, arguments);
+    }
+    return _possibleConstructorReturn(this, result);
+  };
+}
+
+function _possibleConstructorReturn(self, call) {
+  if (call && (typeof call === "object" || typeof call === "function")) {
+    return call;
+  } else if (call !== void 0) {
+    throw new TypeError(
+      "Derived constructors may only return object or undefined"
+    );
+  }
+  return _assertThisInitialized(self);
+}
+
+function _assertThisInitialized(self) {
+  if (self === void 0) {
+    throw new ReferenceError(
+      "this hasn't been initialised - super() hasn't been called"
+    );
+  }
+  return self;
+}
+
+function _isNativeReflectConstruct() {
+  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
+  if (Reflect.construct.sham) return false;
+  if (typeof Proxy === "function") return true;
+  try {
+    Boolean.prototype.valueOf.call(
+      Reflect.construct(Boolean, [], function () {})
+    );
+    return true;
+  } catch (e) {
+    return false;
+  }
+}
+
+function _getPrototypeOf(o) {
+  _getPrototypeOf = Object.setPrototypeOf
+    ? Object.getPrototypeOf
+    : function _getPrototypeOf(o) {
+        return o.__proto__ || Object.getPrototypeOf(o);
+      };
+  return _getPrototypeOf(o);
+}

+ 67 - 30
static/js/html-editor.js

@@ -1,21 +1,60 @@
 $(function () {
-    wangEditor.config.mapAk = window.baiduMapKey;
     window.addDocumentModalFormHtml = $(this).find("form").html();
-    wangEditor.config.printLog = false;
-    window.editor = new wangEditor('htmlEditor');
+    window.editor = new wangEditor('#htmlEditor');
+    editor.config.mapAk = window.baiduMapKey;
+    editor.config.printLog = false;
+    editor.config.showMenuTooltips = true
+    editor.config.menuTooltipPosition = 'down'
     editor.config.uploadImgUrl = window.imageUploadURL;
     editor.config.uploadImgFileName = "editormd-image-file";
     editor.config.uploadParams = {
         "editor" : "wangEditor"
     };
-    wangEditor.config.menus.splice(0,0,"|");
-    wangEditor.config.menus.splice(0,0,"history");
-    wangEditor.config.menus.splice(0,0,"save");
-    wangEditor.config.menus.splice(0,0,"release");
-    wangEditor.config.menus.splice(29,0,"attach")
+    editor.config.uploadImgServer = window.imageUploadURL;
+    editor.config.customUploadImg = function (resultFiles, insertImgFn) {
+        // resultFiles 是 input 中选中的文件列表
+        // insertImgFn 是获取图片 url 后,插入到编辑器的方法
+        var file = resultFiles[0];
+        // file type is only image.
+        if (/^image\//.test(file.type)) {
+            var form = new FormData();
+            form.append('editormd-image-file', file, file.name);
+
+            var layerIndex = 0;
+
+            $.ajax({
+                url: window.imageUploadURL,
+                type: "POST",
+                dataType: "json",
+                data: form,
+                processData: false,
+                contentType: false,
+                error: function() {
+                    layer.close(layerIndex);
+                    layer.msg("图片上传失败");
+                },
+                success: function(data) {
+                    layer.close(layerIndex);
+                    if(data.errcode !== 0){
+                        layer.msg(data.message);
+                    }else{
+                        insertImgFn(data.url);
+                    }
+                }
+            });
+        } else {
+            console.warn('You could only upload images.');
+        }
+    };
+    /*
+    editor.config.menus.splice(0,0,"|");
+    editor.config.menus.splice(0,0,"history");
+    editor.config.menus.splice(0,0,"save");
+    editor.config.menus.splice(0,0,"release");
+    editor.config.menus.splice(29,0,"attach")
 
     //移除地图、背景色
-    editor.config.menus = $.map(wangEditor.config.menus, function(item, key) {
+    editor.config.menus = $.map(editor.config.menus, function(item, key) {
 
         if (item === 'fullscreen') {
             return null;
@@ -23,16 +62,8 @@ $(function () {
 
         return item;
     });
-
-    window.editor.ready(function () {
-        if(window.documentCategory.length > 0){
-            var item =  window.documentCategory[0];
-            var $select_node = { node : {id : item.id}};
-            loadDocument($select_node);
-        }
-
-    });
-
+    */
+    /*
     window.editor.config.uploadImgFns.onload = function (resultText, xhr) {
         // resultText 服务器端返回的text
         // xhr 是 xmlHttpRequest 对象,IE8、9中不支持
@@ -47,13 +78,15 @@ $(function () {
             layer.msg(res.message);
         }
     };
+    */
 
-    window.editor.onchange = function () {
+    window.editor.config.onchange = function (newHtml) {
+        var saveMenu = window.editor.menus.menuList.find((item) => item.key == 'save');
         // 判断内容是否改变
-        if (window.source !== this.$txt.html()) {
-            window.editor.menus.save.$domNormal.addClass('selected');
+        if (window.source !== window.editor.txt.html()) {
+            saveMenu.$elem.addClass('selected');
         } else {
-            window.editor.menus.save.$domNormal.removeClass('selected');
+            saveMenu.$elem.removeClass('selected');
         }
     };
 
@@ -62,7 +95,11 @@ $(function () {
 
     $("#htmlEditor").css("height","100%");
 
-
+    if(window.documentCategory.length > 0){
+        var item =  window.documentCategory[0];
+        var $select_node = { node : {id : item.id}};
+        loadDocument($select_node);
+    }
 
     /***
      * 加载指定的文档到编辑器中
@@ -78,8 +115,8 @@ $(function () {
 
             if(res.errcode === 0){
                 window.isLoad = true;
-                window.editor.clear();
-                window.editor.$txt.html(res.data.content);
+                window.editor.txt.clear();
+                window.editor.txt.html(res.data.content);
                 // 将原始内容备份
                 window.source = res.data.content;
                 var node = { "id" : res.data.doc_id,'parent' : res.data.parent_id === 0 ? '#' : res.data.parent_id ,"text" : res.data.doc_name,"identify" : res.data.identify,"version" : res.data.version};
@@ -105,7 +142,7 @@ $(function () {
         var index = null;
         var node = window.selectNode;
 
-        var html = window.editor.$txt.html() ;
+        var html = window.editor.txt.html() ;
 
         var content = "";
         if($.trim(html) !== ""){
@@ -149,7 +186,7 @@ $(function () {
                     // 更新内容备份
                     window.source = res.data.content;
                     // 触发编辑器 onchange 回调函数
-                    window.editor.onchange();
+                    window.editor.config.onchange();
                     if(typeof callback === "function"){
                         callback();
                     }
@@ -267,7 +304,7 @@ $(function () {
     }).on('loaded.jstree', function () {
         window.treeCatalog = $(this).jstree();
     }).on('select_node.jstree', function (node, selected, event) {
-        if(window.editor.menus.save.$domNormal.hasClass('selected')) {
+        if(window.editor.menus.menuList.find((item) => item.key == 'save').$elem.hasClass('selected')) {
             if(confirm("编辑内容未保存,需要保存吗?")){
                 saveDocument(false,function () {
                     loadDocument(selected);
@@ -283,7 +320,7 @@ $(function () {
 
     window.releaseBook = function () {
         if(Object.prototype.toString.call(window.documentCategory) === '[object Array]' && window.documentCategory.length > 0){
-            if(window.editor.menus.save.$domNormal.hasClass('selected')) {
+            if(window.editor.menus.menuList.find((item) => item.key == 'save').$elem.hasClass('selected')) {
                 if(confirm("编辑内容未保存,需要保存吗?")) {
                     saveDocument();
                 }

+ 42 - 0
static/js/wangEditor-plugins/save-menu.js

@@ -0,0 +1,42 @@
+(function () {
+
+    // 获取 wangEditor 构造函数和 jquery
+    var E = window.wangEditor;
+    var $ = window.jQuery;
+
+    let SaveMenu = (function (_BtnMenu) {
+      c2b_inherits(SaveMenu, _BtnMenu);
+
+      var _super = c2b_createSuper(SaveMenu);
+
+      function SaveMenu(editor) {
+        c2b_classCallCheck(this, SaveMenu);
+
+        const $elem = E.$(`<div class="w-e-menu" data-title="保存">
+                    <i class="fa fa-floppy-o" aria-hidden="true"></i>
+                </div>`);
+        return _super.call(this, $elem, editor);
+      }
+
+      c2b_createClass(SaveMenu, [
+        {
+          key: "clickHandler",
+          value: function clickHandler() {
+            window.saveDocument();
+          }
+        },
+        {
+          key: "tryChangeActive",
+          value: function tryChangeActive() {
+            // this.active();
+          }
+        }
+      ]);
+
+      return SaveMenu;
+    })(E.BtnMenu);
+
+
+    var menuKey = 'save';
+    E.registerMenu(menuKey, SaveMenu);
+})();

+ 0 - 831
static/wangEditor/css/wangEditor.css

@@ -1,831 +0,0 @@
-/* 编辑器边框颜色 */
-/* 菜单颜色、上边框颜色 */
-/* 菜单选中状态的颜色 */
-/* input focus 时的颜色 */
-/* 按钮颜色 */
-/* tab selected 状态下的颜色 */
-.wangEditor-container {
-  position: relative;
-  background-color: #fff;
-  border: 1px solid #ccc;
-  z-index: 1;
-  width: 100%;
-}
-.wangEditor-container a:focus,
-.wangEditor-container button:focus {
-  outline: none;
-}
-.wangEditor-container,
-.wangEditor-container * {
-  margin: 0;
-  padding: 0;
-  box-sizing: border-box;
-  line-height: 1;
-}
-.wangEditor-container img {
-  border: none;
-}
-.wangEditor-container .clearfix:after {
-  content: '';
-  display: table;
-  clear: both;
-}
-.wangEditor-container .clearfix {
-  *zoom: 1;
-}
-.wangEditor-container textarea {
-  border: none;
-}
-.wangEditor-container textarea:focus {
-  outline: none;
-}
-.wangEditor-container .height-tip {
-  position: absolute;
-  width: 3px;
-  background-color: #ccc;
-  left: 0;
-  transition: top .2s;
-}
-.wangEditor-container .txt-toolbar {
-  position: absolute;
-  background-color: #fff;
-  padding: 3px 5px;
-  border-top: 2px solid #666;
-  box-shadow: 1px 3px 3px #999;
-  border-left: 1px\9 solid\9 #ccc\9;
-  border-bottom: 1px\9 solid\9 #999\9;
-  border-right: 1px\9 solid\9 #999\9;
-}
-.wangEditor-container .txt-toolbar .tip-triangle {
-  display: block;
-  position: absolute;
-  width: 0;
-  height: 0;
-  border: 5px solid;
-  border-color: transparent transparent #666 transparent;
-  top: -12px;
-  left: 50%;
-  margin-left: -5px;
-}
-.wangEditor-container .txt-toolbar a {
-  color: #666;
-  display: inline-block;
-  margin: 0 3px;
-  padding: 5px;
-  text-decoration: none;
-  border-radius: 3px;
-}
-.wangEditor-container .txt-toolbar a:hover {
-  background-color: #f1f1f1;
-}
-.wangEditor-container .img-drag-point {
-  display: block;
-  position: absolute;
-  width: 12px;
-  height: 12px;
-  border-radius: 50%;
-  cursor: se-resize;
-  background-color: #666;
-  margin-left: -6px;
-  margin-top: -6px;
-  box-shadow: 1px 1px 5px #999;
-}
-.wangEditor-container .wangEditor-upload-progress {
-  position: absolute;
-  height: 1px;
-  background: #1e88e5;
-  width: 0;
-  display: none;
-  -webkit-transition: width .5s;
-  -o-transition: width .5s;
-  transition: width .5s;
-}
-.wangEditor-fullscreen {
-  position: fixed;
-  top: 0;
-  bottom: 0;
-  left: 0;
-  right: 0;
-}
-.wangEditor-container .code-textarea {
-  resize: none;
-  width: 100%;
-  font-size: 14px;
-  line-height: 1.5;
-  font-family: 'Verdana';
-  color: #333;
-  padding: 0 15px 0 15px;
-}
-.wangEditor-menu-container {
-  width: 100%;
-  border-bottom: 1px solid #f1f1f1;
-  background-color: #fff;
-}
-.wangEditor-menu-container a {
-  text-decoration: none;
-}
-.wangEditor-menu-container .menu-group {
-  float: left;
-  padding: 0 8px;
-  border-right: 1px solid #f1f1f1;
-}
-.wangEditor-menu-container .menu-item {
-  float: left;
-  position: relative;
-  text-align: center;
-  height: 31px;
-  width: 35px;
-}
-.wangEditor-menu-container .menu-item:hover {
-  background-color: #f1f1f1;
-}
-.wangEditor-menu-container .menu-item a {
-  display: block;
-  text-align: center;
-  color: #666;
-  width: 100%;
-  padding: 8px 0;
-  font-size: 0.9em;
-}
-.wangEditor-menu-container .menu-item .selected {
-  color: #1e88e5;
-}
-.wangEditor-menu-container .menu-item .active {
-  background-color: #f1f1f1;
-}
-.wangEditor-menu-container .menu-item .disable {
-  opacity: 0.5;
-  filter: alpha(opacity=50);
-}
-.wangEditor-menu-container .menu-tip {
-  display: block;
-  position: absolute;
-  z-index: 20;
-  width: 60px;
-  text-align: center;
-  background-color: #666;
-  color: #fff;
-  padding: 7px 0;
-  font-size: 12px;
-  top: 100%;
-  left: 50%;
-  margin-left: -30px;
-  border-radius: 2px;
-  box-shadow: 1px 1px 5px #999;
-  display: none;
-  /*// 小三角
-        .tip-triangle {
-            display: block;
-            position: absolute;
-            width: 0;
-            height: 0;
-            border:5px solid;
-            border-color: transparent transparent @fore-color transparent;
-            top: -10px;
-            left: 50%;
-            margin-left: -5px;
-        }*/
-}
-.wangEditor-menu-container .menu-tip-40 {
-  width: 40px;
-  margin-left: -20px;
-}
-.wangEditor-menu-container .menu-tip-50 {
-  width: 50px;
-  margin-left: -25px;
-}
-.wangEditor-menu-shadow {
-  /*border-bottom-width: 0;*/
-  border-bottom: 1px\9 solid\9 #f1f1f1\9;
-  box-shadow: 0 1px 3px #999;
-}
-.wangEditor-container .wangEditor-txt {
-  width: 100%;
-  text-align: left;
-  padding: 15px;
-  padding-top: 0;
-  margin-top: 5px;
-  overflow-y: auto;
-}
-.wangEditor-container .wangEditor-txt p,
-.wangEditor-container .wangEditor-txt h1,
-.wangEditor-container .wangEditor-txt h2,
-.wangEditor-container .wangEditor-txt h3,
-.wangEditor-container .wangEditor-txt h4,
-.wangEditor-container .wangEditor-txt h5 {
-  margin: 10px 0;
-  line-height: 1.8;
-}
-.wangEditor-container .wangEditor-txt p *,
-.wangEditor-container .wangEditor-txt h1 *,
-.wangEditor-container .wangEditor-txt h2 *,
-.wangEditor-container .wangEditor-txt h3 *,
-.wangEditor-container .wangEditor-txt h4 *,
-.wangEditor-container .wangEditor-txt h5 * {
-  line-height: 1.8;
-}
-.wangEditor-container .wangEditor-txt ul,
-.wangEditor-container .wangEditor-txt ol {
-  padding-left: 20px;
-}
-.wangEditor-container .wangEditor-txt img {
-  cursor: pointer;
-}
-.wangEditor-container .wangEditor-txt img.clicked {
-  box-shadow: 1px 1px 10px #999;
-}
-.wangEditor-container .wangEditor-txt table.clicked {
-  box-shadow: 1px 1px 10px #999;
-}
-.wangEditor-container .wangEditor-txt pre code {
-  line-height: 1.5;
-}
-.wangEditor-container .wangEditor-txt:focus {
-  outline: none;
-}
-.wangEditor-container .wangEditor-txt blockquote {
-  display: block;
-  border-left: 8px solid #d0e5f2;
-  padding: 5px 10px;
-  margin: 10px 0;
-  line-height: 1.4;
-  font-size: 100%;
-  background-color: #f1f1f1;
-}
-.wangEditor-container .wangEditor-txt table {
-  border: none;
-  border-collapse: collapse;
-}
-.wangEditor-container .wangEditor-txt table td,
-.wangEditor-container .wangEditor-txt table th {
-  border: 1px solid #999;
-  padding: 3px 5px;
-  min-width: 50px;
-  height: 20px;
-}
-.wangEditor-container .wangEditor-txt pre {
-  border: 1px solid #ccc;
-  background-color: #f8f8f8;
-  padding: 10px;
-  margin: 5px 0px;
-  font-size: 0.8em;
-  border-radius: 3px;
-}
-.wangEditor-drop-list {
-  display: none;
-  position: absolute;
-  background-color: #fff;
-  overflow: hidden;
-  z-index: 10;
-  transition: height .7s;
-  border-top: 1px solid #f1f1f1;
-  box-shadow: 1px 3px 3px #999;
-  border-left: 1px\9 solid\9 #ccc\9;
-  border-bottom: 1px\9 solid\9 #999\9;
-  border-right: 1px\9 solid\9 #999\9;
-}
-.wangEditor-drop-list a {
-  text-decoration: none;
-  display: block;
-  color: #666;
-  padding: 3px 5px;
-}
-.wangEditor-drop-list a:hover {
-  background-color: #f1f1f1;
-}
-.wangEditor-drop-panel,
-.txt-toolbar {
-  display: none;
-  position: absolute;
-  padding: 10px;
-  font-size: 14px;
-  /*border: 1px\9 solid\9 #cccccc\9;*/
-  background-color: #fff;
-  z-index: 10;
-  border-top: 2px solid #666;
-  box-shadow: 1px 3px 3px #999;
-  border-left: 1px\9 solid\9 #ccc\9;
-  border-bottom: 1px\9 solid\9 #999\9;
-  border-right: 1px\9 solid\9 #999\9;
-}
-.wangEditor-drop-panel .tip-triangle,
-.txt-toolbar .tip-triangle {
-  display: block;
-  position: absolute;
-  width: 0;
-  height: 0;
-  border: 5px solid;
-  border-color: transparent transparent #666 transparent;
-  top: -12px;
-  left: 50%;
-  margin-left: -5px;
-}
-.wangEditor-drop-panel a,
-.txt-toolbar a {
-  text-decoration: none;
-}
-.wangEditor-drop-panel input[type=text],
-.txt-toolbar input[type=text] {
-  border: none;
-  border-bottom: 1px solid #ccc;
-  font-size: 14px;
-  height: 20px;
-  color: #333;
-  padding: 3px 0;
-}
-.wangEditor-drop-panel input[type=text]:focus,
-.txt-toolbar input[type=text]:focus {
-  outline: none;
-  border-bottom: 2px solid #1e88e5;
-}
-.wangEditor-drop-panel input[type=text].block,
-.txt-toolbar input[type=text].block {
-  display: block;
-  width: 100%;
-}
-.wangEditor-drop-panel textarea,
-.txt-toolbar textarea {
-  border: 1px solid #ccc;
-}
-.wangEditor-drop-panel textarea:focus,
-.txt-toolbar textarea:focus {
-  outline: none;
-  border-color: #1e88e5;
-}
-.wangEditor-drop-panel button,
-.txt-toolbar button {
-  font-size: 14px;
-  color: #1e88e5;
-  border: none;
-  padding: 10px;
-  background-color: #fff;
-  cursor: pointer;
-  border-radius: 3px;
-}
-.wangEditor-drop-panel button:hover,
-.txt-toolbar button:hover {
-  background-color: #f1f1f1;
-}
-.wangEditor-drop-panel button:focus,
-.txt-toolbar button:focus {
-  outline: none;
-}
-.wangEditor-drop-panel button.right,
-.txt-toolbar button.right {
-  float: right;
-  margin-left: 10px;
-}
-.wangEditor-drop-panel button.gray,
-.txt-toolbar button.gray {
-  color: #999;
-}
-.wangEditor-drop-panel button.link,
-.txt-toolbar button.link {
-  padding: 5px 10px;
-}
-.wangEditor-drop-panel button.link:hover,
-.txt-toolbar button.link:hover {
-  background-color: #fff;
-  text-decoration: underline;
-}
-.wangEditor-drop-panel .color-item,
-.txt-toolbar .color-item {
-  display: block;
-  float: left;
-  width: 25px;
-  height: 25px;
-  text-align: center;
-  padding: 2px;
-  border-radius: 2px;
-  text-decoration: underline;
-}
-.wangEditor-drop-panel .color-item:hover,
-.txt-toolbar .color-item:hover {
-  background-color: #f1f1f1;
-}
-.wangEditor-drop-panel .list-menu-item,
-.txt-toolbar .list-menu-item {
-  display: block;
-  float: left;
-  color: #333;
-  padding: 5px 5px;
-  border-radius: 2px;
-}
-.wangEditor-drop-panel .list-menu-item:hover,
-.txt-toolbar .list-menu-item:hover {
-  background-color: #f1f1f1;
-}
-.wangEditor-drop-panel table.choose-table,
-.txt-toolbar table.choose-table {
-  border: none;
-  border-collapse: collapse;
-}
-.wangEditor-drop-panel table.choose-table td,
-.txt-toolbar table.choose-table td {
-  border: 1px solid #ccc;
-  width: 16px;
-  height: 12px;
-}
-.wangEditor-drop-panel table.choose-table td.active,
-.txt-toolbar table.choose-table td.active {
-  background-color: #ccc;
-  opacity: .5;
-  filter: alpha(opacity=50);
-}
-.wangEditor-drop-panel .panel-tab .tab-container,
-.txt-toolbar .panel-tab .tab-container {
-  margin-bottom: 5px;
-}
-.wangEditor-drop-panel .panel-tab .tab-container a,
-.txt-toolbar .panel-tab .tab-container a {
-  display: inline-block;
-  color: #999;
-  text-align: center;
-  margin: 0 5px;
-  padding: 5px 5px;
-}
-.wangEditor-drop-panel .panel-tab .tab-container a.selected,
-.txt-toolbar .panel-tab .tab-container a.selected {
-  color: #1e88e5;
-  border-bottom: 2px solid #1e88e5;
-}
-.wangEditor-drop-panel .panel-tab .content-container .content,
-.txt-toolbar .panel-tab .content-container .content {
-  display: none;
-}
-.wangEditor-drop-panel .panel-tab .content-container .content a,
-.txt-toolbar .panel-tab .content-container .content a {
-  display: inline-block;
-  margin: 2px;
-  padding: 2px;
-  border-radius: 2px;
-}
-.wangEditor-drop-panel .panel-tab .content-container .content a:hover,
-.txt-toolbar .panel-tab .content-container .content a:hover {
-  background-color: #f1f1f1;
-}
-.wangEditor-drop-panel .panel-tab .content-container .selected,
-.txt-toolbar .panel-tab .content-container .selected {
-  display: block;
-}
-.wangEditor-drop-panel .panel-tab .emotion-content-container,
-.txt-toolbar .panel-tab .emotion-content-container {
-  height: 200px;
-  overflow-y: auto;
-}
-.wangEditor-drop-panel .upload-icon-container,
-.txt-toolbar .upload-icon-container {
-  color: #ccc;
-  text-align: center;
-  margin: 20px 20px 15px 20px !important;
-  padding: 5px !important;
-  font-size: 65px;
-  cursor: pointer;
-  border: 2px dotted #f1f1f1;
-  display: block !important;
-}
-.wangEditor-drop-panel .upload-icon-container:hover,
-.txt-toolbar .upload-icon-container:hover {
-  color: #666;
-  border-color: #ccc;
-}
-.wangEditor-modal {
-  position: absolute;
-  top: 50%;
-  left: 50%;
-  background-color: #fff;
-  border-top: 1px solid #f1f1f1;
-  box-shadow: 1px 3px 3px #999;
-  border-top: 1px\9 solid\9 #ccc\9;
-  border-left: 1px\9 solid\9 #ccc\9;
-  border-bottom: 1px\9 solid\9 #999\9;
-  border-right: 1px\9 solid\9 #999\9;
-}
-.wangEditor-modal .wangEditor-modal-close {
-  position: absolute;
-  top: 0;
-  right: 0;
-  margin-top: -25px;
-  margin-right: -25px;
-  font-size: 1.5em;
-  color: #666;
-  cursor: pointer;
-}
-@font-face {
-  font-family: 'icomoon';
-  src: url('../fonts/icomoon.eot?-qdfu1s');
-  src: url('../fonts/icomoon.eot?#iefix-qdfu1s') format('embedded-opentype'), url('../fonts/icomoon.ttf?-qdfu1s') format('truetype'), url('../fonts/icomoon.woff?-qdfu1s') format('woff'), url('../fonts/icomoon.svg?-qdfu1s#icomoon') format('svg');
-  font-weight: normal;
-  font-style: normal;
-}
-[class^="wangeditor-menu-img-"],
-[class*=" wangeditor-menu-img-"] {
-  font-family: 'icomoon';
-  speak: none;
-  font-style: normal;
-  font-weight: normal;
-  font-variant: normal;
-  text-transform: none;
-  line-height: 1;
-  /* Better Font Rendering =========== */
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-.wangeditor-menu-img-link:before {
-  content: "\e800";
-}
-.wangeditor-menu-img-unlink:before {
-  content: "\e801";
-}
-.wangeditor-menu-img-code:before {
-  content: "\e802";
-}
-.wangeditor-menu-img-cancel:before {
-  content: "\e803";
-}
-.wangeditor-menu-img-terminal:before {
-  content: "\e804";
-}
-.wangeditor-menu-img-angle-down:before {
-  content: "\e805";
-}
-.wangeditor-menu-img-font:before {
-  content: "\e806";
-}
-.wangeditor-menu-img-bold:before {
-  content: "\e807";
-}
-.wangeditor-menu-img-italic:before {
-  content: "\e808";
-}
-.wangeditor-menu-img-header:before {
-  content: "\e809";
-}
-.wangeditor-menu-img-align-left:before {
-  content: "\e80a";
-}
-.wangeditor-menu-img-align-center:before {
-  content: "\e80b";
-}
-.wangeditor-menu-img-align-right:before {
-  content: "\e80c";
-}
-.wangeditor-menu-img-list-bullet:before {
-  content: "\e80d";
-}
-.wangeditor-menu-img-indent-left:before {
-  content: "\e80e";
-}
-.wangeditor-menu-img-indent-right:before {
-  content: "\e80f";
-}
-.wangeditor-menu-img-list-numbered:before {
-  content: "\e810";
-}
-.wangeditor-menu-img-underline:before {
-  content: "\e811";
-}
-.wangeditor-menu-img-table:before {
-  content: "\e812";
-}
-.wangeditor-menu-img-eraser:before {
-  content: "\e813";
-}
-.wangeditor-menu-img-text-height:before {
-  content: "\e814";
-}
-.wangeditor-menu-img-brush:before {
-  content: "\e815";
-}
-.wangeditor-menu-img-pencil:before {
-  content: "\e816";
-}
-.wangeditor-menu-img-minus:before {
-  content: "\e817";
-}
-.wangeditor-menu-img-picture:before {
-  content: "\e818";
-}
-.wangeditor-menu-img-file-image:before {
-  content: "\e819";
-}
-.wangeditor-menu-img-cw:before {
-  content: "\e81a";
-}
-.wangeditor-menu-img-ccw:before {
-  content: "\e81b";
-}
-.wangeditor-menu-img-music:before {
-  content: "\e911";
-}
-.wangeditor-menu-img-play:before {
-  content: "\e912";
-}
-.wangeditor-menu-img-location:before {
-  content: "\e947";
-}
-.wangeditor-menu-img-happy:before {
-  content: "\e9df";
-}
-.wangeditor-menu-img-sigma:before {
-  content: "\ea67";
-}
-.wangeditor-menu-img-enlarge2:before {
-  content: "\e98b";
-}
-.wangeditor-menu-img-shrink2:before {
-  content: "\e98c";
-}
-.wangeditor-menu-img-newspaper:before {
-  content: "\e904";
-}
-.wangeditor-menu-img-camera:before {
-  content: "\e90f";
-}
-.wangeditor-menu-img-video-camera:before {
-  content: "\e914";
-}
-.wangeditor-menu-img-file-zip:before {
-  content: "\e92b";
-}
-.wangeditor-menu-img-stack:before {
-  content: "\e92e";
-}
-.wangeditor-menu-img-credit-card:before {
-  content: "\e93f";
-}
-.wangeditor-menu-img-address-book:before {
-  content: "\e944";
-}
-.wangeditor-menu-img-envelop:before {
-  content: "\e945";
-}
-.wangeditor-menu-img-drawer:before {
-  content: "\e95c";
-}
-.wangeditor-menu-img-download:before {
-  content: "\e960";
-}
-.wangeditor-menu-img-upload:before {
-  content: "\e961";
-}
-.wangeditor-menu-img-lock:before {
-  content: "\e98f";
-}
-.wangeditor-menu-img-unlocked:before {
-  content: "\e990";
-}
-.wangeditor-menu-img-wrench:before {
-  content: "\e991";
-}
-.wangeditor-menu-img-eye:before {
-  content: "\e9ce";
-}
-.wangeditor-menu-img-eye-blocked:before {
-  content: "\e9d1";
-}
-.wangeditor-menu-img-command:before {
-  content: "\ea4e";
-}
-.wangeditor-menu-img-font2:before {
-  content: "\ea5c";
-}
-.wangeditor-menu-img-libreoffice:before {
-  content: "\eade";
-}
-.wangeditor-menu-img-quotes-left:before {
-  content: "\e977";
-}
-.wangeditor-menu-img-strikethrough:before {
-  content: "\ea65";
-}
-.wangeditor-menu-img-desktop:before {
-  content: "\f108";
-}
-.wangeditor-menu-img-tablet:before {
-  content: "\f10a";
-}
-.wangeditor-menu-img-search-plus:before {
-  content: "\f00e";
-}
-.wangeditor-menu-img-search-minus:before {
-  content: "\f010";
-}
-.wangeditor-menu-img-trash-o:before {
-  content: "\f014";
-}
-.wangeditor-menu-img-align-justify:before {
-  content: "\f039";
-}
-.wangeditor-menu-img-arrows-v:before {
-  content: "\f07d";
-}
-.wangeditor-menu-img-sigma2:before {
-  content: "\ea68";
-}
-.wangeditor-menu-img-omega:before {
-  content: "\e900";
-}
-.wangeditor-menu-img-cancel-circle:before {
-  content: "\e901";
-}
-.hljs {
-  display: block;
-  overflow-x: auto;
-  padding: 0.5em;
-  color: #333;
-  background: #f8f8f8;
-  -webkit-text-size-adjust: none;
-}
-.hljs-comment,
-.diff .hljs-header {
-  color: #998;
-  font-style: italic;
-}
-.hljs-keyword,
-.css .rule .hljs-keyword,
-.hljs-winutils,
-.nginx .hljs-title,
-.hljs-subst,
-.hljs-request,
-.hljs-status {
-  color: #333;
-  font-weight: bold;
-}
-.hljs-number,
-.hljs-hexcolor,
-.ruby .hljs-constant {
-  color: #008080;
-}
-.hljs-string,
-.hljs-tag .hljs-value,
-.hljs-doctag,
-.tex .hljs-formula {
-  color: #d14;
-}
-.hljs-title,
-.hljs-id,
-.scss .hljs-preprocessor {
-  color: #900;
-  font-weight: bold;
-}
-.hljs-list .hljs-keyword,
-.hljs-subst {
-  font-weight: normal;
-}
-.hljs-class .hljs-title,
-.hljs-type,
-.vhdl .hljs-literal,
-.tex .hljs-command {
-  color: #458;
-  font-weight: bold;
-}
-.hljs-tag,
-.hljs-tag .hljs-title,
-.hljs-rule .hljs-property,
-.django .hljs-tag .hljs-keyword {
-  color: #000080;
-  font-weight: normal;
-}
-.hljs-attribute,
-.hljs-variable,
-.lisp .hljs-body,
-.hljs-name {
-  color: #008080;
-}
-.hljs-regexp {
-  color: #009926;
-}
-.hljs-symbol,
-.ruby .hljs-symbol .hljs-string,
-.lisp .hljs-keyword,
-.clojure .hljs-keyword,
-.scheme .hljs-keyword,
-.tex .hljs-special,
-.hljs-prompt {
-  color: #990073;
-}
-.hljs-built_in {
-  color: #0086b3;
-}
-.hljs-preprocessor,
-.hljs-pragma,
-.hljs-pi,
-.hljs-doctype,
-.hljs-shebang,
-.hljs-cdata {
-  color: #999;
-  font-weight: bold;
-}
-.hljs-deletion {
-  background: #fdd;
-}
-.hljs-addition {
-  background: #dfd;
-}
-.diff .hljs-change {
-  background: #0086b3;
-}
-.hljs-chunk {
-  color: #aaa;
-}

+ 0 - 810
static/wangEditor/css/wangEditor.less

@@ -1,810 +0,0 @@
-
-// ---------- begin 全局颜色配置 ------------
-
-/* 编辑器边框颜色 */
-@border-color: #ccc;
-
-/* 菜单颜色、上边框颜色 */
-@fore-color: #666;
-
-/* 菜单选中状态的颜色 */
-@selected-color: #1e88e5;
-
-/* input focus 时的颜色 */
-@focus-input-color: #1e88e5;
-
-/* 按钮颜色 */
-@button-color: #1e88e5;
-
-/* tab selected 状态下的颜色 */
-@selected-tab-color: #1e88e5;
-
-// ---------- end 全局颜色配置 ------------
-
-
-.wangEditor-container {
-    position: relative;
-    background-color: #fff;
-    border: 1px solid @border-color;
-    z-index: 1;
-    width: 100%;
-
-    a:focus,
-    button:focus{
-        outline:none;
-    }
-
-    &,* {
-        margin: 0;
-        padding: 0;
-        box-sizing: border-box;
-        line-height: 1;
-    }
-
-    img {
-        border: none;
-    }
-
-    .clearfix:after {
-        content: '';
-        display: table;
-        clear: both;
-    }
-    .clearfix {
-        *zoom: 1;
-    }
-
-    textarea {
-        border: none;
-        &:focus{
-            outline: none; 
-        }
-    }
-
-    // 显示p head 高度的 tip
-    .height-tip {
-        position: absolute;
-        width: 3px;
-        background-color: #ccc;
-        left: 0;
-        transition: top .2s;
-    }
-
-    // 设置 img table 的 toolbar
-    .txt-toolbar {
-        position: absolute;
-        background-color: #fff;
-        padding: 3px 5px;
-        border-top: 2px solid @fore-color;
-        box-shadow: 1px 3px 3px #999;
-
-        // for IE8
-        border-left: 1px\9 solid\9 #ccc\9;
-        border-bottom: 1px\9 solid\9 #999\9;
-        border-right: 1px\9 solid\9 #999\9;
-
-        // 小三角
-        .tip-triangle {
-            display: block;
-            position: absolute;
-            width: 0;
-            height: 0;
-            border: 5px solid;
-            border-color: transparent transparent @fore-color transparent;
-            top: -12px;
-            left: 50%;
-            margin-left: -5px;
-        }
-
-        a {
-            color: @fore-color;
-            display: inline-block;
-            margin: 0 3px;
-            padding: 5px;
-            text-decoration: none;
-            border-radius: 3px;
-
-            &:hover {
-                background-color: #f1f1f1;
-            }
-        }
-    }
-    // 图品拖拽大小
-    .img-drag-point {
-        display: block;
-        position: absolute;
-        width: 12px;
-        height: 12px;
-        border-radius: 50%;
-        cursor: se-resize;
-        background-color: @fore-color;
-        margin-left: -6px;
-        margin-top: -6px;
-        box-shadow: 1px 1px 5px #999;
-    }
-
-    // 进度条
-    .wangEditor-upload-progress {
-        position: absolute;
-        height: 1px;
-        background: #1e88e5;
-        width: 0;
-        display: none;
-        -webkit-transition: width .5s;
-        -o-transition: width .5s;
-        transition: width .5s;
-    }
-}
-.wangEditor-fullscreen {
-    position: fixed;
-    top: 0;
-    bottom: 0;
-    left: 0;
-    right: 0;
-}
-.wangEditor-container {
-    .code-textarea {
-        resize: none;
-        width: 100%;
-        font-size: 14px;
-        line-height: 1.5;
-        font-family: 'Verdana';
-        color: #333;
-        padding: 0 15px 0 15px;
-    }
-}
-.wangEditor-menu-container {
-
-    width: 100%;
-    border-bottom: 1px solid #f1f1f1;
-    background-color: #fff;
-    
-    a {
-        text-decoration: none;
-    }
-
-    // 菜单组
-    .menu-group {
-        float: left;
-        padding: 0 8px;
-        border-right: 1px solid #f1f1f1;
-    }
-
-    // 单个菜单容器
-    .menu-item {
-        float: left;
-        position: relative;
-        text-align: center;
-        height: 31px;
-        width: 35px;
-
-        &:hover {
-            background-color: #f1f1f1;
-        }
-
-        // 菜单
-        a {
-            display: block;
-            text-align: center;
-            color: @fore-color;
-            width: 100%;
-            padding: 8px 0;
-            font-size: 0.9em;
-        }
-
-         // 菜单选中状态
-        .selected {
-            color: @selected-color;
-        }
-
-        // 激活状态
-        .active {
-            background-color: #f1f1f1;
-        }
-
-        // 禁用状态
-        .disable {
-            opacity: 0.5;
-            filter: Alpha(opacity=50);
-        }
-    }
-
-    // tip提示
-    .menu-tip {
-        display: block;
-        position: absolute;
-        z-index: 20;
-        width: 60px;
-        text-align: center;
-        background-color: @fore-color;
-        color: #fff;
-        padding: 7px 0;
-        font-size: 12px;
-        top: 100%;
-        left: 50%;
-        margin-left: -30px;
-        border-radius: 2px;
-        box-shadow: 1px 1px 5px #999;
-
-        display: none;
-
-        /*// 小三角
-        .tip-triangle {
-            display: block;
-            position: absolute;
-            width: 0;
-            height: 0;
-            border:5px solid;
-            border-color: transparent transparent @fore-color transparent;
-            top: -10px;
-            left: 50%;
-            margin-left: -5px;
-        }*/
-    }
-    .menu-tip-40 {
-        width: 40px;
-        margin-left: -20px;
-    }
-    .menu-tip-50 {
-        width: 50px;
-        margin-left: -25px;
-    }
-}
-.wangEditor-menu-shadow {
-    /*border-bottom-width: 0;*/
-    border-bottom: 1px\9 solid\9 #f1f1f1\9;
-    box-shadow: 0 1px 3px #999;
-}
-.wangEditor-container {
-    .wangEditor-txt{
-        width: 100%;
-        text-align: left;
-        padding: 15px;
-        padding-top: 0;
-        margin-top: 5px;
-        overflow-y: auto;
-
-        p,h1,h2,h3,h4,h5 {
-            margin: 10px 0;
-            line-height: 1.8;
-
-            * {
-                line-height: 1.8;
-            }
-        }
-
-        ul, ol {
-            padding-left: 20px;
-        }
-
-        img {
-            cursor: pointer;
-        }
-        img.clicked {
-            box-shadow: 1px 1px 10px #999;
-        }
-
-        table.clicked {
-            box-shadow: 1px 1px 10px #999;
-        }
-
-        pre code {
-            line-height: 1.5;
-        }
-
-        &:focus{
-            outline: none; 
-        }
-    }
-}
-.wangEditor-container {
-    .wangEditor-txt {
-        blockquote {
-            display: block; 
-            border-left: 8px solid #d0e5f2;
-            padding: 5px 10px;
-            margin: 10px 0; 
-            line-height: 1.4; 
-            font-size: 100%;
-            background-color: #f1f1f1;
-        }
-        table {
-            border: none;
-            border-collapse: collapse;
-        }
-        table td,
-        table th {
-            border: 1px solid #999;
-            padding: 3px 5px;
-            min-width: 50px;
-            height: 20px;
-        }
-        pre {
-            border: 1px solid #ccc; 
-            background-color: #f8f8f8; 
-            padding: 10px; 
-            margin: 5px 0px;
-            font-size: 0.8em;
-            border-radius: 3px;
-        }
-    }
-}
-.wangEditor-drop-list {
-    display: none;
-    position: absolute;
-    background-color: #fff;
-    overflow: hidden;
-    z-index: 10;
-
-    transition: height .7s;
-    
-    border-top: 1px solid #f1f1f1;
-    box-shadow: 1px 3px 3px #999;
-
-    // for IE8
-    border-left: 1px\9 solid\9 #ccc\9;
-    border-bottom: 1px\9 solid\9 #999\9;
-    border-right: 1px\9 solid\9 #999\9;
-
-    a {
-        text-decoration: none;
-        display: block;
-        color: @fore-color;
-        padding: 3px 5px;
-
-        &:hover {
-            background-color: #f1f1f1;
-        }
-    }
-}
-.wangEditor-drop-panel,
-.txt-toolbar {
-    display: none;
-    position: absolute;
-    padding: 10px;
-    font-size: 14px;
-    /*border: 1px\9 solid\9 #cccccc\9;*/
-
-    background-color: #fff;
-    z-index: 10;
-    
-    border-top: 2px solid @fore-color;
-    box-shadow: 1px 3px 3px #999;
-
-    // for IE8
-    border-left: 1px\9 solid\9 #ccc\9;
-    border-bottom: 1px\9 solid\9 #999\9;
-    border-right: 1px\9 solid\9 #999\9;
-
-    // 小三角
-    .tip-triangle {
-        display: block;
-        position: absolute;
-        width: 0;
-        height: 0;
-        border: 5px solid;
-        border-color: transparent transparent @fore-color transparent;
-        top: -12px;
-        left: 50%;
-        margin-left: -5px;
-    }
-
-    a {
-        text-decoration: none;
-    }
-
-    // 输入框
-    input[type=text] {
-        border: none;
-        border-bottom: 1px solid #ccc;
-        font-size: 14px;
-        height: 20px;
-        color: #333;
-        padding: 3px 0;
-
-        &:focus{
-            outline: none;
-            border-bottom: 2px solid @focus-input-color;
-        }
-    }
-    input[type=text].block {
-        display: block;
-        width: 100%;
-    }
-    textarea {
-        border: 1px solid #ccc;
-        &:focus {
-            outline: none;
-            border-color: @focus-input-color;
-        }
-    }
-
-    // 按钮
-    button {
-        font-size: 14px;
-        color: @button-color;
-        border: none;
-        padding: 10px;
-        background-color: #fff;
-        cursor: pointer;
-        border-radius: 3px;
-        
-        &:hover {
-            background-color: #f1f1f1;
-        }
-        &:focus{
-            outline: none; 
-        }
-    }
-    button.right {
-        float: right;
-        margin-left: 10px;
-    }
-    button.gray {
-        color: #999;
-    }
-    button.link {
-        padding: 5px 10px;
-        &:hover {
-            background-color: #fff;
-            text-decoration: underline;
-        }
-    }
-    
-    // 颜色块
-    .color-item {
-        display: block;
-        float: left;
-        width: 25px;
-        height: 25px;
-        text-align: center;
-        padding: 2px;
-        border-radius: 2px;
-        text-decoration: underline;
-
-        &:hover {
-            background-color: #f1f1f1;
-        }
-    }
-
-    // 列表
-    .list-menu-item {
-        display: block;
-        float: left;
-        color: #333;
-        padding: 5px 5px;
-        border-radius: 2px;
-
-        &:hover {
-            background-color: #f1f1f1;
-        }
-    }
-
-    // 表格
-    table.choose-table {
-        border: none;
-        border-collapse: collapse;
-
-        td {
-            border: 1px solid #ccc;
-            width: 16px;
-            height: 12px;
-        }
-        td.active {
-            background-color: #ccc;
-            opacity: .5;
-            filter: Alpha(opacity=50);
-        }
-    }
-
-    // tab
-    .panel-tab {
-        .tab-container {
-            margin-bottom: 5px;
-
-            a {
-                display: inline-block;
-                color: #999;
-                text-align: center;
-                margin: 0 5px;
-                padding: 5px 5px;
-            }
-
-            a.selected {
-                color: @selected-tab-color;
-                border-bottom: 2px solid @selected-tab-color;
-            }
-        }
-        .content-container {
-            .content {
-                display: none;
-
-                a {
-                    display: inline-block;
-                    margin: 2px;
-                    padding: 2px;
-                    border-radius: 2px;
-
-                    &:hover {
-                        background-color: #f1f1f1;
-                    }
-                }
-            }
-            .selected {
-                display: block;
-            }
-        }
-        .emotion-content-container {
-            height: 200px;
-            overflow-y: auto;
-        }
-    }
-
-    // 上传图片
-    .upload-icon-container {
-        color: #ccc;
-        text-align: center;
-        margin: 20px 20px 15px 20px !important;
-        padding: 5px !important;
-        font-size: 65px;
-        cursor: pointer;
-        border: 2px dotted #f1f1f1;
-        display: block !important;
-
-        &:hover {
-            color: #666;
-            border-color: #ccc;
-        }
-    }
-}
-.wangEditor-modal {
-    position: absolute;
-    top: 50%;
-    left: 50%;
-    background-color: #fff;
-    
-    border-top: 1px solid #f1f1f1;
-    box-shadow: 1px 3px 3px #999;
-
-    // for IE8
-    border-top: 1px\9 solid\9 #ccc\9;
-    border-left: 1px\9 solid\9 #ccc\9;
-    border-bottom: 1px\9 solid\9 #999\9;
-    border-right: 1px\9 solid\9 #999\9;
-
-    // 关闭按钮
-    .wangEditor-modal-close {
-        position: absolute;
-        top: 0;
-        right: 0;
-        margin-top: -25px;
-        margin-right: -25px;
-        font-size: 1.5em;
-        color: #666;
-        cursor: pointer;
-    }
-    
-}
-@font-face {
-    font-family: 'icomoon';
-    src:url('../fonts/icomoon.eot?-qdfu1s');
-    src:url('../fonts/icomoon.eot?#iefix-qdfu1s') format('embedded-opentype'),
-        url('../fonts/icomoon.ttf?-qdfu1s') format('truetype'),
-        url('../fonts/icomoon.woff?-qdfu1s') format('woff'),
-        url('../fonts/icomoon.svg?-qdfu1s#icomoon') format('svg');
-    font-weight: normal;
-    font-style: normal;
-}
-
-[class^="wangeditor-menu-img-"], [class*=" wangeditor-menu-img-"] {
-    font-family: 'icomoon';
-    speak: none;
-    font-style: normal;
-    font-weight: normal;
-    font-variant: normal;
-    text-transform: none;
-    line-height: 1;
-
-    /* Better Font Rendering =========== */
-    -webkit-font-smoothing: antialiased;
-    -moz-osx-font-smoothing: grayscale;
-}
-.wangeditor-menu-img-link:before {content: "\e800";}
-.wangeditor-menu-img-unlink:before {content: "\e801";}
-.wangeditor-menu-img-code:before {content: "\e802";}
-.wangeditor-menu-img-cancel:before {content: "\e803";}
-.wangeditor-menu-img-terminal:before {content: "\e804";}
-.wangeditor-menu-img-angle-down:before {content: "\e805";}
-.wangeditor-menu-img-font:before {content: "\e806";}
-.wangeditor-menu-img-bold:before {content: "\e807";}
-.wangeditor-menu-img-italic:before {content: "\e808";}
-.wangeditor-menu-img-header:before {content: "\e809";}
-.wangeditor-menu-img-align-left:before {content: "\e80a";}
-.wangeditor-menu-img-align-center:before {content: "\e80b";}
-.wangeditor-menu-img-align-right:before {content: "\e80c";}
-.wangeditor-menu-img-list-bullet:before {content: "\e80d";}
-.wangeditor-menu-img-indent-left:before {content: "\e80e";}
-.wangeditor-menu-img-indent-right:before {content: "\e80f";}
-.wangeditor-menu-img-list-numbered:before {content: "\e810";}
-.wangeditor-menu-img-underline:before {content: "\e811";}
-.wangeditor-menu-img-table:before {content: "\e812";}
-.wangeditor-menu-img-eraser:before {content: "\e813";}
-.wangeditor-menu-img-text-height:before {content: "\e814";}
-.wangeditor-menu-img-brush:before {content: "\e815";}
-.wangeditor-menu-img-pencil:before {content: "\e816";}
-.wangeditor-menu-img-minus:before {content: "\e817";}
-.wangeditor-menu-img-picture:before {content: "\e818";}
-.wangeditor-menu-img-file-image:before {content: "\e819";}
-.wangeditor-menu-img-cw:before {content: "\e81a";}
-.wangeditor-menu-img-ccw:before {content: "\e81b";}
-.wangeditor-menu-img-music:before {content: "\e911";}
-.wangeditor-menu-img-play:before {content: "\e912";}
-.wangeditor-menu-img-location:before {content: "\e947";}
-.wangeditor-menu-img-happy:before {content: "\e9df";}
-.wangeditor-menu-img-sigma:before {content: "\ea67";}
-.wangeditor-menu-img-enlarge2:before {content: "\e98b";}
-.wangeditor-menu-img-shrink2:before {content: "\e98c";}
-.wangeditor-menu-img-newspaper:before{content: "\e904";}
-.wangeditor-menu-img-camera:before{content: "\e90f";}
-.wangeditor-menu-img-video-camera:before{content: "\e914";}
-.wangeditor-menu-img-file-zip:before{content: "\e92b";}
-.wangeditor-menu-img-stack:before{content: "\e92e";}
-.wangeditor-menu-img-credit-card:before{content: "\e93f";}
-.wangeditor-menu-img-address-book:before{content: "\e944";}
-.wangeditor-menu-img-envelop:before{content: "\e945";}
-.wangeditor-menu-img-drawer:before{content: "\e95c";}
-.wangeditor-menu-img-download:before{content: "\e960";}
-.wangeditor-menu-img-upload:before{content: "\e961";}
-.wangeditor-menu-img-lock:before{content: "\e98f";}
-.wangeditor-menu-img-unlocked:before{content: "\e990";}
-.wangeditor-menu-img-wrench:before{content: "\e991";}
-.wangeditor-menu-img-eye:before{content: "\e9ce";}
-.wangeditor-menu-img-eye-blocked:before{content: "\e9d1";}
-.wangeditor-menu-img-command:before{content: "\ea4e";}
-.wangeditor-menu-img-font2:before{content: "\ea5c";}
-.wangeditor-menu-img-libreoffice:before{content: "\eade";}
-.wangeditor-menu-img-quotes-left:before{content: "\e977";}
-.wangeditor-menu-img-strikethrough:before{content: "\ea65";}
-.wangeditor-menu-img-desktop:before{content: "\f108";}
-.wangeditor-menu-img-tablet:before{content: "\f10a";}
-.wangeditor-menu-img-search-plus:before {
-    content: "\f00e";
-}
-.wangeditor-menu-img-search-minus:before {
-    content: "\f010";
-}
-.wangeditor-menu-img-trash-o:before {
-    content: "\f014";
-}
-.wangeditor-menu-img-align-justify:before {
-    content: "\f039";
-}
-.wangeditor-menu-img-arrows-v:before {
-    content: "\f07d";
-}
-.wangeditor-menu-img-sigma2:before {
-    content: "\ea68";
-}
-.wangeditor-menu-img-omega:before {
-    content: "\e900";
-}
-.wangeditor-menu-img-cancel-circle:before {
-    content: "\e901";
-}
-.hljs {
-  display: block;
-  overflow-x: auto;
-  padding: 0.5em;
-  color: #333;
-  background: #f8f8f8;
-  -webkit-text-size-adjust: none;
-}
-
-.hljs-comment,
-.diff .hljs-header {
-  color: #998;
-  font-style: italic;
-}
-
-.hljs-keyword,
-.css .rule .hljs-keyword,
-.hljs-winutils,
-.nginx .hljs-title,
-.hljs-subst,
-.hljs-request,
-.hljs-status {
-  color: #333;
-  font-weight: bold;
-}
-
-.hljs-number,
-.hljs-hexcolor,
-.ruby .hljs-constant {
-  color: #008080;
-}
-
-.hljs-string,
-.hljs-tag .hljs-value,
-.hljs-doctag,
-.tex .hljs-formula {
-  color: #d14;
-}
-
-.hljs-title,
-.hljs-id,
-.scss .hljs-preprocessor {
-  color: #900;
-  font-weight: bold;
-}
-
-.hljs-list .hljs-keyword,
-.hljs-subst {
-  font-weight: normal;
-}
-
-.hljs-class .hljs-title,
-.hljs-type,
-.vhdl .hljs-literal,
-.tex .hljs-command {
-  color: #458;
-  font-weight: bold;
-}
-
-.hljs-tag,
-.hljs-tag .hljs-title,
-.hljs-rule .hljs-property,
-.django .hljs-tag .hljs-keyword {
-  color: #000080;
-  font-weight: normal;
-}
-
-.hljs-attribute,
-.hljs-variable,
-.lisp .hljs-body,
-.hljs-name {
-  color: #008080;
-}
-
-.hljs-regexp {
-  color: #009926;
-}
-
-.hljs-symbol,
-.ruby .hljs-symbol .hljs-string,
-.lisp .hljs-keyword,
-.clojure .hljs-keyword,
-.scheme .hljs-keyword,
-.tex .hljs-special,
-.hljs-prompt {
-  color: #990073;
-}
-
-.hljs-built_in {
-  color: #0086b3;
-}
-
-.hljs-preprocessor,
-.hljs-pragma,
-.hljs-pi,
-.hljs-doctype,
-.hljs-shebang,
-.hljs-cdata {
-  color: #999;
-  font-weight: bold;
-}
-
-.hljs-deletion {
-  background: #fdd;
-}
-
-.hljs-addition {
-  background: #dfd;
-}
-
-.diff .hljs-change {
-  background: #0086b3;
-}
-
-.hljs-chunk {
-  color: #aaa;
-}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
static/wangEditor/css/wangEditor.min.css


BIN
static/wangEditor/fonts/icomoon.eot


+ 0 - 76
static/wangEditor/fonts/icomoon.svg

@@ -1,76 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata>Generated by IcoMoon</metadata>
-<defs>
-<font id="icomoon" horiz-adv-x="1024">
-<font-face units-per-em="1024" ascent="960" descent="-64" />
-<missing-glyph horiz-adv-x="1024" />
-<glyph unicode="&#x20;" horiz-adv-x="512" d="" />
-<glyph unicode="&#xe800;" glyph-name="link" horiz-adv-x="950" d="M831.488 264.704q0 23.552-15.36 38.912l-118.784 118.784q-16.384 16.384-38.912 16.384-24.576 0-40.96-18.432 1.024-1.024 10.24-10.24t12.288-12.288 9.216-11.264 7.168-14.336 2.048-15.36q0-23.552-16.384-38.912t-38.912-16.384q-8.192 0-15.36 2.048t-14.336 7.168-11.264 9.216-12.288 12.288-10.24 10.24q-19.456-17.408-19.456-40.96t16.384-38.912l117.76-118.784q15.36-15.36 38.912-15.36 22.528 0 38.912 15.36l83.968 82.944q15.36 16.384 15.36 37.888zM430.080 668.16q0 22.528-15.36 38.912l-117.76 117.76q-16.384 16.384-38.912 16.384t-38.912-15.36l-83.968-83.968q-16.384-15.36-16.384-37.888t16.384-38.912l118.784-118.784q15.36-15.36 38.912-15.36t40.96 17.408q-2.048 2.048-11.264 11.264t-12.288 12.288-8.192 10.24-7.168 14.336-2.048 16.384q0 22.528 15.36 38.912t38.912 15.36q9.216 0 16.384-2.048t14.336-7.168 10.24-8.192 12.288-12.288 11.264-11.264q18.432 17.408 18.432 41.984zM942.080 264.704q0-68.608-49.152-115.712l-83.968-82.944q-47.104-48.128-115.712-48.128-69.632 0-116.736 49.152l-117.76 117.76q-47.104 48.128-47.104 116.736 0 69.632 50.176 118.784l-50.176 50.176q-49.152-50.176-118.784-50.176-68.608 0-116.736 48.128l-118.784 118.784q-48.128 48.128-48.128 116.736t48.128 115.712l83.968 83.968q48.128 47.104 116.736 47.104t116.736-48.128l116.736-118.784q48.128-47.104 48.128-115.712 0-70.656-50.176-119.808l50.176-50.176q49.152 50.176 118.784 50.176 68.608 0 116.736-48.128l118.784-118.784q48.128-48.128 48.128-116.736z" />
-<glyph unicode="&#xe801;" glyph-name="unlink" horiz-adv-x="950" d="M250.88 233.984l-146.432-146.432q-5.12-5.12-13.312-5.12-6.144 0-13.312 5.12-5.12 5.12-5.12 13.312t5.12 13.312l146.432 145.408q6.144 5.12 13.312 5.12t13.312-5.12q5.12-5.12 5.12-12.288t-5.12-13.312zM347.136 210.432v-183.296q0-8.192-5.12-13.312t-13.312-5.12-12.288 5.12-5.12 13.312v183.296q0 8.192 5.12 13.312t12.288 5.12 13.312-5.12 5.12-13.312zM219.136 338.432q0-8.192-5.12-13.312t-13.312-5.12h-182.272q-8.192 0-13.312 5.12t-5.12 13.312 5.12 13.312 13.312 5.12h182.272q8.192 0 13.312-5.12t5.12-13.312zM942.080 264.704q0-68.608-49.152-115.712l-83.968-82.944q-47.104-48.128-115.712-48.128-69.632 0-116.736 49.152l-190.464 191.488q-12.288 11.264-24.576 31.744l137.216 10.24 155.648-156.672q15.36-15.36 38.912-15.36t38.912 15.36l83.968 82.944q15.36 16.384 15.36 37.888 0 23.552-15.36 38.912l-156.672 157.696 10.24 136.192q20.48-12.288 31.744-23.552l192.512-192.512q48.128-49.152 48.128-116.736zM588.8 678.4l-136.192-10.24-155.648 156.672q-16.384 16.384-38.912 16.384t-38.912-15.36l-83.968-83.968q-16.384-15.36-16.384-37.888t16.384-38.912l156.672-156.672-10.24-137.216q-20.48 12.288-32.768 24.576l-191.488 191.488q-48.128 49.152-48.128 116.736 0 68.608 48.128 115.712l83.968 83.968q48.128 47.104 116.736 47.104t116.736-48.128l190.464-191.488q12.288-12.288 23.552-32.768zM951.296 631.296q0-8.192-5.12-13.312t-13.312-5.12h-183.296q-8.192 0-13.312 5.12t-5.12 13.312 5.12 12.288 13.312 5.12h183.296q8.192 0 13.312-5.12t5.12-12.288zM640 941.568v-182.272q0-8.192-5.12-13.312t-13.312-5.12-13.312 5.12-5.12 13.312v182.272q0 8.192 5.12 13.312t13.312 5.12 13.312-5.12 5.12-13.312zM872.448 855.552l-146.432-146.432q-6.144-5.12-13.312-5.12t-12.288 5.12q-5.12 6.144-5.12 13.312t5.12 13.312l145.408 145.408q6.144 5.12 13.312 5.12t13.312-5.12q5.12-5.12 5.12-12.288t-5.12-13.312z" />
-<glyph unicode="&#xe802;" glyph-name="code" horiz-adv-x="1097" d="M352.256 160.256l-28.672-28.672q-5.12-5.12-12.288-5.12t-13.312 5.12l-266.24 266.24q-6.144 6.144-6.144 13.312t6.144 13.312l266.24 266.24q5.12 6.144 13.312 6.144t12.288-6.144l28.672-28.672q6.144-5.12 6.144-13.312t-6.144-12.288l-224.256-225.28 224.256-224.256q6.144-6.144 6.144-13.312t-6.144-13.312zM690.176 770.56l-212.992-738.304q-2.048-7.168-9.216-11.264t-13.312-1.024l-34.816 9.216q-8.192 3.072-11.264 9.216t-2.048 14.336l212.992 737.28q3.072 8.192 9.216 11.264t13.312 2.048l35.84-10.24q7.168-2.048 11.264-9.216t1.024-13.312zM1065.984 397.824l-266.24-266.24q-6.144-5.12-13.312-5.12t-13.312 5.12l-28.672 28.672q-5.12 6.144-5.12 13.312t5.12 13.312l224.256 224.256-224.256 225.28q-5.12 5.12-5.12 12.288t5.12 13.312l28.672 28.672q6.144 6.144 13.312 6.144t13.312-6.144l266.24-266.24q5.12-5.12 5.12-13.312t-5.12-13.312z" />
-<glyph unicode="&#xe803;" glyph-name="cancel" horiz-adv-x="804" d="M741.376 204.288q0-22.528-15.36-38.912l-77.824-77.824q-16.384-15.36-38.912-15.36t-38.912 15.36l-167.936 168.96-167.936-168.96q-16.384-15.36-38.912-15.36t-38.912 15.36l-77.824 77.824q-16.384 16.384-16.384 38.912t16.384 38.912l167.936 167.936-167.936 167.936q-16.384 16.384-16.384 38.912t16.384 38.912l77.824 77.824q16.384 16.384 38.912 16.384t38.912-16.384l167.936-167.936 167.936 167.936q16.384 16.384 38.912 16.384t38.912-16.384l77.824-77.824q15.36-15.36 15.36-38.912t-15.36-38.912l-167.936-167.936 167.936-167.936q15.36-15.36 15.36-38.912z" />
-<glyph unicode="&#xe804;" glyph-name="terminal" horiz-adv-x="950" d="M333.824 397.824l-266.24-266.24q-5.12-5.12-12.288-5.12t-13.312 5.12l-28.672 28.672q-6.144 6.144-6.144 13.312t6.144 13.312l224.256 224.256-224.256 225.28q-6.144 5.12-6.144 12.288t6.144 13.312l28.672 28.672q5.12 6.144 13.312 6.144t12.288-6.144l266.24-266.24q6.144-5.12 6.144-13.312t-6.144-13.312zM951.296 136.704v-35.84q0-8.192-5.12-13.312t-13.312-5.12h-548.864q-8.192 0-13.312 5.12t-5.12 13.312v35.84q0 8.192 5.12 13.312t13.312 5.12h548.864q8.192 0 13.312-5.12t5.12-13.312z" />
-<glyph unicode="&#xe805;" glyph-name="angle-down" horiz-adv-x="657" d="M614.4 539.136q0-7.168-6.144-13.312l-266.24-266.24q-5.12-5.12-13.312-5.12t-12.288 5.12l-266.24 266.24q-6.144 6.144-6.144 13.312t6.144 13.312l27.648 28.672q6.144 6.144 13.312 6.144t13.312-6.144l224.256-224.256 225.28 224.256q5.12 6.144 13.312 6.144t12.288-6.144l28.672-28.672q6.144-5.12 6.144-13.312z" />
-<glyph unicode="&#xe806;" glyph-name="font" horiz-adv-x="950" d="M414.72 640.512l-97.28-257.024q18.432 0 77.824-1.024t91.136-1.024q11.264 0 32.768 1.024-49.152 144.384-104.448 258.048zM0 8.704l1.024 45.056q13.312 4.096 31.744 7.168t32.768 6.144 28.672 8.192 25.6 17.408 17.408 28.672l135.168 352.256 159.744 413.696h73.728q4.096-8.192 6.144-12.288l116.736-274.432q19.456-45.056 61.44-147.456t64.512-156.672q9.216-19.456 33.792-82.944t40.96-96.256q11.264-25.6 19.456-31.744 11.264-9.216 50.176-17.408t48.128-11.264q4.096-22.528 4.096-32.768 0-2.048-1.024-7.168t0-8.192q-35.84 0-108.544 5.12t-109.568 4.096q-43.008 0-122.88-4.096t-101.376-4.096q0 24.576 2.048 44.032l74.752 16.384q1.024 0 7.168 1.024t9.216 2.048 8.192 3.072 9.216 4.096 6.144 4.096 5.12 6.144 1.024 8.192q0 9.216-17.408 55.296t-40.96 101.376-24.576 57.344l-257.024 1.024q-14.336-33.792-44.032-111.616t-28.672-93.184q0-12.288 8.192-21.504t24.576-14.336 27.648-7.168 32.768-5.12 23.552-2.048q1.024-11.264 1.024-32.768 0-5.12-2.048-16.384-32.768 0-99.328 6.144t-99.328 6.144q-5.12 0-15.36-3.072t-12.288-2.048q-46.080-8.192-107.52-8.192z" />
-<glyph unicode="&#xe807;" glyph-name="bold" horiz-adv-x="804" d="M317.44 90.624q41.984-18.432 79.872-18.432 215.040 0 215.040 191.488 0 65.536-23.552 103.424-15.36 24.576-35.84 41.984t-37.888 26.624-46.080 14.336-48.128 6.144-54.272 1.024q-40.96 0-57.344-6.144 0-29.696 0-90.112t-1.024-91.136q0-4.096 0-37.888t0-55.296 2.048-48.128 7.168-37.888zM309.248 517.632q23.552-4.096 62.464-4.096 47.104 0 81.92 7.168t62.464 25.6 41.984 51.2 15.36 80.896q0 39.936-16.384 69.632t-46.080 47.104-61.44 24.576-70.656 8.192q-28.672 0-74.752-7.168 0-28.672 3.072-86.016t2.048-87.040q0-15.36 0-46.080t-1.024-45.056q0-26.624 1.024-38.912zM0 8.704l1.024 54.272q9.216 2.048 49.152 9.216t60.416 15.36q4.096 7.168 7.168 15.36t4.096 19.456 4.096 18.432 1.024 21.504 0 19.456v36.864q0 561.152-12.288 585.728-2.048 5.12-12.288 8.192t-25.6 6.144-28.672 4.096-27.648 3.072-17.408 2.048l-2.048 47.104q56.32 1.024 194.56 6.144t212.992 5.12q13.312 0 38.912 0t38.912 0q39.936 0 77.824-7.168t73.728-24.576 61.44-39.936 41.984-60.416 16.384-77.824q0-29.696-9.216-55.296t-22.528-40.96-36.864-32.768-41.984-25.6-48.128-22.528q88.064-20.48 147.456-76.8t58.368-142.336q0-56.32-20.48-102.4t-53.248-74.752-78.848-48.128-93.184-27.648-100.352-8.192q-25.6 0-75.776 2.048t-75.776 1.024q-60.416 0-175.104-6.144t-132.096-7.168z" />
-<glyph unicode="&#xe808;" glyph-name="italic" horiz-adv-x="585" d="M0 9.728l10.24 49.152q3.072 1.024 46.080 12.288t63.488 21.504q16.384 19.456 23.552 57.344 1.024 4.096 35.84 165.888t64.512 310.272 29.696 168.96v14.336q-13.312 7.168-30.72 11.264t-39.936 4.096-32.768 3.072l10.24 59.392q19.456-2.048 68.608-4.096t86.016-4.096 68.608-1.024q27.648 0 56.32 1.024t68.608 4.096 56.32 4.096q-2.048-22.528-10.24-51.2-17.408-6.144-58.368-16.384t-61.44-19.456q-5.12-10.24-8.192-23.552t-5.12-23.552-4.096-25.6-4.096-24.576q-15.36-83.968-50.176-239.616t-44.032-202.752q-1.024-5.12-7.168-32.768t-11.264-52.224-9.216-47.104-4.096-32.768l1.024-10.24q9.216-3.072 105.472-18.432-2.048-24.576-9.216-56.32-6.144 0-18.432-1.024t-18.432-1.024q-16.384 0-50.176 6.144t-49.152 6.144q-78.848 1.024-117.76 1.024-28.672 0-80.896-5.12t-69.632-6.144z" />
-<glyph unicode="&#xe809;" glyph-name="header" d="M961.536 8.704q-25.6 0-75.776 2.048t-76.8 2.048q-24.576 0-74.752-2.048t-75.776-2.048q-14.336 0-21.504 12.288t-7.168 25.6q0 17.408 9.216 26.624t22.528 9.216 29.696 4.096 25.6 9.216q18.432 11.264 18.432 79.872v223.232q0 12.288-1.024 17.408-7.168 3.072-28.672 3.072h-385.024q-22.528 0-29.696-3.072 0-5.12 0-17.408l-1.024-211.968q0-80.896 21.504-94.208 9.216-5.12 26.624-7.168t32.768-2.048 25.6-8.192 11.264-26.624q0-14.336-7.168-26.624t-20.48-13.312q-26.624 0-79.872 2.048t-78.848 2.048q-24.576 0-72.704-2.048t-72.704-2.048q-13.312 0-20.48 12.288t-7.168 25.6q0 17.408 9.216 25.6t20.48 10.24 26.624 4.096 24.576 9.216q18.432 13.312 18.432 81.92l-1.024 31.744v464.896q0 2.048 1.024 14.336t0 21.504-1.024 21.504-2.048 24.576-4.096 20.48-6.144 18.432-9.216 10.24q-8.192 5.12-25.6 6.144t-29.696 2.048-23.552 7.168-10.24 26.624q0 14.336 6.144 26.624t20.48 13.312q26.624 0 79.872-2.048t78.848-2.048q23.552 0 72.704 2.048t71.68 2.048q14.336 0 21.504-13.312t7.168-26.624q0-17.408-9.216-25.6t-22.528-8.192-28.672-2.048-24.576-7.168q-19.456-12.288-19.456-92.16l1.024-182.272q0-12.288 0-18.432 7.168-2.048 22.528-2.048h399.36q14.336 0 21.504 2.048 1.024 6.144 1.024 18.432v182.272q0 79.872-19.456 92.16-10.24 6.144-33.792 7.168t-37.888 7.168-14.336 28.672q0 14.336 7.168 26.624t21.504 13.312q24.576 0 75.776-2.048t74.752-2.048q24.576 0 73.728 2.048t73.728 2.048q14.336 0 21.504-13.312t7.168-26.624q0-17.408-10.24-25.6t-22.528-8.192-29.696-2.048-24.576-7.168q-20.48-13.312-20.48-92.16l1.024-538.624q0-67.584 19.456-79.872 9.216-6.144 25.6-7.168t30.72-3.072 23.552-9.216 10.24-24.576q0-15.36-6.144-27.648t-20.48-13.312z" />
-<glyph unicode="&#xe80a;" glyph-name="align-left" d="M1024 192v-72.704q0-15.36-11.264-25.6t-25.6-11.264h-950.272q-15.36 0-25.6 11.264t-11.264 25.6v72.704q0 15.36 11.264 25.6t25.6 11.264h950.272q15.36 0 25.6-11.264t11.264-25.6zM804.864 411.136v-72.704q0-15.36-11.264-25.6t-25.6-11.264h-731.136q-15.36 0-25.6 11.264t-11.264 25.6v72.704q0 15.36 11.264 25.6t25.6 11.264h731.136q15.36 0 25.6-11.264t11.264-25.6zM951.296 631.296v-73.728q0-14.336-11.264-25.6t-25.6-11.264h-877.568q-15.36 0-25.6 11.264t-11.264 25.6v73.728q0 14.336 11.264 25.6t25.6 10.24h877.568q14.336 0 25.6-10.24t11.264-25.6zM731.136 850.432v-73.728q0-14.336-10.24-25.6t-25.6-10.24h-658.432q-15.36 0-25.6 10.24t-11.264 25.6v73.728q0 14.336 11.264 25.6t25.6 11.264h658.432q14.336 0 25.6-11.264t10.24-25.6z" />
-<glyph unicode="&#xe80b;" glyph-name="align-center" d="M1024 192v-72.704q0-15.36-11.264-25.6t-25.6-11.264h-950.272q-15.36 0-25.6 11.264t-11.264 25.6v72.704q0 15.36 11.264 25.6t25.6 11.264h950.272q15.36 0 25.6-11.264t11.264-25.6zM804.864 411.136v-72.704q0-15.36-11.264-25.6t-25.6-11.264h-512q-14.336 0-25.6 11.264t-11.264 25.6v72.704q0 15.36 11.264 25.6t25.6 11.264h512q15.36 0 25.6-11.264t11.264-25.6zM951.296 631.296v-73.728q0-14.336-11.264-25.6t-25.6-11.264h-804.864q-14.336 0-25.6 11.264t-11.264 25.6v73.728q0 14.336 11.264 25.6t25.6 10.24h804.864q14.336 0 25.6-10.24t11.264-25.6zM731.136 850.432v-73.728q0-14.336-10.24-25.6t-25.6-10.24h-366.592q-14.336 0-25.6 10.24t-10.24 25.6v73.728q0 14.336 10.24 25.6t25.6 11.264h366.592q14.336 0 25.6-11.264t10.24-25.6z" />
-<glyph unicode="&#xe80c;" glyph-name="align-right" d="M1024 192v-72.704q0-15.36-11.264-25.6t-25.6-11.264h-950.272q-15.36 0-25.6 11.264t-11.264 25.6v72.704q0 15.36 11.264 25.6t25.6 11.264h950.272q15.36 0 25.6-11.264t11.264-25.6zM1024 411.136v-72.704q0-15.36-11.264-25.6t-25.6-11.264h-731.136q-14.336 0-25.6 11.264t-11.264 25.6v72.704q0 15.36 11.264 25.6t25.6 11.264h731.136q15.36 0 25.6-11.264t11.264-25.6zM1024 631.296v-73.728q0-14.336-11.264-25.6t-25.6-11.264h-877.568q-14.336 0-25.6 11.264t-11.264 25.6v73.728q0 14.336 11.264 25.6t25.6 10.24h877.568q15.36 0 25.6-10.24t11.264-25.6zM1024 850.432v-73.728q0-14.336-11.264-25.6t-25.6-10.24h-658.432q-14.336 0-25.6 10.24t-10.24 25.6v73.728q0 14.336 10.24 25.6t25.6 11.264h658.432q15.36 0 25.6-11.264t11.264-25.6z" />
-<glyph unicode="&#xe80d;" glyph-name="list-bullet" d="M219.136 155.136q0-45.056-31.744-77.824t-77.824-31.744-77.824 31.744-31.744 77.824 31.744 77.824 77.824 31.744 77.824-31.744 31.744-77.824zM219.136 448q0-46.080-31.744-77.824t-77.824-31.744-77.824 31.744-31.744 77.824 31.744 77.824 77.824 31.744 77.824-31.744 31.744-77.824zM1024 210.432v-109.568q0-7.168-5.12-13.312t-13.312-5.12h-694.272q-8.192 0-13.312 5.12t-5.12 13.312v109.568q0 7.168 5.12 12.288t13.312 6.144h694.272q7.168 0 13.312-6.144t5.12-12.288zM219.136 740.864q0-46.080-31.744-77.824t-77.824-31.744-77.824 31.744-31.744 77.824 31.744 77.824 77.824 31.744 77.824-31.744 31.744-77.824zM1024 503.296v-110.592q0-7.168-5.12-12.288t-13.312-5.12h-694.272q-8.192 0-13.312 5.12t-5.12 12.288v110.592q0 7.168 5.12 12.288t13.312 5.12h694.272q7.168 0 13.312-5.12t5.12-12.288zM1024 795.136v-109.568q0-7.168-5.12-12.288t-13.312-6.144h-694.272q-8.192 0-13.312 6.144t-5.12 12.288v109.568q0 8.192 5.12 13.312t13.312 5.12h694.272q7.168 0 13.312-5.12t5.12-13.312z" />
-<glyph unicode="&#xe80e;" glyph-name="indent-left" d="M219.136 648.704v-328.704q0-7.168-5.12-13.312t-13.312-5.12q-7.168 0-12.288 5.12l-164.864 164.864q-5.12 5.12-5.12 13.312t5.12 13.312l164.864 163.84q5.12 5.12 12.288 5.12 8.192 0 13.312-5.12t5.12-13.312zM1024 210.432v-109.568q0-7.168-5.12-13.312t-13.312-5.12h-987.136q-7.168 0-13.312 5.12t-5.12 13.312v109.568q0 7.168 5.12 12.288t13.312 6.144h987.136q7.168 0 13.312-6.144t5.12-12.288zM1024 429.568v-109.568q0-7.168-5.12-13.312t-13.312-5.12h-621.568q-7.168 0-13.312 5.12t-5.12 13.312v109.568q0 7.168 5.12 13.312t13.312 5.12h621.568q7.168 0 13.312-5.12t5.12-13.312zM1024 648.704v-109.568q0-7.168-5.12-12.288t-13.312-6.144h-621.568q-7.168 0-13.312 6.144t-5.12 12.288v109.568q0 8.192 5.12 13.312t13.312 5.12h621.568q7.168 0 13.312-5.12t5.12-13.312zM1024 868.864v-109.568q0-8.192-5.12-13.312t-13.312-5.12h-987.136q-7.168 0-13.312 5.12t-5.12 13.312v109.568q0 7.168 5.12 12.288t13.312 6.144h987.136q7.168 0 13.312-6.144t5.12-12.288z" />
-<glyph unicode="&#xe80f;" glyph-name="indent-right" d="M200.704 484.864q0-8.192-5.12-13.312l-163.84-164.864q-5.12-5.12-13.312-5.12-7.168 0-13.312 5.12t-5.12 13.312v328.704q0 8.192 5.12 13.312t13.312 5.12 13.312-5.12l163.84-163.84q5.12-5.12 5.12-13.312zM1024 210.432v-109.568q0-7.168-5.12-13.312t-13.312-5.12h-987.136q-7.168 0-13.312 5.12t-5.12 13.312v109.568q0 7.168 5.12 12.288t13.312 6.144h987.136q7.168 0 13.312-6.144t5.12-12.288zM1024 429.568v-109.568q0-7.168-5.12-13.312t-13.312-5.12h-621.568q-7.168 0-13.312 5.12t-5.12 13.312v109.568q0 7.168 5.12 13.312t13.312 5.12h621.568q7.168 0 13.312-5.12t5.12-13.312zM1024 648.704v-109.568q0-7.168-5.12-12.288t-13.312-6.144h-621.568q-7.168 0-13.312 6.144t-5.12 12.288v109.568q0 8.192 5.12 13.312t13.312 5.12h621.568q7.168 0 13.312-5.12t5.12-13.312zM1024 868.864v-109.568q0-8.192-5.12-13.312t-13.312-5.12h-987.136q-7.168 0-13.312 5.12t-5.12 13.312v109.568q0 7.168 5.12 12.288t13.312 6.144h987.136q7.168 0 13.312-6.144t5.12-12.288z" />
-<glyph unicode="&#xe810;" glyph-name="list-numbered" d="M218.112 34.304q0-46.080-31.744-71.68t-76.8-26.624q-61.44 0-98.304 37.888l31.744 50.176q28.672-25.6 61.44-25.6 16.384 0 28.672 8.192t12.288 24.576q0 35.84-60.416 31.744l-14.336 31.744q4.096 6.144 18.432 24.576t24.576 31.744 20.48 21.504v1.024q-9.216 0-27.648-1.024t-27.648 0v-30.72h-60.416v87.040h190.464v-50.176l-54.272-66.56q28.672-6.144 46.080-27.648t17.408-50.176zM219.136 392.704v-91.136h-206.848q-4.096 20.48-4.096 30.72 0 29.696 14.336 53.248t31.744 38.912 37.888 27.648 31.744 24.576 14.336 25.6q0 14.336-9.216 22.528t-22.528 7.168q-25.6 0-46.080-32.768l-48.128 33.792q13.312 28.672 40.96 45.056t60.416 16.384q40.96 0 69.632-23.552t28.672-64.512q0-28.672-19.456-52.224t-43.008-36.864-43.008-28.672-20.48-30.72h72.704v34.816h60.416zM1024 210.432v-109.568q0-8.192-5.12-13.312t-13.312-5.12h-694.272q-8.192 0-13.312 5.12t-5.12 13.312v109.568q0 8.192 5.12 13.312t13.312 5.12h694.272q7.168 0 13.312-6.144t5.12-12.288zM219.136 724.48v-57.344h-191.488v57.344h61.44q0 22.528 0 69.632t1.024 68.608v7.168h-1.024q-5.12-10.24-28.672-30.72l-40.96 43.008 77.824 72.704h60.416v-230.4h61.44zM1024 503.296v-110.592q0-7.168-5.12-12.288t-13.312-5.12h-694.272q-8.192 0-13.312 5.12t-5.12 12.288v110.592q0 7.168 5.12 12.288t13.312 5.12h694.272q7.168 0 13.312-5.12t5.12-12.288zM1024 795.136v-109.568q0-7.168-5.12-12.288t-13.312-6.144h-694.272q-8.192 0-13.312 6.144t-5.12 12.288v109.568q0 8.192 5.12 13.312t13.312 5.12h694.272q7.168 0 13.312-5.12t5.12-13.312z" />
-<glyph unicode="&#xe811;" glyph-name="underline" horiz-adv-x="878" d="M27.648 833.024q-21.504 1.024-25.6 2.048l-2.048 50.176q7.168 0 22.528 0 34.816 0 64.512-2.048 75.776-4.096 94.208-4.096 49.152 0 96.256 2.048 66.56 2.048 83.968 3.072 31.744 0 49.152 1.024l-1.024-8.192 1.024-36.864v-5.12q-33.792-5.12-70.656-5.12-33.792 0-45.056-14.336-7.168-7.168-7.168-74.752 0-8.192 0-18.432t0-15.36l1.024-131.072 8.192-159.744q3.072-70.656 28.672-114.688 20.48-33.792 55.296-53.248 50.176-26.624 100.352-26.624 59.392 0 109.568 16.384 31.744 10.24 56.32 28.672 27.648 20.48 37.888 36.864 20.48 31.744 29.696 64.512 12.288 41.984 12.288 131.072 0 45.056-2.048 73.728t-6.144 69.632-8.192 91.136l-2.048 33.792q-3.072 37.888-13.312 50.176-19.456 20.48-44.032 19.456l-57.344-1.024-8.192 2.048 1.024 49.152h48.128l116.736-6.144q44.032-2.048 112.64 6.144l10.24-2.048q3.072-21.504 3.072-28.672 0-4.096-2.048-17.408-25.6-7.168-48.128-8.192-41.984-6.144-45.056-9.216-8.192-9.216-8.192-23.552 0-4.096 0-15.36t1.024-17.408q5.12-11.264 13.312-226.304 3.072-111.616-9.216-174.080-8.192-43.008-23.552-69.632-21.504-36.864-63.488-70.656-43.008-32.768-104.448-50.176-62.464-19.456-145.408-19.456-95.232 0-162.816 26.624t-101.376 69.632q-34.816 43.008-48.128 111.616-9.216 45.056-9.216 135.168v190.464q0 107.52-9.216 121.856-14.336 20.48-83.968 21.504zM877.568 27.136v36.864q0 8.192-5.12 13.312t-13.312 5.12h-840.704q-8.192 0-13.312-5.12t-5.12-13.312v-36.864q0-8.192 5.12-13.312t13.312-5.12h840.704q8.192 0 13.312 5.12t5.12 13.312z" />
-<glyph unicode="&#xe812;" glyph-name="table" horiz-adv-x="950" d="M292.864 173.568v109.568q0 8.192-5.12 13.312t-13.312 5.12h-183.296q-7.168 0-13.312-5.12t-5.12-13.312v-109.568q0-8.192 5.12-13.312t13.312-5.12h183.296q8.192 0 13.312 5.12t5.12 13.312zM292.864 392.704v110.592q0 7.168-5.12 12.288t-13.312 5.12h-183.296q-7.168 0-13.312-5.12t-5.12-12.288v-110.592q0-7.168 5.12-12.288t13.312-5.12h183.296q8.192 0 13.312 5.12t5.12 12.288zM584.704 173.568v109.568q0 8.192-5.12 13.312t-12.288 5.12h-183.296q-8.192 0-13.312-5.12t-5.12-13.312v-109.568q0-8.192 5.12-13.312t13.312-5.12h183.296q7.168 0 12.288 5.12t5.12 13.312zM292.864 612.864v109.568q0 8.192-5.12 13.312t-13.312 5.12h-183.296q-7.168 0-13.312-5.12t-5.12-13.312v-109.568q0-8.192 5.12-13.312t13.312-5.12h183.296q8.192 0 13.312 5.12t5.12 13.312zM584.704 392.704v110.592q0 7.168-5.12 12.288t-12.288 5.12h-183.296q-8.192 0-13.312-5.12t-5.12-12.288v-110.592q0-7.168 5.12-12.288t13.312-5.12h183.296q7.168 0 12.288 5.12t5.12 12.288zM877.568 173.568v109.568q0 8.192-5.12 13.312t-13.312 5.12h-182.272q-8.192 0-13.312-5.12t-5.12-13.312v-109.568q0-8.192 5.12-13.312t13.312-5.12h182.272q8.192 0 13.312 5.12t5.12 13.312zM584.704 612.864v109.568q0 8.192-5.12 13.312t-12.288 5.12h-183.296q-8.192 0-13.312-5.12t-5.12-13.312v-109.568q0-8.192 5.12-13.312t13.312-5.12h183.296q7.168 0 12.288 5.12t5.12 13.312zM877.568 392.704v110.592q0 7.168-5.12 12.288t-13.312 5.12h-182.272q-8.192 0-13.312-5.12t-5.12-12.288v-110.592q0-7.168 5.12-12.288t13.312-5.12h182.272q8.192 0 13.312 5.12t5.12 12.288zM877.568 612.864v109.568q0 8.192-5.12 13.312t-13.312 5.12h-182.272q-8.192 0-13.312-5.12t-5.12-13.312v-109.568q0-8.192 5.12-13.312t13.312-5.12h182.272q8.192 0 13.312 5.12t5.12 13.312zM951.296 795.136v-621.568q0-37.888-27.648-64.512t-64.512-26.624h-768q-36.864 0-64.512 26.624t-26.624 64.512v621.568q0 37.888 26.624 64.512t64.512 27.648h768q37.888 0 64.512-27.648t27.648-64.512z" />
-<glyph unicode="&#xe813;" glyph-name="eraser" horiz-adv-x="1097" d="M512 155.136l192.512 220.16h-439.296l-192.512-220.16h439.296zM1090.56 770.56q9.216-19.456 6.144-40.96t-17.408-36.864l-512-585.728q-22.528-24.576-55.296-24.576h-439.296q-21.504 0-38.912 11.264t-27.648 31.744q-8.192 19.456-5.12 40.96t17.408 36.864l512 585.728q21.504 24.576 54.272 24.576h439.296q21.504 0 39.936-11.264t26.624-31.744z" />
-<glyph unicode="&#xe814;" glyph-name="text-height" d="M996.352 155.136q19.456 0 24.576-10.24t-6.144-25.6l-72.704-92.16q-11.264-15.36-27.648-15.36t-27.648 15.36l-72.704 92.16q-11.264 15.36-6.144 25.6t23.552 10.24h46.080v585.728h-46.080q-18.432 0-23.552 10.24t6.144 25.6l72.704 92.16q11.264 15.36 27.648 15.36t27.648-15.36l72.704-92.16q11.264-15.36 6.144-25.6t-24.576-10.24h-45.056v-585.728h45.056zM46.080 886.272l30.72-15.36q7.168-3.072 120.832-3.072 25.6 0 75.776 1.024t74.752 1.024q21.504 0 61.44 0t61.44 0h167.936q3.072 0 12.288 0t11.264 0 9.216 1.024 10.24 5.12 8.192 10.24l24.576 1.024q2.048 0 7.168-1.024t8.192 0q1.024-63.488 1.024-191.488 0-46.080-2.048-62.464-22.528-8.192-38.912-10.24-14.336 24.576-31.744 72.704-1.024 5.12-6.144 27.648t-8.192 41.984-4.096 20.48q-3.072 4.096-7.168 7.168t-8.192 3.072-8.192 1.024-10.24 1.024-9.216-1.024q-9.216 0-37.888 1.024t-43.008 0-35.84-1.024-40.96-4.096q-5.12-46.080-4.096-76.8 0-54.272 1.024-222.208t1.024-260.096q0-9.216-1.024-40.96t0-52.224 7.168-38.912q22.528-12.288 70.656-24.576t68.608-21.504q2.048-22.528 2.048-28.672 0-8.192-1.024-16.384l-19.456-1.024q-44.032-1.024-124.928 5.12t-117.76 5.12q-28.672 0-87.040-5.12t-86.016-5.12q-2.048 29.696-2.048 29.696v5.12q9.216 15.36 34.816 24.576t56.32 17.408 45.056 15.36q10.24 23.552 10.24 218.112 0 58.368-1.024 173.056t-2.048 174.080v66.56q0 1.024 0 8.192t1.024 14.336-1.024 15.36-2.048 13.312-3.072 8.192q-6.144 7.168-92.16 7.168-18.432 0-53.248-7.168t-45.056-15.36q-11.264-7.168-19.456-40.96t-18.432-63.488-24.576-30.72q-23.552 15.36-31.744 25.6v218.112z" />
-<glyph unicode="&#xe815;" glyph-name="brush" d="M922.624 960q39.936 0 70.656-26.624t29.696-66.56q0-35.84-25.6-86.016-189.44-359.424-266.24-430.080-55.296-52.224-123.904-52.224-72.704 0-123.904 53.248t-52.224 124.928q0 73.728 53.248 121.856l364.544 330.752q33.792 30.72 73.728 30.72zM403.456 369.152q22.528-43.008 60.416-74.752t86.016-43.008l1.024-40.96q2.048-121.856-73.728-197.632t-199.68-76.8q-69.632 0-123.904 26.624t-88.064 72.704-49.152 104.448-16.384 125.952q4.096-3.072 23.552-17.408t35.84-25.6 32.768-20.48 26.624-9.216q23.552 0 31.744 20.48 14.336 37.888 32.768 64.512t39.936 43.008 50.176 27.648 58.368 14.336 71.68 6.144z" />
-<glyph unicode="&#xe816;" glyph-name="pencil" horiz-adv-x="878" d="M207.872 82.432l51.2 52.224-134.144 134.144-52.224-52.224v-61.44h73.728v-72.704h61.44zM505.856 612.864q0 12.288-12.288 12.288-5.12 0-9.216-4.096l-310.272-309.248q-4.096-4.096-4.096-10.24 0-12.288 13.312-12.288 5.12 0 9.216 4.096l310.272 309.248q3.072 4.096 3.072 10.24zM475.136 722.432l237.568-237.568-475.136-476.16h-237.568v238.592zM865.28 667.136q0-29.696-20.48-51.2l-95.232-95.232-237.568 238.592 95.232 94.208q20.48 21.504 51.2 21.504 29.696 0 52.224-21.504l134.144-134.144q20.48-22.528 20.48-52.224z" />
-<glyph unicode="&#xe817;" glyph-name="minus" horiz-adv-x="804" d="M804.864 539.136v-109.568q0-22.528-16.384-38.912t-38.912-15.36h-694.272q-23.552 0-38.912 15.36t-16.384 38.912v109.568q0 23.552 16.384 38.912t38.912 16.384h694.272q22.528 0 38.912-16.384t16.384-38.912z" />
-<glyph unicode="&#xe818;" glyph-name="picture" horiz-adv-x="1097" d="M365.568 631.296q0-46.080-31.744-77.824t-77.824-32.768-77.824 32.768-31.744 77.824 31.744 76.8 77.824 32.768 77.824-32.768 31.744-76.8zM951.296 411.136v-256h-804.864v109.568l182.272 183.296 92.16-91.136 291.84 291.84zM1005.568 813.568h-914.432q-7.168 0-12.288-5.12t-6.144-13.312v-694.272q0-8.192 6.144-13.312t12.288-5.12h914.432q7.168 0 13.312 5.12t5.12 13.312v694.272q0 7.168-5.12 13.312t-13.312 5.12zM1096.704 795.136v-694.272q0-37.888-26.624-64.512t-64.512-27.648h-914.432q-36.864 0-64.512 27.648t-26.624 64.512v694.272q0 37.888 26.624 64.512t64.512 27.648h914.432q37.888 0 64.512-27.648t26.624-64.512z" />
-<glyph unicode="&#xe819;" glyph-name="file-image" horiz-adv-x="878" d="M838.656 742.912q16.384-16.384 27.648-43.008t11.264-51.2v-657.408q0-23.552-15.36-38.912t-38.912-16.384h-768q-23.552 0-38.912 16.384t-16.384 38.912v913.408q0 23.552 16.384 38.912t38.912 16.384h512q22.528 0 50.176-11.264t43.008-27.648zM584.704 882.176v-215.040h215.040q-5.12 16.384-12.288 23.552l-179.2 179.2q-6.144 7.168-23.552 12.288zM804.864 8.704v585.728h-237.568q-23.552 0-38.912 15.36t-16.384 38.912v238.592h-439.296v-878.592h732.16zM731.136 264.704v-182.272h-584.704v109.568l109.568 109.568 72.704-72.704 220.16 219.136zM256 375.296q-46.080 0-77.824 31.744t-31.744 77.824 31.744 77.824 77.824 31.744 77.824-31.744 31.744-77.824-31.744-77.824-77.824-31.744z" />
-<glyph unicode="&#xe81a;" glyph-name="cw" horiz-adv-x="878" d="M877.568 813.568v-256q0-14.336-10.24-25.6t-26.624-11.264h-256q-23.552 0-32.768 23.552-10.24 22.528 7.168 38.912l78.848 78.848q-83.968 78.848-198.656 78.848-59.392 0-113.664-23.552t-93.184-62.464-63.488-93.184-22.528-113.664 22.528-113.664 63.488-93.184 93.184-62.464 113.664-23.552q67.584 0 128 29.696t102.4 83.968q4.096 6.144 13.312 7.168 8.192 0 14.336-5.12l77.824-78.848q5.12-4.096 6.144-11.264t-5.12-13.312q-61.44-75.776-150.528-116.736t-186.368-41.984q-89.088 0-171.008 34.816t-139.264 94.208-94.208 140.288-34.816 169.984 34.816 169.984 94.208 140.288 139.264 94.208 171.008 34.816q83.968 0 161.792-31.744t140.288-90.112l73.728 73.728q16.384 18.432 39.936 8.192 22.528-9.216 22.528-33.792z" />
-<glyph unicode="&#xe81b;" glyph-name="ccw" horiz-adv-x="878" d="M877.568 448q0-89.088-34.816-169.984t-93.184-140.288-140.288-94.208-169.984-34.816q-98.304 0-187.392 41.984t-150.528 116.736q-4.096 6.144-4.096 13.312t5.12 11.264l77.824 78.848q6.144 5.12 14.336 5.12 9.216-1.024 13.312-7.168 41.984-54.272 102.4-83.968t129.024-29.696q59.392 0 112.64 23.552t94.208 62.464 62.464 93.184 22.528 113.664-22.528 113.664-62.464 93.184-94.208 62.464-112.64 23.552q-56.32 0-107.52-20.48t-92.16-58.368l78.848-78.848q17.408-16.384 8.192-38.912-10.24-23.552-33.792-23.552h-256q-15.36 0-25.6 11.264t-11.264 25.6v256q0 24.576 22.528 33.792 22.528 10.24 39.936-8.192l73.728-73.728q61.44 58.368 140.288 90.112t162.816 31.744q89.088 0 169.984-34.816t140.288-94.208 93.184-140.288 34.816-169.984z" />
-<glyph unicode="&#xe900;" glyph-name="omega" d="M704 64h256l64 128v-256h-384v214.214c131.112 56.484 224 197.162 224 361.786 0 214.432-157.598 382.266-352 382.266-194.406 0-352-167.832-352-382.266 0-164.624 92.886-305.302 224-361.786v-214.214h-384v256l64-128h256v32.59c-187.63 66.46-320 227.402-320 415.41 0 247.424 229.23 448 512 448s512-200.576 512-448c0-188.008-132.37-348.95-320-415.41v-32.59z" />
-<glyph unicode="&#xe901;" glyph-name="cancel-circle" d="M512 960c-282.77 0-512-229.23-512-512s229.23-512 512-512 512 229.23 512 512-229.23 512-512 512zM512 32c-229.75 0-416 186.25-416 416s186.25 416 416 416 416-186.25 416-416-186.25-416-416-416zM672 704l-160-160-160 160-96-96 160-160-160-160 96-96 160 160 160-160 96 96-160 160 160 160z" />
-<glyph unicode="&#xe904;" glyph-name="newspaper" d="M896 704v128h-896v-704c0-35.346 28.654-64 64-64h864c53.022 0 96 42.978 96 96v544h-128zM832 128h-768v640h768v-640zM128 640h640v-64h-640zM512 512h256v-64h-256zM512 384h256v-64h-256zM512 256h192v-64h-192zM128 512h320v-320h-320z" />
-<glyph unicode="&#xe90f;" glyph-name="camera" d="M304 352c0-114.876 93.124-208 208-208s208 93.124 208 208-93.124 208-208 208-208-93.124-208-208zM960 704h-224c-16 64-32 128-96 128h-256c-64 0-80-64-96-128h-224c-35.2 0-64-28.8-64-64v-576c0-35.2 28.8-64 64-64h896c35.2 0 64 28.8 64 64v576c0 35.2-28.8 64-64 64zM512 68c-156.85 0-284 127.148-284 284 0 156.85 127.15 284 284 284 156.852 0 284-127.15 284-284 0-156.852-127.146-284-284-284zM960 512h-128v64h128v-64z" />
-<glyph unicode="&#xe911;" glyph-name="music" d="M960 960h64v-736c0-88.366-100.29-160-224-160s-224 71.634-224 160c0 88.368 100.29 160 224 160 62.684 0 119.342-18.4 160-48.040v368.040l-512-113.778v-494.222c0-88.366-100.288-160-224-160s-224 71.634-224 160c0 88.368 100.288 160 224 160 62.684 0 119.342-18.4 160-48.040v624.040l576 128z" />
-<glyph unicode="&#xe912;" glyph-name="play" d="M981.188 799.892c-143.632 20.65-302.332 32.108-469.186 32.108-166.86 0-325.556-11.458-469.194-32.108-27.53-107.726-42.808-226.75-42.808-351.892 0-125.14 15.278-244.166 42.808-351.89 143.638-20.652 302.336-32.11 469.194-32.11 166.854 0 325.552 11.458 469.186 32.11 27.532 107.724 42.812 226.75 42.812 351.89 0 125.142-15.28 244.166-42.812 351.892zM384.002 256v384l320-192-320-192z" />
-<glyph unicode="&#xe914;" glyph-name="video-camera" d="M384 672c0 88.366 71.634 160 160 160s160-71.634 160-160c0-88.366-71.634-160-160-160s-160 71.634-160 160zM0 672c0 88.366 71.634 160 160 160s160-71.634 160-160c0-88.366-71.634-160-160-160s-160 71.634-160 160zM768 352v96c0 35.2-28.8 64-64 64h-640c-35.2 0-64-28.8-64-64v-320c0-35.2 28.8-64 64-64h640c35.2 0 64 28.8 64 64v96l256-160v448l-256-160zM640 192h-512v192h512v-192z" />
-<glyph unicode="&#xe92b;" glyph-name="file-zip" d="M917.806 730.924c-22.208 30.292-53.174 65.7-87.178 99.704s-69.412 64.964-99.704 87.178c-51.574 37.82-76.592 42.194-90.924 42.194h-496c-44.112 0-80-35.888-80-80v-864c0-44.112 35.884-80 80-80h736c44.112 0 80 35.888 80 80v624c0 14.332-4.372 39.35-42.194 90.924v0 0zM785.374 785.374c30.7-30.7 54.8-58.398 72.58-81.374h-153.954v153.946c22.98-17.78 50.678-41.878 81.374-72.572v0 0zM896 16c0-8.672-7.328-16-16-16h-736c-8.672 0-16 7.328-16 16v864c0 8.672 7.328 16 16 16 0 0 495.956 0.002 496 0v-224c0-17.672 14.322-32 32-32h224v-624zM256 896h128v-64h-128v64zM384 832h128v-64h-128v64zM256 768h128v-64h-128v64zM384 704h128v-64h-128v64zM256 640h128v-64h-128v64zM384 576h128v-64h-128v64zM256 512h128v-64h-128v64zM384 448h128v-64h-128v64zM256 112c0-26.4 21.6-48 48-48h160c26.4 0 48 21.6 48 48v160c0 26.4-21.6 48-48 48h-80v64h-128v-272zM448 192v-64h-128v64h128z" />
-<glyph unicode="&#xe92e;" glyph-name="stack" d="M1024 640l-512 256-512-256 512-256 512 256zM512 811.030l342.058-171.030-342.058-171.030-342.058 171.030 342.058 171.030zM921.444 499.278l102.556-51.278-512-256-512 256 102.556 51.278 409.444-204.722zM921.444 307.278l102.556-51.278-512-256-512 256 102.556 51.278 409.444-204.722z" />
-<glyph unicode="&#xe93f;" glyph-name="credit-card" d="M928 832h-832c-52.8 0-96-43.2-96-96v-576c0-52.8 43.2-96 96-96h832c52.8 0 96 43.2 96 96v576c0 52.8-43.2 96-96 96zM96 768h832c17.346 0 32-14.654 32-32v-96h-896v96c0 17.346 14.654 32 32 32zM928 128h-832c-17.346 0-32 14.654-32 32v288h896v-288c0-17.346-14.654-32-32-32zM128 320h64v-128h-64zM256 320h64v-128h-64zM384 320h64v-128h-64z" />
-<glyph unicode="&#xe944;" glyph-name="address-book" d="M192 960v-1024h768v1024h-768zM576 703.67c70.51 0 127.67-57.16 127.67-127.67s-57.16-127.67-127.67-127.67-127.67 57.16-127.67 127.67 57.16 127.67 127.67 127.67v0zM768 192h-384v64c0 70.696 57.306 128 128 128v0h128c70.696 0 128-57.304 128-128v-64zM64 896h96v-192h-96v192zM64 640h96v-192h-96v192zM64 384h96v-192h-96v192zM64 128h96v-192h-96v192z" />
-<glyph unicode="&#xe945;" glyph-name="envelop" d="M928 832h-832c-52.8 0-96-43.2-96-96v-640c0-52.8 43.2-96 96-96h832c52.8 0 96 43.2 96 96v640c0 52.8-43.2 96-96 96zM398.74 409.628l-270.74-210.892v501.642l270.74-290.75zM176.38 704h671.24l-335.62-252-335.62 252zM409.288 398.302l102.712-110.302 102.71 110.302 210.554-270.302h-626.528l210.552 270.302zM625.26 409.628l270.74 290.75v-501.642l-270.74 210.892z" />
-<glyph unicode="&#xe947;" glyph-name="location" d="M512 960c-176.732 0-320-143.268-320-320 0-320 320-704 320-704s320 384 320 704c0 176.732-143.27 320-320 320zM512 448c-106.040 0-192 85.96-192 192s85.96 192 192 192 192-85.96 192-192-85.96-192-192-192z" />
-<glyph unicode="&#xe95c;" glyph-name="drawer" d="M1016.988 307.99l-256 320c-6.074 7.592-15.266 12.010-24.988 12.010h-448c-9.72 0-18.916-4.418-24.988-12.010l-256-320c-4.538-5.674-7.012-12.724-7.012-19.99v-288c0-35.346 28.654-64 64-64h896c35.348 0 64 28.654 64 64v288c0 7.266-2.472 14.316-7.012 19.99zM960 256h-224l-128-128h-192l-128 128h-224v20.776l239.38 299.224h417.24l239.38-299.224v-20.776zM736 448h-448c-17.672 0-32 14.328-32 32s14.328 32 32 32h448c17.674 0 32-14.328 32-32s-14.326-32-32-32zM800 320h-576c-17.672 0-32 14.326-32 32s14.328 32 32 32h576c17.674 0 32-14.326 32-32s-14.326-32-32-32z" />
-<glyph unicode="&#xe960;" glyph-name="download" d="M512 384l256 256h-192v256h-128v-256h-192zM744.726 488.728l-71.74-71.742 260.080-96.986-421.066-157.018-421.066 157.018 260.080 96.986-71.742 71.742-279.272-104.728v-256l512-192 512 192v256z" />
-<glyph unicode="&#xe961;" glyph-name="upload" d="M448 384h128v256h192l-256 256-256-256h192zM640 528v-98.712l293.066-109.288-421.066-157.018-421.066 157.018 293.066 109.288v98.712l-384-144v-256l512-192 512 192v256z" />
-<glyph unicode="&#xe977;" glyph-name="quotes-left" d="M225 512c123.712 0 224-100.29 224-224 0-123.712-100.288-224-224-224s-224 100.288-224 224l-1 32c0 247.424 200.576 448 448 448v-128c-85.474 0-165.834-33.286-226.274-93.726-11.634-11.636-22.252-24.016-31.83-37.020 11.438 1.8 23.16 2.746 35.104 2.746zM801 512c123.71 0 224-100.29 224-224 0-123.712-100.29-224-224-224s-224 100.288-224 224l-1 32c0 247.424 200.576 448 448 448v-128c-85.474 0-165.834-33.286-226.274-93.726-11.636-11.636-22.254-24.016-31.832-37.020 11.44 1.8 23.16 2.746 35.106 2.746z" />
-<glyph unicode="&#xe98b;" glyph-name="enlarge2" d="M1024 960v-416l-160 160-192-192-96 96 192 192-160 160zM448 288l-192-192 160-160h-416v416l160-160 192 192z" />
-<glyph unicode="&#xe98c;" glyph-name="shrink2" d="M448 384v-416l-160 160-192-192-96 96 192 192-160 160zM1024 864l-192-192 160-160h-416v416l160-160 192 192z" />
-<glyph unicode="&#xe98f;" glyph-name="lock" d="M592 512h-16v192c0 105.87-86.13 192-192 192h-128c-105.87 0-192-86.13-192-192v-192h-16c-26.4 0-48-21.6-48-48v-480c0-26.4 21.6-48 48-48h544c26.4 0 48 21.6 48 48v480c0 26.4-21.6 48-48 48zM192 704c0 35.29 28.71 64 64 64h128c35.29 0 64-28.71 64-64v-192h-256v192z" />
-<glyph unicode="&#xe990;" glyph-name="unlocked" d="M768 896c105.87 0 192-86.13 192-192v-192h-128v192c0 35.29-28.71 64-64 64h-128c-35.29 0-64-28.71-64-64v-192h16c26.4 0 48-21.6 48-48v-480c0-26.4-21.6-48-48-48h-544c-26.4 0-48 21.6-48 48v480c0 26.4 21.6 48 48 48h400v192c0 105.87 86.13 192 192 192h128z" />
-<glyph unicode="&#xe991;" glyph-name="wrench" d="M1002.934 142.124l-460.552 394.76c21.448 40.298 33.618 86.282 33.618 135.116 0 159.058-128.942 288-288 288-29.094 0-57.172-4.332-83.646-12.354l166.39-166.39c24.89-24.89 24.89-65.62 0-90.51l-101.49-101.49c-24.89-24.89-65.62-24.89-90.51 0l-166.39 166.39c-8.022-26.474-12.354-54.552-12.354-83.646 0-159.058 128.942-288 288-288 48.834 0 94.818 12.17 135.116 33.62l394.76-460.552c22.908-26.724 62.016-28.226 86.904-3.338l101.492 101.492c24.888 24.888 23.386 63.994-3.338 86.902z" />
-<glyph unicode="&#xe9ce;" glyph-name="eye" d="M512 768c-223.318 0-416.882-130.042-512-320 95.118-189.958 288.682-320 512-320 223.312 0 416.876 130.042 512 320-95.116 189.958-288.688 320-512 320zM764.45 598.296c60.162-38.374 111.142-89.774 149.434-150.296-38.292-60.522-89.274-111.922-149.436-150.296-75.594-48.218-162.89-73.704-252.448-73.704-89.56 0-176.858 25.486-252.452 73.704-60.158 38.372-111.138 89.772-149.432 150.296 38.292 60.524 89.274 111.924 149.434 150.296 3.918 2.5 7.876 4.922 11.86 7.3-9.96-27.328-15.41-56.822-15.41-87.596 0-141.382 114.616-256 256-256 141.382 0 256 114.618 256 256 0 30.774-5.452 60.268-15.408 87.598 3.978-2.378 7.938-4.802 11.858-7.302v0zM512 544c0-53.020-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.982 96-96z" />
-<glyph unicode="&#xe9d1;" glyph-name="eye-blocked" d="M945.942 945.942c-18.746 18.744-49.136 18.744-67.882 0l-202.164-202.164c-51.938 15.754-106.948 24.222-163.896 24.222-223.318 0-416.882-130.042-512-320 41.122-82.124 100.648-153.040 173.022-207.096l-158.962-158.962c-18.746-18.746-18.746-49.136 0-67.882 9.372-9.374 21.656-14.060 33.94-14.060s24.568 4.686 33.942 14.058l864 864c18.744 18.746 18.744 49.138 0 67.884zM416 640c42.24 0 78.082-27.294 90.92-65.196l-121.724-121.724c-37.902 12.838-65.196 48.68-65.196 90.92 0 53.020 42.98 96 96 96zM110.116 448c38.292 60.524 89.274 111.924 149.434 150.296 3.918 2.5 7.876 4.922 11.862 7.3-9.962-27.328-15.412-56.822-15.412-87.596 0-54.89 17.286-105.738 46.7-147.418l-60.924-60.924c-52.446 36.842-97.202 83.882-131.66 138.342zM768 518c0 27.166-4.256 53.334-12.102 77.898l-321.808-321.808c24.568-7.842 50.742-12.090 77.91-12.090 141.382 0 256 114.618 256 256zM830.026 670.026l-69.362-69.362c1.264-0.786 2.53-1.568 3.786-2.368 60.162-38.374 111.142-89.774 149.434-150.296-38.292-60.522-89.274-111.922-149.436-150.296-75.594-48.218-162.89-73.704-252.448-73.704-38.664 0-76.902 4.76-113.962 14.040l-76.894-76.894c59.718-21.462 123.95-33.146 190.856-33.146 223.31 0 416.876 130.042 512 320-45.022 89.916-112.118 166.396-193.974 222.026z" />
-<glyph unicode="&#xe9df;" glyph-name="happy" d="M512-64c282.77 0 512 229.23 512 512s-229.23 512-512 512-512-229.23-512-512 229.23-512 512-512zM512 864c229.75 0 416-186.25 416-416s-186.25-416-416-416-416 186.25-416 416 186.25 416 416 416zM512 361.24c115.95 0 226.23 30.806 320 84.92-14.574-178.438-153.128-318.16-320-318.16-166.868 0-305.422 139.872-320 318.304 93.77-54.112 204.050-85.064 320-85.064zM256 608c0 53.019 28.654 96 64 96s64-42.981 64-96c0-53.019-28.654-96-64-96s-64 42.981-64 96zM640 608c0 53.019 28.654 96 64 96s64-42.981 64-96c0-53.019-28.654-96-64-96s-64 42.981-64 96z" />
-<glyph unicode="&#xea4e;" glyph-name="command" d="M736 64c-88.224 0-160 71.776-160 160v96h-128v-96c0-88.224-71.776-160-160-160s-160 71.776-160 160 71.776 160 160 160h96v128h-96c-88.224 0-160 71.776-160 160s71.776 160 160 160 160-71.776 160-160v-96h128v96c0 88.224 71.776 160 160 160s160-71.776 160-160-71.776-160-160-160h-96v-128h96c88.224 0 160-71.776 160-160s-71.774-160-160-160zM640 320v-96c0-52.934 43.066-96 96-96s96 43.066 96 96-43.066 96-96 96h-96zM288 320c-52.934 0-96-43.066-96-96s43.066-96 96-96 96 43.066 96 96v96h-96zM448 384h128v128h-128v-128zM640 576h96c52.934 0 96 43.066 96 96s-43.066 96-96 96-96-43.066-96-96v-96zM288 768c-52.934 0-96-43.066-96-96s43.066-96 96-96h96v96c0 52.934-43.064 96-96 96z" />
-<glyph unicode="&#xea5c;" glyph-name="font2" d="M799.596 943.792c-90.526 0-148.62 16.208-241.848 16.208-301.284 0-441.792-171.584-441.792-345.872 0-102.678 48.64-136.458 144.564-136.458-6.758 14.864-18.914 31.080-18.914 104.034 0 204.010 77.006 263.458 175.636 267.51 0 0-80.918-793.374-315.778-888.542v-24.672h316.594l108.026 512h197.844l44.072 128h-214.908l51.944 246.19c59.446-12.156 117.542-24.316 167.532-24.316 62.148 0 118.894 18.914 149.968 162.126-37.826-12.16-78.362-16.208-122.94-16.208z" />
-<glyph unicode="&#xea65;" glyph-name="strikethrough" d="M1024 448v-64h-234.506c27.504-38.51 42.506-82.692 42.506-128 0-70.878-36.66-139.026-100.58-186.964-59.358-44.518-137.284-69.036-219.42-69.036-82.138 0-160.062 24.518-219.42 69.036-63.92 47.938-100.58 116.086-100.58 186.964h128c0-69.382 87.926-128 192-128s192 58.618 192 128c0 69.382-87.926 128-192 128h-512v64h299.518c-2.338 1.654-4.656 3.324-6.938 5.036-63.92 47.94-100.58 116.086-100.58 186.964s36.66 139.024 100.58 186.964c59.358 44.518 137.282 69.036 219.42 69.036 82.136 0 160.062-24.518 219.42-69.036 63.92-47.94 100.58-116.086 100.58-186.964h-128c0 69.382-87.926 128-192 128s-192-58.618-192-128c0-69.382 87.926-128 192-128 78.978 0 154.054-22.678 212.482-64h299.518z" />
-<glyph unicode="&#xea67;" glyph-name="sigma" d="M941.606 225.292l44.394 94.708h38l-64-384h-960v74.242l331.546 391.212-331.546 331.546v227h980l44-256h-34.376l-18.72 38.88c-35.318 73.364-61.904 89.12-138.904 89.12h-662l353.056-353.056-297.42-350.944h542.364c116.008 0 146.648 41.578 173.606 97.292z" />
-<glyph unicode="&#xea68;" glyph-name="sigma2" d="M941.606 225.292l44.394 94.708h38l-64-384h-960v74.242l331.546 391.212-331.546 331.546v227h980l44-256h-34.376l-18.72 38.88c-35.318 73.364-61.904 89.12-138.904 89.12h-662l353.056-353.056-297.42-350.944h542.364c116.008 0 146.648 41.578 173.606 97.292z" />
-<glyph unicode="&#xeade;" glyph-name="libreoffice" d="M534.626 937.372c-12.444 12.444-37.026 22.628-54.626 22.628h-384c-17.6 0-32-14.4-32-32v-960c0-17.6 14.4-32 32-32h768c17.6 0 32 14.4 32 32v576c0 17.6-10.182 42.182-22.626 54.626l-338.748 338.746zM832 0h-704v896h351.158c2.916-0.48 8.408-2.754 10.81-4.478l337.556-337.554c1.722-2.402 3.996-7.894 4.476-10.81v-543.158zM864 960h-192c-17.6 0-21.818-10.182-9.374-22.626l210.746-210.746c12.446-12.446 22.628-8.228 22.628 9.372v192c0 17.6-14.4 32-32 32z" />
-<glyph unicode="&#xf00e;" glyph-name="search-plus" horiz-adv-x="951" d="M585.143 493.714v-36.571q0-7.429-5.429-12.857t-12.857-5.429h-128v-128q0-7.429-5.429-12.857t-12.857-5.429h-36.571q-7.429 0-12.857 5.429t-5.429 12.857v128h-128q-7.429 0-12.857 5.429t-5.429 12.857v36.571q0 7.429 5.429 12.857t12.857 5.429h128v128q0 7.429 5.429 12.857t12.857 5.429h36.571q7.429 0 12.857-5.429t5.429-12.857v-128h128q7.429 0 12.857-5.429t5.429-12.857zM658.286 475.428q0 105.714-75.143 180.857t-180.857 75.143-180.857-75.143-75.143-180.857 75.143-180.857 180.857-75.143 180.857 75.143 75.143 180.857zM950.857 0q0-30.286-21.429-51.714t-51.714-21.429q-30.857 0-51.429 21.714l-196 195.429q-102.286-70.857-228-70.857-81.714 0-156.286 31.714t-128.571 85.714-85.714 128.571-31.714 156.286 31.714 156.286 85.714 128.571 128.571 85.714 156.286 31.714 156.286-31.714 128.571-85.714 85.714-128.571 31.714-156.286q0-125.714-70.857-228l196-196q21.143-21.143 21.143-51.429z" />
-<glyph unicode="&#xf010;" glyph-name="search-minus" horiz-adv-x="951" d="M585.143 493.714v-36.571q0-7.429-5.429-12.857t-12.857-5.429h-329.143q-7.429 0-12.857 5.429t-5.429 12.857v36.571q0 7.429 5.429 12.857t12.857 5.429h329.143q7.429 0 12.857-5.429t5.429-12.857zM658.286 475.428q0 105.714-75.143 180.857t-180.857 75.143-180.857-75.143-75.143-180.857 75.143-180.857 180.857-75.143 180.857 75.143 75.143 180.857zM950.857 0q0-30.286-21.429-51.714t-51.714-21.429q-30.857 0-51.429 21.714l-196 195.429q-102.286-70.857-228-70.857-81.714 0-156.286 31.714t-128.571 85.714-85.714 128.571-31.714 156.286 31.714 156.286 85.714 128.571 128.571 85.714 156.286 31.714 156.286-31.714 128.571-85.714 85.714-128.571 31.714-156.286q0-125.714-70.857-228l196-196q21.143-21.143 21.143-51.429z" />
-<glyph unicode="&#xf014;" glyph-name="trash-o" horiz-adv-x="805" d="M292.571 530.286v-329.143q0-8-5.143-13.143t-13.143-5.143h-36.571q-8 0-13.143 5.143t-5.143 13.143v329.143q0 8 5.143 13.143t13.143 5.143h36.571q8 0 13.143-5.143t5.143-13.143zM438.857 530.286v-329.143q0-8-5.143-13.143t-13.143-5.143h-36.571q-8 0-13.143 5.143t-5.143 13.143v329.143q0 8 5.143 13.143t13.143 5.143h36.571q8 0 13.143-5.143t5.143-13.143zM585.143 530.286v-329.143q0-8-5.143-13.143t-13.143-5.143h-36.571q-8 0-13.143 5.143t-5.143 13.143v329.143q0 8 5.143 13.143t13.143 5.143h36.571q8 0 13.143-5.143t5.143-13.143zM658.286 116.571v541.714h-512v-541.714q0-12.571 4-23.143t8.286-15.429 6-4.857h475.429q1.714 0 6 4.857t8.286 15.429 4 23.143zM274.286 731.428h256l-27.429 66.857q-4 5.143-9.714 6.286h-181.143q-5.714-1.143-9.714-6.286zM804.571 713.143v-36.571q0-8-5.143-13.143t-13.143-5.143h-54.857v-541.714q0-47.429-26.857-82t-64.571-34.571h-475.429q-37.714 0-64.571 33.429t-26.857 80.857v544h-54.857q-8 0-13.143 5.143t-5.143 13.143v36.571q0 8 5.143 13.143t13.143 5.143h176.571l40 95.429q8.571 21.143 30.857 36t45.143 14.857h182.857q22.857 0 45.143-14.857t30.857-36l40-95.429h176.571q8 0 13.143-5.143t5.143-13.143z" />
-<glyph unicode="&#xf039;" glyph-name="align-justify" d="M1024 182.857v-73.143q0-14.857-10.857-25.714t-25.714-10.857h-950.857q-14.857 0-25.714 10.857t-10.857 25.714v73.143q0 14.857 10.857 25.714t25.714 10.857h950.857q14.857 0 25.714-10.857t10.857-25.714zM1024 402.286v-73.143q0-14.857-10.857-25.714t-25.714-10.857h-950.857q-14.857 0-25.714 10.857t-10.857 25.714v73.143q0 14.857 10.857 25.714t25.714 10.857h950.857q14.857 0 25.714-10.857t10.857-25.714zM1024 621.714v-73.143q0-14.857-10.857-25.714t-25.714-10.857h-950.857q-14.857 0-25.714 10.857t-10.857 25.714v73.143q0 14.857 10.857 25.714t25.714 10.857h950.857q14.857 0 25.714-10.857t10.857-25.714zM1024 841.143v-73.143q0-14.857-10.857-25.714t-25.714-10.857h-950.857q-14.857 0-25.714 10.857t-10.857 25.714v73.143q0 14.857 10.857 25.714t25.714 10.857h950.857q14.857 0 25.714-10.857t10.857-25.714z" />
-<glyph unicode="&#xf07d;" glyph-name="arrows-v" horiz-adv-x="439" d="M402.286 768q0-14.857-10.857-25.714t-25.714-10.857h-73.143v-585.143h73.143q14.857 0 25.714-10.857t10.857-25.714-10.857-25.714l-146.286-146.286q-10.857-10.857-25.714-10.857t-25.714 10.857l-146.286 146.286q-10.857 10.857-10.857 25.714t10.857 25.714 25.714 10.857h73.143v585.143h-73.143q-14.857 0-25.714 10.857t-10.857 25.714 10.857 25.714l146.286 146.286q10.857 10.857 25.714 10.857t25.714-10.857l146.286-146.286q10.857-10.857 10.857-25.714z" />
-<glyph unicode="&#xf108;" glyph-name="desktop" horiz-adv-x="1097" d="M1024 384v475.429q0 7.429-5.429 12.857t-12.857 5.429h-914.286q-7.429 0-12.857-5.429t-5.429-12.857v-475.429q0-7.429 5.429-12.857t12.857-5.429h914.286q7.429 0 12.857 5.429t5.429 12.857zM1097.143 859.428v-621.714q0-37.714-26.857-64.571t-64.571-26.857h-310.857q0-21.143 9.143-44.286t18.286-40.571 9.143-24.857q0-14.857-10.857-25.714t-25.714-10.857h-292.571q-14.857 0-25.714 10.857t-10.857 25.714q0 8 9.143 25.143t18.286 40 9.143 44.571h-310.857q-37.714 0-64.571 26.857t-26.857 64.571v621.714q0 37.714 26.857 64.571t64.571 26.857h914.286q37.714 0 64.571-26.857t26.857-64.571z" />
-<glyph unicode="&#xf10a;" glyph-name="tablet" horiz-adv-x="658" d="M365.714 146.286q0 14.857-10.857 25.714t-25.714 10.857-25.714-10.857-10.857-25.714 10.857-25.714 25.714-10.857 25.714 10.857 10.857 25.714zM585.143 237.714v548.571q0 7.429-5.429 12.857t-12.857 5.429h-475.429q-7.429 0-12.857-5.429t-5.429-12.857v-548.571q0-7.429 5.429-12.857t12.857-5.429h475.429q7.429 0 12.857 5.429t5.429 12.857zM658.286 786.286v-621.714q0-37.714-26.857-64.571t-64.571-26.857h-475.429q-37.714 0-64.571 26.857t-26.857 64.571v621.714q0 37.714 26.857 64.571t64.571 26.857h475.429q37.714 0 64.571-26.857t26.857-64.571z" />
-</font></defs></svg>

BIN
static/wangEditor/fonts/icomoon.ttf


BIN
static/wangEditor/fonts/icomoon.woff


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 3
static/wangEditor/js/lib/jquery-1.10.2.min.js


+ 0 - 9831
static/wangEditor/js/lib/jquery-2.2.1.js

@@ -1,9831 +0,0 @@
-/*!
- * jQuery JavaScript Library v2.2.1
- * http://jquery.com/
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-02-22T19:11Z
- */
-
-(function( global, factory ) {
-
-	if ( typeof module === "object" && typeof module.exports === "object" ) {
-		// For CommonJS and CommonJS-like environments where a proper `window`
-		// is present, execute the factory and get jQuery.
-		// For environments that do not have a `window` with a `document`
-		// (such as Node.js), expose a factory as module.exports.
-		// This accentuates the need for the creation of a real `window`.
-		// e.g. var jQuery = require("jquery")(window);
-		// See ticket #14549 for more info.
-		module.exports = global.document ?
-			factory( global, true ) :
-			function( w ) {
-				if ( !w.document ) {
-					throw new Error( "jQuery requires a window with a document" );
-				}
-				return factory( w );
-			};
-	} else {
-		factory( global );
-	}
-
-// Pass this if window is not defined yet
-}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Support: Firefox 18+
-// Can't be in strict mode, several libs including ASP.NET trace
-// the stack via arguments.caller.callee and Firefox dies if
-// you try to trace through "use strict" call chains. (#13335)
-//"use strict";
-var arr = [];
-
-var document = window.document;
-
-var slice = arr.slice;
-
-var concat = arr.concat;
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var support = {};
-
-
-
-var
-	version = "2.2.1",
-
-	// Define a local copy of jQuery
-	jQuery = function( selector, context ) {
-
-		// The jQuery object is actually just the init constructor 'enhanced'
-		// Need init if jQuery is called (just allow error to be thrown if not included)
-		return new jQuery.fn.init( selector, context );
-	},
-
-	// Support: Android<4.1
-	// Make sure we trim BOM and NBSP
-	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
-	// Matches dashed string for camelizing
-	rmsPrefix = /^-ms-/,
-	rdashAlpha = /-([\da-z])/gi,
-
-	// Used by jQuery.camelCase as callback to replace()
-	fcamelCase = function( all, letter ) {
-		return letter.toUpperCase();
-	};
-
-jQuery.fn = jQuery.prototype = {
-
-	// The current version of jQuery being used
-	jquery: version,
-
-	constructor: jQuery,
-
-	// Start with an empty selector
-	selector: "",
-
-	// The default length of a jQuery object is 0
-	length: 0,
-
-	toArray: function() {
-		return slice.call( this );
-	},
-
-	// Get the Nth element in the matched element set OR
-	// Get the whole matched element set as a clean array
-	get: function( num ) {
-		return num != null ?
-
-			// Return just the one element from the set
-			( num < 0 ? this[ num + this.length ] : this[ num ] ) :
-
-			// Return all the elements in a clean array
-			slice.call( this );
-	},
-
-	// Take an array of elements and push it onto the stack
-	// (returning the new matched element set)
-	pushStack: function( elems ) {
-
-		// Build a new jQuery matched element set
-		var ret = jQuery.merge( this.constructor(), elems );
-
-		// Add the old object onto the stack (as a reference)
-		ret.prevObject = this;
-		ret.context = this.context;
-
-		// Return the newly-formed element set
-		return ret;
-	},
-
-	// Execute a callback for every element in the matched set.
-	each: function( callback ) {
-		return jQuery.each( this, callback );
-	},
-
-	map: function( callback ) {
-		return this.pushStack( jQuery.map( this, function( elem, i ) {
-			return callback.call( elem, i, elem );
-		} ) );
-	},
-
-	slice: function() {
-		return this.pushStack( slice.apply( this, arguments ) );
-	},
-
-	first: function() {
-		return this.eq( 0 );
-	},
-
-	last: function() {
-		return this.eq( -1 );
-	},
-
-	eq: function( i ) {
-		var len = this.length,
-			j = +i + ( i < 0 ? len : 0 );
-		return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
-	},
-
-	end: function() {
-		return this.prevObject || this.constructor();
-	},
-
-	// For internal use only.
-	// Behaves like an Array's method, not like a jQuery method.
-	push: push,
-	sort: arr.sort,
-	splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
-	var options, name, src, copy, copyIsArray, clone,
-		target = arguments[ 0 ] || {},
-		i = 1,
-		length = arguments.length,
-		deep = false;
-
-	// Handle a deep copy situation
-	if ( typeof target === "boolean" ) {
-		deep = target;
-
-		// Skip the boolean and the target
-		target = arguments[ i ] || {};
-		i++;
-	}
-
-	// Handle case when target is a string or something (possible in deep copy)
-	if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
-		target = {};
-	}
-
-	// Extend jQuery itself if only one argument is passed
-	if ( i === length ) {
-		target = this;
-		i--;
-	}
-
-	for ( ; i < length; i++ ) {
-
-		// Only deal with non-null/undefined values
-		if ( ( options = arguments[ i ] ) != null ) {
-
-			// Extend the base object
-			for ( name in options ) {
-				src = target[ name ];
-				copy = options[ name ];
-
-				// Prevent never-ending loop
-				if ( target === copy ) {
-					continue;
-				}
-
-				// Recurse if we're merging plain objects or arrays
-				if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
-					( copyIsArray = jQuery.isArray( copy ) ) ) ) {
-
-					if ( copyIsArray ) {
-						copyIsArray = false;
-						clone = src && jQuery.isArray( src ) ? src : [];
-
-					} else {
-						clone = src && jQuery.isPlainObject( src ) ? src : {};
-					}
-
-					// Never move original objects, clone them
-					target[ name ] = jQuery.extend( deep, clone, copy );
-
-				// Don't bring in undefined values
-				} else if ( copy !== undefined ) {
-					target[ name ] = copy;
-				}
-			}
-		}
-	}
-
-	// Return the modified object
-	return target;
-};
-
-jQuery.extend( {
-
-	// Unique for each copy of jQuery on the page
-	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
-	// Assume jQuery is ready without the ready module
-	isReady: true,
-
-	error: function( msg ) {
-		throw new Error( msg );
-	},
-
-	noop: function() {},
-
-	isFunction: function( obj ) {
-		return jQuery.type( obj ) === "function";
-	},
-
-	isArray: Array.isArray,
-
-	isWindow: function( obj ) {
-		return obj != null && obj === obj.window;
-	},
-
-	isNumeric: function( obj ) {
-
-		// parseFloat NaNs numeric-cast false positives (null|true|false|"")
-		// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
-		// subtraction forces infinities to NaN
-		// adding 1 corrects loss of precision from parseFloat (#15100)
-		var realStringObj = obj && obj.toString();
-		return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0;
-	},
-
-	isPlainObject: function( obj ) {
-
-		// Not plain objects:
-		// - Any object or value whose internal [[Class]] property is not "[object Object]"
-		// - DOM nodes
-		// - window
-		if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
-			return false;
-		}
-
-		if ( obj.constructor &&
-				!hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
-			return false;
-		}
-
-		// If the function hasn't returned already, we're confident that
-		// |obj| is a plain object, created by {} or constructed with new Object
-		return true;
-	},
-
-	isEmptyObject: function( obj ) {
-		var name;
-		for ( name in obj ) {
-			return false;
-		}
-		return true;
-	},
-
-	type: function( obj ) {
-		if ( obj == null ) {
-			return obj + "";
-		}
-
-		// Support: Android<4.0, iOS<6 (functionish RegExp)
-		return typeof obj === "object" || typeof obj === "function" ?
-			class2type[ toString.call( obj ) ] || "object" :
-			typeof obj;
-	},
-
-	// Evaluates a script in a global context
-	globalEval: function( code ) {
-		var script,
-			indirect = eval;
-
-		code = jQuery.trim( code );
-
-		if ( code ) {
-
-			// If the code includes a valid, prologue position
-			// strict mode pragma, execute code by injecting a
-			// script tag into the document.
-			if ( code.indexOf( "use strict" ) === 1 ) {
-				script = document.createElement( "script" );
-				script.text = code;
-				document.head.appendChild( script ).parentNode.removeChild( script );
-			} else {
-
-				// Otherwise, avoid the DOM node creation, insertion
-				// and removal by using an indirect global eval
-
-				indirect( code );
-			}
-		}
-	},
-
-	// Convert dashed to camelCase; used by the css and data modules
-	// Support: IE9-11+
-	// Microsoft forgot to hump their vendor prefix (#9572)
-	camelCase: function( string ) {
-		return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-	},
-
-	nodeName: function( elem, name ) {
-		return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
-	},
-
-	each: function( obj, callback ) {
-		var length, i = 0;
-
-		if ( isArrayLike( obj ) ) {
-			length = obj.length;
-			for ( ; i < length; i++ ) {
-				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
-					break;
-				}
-			}
-		} else {
-			for ( i in obj ) {
-				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
-					break;
-				}
-			}
-		}
-
-		return obj;
-	},
-
-	// Support: Android<4.1
-	trim: function( text ) {
-		return text == null ?
-			"" :
-			( text + "" ).replace( rtrim, "" );
-	},
-
-	// results is for internal usage only
-	makeArray: function( arr, results ) {
-		var ret = results || [];
-
-		if ( arr != null ) {
-			if ( isArrayLike( Object( arr ) ) ) {
-				jQuery.merge( ret,
-					typeof arr === "string" ?
-					[ arr ] : arr
-				);
-			} else {
-				push.call( ret, arr );
-			}
-		}
-
-		return ret;
-	},
-
-	inArray: function( elem, arr, i ) {
-		return arr == null ? -1 : indexOf.call( arr, elem, i );
-	},
-
-	merge: function( first, second ) {
-		var len = +second.length,
-			j = 0,
-			i = first.length;
-
-		for ( ; j < len; j++ ) {
-			first[ i++ ] = second[ j ];
-		}
-
-		first.length = i;
-
-		return first;
-	},
-
-	grep: function( elems, callback, invert ) {
-		var callbackInverse,
-			matches = [],
-			i = 0,
-			length = elems.length,
-			callbackExpect = !invert;
-
-		// Go through the array, only saving the items
-		// that pass the validator function
-		for ( ; i < length; i++ ) {
-			callbackInverse = !callback( elems[ i ], i );
-			if ( callbackInverse !== callbackExpect ) {
-				matches.push( elems[ i ] );
-			}
-		}
-
-		return matches;
-	},
-
-	// arg is for internal usage only
-	map: function( elems, callback, arg ) {
-		var length, value,
-			i = 0,
-			ret = [];
-
-		// Go through the array, translating each of the items to their new values
-		if ( isArrayLike( elems ) ) {
-			length = elems.length;
-			for ( ; i < length; i++ ) {
-				value = callback( elems[ i ], i, arg );
-
-				if ( value != null ) {
-					ret.push( value );
-				}
-			}
-
-		// Go through every key on the object,
-		} else {
-			for ( i in elems ) {
-				value = callback( elems[ i ], i, arg );
-
-				if ( value != null ) {
-					ret.push( value );
-				}
-			}
-		}
-
-		// Flatten any nested arrays
-		return concat.apply( [], ret );
-	},
-
-	// A global GUID counter for objects
-	guid: 1,
-
-	// Bind a function to a context, optionally partially applying any
-	// arguments.
-	proxy: function( fn, context ) {
-		var tmp, args, proxy;
-
-		if ( typeof context === "string" ) {
-			tmp = fn[ context ];
-			context = fn;
-			fn = tmp;
-		}
-
-		// Quick check to determine if target is callable, in the spec
-		// this throws a TypeError, but we will just return undefined.
-		if ( !jQuery.isFunction( fn ) ) {
-			return undefined;
-		}
-
-		// Simulated bind
-		args = slice.call( arguments, 2 );
-		proxy = function() {
-			return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
-		};
-
-		// Set the guid of unique handler to the same of original handler, so it can be removed
-		proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
-		return proxy;
-	},
-
-	now: Date.now,
-
-	// jQuery.support is not used in Core but other projects attach their
-	// properties to it so it needs to exist.
-	support: support
-} );
-
-// JSHint would error on this code due to the Symbol not being defined in ES5.
-// Defining this global in .jshintrc would create a danger of using the global
-// unguarded in another place, it seems safer to just disable JSHint for these
-// three lines.
-/* jshint ignore: start */
-if ( typeof Symbol === "function" ) {
-	jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-/* jshint ignore: end */
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
-	class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
-	// Support: iOS 8.2 (not reproducible in simulator)
-	// `in` check used to prevent JIT error (gh-2145)
-	// hasOwn isn't used here due to false negatives
-	// regarding Nodelist length in IE
-	var length = !!obj && "length" in obj && obj.length,
-		type = jQuery.type( obj );
-
-	if ( type === "function" || jQuery.isWindow( obj ) ) {
-		return false;
-	}
-
-	return type === "array" || length === 0 ||
-		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.2.1
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2015-10-17
- */
-(function( window ) {
-
-var i,
-	support,
-	Expr,
-	getText,
-	isXML,
-	tokenize,
-	compile,
-	select,
-	outermostContext,
-	sortInput,
-	hasDuplicate,
-
-	// Local document vars
-	setDocument,
-	document,
-	docElem,
-	documentIsHTML,
-	rbuggyQSA,
-	rbuggyMatches,
-	matches,
-	contains,
-
-	// Instance-specific data
-	expando = "sizzle" + 1 * new Date(),
-	preferredDoc = window.document,
-	dirruns = 0,
-	done = 0,
-	classCache = createCache(),
-	tokenCache = createCache(),
-	compilerCache = createCache(),
-	sortOrder = function( a, b ) {
-		if ( a === b ) {
-			hasDuplicate = true;
-		}
-		return 0;
-	},
-
-	// General-purpose constants
-	MAX_NEGATIVE = 1 << 31,
-
-	// Instance methods
-	hasOwn = ({}).hasOwnProperty,
-	arr = [],
-	pop = arr.pop,
-	push_native = arr.push,
-	push = arr.push,
-	slice = arr.slice,
-	// Use a stripped-down indexOf as it's faster than native
-	// http://jsperf.com/thor-indexof-vs-for/5
-	indexOf = function( list, elem ) {
-		var i = 0,
-			len = list.length;
-		for ( ; i < len; i++ ) {
-			if ( list[i] === elem ) {
-				return i;
-			}
-		}
-		return -1;
-	},
-
-	booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
-	// Regular expressions
-
-	// http://www.w3.org/TR/css3-selectors/#whitespace
-	whitespace = "[\\x20\\t\\r\\n\\f]",
-
-	// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
-	identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
-	// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
-	attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
-		// Operator (capture 2)
-		"*([*^$|!~]?=)" + whitespace +
-		// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
-		"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
-		"*\\]",
-
-	pseudos = ":(" + identifier + ")(?:\\((" +
-		// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
-		// 1. quoted (capture 3; capture 4 or capture 5)
-		"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
-		// 2. simple (capture 6)
-		"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
-		// 3. anything else (capture 2)
-		".*" +
-		")\\)|)",
-
-	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
-	rwhitespace = new RegExp( whitespace + "+", "g" ),
-	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
-	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
-	rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
-	rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
-	rpseudo = new RegExp( pseudos ),
-	ridentifier = new RegExp( "^" + identifier + "$" ),
-
-	matchExpr = {
-		"ID": new RegExp( "^#(" + identifier + ")" ),
-		"CLASS": new RegExp( "^\\.(" + identifier + ")" ),
-		"TAG": new RegExp( "^(" + identifier + "|[*])" ),
-		"ATTR": new RegExp( "^" + attributes ),
-		"PSEUDO": new RegExp( "^" + pseudos ),
-		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
-			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
-			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
-		"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
-		// For use in libraries implementing .is()
-		// We use this for POS matching in `select`
-		"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
-			whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
-	},
-
-	rinputs = /^(?:input|select|textarea|button)$/i,
-	rheader = /^h\d$/i,
-
-	rnative = /^[^{]+\{\s*\[native \w/,
-
-	// Easily-parseable/retrievable ID or TAG or CLASS selectors
-	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
-	rsibling = /[+~]/,
-	rescape = /'|\\/g,
-
-	// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
-	runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
-	funescape = function( _, escaped, escapedWhitespace ) {
-		var high = "0x" + escaped - 0x10000;
-		// NaN means non-codepoint
-		// Support: Firefox<24
-		// Workaround erroneous numeric interpretation of +"0x"
-		return high !== high || escapedWhitespace ?
-			escaped :
-			high < 0 ?
-				// BMP codepoint
-				String.fromCharCode( high + 0x10000 ) :
-				// Supplemental Plane codepoint (surrogate pair)
-				String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
-	},
-
-	// Used for iframes
-	// See setDocument()
-	// Removing the function wrapper causes a "Permission Denied"
-	// error in IE
-	unloadHandler = function() {
-		setDocument();
-	};
-
-// Optimize for push.apply( _, NodeList )
-try {
-	push.apply(
-		(arr = slice.call( preferredDoc.childNodes )),
-		preferredDoc.childNodes
-	);
-	// Support: Android<4.0
-	// Detect silently failing push.apply
-	arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
-	push = { apply: arr.length ?
-
-		// Leverage slice if possible
-		function( target, els ) {
-			push_native.apply( target, slice.call(els) );
-		} :
-
-		// Support: IE<9
-		// Otherwise append directly
-		function( target, els ) {
-			var j = target.length,
-				i = 0;
-			// Can't trust NodeList.length
-			while ( (target[j++] = els[i++]) ) {}
-			target.length = j - 1;
-		}
-	};
-}
-
-function Sizzle( selector, context, results, seed ) {
-	var m, i, elem, nid, nidselect, match, groups, newSelector,
-		newContext = context && context.ownerDocument,
-
-		// nodeType defaults to 9, since context defaults to document
-		nodeType = context ? context.nodeType : 9;
-
-	results = results || [];
-
-	// Return early from calls with invalid selector or context
-	if ( typeof selector !== "string" || !selector ||
-		nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
-		return results;
-	}
-
-	// Try to shortcut find operations (as opposed to filters) in HTML documents
-	if ( !seed ) {
-
-		if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
-			setDocument( context );
-		}
-		context = context || document;
-
-		if ( documentIsHTML ) {
-
-			// If the selector is sufficiently simple, try using a "get*By*" DOM method
-			// (excepting DocumentFragment context, where the methods don't exist)
-			if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
-
-				// ID selector
-				if ( (m = match[1]) ) {
-
-					// Document context
-					if ( nodeType === 9 ) {
-						if ( (elem = context.getElementById( m )) ) {
-
-							// Support: IE, Opera, Webkit
-							// TODO: identify versions
-							// getElementById can match elements by name instead of ID
-							if ( elem.id === m ) {
-								results.push( elem );
-								return results;
-							}
-						} else {
-							return results;
-						}
-
-					// Element context
-					} else {
-
-						// Support: IE, Opera, Webkit
-						// TODO: identify versions
-						// getElementById can match elements by name instead of ID
-						if ( newContext && (elem = newContext.getElementById( m )) &&
-							contains( context, elem ) &&
-							elem.id === m ) {
-
-							results.push( elem );
-							return results;
-						}
-					}
-
-				// Type selector
-				} else if ( match[2] ) {
-					push.apply( results, context.getElementsByTagName( selector ) );
-					return results;
-
-				// Class selector
-				} else if ( (m = match[3]) && support.getElementsByClassName &&
-					context.getElementsByClassName ) {
-
-					push.apply( results, context.getElementsByClassName( m ) );
-					return results;
-				}
-			}
-
-			// Take advantage of querySelectorAll
-			if ( support.qsa &&
-				!compilerCache[ selector + " " ] &&
-				(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
-
-				if ( nodeType !== 1 ) {
-					newContext = context;
-					newSelector = selector;
-
-				// qSA looks outside Element context, which is not what we want
-				// Thanks to Andrew Dupont for this workaround technique
-				// Support: IE <=8
-				// Exclude object elements
-				} else if ( context.nodeName.toLowerCase() !== "object" ) {
-
-					// Capture the context ID, setting it first if necessary
-					if ( (nid = context.getAttribute( "id" )) ) {
-						nid = nid.replace( rescape, "\\$&" );
-					} else {
-						context.setAttribute( "id", (nid = expando) );
-					}
-
-					// Prefix every selector in the list
-					groups = tokenize( selector );
-					i = groups.length;
-					nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
-					while ( i-- ) {
-						groups[i] = nidselect + " " + toSelector( groups[i] );
-					}
-					newSelector = groups.join( "," );
-
-					// Expand context for sibling selectors
-					newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
-						context;
-				}
-
-				if ( newSelector ) {
-					try {
-						push.apply( results,
-							newContext.querySelectorAll( newSelector )
-						);
-						return results;
-					} catch ( qsaError ) {
-					} finally {
-						if ( nid === expando ) {
-							context.removeAttribute( "id" );
-						}
-					}
-				}
-			}
-		}
-	}
-
-	// All others
-	return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- *	deleting the oldest entry
- */
-function createCache() {
-	var keys = [];
-
-	function cache( key, value ) {
-		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
-		if ( keys.push( key + " " ) > Expr.cacheLength ) {
-			// Only keep the most recent entries
-			delete cache[ keys.shift() ];
-		}
-		return (cache[ key + " " ] = value);
-	}
-	return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
-	fn[ expando ] = true;
-	return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
-	var div = document.createElement("div");
-
-	try {
-		return !!fn( div );
-	} catch (e) {
-		return false;
-	} finally {
-		// Remove from its parent by default
-		if ( div.parentNode ) {
-			div.parentNode.removeChild( div );
-		}
-		// release memory in IE
-		div = null;
-	}
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
-	var arr = attrs.split("|"),
-		i = arr.length;
-
-	while ( i-- ) {
-		Expr.attrHandle[ arr[i] ] = handler;
-	}
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
-	var cur = b && a,
-		diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
-			( ~b.sourceIndex || MAX_NEGATIVE ) -
-			( ~a.sourceIndex || MAX_NEGATIVE );
-
-	// Use IE sourceIndex if available on both nodes
-	if ( diff ) {
-		return diff;
-	}
-
-	// Check if b follows a
-	if ( cur ) {
-		while ( (cur = cur.nextSibling) ) {
-			if ( cur === b ) {
-				return -1;
-			}
-		}
-	}
-
-	return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
-	return function( elem ) {
-		var name = elem.nodeName.toLowerCase();
-		return name === "input" && elem.type === type;
-	};
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
-	return function( elem ) {
-		var name = elem.nodeName.toLowerCase();
-		return (name === "input" || name === "button") && elem.type === type;
-	};
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
-	return markFunction(function( argument ) {
-		argument = +argument;
-		return markFunction(function( seed, matches ) {
-			var j,
-				matchIndexes = fn( [], seed.length, argument ),
-				i = matchIndexes.length;
-
-			// Match elements found at the specified indexes
-			while ( i-- ) {
-				if ( seed[ (j = matchIndexes[i]) ] ) {
-					seed[j] = !(matches[j] = seed[j]);
-				}
-			}
-		});
-	});
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
-	return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
-	// documentElement is verified for cases where it doesn't yet exist
-	// (such as loading iframes in IE - #4833)
-	var documentElement = elem && (elem.ownerDocument || elem).documentElement;
-	return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
-	var hasCompare, parent,
-		doc = node ? node.ownerDocument || node : preferredDoc;
-
-	// Return early if doc is invalid or already selected
-	if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
-		return document;
-	}
-
-	// Update global variables
-	document = doc;
-	docElem = document.documentElement;
-	documentIsHTML = !isXML( document );
-
-	// Support: IE 9-11, Edge
-	// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
-	if ( (parent = document.defaultView) && parent.top !== parent ) {
-		// Support: IE 11
-		if ( parent.addEventListener ) {
-			parent.addEventListener( "unload", unloadHandler, false );
-
-		// Support: IE 9 - 10 only
-		} else if ( parent.attachEvent ) {
-			parent.attachEvent( "onunload", unloadHandler );
-		}
-	}
-
-	/* Attributes
-	---------------------------------------------------------------------- */
-
-	// Support: IE<8
-	// Verify that getAttribute really returns attributes and not properties
-	// (excepting IE8 booleans)
-	support.attributes = assert(function( div ) {
-		div.className = "i";
-		return !div.getAttribute("className");
-	});
-
-	/* getElement(s)By*
-	---------------------------------------------------------------------- */
-
-	// Check if getElementsByTagName("*") returns only elements
-	support.getElementsByTagName = assert(function( div ) {
-		div.appendChild( document.createComment("") );
-		return !div.getElementsByTagName("*").length;
-	});
-
-	// Support: IE<9
-	support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
-	// Support: IE<10
-	// Check if getElementById returns elements by name
-	// The broken getElementById methods don't pick up programatically-set names,
-	// so use a roundabout getElementsByName test
-	support.getById = assert(function( div ) {
-		docElem.appendChild( div ).id = expando;
-		return !document.getElementsByName || !document.getElementsByName( expando ).length;
-	});
-
-	// ID find and filter
-	if ( support.getById ) {
-		Expr.find["ID"] = function( id, context ) {
-			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
-				var m = context.getElementById( id );
-				return m ? [ m ] : [];
-			}
-		};
-		Expr.filter["ID"] = function( id ) {
-			var attrId = id.replace( runescape, funescape );
-			return function( elem ) {
-				return elem.getAttribute("id") === attrId;
-			};
-		};
-	} else {
-		// Support: IE6/7
-		// getElementById is not reliable as a find shortcut
-		delete Expr.find["ID"];
-
-		Expr.filter["ID"] =  function( id ) {
-			var attrId = id.replace( runescape, funescape );
-			return function( elem ) {
-				var node = typeof elem.getAttributeNode !== "undefined" &&
-					elem.getAttributeNode("id");
-				return node && node.value === attrId;
-			};
-		};
-	}
-
-	// Tag
-	Expr.find["TAG"] = support.getElementsByTagName ?
-		function( tag, context ) {
-			if ( typeof context.getElementsByTagName !== "undefined" ) {
-				return context.getElementsByTagName( tag );
-
-			// DocumentFragment nodes don't have gEBTN
-			} else if ( support.qsa ) {
-				return context.querySelectorAll( tag );
-			}
-		} :
-
-		function( tag, context ) {
-			var elem,
-				tmp = [],
-				i = 0,
-				// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
-				results = context.getElementsByTagName( tag );
-
-			// Filter out possible comments
-			if ( tag === "*" ) {
-				while ( (elem = results[i++]) ) {
-					if ( elem.nodeType === 1 ) {
-						tmp.push( elem );
-					}
-				}
-
-				return tmp;
-			}
-			return results;
-		};
-
-	// Class
-	Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
-		if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
-			return context.getElementsByClassName( className );
-		}
-	};
-
-	/* QSA/matchesSelector
-	---------------------------------------------------------------------- */
-
-	// QSA and matchesSelector support
-
-	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
-	rbuggyMatches = [];
-
-	// qSa(:focus) reports false when true (Chrome 21)
-	// We allow this because of a bug in IE8/9 that throws an error
-	// whenever `document.activeElement` is accessed on an iframe
-	// So, we allow :focus to pass through QSA all the time to avoid the IE error
-	// See http://bugs.jquery.com/ticket/13378
-	rbuggyQSA = [];
-
-	if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
-		// Build QSA regex
-		// Regex strategy adopted from Diego Perini
-		assert(function( div ) {
-			// Select is set to empty string on purpose
-			// This is to test IE's treatment of not explicitly
-			// setting a boolean content attribute,
-			// since its presence should be enough
-			// http://bugs.jquery.com/ticket/12359
-			docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
-				"<select id='" + expando + "-\r\\' msallowcapture=''>" +
-				"<option selected=''></option></select>";
-
-			// Support: IE8, Opera 11-12.16
-			// Nothing should be selected when empty strings follow ^= or $= or *=
-			// The test attribute must be unknown in Opera but "safe" for WinRT
-			// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
-			if ( div.querySelectorAll("[msallowcapture^='']").length ) {
-				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
-			}
-
-			// Support: IE8
-			// Boolean attributes and "value" are not treated correctly
-			if ( !div.querySelectorAll("[selected]").length ) {
-				rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
-			}
-
-			// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
-			if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
-				rbuggyQSA.push("~=");
-			}
-
-			// Webkit/Opera - :checked should return selected option elements
-			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
-			// IE8 throws error here and will not see later tests
-			if ( !div.querySelectorAll(":checked").length ) {
-				rbuggyQSA.push(":checked");
-			}
-
-			// Support: Safari 8+, iOS 8+
-			// https://bugs.webkit.org/show_bug.cgi?id=136851
-			// In-page `selector#id sibing-combinator selector` fails
-			if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
-				rbuggyQSA.push(".#.+[+~]");
-			}
-		});
-
-		assert(function( div ) {
-			// Support: Windows 8 Native Apps
-			// The type and name attributes are restricted during .innerHTML assignment
-			var input = document.createElement("input");
-			input.setAttribute( "type", "hidden" );
-			div.appendChild( input ).setAttribute( "name", "D" );
-
-			// Support: IE8
-			// Enforce case-sensitivity of name attribute
-			if ( div.querySelectorAll("[name=d]").length ) {
-				rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
-			}
-
-			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
-			// IE8 throws error here and will not see later tests
-			if ( !div.querySelectorAll(":enabled").length ) {
-				rbuggyQSA.push( ":enabled", ":disabled" );
-			}
-
-			// Opera 10-11 does not throw on post-comma invalid pseudos
-			div.querySelectorAll("*,:x");
-			rbuggyQSA.push(",.*:");
-		});
-	}
-
-	if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
-		docElem.webkitMatchesSelector ||
-		docElem.mozMatchesSelector ||
-		docElem.oMatchesSelector ||
-		docElem.msMatchesSelector) )) ) {
-
-		assert(function( div ) {
-			// Check to see if it's possible to do matchesSelector
-			// on a disconnected node (IE 9)
-			support.disconnectedMatch = matches.call( div, "div" );
-
-			// This should fail with an exception
-			// Gecko does not error, returns false instead
-			matches.call( div, "[s!='']:x" );
-			rbuggyMatches.push( "!=", pseudos );
-		});
-	}
-
-	rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
-	rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
-	/* Contains
-	---------------------------------------------------------------------- */
-	hasCompare = rnative.test( docElem.compareDocumentPosition );
-
-	// Element contains another
-	// Purposefully self-exclusive
-	// As in, an element does not contain itself
-	contains = hasCompare || rnative.test( docElem.contains ) ?
-		function( a, b ) {
-			var adown = a.nodeType === 9 ? a.documentElement : a,
-				bup = b && b.parentNode;
-			return a === bup || !!( bup && bup.nodeType === 1 && (
-				adown.contains ?
-					adown.contains( bup ) :
-					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
-			));
-		} :
-		function( a, b ) {
-			if ( b ) {
-				while ( (b = b.parentNode) ) {
-					if ( b === a ) {
-						return true;
-					}
-				}
-			}
-			return false;
-		};
-
-	/* Sorting
-	---------------------------------------------------------------------- */
-
-	// Document order sorting
-	sortOrder = hasCompare ?
-	function( a, b ) {
-
-		// Flag for duplicate removal
-		if ( a === b ) {
-			hasDuplicate = true;
-			return 0;
-		}
-
-		// Sort on method existence if only one input has compareDocumentPosition
-		var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
-		if ( compare ) {
-			return compare;
-		}
-
-		// Calculate position if both inputs belong to the same document
-		compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
-			a.compareDocumentPosition( b ) :
-
-			// Otherwise we know they are disconnected
-			1;
-
-		// Disconnected nodes
-		if ( compare & 1 ||
-			(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
-			// Choose the first element that is related to our preferred document
-			if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
-				return -1;
-			}
-			if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
-				return 1;
-			}
-
-			// Maintain original order
-			return sortInput ?
-				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
-				0;
-		}
-
-		return compare & 4 ? -1 : 1;
-	} :
-	function( a, b ) {
-		// Exit early if the nodes are identical
-		if ( a === b ) {
-			hasDuplicate = true;
-			return 0;
-		}
-
-		var cur,
-			i = 0,
-			aup = a.parentNode,
-			bup = b.parentNode,
-			ap = [ a ],
-			bp = [ b ];
-
-		// Parentless nodes are either documents or disconnected
-		if ( !aup || !bup ) {
-			return a === document ? -1 :
-				b === document ? 1 :
-				aup ? -1 :
-				bup ? 1 :
-				sortInput ?
-				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
-				0;
-
-		// If the nodes are siblings, we can do a quick check
-		} else if ( aup === bup ) {
-			return siblingCheck( a, b );
-		}
-
-		// Otherwise we need full lists of their ancestors for comparison
-		cur = a;
-		while ( (cur = cur.parentNode) ) {
-			ap.unshift( cur );
-		}
-		cur = b;
-		while ( (cur = cur.parentNode) ) {
-			bp.unshift( cur );
-		}
-
-		// Walk down the tree looking for a discrepancy
-		while ( ap[i] === bp[i] ) {
-			i++;
-		}
-
-		return i ?
-			// Do a sibling check if the nodes have a common ancestor
-			siblingCheck( ap[i], bp[i] ) :
-
-			// Otherwise nodes in our document sort first
-			ap[i] === preferredDoc ? -1 :
-			bp[i] === preferredDoc ? 1 :
-			0;
-	};
-
-	return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
-	return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
-	// Set document vars if needed
-	if ( ( elem.ownerDocument || elem ) !== document ) {
-		setDocument( elem );
-	}
-
-	// Make sure that attribute selectors are quoted
-	expr = expr.replace( rattributeQuotes, "='$1']" );
-
-	if ( support.matchesSelector && documentIsHTML &&
-		!compilerCache[ expr + " " ] &&
-		( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
-		( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
-
-		try {
-			var ret = matches.call( elem, expr );
-
-			// IE 9's matchesSelector returns false on disconnected nodes
-			if ( ret || support.disconnectedMatch ||
-					// As well, disconnected nodes are said to be in a document
-					// fragment in IE 9
-					elem.document && elem.document.nodeType !== 11 ) {
-				return ret;
-			}
-		} catch (e) {}
-	}
-
-	return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
-	// Set document vars if needed
-	if ( ( context.ownerDocument || context ) !== document ) {
-		setDocument( context );
-	}
-	return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
-	// Set document vars if needed
-	if ( ( elem.ownerDocument || elem ) !== document ) {
-		setDocument( elem );
-	}
-
-	var fn = Expr.attrHandle[ name.toLowerCase() ],
-		// Don't get fooled by Object.prototype properties (jQuery #13807)
-		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
-			fn( elem, name, !documentIsHTML ) :
-			undefined;
-
-	return val !== undefined ?
-		val :
-		support.attributes || !documentIsHTML ?
-			elem.getAttribute( name ) :
-			(val = elem.getAttributeNode(name)) && val.specified ?
-				val.value :
-				null;
-};
-
-Sizzle.error = function( msg ) {
-	throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
-	var elem,
-		duplicates = [],
-		j = 0,
-		i = 0;
-
-	// Unless we *know* we can detect duplicates, assume their presence
-	hasDuplicate = !support.detectDuplicates;
-	sortInput = !support.sortStable && results.slice( 0 );
-	results.sort( sortOrder );
-
-	if ( hasDuplicate ) {
-		while ( (elem = results[i++]) ) {
-			if ( elem === results[ i ] ) {
-				j = duplicates.push( i );
-			}
-		}
-		while ( j-- ) {
-			results.splice( duplicates[ j ], 1 );
-		}
-	}
-
-	// Clear input after sorting to release objects
-	// See https://github.com/jquery/sizzle/pull/225
-	sortInput = null;
-
-	return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
-	var node,
-		ret = "",
-		i = 0,
-		nodeType = elem.nodeType;
-
-	if ( !nodeType ) {
-		// If no nodeType, this is expected to be an array
-		while ( (node = elem[i++]) ) {
-			// Do not traverse comment nodes
-			ret += getText( node );
-		}
-	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
-		// Use textContent for elements
-		// innerText usage removed for consistency of new lines (jQuery #11153)
-		if ( typeof elem.textContent === "string" ) {
-			return elem.textContent;
-		} else {
-			// Traverse its children
-			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
-				ret += getText( elem );
-			}
-		}
-	} else if ( nodeType === 3 || nodeType === 4 ) {
-		return elem.nodeValue;
-	}
-	// Do not include comment or processing instruction nodes
-
-	return ret;
-};
-
-Expr = Sizzle.selectors = {
-
-	// Can be adjusted by the user
-	cacheLength: 50,
-
-	createPseudo: markFunction,
-
-	match: matchExpr,
-
-	attrHandle: {},
-
-	find: {},
-
-	relative: {
-		">": { dir: "parentNode", first: true },
-		" ": { dir: "parentNode" },
-		"+": { dir: "previousSibling", first: true },
-		"~": { dir: "previousSibling" }
-	},
-
-	preFilter: {
-		"ATTR": function( match ) {
-			match[1] = match[1].replace( runescape, funescape );
-
-			// Move the given value to match[3] whether quoted or unquoted
-			match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
-			if ( match[2] === "~=" ) {
-				match[3] = " " + match[3] + " ";
-			}
-
-			return match.slice( 0, 4 );
-		},
-
-		"CHILD": function( match ) {
-			/* matches from matchExpr["CHILD"]
-				1 type (only|nth|...)
-				2 what (child|of-type)
-				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
-				4 xn-component of xn+y argument ([+-]?\d*n|)
-				5 sign of xn-component
-				6 x of xn-component
-				7 sign of y-component
-				8 y of y-component
-			*/
-			match[1] = match[1].toLowerCase();
-
-			if ( match[1].slice( 0, 3 ) === "nth" ) {
-				// nth-* requires argument
-				if ( !match[3] ) {
-					Sizzle.error( match[0] );
-				}
-
-				// numeric x and y parameters for Expr.filter.CHILD
-				// remember that false/true cast respectively to 0/1
-				match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
-				match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
-			// other types prohibit arguments
-			} else if ( match[3] ) {
-				Sizzle.error( match[0] );
-			}
-
-			return match;
-		},
-
-		"PSEUDO": function( match ) {
-			var excess,
-				unquoted = !match[6] && match[2];
-
-			if ( matchExpr["CHILD"].test( match[0] ) ) {
-				return null;
-			}
-
-			// Accept quoted arguments as-is
-			if ( match[3] ) {
-				match[2] = match[4] || match[5] || "";
-
-			// Strip excess characters from unquoted arguments
-			} else if ( unquoted && rpseudo.test( unquoted ) &&
-				// Get excess from tokenize (recursively)
-				(excess = tokenize( unquoted, true )) &&
-				// advance to the next closing parenthesis
-				(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
-				// excess is a negative index
-				match[0] = match[0].slice( 0, excess );
-				match[2] = unquoted.slice( 0, excess );
-			}
-
-			// Return only captures needed by the pseudo filter method (type and argument)
-			return match.slice( 0, 3 );
-		}
-	},
-
-	filter: {
-
-		"TAG": function( nodeNameSelector ) {
-			var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
-			return nodeNameSelector === "*" ?
-				function() { return true; } :
-				function( elem ) {
-					return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
-				};
-		},
-
-		"CLASS": function( className ) {
-			var pattern = classCache[ className + " " ];
-
-			return pattern ||
-				(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
-				classCache( className, function( elem ) {
-					return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
-				});
-		},
-
-		"ATTR": function( name, operator, check ) {
-			return function( elem ) {
-				var result = Sizzle.attr( elem, name );
-
-				if ( result == null ) {
-					return operator === "!=";
-				}
-				if ( !operator ) {
-					return true;
-				}
-
-				result += "";
-
-				return operator === "=" ? result === check :
-					operator === "!=" ? result !== check :
-					operator === "^=" ? check && result.indexOf( check ) === 0 :
-					operator === "*=" ? check && result.indexOf( check ) > -1 :
-					operator === "$=" ? check && result.slice( -check.length ) === check :
-					operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
-					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
-					false;
-			};
-		},
-
-		"CHILD": function( type, what, argument, first, last ) {
-			var simple = type.slice( 0, 3 ) !== "nth",
-				forward = type.slice( -4 ) !== "last",
-				ofType = what === "of-type";
-
-			return first === 1 && last === 0 ?
-
-				// Shortcut for :nth-*(n)
-				function( elem ) {
-					return !!elem.parentNode;
-				} :
-
-				function( elem, context, xml ) {
-					var cache, uniqueCache, outerCache, node, nodeIndex, start,
-						dir = simple !== forward ? "nextSibling" : "previousSibling",
-						parent = elem.parentNode,
-						name = ofType && elem.nodeName.toLowerCase(),
-						useCache = !xml && !ofType,
-						diff = false;
-
-					if ( parent ) {
-
-						// :(first|last|only)-(child|of-type)
-						if ( simple ) {
-							while ( dir ) {
-								node = elem;
-								while ( (node = node[ dir ]) ) {
-									if ( ofType ?
-										node.nodeName.toLowerCase() === name :
-										node.nodeType === 1 ) {
-
-										return false;
-									}
-								}
-								// Reverse direction for :only-* (if we haven't yet done so)
-								start = dir = type === "only" && !start && "nextSibling";
-							}
-							return true;
-						}
-
-						start = [ forward ? parent.firstChild : parent.lastChild ];
-
-						// non-xml :nth-child(...) stores cache data on `parent`
-						if ( forward && useCache ) {
-
-							// Seek `elem` from a previously-cached index
-
-							// ...in a gzip-friendly way
-							node = parent;
-							outerCache = node[ expando ] || (node[ expando ] = {});
-
-							// Support: IE <9 only
-							// Defend against cloned attroperties (jQuery gh-1709)
-							uniqueCache = outerCache[ node.uniqueID ] ||
-								(outerCache[ node.uniqueID ] = {});
-
-							cache = uniqueCache[ type ] || [];
-							nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
-							diff = nodeIndex && cache[ 2 ];
-							node = nodeIndex && parent.childNodes[ nodeIndex ];
-
-							while ( (node = ++nodeIndex && node && node[ dir ] ||
-
-								// Fallback to seeking `elem` from the start
-								(diff = nodeIndex = 0) || start.pop()) ) {
-
-								// When found, cache indexes on `parent` and break
-								if ( node.nodeType === 1 && ++diff && node === elem ) {
-									uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
-									break;
-								}
-							}
-
-						} else {
-							// Use previously-cached element index if available
-							if ( useCache ) {
-								// ...in a gzip-friendly way
-								node = elem;
-								outerCache = node[ expando ] || (node[ expando ] = {});
-
-								// Support: IE <9 only
-								// Defend against cloned attroperties (jQuery gh-1709)
-								uniqueCache = outerCache[ node.uniqueID ] ||
-									(outerCache[ node.uniqueID ] = {});
-
-								cache = uniqueCache[ type ] || [];
-								nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
-								diff = nodeIndex;
-							}
-
-							// xml :nth-child(...)
-							// or :nth-last-child(...) or :nth(-last)?-of-type(...)
-							if ( diff === false ) {
-								// Use the same loop as above to seek `elem` from the start
-								while ( (node = ++nodeIndex && node && node[ dir ] ||
-									(diff = nodeIndex = 0) || start.pop()) ) {
-
-									if ( ( ofType ?
-										node.nodeName.toLowerCase() === name :
-										node.nodeType === 1 ) &&
-										++diff ) {
-
-										// Cache the index of each encountered element
-										if ( useCache ) {
-											outerCache = node[ expando ] || (node[ expando ] = {});
-
-											// Support: IE <9 only
-											// Defend against cloned attroperties (jQuery gh-1709)
-											uniqueCache = outerCache[ node.uniqueID ] ||
-												(outerCache[ node.uniqueID ] = {});
-
-											uniqueCache[ type ] = [ dirruns, diff ];
-										}
-
-										if ( node === elem ) {
-											break;
-										}
-									}
-								}
-							}
-						}
-
-						// Incorporate the offset, then check against cycle size
-						diff -= last;
-						return diff === first || ( diff % first === 0 && diff / first >= 0 );
-					}
-				};
-		},
-
-		"PSEUDO": function( pseudo, argument ) {
-			// pseudo-class names are case-insensitive
-			// http://www.w3.org/TR/selectors/#pseudo-classes
-			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
-			// Remember that setFilters inherits from pseudos
-			var args,
-				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
-					Sizzle.error( "unsupported pseudo: " + pseudo );
-
-			// The user may use createPseudo to indicate that
-			// arguments are needed to create the filter function
-			// just as Sizzle does
-			if ( fn[ expando ] ) {
-				return fn( argument );
-			}
-
-			// But maintain support for old signatures
-			if ( fn.length > 1 ) {
-				args = [ pseudo, pseudo, "", argument ];
-				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
-					markFunction(function( seed, matches ) {
-						var idx,
-							matched = fn( seed, argument ),
-							i = matched.length;
-						while ( i-- ) {
-							idx = indexOf( seed, matched[i] );
-							seed[ idx ] = !( matches[ idx ] = matched[i] );
-						}
-					}) :
-					function( elem ) {
-						return fn( elem, 0, args );
-					};
-			}
-
-			return fn;
-		}
-	},
-
-	pseudos: {
-		// Potentially complex pseudos
-		"not": markFunction(function( selector ) {
-			// Trim the selector passed to compile
-			// to avoid treating leading and trailing
-			// spaces as combinators
-			var input = [],
-				results = [],
-				matcher = compile( selector.replace( rtrim, "$1" ) );
-
-			return matcher[ expando ] ?
-				markFunction(function( seed, matches, context, xml ) {
-					var elem,
-						unmatched = matcher( seed, null, xml, [] ),
-						i = seed.length;
-
-					// Match elements unmatched by `matcher`
-					while ( i-- ) {
-						if ( (elem = unmatched[i]) ) {
-							seed[i] = !(matches[i] = elem);
-						}
-					}
-				}) :
-				function( elem, context, xml ) {
-					input[0] = elem;
-					matcher( input, null, xml, results );
-					// Don't keep the element (issue #299)
-					input[0] = null;
-					return !results.pop();
-				};
-		}),
-
-		"has": markFunction(function( selector ) {
-			return function( elem ) {
-				return Sizzle( selector, elem ).length > 0;
-			};
-		}),
-
-		"contains": markFunction(function( text ) {
-			text = text.replace( runescape, funescape );
-			return function( elem ) {
-				return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
-			};
-		}),
-
-		// "Whether an element is represented by a :lang() selector
-		// is based solely on the element's language value
-		// being equal to the identifier C,
-		// or beginning with the identifier C immediately followed by "-".
-		// The matching of C against the element's language value is performed case-insensitively.
-		// The identifier C does not have to be a valid language name."
-		// http://www.w3.org/TR/selectors/#lang-pseudo
-		"lang": markFunction( function( lang ) {
-			// lang value must be a valid identifier
-			if ( !ridentifier.test(lang || "") ) {
-				Sizzle.error( "unsupported lang: " + lang );
-			}
-			lang = lang.replace( runescape, funescape ).toLowerCase();
-			return function( elem ) {
-				var elemLang;
-				do {
-					if ( (elemLang = documentIsHTML ?
-						elem.lang :
-						elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
-						elemLang = elemLang.toLowerCase();
-						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
-					}
-				} while ( (elem = elem.parentNode) && elem.nodeType === 1 );
-				return false;
-			};
-		}),
-
-		// Miscellaneous
-		"target": function( elem ) {
-			var hash = window.location && window.location.hash;
-			return hash && hash.slice( 1 ) === elem.id;
-		},
-
-		"root": function( elem ) {
-			return elem === docElem;
-		},
-
-		"focus": function( elem ) {
-			return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
-		},
-
-		// Boolean properties
-		"enabled": function( elem ) {
-			return elem.disabled === false;
-		},
-
-		"disabled": function( elem ) {
-			return elem.disabled === true;
-		},
-
-		"checked": function( elem ) {
-			// In CSS3, :checked should return both checked and selected elements
-			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
-			var nodeName = elem.nodeName.toLowerCase();
-			return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
-		},
-
-		"selected": function( elem ) {
-			// Accessing this property makes selected-by-default
-			// options in Safari work properly
-			if ( elem.parentNode ) {
-				elem.parentNode.selectedIndex;
-			}
-
-			return elem.selected === true;
-		},
-
-		// Contents
-		"empty": function( elem ) {
-			// http://www.w3.org/TR/selectors/#empty-pseudo
-			// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
-			//   but not by others (comment: 8; processing instruction: 7; etc.)
-			// nodeType < 6 works because attributes (2) do not appear as children
-			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
-				if ( elem.nodeType < 6 ) {
-					return false;
-				}
-			}
-			return true;
-		},
-
-		"parent": function( elem ) {
-			return !Expr.pseudos["empty"]( elem );
-		},
-
-		// Element/input types
-		"header": function( elem ) {
-			return rheader.test( elem.nodeName );
-		},
-
-		"input": function( elem ) {
-			return rinputs.test( elem.nodeName );
-		},
-
-		"button": function( elem ) {
-			var name = elem.nodeName.toLowerCase();
-			return name === "input" && elem.type === "button" || name === "button";
-		},
-
-		"text": function( elem ) {
-			var attr;
-			return elem.nodeName.toLowerCase() === "input" &&
-				elem.type === "text" &&
-
-				// Support: IE<8
-				// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
-				( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
-		},
-
-		// Position-in-collection
-		"first": createPositionalPseudo(function() {
-			return [ 0 ];
-		}),
-
-		"last": createPositionalPseudo(function( matchIndexes, length ) {
-			return [ length - 1 ];
-		}),
-
-		"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
-			return [ argument < 0 ? argument + length : argument ];
-		}),
-
-		"even": createPositionalPseudo(function( matchIndexes, length ) {
-			var i = 0;
-			for ( ; i < length; i += 2 ) {
-				matchIndexes.push( i );
-			}
-			return matchIndexes;
-		}),
-
-		"odd": createPositionalPseudo(function( matchIndexes, length ) {
-			var i = 1;
-			for ( ; i < length; i += 2 ) {
-				matchIndexes.push( i );
-			}
-			return matchIndexes;
-		}),
-
-		"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
-			var i = argument < 0 ? argument + length : argument;
-			for ( ; --i >= 0; ) {
-				matchIndexes.push( i );
-			}
-			return matchIndexes;
-		}),
-
-		"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
-			var i = argument < 0 ? argument + length : argument;
-			for ( ; ++i < length; ) {
-				matchIndexes.push( i );
-			}
-			return matchIndexes;
-		})
-	}
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
-	Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
-	Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
-	var matched, match, tokens, type,
-		soFar, groups, preFilters,
-		cached = tokenCache[ selector + " " ];
-
-	if ( cached ) {
-		return parseOnly ? 0 : cached.slice( 0 );
-	}
-
-	soFar = selector;
-	groups = [];
-	preFilters = Expr.preFilter;
-
-	while ( soFar ) {
-
-		// Comma and first run
-		if ( !matched || (match = rcomma.exec( soFar )) ) {
-			if ( match ) {
-				// Don't consume trailing commas as valid
-				soFar = soFar.slice( match[0].length ) || soFar;
-			}
-			groups.push( (tokens = []) );
-		}
-
-		matched = false;
-
-		// Combinators
-		if ( (match = rcombinators.exec( soFar )) ) {
-			matched = match.shift();
-			tokens.push({
-				value: matched,
-				// Cast descendant combinators to space
-				type: match[0].replace( rtrim, " " )
-			});
-			soFar = soFar.slice( matched.length );
-		}
-
-		// Filters
-		for ( type in Expr.filter ) {
-			if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
-				(match = preFilters[ type ]( match ))) ) {
-				matched = match.shift();
-				tokens.push({
-					value: matched,
-					type: type,
-					matches: match
-				});
-				soFar = soFar.slice( matched.length );
-			}
-		}
-
-		if ( !matched ) {
-			break;
-		}
-	}
-
-	// Return the length of the invalid excess
-	// if we're just parsing
-	// Otherwise, throw an error or return tokens
-	return parseOnly ?
-		soFar.length :
-		soFar ?
-			Sizzle.error( selector ) :
-			// Cache the tokens
-			tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
-	var i = 0,
-		len = tokens.length,
-		selector = "";
-	for ( ; i < len; i++ ) {
-		selector += tokens[i].value;
-	}
-	return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
-	var dir = combinator.dir,
-		checkNonElements = base && dir === "parentNode",
-		doneName = done++;
-
-	return combinator.first ?
-		// Check against closest ancestor/preceding element
-		function( elem, context, xml ) {
-			while ( (elem = elem[ dir ]) ) {
-				if ( elem.nodeType === 1 || checkNonElements ) {
-					return matcher( elem, context, xml );
-				}
-			}
-		} :
-
-		// Check against all ancestor/preceding elements
-		function( elem, context, xml ) {
-			var oldCache, uniqueCache, outerCache,
-				newCache = [ dirruns, doneName ];
-
-			// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
-			if ( xml ) {
-				while ( (elem = elem[ dir ]) ) {
-					if ( elem.nodeType === 1 || checkNonElements ) {
-						if ( matcher( elem, context, xml ) ) {
-							return true;
-						}
-					}
-				}
-			} else {
-				while ( (elem = elem[ dir ]) ) {
-					if ( elem.nodeType === 1 || checkNonElements ) {
-						outerCache = elem[ expando ] || (elem[ expando ] = {});
-
-						// Support: IE <9 only
-						// Defend against cloned attroperties (jQuery gh-1709)
-						uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
-
-						if ( (oldCache = uniqueCache[ dir ]) &&
-							oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
-							// Assign to newCache so results back-propagate to previous elements
-							return (newCache[ 2 ] = oldCache[ 2 ]);
-						} else {
-							// Reuse newcache so results back-propagate to previous elements
-							uniqueCache[ dir ] = newCache;
-
-							// A match means we're done; a fail means we have to keep checking
-							if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
-								return true;
-							}
-						}
-					}
-				}
-			}
-		};
-}
-
-function elementMatcher( matchers ) {
-	return matchers.length > 1 ?
-		function( elem, context, xml ) {
-			var i = matchers.length;
-			while ( i-- ) {
-				if ( !matchers[i]( elem, context, xml ) ) {
-					return false;
-				}
-			}
-			return true;
-		} :
-		matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
-	var i = 0,
-		len = contexts.length;
-	for ( ; i < len; i++ ) {
-		Sizzle( selector, contexts[i], results );
-	}
-	return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
-	var elem,
-		newUnmatched = [],
-		i = 0,
-		len = unmatched.length,
-		mapped = map != null;
-
-	for ( ; i < len; i++ ) {
-		if ( (elem = unmatched[i]) ) {
-			if ( !filter || filter( elem, context, xml ) ) {
-				newUnmatched.push( elem );
-				if ( mapped ) {
-					map.push( i );
-				}
-			}
-		}
-	}
-
-	return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
-	if ( postFilter && !postFilter[ expando ] ) {
-		postFilter = setMatcher( postFilter );
-	}
-	if ( postFinder && !postFinder[ expando ] ) {
-		postFinder = setMatcher( postFinder, postSelector );
-	}
-	return markFunction(function( seed, results, context, xml ) {
-		var temp, i, elem,
-			preMap = [],
-			postMap = [],
-			preexisting = results.length,
-
-			// Get initial elements from seed or context
-			elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
-			// Prefilter to get matcher input, preserving a map for seed-results synchronization
-			matcherIn = preFilter && ( seed || !selector ) ?
-				condense( elems, preMap, preFilter, context, xml ) :
-				elems,
-
-			matcherOut = matcher ?
-				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
-				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
-					// ...intermediate processing is necessary
-					[] :
-
-					// ...otherwise use results directly
-					results :
-				matcherIn;
-
-		// Find primary matches
-		if ( matcher ) {
-			matcher( matcherIn, matcherOut, context, xml );
-		}
-
-		// Apply postFilter
-		if ( postFilter ) {
-			temp = condense( matcherOut, postMap );
-			postFilter( temp, [], context, xml );
-
-			// Un-match failing elements by moving them back to matcherIn
-			i = temp.length;
-			while ( i-- ) {
-				if ( (elem = temp[i]) ) {
-					matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
-				}
-			}
-		}
-
-		if ( seed ) {
-			if ( postFinder || preFilter ) {
-				if ( postFinder ) {
-					// Get the final matcherOut by condensing this intermediate into postFinder contexts
-					temp = [];
-					i = matcherOut.length;
-					while ( i-- ) {
-						if ( (elem = matcherOut[i]) ) {
-							// Restore matcherIn since elem is not yet a final match
-							temp.push( (matcherIn[i] = elem) );
-						}
-					}
-					postFinder( null, (matcherOut = []), temp, xml );
-				}
-
-				// Move matched elements from seed to results to keep them synchronized
-				i = matcherOut.length;
-				while ( i-- ) {
-					if ( (elem = matcherOut[i]) &&
-						(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
-
-						seed[temp] = !(results[temp] = elem);
-					}
-				}
-			}
-
-		// Add elements to results, through postFinder if defined
-		} else {
-			matcherOut = condense(
-				matcherOut === results ?
-					matcherOut.splice( preexisting, matcherOut.length ) :
-					matcherOut
-			);
-			if ( postFinder ) {
-				postFinder( null, results, matcherOut, xml );
-			} else {
-				push.apply( results, matcherOut );
-			}
-		}
-	});
-}
-
-function matcherFromTokens( tokens ) {
-	var checkContext, matcher, j,
-		len = tokens.length,
-		leadingRelative = Expr.relative[ tokens[0].type ],
-		implicitRelative = leadingRelative || Expr.relative[" "],
-		i = leadingRelative ? 1 : 0,
-
-		// The foundational matcher ensures that elements are reachable from top-level context(s)
-		matchContext = addCombinator( function( elem ) {
-			return elem === checkContext;
-		}, implicitRelative, true ),
-		matchAnyContext = addCombinator( function( elem ) {
-			return indexOf( checkContext, elem ) > -1;
-		}, implicitRelative, true ),
-		matchers = [ function( elem, context, xml ) {
-			var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
-				(checkContext = context).nodeType ?
-					matchContext( elem, context, xml ) :
-					matchAnyContext( elem, context, xml ) );
-			// Avoid hanging onto element (issue #299)
-			checkContext = null;
-			return ret;
-		} ];
-
-	for ( ; i < len; i++ ) {
-		if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
-			matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
-		} else {
-			matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
-			// Return special upon seeing a positional matcher
-			if ( matcher[ expando ] ) {
-				// Find the next relative operator (if any) for proper handling
-				j = ++i;
-				for ( ; j < len; j++ ) {
-					if ( Expr.relative[ tokens[j].type ] ) {
-						break;
-					}
-				}
-				return setMatcher(
-					i > 1 && elementMatcher( matchers ),
-					i > 1 && toSelector(
-						// If the preceding token was a descendant combinator, insert an implicit any-element `*`
-						tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
-					).replace( rtrim, "$1" ),
-					matcher,
-					i < j && matcherFromTokens( tokens.slice( i, j ) ),
-					j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
-					j < len && toSelector( tokens )
-				);
-			}
-			matchers.push( matcher );
-		}
-	}
-
-	return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
-	var bySet = setMatchers.length > 0,
-		byElement = elementMatchers.length > 0,
-		superMatcher = function( seed, context, xml, results, outermost ) {
-			var elem, j, matcher,
-				matchedCount = 0,
-				i = "0",
-				unmatched = seed && [],
-				setMatched = [],
-				contextBackup = outermostContext,
-				// We must always have either seed elements or outermost context
-				elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
-				// Use integer dirruns iff this is the outermost matcher
-				dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
-				len = elems.length;
-
-			if ( outermost ) {
-				outermostContext = context === document || context || outermost;
-			}
-
-			// Add elements passing elementMatchers directly to results
-			// Support: IE<9, Safari
-			// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
-			for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
-				if ( byElement && elem ) {
-					j = 0;
-					if ( !context && elem.ownerDocument !== document ) {
-						setDocument( elem );
-						xml = !documentIsHTML;
-					}
-					while ( (matcher = elementMatchers[j++]) ) {
-						if ( matcher( elem, context || document, xml) ) {
-							results.push( elem );
-							break;
-						}
-					}
-					if ( outermost ) {
-						dirruns = dirrunsUnique;
-					}
-				}
-
-				// Track unmatched elements for set filters
-				if ( bySet ) {
-					// They will have gone through all possible matchers
-					if ( (elem = !matcher && elem) ) {
-						matchedCount--;
-					}
-
-					// Lengthen the array for every element, matched or not
-					if ( seed ) {
-						unmatched.push( elem );
-					}
-				}
-			}
-
-			// `i` is now the count of elements visited above, and adding it to `matchedCount`
-			// makes the latter nonnegative.
-			matchedCount += i;
-
-			// Apply set filters to unmatched elements
-			// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
-			// equals `i`), unless we didn't visit _any_ elements in the above loop because we have
-			// no element matchers and no seed.
-			// Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
-			// case, which will result in a "00" `matchedCount` that differs from `i` but is also
-			// numerically zero.
-			if ( bySet && i !== matchedCount ) {
-				j = 0;
-				while ( (matcher = setMatchers[j++]) ) {
-					matcher( unmatched, setMatched, context, xml );
-				}
-
-				if ( seed ) {
-					// Reintegrate element matches to eliminate the need for sorting
-					if ( matchedCount > 0 ) {
-						while ( i-- ) {
-							if ( !(unmatched[i] || setMatched[i]) ) {
-								setMatched[i] = pop.call( results );
-							}
-						}
-					}
-
-					// Discard index placeholder values to get only actual matches
-					setMatched = condense( setMatched );
-				}
-
-				// Add matches to results
-				push.apply( results, setMatched );
-
-				// Seedless set matches succeeding multiple successful matchers stipulate sorting
-				if ( outermost && !seed && setMatched.length > 0 &&
-					( matchedCount + setMatchers.length ) > 1 ) {
-
-					Sizzle.uniqueSort( results );
-				}
-			}
-
-			// Override manipulation of globals by nested matchers
-			if ( outermost ) {
-				dirruns = dirrunsUnique;
-				outermostContext = contextBackup;
-			}
-
-			return unmatched;
-		};
-
-	return bySet ?
-		markFunction( superMatcher ) :
-		superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
-	var i,
-		setMatchers = [],
-		elementMatchers = [],
-		cached = compilerCache[ selector + " " ];
-
-	if ( !cached ) {
-		// Generate a function of recursive functions that can be used to check each element
-		if ( !match ) {
-			match = tokenize( selector );
-		}
-		i = match.length;
-		while ( i-- ) {
-			cached = matcherFromTokens( match[i] );
-			if ( cached[ expando ] ) {
-				setMatchers.push( cached );
-			} else {
-				elementMatchers.push( cached );
-			}
-		}
-
-		// Cache the compiled function
-		cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
-		// Save selector and tokenization
-		cached.selector = selector;
-	}
-	return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- *  selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- *  selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
-	var i, tokens, token, type, find,
-		compiled = typeof selector === "function" && selector,
-		match = !seed && tokenize( (selector = compiled.selector || selector) );
-
-	results = results || [];
-
-	// Try to minimize operations if there is only one selector in the list and no seed
-	// (the latter of which guarantees us context)
-	if ( match.length === 1 ) {
-
-		// Reduce context if the leading compound selector is an ID
-		tokens = match[0] = match[0].slice( 0 );
-		if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
-				support.getById && context.nodeType === 9 && documentIsHTML &&
-				Expr.relative[ tokens[1].type ] ) {
-
-			context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
-			if ( !context ) {
-				return results;
-
-			// Precompiled matchers will still verify ancestry, so step up a level
-			} else if ( compiled ) {
-				context = context.parentNode;
-			}
-
-			selector = selector.slice( tokens.shift().value.length );
-		}
-
-		// Fetch a seed set for right-to-left matching
-		i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
-		while ( i-- ) {
-			token = tokens[i];
-
-			// Abort if we hit a combinator
-			if ( Expr.relative[ (type = token.type) ] ) {
-				break;
-			}
-			if ( (find = Expr.find[ type ]) ) {
-				// Search, expanding context for leading sibling combinators
-				if ( (seed = find(
-					token.matches[0].replace( runescape, funescape ),
-					rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
-				)) ) {
-
-					// If seed is empty or no tokens remain, we can return early
-					tokens.splice( i, 1 );
-					selector = seed.length && toSelector( tokens );
-					if ( !selector ) {
-						push.apply( results, seed );
-						return results;
-					}
-
-					break;
-				}
-			}
-		}
-	}
-
-	// Compile and execute a filtering function if one is not provided
-	// Provide `match` to avoid retokenization if we modified the selector above
-	( compiled || compile( selector, match ) )(
-		seed,
-		context,
-		!documentIsHTML,
-		results,
-		!context || rsibling.test( selector ) && testContext( context.parentNode ) || context
-	);
-	return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( div1 ) {
-	// Should return 1, but returns 4 (following)
-	return div1.compareDocumentPosition( document.createElement("div") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( div ) {
-	div.innerHTML = "<a href='#'></a>";
-	return div.firstChild.getAttribute("href") === "#" ;
-}) ) {
-	addHandle( "type|href|height|width", function( elem, name, isXML ) {
-		if ( !isXML ) {
-			return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
-		}
-	});
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( div ) {
-	div.innerHTML = "<input/>";
-	div.firstChild.setAttribute( "value", "" );
-	return div.firstChild.getAttribute( "value" ) === "";
-}) ) {
-	addHandle( "value", function( elem, name, isXML ) {
-		if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
-			return elem.defaultValue;
-		}
-	});
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( div ) {
-	return div.getAttribute("disabled") == null;
-}) ) {
-	addHandle( booleans, function( elem, name, isXML ) {
-		var val;
-		if ( !isXML ) {
-			return elem[ name ] === true ? name.toLowerCase() :
-					(val = elem.getAttributeNode( name )) && val.specified ?
-					val.value :
-				null;
-		}
-	});
-}
-
-return Sizzle;
-
-})( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-
-var dir = function( elem, dir, until ) {
-	var matched = [],
-		truncate = until !== undefined;
-
-	while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
-		if ( elem.nodeType === 1 ) {
-			if ( truncate && jQuery( elem ).is( until ) ) {
-				break;
-			}
-			matched.push( elem );
-		}
-	}
-	return matched;
-};
-
-
-var siblings = function( n, elem ) {
-	var matched = [];
-
-	for ( ; n; n = n.nextSibling ) {
-		if ( n.nodeType === 1 && n !== elem ) {
-			matched.push( n );
-		}
-	}
-
-	return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
-
-
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
-	if ( jQuery.isFunction( qualifier ) ) {
-		return jQuery.grep( elements, function( elem, i ) {
-			/* jshint -W018 */
-			return !!qualifier.call( elem, i, elem ) !== not;
-		} );
-
-	}
-
-	if ( qualifier.nodeType ) {
-		return jQuery.grep( elements, function( elem ) {
-			return ( elem === qualifier ) !== not;
-		} );
-
-	}
-
-	if ( typeof qualifier === "string" ) {
-		if ( risSimple.test( qualifier ) ) {
-			return jQuery.filter( qualifier, elements, not );
-		}
-
-		qualifier = jQuery.filter( qualifier, elements );
-	}
-
-	return jQuery.grep( elements, function( elem ) {
-		return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
-	} );
-}
-
-jQuery.filter = function( expr, elems, not ) {
-	var elem = elems[ 0 ];
-
-	if ( not ) {
-		expr = ":not(" + expr + ")";
-	}
-
-	return elems.length === 1 && elem.nodeType === 1 ?
-		jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
-		jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
-			return elem.nodeType === 1;
-		} ) );
-};
-
-jQuery.fn.extend( {
-	find: function( selector ) {
-		var i,
-			len = this.length,
-			ret = [],
-			self = this;
-
-		if ( typeof selector !== "string" ) {
-			return this.pushStack( jQuery( selector ).filter( function() {
-				for ( i = 0; i < len; i++ ) {
-					if ( jQuery.contains( self[ i ], this ) ) {
-						return true;
-					}
-				}
-			} ) );
-		}
-
-		for ( i = 0; i < len; i++ ) {
-			jQuery.find( selector, self[ i ], ret );
-		}
-
-		// Needed because $( selector, context ) becomes $( context ).find( selector )
-		ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
-		ret.selector = this.selector ? this.selector + " " + selector : selector;
-		return ret;
-	},
-	filter: function( selector ) {
-		return this.pushStack( winnow( this, selector || [], false ) );
-	},
-	not: function( selector ) {
-		return this.pushStack( winnow( this, selector || [], true ) );
-	},
-	is: function( selector ) {
-		return !!winnow(
-			this,
-
-			// If this is a positional/relative selector, check membership in the returned set
-			// so $("p:first").is("p:last") won't return true for a doc with two "p".
-			typeof selector === "string" && rneedsContext.test( selector ) ?
-				jQuery( selector ) :
-				selector || [],
-			false
-		).length;
-	}
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
-	// A simple way to check for HTML strings
-	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
-	// Strict HTML recognition (#11290: must start with <)
-	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
-
-	init = jQuery.fn.init = function( selector, context, root ) {
-		var match, elem;
-
-		// HANDLE: $(""), $(null), $(undefined), $(false)
-		if ( !selector ) {
-			return this;
-		}
-
-		// Method init() accepts an alternate rootjQuery
-		// so migrate can support jQuery.sub (gh-2101)
-		root = root || rootjQuery;
-
-		// Handle HTML strings
-		if ( typeof selector === "string" ) {
-			if ( selector[ 0 ] === "<" &&
-				selector[ selector.length - 1 ] === ">" &&
-				selector.length >= 3 ) {
-
-				// Assume that strings that start and end with <> are HTML and skip the regex check
-				match = [ null, selector, null ];
-
-			} else {
-				match = rquickExpr.exec( selector );
-			}
-
-			// Match html or make sure no context is specified for #id
-			if ( match && ( match[ 1 ] || !context ) ) {
-
-				// HANDLE: $(html) -> $(array)
-				if ( match[ 1 ] ) {
-					context = context instanceof jQuery ? context[ 0 ] : context;
-
-					// Option to run scripts is true for back-compat
-					// Intentionally let the error be thrown if parseHTML is not present
-					jQuery.merge( this, jQuery.parseHTML(
-						match[ 1 ],
-						context && context.nodeType ? context.ownerDocument || context : document,
-						true
-					) );
-
-					// HANDLE: $(html, props)
-					if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
-						for ( match in context ) {
-
-							// Properties of context are called as methods if possible
-							if ( jQuery.isFunction( this[ match ] ) ) {
-								this[ match ]( context[ match ] );
-
-							// ...and otherwise set as attributes
-							} else {
-								this.attr( match, context[ match ] );
-							}
-						}
-					}
-
-					return this;
-
-				// HANDLE: $(#id)
-				} else {
-					elem = document.getElementById( match[ 2 ] );
-
-					// Support: Blackberry 4.6
-					// gEBID returns nodes no longer in the document (#6963)
-					if ( elem && elem.parentNode ) {
-
-						// Inject the element directly into the jQuery object
-						this.length = 1;
-						this[ 0 ] = elem;
-					}
-
-					this.context = document;
-					this.selector = selector;
-					return this;
-				}
-
-			// HANDLE: $(expr, $(...))
-			} else if ( !context || context.jquery ) {
-				return ( context || root ).find( selector );
-
-			// HANDLE: $(expr, context)
-			// (which is just equivalent to: $(context).find(expr)
-			} else {
-				return this.constructor( context ).find( selector );
-			}
-
-		// HANDLE: $(DOMElement)
-		} else if ( selector.nodeType ) {
-			this.context = this[ 0 ] = selector;
-			this.length = 1;
-			return this;
-
-		// HANDLE: $(function)
-		// Shortcut for document ready
-		} else if ( jQuery.isFunction( selector ) ) {
-			return root.ready !== undefined ?
-				root.ready( selector ) :
-
-				// Execute immediately if ready is not present
-				selector( jQuery );
-		}
-
-		if ( selector.selector !== undefined ) {
-			this.selector = selector.selector;
-			this.context = selector.context;
-		}
-
-		return jQuery.makeArray( selector, this );
-	};
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
-	// Methods guaranteed to produce a unique set when starting from a unique set
-	guaranteedUnique = {
-		children: true,
-		contents: true,
-		next: true,
-		prev: true
-	};
-
-jQuery.fn.extend( {
-	has: function( target ) {
-		var targets = jQuery( target, this ),
-			l = targets.length;
-
-		return this.filter( function() {
-			var i = 0;
-			for ( ; i < l; i++ ) {
-				if ( jQuery.contains( this, targets[ i ] ) ) {
-					return true;
-				}
-			}
-		} );
-	},
-
-	closest: function( selectors, context ) {
-		var cur,
-			i = 0,
-			l = this.length,
-			matched = [],
-			pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
-				jQuery( selectors, context || this.context ) :
-				0;
-
-		for ( ; i < l; i++ ) {
-			for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
-				// Always skip document fragments
-				if ( cur.nodeType < 11 && ( pos ?
-					pos.index( cur ) > -1 :
-
-					// Don't pass non-elements to Sizzle
-					cur.nodeType === 1 &&
-						jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
-					matched.push( cur );
-					break;
-				}
-			}
-		}
-
-		return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
-	},
-
-	// Determine the position of an element within the set
-	index: function( elem ) {
-
-		// No argument, return index in parent
-		if ( !elem ) {
-			return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
-		}
-
-		// Index in selector
-		if ( typeof elem === "string" ) {
-			return indexOf.call( jQuery( elem ), this[ 0 ] );
-		}
-
-		// Locate the position of the desired element
-		return indexOf.call( this,
-
-			// If it receives a jQuery object, the first element is used
-			elem.jquery ? elem[ 0 ] : elem
-		);
-	},
-
-	add: function( selector, context ) {
-		return this.pushStack(
-			jQuery.uniqueSort(
-				jQuery.merge( this.get(), jQuery( selector, context ) )
-			)
-		);
-	},
-
-	addBack: function( selector ) {
-		return this.add( selector == null ?
-			this.prevObject : this.prevObject.filter( selector )
-		);
-	}
-} );
-
-function sibling( cur, dir ) {
-	while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
-	return cur;
-}
-
-jQuery.each( {
-	parent: function( elem ) {
-		var parent = elem.parentNode;
-		return parent && parent.nodeType !== 11 ? parent : null;
-	},
-	parents: function( elem ) {
-		return dir( elem, "parentNode" );
-	},
-	parentsUntil: function( elem, i, until ) {
-		return dir( elem, "parentNode", until );
-	},
-	next: function( elem ) {
-		return sibling( elem, "nextSibling" );
-	},
-	prev: function( elem ) {
-		return sibling( elem, "previousSibling" );
-	},
-	nextAll: function( elem ) {
-		return dir( elem, "nextSibling" );
-	},
-	prevAll: function( elem ) {
-		return dir( elem, "previousSibling" );
-	},
-	nextUntil: function( elem, i, until ) {
-		return dir( elem, "nextSibling", until );
-	},
-	prevUntil: function( elem, i, until ) {
-		return dir( elem, "previousSibling", until );
-	},
-	siblings: function( elem ) {
-		return siblings( ( elem.parentNode || {} ).firstChild, elem );
-	},
-	children: function( elem ) {
-		return siblings( elem.firstChild );
-	},
-	contents: function( elem ) {
-		return elem.contentDocument || jQuery.merge( [], elem.childNodes );
-	}
-}, function( name, fn ) {
-	jQuery.fn[ name ] = function( until, selector ) {
-		var matched = jQuery.map( this, fn, until );
-
-		if ( name.slice( -5 ) !== "Until" ) {
-			selector = until;
-		}
-
-		if ( selector && typeof selector === "string" ) {
-			matched = jQuery.filter( selector, matched );
-		}
-
-		if ( this.length > 1 ) {
-
-			// Remove duplicates
-			if ( !guaranteedUnique[ name ] ) {
-				jQuery.uniqueSort( matched );
-			}
-
-			// Reverse order for parents* and prev-derivatives
-			if ( rparentsprev.test( name ) ) {
-				matched.reverse();
-			}
-		}
-
-		return this.pushStack( matched );
-	};
-} );
-var rnotwhite = ( /\S+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
-	var object = {};
-	jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
-		object[ flag ] = true;
-	} );
-	return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- *	options: an optional list of space-separated options that will change how
- *			the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- *	once:			will ensure the callback list can only be fired once (like a Deferred)
- *
- *	memory:			will keep track of previous values and will call any callback added
- *					after the list has been fired right away with the latest "memorized"
- *					values (like a Deferred)
- *
- *	unique:			will ensure a callback can only be added once (no duplicate in the list)
- *
- *	stopOnFalse:	interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
-	// Convert options from String-formatted to Object-formatted if needed
-	// (we check in cache first)
-	options = typeof options === "string" ?
-		createOptions( options ) :
-		jQuery.extend( {}, options );
-
-	var // Flag to know if list is currently firing
-		firing,
-
-		// Last fire value for non-forgettable lists
-		memory,
-
-		// Flag to know if list was already fired
-		fired,
-
-		// Flag to prevent firing
-		locked,
-
-		// Actual callback list
-		list = [],
-
-		// Queue of execution data for repeatable lists
-		queue = [],
-
-		// Index of currently firing callback (modified by add/remove as needed)
-		firingIndex = -1,
-
-		// Fire callbacks
-		fire = function() {
-
-			// Enforce single-firing
-			locked = options.once;
-
-			// Execute callbacks for all pending executions,
-			// respecting firingIndex overrides and runtime changes
-			fired = firing = true;
-			for ( ; queue.length; firingIndex = -1 ) {
-				memory = queue.shift();
-				while ( ++firingIndex < list.length ) {
-
-					// Run callback and check for early termination
-					if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
-						options.stopOnFalse ) {
-
-						// Jump to end and forget the data so .add doesn't re-fire
-						firingIndex = list.length;
-						memory = false;
-					}
-				}
-			}
-
-			// Forget the data if we're done with it
-			if ( !options.memory ) {
-				memory = false;
-			}
-
-			firing = false;
-
-			// Clean up if we're done firing for good
-			if ( locked ) {
-
-				// Keep an empty list if we have data for future add calls
-				if ( memory ) {
-					list = [];
-
-				// Otherwise, this object is spent
-				} else {
-					list = "";
-				}
-			}
-		},
-
-		// Actual Callbacks object
-		self = {
-
-			// Add a callback or a collection of callbacks to the list
-			add: function() {
-				if ( list ) {
-
-					// If we have memory from a past run, we should fire after adding
-					if ( memory && !firing ) {
-						firingIndex = list.length - 1;
-						queue.push( memory );
-					}
-
-					( function add( args ) {
-						jQuery.each( args, function( _, arg ) {
-							if ( jQuery.isFunction( arg ) ) {
-								if ( !options.unique || !self.has( arg ) ) {
-									list.push( arg );
-								}
-							} else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
-
-								// Inspect recursively
-								add( arg );
-							}
-						} );
-					} )( arguments );
-
-					if ( memory && !firing ) {
-						fire();
-					}
-				}
-				return this;
-			},
-
-			// Remove a callback from the list
-			remove: function() {
-				jQuery.each( arguments, function( _, arg ) {
-					var index;
-					while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
-						list.splice( index, 1 );
-
-						// Handle firing indexes
-						if ( index <= firingIndex ) {
-							firingIndex--;
-						}
-					}
-				} );
-				return this;
-			},
-
-			// Check if a given callback is in the list.
-			// If no argument is given, return whether or not list has callbacks attached.
-			has: function( fn ) {
-				return fn ?
-					jQuery.inArray( fn, list ) > -1 :
-					list.length > 0;
-			},
-
-			// Remove all callbacks from the list
-			empty: function() {
-				if ( list ) {
-					list = [];
-				}
-				return this;
-			},
-
-			// Disable .fire and .add
-			// Abort any current/pending executions
-			// Clear all callbacks and values
-			disable: function() {
-				locked = queue = [];
-				list = memory = "";
-				return this;
-			},
-			disabled: function() {
-				return !list;
-			},
-
-			// Disable .fire
-			// Also disable .add unless we have memory (since it would have no effect)
-			// Abort any pending executions
-			lock: function() {
-				locked = queue = [];
-				if ( !memory ) {
-					list = memory = "";
-				}
-				return this;
-			},
-			locked: function() {
-				return !!locked;
-			},
-
-			// Call all callbacks with the given context and arguments
-			fireWith: function( context, args ) {
-				if ( !locked ) {
-					args = args || [];
-					args = [ context, args.slice ? args.slice() : args ];
-					queue.push( args );
-					if ( !firing ) {
-						fire();
-					}
-				}
-				return this;
-			},
-
-			// Call all the callbacks with the given arguments
-			fire: function() {
-				self.fireWith( this, arguments );
-				return this;
-			},
-
-			// To know if the callbacks have already been called at least once
-			fired: function() {
-				return !!fired;
-			}
-		};
-
-	return self;
-};
-
-
-jQuery.extend( {
-
-	Deferred: function( func ) {
-		var tuples = [
-
-				// action, add listener, listener list, final state
-				[ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
-				[ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ],
-				[ "notify", "progress", jQuery.Callbacks( "memory" ) ]
-			],
-			state = "pending",
-			promise = {
-				state: function() {
-					return state;
-				},
-				always: function() {
-					deferred.done( arguments ).fail( arguments );
-					return this;
-				},
-				then: function( /* fnDone, fnFail, fnProgress */ ) {
-					var fns = arguments;
-					return jQuery.Deferred( function( newDefer ) {
-						jQuery.each( tuples, function( i, tuple ) {
-							var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
-
-							// deferred[ done | fail | progress ] for forwarding actions to newDefer
-							deferred[ tuple[ 1 ] ]( function() {
-								var returned = fn && fn.apply( this, arguments );
-								if ( returned && jQuery.isFunction( returned.promise ) ) {
-									returned.promise()
-										.progress( newDefer.notify )
-										.done( newDefer.resolve )
-										.fail( newDefer.reject );
-								} else {
-									newDefer[ tuple[ 0 ] + "With" ](
-										this === promise ? newDefer.promise() : this,
-										fn ? [ returned ] : arguments
-									);
-								}
-							} );
-						} );
-						fns = null;
-					} ).promise();
-				},
-
-				// Get a promise for this deferred
-				// If obj is provided, the promise aspect is added to the object
-				promise: function( obj ) {
-					return obj != null ? jQuery.extend( obj, promise ) : promise;
-				}
-			},
-			deferred = {};
-
-		// Keep pipe for back-compat
-		promise.pipe = promise.then;
-
-		// Add list-specific methods
-		jQuery.each( tuples, function( i, tuple ) {
-			var list = tuple[ 2 ],
-				stateString = tuple[ 3 ];
-
-			// promise[ done | fail | progress ] = list.add
-			promise[ tuple[ 1 ] ] = list.add;
-
-			// Handle state
-			if ( stateString ) {
-				list.add( function() {
-
-					// state = [ resolved | rejected ]
-					state = stateString;
-
-				// [ reject_list | resolve_list ].disable; progress_list.lock
-				}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
-			}
-
-			// deferred[ resolve | reject | notify ]
-			deferred[ tuple[ 0 ] ] = function() {
-				deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments );
-				return this;
-			};
-			deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
-		} );
-
-		// Make the deferred a promise
-		promise.promise( deferred );
-
-		// Call given func if any
-		if ( func ) {
-			func.call( deferred, deferred );
-		}
-
-		// All done!
-		return deferred;
-	},
-
-	// Deferred helper
-	when: function( subordinate /* , ..., subordinateN */ ) {
-		var i = 0,
-			resolveValues = slice.call( arguments ),
-			length = resolveValues.length,
-
-			// the count of uncompleted subordinates
-			remaining = length !== 1 ||
-				( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
-
-			// the master Deferred.
-			// If resolveValues consist of only a single Deferred, just use that.
-			deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
-
-			// Update function for both resolve and progress values
-			updateFunc = function( i, contexts, values ) {
-				return function( value ) {
-					contexts[ i ] = this;
-					values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
-					if ( values === progressValues ) {
-						deferred.notifyWith( contexts, values );
-					} else if ( !( --remaining ) ) {
-						deferred.resolveWith( contexts, values );
-					}
-				};
-			},
-
-			progressValues, progressContexts, resolveContexts;
-
-		// Add listeners to Deferred subordinates; treat others as resolved
-		if ( length > 1 ) {
-			progressValues = new Array( length );
-			progressContexts = new Array( length );
-			resolveContexts = new Array( length );
-			for ( ; i < length; i++ ) {
-				if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
-					resolveValues[ i ].promise()
-						.progress( updateFunc( i, progressContexts, progressValues ) )
-						.done( updateFunc( i, resolveContexts, resolveValues ) )
-						.fail( deferred.reject );
-				} else {
-					--remaining;
-				}
-			}
-		}
-
-		// If we're not waiting on anything, resolve the master
-		if ( !remaining ) {
-			deferred.resolveWith( resolveContexts, resolveValues );
-		}
-
-		return deferred.promise();
-	}
-} );
-
-
-// The deferred used on DOM ready
-var readyList;
-
-jQuery.fn.ready = function( fn ) {
-
-	// Add the callback
-	jQuery.ready.promise().done( fn );
-
-	return this;
-};
-
-jQuery.extend( {
-
-	// Is the DOM ready to be used? Set to true once it occurs.
-	isReady: false,
-
-	// A counter to track how many items to wait for before
-	// the ready event fires. See #6781
-	readyWait: 1,
-
-	// Hold (or release) the ready event
-	holdReady: function( hold ) {
-		if ( hold ) {
-			jQuery.readyWait++;
-		} else {
-			jQuery.ready( true );
-		}
-	},
-
-	// Handle when the DOM is ready
-	ready: function( wait ) {
-
-		// Abort if there are pending holds or we're already ready
-		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
-			return;
-		}
-
-		// Remember that the DOM is ready
-		jQuery.isReady = true;
-
-		// If a normal DOM Ready event fired, decrement, and wait if need be
-		if ( wait !== true && --jQuery.readyWait > 0 ) {
-			return;
-		}
-
-		// If there are functions bound, to execute
-		readyList.resolveWith( document, [ jQuery ] );
-
-		// Trigger any bound ready events
-		if ( jQuery.fn.triggerHandler ) {
-			jQuery( document ).triggerHandler( "ready" );
-			jQuery( document ).off( "ready" );
-		}
-	}
-} );
-
-/**
- * The ready event handler and self cleanup method
- */
-function completed() {
-	document.removeEventListener( "DOMContentLoaded", completed );
-	window.removeEventListener( "load", completed );
-	jQuery.ready();
-}
-
-jQuery.ready.promise = function( obj ) {
-	if ( !readyList ) {
-
-		readyList = jQuery.Deferred();
-
-		// Catch cases where $(document).ready() is called
-		// after the browser event has already occurred.
-		// Support: IE9-10 only
-		// Older IE sometimes signals "interactive" too soon
-		if ( document.readyState === "complete" ||
-			( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
-			// Handle it asynchronously to allow scripts the opportunity to delay ready
-			window.setTimeout( jQuery.ready );
-
-		} else {
-
-			// Use the handy event callback
-			document.addEventListener( "DOMContentLoaded", completed );
-
-			// A fallback to window.onload, that will always work
-			window.addEventListener( "load", completed );
-		}
-	}
-	return readyList.promise( obj );
-};
-
-// Kick off the DOM ready check even if the user does not
-jQuery.ready.promise();
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
-	var i = 0,
-		len = elems.length,
-		bulk = key == null;
-
-	// Sets many values
-	if ( jQuery.type( key ) === "object" ) {
-		chainable = true;
-		for ( i in key ) {
-			access( elems, fn, i, key[ i ], true, emptyGet, raw );
-		}
-
-	// Sets one value
-	} else if ( value !== undefined ) {
-		chainable = true;
-
-		if ( !jQuery.isFunction( value ) ) {
-			raw = true;
-		}
-
-		if ( bulk ) {
-
-			// Bulk operations run against the entire set
-			if ( raw ) {
-				fn.call( elems, value );
-				fn = null;
-
-			// ...except when executing function values
-			} else {
-				bulk = fn;
-				fn = function( elem, key, value ) {
-					return bulk.call( jQuery( elem ), value );
-				};
-			}
-		}
-
-		if ( fn ) {
-			for ( ; i < len; i++ ) {
-				fn(
-					elems[ i ], key, raw ?
-					value :
-					value.call( elems[ i ], i, fn( elems[ i ], key ) )
-				);
-			}
-		}
-	}
-
-	return chainable ?
-		elems :
-
-		// Gets
-		bulk ?
-			fn.call( elems ) :
-			len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-var acceptData = function( owner ) {
-
-	// Accepts only:
-	//  - Node
-	//    - Node.ELEMENT_NODE
-	//    - Node.DOCUMENT_NODE
-	//  - Object
-	//    - Any
-	/* jshint -W018 */
-	return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-
-
-
-function Data() {
-	this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
-	register: function( owner, initial ) {
-		var value = initial || {};
-
-		// If it is a node unlikely to be stringify-ed or looped over
-		// use plain assignment
-		if ( owner.nodeType ) {
-			owner[ this.expando ] = value;
-
-		// Otherwise secure it in a non-enumerable, non-writable property
-		// configurability must be true to allow the property to be
-		// deleted with the delete operator
-		} else {
-			Object.defineProperty( owner, this.expando, {
-				value: value,
-				writable: true,
-				configurable: true
-			} );
-		}
-		return owner[ this.expando ];
-	},
-	cache: function( owner ) {
-
-		// We can accept data for non-element nodes in modern browsers,
-		// but we should not, see #8335.
-		// Always return an empty object.
-		if ( !acceptData( owner ) ) {
-			return {};
-		}
-
-		// Check if the owner object already has a cache
-		var value = owner[ this.expando ];
-
-		// If not, create one
-		if ( !value ) {
-			value = {};
-
-			// We can accept data for non-element nodes in modern browsers,
-			// but we should not, see #8335.
-			// Always return an empty object.
-			if ( acceptData( owner ) ) {
-
-				// If it is a node unlikely to be stringify-ed or looped over
-				// use plain assignment
-				if ( owner.nodeType ) {
-					owner[ this.expando ] = value;
-
-				// Otherwise secure it in a non-enumerable property
-				// configurable must be true to allow the property to be
-				// deleted when data is removed
-				} else {
-					Object.defineProperty( owner, this.expando, {
-						value: value,
-						configurable: true
-					} );
-				}
-			}
-		}
-
-		return value;
-	},
-	set: function( owner, data, value ) {
-		var prop,
-			cache = this.cache( owner );
-
-		// Handle: [ owner, key, value ] args
-		if ( typeof data === "string" ) {
-			cache[ data ] = value;
-
-		// Handle: [ owner, { properties } ] args
-		} else {
-
-			// Copy the properties one-by-one to the cache object
-			for ( prop in data ) {
-				cache[ prop ] = data[ prop ];
-			}
-		}
-		return cache;
-	},
-	get: function( owner, key ) {
-		return key === undefined ?
-			this.cache( owner ) :
-			owner[ this.expando ] && owner[ this.expando ][ key ];
-	},
-	access: function( owner, key, value ) {
-		var stored;
-
-		// In cases where either:
-		//
-		//   1. No key was specified
-		//   2. A string key was specified, but no value provided
-		//
-		// Take the "read" path and allow the get method to determine
-		// which value to return, respectively either:
-		//
-		//   1. The entire cache object
-		//   2. The data stored at the key
-		//
-		if ( key === undefined ||
-				( ( key && typeof key === "string" ) && value === undefined ) ) {
-
-			stored = this.get( owner, key );
-
-			return stored !== undefined ?
-				stored : this.get( owner, jQuery.camelCase( key ) );
-		}
-
-		// When the key is not a string, or both a key and value
-		// are specified, set or extend (existing objects) with either:
-		//
-		//   1. An object of properties
-		//   2. A key and value
-		//
-		this.set( owner, key, value );
-
-		// Since the "set" path can have two possible entry points
-		// return the expected data based on which path was taken[*]
-		return value !== undefined ? value : key;
-	},
-	remove: function( owner, key ) {
-		var i, name, camel,
-			cache = owner[ this.expando ];
-
-		if ( cache === undefined ) {
-			return;
-		}
-
-		if ( key === undefined ) {
-			this.register( owner );
-
-		} else {
-
-			// Support array or space separated string of keys
-			if ( jQuery.isArray( key ) ) {
-
-				// If "name" is an array of keys...
-				// When data is initially created, via ("key", "val") signature,
-				// keys will be converted to camelCase.
-				// Since there is no way to tell _how_ a key was added, remove
-				// both plain key and camelCase key. #12786
-				// This will only penalize the array argument path.
-				name = key.concat( key.map( jQuery.camelCase ) );
-			} else {
-				camel = jQuery.camelCase( key );
-
-				// Try the string as a key before any manipulation
-				if ( key in cache ) {
-					name = [ key, camel ];
-				} else {
-
-					// If a key with the spaces exists, use it.
-					// Otherwise, create an array by matching non-whitespace
-					name = camel;
-					name = name in cache ?
-						[ name ] : ( name.match( rnotwhite ) || [] );
-				}
-			}
-
-			i = name.length;
-
-			while ( i-- ) {
-				delete cache[ name[ i ] ];
-			}
-		}
-
-		// Remove the expando if there's no more data
-		if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
-			// Support: Chrome <= 35-45+
-			// Webkit & Blink performance suffers when deleting properties
-			// from DOM nodes, so set to undefined instead
-			// https://code.google.com/p/chromium/issues/detail?id=378607
-			if ( owner.nodeType ) {
-				owner[ this.expando ] = undefined;
-			} else {
-				delete owner[ this.expando ];
-			}
-		}
-	},
-	hasData: function( owner ) {
-		var cache = owner[ this.expando ];
-		return cache !== undefined && !jQuery.isEmptyObject( cache );
-	}
-};
-var dataPriv = new Data();
-
-var dataUser = new Data();
-
-
-
-//	Implementation Summary
-//
-//	1. Enforce API surface and semantic compatibility with 1.9.x branch
-//	2. Improve the module's maintainability by reducing the storage
-//		paths to a single mechanism.
-//	3. Use the same single mechanism to support "private" and "user" data.
-//	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-//	5. Avoid exposing implementation details on user objects (eg. expando properties)
-//	6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
-	rmultiDash = /[A-Z]/g;
-
-function dataAttr( elem, key, data ) {
-	var name;
-
-	// If nothing was found internally, try to fetch any
-	// data from the HTML5 data-* attribute
-	if ( data === undefined && elem.nodeType === 1 ) {
-		name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
-		data = elem.getAttribute( name );
-
-		if ( typeof data === "string" ) {
-			try {
-				data = data === "true" ? true :
-					data === "false" ? false :
-					data === "null" ? null :
-
-					// Only convert to a number if it doesn't change the string
-					+data + "" === data ? +data :
-					rbrace.test( data ) ? jQuery.parseJSON( data ) :
-					data;
-			} catch ( e ) {}
-
-			// Make sure we set the data so it isn't changed later
-			dataUser.set( elem, key, data );
-		} else {
-			data = undefined;
-		}
-	}
-	return data;
-}
-
-jQuery.extend( {
-	hasData: function( elem ) {
-		return dataUser.hasData( elem ) || dataPriv.hasData( elem );
-	},
-
-	data: function( elem, name, data ) {
-		return dataUser.access( elem, name, data );
-	},
-
-	removeData: function( elem, name ) {
-		dataUser.remove( elem, name );
-	},
-
-	// TODO: Now that all calls to _data and _removeData have been replaced
-	// with direct calls to dataPriv methods, these can be deprecated.
-	_data: function( elem, name, data ) {
-		return dataPriv.access( elem, name, data );
-	},
-
-	_removeData: function( elem, name ) {
-		dataPriv.remove( elem, name );
-	}
-} );
-
-jQuery.fn.extend( {
-	data: function( key, value ) {
-		var i, name, data,
-			elem = this[ 0 ],
-			attrs = elem && elem.attributes;
-
-		// Gets all values
-		if ( key === undefined ) {
-			if ( this.length ) {
-				data = dataUser.get( elem );
-
-				if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
-					i = attrs.length;
-					while ( i-- ) {
-
-						// Support: IE11+
-						// The attrs elements can be null (#14894)
-						if ( attrs[ i ] ) {
-							name = attrs[ i ].name;
-							if ( name.indexOf( "data-" ) === 0 ) {
-								name = jQuery.camelCase( name.slice( 5 ) );
-								dataAttr( elem, name, data[ name ] );
-							}
-						}
-					}
-					dataPriv.set( elem, "hasDataAttrs", true );
-				}
-			}
-
-			return data;
-		}
-
-		// Sets multiple values
-		if ( typeof key === "object" ) {
-			return this.each( function() {
-				dataUser.set( this, key );
-			} );
-		}
-
-		return access( this, function( value ) {
-			var data, camelKey;
-
-			// The calling jQuery object (element matches) is not empty
-			// (and therefore has an element appears at this[ 0 ]) and the
-			// `value` parameter was not undefined. An empty jQuery object
-			// will result in `undefined` for elem = this[ 0 ] which will
-			// throw an exception if an attempt to read a data cache is made.
-			if ( elem && value === undefined ) {
-
-				// Attempt to get data from the cache
-				// with the key as-is
-				data = dataUser.get( elem, key ) ||
-
-					// Try to find dashed key if it exists (gh-2779)
-					// This is for 2.2.x only
-					dataUser.get( elem, key.replace( rmultiDash, "-$&" ).toLowerCase() );
-
-				if ( data !== undefined ) {
-					return data;
-				}
-
-				camelKey = jQuery.camelCase( key );
-
-				// Attempt to get data from the cache
-				// with the key camelized
-				data = dataUser.get( elem, camelKey );
-				if ( data !== undefined ) {
-					return data;
-				}
-
-				// Attempt to "discover" the data in
-				// HTML5 custom data-* attrs
-				data = dataAttr( elem, camelKey, undefined );
-				if ( data !== undefined ) {
-					return data;
-				}
-
-				// We tried really hard, but the data doesn't exist.
-				return;
-			}
-
-			// Set the data...
-			camelKey = jQuery.camelCase( key );
-			this.each( function() {
-
-				// First, attempt to store a copy or reference of any
-				// data that might've been store with a camelCased key.
-				var data = dataUser.get( this, camelKey );
-
-				// For HTML5 data-* attribute interop, we have to
-				// store property names with dashes in a camelCase form.
-				// This might not apply to all properties...*
-				dataUser.set( this, camelKey, value );
-
-				// *... In the case of properties that might _actually_
-				// have dashes, we need to also store a copy of that
-				// unchanged property.
-				if ( key.indexOf( "-" ) > -1 && data !== undefined ) {
-					dataUser.set( this, key, value );
-				}
-			} );
-		}, null, value, arguments.length > 1, null, true );
-	},
-
-	removeData: function( key ) {
-		return this.each( function() {
-			dataUser.remove( this, key );
-		} );
-	}
-} );
-
-
-jQuery.extend( {
-	queue: function( elem, type, data ) {
-		var queue;
-
-		if ( elem ) {
-			type = ( type || "fx" ) + "queue";
-			queue = dataPriv.get( elem, type );
-
-			// Speed up dequeue by getting out quickly if this is just a lookup
-			if ( data ) {
-				if ( !queue || jQuery.isArray( data ) ) {
-					queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
-				} else {
-					queue.push( data );
-				}
-			}
-			return queue || [];
-		}
-	},
-
-	dequeue: function( elem, type ) {
-		type = type || "fx";
-
-		var queue = jQuery.queue( elem, type ),
-			startLength = queue.length,
-			fn = queue.shift(),
-			hooks = jQuery._queueHooks( elem, type ),
-			next = function() {
-				jQuery.dequeue( elem, type );
-			};
-
-		// If the fx queue is dequeued, always remove the progress sentinel
-		if ( fn === "inprogress" ) {
-			fn = queue.shift();
-			startLength--;
-		}
-
-		if ( fn ) {
-
-			// Add a progress sentinel to prevent the fx queue from being
-			// automatically dequeued
-			if ( type === "fx" ) {
-				queue.unshift( "inprogress" );
-			}
-
-			// Clear up the last queue stop function
-			delete hooks.stop;
-			fn.call( elem, next, hooks );
-		}
-
-		if ( !startLength && hooks ) {
-			hooks.empty.fire();
-		}
-	},
-
-	// Not public - generate a queueHooks object, or return the current one
-	_queueHooks: function( elem, type ) {
-		var key = type + "queueHooks";
-		return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
-			empty: jQuery.Callbacks( "once memory" ).add( function() {
-				dataPriv.remove( elem, [ type + "queue", key ] );
-			} )
-		} );
-	}
-} );
-
-jQuery.fn.extend( {
-	queue: function( type, data ) {
-		var setter = 2;
-
-		if ( typeof type !== "string" ) {
-			data = type;
-			type = "fx";
-			setter--;
-		}
-
-		if ( arguments.length < setter ) {
-			return jQuery.queue( this[ 0 ], type );
-		}
-
-		return data === undefined ?
-			this :
-			this.each( function() {
-				var queue = jQuery.queue( this, type, data );
-
-				// Ensure a hooks for this queue
-				jQuery._queueHooks( this, type );
-
-				if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
-					jQuery.dequeue( this, type );
-				}
-			} );
-	},
-	dequeue: function( type ) {
-		return this.each( function() {
-			jQuery.dequeue( this, type );
-		} );
-	},
-	clearQueue: function( type ) {
-		return this.queue( type || "fx", [] );
-	},
-
-	// Get a promise resolved when queues of a certain type
-	// are emptied (fx is the type by default)
-	promise: function( type, obj ) {
-		var tmp,
-			count = 1,
-			defer = jQuery.Deferred(),
-			elements = this,
-			i = this.length,
-			resolve = function() {
-				if ( !( --count ) ) {
-					defer.resolveWith( elements, [ elements ] );
-				}
-			};
-
-		if ( typeof type !== "string" ) {
-			obj = type;
-			type = undefined;
-		}
-		type = type || "fx";
-
-		while ( i-- ) {
-			tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
-			if ( tmp && tmp.empty ) {
-				count++;
-				tmp.empty.add( resolve );
-			}
-		}
-		resolve();
-		return defer.promise( obj );
-	}
-} );
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var isHidden = function( elem, el ) {
-
-		// isHidden might be called from jQuery#filter function;
-		// in that case, element will be second argument
-		elem = el || elem;
-		return jQuery.css( elem, "display" ) === "none" ||
-			!jQuery.contains( elem.ownerDocument, elem );
-	};
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
-	var adjusted,
-		scale = 1,
-		maxIterations = 20,
-		currentValue = tween ?
-			function() { return tween.cur(); } :
-			function() { return jQuery.css( elem, prop, "" ); },
-		initial = currentValue(),
-		unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
-		// Starting value computation is required for potential unit mismatches
-		initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
-			rcssNum.exec( jQuery.css( elem, prop ) );
-
-	if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
-		// Trust units reported by jQuery.css
-		unit = unit || initialInUnit[ 3 ];
-
-		// Make sure we update the tween properties later on
-		valueParts = valueParts || [];
-
-		// Iteratively approximate from a nonzero starting point
-		initialInUnit = +initial || 1;
-
-		do {
-
-			// If previous iteration zeroed out, double until we get *something*.
-			// Use string for doubling so we don't accidentally see scale as unchanged below
-			scale = scale || ".5";
-
-			// Adjust and apply
-			initialInUnit = initialInUnit / scale;
-			jQuery.style( elem, prop, initialInUnit + unit );
-
-		// Update scale, tolerating zero or NaN from tween.cur()
-		// Break the loop if scale is unchanged or perfect, or if we've just had enough.
-		} while (
-			scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
-		);
-	}
-
-	if ( valueParts ) {
-		initialInUnit = +initialInUnit || +initial || 0;
-
-		// Apply relative offset (+=/-=) if specified
-		adjusted = valueParts[ 1 ] ?
-			initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
-			+valueParts[ 2 ];
-		if ( tween ) {
-			tween.unit = unit;
-			tween.start = initialInUnit;
-			tween.end = adjusted;
-		}
-	}
-	return adjusted;
-}
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([\w:-]+)/ );
-
-var rscriptType = ( /^$|\/(?:java|ecma)script/i );
-
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
-	// Support: IE9
-	option: [ 1, "<select multiple='multiple'>", "</select>" ],
-
-	// XHTML parsers do not magically insert elements in the
-	// same way that tag soup parsers do. So we cannot shorten
-	// this by omitting <tbody> or other required elements.
-	thead: [ 1, "<table>", "</table>" ],
-	col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
-	tr: [ 2, "<table><tbody>", "</tbody></table>" ],
-	td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
-	_default: [ 0, "", "" ]
-};
-
-// Support: IE9
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function getAll( context, tag ) {
-
-	// Support: IE9-11+
-	// Use typeof to avoid zero-argument method invocation on host objects (#15151)
-	var ret = typeof context.getElementsByTagName !== "undefined" ?
-			context.getElementsByTagName( tag || "*" ) :
-			typeof context.querySelectorAll !== "undefined" ?
-				context.querySelectorAll( tag || "*" ) :
-			[];
-
-	return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
-		jQuery.merge( [ context ], ret ) :
-		ret;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
-	var i = 0,
-		l = elems.length;
-
-	for ( ; i < l; i++ ) {
-		dataPriv.set(
-			elems[ i ],
-			"globalEval",
-			!refElements || dataPriv.get( refElements[ i ], "globalEval" )
-		);
-	}
-}
-
-
-var rhtml = /<|&#?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
-	var elem, tmp, tag, wrap, contains, j,
-		fragment = context.createDocumentFragment(),
-		nodes = [],
-		i = 0,
-		l = elems.length;
-
-	for ( ; i < l; i++ ) {
-		elem = elems[ i ];
-
-		if ( elem || elem === 0 ) {
-
-			// Add nodes directly
-			if ( jQuery.type( elem ) === "object" ) {
-
-				// Support: Android<4.1, PhantomJS<2
-				// push.apply(_, arraylike) throws on ancient WebKit
-				jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
-			// Convert non-html into a text node
-			} else if ( !rhtml.test( elem ) ) {
-				nodes.push( context.createTextNode( elem ) );
-
-			// Convert html into DOM nodes
-			} else {
-				tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
-				// Deserialize a standard representation
-				tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
-				wrap = wrapMap[ tag ] || wrapMap._default;
-				tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
-				// Descend through wrappers to the right content
-				j = wrap[ 0 ];
-				while ( j-- ) {
-					tmp = tmp.lastChild;
-				}
-
-				// Support: Android<4.1, PhantomJS<2
-				// push.apply(_, arraylike) throws on ancient WebKit
-				jQuery.merge( nodes, tmp.childNodes );
-
-				// Remember the top-level container
-				tmp = fragment.firstChild;
-
-				// Ensure the created nodes are orphaned (#12392)
-				tmp.textContent = "";
-			}
-		}
-	}
-
-	// Remove wrapper from fragment
-	fragment.textContent = "";
-
-	i = 0;
-	while ( ( elem = nodes[ i++ ] ) ) {
-
-		// Skip elements already in the context collection (trac-4087)
-		if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
-			if ( ignored ) {
-				ignored.push( elem );
-			}
-			continue;
-		}
-
-		contains = jQuery.contains( elem.ownerDocument, elem );
-
-		// Append to fragment
-		tmp = getAll( fragment.appendChild( elem ), "script" );
-
-		// Preserve script evaluation history
-		if ( contains ) {
-			setGlobalEval( tmp );
-		}
-
-		// Capture executables
-		if ( scripts ) {
-			j = 0;
-			while ( ( elem = tmp[ j++ ] ) ) {
-				if ( rscriptType.test( elem.type || "" ) ) {
-					scripts.push( elem );
-				}
-			}
-		}
-	}
-
-	return fragment;
-}
-
-
-( function() {
-	var fragment = document.createDocumentFragment(),
-		div = fragment.appendChild( document.createElement( "div" ) ),
-		input = document.createElement( "input" );
-
-	// Support: Android 4.0-4.3, Safari<=5.1
-	// Check state lost if the name is set (#11217)
-	// Support: Windows Web Apps (WWA)
-	// `name` and `type` must use .setAttribute for WWA (#14901)
-	input.setAttribute( "type", "radio" );
-	input.setAttribute( "checked", "checked" );
-	input.setAttribute( "name", "t" );
-
-	div.appendChild( input );
-
-	// Support: Safari<=5.1, Android<4.2
-	// Older WebKit doesn't clone checked state correctly in fragments
-	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
-	// Support: IE<=11+
-	// Make sure textarea (and checkbox) defaultValue is properly cloned
-	div.innerHTML = "<textarea>x</textarea>";
-	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-} )();
-
-
-var
-	rkeyEvent = /^key/,
-	rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
-	rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
-	return true;
-}
-
-function returnFalse() {
-	return false;
-}
-
-// Support: IE9
-// See #13393 for more info
-function safeActiveElement() {
-	try {
-		return document.activeElement;
-	} catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
-	var origFn, type;
-
-	// Types can be a map of types/handlers
-	if ( typeof types === "object" ) {
-
-		// ( types-Object, selector, data )
-		if ( typeof selector !== "string" ) {
-
-			// ( types-Object, data )
-			data = data || selector;
-			selector = undefined;
-		}
-		for ( type in types ) {
-			on( elem, type, selector, data, types[ type ], one );
-		}
-		return elem;
-	}
-
-	if ( data == null && fn == null ) {
-
-		// ( types, fn )
-		fn = selector;
-		data = selector = undefined;
-	} else if ( fn == null ) {
-		if ( typeof selector === "string" ) {
-
-			// ( types, selector, fn )
-			fn = data;
-			data = undefined;
-		} else {
-
-			// ( types, data, fn )
-			fn = data;
-			data = selector;
-			selector = undefined;
-		}
-	}
-	if ( fn === false ) {
-		fn = returnFalse;
-	} else if ( !fn ) {
-		return elem;
-	}
-
-	if ( one === 1 ) {
-		origFn = fn;
-		fn = function( event ) {
-
-			// Can use an empty set, since event contains the info
-			jQuery().off( event );
-			return origFn.apply( this, arguments );
-		};
-
-		// Use same guid so caller can remove using origFn
-		fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
-	}
-	return elem.each( function() {
-		jQuery.event.add( this, types, fn, data, selector );
-	} );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
-	global: {},
-
-	add: function( elem, types, handler, data, selector ) {
-
-		var handleObjIn, eventHandle, tmp,
-			events, t, handleObj,
-			special, handlers, type, namespaces, origType,
-			elemData = dataPriv.get( elem );
-
-		// Don't attach events to noData or text/comment nodes (but allow plain objects)
-		if ( !elemData ) {
-			return;
-		}
-
-		// Caller can pass in an object of custom data in lieu of the handler
-		if ( handler.handler ) {
-			handleObjIn = handler;
-			handler = handleObjIn.handler;
-			selector = handleObjIn.selector;
-		}
-
-		// Make sure that the handler has a unique ID, used to find/remove it later
-		if ( !handler.guid ) {
-			handler.guid = jQuery.guid++;
-		}
-
-		// Init the element's event structure and main handler, if this is the first
-		if ( !( events = elemData.events ) ) {
-			events = elemData.events = {};
-		}
-		if ( !( eventHandle = elemData.handle ) ) {
-			eventHandle = elemData.handle = function( e ) {
-
-				// Discard the second event of a jQuery.event.trigger() and
-				// when an event is called after a page has unloaded
-				return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
-					jQuery.event.dispatch.apply( elem, arguments ) : undefined;
-			};
-		}
-
-		// Handle multiple events separated by a space
-		types = ( types || "" ).match( rnotwhite ) || [ "" ];
-		t = types.length;
-		while ( t-- ) {
-			tmp = rtypenamespace.exec( types[ t ] ) || [];
-			type = origType = tmp[ 1 ];
-			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
-			// There *must* be a type, no attaching namespace-only handlers
-			if ( !type ) {
-				continue;
-			}
-
-			// If event changes its type, use the special event handlers for the changed type
-			special = jQuery.event.special[ type ] || {};
-
-			// If selector defined, determine special event api type, otherwise given type
-			type = ( selector ? special.delegateType : special.bindType ) || type;
-
-			// Update special based on newly reset type
-			special = jQuery.event.special[ type ] || {};
-
-			// handleObj is passed to all event handlers
-			handleObj = jQuery.extend( {
-				type: type,
-				origType: origType,
-				data: data,
-				handler: handler,
-				guid: handler.guid,
-				selector: selector,
-				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
-				namespace: namespaces.join( "." )
-			}, handleObjIn );
-
-			// Init the event handler queue if we're the first
-			if ( !( handlers = events[ type ] ) ) {
-				handlers = events[ type ] = [];
-				handlers.delegateCount = 0;
-
-				// Only use addEventListener if the special events handler returns false
-				if ( !special.setup ||
-					special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
-					if ( elem.addEventListener ) {
-						elem.addEventListener( type, eventHandle );
-					}
-				}
-			}
-
-			if ( special.add ) {
-				special.add.call( elem, handleObj );
-
-				if ( !handleObj.handler.guid ) {
-					handleObj.handler.guid = handler.guid;
-				}
-			}
-
-			// Add to the element's handler list, delegates in front
-			if ( selector ) {
-				handlers.splice( handlers.delegateCount++, 0, handleObj );
-			} else {
-				handlers.push( handleObj );
-			}
-
-			// Keep track of which events have ever been used, for event optimization
-			jQuery.event.global[ type ] = true;
-		}
-
-	},
-
-	// Detach an event or set of events from an element
-	remove: function( elem, types, handler, selector, mappedTypes ) {
-
-		var j, origCount, tmp,
-			events, t, handleObj,
-			special, handlers, type, namespaces, origType,
-			elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
-		if ( !elemData || !( events = elemData.events ) ) {
-			return;
-		}
-
-		// Once for each type.namespace in types; type may be omitted
-		types = ( types || "" ).match( rnotwhite ) || [ "" ];
-		t = types.length;
-		while ( t-- ) {
-			tmp = rtypenamespace.exec( types[ t ] ) || [];
-			type = origType = tmp[ 1 ];
-			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
-			// Unbind all events (on this namespace, if provided) for the element
-			if ( !type ) {
-				for ( type in events ) {
-					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
-				}
-				continue;
-			}
-
-			special = jQuery.event.special[ type ] || {};
-			type = ( selector ? special.delegateType : special.bindType ) || type;
-			handlers = events[ type ] || [];
-			tmp = tmp[ 2 ] &&
-				new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
-			// Remove matching events
-			origCount = j = handlers.length;
-			while ( j-- ) {
-				handleObj = handlers[ j ];
-
-				if ( ( mappedTypes || origType === handleObj.origType ) &&
-					( !handler || handler.guid === handleObj.guid ) &&
-					( !tmp || tmp.test( handleObj.namespace ) ) &&
-					( !selector || selector === handleObj.selector ||
-						selector === "**" && handleObj.selector ) ) {
-					handlers.splice( j, 1 );
-
-					if ( handleObj.selector ) {
-						handlers.delegateCount--;
-					}
-					if ( special.remove ) {
-						special.remove.call( elem, handleObj );
-					}
-				}
-			}
-
-			// Remove generic event handler if we removed something and no more handlers exist
-			// (avoids potential for endless recursion during removal of special event handlers)
-			if ( origCount && !handlers.length ) {
-				if ( !special.teardown ||
-					special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
-					jQuery.removeEvent( elem, type, elemData.handle );
-				}
-
-				delete events[ type ];
-			}
-		}
-
-		// Remove data and the expando if it's no longer used
-		if ( jQuery.isEmptyObject( events ) ) {
-			dataPriv.remove( elem, "handle events" );
-		}
-	},
-
-	dispatch: function( event ) {
-
-		// Make a writable jQuery.Event from the native event object
-		event = jQuery.event.fix( event );
-
-		var i, j, ret, matched, handleObj,
-			handlerQueue = [],
-			args = slice.call( arguments ),
-			handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
-			special = jQuery.event.special[ event.type ] || {};
-
-		// Use the fix-ed jQuery.Event rather than the (read-only) native event
-		args[ 0 ] = event;
-		event.delegateTarget = this;
-
-		// Call the preDispatch hook for the mapped type, and let it bail if desired
-		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
-			return;
-		}
-
-		// Determine handlers
-		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
-		// Run delegates first; they may want to stop propagation beneath us
-		i = 0;
-		while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
-			event.currentTarget = matched.elem;
-
-			j = 0;
-			while ( ( handleObj = matched.handlers[ j++ ] ) &&
-				!event.isImmediatePropagationStopped() ) {
-
-				// Triggered event must either 1) have no namespace, or 2) have namespace(s)
-				// a subset or equal to those in the bound event (both can have no namespace).
-				if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
-
-					event.handleObj = handleObj;
-					event.data = handleObj.data;
-
-					ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
-						handleObj.handler ).apply( matched.elem, args );
-
-					if ( ret !== undefined ) {
-						if ( ( event.result = ret ) === false ) {
-							event.preventDefault();
-							event.stopPropagation();
-						}
-					}
-				}
-			}
-		}
-
-		// Call the postDispatch hook for the mapped type
-		if ( special.postDispatch ) {
-			special.postDispatch.call( this, event );
-		}
-
-		return event.result;
-	},
-
-	handlers: function( event, handlers ) {
-		var i, matches, sel, handleObj,
-			handlerQueue = [],
-			delegateCount = handlers.delegateCount,
-			cur = event.target;
-
-		// Support (at least): Chrome, IE9
-		// Find delegate handlers
-		// Black-hole SVG <use> instance trees (#13180)
-		//
-		// Support: Firefox<=42+
-		// Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
-		if ( delegateCount && cur.nodeType &&
-			( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
-
-			for ( ; cur !== this; cur = cur.parentNode || this ) {
-
-				// Don't check non-elements (#13208)
-				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
-				if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
-					matches = [];
-					for ( i = 0; i < delegateCount; i++ ) {
-						handleObj = handlers[ i ];
-
-						// Don't conflict with Object.prototype properties (#13203)
-						sel = handleObj.selector + " ";
-
-						if ( matches[ sel ] === undefined ) {
-							matches[ sel ] = handleObj.needsContext ?
-								jQuery( sel, this ).index( cur ) > -1 :
-								jQuery.find( sel, this, null, [ cur ] ).length;
-						}
-						if ( matches[ sel ] ) {
-							matches.push( handleObj );
-						}
-					}
-					if ( matches.length ) {
-						handlerQueue.push( { elem: cur, handlers: matches } );
-					}
-				}
-			}
-		}
-
-		// Add the remaining (directly-bound) handlers
-		if ( delegateCount < handlers.length ) {
-			handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
-		}
-
-		return handlerQueue;
-	},
-
-	// Includes some event props shared by KeyEvent and MouseEvent
-	props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
-		"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
-
-	fixHooks: {},
-
-	keyHooks: {
-		props: "char charCode key keyCode".split( " " ),
-		filter: function( event, original ) {
-
-			// Add which for key events
-			if ( event.which == null ) {
-				event.which = original.charCode != null ? original.charCode : original.keyCode;
-			}
-
-			return event;
-		}
-	},
-
-	mouseHooks: {
-		props: ( "button buttons clientX clientY offsetX offsetY pageX pageY " +
-			"screenX screenY toElement" ).split( " " ),
-		filter: function( event, original ) {
-			var eventDoc, doc, body,
-				button = original.button;
-
-			// Calculate pageX/Y if missing and clientX/Y available
-			if ( event.pageX == null && original.clientX != null ) {
-				eventDoc = event.target.ownerDocument || document;
-				doc = eventDoc.documentElement;
-				body = eventDoc.body;
-
-				event.pageX = original.clientX +
-					( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -
-					( doc && doc.clientLeft || body && body.clientLeft || 0 );
-				event.pageY = original.clientY +
-					( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) -
-					( doc && doc.clientTop  || body && body.clientTop  || 0 );
-			}
-
-			// Add which for click: 1 === left; 2 === middle; 3 === right
-			// Note: button is not normalized, so don't use it
-			if ( !event.which && button !== undefined ) {
-				event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
-			}
-
-			return event;
-		}
-	},
-
-	fix: function( event ) {
-		if ( event[ jQuery.expando ] ) {
-			return event;
-		}
-
-		// Create a writable copy of the event object and normalize some properties
-		var i, prop, copy,
-			type = event.type,
-			originalEvent = event,
-			fixHook = this.fixHooks[ type ];
-
-		if ( !fixHook ) {
-			this.fixHooks[ type ] = fixHook =
-				rmouseEvent.test( type ) ? this.mouseHooks :
-				rkeyEvent.test( type ) ? this.keyHooks :
-				{};
-		}
-		copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
-		event = new jQuery.Event( originalEvent );
-
-		i = copy.length;
-		while ( i-- ) {
-			prop = copy[ i ];
-			event[ prop ] = originalEvent[ prop ];
-		}
-
-		// Support: Cordova 2.5 (WebKit) (#13255)
-		// All events should have a target; Cordova deviceready doesn't
-		if ( !event.target ) {
-			event.target = document;
-		}
-
-		// Support: Safari 6.0+, Chrome<28
-		// Target should not be a text node (#504, #13143)
-		if ( event.target.nodeType === 3 ) {
-			event.target = event.target.parentNode;
-		}
-
-		return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
-	},
-
-	special: {
-		load: {
-
-			// Prevent triggered image.load events from bubbling to window.load
-			noBubble: true
-		},
-		focus: {
-
-			// Fire native event if possible so blur/focus sequence is correct
-			trigger: function() {
-				if ( this !== safeActiveElement() && this.focus ) {
-					this.focus();
-					return false;
-				}
-			},
-			delegateType: "focusin"
-		},
-		blur: {
-			trigger: function() {
-				if ( this === safeActiveElement() && this.blur ) {
-					this.blur();
-					return false;
-				}
-			},
-			delegateType: "focusout"
-		},
-		click: {
-
-			// For checkbox, fire native event so checked state will be right
-			trigger: function() {
-				if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
-					this.click();
-					return false;
-				}
-			},
-
-			// For cross-browser consistency, don't fire native .click() on links
-			_default: function( event ) {
-				return jQuery.nodeName( event.target, "a" );
-			}
-		},
-
-		beforeunload: {
-			postDispatch: function( event ) {
-
-				// Support: Firefox 20+
-				// Firefox doesn't alert if the returnValue field is not set.
-				if ( event.result !== undefined && event.originalEvent ) {
-					event.originalEvent.returnValue = event.result;
-				}
-			}
-		}
-	}
-};
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
-	// This "if" is needed for plain objects
-	if ( elem.removeEventListener ) {
-		elem.removeEventListener( type, handle );
-	}
-};
-
-jQuery.Event = function( src, props ) {
-
-	// Allow instantiation without the 'new' keyword
-	if ( !( this instanceof jQuery.Event ) ) {
-		return new jQuery.Event( src, props );
-	}
-
-	// Event object
-	if ( src && src.type ) {
-		this.originalEvent = src;
-		this.type = src.type;
-
-		// Events bubbling up the document may have been marked as prevented
-		// by a handler lower down the tree; reflect the correct value.
-		this.isDefaultPrevented = src.defaultPrevented ||
-				src.defaultPrevented === undefined &&
-
-				// Support: Android<4.0
-				src.returnValue === false ?
-			returnTrue :
-			returnFalse;
-
-	// Event type
-	} else {
-		this.type = src;
-	}
-
-	// Put explicitly provided properties onto the event object
-	if ( props ) {
-		jQuery.extend( this, props );
-	}
-
-	// Create a timestamp if incoming event doesn't have one
-	this.timeStamp = src && src.timeStamp || jQuery.now();
-
-	// Mark it as fixed
-	this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
-	constructor: jQuery.Event,
-	isDefaultPrevented: returnFalse,
-	isPropagationStopped: returnFalse,
-	isImmediatePropagationStopped: returnFalse,
-
-	preventDefault: function() {
-		var e = this.originalEvent;
-
-		this.isDefaultPrevented = returnTrue;
-
-		if ( e ) {
-			e.preventDefault();
-		}
-	},
-	stopPropagation: function() {
-		var e = this.originalEvent;
-
-		this.isPropagationStopped = returnTrue;
-
-		if ( e ) {
-			e.stopPropagation();
-		}
-	},
-	stopImmediatePropagation: function() {
-		var e = this.originalEvent;
-
-		this.isImmediatePropagationStopped = returnTrue;
-
-		if ( e ) {
-			e.stopImmediatePropagation();
-		}
-
-		this.stopPropagation();
-	}
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://code.google.com/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
-	mouseenter: "mouseover",
-	mouseleave: "mouseout",
-	pointerenter: "pointerover",
-	pointerleave: "pointerout"
-}, function( orig, fix ) {
-	jQuery.event.special[ orig ] = {
-		delegateType: fix,
-		bindType: fix,
-
-		handle: function( event ) {
-			var ret,
-				target = this,
-				related = event.relatedTarget,
-				handleObj = event.handleObj;
-
-			// For mouseenter/leave call the handler if related is outside the target.
-			// NB: No relatedTarget if the mouse left/entered the browser window
-			if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
-				event.type = handleObj.origType;
-				ret = handleObj.handler.apply( this, arguments );
-				event.type = fix;
-			}
-			return ret;
-		}
-	};
-} );
-
-jQuery.fn.extend( {
-	on: function( types, selector, data, fn ) {
-		return on( this, types, selector, data, fn );
-	},
-	one: function( types, selector, data, fn ) {
-		return on( this, types, selector, data, fn, 1 );
-	},
-	off: function( types, selector, fn ) {
-		var handleObj, type;
-		if ( types && types.preventDefault && types.handleObj ) {
-
-			// ( event )  dispatched jQuery.Event
-			handleObj = types.handleObj;
-			jQuery( types.delegateTarget ).off(
-				handleObj.namespace ?
-					handleObj.origType + "." + handleObj.namespace :
-					handleObj.origType,
-				handleObj.selector,
-				handleObj.handler
-			);
-			return this;
-		}
-		if ( typeof types === "object" ) {
-
-			// ( types-object [, selector] )
-			for ( type in types ) {
-				this.off( type, selector, types[ type ] );
-			}
-			return this;
-		}
-		if ( selector === false || typeof selector === "function" ) {
-
-			// ( types [, fn] )
-			fn = selector;
-			selector = undefined;
-		}
-		if ( fn === false ) {
-			fn = returnFalse;
-		}
-		return this.each( function() {
-			jQuery.event.remove( this, types, fn, selector );
-		} );
-	}
-} );
-
-
-var
-	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
-
-	// Support: IE 10-11, Edge 10240+
-	// In IE/Edge using regex groups here causes severe slowdowns.
-	// See https://connect.microsoft.com/IE/feedback/details/1736512/
-	rnoInnerhtml = /<script|<style|<link/i,
-
-	// checked="checked" or checked
-	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
-	rscriptTypeMasked = /^true\/(.*)/,
-	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
-// Manipulating tables requires a tbody
-function manipulationTarget( elem, content ) {
-	return jQuery.nodeName( elem, "table" ) &&
-		jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
-
-		elem.getElementsByTagName( "tbody" )[ 0 ] ||
-			elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
-		elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
-	elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
-	return elem;
-}
-function restoreScript( elem ) {
-	var match = rscriptTypeMasked.exec( elem.type );
-
-	if ( match ) {
-		elem.type = match[ 1 ];
-	} else {
-		elem.removeAttribute( "type" );
-	}
-
-	return elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-	var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
-
-	if ( dest.nodeType !== 1 ) {
-		return;
-	}
-
-	// 1. Copy private data: events, handlers, etc.
-	if ( dataPriv.hasData( src ) ) {
-		pdataOld = dataPriv.access( src );
-		pdataCur = dataPriv.set( dest, pdataOld );
-		events = pdataOld.events;
-
-		if ( events ) {
-			delete pdataCur.handle;
-			pdataCur.events = {};
-
-			for ( type in events ) {
-				for ( i = 0, l = events[ type ].length; i < l; i++ ) {
-					jQuery.event.add( dest, type, events[ type ][ i ] );
-				}
-			}
-		}
-	}
-
-	// 2. Copy user data
-	if ( dataUser.hasData( src ) ) {
-		udataOld = dataUser.access( src );
-		udataCur = jQuery.extend( {}, udataOld );
-
-		dataUser.set( dest, udataCur );
-	}
-}
-
-// Fix IE bugs, see support tests
-function fixInput( src, dest ) {
-	var nodeName = dest.nodeName.toLowerCase();
-
-	// Fails to persist the checked state of a cloned checkbox or radio button.
-	if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
-		dest.checked = src.checked;
-
-	// Fails to return the selected option to the default selected state when cloning options
-	} else if ( nodeName === "input" || nodeName === "textarea" ) {
-		dest.defaultValue = src.defaultValue;
-	}
-}
-
-function domManip( collection, args, callback, ignored ) {
-
-	// Flatten any nested arrays
-	args = concat.apply( [], args );
-
-	var fragment, first, scripts, hasScripts, node, doc,
-		i = 0,
-		l = collection.length,
-		iNoClone = l - 1,
-		value = args[ 0 ],
-		isFunction = jQuery.isFunction( value );
-
-	// We can't cloneNode fragments that contain checked, in WebKit
-	if ( isFunction ||
-			( l > 1 && typeof value === "string" &&
-				!support.checkClone && rchecked.test( value ) ) ) {
-		return collection.each( function( index ) {
-			var self = collection.eq( index );
-			if ( isFunction ) {
-				args[ 0 ] = value.call( this, index, self.html() );
-			}
-			domManip( self, args, callback, ignored );
-		} );
-	}
-
-	if ( l ) {
-		fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
-		first = fragment.firstChild;
-
-		if ( fragment.childNodes.length === 1 ) {
-			fragment = first;
-		}
-
-		// Require either new content or an interest in ignored elements to invoke the callback
-		if ( first || ignored ) {
-			scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
-			hasScripts = scripts.length;
-
-			// Use the original fragment for the last item
-			// instead of the first because it can end up
-			// being emptied incorrectly in certain situations (#8070).
-			for ( ; i < l; i++ ) {
-				node = fragment;
-
-				if ( i !== iNoClone ) {
-					node = jQuery.clone( node, true, true );
-
-					// Keep references to cloned scripts for later restoration
-					if ( hasScripts ) {
-
-						// Support: Android<4.1, PhantomJS<2
-						// push.apply(_, arraylike) throws on ancient WebKit
-						jQuery.merge( scripts, getAll( node, "script" ) );
-					}
-				}
-
-				callback.call( collection[ i ], node, i );
-			}
-
-			if ( hasScripts ) {
-				doc = scripts[ scripts.length - 1 ].ownerDocument;
-
-				// Reenable scripts
-				jQuery.map( scripts, restoreScript );
-
-				// Evaluate executable scripts on first document insertion
-				for ( i = 0; i < hasScripts; i++ ) {
-					node = scripts[ i ];
-					if ( rscriptType.test( node.type || "" ) &&
-						!dataPriv.access( node, "globalEval" ) &&
-						jQuery.contains( doc, node ) ) {
-
-						if ( node.src ) {
-
-							// Optional AJAX dependency, but won't run scripts if not present
-							if ( jQuery._evalUrl ) {
-								jQuery._evalUrl( node.src );
-							}
-						} else {
-							jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
-						}
-					}
-				}
-			}
-		}
-	}
-
-	return collection;
-}
-
-function remove( elem, selector, keepData ) {
-	var node,
-		nodes = selector ? jQuery.filter( selector, elem ) : elem,
-		i = 0;
-
-	for ( ; ( node = nodes[ i ] ) != null; i++ ) {
-		if ( !keepData && node.nodeType === 1 ) {
-			jQuery.cleanData( getAll( node ) );
-		}
-
-		if ( node.parentNode ) {
-			if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
-				setGlobalEval( getAll( node, "script" ) );
-			}
-			node.parentNode.removeChild( node );
-		}
-	}
-
-	return elem;
-}
-
-jQuery.extend( {
-	htmlPrefilter: function( html ) {
-		return html.replace( rxhtmlTag, "<$1></$2>" );
-	},
-
-	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
-		var i, l, srcElements, destElements,
-			clone = elem.cloneNode( true ),
-			inPage = jQuery.contains( elem.ownerDocument, elem );
-
-		// Fix IE cloning issues
-		if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
-				!jQuery.isXMLDoc( elem ) ) {
-
-			// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
-			destElements = getAll( clone );
-			srcElements = getAll( elem );
-
-			for ( i = 0, l = srcElements.length; i < l; i++ ) {
-				fixInput( srcElements[ i ], destElements[ i ] );
-			}
-		}
-
-		// Copy the events from the original to the clone
-		if ( dataAndEvents ) {
-			if ( deepDataAndEvents ) {
-				srcElements = srcElements || getAll( elem );
-				destElements = destElements || getAll( clone );
-
-				for ( i = 0, l = srcElements.length; i < l; i++ ) {
-					cloneCopyEvent( srcElements[ i ], destElements[ i ] );
-				}
-			} else {
-				cloneCopyEvent( elem, clone );
-			}
-		}
-
-		// Preserve script evaluation history
-		destElements = getAll( clone, "script" );
-		if ( destElements.length > 0 ) {
-			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
-		}
-
-		// Return the cloned set
-		return clone;
-	},
-
-	cleanData: function( elems ) {
-		var data, elem, type,
-			special = jQuery.event.special,
-			i = 0;
-
-		for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
-			if ( acceptData( elem ) ) {
-				if ( ( data = elem[ dataPriv.expando ] ) ) {
-					if ( data.events ) {
-						for ( type in data.events ) {
-							if ( special[ type ] ) {
-								jQuery.event.remove( elem, type );
-
-							// This is a shortcut to avoid jQuery.event.remove's overhead
-							} else {
-								jQuery.removeEvent( elem, type, data.handle );
-							}
-						}
-					}
-
-					// Support: Chrome <= 35-45+
-					// Assign undefined instead of using delete, see Data#remove
-					elem[ dataPriv.expando ] = undefined;
-				}
-				if ( elem[ dataUser.expando ] ) {
-
-					// Support: Chrome <= 35-45+
-					// Assign undefined instead of using delete, see Data#remove
-					elem[ dataUser.expando ] = undefined;
-				}
-			}
-		}
-	}
-} );
-
-jQuery.fn.extend( {
-
-	// Keep domManip exposed until 3.0 (gh-2225)
-	domManip: domManip,
-
-	detach: function( selector ) {
-		return remove( this, selector, true );
-	},
-
-	remove: function( selector ) {
-		return remove( this, selector );
-	},
-
-	text: function( value ) {
-		return access( this, function( value ) {
-			return value === undefined ?
-				jQuery.text( this ) :
-				this.empty().each( function() {
-					if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
-						this.textContent = value;
-					}
-				} );
-		}, null, value, arguments.length );
-	},
-
-	append: function() {
-		return domManip( this, arguments, function( elem ) {
-			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
-				var target = manipulationTarget( this, elem );
-				target.appendChild( elem );
-			}
-		} );
-	},
-
-	prepend: function() {
-		return domManip( this, arguments, function( elem ) {
-			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
-				var target = manipulationTarget( this, elem );
-				target.insertBefore( elem, target.firstChild );
-			}
-		} );
-	},
-
-	before: function() {
-		return domManip( this, arguments, function( elem ) {
-			if ( this.parentNode ) {
-				this.parentNode.insertBefore( elem, this );
-			}
-		} );
-	},
-
-	after: function() {
-		return domManip( this, arguments, function( elem ) {
-			if ( this.parentNode ) {
-				this.parentNode.insertBefore( elem, this.nextSibling );
-			}
-		} );
-	},
-
-	empty: function() {
-		var elem,
-			i = 0;
-
-		for ( ; ( elem = this[ i ] ) != null; i++ ) {
-			if ( elem.nodeType === 1 ) {
-
-				// Prevent memory leaks
-				jQuery.cleanData( getAll( elem, false ) );
-
-				// Remove any remaining nodes
-				elem.textContent = "";
-			}
-		}
-
-		return this;
-	},
-
-	clone: function( dataAndEvents, deepDataAndEvents ) {
-		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
-		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
-		return this.map( function() {
-			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
-		} );
-	},
-
-	html: function( value ) {
-		return access( this, function( value ) {
-			var elem = this[ 0 ] || {},
-				i = 0,
-				l = this.length;
-
-			if ( value === undefined && elem.nodeType === 1 ) {
-				return elem.innerHTML;
-			}
-
-			// See if we can take a shortcut and just use innerHTML
-			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
-				!wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
-				value = jQuery.htmlPrefilter( value );
-
-				try {
-					for ( ; i < l; i++ ) {
-						elem = this[ i ] || {};
-
-						// Remove element nodes and prevent memory leaks
-						if ( elem.nodeType === 1 ) {
-							jQuery.cleanData( getAll( elem, false ) );
-							elem.innerHTML = value;
-						}
-					}
-
-					elem = 0;
-
-				// If using innerHTML throws an exception, use the fallback method
-				} catch ( e ) {}
-			}
-
-			if ( elem ) {
-				this.empty().append( value );
-			}
-		}, null, value, arguments.length );
-	},
-
-	replaceWith: function() {
-		var ignored = [];
-
-		// Make the changes, replacing each non-ignored context element with the new content
-		return domManip( this, arguments, function( elem ) {
-			var parent = this.parentNode;
-
-			if ( jQuery.inArray( this, ignored ) < 0 ) {
-				jQuery.cleanData( getAll( this ) );
-				if ( parent ) {
-					parent.replaceChild( elem, this );
-				}
-			}
-
-		// Force callback invocation
-		}, ignored );
-	}
-} );
-
-jQuery.each( {
-	appendTo: "append",
-	prependTo: "prepend",
-	insertBefore: "before",
-	insertAfter: "after",
-	replaceAll: "replaceWith"
-}, function( name, original ) {
-	jQuery.fn[ name ] = function( selector ) {
-		var elems,
-			ret = [],
-			insert = jQuery( selector ),
-			last = insert.length - 1,
-			i = 0;
-
-		for ( ; i <= last; i++ ) {
-			elems = i === last ? this : this.clone( true );
-			jQuery( insert[ i ] )[ original ]( elems );
-
-			// Support: QtWebKit
-			// .get() because push.apply(_, arraylike) throws
-			push.apply( ret, elems.get() );
-		}
-
-		return this.pushStack( ret );
-	};
-} );
-
-
-var iframe,
-	elemdisplay = {
-
-		// Support: Firefox
-		// We have to pre-define these values for FF (#10227)
-		HTML: "block",
-		BODY: "block"
-	};
-
-/**
- * Retrieve the actual display of a element
- * @param {String} name nodeName of the element
- * @param {Object} doc Document object
- */
-
-// Called only from within defaultDisplay
-function actualDisplay( name, doc ) {
-	var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
-
-		display = jQuery.css( elem[ 0 ], "display" );
-
-	// We don't have any data stored on the element,
-	// so use "detach" method as fast way to get rid of the element
-	elem.detach();
-
-	return display;
-}
-
-/**
- * Try to determine the default display value of an element
- * @param {String} nodeName
- */
-function defaultDisplay( nodeName ) {
-	var doc = document,
-		display = elemdisplay[ nodeName ];
-
-	if ( !display ) {
-		display = actualDisplay( nodeName, doc );
-
-		// If the simple way fails, read from inside an iframe
-		if ( display === "none" || !display ) {
-
-			// Use the already-created iframe if possible
-			iframe = ( iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ) )
-				.appendTo( doc.documentElement );
-
-			// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
-			doc = iframe[ 0 ].contentDocument;
-
-			// Support: IE
-			doc.write();
-			doc.close();
-
-			display = actualDisplay( nodeName, doc );
-			iframe.detach();
-		}
-
-		// Store the correct default display
-		elemdisplay[ nodeName ] = display;
-	}
-
-	return display;
-}
-var rmargin = ( /^margin/ );
-
-var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-var getStyles = function( elem ) {
-
-		// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
-		// IE throws on elements created in popups
-		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
-		var view = elem.ownerDocument.defaultView;
-
-		if ( !view || !view.opener ) {
-			view = window;
-		}
-
-		return view.getComputedStyle( elem );
-	};
-
-var swap = function( elem, options, callback, args ) {
-	var ret, name,
-		old = {};
-
-	// Remember the old values, and insert the new ones
-	for ( name in options ) {
-		old[ name ] = elem.style[ name ];
-		elem.style[ name ] = options[ name ];
-	}
-
-	ret = callback.apply( elem, args || [] );
-
-	// Revert the old values
-	for ( name in options ) {
-		elem.style[ name ] = old[ name ];
-	}
-
-	return ret;
-};
-
-
-var documentElement = document.documentElement;
-
-
-
-( function() {
-	var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
-		container = document.createElement( "div" ),
-		div = document.createElement( "div" );
-
-	// Finish early in limited (non-browser) environments
-	if ( !div.style ) {
-		return;
-	}
-
-	// Support: IE9-11+
-	// Style of cloned element affects source element cloned (#8908)
-	div.style.backgroundClip = "content-box";
-	div.cloneNode( true ).style.backgroundClip = "";
-	support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
-	container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
-		"padding:0;margin-top:1px;position:absolute";
-	container.appendChild( div );
-
-	// Executing both pixelPosition & boxSizingReliable tests require only one layout
-	// so they're executed at the same time to save the second computation.
-	function computeStyleTests() {
-		div.style.cssText =
-
-			// Support: Firefox<29, Android 2.3
-			// Vendor-prefix box-sizing
-			"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" +
-			"position:relative;display:block;" +
-			"margin:auto;border:1px;padding:1px;" +
-			"top:1%;width:50%";
-		div.innerHTML = "";
-		documentElement.appendChild( container );
-
-		var divStyle = window.getComputedStyle( div );
-		pixelPositionVal = divStyle.top !== "1%";
-		reliableMarginLeftVal = divStyle.marginLeft === "2px";
-		boxSizingReliableVal = divStyle.width === "4px";
-
-		// Support: Android 4.0 - 4.3 only
-		// Some styles come back with percentage values, even though they shouldn't
-		div.style.marginRight = "50%";
-		pixelMarginRightVal = divStyle.marginRight === "4px";
-
-		documentElement.removeChild( container );
-	}
-
-	jQuery.extend( support, {
-		pixelPosition: function() {
-
-			// This test is executed only once but we still do memoizing
-			// since we can use the boxSizingReliable pre-computing.
-			// No need to check if the test was already performed, though.
-			computeStyleTests();
-			return pixelPositionVal;
-		},
-		boxSizingReliable: function() {
-			if ( boxSizingReliableVal == null ) {
-				computeStyleTests();
-			}
-			return boxSizingReliableVal;
-		},
-		pixelMarginRight: function() {
-
-			// Support: Android 4.0-4.3
-			// We're checking for boxSizingReliableVal here instead of pixelMarginRightVal
-			// since that compresses better and they're computed together anyway.
-			if ( boxSizingReliableVal == null ) {
-				computeStyleTests();
-			}
-			return pixelMarginRightVal;
-		},
-		reliableMarginLeft: function() {
-
-			// Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37
-			if ( boxSizingReliableVal == null ) {
-				computeStyleTests();
-			}
-			return reliableMarginLeftVal;
-		},
-		reliableMarginRight: function() {
-
-			// Support: Android 2.3
-			// Check if div with explicit width and no margin-right incorrectly
-			// gets computed margin-right based on width of container. (#3333)
-			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-			// This support function is only executed once so no memoizing is needed.
-			var ret,
-				marginDiv = div.appendChild( document.createElement( "div" ) );
-
-			// Reset CSS: box-sizing; display; margin; border; padding
-			marginDiv.style.cssText = div.style.cssText =
-
-				// Support: Android 2.3
-				// Vendor-prefix box-sizing
-				"-webkit-box-sizing:content-box;box-sizing:content-box;" +
-				"display:block;margin:0;border:0;padding:0";
-			marginDiv.style.marginRight = marginDiv.style.width = "0";
-			div.style.width = "1px";
-			documentElement.appendChild( container );
-
-			ret = !parseFloat( window.getComputedStyle( marginDiv ).marginRight );
-
-			documentElement.removeChild( container );
-			div.removeChild( marginDiv );
-
-			return ret;
-		}
-	} );
-} )();
-
-
-function curCSS( elem, name, computed ) {
-	var width, minWidth, maxWidth, ret,
-		style = elem.style;
-
-	computed = computed || getStyles( elem );
-	ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
-
-	// Support: Opera 12.1x only
-	// Fall back to style even without computed
-	// computed is undefined for elems on document fragments
-	if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
-		ret = jQuery.style( elem, name );
-	}
-
-	// Support: IE9
-	// getPropertyValue is only needed for .css('filter') (#12537)
-	if ( computed ) {
-
-		// A tribute to the "awesome hack by Dean Edwards"
-		// Android Browser returns percentage for some values,
-		// but width seems to be reliably pixels.
-		// This is against the CSSOM draft spec:
-		// http://dev.w3.org/csswg/cssom/#resolved-values
-		if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
-			// Remember the original values
-			width = style.width;
-			minWidth = style.minWidth;
-			maxWidth = style.maxWidth;
-
-			// Put in the new values to get a computed value out
-			style.minWidth = style.maxWidth = style.width = ret;
-			ret = computed.width;
-
-			// Revert the changed values
-			style.width = width;
-			style.minWidth = minWidth;
-			style.maxWidth = maxWidth;
-		}
-	}
-
-	return ret !== undefined ?
-
-		// Support: IE9-11+
-		// IE returns zIndex value as an integer.
-		ret + "" :
-		ret;
-}
-
-
-function addGetHookIf( conditionFn, hookFn ) {
-
-	// Define the hook, we'll check on the first run if it's really needed.
-	return {
-		get: function() {
-			if ( conditionFn() ) {
-
-				// Hook not needed (or it's not possible to use it due
-				// to missing dependency), remove it.
-				delete this.get;
-				return;
-			}
-
-			// Hook needed; redefine it so that the support test is not executed again.
-			return ( this.get = hookFn ).apply( this, arguments );
-		}
-	};
-}
-
-
-var
-
-	// Swappable if display is none or starts with table
-	// except "table", "table-cell", or "table-caption"
-	// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
-	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
-
-	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-	cssNormalTransform = {
-		letterSpacing: "0",
-		fontWeight: "400"
-	},
-
-	cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
-	emptyStyle = document.createElement( "div" ).style;
-
-// Return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( name ) {
-
-	// Shortcut for names that are not vendor prefixed
-	if ( name in emptyStyle ) {
-		return name;
-	}
-
-	// Check for vendor prefixed names
-	var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
-		i = cssPrefixes.length;
-
-	while ( i-- ) {
-		name = cssPrefixes[ i ] + capName;
-		if ( name in emptyStyle ) {
-			return name;
-		}
-	}
-}
-
-function setPositiveNumber( elem, value, subtract ) {
-
-	// Any relative (+/-) values have already been
-	// normalized at this point
-	var matches = rcssNum.exec( value );
-	return matches ?
-
-		// Guard against undefined "subtract", e.g., when used as in cssHooks
-		Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
-		value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
-	var i = extra === ( isBorderBox ? "border" : "content" ) ?
-
-		// If we already have the right measurement, avoid augmentation
-		4 :
-
-		// Otherwise initialize for horizontal or vertical properties
-		name === "width" ? 1 : 0,
-
-		val = 0;
-
-	for ( ; i < 4; i += 2 ) {
-
-		// Both box models exclude margin, so add it if we want it
-		if ( extra === "margin" ) {
-			val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
-		}
-
-		if ( isBorderBox ) {
-
-			// border-box includes padding, so remove it if we want content
-			if ( extra === "content" ) {
-				val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-			}
-
-			// At this point, extra isn't border nor margin, so remove border
-			if ( extra !== "margin" ) {
-				val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
-			}
-		} else {
-
-			// At this point, extra isn't content, so add padding
-			val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
-			// At this point, extra isn't content nor padding, so add border
-			if ( extra !== "padding" ) {
-				val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
-			}
-		}
-	}
-
-	return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
-	// Start with offset property, which is equivalent to the border-box value
-	var valueIsBorderBox = true,
-		val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
-		styles = getStyles( elem ),
-		isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
-	// Support: IE11 only
-	// In IE 11 fullscreen elements inside of an iframe have
-	// 100x too small dimensions (gh-1764).
-	if ( document.msFullscreenElement && window.top !== window ) {
-
-		// Support: IE11 only
-		// Running getBoundingClientRect on a disconnected node
-		// in IE throws an error.
-		if ( elem.getClientRects().length ) {
-			val = Math.round( elem.getBoundingClientRect()[ name ] * 100 );
-		}
-	}
-
-	// Some non-html elements return undefined for offsetWidth, so check for null/undefined
-	// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
-	// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
-	if ( val <= 0 || val == null ) {
-
-		// Fall back to computed then uncomputed css if necessary
-		val = curCSS( elem, name, styles );
-		if ( val < 0 || val == null ) {
-			val = elem.style[ name ];
-		}
-
-		// Computed unit is not pixels. Stop here and return.
-		if ( rnumnonpx.test( val ) ) {
-			return val;
-		}
-
-		// Check for style in case a browser which returns unreliable values
-		// for getComputedStyle silently falls back to the reliable elem.style
-		valueIsBorderBox = isBorderBox &&
-			( support.boxSizingReliable() || val === elem.style[ name ] );
-
-		// Normalize "", auto, and prepare for extra
-		val = parseFloat( val ) || 0;
-	}
-
-	// Use the active box-sizing model to add/subtract irrelevant styles
-	return ( val +
-		augmentWidthOrHeight(
-			elem,
-			name,
-			extra || ( isBorderBox ? "border" : "content" ),
-			valueIsBorderBox,
-			styles
-		)
-	) + "px";
-}
-
-function showHide( elements, show ) {
-	var display, elem, hidden,
-		values = [],
-		index = 0,
-		length = elements.length;
-
-	for ( ; index < length; index++ ) {
-		elem = elements[ index ];
-		if ( !elem.style ) {
-			continue;
-		}
-
-		values[ index ] = dataPriv.get( elem, "olddisplay" );
-		display = elem.style.display;
-		if ( show ) {
-
-			// Reset the inline display of this element to learn if it is
-			// being hidden by cascaded rules or not
-			if ( !values[ index ] && display === "none" ) {
-				elem.style.display = "";
-			}
-
-			// Set elements which have been overridden with display: none
-			// in a stylesheet to whatever the default browser style is
-			// for such an element
-			if ( elem.style.display === "" && isHidden( elem ) ) {
-				values[ index ] = dataPriv.access(
-					elem,
-					"olddisplay",
-					defaultDisplay( elem.nodeName )
-				);
-			}
-		} else {
-			hidden = isHidden( elem );
-
-			if ( display !== "none" || !hidden ) {
-				dataPriv.set(
-					elem,
-					"olddisplay",
-					hidden ? display : jQuery.css( elem, "display" )
-				);
-			}
-		}
-	}
-
-	// Set the display of most of the elements in a second loop
-	// to avoid the constant reflow
-	for ( index = 0; index < length; index++ ) {
-		elem = elements[ index ];
-		if ( !elem.style ) {
-			continue;
-		}
-		if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
-			elem.style.display = show ? values[ index ] || "" : "none";
-		}
-	}
-
-	return elements;
-}
-
-jQuery.extend( {
-
-	// Add in style property hooks for overriding the default
-	// behavior of getting and setting a style property
-	cssHooks: {
-		opacity: {
-			get: function( elem, computed ) {
-				if ( computed ) {
-
-					// We should always get a number back from opacity
-					var ret = curCSS( elem, "opacity" );
-					return ret === "" ? "1" : ret;
-				}
-			}
-		}
-	},
-
-	// Don't automatically add "px" to these possibly-unitless properties
-	cssNumber: {
-		"animationIterationCount": true,
-		"columnCount": true,
-		"fillOpacity": true,
-		"flexGrow": true,
-		"flexShrink": true,
-		"fontWeight": true,
-		"lineHeight": true,
-		"opacity": true,
-		"order": true,
-		"orphans": true,
-		"widows": true,
-		"zIndex": true,
-		"zoom": true
-	},
-
-	// Add in properties whose names you wish to fix before
-	// setting or getting the value
-	cssProps: {
-		"float": "cssFloat"
-	},
-
-	// Get and set the style property on a DOM Node
-	style: function( elem, name, value, extra ) {
-
-		// Don't set styles on text and comment nodes
-		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
-			return;
-		}
-
-		// Make sure that we're working with the right name
-		var ret, type, hooks,
-			origName = jQuery.camelCase( name ),
-			style = elem.style;
-
-		name = jQuery.cssProps[ origName ] ||
-			( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
-		// Gets hook for the prefixed version, then unprefixed version
-		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
-		// Check if we're setting a value
-		if ( value !== undefined ) {
-			type = typeof value;
-
-			// Convert "+=" or "-=" to relative numbers (#7345)
-			if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
-				value = adjustCSS( elem, name, ret );
-
-				// Fixes bug #9237
-				type = "number";
-			}
-
-			// Make sure that null and NaN values aren't set (#7116)
-			if ( value == null || value !== value ) {
-				return;
-			}
-
-			// If a number was passed in, add the unit (except for certain CSS properties)
-			if ( type === "number" ) {
-				value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
-			}
-
-			// Support: IE9-11+
-			// background-* props affect original clone's values
-			if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
-				style[ name ] = "inherit";
-			}
-
-			// If a hook was provided, use that value, otherwise just set the specified value
-			if ( !hooks || !( "set" in hooks ) ||
-				( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
-				style[ name ] = value;
-			}
-
-		} else {
-
-			// If a hook was provided get the non-computed value from there
-			if ( hooks && "get" in hooks &&
-				( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
-				return ret;
-			}
-
-			// Otherwise just get the value from the style object
-			return style[ name ];
-		}
-	},
-
-	css: function( elem, name, extra, styles ) {
-		var val, num, hooks,
-			origName = jQuery.camelCase( name );
-
-		// Make sure that we're working with the right name
-		name = jQuery.cssProps[ origName ] ||
-			( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
-		// Try prefixed name followed by the unprefixed name
-		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
-		// If a hook was provided get the computed value from there
-		if ( hooks && "get" in hooks ) {
-			val = hooks.get( elem, true, extra );
-		}
-
-		// Otherwise, if a way to get the computed value exists, use that
-		if ( val === undefined ) {
-			val = curCSS( elem, name, styles );
-		}
-
-		// Convert "normal" to computed value
-		if ( val === "normal" && name in cssNormalTransform ) {
-			val = cssNormalTransform[ name ];
-		}
-
-		// Make numeric if forced or a qualifier was provided and val looks numeric
-		if ( extra === "" || extra ) {
-			num = parseFloat( val );
-			return extra === true || isFinite( num ) ? num || 0 : val;
-		}
-		return val;
-	}
-} );
-
-jQuery.each( [ "height", "width" ], function( i, name ) {
-	jQuery.cssHooks[ name ] = {
-		get: function( elem, computed, extra ) {
-			if ( computed ) {
-
-				// Certain elements can have dimension info if we invisibly show them
-				// but it must have a current display style that would benefit
-				return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
-					elem.offsetWidth === 0 ?
-						swap( elem, cssShow, function() {
-							return getWidthOrHeight( elem, name, extra );
-						} ) :
-						getWidthOrHeight( elem, name, extra );
-			}
-		},
-
-		set: function( elem, value, extra ) {
-			var matches,
-				styles = extra && getStyles( elem ),
-				subtract = extra && augmentWidthOrHeight(
-					elem,
-					name,
-					extra,
-					jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
-					styles
-				);
-
-			// Convert to pixels if value adjustment is needed
-			if ( subtract && ( matches = rcssNum.exec( value ) ) &&
-				( matches[ 3 ] || "px" ) !== "px" ) {
-
-				elem.style[ name ] = value;
-				value = jQuery.css( elem, name );
-			}
-
-			return setPositiveNumber( elem, value, subtract );
-		}
-	};
-} );
-
-jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
-	function( elem, computed ) {
-		if ( computed ) {
-			return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
-				elem.getBoundingClientRect().left -
-					swap( elem, { marginLeft: 0 }, function() {
-						return elem.getBoundingClientRect().left;
-					} )
-				) + "px";
-		}
-	}
-);
-
-// Support: Android 2.3
-jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
-	function( elem, computed ) {
-		if ( computed ) {
-			return swap( elem, { "display": "inline-block" },
-				curCSS, [ elem, "marginRight" ] );
-		}
-	}
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each( {
-	margin: "",
-	padding: "",
-	border: "Width"
-}, function( prefix, suffix ) {
-	jQuery.cssHooks[ prefix + suffix ] = {
-		expand: function( value ) {
-			var i = 0,
-				expanded = {},
-
-				// Assumes a single number if not a string
-				parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
-			for ( ; i < 4; i++ ) {
-				expanded[ prefix + cssExpand[ i ] + suffix ] =
-					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
-			}
-
-			return expanded;
-		}
-	};
-
-	if ( !rmargin.test( prefix ) ) {
-		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
-	}
-} );
-
-jQuery.fn.extend( {
-	css: function( name, value ) {
-		return access( this, function( elem, name, value ) {
-			var styles, len,
-				map = {},
-				i = 0;
-
-			if ( jQuery.isArray( name ) ) {
-				styles = getStyles( elem );
-				len = name.length;
-
-				for ( ; i < len; i++ ) {
-					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
-				}
-
-				return map;
-			}
-
-			return value !== undefined ?
-				jQuery.style( elem, name, value ) :
-				jQuery.css( elem, name );
-		}, name, value, arguments.length > 1 );
-	},
-	show: function() {
-		return showHide( this, true );
-	},
-	hide: function() {
-		return showHide( this );
-	},
-	toggle: function( state ) {
-		if ( typeof state === "boolean" ) {
-			return state ? this.show() : this.hide();
-		}
-
-		return this.each( function() {
-			if ( isHidden( this ) ) {
-				jQuery( this ).show();
-			} else {
-				jQuery( this ).hide();
-			}
-		} );
-	}
-} );
-
-
-function Tween( elem, options, prop, end, easing ) {
-	return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
-	constructor: Tween,
-	init: function( elem, options, prop, end, easing, unit ) {
-		this.elem = elem;
-		this.prop = prop;
-		this.easing = easing || jQuery.easing._default;
-		this.options = options;
-		this.start = this.now = this.cur();
-		this.end = end;
-		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
-	},
-	cur: function() {
-		var hooks = Tween.propHooks[ this.prop ];
-
-		return hooks && hooks.get ?
-			hooks.get( this ) :
-			Tween.propHooks._default.get( this );
-	},
-	run: function( percent ) {
-		var eased,
-			hooks = Tween.propHooks[ this.prop ];
-
-		if ( this.options.duration ) {
-			this.pos = eased = jQuery.easing[ this.easing ](
-				percent, this.options.duration * percent, 0, 1, this.options.duration
-			);
-		} else {
-			this.pos = eased = percent;
-		}
-		this.now = ( this.end - this.start ) * eased + this.start;
-
-		if ( this.options.step ) {
-			this.options.step.call( this.elem, this.now, this );
-		}
-
-		if ( hooks && hooks.set ) {
-			hooks.set( this );
-		} else {
-			Tween.propHooks._default.set( this );
-		}
-		return this;
-	}
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
-	_default: {
-		get: function( tween ) {
-			var result;
-
-			// Use a property on the element directly when it is not a DOM element,
-			// or when there is no matching style property that exists.
-			if ( tween.elem.nodeType !== 1 ||
-				tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
-				return tween.elem[ tween.prop ];
-			}
-
-			// Passing an empty string as a 3rd parameter to .css will automatically
-			// attempt a parseFloat and fallback to a string if the parse fails.
-			// Simple values such as "10px" are parsed to Float;
-			// complex values such as "rotate(1rad)" are returned as-is.
-			result = jQuery.css( tween.elem, tween.prop, "" );
-
-			// Empty strings, null, undefined and "auto" are converted to 0.
-			return !result || result === "auto" ? 0 : result;
-		},
-		set: function( tween ) {
-
-			// Use step hook for back compat.
-			// Use cssHook if its there.
-			// Use .style if available and use plain properties where available.
-			if ( jQuery.fx.step[ tween.prop ] ) {
-				jQuery.fx.step[ tween.prop ]( tween );
-			} else if ( tween.elem.nodeType === 1 &&
-				( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
-					jQuery.cssHooks[ tween.prop ] ) ) {
-				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
-			} else {
-				tween.elem[ tween.prop ] = tween.now;
-			}
-		}
-	}
-};
-
-// Support: IE9
-// Panic based approach to setting things on disconnected nodes
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
-	set: function( tween ) {
-		if ( tween.elem.nodeType && tween.elem.parentNode ) {
-			tween.elem[ tween.prop ] = tween.now;
-		}
-	}
-};
-
-jQuery.easing = {
-	linear: function( p ) {
-		return p;
-	},
-	swing: function( p ) {
-		return 0.5 - Math.cos( p * Math.PI ) / 2;
-	},
-	_default: "swing"
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back Compat <1.8 extension point
-jQuery.fx.step = {};
-
-
-
-
-var
-	fxNow, timerId,
-	rfxtypes = /^(?:toggle|show|hide)$/,
-	rrun = /queueHooks$/;
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
-	window.setTimeout( function() {
-		fxNow = undefined;
-	} );
-	return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
-	var which,
-		i = 0,
-		attrs = { height: type };
-
-	// If we include width, step value is 1 to do all cssExpand values,
-	// otherwise step value is 2 to skip over Left and Right
-	includeWidth = includeWidth ? 1 : 0;
-	for ( ; i < 4 ; i += 2 - includeWidth ) {
-		which = cssExpand[ i ];
-		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
-	}
-
-	if ( includeWidth ) {
-		attrs.opacity = attrs.width = type;
-	}
-
-	return attrs;
-}
-
-function createTween( value, prop, animation ) {
-	var tween,
-		collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
-		index = 0,
-		length = collection.length;
-	for ( ; index < length; index++ ) {
-		if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
-			// We're done with this property
-			return tween;
-		}
-	}
-}
-
-function defaultPrefilter( elem, props, opts ) {
-	/* jshint validthis: true */
-	var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
-		anim = this,
-		orig = {},
-		style = elem.style,
-		hidden = elem.nodeType && isHidden( elem ),
-		dataShow = dataPriv.get( elem, "fxshow" );
-
-	// Handle queue: false promises
-	if ( !opts.queue ) {
-		hooks = jQuery._queueHooks( elem, "fx" );
-		if ( hooks.unqueued == null ) {
-			hooks.unqueued = 0;
-			oldfire = hooks.empty.fire;
-			hooks.empty.fire = function() {
-				if ( !hooks.unqueued ) {
-					oldfire();
-				}
-			};
-		}
-		hooks.unqueued++;
-
-		anim.always( function() {
-
-			// Ensure the complete handler is called before this completes
-			anim.always( function() {
-				hooks.unqueued--;
-				if ( !jQuery.queue( elem, "fx" ).length ) {
-					hooks.empty.fire();
-				}
-			} );
-		} );
-	}
-
-	// Height/width overflow pass
-	if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
-
-		// Make sure that nothing sneaks out
-		// Record all 3 overflow attributes because IE9-10 do not
-		// change the overflow attribute when overflowX and
-		// overflowY are set to the same value
-		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
-		// Set display property to inline-block for height/width
-		// animations on inline elements that are having width/height animated
-		display = jQuery.css( elem, "display" );
-
-		// Test default display if display is currently "none"
-		checkDisplay = display === "none" ?
-			dataPriv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
-
-		if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
-			style.display = "inline-block";
-		}
-	}
-
-	if ( opts.overflow ) {
-		style.overflow = "hidden";
-		anim.always( function() {
-			style.overflow = opts.overflow[ 0 ];
-			style.overflowX = opts.overflow[ 1 ];
-			style.overflowY = opts.overflow[ 2 ];
-		} );
-	}
-
-	// show/hide pass
-	for ( prop in props ) {
-		value = props[ prop ];
-		if ( rfxtypes.exec( value ) ) {
-			delete props[ prop ];
-			toggle = toggle || value === "toggle";
-			if ( value === ( hidden ? "hide" : "show" ) ) {
-
-				// If there is dataShow left over from a stopped hide or show
-				// and we are going to proceed with show, we should pretend to be hidden
-				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
-					hidden = true;
-				} else {
-					continue;
-				}
-			}
-			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
-
-		// Any non-fx value stops us from restoring the original display value
-		} else {
-			display = undefined;
-		}
-	}
-
-	if ( !jQuery.isEmptyObject( orig ) ) {
-		if ( dataShow ) {
-			if ( "hidden" in dataShow ) {
-				hidden = dataShow.hidden;
-			}
-		} else {
-			dataShow = dataPriv.access( elem, "fxshow", {} );
-		}
-
-		// Store state if its toggle - enables .stop().toggle() to "reverse"
-		if ( toggle ) {
-			dataShow.hidden = !hidden;
-		}
-		if ( hidden ) {
-			jQuery( elem ).show();
-		} else {
-			anim.done( function() {
-				jQuery( elem ).hide();
-			} );
-		}
-		anim.done( function() {
-			var prop;
-
-			dataPriv.remove( elem, "fxshow" );
-			for ( prop in orig ) {
-				jQuery.style( elem, prop, orig[ prop ] );
-			}
-		} );
-		for ( prop in orig ) {
-			tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
-
-			if ( !( prop in dataShow ) ) {
-				dataShow[ prop ] = tween.start;
-				if ( hidden ) {
-					tween.end = tween.start;
-					tween.start = prop === "width" || prop === "height" ? 1 : 0;
-				}
-			}
-		}
-
-	// If this is a noop like .hide().hide(), restore an overwritten display value
-	} else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
-		style.display = display;
-	}
-}
-
-function propFilter( props, specialEasing ) {
-	var index, name, easing, value, hooks;
-
-	// camelCase, specialEasing and expand cssHook pass
-	for ( index in props ) {
-		name = jQuery.camelCase( index );
-		easing = specialEasing[ name ];
-		value = props[ index ];
-		if ( jQuery.isArray( value ) ) {
-			easing = value[ 1 ];
-			value = props[ index ] = value[ 0 ];
-		}
-
-		if ( index !== name ) {
-			props[ name ] = value;
-			delete props[ index ];
-		}
-
-		hooks = jQuery.cssHooks[ name ];
-		if ( hooks && "expand" in hooks ) {
-			value = hooks.expand( value );
-			delete props[ name ];
-
-			// Not quite $.extend, this won't overwrite existing keys.
-			// Reusing 'index' because we have the correct "name"
-			for ( index in value ) {
-				if ( !( index in props ) ) {
-					props[ index ] = value[ index ];
-					specialEasing[ index ] = easing;
-				}
-			}
-		} else {
-			specialEasing[ name ] = easing;
-		}
-	}
-}
-
-function Animation( elem, properties, options ) {
-	var result,
-		stopped,
-		index = 0,
-		length = Animation.prefilters.length,
-		deferred = jQuery.Deferred().always( function() {
-
-			// Don't match elem in the :animated selector
-			delete tick.elem;
-		} ),
-		tick = function() {
-			if ( stopped ) {
-				return false;
-			}
-			var currentTime = fxNow || createFxNow(),
-				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
-				// Support: Android 2.3
-				// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
-				temp = remaining / animation.duration || 0,
-				percent = 1 - temp,
-				index = 0,
-				length = animation.tweens.length;
-
-			for ( ; index < length ; index++ ) {
-				animation.tweens[ index ].run( percent );
-			}
-
-			deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
-			if ( percent < 1 && length ) {
-				return remaining;
-			} else {
-				deferred.resolveWith( elem, [ animation ] );
-				return false;
-			}
-		},
-		animation = deferred.promise( {
-			elem: elem,
-			props: jQuery.extend( {}, properties ),
-			opts: jQuery.extend( true, {
-				specialEasing: {},
-				easing: jQuery.easing._default
-			}, options ),
-			originalProperties: properties,
-			originalOptions: options,
-			startTime: fxNow || createFxNow(),
-			duration: options.duration,
-			tweens: [],
-			createTween: function( prop, end ) {
-				var tween = jQuery.Tween( elem, animation.opts, prop, end,
-						animation.opts.specialEasing[ prop ] || animation.opts.easing );
-				animation.tweens.push( tween );
-				return tween;
-			},
-			stop: function( gotoEnd ) {
-				var index = 0,
-
-					// If we are going to the end, we want to run all the tweens
-					// otherwise we skip this part
-					length = gotoEnd ? animation.tweens.length : 0;
-				if ( stopped ) {
-					return this;
-				}
-				stopped = true;
-				for ( ; index < length ; index++ ) {
-					animation.tweens[ index ].run( 1 );
-				}
-
-				// Resolve when we played the last frame; otherwise, reject
-				if ( gotoEnd ) {
-					deferred.notifyWith( elem, [ animation, 1, 0 ] );
-					deferred.resolveWith( elem, [ animation, gotoEnd ] );
-				} else {
-					deferred.rejectWith( elem, [ animation, gotoEnd ] );
-				}
-				return this;
-			}
-		} ),
-		props = animation.props;
-
-	propFilter( props, animation.opts.specialEasing );
-
-	for ( ; index < length ; index++ ) {
-		result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
-		if ( result ) {
-			if ( jQuery.isFunction( result.stop ) ) {
-				jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
-					jQuery.proxy( result.stop, result );
-			}
-			return result;
-		}
-	}
-
-	jQuery.map( props, createTween, animation );
-
-	if ( jQuery.isFunction( animation.opts.start ) ) {
-		animation.opts.start.call( elem, animation );
-	}
-
-	jQuery.fx.timer(
-		jQuery.extend( tick, {
-			elem: elem,
-			anim: animation,
-			queue: animation.opts.queue
-		} )
-	);
-
-	// attach callbacks from options
-	return animation.progress( animation.opts.progress )
-		.done( animation.opts.done, animation.opts.complete )
-		.fail( animation.opts.fail )
-		.always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
-	tweeners: {
-		"*": [ function( prop, value ) {
-			var tween = this.createTween( prop, value );
-			adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
-			return tween;
-		} ]
-	},
-
-	tweener: function( props, callback ) {
-		if ( jQuery.isFunction( props ) ) {
-			callback = props;
-			props = [ "*" ];
-		} else {
-			props = props.match( rnotwhite );
-		}
-
-		var prop,
-			index = 0,
-			length = props.length;
-
-		for ( ; index < length ; index++ ) {
-			prop = props[ index ];
-			Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
-			Animation.tweeners[ prop ].unshift( callback );
-		}
-	},
-
-	prefilters: [ defaultPrefilter ],
-
-	prefilter: function( callback, prepend ) {
-		if ( prepend ) {
-			Animation.prefilters.unshift( callback );
-		} else {
-			Animation.prefilters.push( callback );
-		}
-	}
-} );
-
-jQuery.speed = function( speed, easing, fn ) {
-	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
-		complete: fn || !fn && easing ||
-			jQuery.isFunction( speed ) && speed,
-		duration: speed,
-		easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
-	};
-
-	opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
-		opt.duration : opt.duration in jQuery.fx.speeds ?
-			jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
-	// Normalize opt.queue - true/undefined/null -> "fx"
-	if ( opt.queue == null || opt.queue === true ) {
-		opt.queue = "fx";
-	}
-
-	// Queueing
-	opt.old = opt.complete;
-
-	opt.complete = function() {
-		if ( jQuery.isFunction( opt.old ) ) {
-			opt.old.call( this );
-		}
-
-		if ( opt.queue ) {
-			jQuery.dequeue( this, opt.queue );
-		}
-	};
-
-	return opt;
-};
-
-jQuery.fn.extend( {
-	fadeTo: function( speed, to, easing, callback ) {
-
-		// Show any hidden elements after setting opacity to 0
-		return this.filter( isHidden ).css( "opacity", 0 ).show()
-
-			// Animate to the value specified
-			.end().animate( { opacity: to }, speed, easing, callback );
-	},
-	animate: function( prop, speed, easing, callback ) {
-		var empty = jQuery.isEmptyObject( prop ),
-			optall = jQuery.speed( speed, easing, callback ),
-			doAnimation = function() {
-
-				// Operate on a copy of prop so per-property easing won't be lost
-				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
-				// Empty animations, or finishing resolves immediately
-				if ( empty || dataPriv.get( this, "finish" ) ) {
-					anim.stop( true );
-				}
-			};
-			doAnimation.finish = doAnimation;
-
-		return empty || optall.queue === false ?
-			this.each( doAnimation ) :
-			this.queue( optall.queue, doAnimation );
-	},
-	stop: function( type, clearQueue, gotoEnd ) {
-		var stopQueue = function( hooks ) {
-			var stop = hooks.stop;
-			delete hooks.stop;
-			stop( gotoEnd );
-		};
-
-		if ( typeof type !== "string" ) {
-			gotoEnd = clearQueue;
-			clearQueue = type;
-			type = undefined;
-		}
-		if ( clearQueue && type !== false ) {
-			this.queue( type || "fx", [] );
-		}
-
-		return this.each( function() {
-			var dequeue = true,
-				index = type != null && type + "queueHooks",
-				timers = jQuery.timers,
-				data = dataPriv.get( this );
-
-			if ( index ) {
-				if ( data[ index ] && data[ index ].stop ) {
-					stopQueue( data[ index ] );
-				}
-			} else {
-				for ( index in data ) {
-					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
-						stopQueue( data[ index ] );
-					}
-				}
-			}
-
-			for ( index = timers.length; index--; ) {
-				if ( timers[ index ].elem === this &&
-					( type == null || timers[ index ].queue === type ) ) {
-
-					timers[ index ].anim.stop( gotoEnd );
-					dequeue = false;
-					timers.splice( index, 1 );
-				}
-			}
-
-			// Start the next in the queue if the last step wasn't forced.
-			// Timers currently will call their complete callbacks, which
-			// will dequeue but only if they were gotoEnd.
-			if ( dequeue || !gotoEnd ) {
-				jQuery.dequeue( this, type );
-			}
-		} );
-	},
-	finish: function( type ) {
-		if ( type !== false ) {
-			type = type || "fx";
-		}
-		return this.each( function() {
-			var index,
-				data = dataPriv.get( this ),
-				queue = data[ type + "queue" ],
-				hooks = data[ type + "queueHooks" ],
-				timers = jQuery.timers,
-				length = queue ? queue.length : 0;
-
-			// Enable finishing flag on private data
-			data.finish = true;
-
-			// Empty the queue first
-			jQuery.queue( this, type, [] );
-
-			if ( hooks && hooks.stop ) {
-				hooks.stop.call( this, true );
-			}
-
-			// Look for any active animations, and finish them
-			for ( index = timers.length; index--; ) {
-				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
-					timers[ index ].anim.stop( true );
-					timers.splice( index, 1 );
-				}
-			}
-
-			// Look for any animations in the old queue and finish them
-			for ( index = 0; index < length; index++ ) {
-				if ( queue[ index ] && queue[ index ].finish ) {
-					queue[ index ].finish.call( this );
-				}
-			}
-
-			// Turn off finishing flag
-			delete data.finish;
-		} );
-	}
-} );
-
-jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
-	var cssFn = jQuery.fn[ name ];
-	jQuery.fn[ name ] = function( speed, easing, callback ) {
-		return speed == null || typeof speed === "boolean" ?
-			cssFn.apply( this, arguments ) :
-			this.animate( genFx( name, true ), speed, easing, callback );
-	};
-} );
-
-// Generate shortcuts for custom animations
-jQuery.each( {
-	slideDown: genFx( "show" ),
-	slideUp: genFx( "hide" ),
-	slideToggle: genFx( "toggle" ),
-	fadeIn: { opacity: "show" },
-	fadeOut: { opacity: "hide" },
-	fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
-	jQuery.fn[ name ] = function( speed, easing, callback ) {
-		return this.animate( props, speed, easing, callback );
-	};
-} );
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
-	var timer,
-		i = 0,
-		timers = jQuery.timers;
-
-	fxNow = jQuery.now();
-
-	for ( ; i < timers.length; i++ ) {
-		timer = timers[ i ];
-
-		// Checks the timer has not already been removed
-		if ( !timer() && timers[ i ] === timer ) {
-			timers.splice( i--, 1 );
-		}
-	}
-
-	if ( !timers.length ) {
-		jQuery.fx.stop();
-	}
-	fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
-	jQuery.timers.push( timer );
-	if ( timer() ) {
-		jQuery.fx.start();
-	} else {
-		jQuery.timers.pop();
-	}
-};
-
-jQuery.fx.interval = 13;
-jQuery.fx.start = function() {
-	if ( !timerId ) {
-		timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
-	}
-};
-
-jQuery.fx.stop = function() {
-	window.clearInterval( timerId );
-
-	timerId = null;
-};
-
-jQuery.fx.speeds = {
-	slow: 600,
-	fast: 200,
-
-	// Default speed
-	_default: 400
-};
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
-	time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
-	type = type || "fx";
-
-	return this.queue( type, function( next, hooks ) {
-		var timeout = window.setTimeout( next, time );
-		hooks.stop = function() {
-			window.clearTimeout( timeout );
-		};
-	} );
-};
-
-
-( function() {
-	var input = document.createElement( "input" ),
-		select = document.createElement( "select" ),
-		opt = select.appendChild( document.createElement( "option" ) );
-
-	input.type = "checkbox";
-
-	// Support: iOS<=5.1, Android<=4.2+
-	// Default value for a checkbox should be "on"
-	support.checkOn = input.value !== "";
-
-	// Support: IE<=11+
-	// Must access selectedIndex to make default options select
-	support.optSelected = opt.selected;
-
-	// Support: Android<=2.3
-	// Options inside disabled selects are incorrectly marked as disabled
-	select.disabled = true;
-	support.optDisabled = !opt.disabled;
-
-	// Support: IE<=11+
-	// An input loses its value after becoming a radio
-	input = document.createElement( "input" );
-	input.value = "t";
-	input.type = "radio";
-	support.radioValue = input.value === "t";
-} )();
-
-
-var boolHook,
-	attrHandle = jQuery.expr.attrHandle;
-
-jQuery.fn.extend( {
-	attr: function( name, value ) {
-		return access( this, jQuery.attr, name, value, arguments.length > 1 );
-	},
-
-	removeAttr: function( name ) {
-		return this.each( function() {
-			jQuery.removeAttr( this, name );
-		} );
-	}
-} );
-
-jQuery.extend( {
-	attr: function( elem, name, value ) {
-		var ret, hooks,
-			nType = elem.nodeType;
-
-		// Don't get/set attributes on text, comment and attribute nodes
-		if ( nType === 3 || nType === 8 || nType === 2 ) {
-			return;
-		}
-
-		// Fallback to prop when attributes are not supported
-		if ( typeof elem.getAttribute === "undefined" ) {
-			return jQuery.prop( elem, name, value );
-		}
-
-		// All attributes are lowercase
-		// Grab necessary hook if one is defined
-		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-			name = name.toLowerCase();
-			hooks = jQuery.attrHooks[ name ] ||
-				( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
-		}
-
-		if ( value !== undefined ) {
-			if ( value === null ) {
-				jQuery.removeAttr( elem, name );
-				return;
-			}
-
-			if ( hooks && "set" in hooks &&
-				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
-				return ret;
-			}
-
-			elem.setAttribute( name, value + "" );
-			return value;
-		}
-
-		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
-			return ret;
-		}
-
-		ret = jQuery.find.attr( elem, name );
-
-		// Non-existent attributes return null, we normalize to undefined
-		return ret == null ? undefined : ret;
-	},
-
-	attrHooks: {
-		type: {
-			set: function( elem, value ) {
-				if ( !support.radioValue && value === "radio" &&
-					jQuery.nodeName( elem, "input" ) ) {
-					var val = elem.value;
-					elem.setAttribute( "type", value );
-					if ( val ) {
-						elem.value = val;
-					}
-					return value;
-				}
-			}
-		}
-	},
-
-	removeAttr: function( elem, value ) {
-		var name, propName,
-			i = 0,
-			attrNames = value && value.match( rnotwhite );
-
-		if ( attrNames && elem.nodeType === 1 ) {
-			while ( ( name = attrNames[ i++ ] ) ) {
-				propName = jQuery.propFix[ name ] || name;
-
-				// Boolean attributes get special treatment (#10870)
-				if ( jQuery.expr.match.bool.test( name ) ) {
-
-					// Set corresponding property to false
-					elem[ propName ] = false;
-				}
-
-				elem.removeAttribute( name );
-			}
-		}
-	}
-} );
-
-// Hooks for boolean attributes
-boolHook = {
-	set: function( elem, value, name ) {
-		if ( value === false ) {
-
-			// Remove boolean attributes when set to false
-			jQuery.removeAttr( elem, name );
-		} else {
-			elem.setAttribute( name, name );
-		}
-		return name;
-	}
-};
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
-	var getter = attrHandle[ name ] || jQuery.find.attr;
-
-	attrHandle[ name ] = function( elem, name, isXML ) {
-		var ret, handle;
-		if ( !isXML ) {
-
-			// Avoid an infinite loop by temporarily removing this function from the getter
-			handle = attrHandle[ name ];
-			attrHandle[ name ] = ret;
-			ret = getter( elem, name, isXML ) != null ?
-				name.toLowerCase() :
-				null;
-			attrHandle[ name ] = handle;
-		}
-		return ret;
-	};
-} );
-
-
-
-
-var rfocusable = /^(?:input|select|textarea|button)$/i,
-	rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend( {
-	prop: function( name, value ) {
-		return access( this, jQuery.prop, name, value, arguments.length > 1 );
-	},
-
-	removeProp: function( name ) {
-		return this.each( function() {
-			delete this[ jQuery.propFix[ name ] || name ];
-		} );
-	}
-} );
-
-jQuery.extend( {
-	prop: function( elem, name, value ) {
-		var ret, hooks,
-			nType = elem.nodeType;
-
-		// Don't get/set properties on text, comment and attribute nodes
-		if ( nType === 3 || nType === 8 || nType === 2 ) {
-			return;
-		}
-
-		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
-			// Fix name and attach hooks
-			name = jQuery.propFix[ name ] || name;
-			hooks = jQuery.propHooks[ name ];
-		}
-
-		if ( value !== undefined ) {
-			if ( hooks && "set" in hooks &&
-				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
-				return ret;
-			}
-
-			return ( elem[ name ] = value );
-		}
-
-		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
-			return ret;
-		}
-
-		return elem[ name ];
-	},
-
-	propHooks: {
-		tabIndex: {
-			get: function( elem ) {
-
-				// elem.tabIndex doesn't always return the
-				// correct value when it hasn't been explicitly set
-				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
-				// Use proper attribute retrieval(#12072)
-				var tabindex = jQuery.find.attr( elem, "tabindex" );
-
-				return tabindex ?
-					parseInt( tabindex, 10 ) :
-					rfocusable.test( elem.nodeName ) ||
-						rclickable.test( elem.nodeName ) && elem.href ?
-							0 :
-							-1;
-			}
-		}
-	},
-
-	propFix: {
-		"for": "htmlFor",
-		"class": "className"
-	}
-} );
-
-if ( !support.optSelected ) {
-	jQuery.propHooks.selected = {
-		get: function( elem ) {
-			var parent = elem.parentNode;
-			if ( parent && parent.parentNode ) {
-				parent.parentNode.selectedIndex;
-			}
-			return null;
-		}
-	};
-}
-
-jQuery.each( [
-	"tabIndex",
-	"readOnly",
-	"maxLength",
-	"cellSpacing",
-	"cellPadding",
-	"rowSpan",
-	"colSpan",
-	"useMap",
-	"frameBorder",
-	"contentEditable"
-], function() {
-	jQuery.propFix[ this.toLowerCase() ] = this;
-} );
-
-
-
-
-var rclass = /[\t\r\n\f]/g;
-
-function getClass( elem ) {
-	return elem.getAttribute && elem.getAttribute( "class" ) || "";
-}
-
-jQuery.fn.extend( {
-	addClass: function( value ) {
-		var classes, elem, cur, curValue, clazz, j, finalValue,
-			i = 0;
-
-		if ( jQuery.isFunction( value ) ) {
-			return this.each( function( j ) {
-				jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
-			} );
-		}
-
-		if ( typeof value === "string" && value ) {
-			classes = value.match( rnotwhite ) || [];
-
-			while ( ( elem = this[ i++ ] ) ) {
-				curValue = getClass( elem );
-				cur = elem.nodeType === 1 &&
-					( " " + curValue + " " ).replace( rclass, " " );
-
-				if ( cur ) {
-					j = 0;
-					while ( ( clazz = classes[ j++ ] ) ) {
-						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
-							cur += clazz + " ";
-						}
-					}
-
-					// Only assign if different to avoid unneeded rendering.
-					finalValue = jQuery.trim( cur );
-					if ( curValue !== finalValue ) {
-						elem.setAttribute( "class", finalValue );
-					}
-				}
-			}
-		}
-
-		return this;
-	},
-
-	removeClass: function( value ) {
-		var classes, elem, cur, curValue, clazz, j, finalValue,
-			i = 0;
-
-		if ( jQuery.isFunction( value ) ) {
-			return this.each( function( j ) {
-				jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
-			} );
-		}
-
-		if ( !arguments.length ) {
-			return this.attr( "class", "" );
-		}
-
-		if ( typeof value === "string" && value ) {
-			classes = value.match( rnotwhite ) || [];
-
-			while ( ( elem = this[ i++ ] ) ) {
-				curValue = getClass( elem );
-
-				// This expression is here for better compressibility (see addClass)
-				cur = elem.nodeType === 1 &&
-					( " " + curValue + " " ).replace( rclass, " " );
-
-				if ( cur ) {
-					j = 0;
-					while ( ( clazz = classes[ j++ ] ) ) {
-
-						// Remove *all* instances
-						while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
-							cur = cur.replace( " " + clazz + " ", " " );
-						}
-					}
-
-					// Only assign if different to avoid unneeded rendering.
-					finalValue = jQuery.trim( cur );
-					if ( curValue !== finalValue ) {
-						elem.setAttribute( "class", finalValue );
-					}
-				}
-			}
-		}
-
-		return this;
-	},
-
-	toggleClass: function( value, stateVal ) {
-		var type = typeof value;
-
-		if ( typeof stateVal === "boolean" && type === "string" ) {
-			return stateVal ? this.addClass( value ) : this.removeClass( value );
-		}
-
-		if ( jQuery.isFunction( value ) ) {
-			return this.each( function( i ) {
-				jQuery( this ).toggleClass(
-					value.call( this, i, getClass( this ), stateVal ),
-					stateVal
-				);
-			} );
-		}
-
-		return this.each( function() {
-			var className, i, self, classNames;
-
-			if ( type === "string" ) {
-
-				// Toggle individual class names
-				i = 0;
-				self = jQuery( this );
-				classNames = value.match( rnotwhite ) || [];
-
-				while ( ( className = classNames[ i++ ] ) ) {
-
-					// Check each className given, space separated list
-					if ( self.hasClass( className ) ) {
-						self.removeClass( className );
-					} else {
-						self.addClass( className );
-					}
-				}
-
-			// Toggle whole class name
-			} else if ( value === undefined || type === "boolean" ) {
-				className = getClass( this );
-				if ( className ) {
-
-					// Store className if set
-					dataPriv.set( this, "__className__", className );
-				}
-
-				// If the element has a class name or if we're passed `false`,
-				// then remove the whole classname (if there was one, the above saved it).
-				// Otherwise bring back whatever was previously saved (if anything),
-				// falling back to the empty string if nothing was stored.
-				if ( this.setAttribute ) {
-					this.setAttribute( "class",
-						className || value === false ?
-						"" :
-						dataPriv.get( this, "__className__" ) || ""
-					);
-				}
-			}
-		} );
-	},
-
-	hasClass: function( selector ) {
-		var className, elem,
-			i = 0;
-
-		className = " " + selector + " ";
-		while ( ( elem = this[ i++ ] ) ) {
-			if ( elem.nodeType === 1 &&
-				( " " + getClass( elem ) + " " ).replace( rclass, " " )
-					.indexOf( className ) > -1
-			) {
-				return true;
-			}
-		}
-
-		return false;
-	}
-} );
-
-
-
-
-var rreturn = /\r/g;
-
-jQuery.fn.extend( {
-	val: function( value ) {
-		var hooks, ret, isFunction,
-			elem = this[ 0 ];
-
-		if ( !arguments.length ) {
-			if ( elem ) {
-				hooks = jQuery.valHooks[ elem.type ] ||
-					jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
-				if ( hooks &&
-					"get" in hooks &&
-					( ret = hooks.get( elem, "value" ) ) !== undefined
-				) {
-					return ret;
-				}
-
-				ret = elem.value;
-
-				return typeof ret === "string" ?
-
-					// Handle most common string cases
-					ret.replace( rreturn, "" ) :
-
-					// Handle cases where value is null/undef or number
-					ret == null ? "" : ret;
-			}
-
-			return;
-		}
-
-		isFunction = jQuery.isFunction( value );
-
-		return this.each( function( i ) {
-			var val;
-
-			if ( this.nodeType !== 1 ) {
-				return;
-			}
-
-			if ( isFunction ) {
-				val = value.call( this, i, jQuery( this ).val() );
-			} else {
-				val = value;
-			}
-
-			// Treat null/undefined as ""; convert numbers to string
-			if ( val == null ) {
-				val = "";
-
-			} else if ( typeof val === "number" ) {
-				val += "";
-
-			} else if ( jQuery.isArray( val ) ) {
-				val = jQuery.map( val, function( value ) {
-					return value == null ? "" : value + "";
-				} );
-			}
-
-			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
-			// If set returns undefined, fall back to normal setting
-			if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
-				this.value = val;
-			}
-		} );
-	}
-} );
-
-jQuery.extend( {
-	valHooks: {
-		option: {
-			get: function( elem ) {
-
-				// Support: IE<11
-				// option.value not trimmed (#14858)
-				return jQuery.trim( elem.value );
-			}
-		},
-		select: {
-			get: function( elem ) {
-				var value, option,
-					options = elem.options,
-					index = elem.selectedIndex,
-					one = elem.type === "select-one" || index < 0,
-					values = one ? null : [],
-					max = one ? index + 1 : options.length,
-					i = index < 0 ?
-						max :
-						one ? index : 0;
-
-				// Loop through all the selected options
-				for ( ; i < max; i++ ) {
-					option = options[ i ];
-
-					// IE8-9 doesn't update selected after form reset (#2551)
-					if ( ( option.selected || i === index ) &&
-
-							// Don't return options that are disabled or in a disabled optgroup
-							( support.optDisabled ?
-								!option.disabled : option.getAttribute( "disabled" ) === null ) &&
-							( !option.parentNode.disabled ||
-								!jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
-						// Get the specific value for the option
-						value = jQuery( option ).val();
-
-						// We don't need an array for one selects
-						if ( one ) {
-							return value;
-						}
-
-						// Multi-Selects return an array
-						values.push( value );
-					}
-				}
-
-				return values;
-			},
-
-			set: function( elem, value ) {
-				var optionSet, option,
-					options = elem.options,
-					values = jQuery.makeArray( value ),
-					i = options.length;
-
-				while ( i-- ) {
-					option = options[ i ];
-					if ( option.selected =
-							jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
-					) {
-						optionSet = true;
-					}
-				}
-
-				// Force browsers to behave consistently when non-matching value is set
-				if ( !optionSet ) {
-					elem.selectedIndex = -1;
-				}
-				return values;
-			}
-		}
-	}
-} );
-
-// Radios and checkboxes getter/setter
-jQuery.each( [ "radio", "checkbox" ], function() {
-	jQuery.valHooks[ this ] = {
-		set: function( elem, value ) {
-			if ( jQuery.isArray( value ) ) {
-				return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
-			}
-		}
-	};
-	if ( !support.checkOn ) {
-		jQuery.valHooks[ this ].get = function( elem ) {
-			return elem.getAttribute( "value" ) === null ? "on" : elem.value;
-		};
-	}
-} );
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
-
-jQuery.extend( jQuery.event, {
-
-	trigger: function( event, data, elem, onlyHandlers ) {
-
-		var i, cur, tmp, bubbleType, ontype, handle, special,
-			eventPath = [ elem || document ],
-			type = hasOwn.call( event, "type" ) ? event.type : event,
-			namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
-		cur = tmp = elem = elem || document;
-
-		// Don't do events on text and comment nodes
-		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-			return;
-		}
-
-		// focus/blur morphs to focusin/out; ensure we're not firing them right now
-		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
-			return;
-		}
-
-		if ( type.indexOf( "." ) > -1 ) {
-
-			// Namespaced trigger; create a regexp to match event type in handle()
-			namespaces = type.split( "." );
-			type = namespaces.shift();
-			namespaces.sort();
-		}
-		ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
-		// Caller can pass in a jQuery.Event object, Object, or just an event type string
-		event = event[ jQuery.expando ] ?
-			event :
-			new jQuery.Event( type, typeof event === "object" && event );
-
-		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
-		event.isTrigger = onlyHandlers ? 2 : 3;
-		event.namespace = namespaces.join( "." );
-		event.rnamespace = event.namespace ?
-			new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
-			null;
-
-		// Clean up the event in case it is being reused
-		event.result = undefined;
-		if ( !event.target ) {
-			event.target = elem;
-		}
-
-		// Clone any incoming data and prepend the event, creating the handler arg list
-		data = data == null ?
-			[ event ] :
-			jQuery.makeArray( data, [ event ] );
-
-		// Allow special events to draw outside the lines
-		special = jQuery.event.special[ type ] || {};
-		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
-			return;
-		}
-
-		// Determine event propagation path in advance, per W3C events spec (#9951)
-		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
-		if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
-			bubbleType = special.delegateType || type;
-			if ( !rfocusMorph.test( bubbleType + type ) ) {
-				cur = cur.parentNode;
-			}
-			for ( ; cur; cur = cur.parentNode ) {
-				eventPath.push( cur );
-				tmp = cur;
-			}
-
-			// Only add window if we got to document (e.g., not plain obj or detached DOM)
-			if ( tmp === ( elem.ownerDocument || document ) ) {
-				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
-			}
-		}
-
-		// Fire handlers on the event path
-		i = 0;
-		while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-
-			event.type = i > 1 ?
-				bubbleType :
-				special.bindType || type;
-
-			// jQuery handler
-			handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
-				dataPriv.get( cur, "handle" );
-			if ( handle ) {
-				handle.apply( cur, data );
-			}
-
-			// Native handler
-			handle = ontype && cur[ ontype ];
-			if ( handle && handle.apply && acceptData( cur ) ) {
-				event.result = handle.apply( cur, data );
-				if ( event.result === false ) {
-					event.preventDefault();
-				}
-			}
-		}
-		event.type = type;
-
-		// If nobody prevented the default action, do it now
-		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
-			if ( ( !special._default ||
-				special._default.apply( eventPath.pop(), data ) === false ) &&
-				acceptData( elem ) ) {
-
-				// Call a native DOM method on the target with the same name name as the event.
-				// Don't do default actions on window, that's where global variables be (#6170)
-				if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
-
-					// Don't re-trigger an onFOO event when we call its FOO() method
-					tmp = elem[ ontype ];
-
-					if ( tmp ) {
-						elem[ ontype ] = null;
-					}
-
-					// Prevent re-triggering of the same event, since we already bubbled it above
-					jQuery.event.triggered = type;
-					elem[ type ]();
-					jQuery.event.triggered = undefined;
-
-					if ( tmp ) {
-						elem[ ontype ] = tmp;
-					}
-				}
-			}
-		}
-
-		return event.result;
-	},
-
-	// Piggyback on a donor event to simulate a different one
-	simulate: function( type, elem, event ) {
-		var e = jQuery.extend(
-			new jQuery.Event(),
-			event,
-			{
-				type: type,
-				isSimulated: true
-
-				// Previously, `originalEvent: {}` was set here, so stopPropagation call
-				// would not be triggered on donor event, since in our own
-				// jQuery.event.stopPropagation function we had a check for existence of
-				// originalEvent.stopPropagation method, so, consequently it would be a noop.
-				//
-				// But now, this "simulate" function is used only for events
-				// for which stopPropagation() is noop, so there is no need for that anymore.
-				//
-				// For the 1.x branch though, guard for "click" and "submit"
-				// events is still used, but was moved to jQuery.event.stopPropagation function
-				// because `originalEvent` should point to the original event for the constancy
-				// with other events and for more focused logic
-			}
-		);
-
-		jQuery.event.trigger( e, null, elem );
-
-		if ( e.isDefaultPrevented() ) {
-			event.preventDefault();
-		}
-	}
-
-} );
-
-jQuery.fn.extend( {
-
-	trigger: function( type, data ) {
-		return this.each( function() {
-			jQuery.event.trigger( type, data, this );
-		} );
-	},
-	triggerHandler: function( type, data ) {
-		var elem = this[ 0 ];
-		if ( elem ) {
-			return jQuery.event.trigger( type, data, elem, true );
-		}
-	}
-} );
-
-
-jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
-	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
-	"change select submit keydown keypress keyup error contextmenu" ).split( " " ),
-	function( i, name ) {
-
-	// Handle event binding
-	jQuery.fn[ name ] = function( data, fn ) {
-		return arguments.length > 0 ?
-			this.on( name, null, data, fn ) :
-			this.trigger( name );
-	};
-} );
-
-jQuery.fn.extend( {
-	hover: function( fnOver, fnOut ) {
-		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-	}
-} );
-
-
-
-
-support.focusin = "onfocusin" in window;
-
-
-// Support: Firefox
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome, Safari
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
-if ( !support.focusin ) {
-	jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
-		// Attach a single capturing handler on the document while someone wants focusin/focusout
-		var handler = function( event ) {
-			jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
-		};
-
-		jQuery.event.special[ fix ] = {
-			setup: function() {
-				var doc = this.ownerDocument || this,
-					attaches = dataPriv.access( doc, fix );
-
-				if ( !attaches ) {
-					doc.addEventListener( orig, handler, true );
-				}
-				dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
-			},
-			teardown: function() {
-				var doc = this.ownerDocument || this,
-					attaches = dataPriv.access( doc, fix ) - 1;
-
-				if ( !attaches ) {
-					doc.removeEventListener( orig, handler, true );
-					dataPriv.remove( doc, fix );
-
-				} else {
-					dataPriv.access( doc, fix, attaches );
-				}
-			}
-		};
-	} );
-}
-var location = window.location;
-
-var nonce = jQuery.now();
-
-var rquery = ( /\?/ );
-
-
-
-// Support: Android 2.3
-// Workaround failure to string-cast null input
-jQuery.parseJSON = function( data ) {
-	return JSON.parse( data + "" );
-};
-
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
-	var xml;
-	if ( !data || typeof data !== "string" ) {
-		return null;
-	}
-
-	// Support: IE9
-	try {
-		xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
-	} catch ( e ) {
-		xml = undefined;
-	}
-
-	if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
-		jQuery.error( "Invalid XML: " + data );
-	}
-	return xml;
-};
-
-
-var
-	rhash = /#.*$/,
-	rts = /([?&])_=[^&]*/,
-	rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
-
-	// #7653, #8125, #8152: local protocol detection
-	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
-	rnoContent = /^(?:GET|HEAD)$/,
-	rprotocol = /^\/\//,
-
-	/* Prefilters
-	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
-	 * 2) These are called:
-	 *    - BEFORE asking for a transport
-	 *    - AFTER param serialization (s.data is a string if s.processData is true)
-	 * 3) key is the dataType
-	 * 4) the catchall symbol "*" can be used
-	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
-	 */
-	prefilters = {},
-
-	/* Transports bindings
-	 * 1) key is the dataType
-	 * 2) the catchall symbol "*" can be used
-	 * 3) selection will start with transport dataType and THEN go to "*" if needed
-	 */
-	transports = {},
-
-	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
-	allTypes = "*/".concat( "*" ),
-
-	// Anchor tag for parsing the document origin
-	originAnchor = document.createElement( "a" );
-	originAnchor.href = location.href;
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
-	// dataTypeExpression is optional and defaults to "*"
-	return function( dataTypeExpression, func ) {
-
-		if ( typeof dataTypeExpression !== "string" ) {
-			func = dataTypeExpression;
-			dataTypeExpression = "*";
-		}
-
-		var dataType,
-			i = 0,
-			dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
-
-		if ( jQuery.isFunction( func ) ) {
-
-			// For each dataType in the dataTypeExpression
-			while ( ( dataType = dataTypes[ i++ ] ) ) {
-
-				// Prepend if requested
-				if ( dataType[ 0 ] === "+" ) {
-					dataType = dataType.slice( 1 ) || "*";
-					( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
-				// Otherwise append
-				} else {
-					( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
-				}
-			}
-		}
-	};
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
-	var inspected = {},
-		seekingTransport = ( structure === transports );
-
-	function inspect( dataType ) {
-		var selected;
-		inspected[ dataType ] = true;
-		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
-			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
-			if ( typeof dataTypeOrTransport === "string" &&
-				!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
-				options.dataTypes.unshift( dataTypeOrTransport );
-				inspect( dataTypeOrTransport );
-				return false;
-			} else if ( seekingTransport ) {
-				return !( selected = dataTypeOrTransport );
-			}
-		} );
-		return selected;
-	}
-
-	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
-	var key, deep,
-		flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
-	for ( key in src ) {
-		if ( src[ key ] !== undefined ) {
-			( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
-		}
-	}
-	if ( deep ) {
-		jQuery.extend( true, target, deep );
-	}
-
-	return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
-	var ct, type, finalDataType, firstDataType,
-		contents = s.contents,
-		dataTypes = s.dataTypes;
-
-	// Remove auto dataType and get content-type in the process
-	while ( dataTypes[ 0 ] === "*" ) {
-		dataTypes.shift();
-		if ( ct === undefined ) {
-			ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
-		}
-	}
-
-	// Check if we're dealing with a known content-type
-	if ( ct ) {
-		for ( type in contents ) {
-			if ( contents[ type ] && contents[ type ].test( ct ) ) {
-				dataTypes.unshift( type );
-				break;
-			}
-		}
-	}
-
-	// Check to see if we have a response for the expected dataType
-	if ( dataTypes[ 0 ] in responses ) {
-		finalDataType = dataTypes[ 0 ];
-	} else {
-
-		// Try convertible dataTypes
-		for ( type in responses ) {
-			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
-				finalDataType = type;
-				break;
-			}
-			if ( !firstDataType ) {
-				firstDataType = type;
-			}
-		}
-
-		// Or just use first one
-		finalDataType = finalDataType || firstDataType;
-	}
-
-	// If we found a dataType
-	// We add the dataType to the list if needed
-	// and return the corresponding response
-	if ( finalDataType ) {
-		if ( finalDataType !== dataTypes[ 0 ] ) {
-			dataTypes.unshift( finalDataType );
-		}
-		return responses[ finalDataType ];
-	}
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
-	var conv2, current, conv, tmp, prev,
-		converters = {},
-
-		// Work with a copy of dataTypes in case we need to modify it for conversion
-		dataTypes = s.dataTypes.slice();
-
-	// Create converters map with lowercased keys
-	if ( dataTypes[ 1 ] ) {
-		for ( conv in s.converters ) {
-			converters[ conv.toLowerCase() ] = s.converters[ conv ];
-		}
-	}
-
-	current = dataTypes.shift();
-
-	// Convert to each sequential dataType
-	while ( current ) {
-
-		if ( s.responseFields[ current ] ) {
-			jqXHR[ s.responseFields[ current ] ] = response;
-		}
-
-		// Apply the dataFilter if provided
-		if ( !prev && isSuccess && s.dataFilter ) {
-			response = s.dataFilter( response, s.dataType );
-		}
-
-		prev = current;
-		current = dataTypes.shift();
-
-		if ( current ) {
-
-		// There's only work to do if current dataType is non-auto
-			if ( current === "*" ) {
-
-				current = prev;
-
-			// Convert response if prev dataType is non-auto and differs from current
-			} else if ( prev !== "*" && prev !== current ) {
-
-				// Seek a direct converter
-				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
-				// If none found, seek a pair
-				if ( !conv ) {
-					for ( conv2 in converters ) {
-
-						// If conv2 outputs current
-						tmp = conv2.split( " " );
-						if ( tmp[ 1 ] === current ) {
-
-							// If prev can be converted to accepted input
-							conv = converters[ prev + " " + tmp[ 0 ] ] ||
-								converters[ "* " + tmp[ 0 ] ];
-							if ( conv ) {
-
-								// Condense equivalence converters
-								if ( conv === true ) {
-									conv = converters[ conv2 ];
-
-								// Otherwise, insert the intermediate dataType
-								} else if ( converters[ conv2 ] !== true ) {
-									current = tmp[ 0 ];
-									dataTypes.unshift( tmp[ 1 ] );
-								}
-								break;
-							}
-						}
-					}
-				}
-
-				// Apply converter (if not an equivalence)
-				if ( conv !== true ) {
-
-					// Unless errors are allowed to bubble, catch and return them
-					if ( conv && s.throws ) {
-						response = conv( response );
-					} else {
-						try {
-							response = conv( response );
-						} catch ( e ) {
-							return {
-								state: "parsererror",
-								error: conv ? e : "No conversion from " + prev + " to " + current
-							};
-						}
-					}
-				}
-			}
-		}
-	}
-
-	return { state: "success", data: response };
-}
-
-jQuery.extend( {
-
-	// Counter for holding the number of active queries
-	active: 0,
-
-	// Last-Modified header cache for next request
-	lastModified: {},
-	etag: {},
-
-	ajaxSettings: {
-		url: location.href,
-		type: "GET",
-		isLocal: rlocalProtocol.test( location.protocol ),
-		global: true,
-		processData: true,
-		async: true,
-		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
-		/*
-		timeout: 0,
-		data: null,
-		dataType: null,
-		username: null,
-		password: null,
-		cache: null,
-		throws: false,
-		traditional: false,
-		headers: {},
-		*/
-
-		accepts: {
-			"*": allTypes,
-			text: "text/plain",
-			html: "text/html",
-			xml: "application/xml, text/xml",
-			json: "application/json, text/javascript"
-		},
-
-		contents: {
-			xml: /\bxml\b/,
-			html: /\bhtml/,
-			json: /\bjson\b/
-		},
-
-		responseFields: {
-			xml: "responseXML",
-			text: "responseText",
-			json: "responseJSON"
-		},
-
-		// Data converters
-		// Keys separate source (or catchall "*") and destination types with a single space
-		converters: {
-
-			// Convert anything to text
-			"* text": String,
-
-			// Text to html (true = no transformation)
-			"text html": true,
-
-			// Evaluate text as a json expression
-			"text json": jQuery.parseJSON,
-
-			// Parse text as xml
-			"text xml": jQuery.parseXML
-		},
-
-		// For options that shouldn't be deep extended:
-		// you can add your own custom options here if
-		// and when you create one that shouldn't be
-		// deep extended (see ajaxExtend)
-		flatOptions: {
-			url: true,
-			context: true
-		}
-	},
-
-	// Creates a full fledged settings object into target
-	// with both ajaxSettings and settings fields.
-	// If target is omitted, writes into ajaxSettings.
-	ajaxSetup: function( target, settings ) {
-		return settings ?
-
-			// Building a settings object
-			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
-			// Extending ajaxSettings
-			ajaxExtend( jQuery.ajaxSettings, target );
-	},
-
-	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
-	ajaxTransport: addToPrefiltersOrTransports( transports ),
-
-	// Main method
-	ajax: function( url, options ) {
-
-		// If url is an object, simulate pre-1.5 signature
-		if ( typeof url === "object" ) {
-			options = url;
-			url = undefined;
-		}
-
-		// Force options to be an object
-		options = options || {};
-
-		var transport,
-
-			// URL without anti-cache param
-			cacheURL,
-
-			// Response headers
-			responseHeadersString,
-			responseHeaders,
-
-			// timeout handle
-			timeoutTimer,
-
-			// Url cleanup var
-			urlAnchor,
-
-			// To know if global events are to be dispatched
-			fireGlobals,
-
-			// Loop variable
-			i,
-
-			// Create the final options object
-			s = jQuery.ajaxSetup( {}, options ),
-
-			// Callbacks context
-			callbackContext = s.context || s,
-
-			// Context for global events is callbackContext if it is a DOM node or jQuery collection
-			globalEventContext = s.context &&
-				( callbackContext.nodeType || callbackContext.jquery ) ?
-					jQuery( callbackContext ) :
-					jQuery.event,
-
-			// Deferreds
-			deferred = jQuery.Deferred(),
-			completeDeferred = jQuery.Callbacks( "once memory" ),
-
-			// Status-dependent callbacks
-			statusCode = s.statusCode || {},
-
-			// Headers (they are sent all at once)
-			requestHeaders = {},
-			requestHeadersNames = {},
-
-			// The jqXHR state
-			state = 0,
-
-			// Default abort message
-			strAbort = "canceled",
-
-			// Fake xhr
-			jqXHR = {
-				readyState: 0,
-
-				// Builds headers hashtable if needed
-				getResponseHeader: function( key ) {
-					var match;
-					if ( state === 2 ) {
-						if ( !responseHeaders ) {
-							responseHeaders = {};
-							while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
-								responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
-							}
-						}
-						match = responseHeaders[ key.toLowerCase() ];
-					}
-					return match == null ? null : match;
-				},
-
-				// Raw string
-				getAllResponseHeaders: function() {
-					return state === 2 ? responseHeadersString : null;
-				},
-
-				// Caches the header
-				setRequestHeader: function( name, value ) {
-					var lname = name.toLowerCase();
-					if ( !state ) {
-						name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
-						requestHeaders[ name ] = value;
-					}
-					return this;
-				},
-
-				// Overrides response content-type header
-				overrideMimeType: function( type ) {
-					if ( !state ) {
-						s.mimeType = type;
-					}
-					return this;
-				},
-
-				// Status-dependent callbacks
-				statusCode: function( map ) {
-					var code;
-					if ( map ) {
-						if ( state < 2 ) {
-							for ( code in map ) {
-
-								// Lazy-add the new callback in a way that preserves old ones
-								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
-							}
-						} else {
-
-							// Execute the appropriate callbacks
-							jqXHR.always( map[ jqXHR.status ] );
-						}
-					}
-					return this;
-				},
-
-				// Cancel the request
-				abort: function( statusText ) {
-					var finalText = statusText || strAbort;
-					if ( transport ) {
-						transport.abort( finalText );
-					}
-					done( 0, finalText );
-					return this;
-				}
-			};
-
-		// Attach deferreds
-		deferred.promise( jqXHR ).complete = completeDeferred.add;
-		jqXHR.success = jqXHR.done;
-		jqXHR.error = jqXHR.fail;
-
-		// Remove hash character (#7531: and string promotion)
-		// Add protocol if not provided (prefilters might expect it)
-		// Handle falsy url in the settings object (#10093: consistency with old signature)
-		// We also use the url parameter if available
-		s.url = ( ( url || s.url || location.href ) + "" ).replace( rhash, "" )
-			.replace( rprotocol, location.protocol + "//" );
-
-		// Alias method option to type as per ticket #12004
-		s.type = options.method || options.type || s.method || s.type;
-
-		// Extract dataTypes list
-		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
-
-		// A cross-domain request is in order when the origin doesn't match the current origin.
-		if ( s.crossDomain == null ) {
-			urlAnchor = document.createElement( "a" );
-
-			// Support: IE8-11+
-			// IE throws exception if url is malformed, e.g. http://example.com:80x/
-			try {
-				urlAnchor.href = s.url;
-
-				// Support: IE8-11+
-				// Anchor's host property isn't correctly set when s.url is relative
-				urlAnchor.href = urlAnchor.href;
-				s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
-					urlAnchor.protocol + "//" + urlAnchor.host;
-			} catch ( e ) {
-
-				// If there is an error parsing the URL, assume it is crossDomain,
-				// it can be rejected by the transport if it is invalid
-				s.crossDomain = true;
-			}
-		}
-
-		// Convert data if not already a string
-		if ( s.data && s.processData && typeof s.data !== "string" ) {
-			s.data = jQuery.param( s.data, s.traditional );
-		}
-
-		// Apply prefilters
-		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
-		// If request was aborted inside a prefilter, stop there
-		if ( state === 2 ) {
-			return jqXHR;
-		}
-
-		// We can fire global events as of now if asked to
-		// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
-		fireGlobals = jQuery.event && s.global;
-
-		// Watch for a new set of requests
-		if ( fireGlobals && jQuery.active++ === 0 ) {
-			jQuery.event.trigger( "ajaxStart" );
-		}
-
-		// Uppercase the type
-		s.type = s.type.toUpperCase();
-
-		// Determine if request has content
-		s.hasContent = !rnoContent.test( s.type );
-
-		// Save the URL in case we're toying with the If-Modified-Since
-		// and/or If-None-Match header later on
-		cacheURL = s.url;
-
-		// More options handling for requests with no content
-		if ( !s.hasContent ) {
-
-			// If data is available, append data to url
-			if ( s.data ) {
-				cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
-
-				// #9682: remove data so that it's not used in an eventual retry
-				delete s.data;
-			}
-
-			// Add anti-cache in url if needed
-			if ( s.cache === false ) {
-				s.url = rts.test( cacheURL ) ?
-
-					// If there is already a '_' parameter, set its value
-					cacheURL.replace( rts, "$1_=" + nonce++ ) :
-
-					// Otherwise add one to the end
-					cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
-			}
-		}
-
-		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-		if ( s.ifModified ) {
-			if ( jQuery.lastModified[ cacheURL ] ) {
-				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
-			}
-			if ( jQuery.etag[ cacheURL ] ) {
-				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
-			}
-		}
-
-		// Set the correct header, if data is being sent
-		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
-			jqXHR.setRequestHeader( "Content-Type", s.contentType );
-		}
-
-		// Set the Accepts header for the server, depending on the dataType
-		jqXHR.setRequestHeader(
-			"Accept",
-			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
-				s.accepts[ s.dataTypes[ 0 ] ] +
-					( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
-				s.accepts[ "*" ]
-		);
-
-		// Check for headers option
-		for ( i in s.headers ) {
-			jqXHR.setRequestHeader( i, s.headers[ i ] );
-		}
-
-		// Allow custom headers/mimetypes and early abort
-		if ( s.beforeSend &&
-			( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-
-			// Abort if not done already and return
-			return jqXHR.abort();
-		}
-
-		// Aborting is no longer a cancellation
-		strAbort = "abort";
-
-		// Install callbacks on deferreds
-		for ( i in { success: 1, error: 1, complete: 1 } ) {
-			jqXHR[ i ]( s[ i ] );
-		}
-
-		// Get transport
-		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
-		// If no transport, we auto-abort
-		if ( !transport ) {
-			done( -1, "No Transport" );
-		} else {
-			jqXHR.readyState = 1;
-
-			// Send global event
-			if ( fireGlobals ) {
-				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
-			}
-
-			// If request was aborted inside ajaxSend, stop there
-			if ( state === 2 ) {
-				return jqXHR;
-			}
-
-			// Timeout
-			if ( s.async && s.timeout > 0 ) {
-				timeoutTimer = window.setTimeout( function() {
-					jqXHR.abort( "timeout" );
-				}, s.timeout );
-			}
-
-			try {
-				state = 1;
-				transport.send( requestHeaders, done );
-			} catch ( e ) {
-
-				// Propagate exception as error if not done
-				if ( state < 2 ) {
-					done( -1, e );
-
-				// Simply rethrow otherwise
-				} else {
-					throw e;
-				}
-			}
-		}
-
-		// Callback for when everything is done
-		function done( status, nativeStatusText, responses, headers ) {
-			var isSuccess, success, error, response, modified,
-				statusText = nativeStatusText;
-
-			// Called once
-			if ( state === 2 ) {
-				return;
-			}
-
-			// State is "done" now
-			state = 2;
-
-			// Clear timeout if it exists
-			if ( timeoutTimer ) {
-				window.clearTimeout( timeoutTimer );
-			}
-
-			// Dereference transport for early garbage collection
-			// (no matter how long the jqXHR object will be used)
-			transport = undefined;
-
-			// Cache response headers
-			responseHeadersString = headers || "";
-
-			// Set readyState
-			jqXHR.readyState = status > 0 ? 4 : 0;
-
-			// Determine if successful
-			isSuccess = status >= 200 && status < 300 || status === 304;
-
-			// Get response data
-			if ( responses ) {
-				response = ajaxHandleResponses( s, jqXHR, responses );
-			}
-
-			// Convert no matter what (that way responseXXX fields are always set)
-			response = ajaxConvert( s, response, jqXHR, isSuccess );
-
-			// If successful, handle type chaining
-			if ( isSuccess ) {
-
-				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-				if ( s.ifModified ) {
-					modified = jqXHR.getResponseHeader( "Last-Modified" );
-					if ( modified ) {
-						jQuery.lastModified[ cacheURL ] = modified;
-					}
-					modified = jqXHR.getResponseHeader( "etag" );
-					if ( modified ) {
-						jQuery.etag[ cacheURL ] = modified;
-					}
-				}
-
-				// if no content
-				if ( status === 204 || s.type === "HEAD" ) {
-					statusText = "nocontent";
-
-				// if not modified
-				} else if ( status === 304 ) {
-					statusText = "notmodified";
-
-				// If we have data, let's convert it
-				} else {
-					statusText = response.state;
-					success = response.data;
-					error = response.error;
-					isSuccess = !error;
-				}
-			} else {
-
-				// Extract error from statusText and normalize for non-aborts
-				error = statusText;
-				if ( status || !statusText ) {
-					statusText = "error";
-					if ( status < 0 ) {
-						status = 0;
-					}
-				}
-			}
-
-			// Set data for the fake xhr object
-			jqXHR.status = status;
-			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
-			// Success/Error
-			if ( isSuccess ) {
-				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
-			} else {
-				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
-			}
-
-			// Status-dependent callbacks
-			jqXHR.statusCode( statusCode );
-			statusCode = undefined;
-
-			if ( fireGlobals ) {
-				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
-					[ jqXHR, s, isSuccess ? success : error ] );
-			}
-
-			// Complete
-			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
-			if ( fireGlobals ) {
-				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
-				// Handle the global AJAX counter
-				if ( !( --jQuery.active ) ) {
-					jQuery.event.trigger( "ajaxStop" );
-				}
-			}
-		}
-
-		return jqXHR;
-	},
-
-	getJSON: function( url, data, callback ) {
-		return jQuery.get( url, data, callback, "json" );
-	},
-
-	getScript: function( url, callback ) {
-		return jQuery.get( url, undefined, callback, "script" );
-	}
-} );
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
-	jQuery[ method ] = function( url, data, callback, type ) {
-
-		// Shift arguments if data argument was omitted
-		if ( jQuery.isFunction( data ) ) {
-			type = type || callback;
-			callback = data;
-			data = undefined;
-		}
-
-		// The url can be an options object (which then must have .url)
-		return jQuery.ajax( jQuery.extend( {
-			url: url,
-			type: method,
-			dataType: type,
-			data: data,
-			success: callback
-		}, jQuery.isPlainObject( url ) && url ) );
-	};
-} );
-
-
-jQuery._evalUrl = function( url ) {
-	return jQuery.ajax( {
-		url: url,
-
-		// Make this explicit, since user can override this through ajaxSetup (#11264)
-		type: "GET",
-		dataType: "script",
-		async: false,
-		global: false,
-		"throws": true
-	} );
-};
-
-
-jQuery.fn.extend( {
-	wrapAll: function( html ) {
-		var wrap;
-
-		if ( jQuery.isFunction( html ) ) {
-			return this.each( function( i ) {
-				jQuery( this ).wrapAll( html.call( this, i ) );
-			} );
-		}
-
-		if ( this[ 0 ] ) {
-
-			// The elements to wrap the target around
-			wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
-			if ( this[ 0 ].parentNode ) {
-				wrap.insertBefore( this[ 0 ] );
-			}
-
-			wrap.map( function() {
-				var elem = this;
-
-				while ( elem.firstElementChild ) {
-					elem = elem.firstElementChild;
-				}
-
-				return elem;
-			} ).append( this );
-		}
-
-		return this;
-	},
-
-	wrapInner: function( html ) {
-		if ( jQuery.isFunction( html ) ) {
-			return this.each( function( i ) {
-				jQuery( this ).wrapInner( html.call( this, i ) );
-			} );
-		}
-
-		return this.each( function() {
-			var self = jQuery( this ),
-				contents = self.contents();
-
-			if ( contents.length ) {
-				contents.wrapAll( html );
-
-			} else {
-				self.append( html );
-			}
-		} );
-	},
-
-	wrap: function( html ) {
-		var isFunction = jQuery.isFunction( html );
-
-		return this.each( function( i ) {
-			jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
-		} );
-	},
-
-	unwrap: function() {
-		return this.parent().each( function() {
-			if ( !jQuery.nodeName( this, "body" ) ) {
-				jQuery( this ).replaceWith( this.childNodes );
-			}
-		} ).end();
-	}
-} );
-
-
-jQuery.expr.filters.hidden = function( elem ) {
-	return !jQuery.expr.filters.visible( elem );
-};
-jQuery.expr.filters.visible = function( elem ) {
-
-	// Support: Opera <= 12.12
-	// Opera reports offsetWidths and offsetHeights less than zero on some elements
-	// Use OR instead of AND as the element is not visible if either is true
-	// See tickets #10406 and #13132
-	return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
-};
-
-
-
-
-var r20 = /%20/g,
-	rbracket = /\[\]$/,
-	rCRLF = /\r?\n/g,
-	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
-	rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
-	var name;
-
-	if ( jQuery.isArray( obj ) ) {
-
-		// Serialize array item.
-		jQuery.each( obj, function( i, v ) {
-			if ( traditional || rbracket.test( prefix ) ) {
-
-				// Treat each array item as a scalar.
-				add( prefix, v );
-
-			} else {
-
-				// Item is non-scalar (array or object), encode its numeric index.
-				buildParams(
-					prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
-					v,
-					traditional,
-					add
-				);
-			}
-		} );
-
-	} else if ( !traditional && jQuery.type( obj ) === "object" ) {
-
-		// Serialize object item.
-		for ( name in obj ) {
-			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
-		}
-
-	} else {
-
-		// Serialize scalar item.
-		add( prefix, obj );
-	}
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
-	var prefix,
-		s = [],
-		add = function( key, value ) {
-
-			// If value is a function, invoke it and return its value
-			value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
-			s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
-		};
-
-	// Set traditional to true for jQuery <= 1.3.2 behavior.
-	if ( traditional === undefined ) {
-		traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
-	}
-
-	// If an array was passed in, assume that it is an array of form elements.
-	if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
-		// Serialize the form elements
-		jQuery.each( a, function() {
-			add( this.name, this.value );
-		} );
-
-	} else {
-
-		// If traditional, encode the "old" way (the way 1.3.2 or older
-		// did it), otherwise encode params recursively.
-		for ( prefix in a ) {
-			buildParams( prefix, a[ prefix ], traditional, add );
-		}
-	}
-
-	// Return the resulting serialization
-	return s.join( "&" ).replace( r20, "+" );
-};
-
-jQuery.fn.extend( {
-	serialize: function() {
-		return jQuery.param( this.serializeArray() );
-	},
-	serializeArray: function() {
-		return this.map( function() {
-
-			// Can add propHook for "elements" to filter or add form elements
-			var elements = jQuery.prop( this, "elements" );
-			return elements ? jQuery.makeArray( elements ) : this;
-		} )
-		.filter( function() {
-			var type = this.type;
-
-			// Use .is( ":disabled" ) so that fieldset[disabled] works
-			return this.name && !jQuery( this ).is( ":disabled" ) &&
-				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
-				( this.checked || !rcheckableType.test( type ) );
-		} )
-		.map( function( i, elem ) {
-			var val = jQuery( this ).val();
-
-			return val == null ?
-				null :
-				jQuery.isArray( val ) ?
-					jQuery.map( val, function( val ) {
-						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-					} ) :
-					{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-		} ).get();
-	}
-} );
-
-
-jQuery.ajaxSettings.xhr = function() {
-	try {
-		return new window.XMLHttpRequest();
-	} catch ( e ) {}
-};
-
-var xhrSuccessStatus = {
-
-		// File protocol always yields status code 0, assume 200
-		0: 200,
-
-		// Support: IE9
-		// #1450: sometimes IE returns 1223 when it should be 204
-		1223: 204
-	},
-	xhrSupported = jQuery.ajaxSettings.xhr();
-
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-support.ajax = xhrSupported = !!xhrSupported;
-
-jQuery.ajaxTransport( function( options ) {
-	var callback, errorCallback;
-
-	// Cross domain only allowed if supported through XMLHttpRequest
-	if ( support.cors || xhrSupported && !options.crossDomain ) {
-		return {
-			send: function( headers, complete ) {
-				var i,
-					xhr = options.xhr();
-
-				xhr.open(
-					options.type,
-					options.url,
-					options.async,
-					options.username,
-					options.password
-				);
-
-				// Apply custom fields if provided
-				if ( options.xhrFields ) {
-					for ( i in options.xhrFields ) {
-						xhr[ i ] = options.xhrFields[ i ];
-					}
-				}
-
-				// Override mime type if needed
-				if ( options.mimeType && xhr.overrideMimeType ) {
-					xhr.overrideMimeType( options.mimeType );
-				}
-
-				// X-Requested-With header
-				// For cross-domain requests, seeing as conditions for a preflight are
-				// akin to a jigsaw puzzle, we simply never set it to be sure.
-				// (it can always be set on a per-request basis or even using ajaxSetup)
-				// For same-domain requests, won't change header if already provided.
-				if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
-					headers[ "X-Requested-With" ] = "XMLHttpRequest";
-				}
-
-				// Set headers
-				for ( i in headers ) {
-					xhr.setRequestHeader( i, headers[ i ] );
-				}
-
-				// Callback
-				callback = function( type ) {
-					return function() {
-						if ( callback ) {
-							callback = errorCallback = xhr.onload =
-								xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
-
-							if ( type === "abort" ) {
-								xhr.abort();
-							} else if ( type === "error" ) {
-
-								// Support: IE9
-								// On a manual native abort, IE9 throws
-								// errors on any property access that is not readyState
-								if ( typeof xhr.status !== "number" ) {
-									complete( 0, "error" );
-								} else {
-									complete(
-
-										// File: protocol always yields status 0; see #8605, #14207
-										xhr.status,
-										xhr.statusText
-									);
-								}
-							} else {
-								complete(
-									xhrSuccessStatus[ xhr.status ] || xhr.status,
-									xhr.statusText,
-
-									// Support: IE9 only
-									// IE9 has no XHR2 but throws on binary (trac-11426)
-									// For XHR2 non-text, let the caller handle it (gh-2498)
-									( xhr.responseType || "text" ) !== "text"  ||
-									typeof xhr.responseText !== "string" ?
-										{ binary: xhr.response } :
-										{ text: xhr.responseText },
-									xhr.getAllResponseHeaders()
-								);
-							}
-						}
-					};
-				};
-
-				// Listen to events
-				xhr.onload = callback();
-				errorCallback = xhr.onerror = callback( "error" );
-
-				// Support: IE9
-				// Use onreadystatechange to replace onabort
-				// to handle uncaught aborts
-				if ( xhr.onabort !== undefined ) {
-					xhr.onabort = errorCallback;
-				} else {
-					xhr.onreadystatechange = function() {
-
-						// Check readyState before timeout as it changes
-						if ( xhr.readyState === 4 ) {
-
-							// Allow onerror to be called first,
-							// but that will not handle a native abort
-							// Also, save errorCallback to a variable
-							// as xhr.onerror cannot be accessed
-							window.setTimeout( function() {
-								if ( callback ) {
-									errorCallback();
-								}
-							} );
-						}
-					};
-				}
-
-				// Create the abort callback
-				callback = callback( "abort" );
-
-				try {
-
-					// Do send the request (this may raise an exception)
-					xhr.send( options.hasContent && options.data || null );
-				} catch ( e ) {
-
-					// #14683: Only rethrow if this hasn't been notified as an error yet
-					if ( callback ) {
-						throw e;
-					}
-				}
-			},
-
-			abort: function() {
-				if ( callback ) {
-					callback();
-				}
-			}
-		};
-	}
-} );
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup( {
-	accepts: {
-		script: "text/javascript, application/javascript, " +
-			"application/ecmascript, application/x-ecmascript"
-	},
-	contents: {
-		script: /\b(?:java|ecma)script\b/
-	},
-	converters: {
-		"text script": function( text ) {
-			jQuery.globalEval( text );
-			return text;
-		}
-	}
-} );
-
-// Handle cache's special case and crossDomain
-jQuery.ajaxPrefilter( "script", function( s ) {
-	if ( s.cache === undefined ) {
-		s.cache = false;
-	}
-	if ( s.crossDomain ) {
-		s.type = "GET";
-	}
-} );
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
-
-	// This transport only deals with cross domain requests
-	if ( s.crossDomain ) {
-		var script, callback;
-		return {
-			send: function( _, complete ) {
-				script = jQuery( "<script>" ).prop( {
-					charset: s.scriptCharset,
-					src: s.url
-				} ).on(
-					"load error",
-					callback = function( evt ) {
-						script.remove();
-						callback = null;
-						if ( evt ) {
-							complete( evt.type === "error" ? 404 : 200, evt.type );
-						}
-					}
-				);
-
-				// Use native DOM manipulation to avoid our domManip AJAX trickery
-				document.head.appendChild( script[ 0 ] );
-			},
-			abort: function() {
-				if ( callback ) {
-					callback();
-				}
-			}
-		};
-	}
-} );
-
-
-
-
-var oldCallbacks = [],
-	rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup( {
-	jsonp: "callback",
-	jsonpCallback: function() {
-		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
-		this[ callback ] = true;
-		return callback;
-	}
-} );
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
-	var callbackName, overwritten, responseContainer,
-		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
-			"url" :
-			typeof s.data === "string" &&
-				( s.contentType || "" )
-					.indexOf( "application/x-www-form-urlencoded" ) === 0 &&
-				rjsonp.test( s.data ) && "data"
-		);
-
-	// Handle iff the expected data type is "jsonp" or we have a parameter to set
-	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
-		// Get callback name, remembering preexisting value associated with it
-		callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
-			s.jsonpCallback() :
-			s.jsonpCallback;
-
-		// Insert callback into url or form data
-		if ( jsonProp ) {
-			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
-		} else if ( s.jsonp !== false ) {
-			s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
-		}
-
-		// Use data converter to retrieve json after script execution
-		s.converters[ "script json" ] = function() {
-			if ( !responseContainer ) {
-				jQuery.error( callbackName + " was not called" );
-			}
-			return responseContainer[ 0 ];
-		};
-
-		// Force json dataType
-		s.dataTypes[ 0 ] = "json";
-
-		// Install callback
-		overwritten = window[ callbackName ];
-		window[ callbackName ] = function() {
-			responseContainer = arguments;
-		};
-
-		// Clean-up function (fires after converters)
-		jqXHR.always( function() {
-
-			// If previous value didn't exist - remove it
-			if ( overwritten === undefined ) {
-				jQuery( window ).removeProp( callbackName );
-
-			// Otherwise restore preexisting value
-			} else {
-				window[ callbackName ] = overwritten;
-			}
-
-			// Save back as free
-			if ( s[ callbackName ] ) {
-
-				// Make sure that re-using the options doesn't screw things around
-				s.jsonpCallback = originalSettings.jsonpCallback;
-
-				// Save the callback name for future use
-				oldCallbacks.push( callbackName );
-			}
-
-			// Call if it was a function and we have a response
-			if ( responseContainer && jQuery.isFunction( overwritten ) ) {
-				overwritten( responseContainer[ 0 ] );
-			}
-
-			responseContainer = overwritten = undefined;
-		} );
-
-		// Delegate to script
-		return "script";
-	}
-} );
-
-
-
-
-// Support: Safari 8+
-// In Safari 8 documents created via document.implementation.createHTMLDocument
-// collapse sibling forms: the second one becomes a child of the first one.
-// Because of that, this security measure has to be disabled in Safari 8.
-// https://bugs.webkit.org/show_bug.cgi?id=137337
-support.createHTMLDocument = ( function() {
-	var body = document.implementation.createHTMLDocument( "" ).body;
-	body.innerHTML = "<form></form><form></form>";
-	return body.childNodes.length === 2;
-} )();
-
-
-// Argument "data" should be string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
-	if ( !data || typeof data !== "string" ) {
-		return null;
-	}
-	if ( typeof context === "boolean" ) {
-		keepScripts = context;
-		context = false;
-	}
-
-	// Stop scripts or inline event handlers from being executed immediately
-	// by using document.implementation
-	context = context || ( support.createHTMLDocument ?
-		document.implementation.createHTMLDocument( "" ) :
-		document );
-
-	var parsed = rsingleTag.exec( data ),
-		scripts = !keepScripts && [];
-
-	// Single tag
-	if ( parsed ) {
-		return [ context.createElement( parsed[ 1 ] ) ];
-	}
-
-	parsed = buildFragment( [ data ], context, scripts );
-
-	if ( scripts && scripts.length ) {
-		jQuery( scripts ).remove();
-	}
-
-	return jQuery.merge( [], parsed.childNodes );
-};
-
-
-// Keep a copy of the old load method
-var _load = jQuery.fn.load;
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
-	if ( typeof url !== "string" && _load ) {
-		return _load.apply( this, arguments );
-	}
-
-	var selector, type, response,
-		self = this,
-		off = url.indexOf( " " );
-
-	if ( off > -1 ) {
-		selector = jQuery.trim( url.slice( off ) );
-		url = url.slice( 0, off );
-	}
-
-	// If it's a function
-	if ( jQuery.isFunction( params ) ) {
-
-		// We assume that it's the callback
-		callback = params;
-		params = undefined;
-
-	// Otherwise, build a param string
-	} else if ( params && typeof params === "object" ) {
-		type = "POST";
-	}
-
-	// If we have elements to modify, make the request
-	if ( self.length > 0 ) {
-		jQuery.ajax( {
-			url: url,
-
-			// If "type" variable is undefined, then "GET" method will be used.
-			// Make value of this field explicit since
-			// user can override it through ajaxSetup method
-			type: type || "GET",
-			dataType: "html",
-			data: params
-		} ).done( function( responseText ) {
-
-			// Save response for use in complete callback
-			response = arguments;
-
-			self.html( selector ?
-
-				// If a selector was specified, locate the right elements in a dummy div
-				// Exclude scripts to avoid IE 'Permission Denied' errors
-				jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
-				// Otherwise use the full result
-				responseText );
-
-		// If the request succeeds, this function gets "data", "status", "jqXHR"
-		// but they are ignored because response was set above.
-		// If it fails, this function gets "jqXHR", "status", "error"
-		} ).always( callback && function( jqXHR, status ) {
-			self.each( function() {
-				callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] );
-			} );
-		} );
-	}
-
-	return this;
-};
-
-
-
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [
-	"ajaxStart",
-	"ajaxStop",
-	"ajaxComplete",
-	"ajaxError",
-	"ajaxSuccess",
-	"ajaxSend"
-], function( i, type ) {
-	jQuery.fn[ type ] = function( fn ) {
-		return this.on( type, fn );
-	};
-} );
-
-
-
-
-jQuery.expr.filters.animated = function( elem ) {
-	return jQuery.grep( jQuery.timers, function( fn ) {
-		return elem === fn.elem;
-	} ).length;
-};
-
-
-
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
-	return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
-}
-
-jQuery.offset = {
-	setOffset: function( elem, options, i ) {
-		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
-			position = jQuery.css( elem, "position" ),
-			curElem = jQuery( elem ),
-			props = {};
-
-		// Set position first, in-case top/left are set even on static elem
-		if ( position === "static" ) {
-			elem.style.position = "relative";
-		}
-
-		curOffset = curElem.offset();
-		curCSSTop = jQuery.css( elem, "top" );
-		curCSSLeft = jQuery.css( elem, "left" );
-		calculatePosition = ( position === "absolute" || position === "fixed" ) &&
-			( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
-
-		// Need to be able to calculate position if either
-		// top or left is auto and position is either absolute or fixed
-		if ( calculatePosition ) {
-			curPosition = curElem.position();
-			curTop = curPosition.top;
-			curLeft = curPosition.left;
-
-		} else {
-			curTop = parseFloat( curCSSTop ) || 0;
-			curLeft = parseFloat( curCSSLeft ) || 0;
-		}
-
-		if ( jQuery.isFunction( options ) ) {
-
-			// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
-			options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
-		}
-
-		if ( options.top != null ) {
-			props.top = ( options.top - curOffset.top ) + curTop;
-		}
-		if ( options.left != null ) {
-			props.left = ( options.left - curOffset.left ) + curLeft;
-		}
-
-		if ( "using" in options ) {
-			options.using.call( elem, props );
-
-		} else {
-			curElem.css( props );
-		}
-	}
-};
-
-jQuery.fn.extend( {
-	offset: function( options ) {
-		if ( arguments.length ) {
-			return options === undefined ?
-				this :
-				this.each( function( i ) {
-					jQuery.offset.setOffset( this, options, i );
-				} );
-		}
-
-		var docElem, win,
-			elem = this[ 0 ],
-			box = { top: 0, left: 0 },
-			doc = elem && elem.ownerDocument;
-
-		if ( !doc ) {
-			return;
-		}
-
-		docElem = doc.documentElement;
-
-		// Make sure it's not a disconnected DOM node
-		if ( !jQuery.contains( docElem, elem ) ) {
-			return box;
-		}
-
-		box = elem.getBoundingClientRect();
-		win = getWindow( doc );
-		return {
-			top: box.top + win.pageYOffset - docElem.clientTop,
-			left: box.left + win.pageXOffset - docElem.clientLeft
-		};
-	},
-
-	position: function() {
-		if ( !this[ 0 ] ) {
-			return;
-		}
-
-		var offsetParent, offset,
-			elem = this[ 0 ],
-			parentOffset = { top: 0, left: 0 };
-
-		// Fixed elements are offset from window (parentOffset = {top:0, left: 0},
-		// because it is its only offset parent
-		if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
-			// Assume getBoundingClientRect is there when computed position is fixed
-			offset = elem.getBoundingClientRect();
-
-		} else {
-
-			// Get *real* offsetParent
-			offsetParent = this.offsetParent();
-
-			// Get correct offsets
-			offset = this.offset();
-			if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
-				parentOffset = offsetParent.offset();
-			}
-
-			// Add offsetParent borders
-			parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
-			parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
-		}
-
-		// Subtract parent offsets and element margins
-		return {
-			top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
-			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
-		};
-	},
-
-	// This method will return documentElement in the following cases:
-	// 1) For the element inside the iframe without offsetParent, this method will return
-	//    documentElement of the parent window
-	// 2) For the hidden or detached element
-	// 3) For body or html element, i.e. in case of the html node - it will return itself
-	//
-	// but those exceptions were never presented as a real life use-cases
-	// and might be considered as more preferable results.
-	//
-	// This logic, however, is not guaranteed and can change at any point in the future
-	offsetParent: function() {
-		return this.map( function() {
-			var offsetParent = this.offsetParent;
-
-			while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
-				offsetParent = offsetParent.offsetParent;
-			}
-
-			return offsetParent || documentElement;
-		} );
-	}
-} );
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
-	var top = "pageYOffset" === prop;
-
-	jQuery.fn[ method ] = function( val ) {
-		return access( this, function( elem, method, val ) {
-			var win = getWindow( elem );
-
-			if ( val === undefined ) {
-				return win ? win[ prop ] : elem[ method ];
-			}
-
-			if ( win ) {
-				win.scrollTo(
-					!top ? val : win.pageXOffset,
-					top ? val : win.pageYOffset
-				);
-
-			} else {
-				elem[ method ] = val;
-			}
-		}, method, val, arguments.length );
-	};
-} );
-
-// Support: Safari<7-8+, Chrome<37-44+
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// Blink bug: https://code.google.com/p/chromium/issues/detail?id=229280
-// getComputedStyle returns percent when specified for top/left/bottom/right;
-// rather than make the css module depend on the offset module, just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
-	jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
-		function( elem, computed ) {
-			if ( computed ) {
-				computed = curCSS( elem, prop );
-
-				// If curCSS returns percentage, fallback to offset
-				return rnumnonpx.test( computed ) ?
-					jQuery( elem ).position()[ prop ] + "px" :
-					computed;
-			}
-		}
-	);
-} );
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
-	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
-		function( defaultExtra, funcName ) {
-
-		// Margin is only for outerHeight, outerWidth
-		jQuery.fn[ funcName ] = function( margin, value ) {
-			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
-				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
-			return access( this, function( elem, type, value ) {
-				var doc;
-
-				if ( jQuery.isWindow( elem ) ) {
-
-					// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
-					// isn't a whole lot we can do. See pull request at this URL for discussion:
-					// https://github.com/jquery/jquery/pull/764
-					return elem.document.documentElement[ "client" + name ];
-				}
-
-				// Get document width or height
-				if ( elem.nodeType === 9 ) {
-					doc = elem.documentElement;
-
-					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
-					// whichever is greatest
-					return Math.max(
-						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
-						elem.body[ "offset" + name ], doc[ "offset" + name ],
-						doc[ "client" + name ]
-					);
-				}
-
-				return value === undefined ?
-
-					// Get width or height on the element, requesting but not forcing parseFloat
-					jQuery.css( elem, type, extra ) :
-
-					// Set width or height on the element
-					jQuery.style( elem, type, value, extra );
-			}, type, chainable ? margin : undefined, chainable, null );
-		};
-	} );
-} );
-
-
-jQuery.fn.extend( {
-
-	bind: function( types, data, fn ) {
-		return this.on( types, null, data, fn );
-	},
-	unbind: function( types, fn ) {
-		return this.off( types, null, fn );
-	},
-
-	delegate: function( selector, types, data, fn ) {
-		return this.on( types, selector, data, fn );
-	},
-	undelegate: function( selector, types, fn ) {
-
-		// ( namespace ) or ( selector, types [, fn] )
-		return arguments.length === 1 ?
-			this.off( selector, "**" ) :
-			this.off( types, selector || "**", fn );
-	},
-	size: function() {
-		return this.length;
-	}
-} );
-
-jQuery.fn.andSelf = jQuery.fn.addBack;
-
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
-	define( "jquery", [], function() {
-		return jQuery;
-	} );
-}
-
-
-
-var
-
-	// Map over jQuery in case of overwrite
-	_jQuery = window.jQuery,
-
-	// Map over the $ in case of overwrite
-	_$ = window.$;
-
-jQuery.noConflict = function( deep ) {
-	if ( window.$ === jQuery ) {
-		window.$ = _$;
-	}
-
-	if ( deep && window.jQuery === jQuery ) {
-		window.jQuery = _jQuery;
-	}
-
-	return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in AMD
-// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( !noGlobal ) {
-	window.jQuery = window.$ = jQuery;
-}
-
-return jQuery;
-}));

+ 0 - 8585
static/wangEditor/js/wangEditor.js

@@ -1,8585 +0,0 @@
-(function (factory) {
-    if (typeof window.define === 'function') {
-        if (window.define.amd) {
-            // AMD模式
-            window.define('wangEditor', ["jquery"], factory);
-        } else if (window.define.cmd) {
-            // CMD模式
-            window.define(function (require, exports, module) {
-                return factory;
-            });
-        } else {
-            // 全局模式
-            factory(window.jQuery);
-        }
-    } else if (typeof module === "object" && typeof module.exports === "object") {
-        // commonjs
-
-        // 引用 css —— webapck
-        require('../css/wangEditor.css');
-        module.exports = factory(
-            // 传入 jquery ,支持使用 npm 方式或者自己定义jquery的路径
-            require('jquery')
-        );
-    } else {
-        // 全局模式
-        factory(window.jQuery);
-    }
-})(function($){
-    
-    // 验证是否引用jquery
-    if (!$ || !$.fn || !$.fn.jquery) {
-        alert('在引用wangEditor.js之前,先引用jQuery,否则无法使用 wangEditor');
-        return;
-    }
-
-    // 定义扩展函数
-    var _e = function (fn) {
-        var E = window.wangEditor;
-        if (E) {
-            // 执行传入的函数
-            fn(E, $);
-        }
-    };
-// 定义构造函数
-(function (window, $) {
-    if (window.wangEditor) {
-        // 重复引用
-        alert('一个页面不能重复引用 wangEditor.js 或 wangEditor.min.js !!!');
-        return;
-    }
-
-    // 编辑器(整体)构造函数
-    var E = function (elem) {
-        // 支持 id 和 element 两种形式
-        if (typeof elem === 'string') {
-            elem = '#' + elem;
-        }
-
-        // ---------------获取基本节点------------------
-        var $elem = $(elem);
-        if ($elem.length !== 1) {
-            return;
-        }
-        var nodeName = $elem[0].nodeName;
-        if (nodeName !== 'TEXTAREA' && nodeName !== 'DIV') {
-            // 只能是 textarea 和 div ,其他类型的元素不行
-            return;   
-        }
-        this.valueNodeName = nodeName.toLowerCase();
-        this.$valueContainer = $elem;
-
-        // 记录 elem 的 prev 和 parent(最后渲染 editor 要用到)
-        this.$prev = $elem.prev();
-        this.$parent = $elem.parent();
-
-        // ------------------初始化------------------
-        this.init();
-    };
-
-    E.fn = E.prototype;
-
-    E.$body = $('body');
-    E.$document = $(document);
-    E.$window = $(window);
-    E.userAgent = navigator.userAgent;
-    E.getComputedStyle = window.getComputedStyle;
-    E.w3cRange = typeof document.createRange === 'function';
-    E.hostname = location.hostname.toLowerCase();
-    E.websiteHost = 'wangeditor.github.io|www.wangeditor.com|wangeditor.coding.me';
-    E.isOnWebsite = E.websiteHost.indexOf(E.hostname) >= 0;
-    E.docsite = 'http://www.kancloud.cn/wangfupeng/wangeditor2/113961';
-
-    // 暴露给全局对象
-    window.wangEditor = E;
-
-    // 注册 plugin 事件,用于用户自定义插件
-    // 用户在引用 wangEditor.js 之后,还可以通过 E.plugin() 注入自定义函数,
-    // 该函数将会在 editor.create() 方法的最后一步执行
-    E.plugin = function (fn) {
-        if (!E._plugins) {
-            E._plugins = [];
-        }
-
-        if (typeof fn === 'function') {
-            E._plugins.push(fn);
-        }
-    };
-
-})(window, $);
-// editor 绑定事件
-_e(function (E, $) {
-
-    E.fn.init = function () {
-
-        // 初始化 editor 默认配置
-        this.initDefaultConfig();
-
-        // 增加container
-        this.addEditorContainer();
-
-        // 增加编辑区域
-        this.addTxt();
-
-        // 增加menuContainer
-        this.addMenuContainer();
-
-        // 初始化菜单集合
-        this.menus = {};
-
-        // 初始化commandHooks
-        this.commandHooks();
-
-    };
-
-});
-// editor api
-_e(function (E, $) {
-
-    // 预定义 ready 事件
-    E.fn.ready = function (fn) {
-
-        if (!this.readyFns) {
-            this.readyFns = [];
-        }
-
-        this.readyFns.push(fn);
-    };
-
-    // 处理ready事件
-    E.fn.readyHeadler = function () {
-        var fns = this.readyFns;
-
-        while (fns.length) {
-            fns.shift().call(this);
-        }
-    };
-
-    // 更新内容到 $valueContainer
-    E.fn.updateValue = function () {
-        var editor = this;
-        var $valueContainer = editor.$valueContainer;
-        var $txt = editor.txt.$txt;
-
-        if ($valueContainer === $txt) {
-            // 传入生成编辑器的div,即是编辑区域
-            return;
-        }
-
-        var value = $txt.html();
-        $valueContainer.val(value);
-    };
-
-    // 获取初始化的内容
-    E.fn.getInitValue = function () {
-        var editor = this;
-        var $valueContainer = editor.$valueContainer;
-        var currentValue = '';
-        var nodeName = editor.valueNodeName;
-        if (nodeName === 'div') {
-            currentValue = $valueContainer.html();
-        } else if (nodeName === 'textarea') {
-            currentValue = $valueContainer.val();
-        }
-
-        return currentValue;
-    };
-
-    // 触发菜单updatestyle
-    E.fn.updateMenuStyle = function () {
-        var menus = this.menus;
-
-        $.each(menus, function (k, menu) {
-            menu.updateSelected();
-        });
-    };
-
-    // 除了传入的 menuIds,其他全部启用
-    E.fn.enableMenusExcept = function (menuIds) {
-        if (this._disabled) {
-            // 编辑器处于禁用状态,则不执行改操作
-            return;
-        }
-        // menuIds参数:支持数组和字符串
-        menuIds = menuIds || [];
-        if (typeof menuIds === 'string') {
-            menuIds = [menuIds];
-        }
-
-        $.each(this.menus, function (k, menu) {
-            if (menuIds.indexOf(k) >= 0) {
-                return;
-            }
-            menu.disabled(false);
-        });
-    };
-
-    // 除了传入的 menuIds,其他全部禁用
-    E.fn.disableMenusExcept = function (menuIds) {
-        if (this._disabled) {
-            // 编辑器处于禁用状态,则不执行改操作
-            return;
-        }
-        // menuIds参数:支持数组和字符串
-        menuIds = menuIds || [];
-        if (typeof menuIds === 'string') {
-            menuIds = [menuIds];
-        }
-
-        $.each(this.menus, function (k, menu) {
-            if (menuIds.indexOf(k) >= 0) {
-                return;
-            }
-            menu.disabled(true);
-        });
-    };
-
-    // 隐藏所有 dropPanel droplist modal
-    E.fn.hideDropPanelAndModal = function () {
-        var menus = this.menus;
-
-        $.each(menus, function (k, menu) {
-            var m = menu.dropPanel || menu.dropList || menu.modal;
-            if (m && m.hide) {
-                m.hide();
-            }
-        });
-    };
-
-});
-// selection range API
-_e(function (E, $) {
-
-    // 用到 w3c range 的函数,如果检测到浏览器不支持 w3c range,则赋值为空函数
-    var ieRange = !E.w3cRange;
-    function emptyFn() {}
-
-    // 设置或读取当前的range
-    E.fn.currentRange = function (cr){
-        if (cr) {
-            this._rangeData = cr;
-        } else {
-            return this._rangeData;
-        }
-    };
-
-    // 将当前选区折叠
-    E.fn.collapseRange = function (range, opt) {
-        // opt 参数说明:'start'-折叠到开始; 'end'-折叠到结束
-        opt = opt || 'end';
-        opt = opt === 'start' ? true : false;
-
-        range = range || this.currentRange();
-        
-        if (range) {
-            // 合并,保存
-            range.collapse(opt);
-            this.currentRange(range);
-        }
-    };
-
-    // 获取选区的文字
-    E.fn.getRangeText = ieRange ? emptyFn : function (range) {
-        range = range || this.currentRange();
-        if (!range) {
-            return;
-        }
-        return range.toString();
-    };
-
-    // 获取选区对应的DOM对象
-    E.fn.getRangeElem = ieRange ? emptyFn : function (range) {
-        range = range || this.currentRange();
-        var dom = range.commonAncestorContainer;
-
-        if (dom.nodeType === 1) {
-            return dom;
-        } else {
-            return dom.parentNode;
-        }
-    };
-
-    // 选区内容是否为空?
-    E.fn.isRangeEmpty = ieRange ? emptyFn : function (range) {
-        range = range || this.currentRange();
-
-        if (range && range.startContainer) {
-            if (range.startContainer === range.endContainer) {
-                if (range.startOffset === range.endOffset) {
-                    return true;
-                }
-            }
-        }
-
-        return false;
-    };
-
-    // 保存选区数据
-    E.fn.saveSelection = ieRange ? emptyFn : function (range) {
-        var self = this,
-            _parentElem,
-            selection,
-            txt = self.txt.$txt.get(0);
-
-        if (range) {
-            _parentElem = range.commonAncestorContainer;
-        } else {
-            selection = document.getSelection();
-            if (selection.getRangeAt && selection.rangeCount) {
-                range = document.getSelection().getRangeAt(0);
-                _parentElem = range.commonAncestorContainer;
-            }
-        }
-        // 确定父元素一定要包含在编辑器区域内
-        if (_parentElem && ($.contains(txt, _parentElem) || txt === _parentElem) ) {
-            // 保存选择区域
-            self.currentRange(range);
-        }
-    };
-
-    // 恢复选中区域
-    E.fn.restoreSelection = ieRange ? emptyFn : function (range) {
-        var selection;
-
-        range = range || this.currentRange();
-
-        if (!range) {
-            return;
-        }
-
-        // 使用 try catch 来防止 IE 某些情况报错
-        try {
-            selection = document.getSelection();
-            selection.removeAllRanges();
-            selection.addRange(range);
-        } catch (ex) {
-            E.error('执行 editor.restoreSelection 时,IE可能会有异常,不影响使用');
-        }
-    };
-
-    // 根据elem恢复选区
-    E.fn.restoreSelectionByElem = ieRange ? emptyFn : function (elem, opt) {
-        // opt参数说明:'start'-折叠到开始,'end'-折叠到结束,'all'-全部选中
-        if (!elem) {
-            return;
-        }
-        opt = opt || 'end'; // 默认为折叠到结束
-
-        // 根据elem获取选区
-        this.setRangeByElem(elem);
-
-        // 根据 opt 折叠选区
-        if (opt === 'start') {
-            this.collapseRange(this.currentRange(), 'start');
-        }
-        if (opt === 'end') {
-            this.collapseRange(this.currentRange(), 'end');
-        }
-        
-        // 恢复选区
-        this.restoreSelection();
-    };
-
-    // 初始化选区
-    E.fn.initSelection = ieRange ? emptyFn : function () {
-        var editor = this;
-        if( editor.currentRange() ){
-            //如果currentRange有值,则不用再初始化
-            return;
-        }
-
-        var range;
-        var $txt = editor.txt.$txt;
-        var $firstChild = $txt.children().first();
-        
-        if ($firstChild.length) {
-            editor.restoreSelectionByElem($firstChild.get(0));
-        }
-    };
-
-    // 根据元素创建选区
-    E.fn.setRangeByElem = ieRange ? emptyFn : function (elem) {
-        var editor = this;
-        var txtElem = editor.txt.$txt.get(0);
-        if (!elem || !$.contains(txtElem, elem)) {
-            return;
-        }
-
-        // 找到elem的第一个 textNode 和 最后一个 textNode
-        var firstTextNode = elem.firstChild;
-        while (firstTextNode) {
-            if (firstTextNode.nodeType === 3) {
-                break;
-            }
-            // 继续向下
-            firstTextNode = firstTextNode.firstChild;
-        }
-        var lastTextNode = elem.lastChild;
-        while (lastTextNode) {
-            if (lastTextNode.nodeType === 3) {
-                break;
-            }
-            // 继续向下
-            lastTextNode = lastTextNode.lastChild;
-        }
-        
-        var range = document.createRange();
-        if (firstTextNode && lastTextNode) {
-            // 说明 elem 有内容,能取到子元素
-            range.setStart(firstTextNode, 0);
-            range.setEnd(lastTextNode, lastTextNode.textContent.length);
-        } else {
-            // 说明 elem 无内容
-            range.setStart(elem, 0);
-            range.setEnd(elem, 0);
-        }
-
-        // 保存选区
-        editor.saveSelection(range);
-    };
-
-});
-// selection range API - IE8及以下
-_e(function (E, $) {
-
-    if (E.w3cRange) {
-        // 说明支持 W3C 的range方法
-        return;
-    }
-
-    // -----------------IE8时,需要重写以下方法-------------------
-
-    // 获取选区的文字
-    E.fn.getRangeText = function (range) {
-        range = range || this.currentRange();
-        if (!range) {
-            return;
-        }
-        return range.text;
-    };
-
-    // 获取选区对应的DOM对象
-    E.fn.getRangeElem = function (range) {
-        range = range || this.currentRange();
-        if (!range) {
-            return;
-        }
-        var dom = range.parentElement();
-
-        if (dom.nodeType === 1) {
-            return dom;
-        } else {
-            return dom.parentNode;
-        }
-    };
-
-    // 选区内容是否为空?
-    E.fn.isRangeEmpty = function (range) {
-        range = range || this.currentRange();
-
-        if (range && range.text) {
-            return false;
-        }
-
-        return true;
-    };
-
-    // 保存选区数据
-    E.fn.saveSelection = function (range) {
-        var self = this,
-            _parentElem,
-            selection,
-            txt = self.txt.$txt.get(0);
-
-        if (range) {
-            _parentElem = range.parentElement();
-        } else {
-            range = document.selection.createRange();
-            if(typeof range.parentElement === 'undefined'){
-                //IE6、7中,insertImage后会执行此处
-                //由于找不到range.parentElement,所以干脆将_parentElem赋值为null
-                _parentElem = null;
-            }else{
-                _parentElem = range.parentElement();
-            }
-        }
-
-        // 确定父元素一定要包含在编辑器区域内
-        if (_parentElem && ($.contains(txt, _parentElem) || txt === _parentElem) ) {
-            // 保存选择区域
-            self.currentRange(range);
-        }
-    };
-
-    // 恢复选中区域
-    E.fn.restoreSelection = function (currentRange){
-        var editor = this,
-            selection,
-            range;
-
-        currentRange = currentRange || editor.currentRange();
-        if(!currentRange){
-            return;
-        }
-
-        range = document.selection.createRange();
-        try {
-            // 此处,plupload上传上传图片时,IE8-会报一个『参数无效』的错误
-            range.setEndPoint('EndToEnd', currentRange);
-        } catch (ex) {
-
-        }
-        
-        if(currentRange.text.length === 0){
-            try {
-                // IE8 插入表情会报错
-                range.collapse(false);
-            } catch (ex) {
-                
-            }
-            
-        }else{
-            range.setEndPoint('StartToStart', currentRange);
-        }
-        range.select();
-    };
-
-});
-// editor command hooks
-_e(function (E, $) {
-    
-    E.fn.commandHooks = function () {
-        var editor = this;
-        var commandHooks = {};
-        
-        // insertHtml
-        commandHooks.insertHtml = function (html) {
-            var $elem = $(html);
-            var rangeElem = editor.getRangeElem();
-            var targetElem;
-            
-            targetElem = editor.getLegalTags(rangeElem);
-            if (!targetElem) {
-                return;
-            }
-
-            $(targetElem).after($elem);
-        };
-
-        // 保存到对象
-        editor.commandHooks = commandHooks;
-    };
-
-});
-// editor command API
-_e(function (E, $) {
-
-    // 基本命令
-    E.fn.command = function (e, commandName, commandValue, callback) {
-        var editor = this;
-        var hooks;
-        
-        function commandFn() {
-            if (!commandName) {
-                return;
-            }
-            if (editor.queryCommandSupported(commandName)) {
-                // 默认命令
-                document.execCommand(commandName, false, commandValue);
-            } else {
-                // hooks 命令
-                hooks = editor.commandHooks;
-                if (commandName in hooks) {
-                    hooks[commandName](commandValue);
-                }
-            }
-        }
-
-        this.customCommand(e, commandFn, callback);
-    };
-
-    // 针对一个elem对象执行基础命令
-    E.fn.commandForElem = function (elemOpt, e, commandName, commandValue, callback) {
-        // 取得查询elem的查询条件和验证函数
-        var selector;
-        var check;
-        if (typeof elemOpt === 'string') {
-            selector = elemOpt;
-        } else {
-            selector = elemOpt.selector;
-            check = elemOpt.check;
-        }
-
-        // 查询elem
-        var rangeElem = this.getRangeElem();
-        rangeElem = this.getSelfOrParentByName(rangeElem, selector, check);
-
-        // 根据elem设置range
-        if (rangeElem) {
-            this.setRangeByElem(rangeElem);
-        }
-
-        // 然后执行基础命令
-        this.command(e, commandName, commandValue, callback);
-    };
-
-    // 自定义命令
-    E.fn.customCommand = function (e, commandFn, callback) {
-        var editor = this;
-        var range = editor.currentRange();
-
-        if (!range) {
-            // 目前没有选区,则无法执行命令
-            e && e.preventDefault();
-            return;
-        }
-        // 记录内容,以便撤销(执行命令之前就要记录)
-        editor.undoRecord();
-
-        // 恢复选区(有 range 参数)
-        this.restoreSelection(range);
-
-        // 执行命令事件
-        commandFn.call(editor);
-
-        // 保存选区(无参数,要从浏览器直接获取range信息)
-        this.saveSelection();
-        // 重新恢复选区(无参数,要取得刚刚从浏览器得到的range信息)
-        this.restoreSelection();
-
-        // 执行 callback
-        if (callback && typeof callback === 'function') {
-            callback.call(editor);
-        }
-
-        // 最后插入空行
-        editor.txt.insertEmptyP();
-
-        // 包裹暴露的img和text
-        editor.txt.wrapImgAndText();
-
-        // 更新内容
-        editor.updateValue();
-
-        // 更新菜单样式
-        editor.updateMenuStyle();
-
-        // 隐藏 dropPanel dropList modal  设置 200ms 间隔
-        function hidePanelAndModal() {
-            editor.hideDropPanelAndModal();
-        } 
-        setTimeout(hidePanelAndModal, 200);
-
-        if (e) {
-            e.preventDefault();
-        }
-    };
-
-    // 封装 document.queryCommandValue 函数
-    // IE8 直接执行偶尔会报错,因此直接用 try catch 封装一下
-    E.fn.queryCommandValue = function (commandName) {
-        var result = '';
-        try {
-            result = document.queryCommandValue(commandName);
-        } catch (ex) {
-
-        }
-        return result;
-    };
-
-    // 封装 document.queryCommandState 函数
-    // IE8 直接执行偶尔会报错,因此直接用 try catch 封装一下
-    E.fn.queryCommandState = function (commandName) {
-        var result = false;
-        try {
-            result = document.queryCommandState(commandName);
-        } catch (ex) {
-
-        }
-        return result;
-    };
-
-    // 封装 document.queryCommandSupported 函数
-    E.fn.queryCommandSupported = function (commandName) {
-        var result = false;
-        try {
-            result = document.queryCommandSupported(commandName);
-        } catch (ex) {
-
-        }
-        return result;
-    };
-
-});
-// dom selector
-_e(function (E, $) {
-
-    var matchesSelector;
-
-    // matchesSelector hook
-    function _matchesSelectorForIE(selector) {
-        var elem = this;
-        var $elems = $(selector);
-        var result = false;
-
-        // 用jquery查找 selector 所有对象,如果其中有一个和传入 elem 相同,则证明 elem 符合 selector
-        $elems.each(function () {
-            if (this === elem) {
-                result = true;
-                return false;
-            }
-        });
-
-        return result;
-    }
-
-    // 从当前的elem,往上去查找合法标签 如 p head table blockquote ul ol 等
-    E.fn.getLegalTags = function (elem) {
-        var legalTags = this.config.legalTags;
-        if (!legalTags) {
-            E.error('配置项中缺少 legalTags 的配置');
-            return;
-        }
-        return this.getSelfOrParentByName(elem, legalTags);
-    };
-
-    // 根据条件,查询自身或者父元素,符合即返回
-    E.fn.getSelfOrParentByName = function (elem, selector, check) {
-
-        if (!elem || !selector) {
-            return;
-        }
-
-        if (!matchesSelector) {
-            // 定义 matchesSelector 函数
-            matchesSelector = elem.webkitMatchesSelector || 
-                              elem.mozMatchesSelector ||
-                              elem.oMatchesSelector || 
-                              elem.matchesSelector;
-        }
-        if (!matchesSelector) {
-            // 如果浏览器本身不支持 matchesSelector 则使用自定义的hook
-            matchesSelector = _matchesSelectorForIE;
-        }
-
-        var txt = this.txt.$txt.get(0);
-
-        while (elem && txt !== elem && $.contains(txt, elem)) {
-            if (matchesSelector.call(elem, selector)) {
-                // 符合 selector 查询条件
-
-                if (!check) {
-                    // 没有 check 验证函数,直接返回即可
-                    return elem;
-                }
-
-                if (check(elem)) {
-                    // 如果有 check 验证函数,还需 check 函数的确认
-                    return elem;
-                }
-            }
-
-            // 如果上一步没经过验证,则将跳转到父元素
-            elem = elem.parentNode;
-        }
-
-        return;
-    };
-
-});
-// undo redo
-_e(function (E, $) {
-
-    var length = 20;  // 缓存的最大长度
-    function _getRedoList(editor) {
-        if (editor._redoList == null) {
-            editor._redoList = [];
-        }
-        return editor._redoList;
-    }
-    function _getUndoList(editor) {
-        if (editor._undoList == null) {
-            editor._undoList = [];
-        }
-        return editor._undoList;
-    }
-
-    // 数据处理
-    function _handle(editor, data, type) {
-        // var range = data.range;
-        // var range2 = range.cloneRange && range.cloneRange();
-        var val = data.val;
-        var html = editor.txt.$txt.html();
-
-        if(val == null) {
-            return;
-        }
-
-        if (val === html) {
-            if (type === 'redo') { 
-                editor.redo();
-                return;
-            } else if (type === 'undo') {
-                editor.undo();
-                return;
-            } else {
-                return;
-            }
-        }
-
-        // 保存数据
-        editor.txt.$txt.html(val);
-        // 更新数据到textarea(有必要的话)
-        editor.updateValue();
-
-        // onchange 事件
-        if (editor.onchange && typeof editor.onchange === 'function') {
-            editor.onchange.call(editor);
-        }
-
-        // ?????
-        // 注释:$txt 被重新赋值之后,range会被重置,cloneRange() 也不好使
-        // // 重置选区
-        // if (range2) {
-        //     editor.restoreSelection(range2);
-        // }
-    }
-
-    // 记录
-    E.fn.undoRecord = function () {
-        var editor = this;
-        var $txt = editor.txt.$txt;
-        var val = $txt.html();
-        var undoList = _getUndoList(editor);
-        var redoList = _getRedoList(editor);
-        var currentVal = undoList.length ? undoList[0] : '';
-
-        if (val === currentVal.val) {
-            return;
-        }
-
-        // 清空 redolist
-        if (redoList.length) {
-            redoList = [];
-        }
-
-        // 添加数据到 undoList
-        undoList.unshift({
-            range: editor.currentRange(),  // 将当前的range也记录下
-            val: val
-        });
-
-        // 限制 undoList 长度
-        if (undoList.length > length) {
-            undoList.pop();
-        }
-    };
-
-    // undo 操作
-    E.fn.undo = function () {
-        var editor = this;
-        var undoList = _getUndoList(editor);
-        var redoList = _getRedoList(editor);
-
-        if (!undoList.length) {
-            return;
-        }
-
-        // 取出 undolist 第一个值,加入 redolist
-        var data = undoList.shift();
-        redoList.unshift(data);
-
-        // 并修改编辑器的内容
-        _handle(this, data, 'undo');
-    };
-
-    // redo 操作
-    E.fn.redo = function () {
-        var editor = this;
-        var undoList = _getUndoList(editor);
-        var redoList = _getRedoList(editor);
-        if (!redoList.length) {
-            return;
-        }
-
-        // 取出 redolist 第一个值,加入 undolist
-        var data = redoList.shift();
-        undoList.unshift(data);
-
-        // 并修改编辑器的内容
-        _handle(this, data, 'redo');
-    };
-});
-// 暴露给用户的 API
-_e(function (E, $) {
-
-    // 创建编辑器
-    E.fn.create = function () {
-        var editor = this;
-
-        // 检查 E.$body 是否有值
-        // 如果在 body 之前引用了 js 文件,body 尚未加载,可能没有值
-        if (!E.$body || E.$body.length === 0) {
-            E.$body = $('body');
-            E.$document = $(document);
-            E.$window = $(window);
-        }
-
-        // 执行 addMenus 之前:
-        // 1. 允许用户修改 editor.UI 自定义配置UI
-        // 2. 允许用户通过修改 editor.menus 来自定义配置菜单
-        // 因此要在 create 时执行,而不是 init           
-        editor.addMenus();
-
-        // 渲染
-        editor.renderMenus();
-        editor.renderMenuContainer();
-        editor.renderTxt();
-        editor.renderEditorContainer();
-
-        // 绑定事件
-        editor.eventMenus();
-        editor.eventMenuContainer();
-        editor.eventTxt();
-
-        // 处理ready事件
-        editor.readyHeadler();
-
-        // 初始化选区
-        editor.initSelection();
-
-        // $txt 快捷方式
-        editor.$txt = editor.txt.$txt;
-
-        // 执行用户自定义事件,通过 E.ready() 添加
-        var _plugins = E._plugins;
-        if (_plugins && _plugins.length) {
-            $.each(_plugins, function (k, val) {
-                val.call(editor);
-            });
-        }
-    };
-
-    // 禁用编辑器
-    E.fn.disable = function () {
-        this.txt.$txt.removeAttr('contenteditable');
-        this.disableMenusExcept();
-
-        // 先禁用,再记录状态
-        this._disabled = true;
-    };
-    // 启用编辑器
-    E.fn.enable = function () {
-        // 先解除状态记录,再启用
-        this._disabled = false;
-        this.txt.$txt.attr('contenteditable', 'true');
-        this.enableMenusExcept();
-    };
-
-    // 销毁编辑器
-    E.fn.destroy = function () {
-        var self = this;
-        var $valueContainer = self.$valueContainer;
-        var $editorContainer = self.$editorContainer;
-        var valueNodeName = self.valueNodeName;
-
-        if (valueNodeName === 'div') {
-            // div 生成的编辑器
-            $valueContainer.removeAttr('contenteditable');
-            $editorContainer.after($valueContainer);
-            $editorContainer.hide();
-        } else {
-            // textarea 生成的编辑器
-            $valueContainer.show();
-            $editorContainer.hide();
-        }
-    };
-
-    // 撤销 销毁编辑器
-    E.fn.undestroy = function () {
-        var self = this;
-        var $valueContainer = self.$valueContainer;
-        var $editorContainer = self.$editorContainer;
-        var $menuContainer = self.menuContainer.$menuContainer;
-        var valueNodeName = self.valueNodeName;
-
-        if (valueNodeName === 'div') {
-            // div 生成的编辑器
-            $valueContainer.attr('contenteditable', 'true');
-            $menuContainer.after($valueContainer);
-            $editorContainer.show();
-        } else {
-            // textarea 生成的编辑器
-            $valueContainer.hide();
-            $editorContainer.show();
-        }
-    };
-
-    // 清空内容的快捷方式
-    E.fn.clear = function () {
-        var editor = this;
-        var $txt = editor.txt.$txt;
-        $txt.html('<p><br></p>');
-        editor.restoreSelectionByElem($txt.find('p').get(0));
-    };
-
-});
-// menuContainer 构造函数
-_e(function (E, $) {
-
-    // 定义构造函数
-    var MenuContainer = function (editor) {
-        this.editor = editor;
-        this.init();
-    };
-
-    MenuContainer.fn = MenuContainer.prototype;
-
-    // 暴露给 E 即 window.wangEditor
-    E.MenuContainer = MenuContainer;
-
-});
-// MenuContainer.fn bind fn
-_e(function (E, $) {
-
-    var MenuContainer = E.MenuContainer;
-
-    // 初始化
-    MenuContainer.fn.init = function () {
-        var self = this;
-        var $menuContainer = $('<div class="wangEditor-menu-container clearfix"></div>');
-
-        self.$menuContainer = $menuContainer;
-
-        // change shadow
-        self.changeShadow();
-    };
-
-    // 编辑区域滚动时,增加shadow
-    MenuContainer.fn.changeShadow = function () {
-        var $menuContainer = this.$menuContainer;
-        var editor = this.editor;
-        var $txt = editor.txt.$txt;
-
-        $txt.on('scroll', function () {
-            if ($txt.scrollTop() > 10) {
-                $menuContainer.addClass('wangEditor-menu-shadow');
-            } else {
-                $menuContainer.removeClass('wangEditor-menu-shadow');
-            }
-        });
-    };
-
-});
-// MenuContainer.fn API
-_e(function (E, $) {
-
-    var MenuContainer = E.MenuContainer;
-
-    MenuContainer.fn.render = function () {
-        var $menuContainer = this.$menuContainer;
-        var $editorContainer = this.editor.$editorContainer;
-
-        $editorContainer.append($menuContainer);
-    };
-    
-    // 获取菜单栏的高度
-    MenuContainer.fn.height = function () {
-        var $menuContainer = this.$menuContainer;
-        return $menuContainer.height();
-    };
-
-    // 添加菜单
-    MenuContainer.fn.appendMenu = function (groupIdx, menu) {
-        // 判断是否需要新增一个菜单组
-        this._addGroup(groupIdx);
-        // 增加菜单(返回 $menuItem)
-        return this._addOneMenu(menu);
-    };
-    MenuContainer.fn._addGroup = function (groupIdx) {
-        var $menuContainer = this.$menuContainer;
-        var $menuGroup;
-        if (!this.$currentGroup || this.currentGroupIdx !== groupIdx) {
-            $menuGroup = $('<div class="menu-group clearfix"></div>');
-            $menuContainer.append($menuGroup);
-
-            this.$currentGroup = $menuGroup;
-            this.currentGroupIdx = groupIdx;
-        }
-    };
-    MenuContainer.fn._addOneMenu = function (menu) {
-        var $menuNormal = menu.$domNormal;
-        var $menuSelected = menu.$domSelected;
-
-        var $menuGroup = this.$currentGroup;
-        var $item = $('<div class="menu-item clearfix"></div>');
-        $menuSelected.hide();
-        $item.append($menuNormal).append($menuSelected);
-        $menuGroup.append($item);
-
-        return $item;
-    };
-
-});
-// menu 构造函数
-_e(function (E, $) {
-
-    // 定义构造函数
-    var Menu = function (opt) {
-        this.editor = opt.editor;
-        this.id = opt.id;
-        this.title = opt.title;
-        this.$domNormal = opt.$domNormal;
-        this.$domSelected = opt.$domSelected || opt.$domNormal;
-
-        // document.execCommand 的参数
-        this.commandName = opt.commandName;
-        this.commandValue = opt.commandValue;
-        this.commandNameSelected = opt.commandNameSelected || opt.commandName;
-        this.commandValueSelected = opt.commandValueSelected || opt.commandValue;
-    };
-
-    Menu.fn = Menu.prototype;
-
-    // 暴露给 E 即 window.wangEditor
-    E.Menu = Menu;
-});
-// Menu.fn 初始化绑定的事件
-_e(function (E, $) {
-
-    var Menu = E.Menu;
-
-    // 初始化UI
-    Menu.fn.initUI = function () {
-        var editor = this.editor;
-        var uiConfig = editor.UI.menus;
-        var menuId = this.id;
-        var menuUI = uiConfig[menuId];
-
-        if (this.$domNormal && this.$domSelected) {
-            // 自定义的菜单中,已经传入了 $dom 无需从配置文件中查找生成
-            return;
-        }
-
-        if (menuUI == null) {
-            E.warn('editor.UI配置中,没有菜单 "' + menuId + '" 的UI配置,只能取默认值');
-            
-            // 必须写成 uiConfig['default'];
-            // 写成 uiConfig.default IE8会报错
-            menuUI = uiConfig['default'];
-        }
-
-        // 正常状态
-        this.$domNormal = $(menuUI.normal);
-
-        // 选中状态
-        if (/^\./.test(menuUI.selected)) {
-            // 增加一个样式
-            this.$domSelected = this.$domNormal.clone().addClass(menuUI.selected.slice(1));
-        } else {
-            // 一个新的dom对象
-            this.$domSelected = $(menuUI.selected);
-        }
-    };
-
-});
-// Menu.fn API
-_e(function (E, $) {
-
-    var Menu = E.Menu;
-
-    // 渲染菜单
-    Menu.fn.render = function (groupIdx) {
-        // 渲染UI
-        this.initUI();
-        
-        var editor = this.editor;
-        var menuContainer = editor.menuContainer;
-        var $menuItem = menuContainer.appendMenu(groupIdx, this);
-        var onRender = this.onRender;
-
-        // 渲染tip
-        this._renderTip($menuItem);
-
-        // 执行 onRender 函数
-        if (onRender && typeof onRender === 'function') {
-            onRender.call(this);
-        }
-    };
-    Menu.fn._renderTip = function ($menuItem) {
-        var self = this;
-        var editor = self.editor;
-        var title = self.title;
-        var $tip = $('<div class="menu-tip"></div>');
-        // var $triangle = $('<i class="tip-triangle"></i>'); // 小三角
-
-        // 计算 tip 宽度
-        var $tempDiv;
-        if (!self.tipWidth) {
-            // 设置一个纯透明的 p(absolute;top:-10000px;不会显示在内容区域)
-            // 内容赋值为 title ,为了计算tip宽度
-            $tempDiv = $('<p style="opacity:0; filter:Alpha(opacity=0); position:absolute;top:-10000px;">' + title + '</p>');
-            // 先添加到body,计算完再 remove
-            E.$body.append($tempDiv);
-            editor.ready(function () {
-                var editor = this;
-                var titleWidth = $tempDiv.outerWidth() + 5; // 多出 5px 的冗余
-                var currentWidth = $tip.outerWidth();
-                var currentMarginLeft = parseFloat($tip.css('margin-left'), 10);
-                // 计算完,拿到数据,则弃用
-                $tempDiv.remove();
-                $tempDiv = null;
-
-                // 重新设置样式
-                $tip.css({
-                    width: titleWidth,
-                    'margin-left': currentMarginLeft + (currentWidth - titleWidth)/2
-                });
-
-                // 存储
-                self.tipWidth = titleWidth;
-            });
-        }
-
-        // $tip.append($triangle);
-        $tip.append(title);
-        $menuItem.append($tip);
-
-        function show() {
-            $tip.show();
-        }
-        function hide() {
-            $tip.hide();
-        }
-
-        var timeoutId;
-        $menuItem.find('a').on('mouseenter', function (e) {
-            if (!self.active() && !self.disabled()) {
-                timeoutId = setTimeout(show, 200);
-            }
-        }).on('mouseleave', function (e) {
-            timeoutId && clearTimeout(timeoutId);
-            hide();
-        }).on('click', hide);
-    };
-
-    // 绑定事件
-    Menu.fn.bindEvent = function () {
-        var self = this;
-
-        var $domNormal = self.$domNormal;
-        var $domSelected = self.$domSelected;
-
-        // 试图获取该菜单定义的事件(未selected),没有则自己定义
-        var clickEvent = self.clickEvent;
-        if (!clickEvent) {
-            clickEvent = function (e) {
-                // -----------dropPanel dropList modal-----------
-                var dropObj = self.dropPanel || self.dropList || self.modal;
-                if (dropObj && dropObj.show) {
-                    if (dropObj.isShowing) {
-                        dropObj.hide();
-                    } else {
-                        dropObj.show();
-                    }
-                    return;
-                }
-
-                // -----------command-----------
-                var editor = self.editor;
-                var commandName;
-                var commandValue;
-
-                var selected = self.selected;
-                if (selected) {
-                    commandName = self.commandNameSelected;
-                    commandValue = self.commandValueSelected;
-                } else {
-                    commandName = self.commandName;
-                    commandValue = self.commandValue;
-                }
-
-                if (commandName) {
-                    // 执行命令
-                    editor.command(e, commandName, commandValue);
-                } else {
-                    // 提示
-                    E.warn('菜单 "' + self.id + '" 未定义click事件');
-                    e.preventDefault();
-                }
-            };
-        }
-        // 获取菜单定义的selected情况下的点击事件
-        var clickEventSelected = self.clickEventSelected || clickEvent;
-
-        // 将事件绑定到菜单dom上
-        $domNormal.click(function (e) {
-            if (!self.disabled()) {
-                clickEvent.call(self, e);
-                self.updateSelected();
-            }
-            e.preventDefault();
-        });
-        $domSelected.click(function (e) {
-            if (!self.disabled()) {
-                clickEventSelected.call(self, e);
-                self.updateSelected();
-            }
-            e.preventDefault();
-        });
-    };
-
-    // 更新选中状态
-    Menu.fn.updateSelected = function () {
-        var self = this;
-        var editor = self.editor;
-
-        // 试图获取用户自定义的判断事件
-        var updateSelectedEvent = self.updateSelectedEvent;
-        if (!updateSelectedEvent) {
-            // 用户未自定义,则设置默认值
-            updateSelectedEvent = function () {
-                var self = this;
-                var editor = self.editor;
-                var commandName = self.commandName;
-                var commandValue = self.commandValue;
-
-                if (commandValue) {
-                    if (editor.queryCommandValue(commandName).toLowerCase() === commandValue.toLowerCase()) {
-                        return true;
-                    }
-                } else if (editor.queryCommandState(commandName)) {
-                    return true;
-                }
-
-                return false;
-            };
-        }
-
-        // 获取结果
-        var result = updateSelectedEvent.call(self);
-        result = !!result;
-
-        // 存储结果、显示效果
-        self.changeSelectedState(result);
-    };
-
-    // 切换选中状态、显示效果
-    Menu.fn.changeSelectedState = function (state) {
-        var self = this;
-        var selected = self.selected;
-
-        if (state != null && typeof state === 'boolean') {
-            if (selected === state) {
-                // 计算结果和当前的状态一样
-                return;
-            }
-            // 存储结果
-            self.selected = state;
-
-            // 切换菜单的显示
-            if (state) {
-                // 选中
-                self.$domNormal.hide();
-                self.$domSelected.show();
-            } else {
-                // 未选中
-                self.$domNormal.show();
-                self.$domSelected.hide();
-            }
-        } // if
-    };
-
-    // 点击菜单,显示了 dropPanel modal 时,菜单的状态 
-    Menu.fn.active = function (active) {
-        if (active == null) {
-            return this._activeState;
-        }
-        this._activeState = active;
-    };
-    Menu.fn.activeStyle = function (active) {
-        var selected = this.selected;
-        var $dom = this.$domNormal;
-        var $domSelected = this.$domSelected;
-
-        if (active) {
-            $dom.addClass('active');
-            $domSelected.addClass('active');
-        } else {
-            $dom.removeClass('active');
-            $domSelected.removeClass('active');
-        }
-
-        // 记录状态 ( menu hover 时会取状态用 )
-        this.active(active);
-    };
-
-    // 菜单的启用和禁用
-    Menu.fn.disabled = function (opt) {
-        // 参数为空,取值
-        if (opt == null) {
-            return !!this._disabled;
-        }
-
-        if (this._disabled === opt) {
-            // 要设置的参数值和当前参数只一样,无需再次设置
-            return;
-        }
-
-        var $dom = this.$domNormal;
-        var $domSelected = this.$domSelected;
-
-        // 设置样式
-        if (opt) {
-            $dom.addClass('disable');
-            $domSelected.addClass('disable');
-        } else {
-            $dom.removeClass('disable');
-            $domSelected.removeClass('disable');
-        }
-
-        // 存储
-        this._disabled = opt;
-    };
-
-});
-// dropList 构造函数
-_e(function (E, $) {
-
-    // 定义构造函数
-    var DropList = function (editor, menu, opt) {
-        this.editor = editor;
-        this.menu = menu;
-
-        // list 的数据源,格式 {'commandValue': 'title', ...}
-        this.data = opt.data;
-        // 要为每个item自定义的模板
-        this.tpl = opt.tpl;
-        // 为了执行 editor.commandForElem 而传入的elem查询方式
-        this.selectorForELemCommand = opt.selectorForELemCommand;
-
-        // 执行事件前后的钩子
-        this.beforeEvent = opt.beforeEvent;
-        this.afterEvent = opt.afterEvent;
-
-        // 初始化
-        this.init();
-    };
-
-    DropList.fn = DropList.prototype;
-
-    // 暴露给 E 即 window.wangEditor
-    E.DropList = DropList;
-});
-// dropList fn bind
-_e(function (E, $) {
-
-    var DropList = E.DropList;
-
-    // init
-    DropList.fn.init = function () {
-        var self = this;
-
-        // 生成dom对象
-        self.initDOM();
-
-        // 绑定command事件
-        self.bindEvent();
-
-        // 声明隐藏的事件
-        self.initHideEvent();
-    };
-
-    // 初始化dom结构
-    DropList.fn.initDOM = function () {
-        var self = this;
-        var data = self.data;
-        var tpl = self.tpl || '<span>{#title}</span>';
-        var $list = $('<div class="wangEditor-drop-list clearfix"></div>');
-
-        var itemContent;
-        var $item;
-        $.each(data, function (commandValue, title) {
-            itemContent = tpl.replace(/{#commandValue}/ig, commandValue).replace(/{#title}/ig, title);
-            $item = $('<a href="#" commandValue="' + commandValue + '"></a>');
-            $item.append(itemContent);
-            $list.append($item);
-        });
-
-        self.$list = $list;
-    };
-
-    // 绑定事件
-    DropList.fn.bindEvent = function () {
-        var self = this;
-        var editor = self.editor;
-        var menu = self.menu;
-        var commandName = menu.commandName;
-        var selectorForELemCommand = self.selectorForELemCommand;
-        var $list = self.$list;
-
-        // 执行事件前后的钩子函数
-        var beforeEvent = self.beforeEvent;
-        var afterEvent = self.afterEvent;
-
-        $list.on('click', 'a[commandValue]', function (e) {
-            // 正式命令执行之前
-            if (beforeEvent && typeof beforeEvent === 'function') {
-                beforeEvent.call(e);
-            }
-
-            // 执行命令
-            var commandValue = $(e.currentTarget).attr('commandValue');
-            if (menu.selected && editor.isRangeEmpty() && selectorForELemCommand) {
-                // 当前处于选中状态,并且选中内容为空
-                editor.commandForElem(selectorForELemCommand, e, commandName, commandValue);
-            } else {
-                // 当前未处于选中状态,或者有选中内容。则执行默认命令
-                editor.command(e, commandName, commandValue);
-            }
-
-            // 正式命令之后的钩子
-            if (afterEvent && typeof afterEvent === 'function') {
-                afterEvent.call(e);
-            }
-        });
-    };
-
-    // 点击其他地方,立即隐藏 droplist
-    DropList.fn.initHideEvent = function () {
-        var self = this;
-
-        // 获取 list elem
-        var thisList = self.$list.get(0);
-
-        E.$body.on('click', function (e) {
-            if (!self.isShowing) {
-                return;
-            }
-            var trigger = e.target;
-
-            // 获取菜单elem
-            var menu = self.menu;
-            var menuDom;
-            if (menu.selected) {
-                menuDom = menu.$domSelected.get(0);
-            } else {
-                menuDom = menu.$domNormal.get(0);
-            }
-
-            if (menuDom === trigger || $.contains(menuDom, trigger)) {
-                // 说明由本菜单点击触发的
-                return;
-            }
-
-            if (thisList === trigger || $.contains(thisList, trigger)) {
-                // 说明由本list点击触发的
-                return;
-            }
-
-            // 其他情况,隐藏 list
-            self.hide();
-        });
-
-        E.$window.scroll(function () {
-            self.hide();
-        });
-
-        E.$window.on('resize', function () {
-            self.hide();
-        });
-    };
-
-});
-// dropListfn api
-_e(function (E, $) {
-    
-    var DropList = E.DropList;
-
-    // 渲染
-    DropList.fn._render = function () {
-        var self = this;
-        var editor = self.editor;
-        var $list = self.$list;
-
-        // 渲染到页面
-        editor.$editorContainer.append($list);
-
-        // 记录状态
-        self.rendered = true;
-    };
-
-    // 定位
-    DropList.fn._position = function () {
-        var self = this;
-        var $list = self.$list;
-        var editor = self.editor;
-        var menu = self.menu;
-        var $menuContainer = editor.menuContainer.$menuContainer;
-        var $menuDom = menu.selected ? menu.$domSelected : menu.$domNormal;
-        // 注意这里的 offsetParent() 要返回 .menu-item 的 position
-        // 因为 .menu-item 是 position:relative
-        var menuPosition = $menuDom.offsetParent().position();
-
-        // 取得 menu 的位置、尺寸属性
-        var menuTop = menuPosition.top;
-        var menuLeft = menuPosition.left;
-        var menuHeight = $menuDom.offsetParent().height();
-        var menuWidth = $menuDom.offsetParent().width();
-
-        // 取得 list 的尺寸属性
-        var listWidth = $list.outerWidth();
-        // var listHeight = $list.outerHeight();
-
-        // 取得 $txt 的尺寸
-        var txtWidth = editor.txt.$txt.outerWidth();
-
-        // ------------开始计算-------------
-
-        // 初步计算 list 位置属性
-        var top = menuTop + menuHeight;
-        var left = menuLeft + menuWidth/2;
-        var marginLeft = 0 - menuWidth/2;
-
-        // 如果超出了有边界,则要左移(且和右侧有间隙)
-        var valWithTxt = (left + listWidth) - txtWidth;
-        if (valWithTxt > -10) {
-            marginLeft = marginLeft - valWithTxt - 10;
-        }
-        // 设置样式
-        $list.css({
-            top: top,
-            left: left,
-            'margin-left': marginLeft
-        });
-
-        // 如果因为向下滚动而导致菜单fixed,则再加一步处理
-        if (editor._isMenufixed) {
-            top = top + (($menuContainer.offset().top + $menuContainer.outerHeight()) - $list.offset().top);
-
-            // 重新设置top
-            $list.css({
-                top: top
-            });
-        }
-    };
-
-    // 显示
-    DropList.fn.show = function () {
-        var self = this;
-        var menu = self.menu;
-        if (!self.rendered) {
-            // 第一次show之前,先渲染
-            self._render();
-        }
-
-        if (self.isShowing) {
-            return;
-        }
-
-        var $list = self.$list;
-        $list.show();
-
-        // 定位
-        self._position();
-
-        // 记录状态
-        self.isShowing = true;
-
-        // 菜单状态
-        menu.activeStyle(true);
-    };
-
-    // 隐藏
-    DropList.fn.hide = function () {
-        var self = this;
-        var menu = self.menu;
-        if (!self.isShowing) {
-            return;
-        }
-
-        var $list = self.$list;
-        $list.hide();
-
-        // 记录状态
-        self.isShowing = false;
-
-        // 菜单状态
-        menu.activeStyle(false);
-    };
-});
-// dropPanel 构造函数
-_e(function (E, $) {
-
-    // 定义构造函数
-    var DropPanel = function (editor, menu, opt) {
-        this.editor = editor;
-        this.menu = menu;
-        this.$content = opt.$content;
-        this.width = opt.width || 200;
-        this.height = opt.height;
-        this.onRender = opt.onRender;
-
-        // init
-        this.init();
-    };
-
-    DropPanel.fn = DropPanel.prototype;
-
-    // 暴露给 E 即 window.wangEditor
-    E.DropPanel = DropPanel;
-});
-// dropPanel fn bind
-_e(function (E, $) {
-
-    var DropPanel = E.DropPanel;
-
-    // init
-    DropPanel.fn.init = function () {
-        var self = this;
-
-        // 生成dom对象
-        self.initDOM();
-
-        // 声明隐藏的事件
-        self.initHideEvent();
-    };
-
-    // init DOM
-    DropPanel.fn.initDOM = function () {
-        var self = this;
-        var $content = self.$content;
-        var width = self.width;
-        var height = self.height;
-        var $panel = $('<div class="wangEditor-drop-panel clearfix"></div>');
-        var $triangle = $('<div class="tip-triangle"></div>');
-
-        $panel.css({
-            width: width,
-            height: height ? height : 'auto'
-        });
-        $panel.append($triangle);
-        $panel.append($content);
-
-        // 添加对象数据
-        self.$panel = $panel;
-        self.$triangle = $triangle;
-    };
-
-    // 点击其他地方,立即隐藏 dropPanel
-    DropPanel.fn.initHideEvent = function () {
-        var self = this;
-
-        // 获取 panel elem
-        var thisPanle = self.$panel.get(0);
-
-        E.$body.on('click', function (e) {
-            if (!self.isShowing) {
-                return;
-            }
-            var trigger = e.target;
-
-            // 获取菜单elem
-            var menu = self.menu;
-            var menuDom;
-            if (menu.selected) {
-                menuDom = menu.$domSelected.get(0);
-            } else {
-                menuDom = menu.$domNormal.get(0);
-            }
-
-            if (menuDom === trigger || $.contains(menuDom, trigger)) {
-                // 说明由本菜单点击触发的
-                return;
-            }
-
-            if (thisPanle === trigger || $.contains(thisPanle, trigger)) {
-                // 说明由本panel点击触发的
-                return;
-            }
-
-            // 其他情况,隐藏 panel
-            self.hide();
-        });
-
-        E.$window.scroll(function (e) {
-            self.hide();
-        });
-
-        E.$window.on('resize', function () {
-            self.hide();
-        });
-    };
-
-});
-// dropPanel fn api
-_e(function (E, $) {
-   
-    var DropPanel = E.DropPanel;
-
-    // 渲染
-    DropPanel.fn._render = function () {
-        var self = this;
-        var onRender = self.onRender;
-        var editor = self.editor;
-        var $panel = self.$panel;
-
-        // 渲染到页面
-        editor.$editorContainer.append($panel);
-
-        // 渲染后的回调事件
-        onRender && onRender.call(self);
-
-        // 记录状态
-        self.rendered = true;
-    };
-
-    // 定位
-    DropPanel.fn._position = function () {
-        var self = this;
-        var $panel = self.$panel;
-        var $triangle = self.$triangle;
-        var editor = self.editor;
-        var $menuContainer = editor.menuContainer.$menuContainer;
-        var menu = self.menu;
-        var $menuDom = menu.selected ? menu.$domSelected : menu.$domNormal;
-        // 注意这里的 offsetParent() 要返回 .menu-item 的 position
-        // 因为 .menu-item 是 position:relative
-        var menuPosition = $menuDom.offsetParent().position();
-
-        // 取得 menu 的位置、尺寸属性
-        var menuTop = menuPosition.top;
-        var menuLeft = menuPosition.left;
-        var menuHeight = $menuDom.offsetParent().height();
-        var menuWidth = $menuDom.offsetParent().width();
-
-        // 取得 panel 的尺寸属性
-        var panelWidth = $panel.outerWidth();
-        // var panelHeight = $panel.outerHeight();
-
-        // 取得 $txt 的尺寸
-        var txtWidth = editor.txt.$txt.outerWidth();
-
-        // ------------开始计算-------------
-
-        // 初步计算 panel 位置属性
-        var top = menuTop + menuHeight;
-        var left = menuLeft + menuWidth/2;
-        var marginLeft = 0 - panelWidth/2;
-        var marginLeft2 = marginLeft;  // 下文用于和 marginLeft 比较,来设置三角形tip的位置
-
-        // 如果超出了左边界,则移动回来(要和左侧有10px间隙)
-        if ((0 - marginLeft) > (left - 10)) {
-            marginLeft = 0 - (left - 10);
-        }
-
-        // 如果超出了有边界,则要左移(且和右侧有10px间隙)
-        var valWithTxt = (left + panelWidth + marginLeft) - txtWidth;
-        if (valWithTxt > -10) {
-            marginLeft = marginLeft - valWithTxt - 10;
-        }
-
-        // 设置样式
-        $panel.css({
-            top: top,
-            left: left,
-            'margin-left': marginLeft
-        });
-
-        // 如果因为向下滚动而导致菜单fixed,则再加一步处理
-        if (editor._isMenufixed) {
-            top = top + (($menuContainer.offset().top + $menuContainer.outerHeight()) - $panel.offset().top);
-
-            // 重新设置top
-            $panel.css({
-                top: top
-            });
-        }
-
-        // 设置三角形 tip 的位置
-        $triangle.css({
-            'margin-left': marginLeft2 - marginLeft - 5
-        });
-    };
-
-    // focus 第一个 input
-    DropPanel.fn.focusFirstInput = function () {
-        var self = this;
-        var $panel = self.$panel;
-        $panel.find('input[type=text],textarea').each(function () {
-            var $input = $(this);
-            if ($input.attr('disabled') == null) {
-                $input.focus();
-                return false;
-            }
-        });
-    };
-
-    // 显示
-    DropPanel.fn.show = function () {
-        var self = this;
-        var menu = self.menu;
-        if (!self.rendered) {
-            // 第一次show之前,先渲染
-            self._render();
-        }
-
-        if (self.isShowing) {
-            return;
-        }
-
-        var $panel = self.$panel;
-        $panel.show();
-
-        // 定位
-        self._position();
-
-        // 记录状态
-        self.isShowing = true;
-
-        // 菜单状态
-        menu.activeStyle(true);
-
-        if (E.w3cRange) {
-            // 高级浏览器
-            self.focusFirstInput();
-        } else {
-            // 兼容 IE8 input placeholder
-            E.placeholderForIE8($panel);
-        }
-    };
-
-    // 隐藏
-    DropPanel.fn.hide = function () {
-        var self = this;
-        var menu = self.menu;
-        if (!self.isShowing) {
-            return;
-        }
-
-        var $panel = self.$panel;
-        $panel.hide();
-
-        // 记录状态
-        self.isShowing = false;
-
-        // 菜单状态
-        menu.activeStyle(false);
-    };
-
-});
-// modal 构造函数
-_e(function (E, $) {
-
-    // 定义构造函数
-    var Modal = function (editor, menu, opt) {
-        this.editor = editor;
-        this.menu = menu;
-        this.$content = opt.$content;
-
-        this.init();
-    };
-
-    Modal.fn = Modal.prototype;
-
-    // 暴露给 E 即 window.wangEditor
-    E.Modal = Modal;
-});
-// modal fn bind
-_e(function (E, $) {
-
-    var Modal = E.Modal;
-
-    Modal.fn.init = function () {
-        var self = this;
-
-        // 初始化dom
-        self.initDom();
-
-        // 初始化隐藏事件
-        self.initHideEvent();
-    };
-
-    // 初始化dom
-    Modal.fn.initDom = function () {
-        var self = this;
-        var $content = self.$content;
-        var $modal = $('<div class="wangEditor-modal"></div>');
-        var $close = $('<div class="wangEditor-modal-close"><i class="wangeditor-menu-img-cancel-circle"></i></div>');
-
-        $modal.append($close);
-        $modal.append($content);
-
-        // 记录数据
-        self.$modal = $modal;
-        self.$close = $close;
-    };
-
-    // 初始化隐藏事件
-    Modal.fn.initHideEvent = function () {
-        var self = this;
-        var $close = self.$close;
-        var modal = self.$modal.get(0);
-
-        // 点击 $close 按钮,隐藏
-        $close.click(function () {
-            self.hide();
-        });
-
-        // 点击其他部分,隐藏
-        E.$body.on('click', function (e) {
-            if (!self.isShowing) {
-                return;
-            }
-            var trigger = e.target;
-
-            // 获取菜单elem
-            var menu = self.menu;
-            var menuDom;
-            if (menu) {
-                if (menu.selected) {
-                    menuDom = menu.$domSelected.get(0);
-                } else {
-                    menuDom = menu.$domNormal.get(0);
-                }
-
-                if (menuDom === trigger || $.contains(menuDom, trigger)) {
-                    // 说明由本菜单点击触发的
-                    return;
-                }
-            }
-
-            if (modal === trigger || $.contains(modal, trigger)) {
-                // 说明由本panel点击触发的
-                return;
-            }
-
-            // 其他情况,隐藏 panel
-            self.hide();
-        });
-    };
-});
-// modal fn api
-_e(function (E, $) {
-
-    var Modal = E.Modal;
-
-    // 渲染
-    Modal.fn._render = function () {
-        var self = this;
-        var editor = self.editor;
-        var $modal = self.$modal;
-
-        // $modal的z-index,在配置的z-index基础上再 +10
-        $modal.css('z-index', editor.config.zindex + 10 + '');
-
-        // 渲染到body最后面
-        E.$body.append($modal);
-
-        // 记录状态
-        self.rendered = true;
-    };
-
-    // 定位
-    Modal.fn._position = function () {
-        var self = this;
-        var $modal = self.$modal;
-        var top = $modal.offset().top;
-        var width = $modal.outerWidth();
-        var height = $modal.outerHeight();
-        var marginLeft = 0 - (width / 2);
-        var marginTop = 0 - (height / 2);
-        var sTop = E.$window.scrollTop();
-
-        // 保证modal最顶部,不超过浏览器上边框
-        if ((height / 2) > top) {
-            marginTop = 0 - top;
-        }
-
-        $modal.css({
-            'margin-left': marginLeft + 'px',
-            'margin-top': (marginTop + sTop) + 'px'
-        });
-    };
-
-    // 显示
-    Modal.fn.show = function () {
-        var self = this;
-        var menu = self.menu;
-        if (!self.rendered) {
-            // 第一次show之前,先渲染
-            self._render();
-        }
-
-        if (self.isShowing) {
-            return;
-        }
-        // 记录状态
-        self.isShowing = true;
-
-        var $modal = self.$modal;
-        $modal.show();
-
-        // 定位
-        self._position();
-
-        // 激活菜单状态
-        menu && menu.activeStyle(true);
-    };
-
-    // 隐藏
-    Modal.fn.hide = function () {
-        var self = this;
-        var menu = self.menu;
-        if (!self.isShowing) {
-            return;
-        }
-        // 记录状态
-        self.isShowing = false;
-
-        // 隐藏
-        var $modal = self.$modal;
-        $modal.hide();
-
-        // 菜单状态
-        menu && menu.activeStyle(false);
-    };
-});
-// txt 构造函数
-_e(function (E, $) {
-
-    // 定义构造函数
-    var Txt = function (editor) {
-        this.editor = editor;
-
-        // 初始化
-        this.init();
-    };
-
-    Txt.fn = Txt.prototype;
-
-    // 暴露给 E 即 window.wangEditor
-    E.Txt = Txt;
-});
-// Txt.fn bind fn
-_e(function (E, $) {
-
-    var Txt = E.Txt;
-
-    // 初始化
-    Txt.fn.init = function () {
-        var self = this;
-        var editor = self.editor;
-        var $valueContainer = editor.$valueContainer;
-        var currentValue = editor.getInitValue();
-        var $txt;
-
-        if ($valueContainer.get(0).nodeName === 'DIV') {
-            // 如果传入生成编辑器的元素就是div,则直接使用
-            $txt = $valueContainer;
-            $txt.addClass("wangEditor-txt");
-            $txt.attr('contentEditable', 'true');
-        } else {
-            // 如果不是div(是textarea),则创建一个div
-            $txt = $(
-                '<div class="wangEditor-txt" contentEditable="true">' +
-                    currentValue +
-                '</div>'
-            );
-        }
-
-        // 试图最后插入一个空行,ready之后才行
-        editor.ready(function () {
-            self.insertEmptyP();
-        });
-
-        self.$txt = $txt;
-
-        // 删除时,如果没有内容了,就添加一个 <p><br></p>
-        self.contentEmptyHandle();
-
-        // enter时,不能使用 div 换行
-        self.bindEnterForDiv();
-
-        // enter时,用 p 包裹 text
-        self.bindEnterForText();
-
-        // tab 插入4个空格
-        self.bindTabEvent();
-
-        // 处理粘贴内容
-        self.bindPasteFilter();
-
-        // $txt.formatText() 方法
-        self.bindFormatText();
-
-        // 定义 $txt.html() 方法
-        self.bindHtml();
-    };
-
-    // 删除时,如果没有内容了,就添加一个 <p><br></p>
-    Txt.fn.contentEmptyHandle = function () {
-        var self = this;
-        var editor = self.editor;
-        var $txt = self.$txt;
-        var $p;
-
-        $txt.on('keydown', function (e) {
-            if (e.keyCode !== 8) {
-                return;
-            }
-            var txtHtml = $.trim($txt.html().toLowerCase());
-            if (txtHtml === '<p><br></p>') {
-                // 如果最后还剩余一个空行,就不再继续删除了
-                e.preventDefault();
-                return;
-            }
-        });
-
-        $txt.on('keyup', function (e) {
-            if (e.keyCode !== 8) {
-                return;
-            }
-            var txtHtml = $.trim($txt.html().toLowerCase());
-            // ff时用 txtHtml === '<br>' 判断,其他用 !txtHtml 判断
-            if (!txtHtml || txtHtml === '<br>') {
-                // 内容空了
-                $p = $('<p><br/></p>');
-                $txt.html(''); // 一定要先清空,否则在 ff 下有问题
-                $txt.append($p);
-                editor.restoreSelectionByElem($p.get(0));
-            }
-        });
-    };
-
-    // enter时,不能使用 div 换行
-    Txt.fn.bindEnterForDiv = function () {
-        var tags = E.config.legalTags; // 配置中编辑器要求的合法标签,如 p head table blockquote ul ol 等
-        var self = this;
-        var editor = self.editor;
-        var $txt = self.$txt;
-
-        var $keydownDivElem;
-        function divHandler() {
-            if (!$keydownDivElem) {
-                return;
-            }
-
-            var $pElem = $('<p>' + $keydownDivElem.html() + '</p>');
-            $keydownDivElem.after($pElem);
-            $keydownDivElem.remove();
-        }
-
-        $txt.on('keydown keyup', function (e) {
-            if (e.keyCode !== 13) {
-                return;
-            }
-            // 查找合法标签
-            var rangeElem = editor.getRangeElem();
-            var targetElem = editor.getLegalTags(rangeElem);
-            var $targetElem;
-            var $pElem;
-
-            if (!targetElem) {
-                // 没找到合法标签,就去查找 div
-                targetElem = editor.getSelfOrParentByName(rangeElem, 'div');
-                if (!targetElem) {
-                    return;
-                }
-                $targetElem = $(targetElem);
-
-                if (e.type === 'keydown') {
-                    // 异步执行(同步执行会出现问题)
-                    $keydownDivElem = $targetElem;
-                    setTimeout(divHandler, 0);
-                }
-
-                if (e.type === 'keyup') {
-                    // 将 div 的内容移动到 p 里面,并移除 div
-                    $pElem = $('<p>' + $targetElem.html() + '</p>');
-                    $targetElem.after($pElem);
-                    $targetElem.remove();
-
-                    // 如果是回车结束,将选区定位到行首
-                    editor.restoreSelectionByElem($pElem.get(0), 'start');
-                }
-            }
-        });
-    };
-
-    // enter时,用 p 包裹 text
-    Txt.fn.bindEnterForText = function () {
-        var self = this;
-        var $txt = self.$txt;
-        var handle;
-        $txt.on('keyup', function (e) {
-            if (e.keyCode !== 13) {
-                return;
-            }
-            if (!handle) {
-                handle = function() {
-                    self.wrapImgAndText();
-                };
-            }
-            setTimeout(handle);
-        });
-    };
-
-    // tab 时,插入4个空格
-    Txt.fn.bindTabEvent = function () {
-        var self = this;
-        var editor = self.editor;
-        var $txt = self.$txt;
-
-        $txt.on('keydown', function (e) {
-            if (e.keyCode !== 9) {
-                // 只监听 tab 按钮
-                return;
-            }
-            // 如果浏览器支持 insertHtml 则插入4个空格。如果不支持,就不管了
-            if (editor.queryCommandSupported('insertHtml')) {
-                editor.command(e, 'insertHtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
-            }
-        });
-    };
-
-    // 处理粘贴内容
-    Txt.fn.bindPasteFilter = function () {
-        var self = this;
-        var editor = self.editor;
-        var resultHtml = '';  //存储最终的结果
-        var $txt = self.$txt;
-        var legalTags = editor.config.legalTags;
-        var legalTagArr = legalTags.split(',');
-
-        $txt.on('paste', function (e) {
-            if (!editor.config.pasteFilter) {
-                // 配置中取消了粘贴过滤
-                return;
-            }
-
-            var currentNodeName = editor.getRangeElem().nodeName;
-            if (currentNodeName === 'TD' || currentNodeName === 'TH') {
-                // 在表格的单元格中粘贴,忽略所有内容。否则会出现异常情况
-                return;
-            }
-
-            resultHtml = ''; // 先清空 resultHtml
-
-            var pasteHtml, $paste, docSplitHtml;
-            var data = e.clipboardData || e.originalEvent.clipboardData;
-            var ieData = window.clipboardData;
-
-            if (editor.config.pasteText) {
-                // 只粘贴纯文本
-
-                if (data && data.getData) {
-                    // w3c
-                    pasteHtml = data.getData('text/plain');
-                } else if (ieData && ieData.getData) {
-                    // IE
-                    pasteHtml = ieData.getData('text');
-                } else {
-                    // 其他情况
-                    return;
-                }
-
-                // 拼接为 <p> 标签
-                if (pasteHtml) {
-                    resultHtml = '<p>' + pasteHtml + '</p>';
-                }
-
-            } else {
-                // 粘贴过滤了样式的、只有标签的 html
-
-                if (data && data.getData) {
-                    // w3c
-
-                    // 获取粘贴过来的html
-                    pasteHtml = data.getData('text/html');
-
-                    // 过滤从 word excel 粘贴过来的乱码
-                    docSplitHtml = pasteHtml.split('</html>');
-                    if (docSplitHtml.length === 2) {
-                        pasteHtml = docSplitHtml[0];
-                    }
-
-                    if (pasteHtml) {
-                        // 创建dom
-                        $paste = $('<div>' + pasteHtml + '</div>');
-                        // 处理,并将结果存储到 resultHtml 『全局』变量
-                        handle($paste.get(0));
-                    } else {
-                        // 得不到html,试图获取text
-                        pasteHtml = data.getData('text/plain');
-                        if (pasteHtml) {
-                            // 替换特殊字符
-                            pasteHtml = pasteHtml.replace(/[ ]/g, '&nbsp;')
-                                                 .replace(/</g, '&lt;')
-                                                 .replace(/>/g, '&gt;')
-                                                 .replace(/\n/g, '</p><p>');
-                            // 拼接
-                            resultHtml = '<p>' + pasteHtml + '</p>';
-
-                            // 查询链接
-                            resultHtml = resultHtml.replace(/<p>(https?:\/\/.*?)<\/p>/ig, function (match, link) {
-                                return '<p><a href="' + link + '" target="_blank">' + link + '</p>';
-                            });
-                        }
-                    }
-                    
-                } else if (ieData && ieData.getData) {
-                    // IE 直接从剪切板中取出纯文本格式
-                    resultHtml = ieData.getData('text');
-                    if (!resultHtml) {
-                        return;
-                    }
-                    // 拼接为 <p> 标签
-                    resultHtml = '<p>' + resultHtml + '</p>';
-                    resultHtml = resultHtml.replace(new RegExp('\n', 'g'), '</p><p>');
-                } else {
-                    // 其他情况
-                    return;
-                }
-            }
-
-            // 执行命令
-            if (resultHtml) {
-                editor.command(e, 'insertHtml', resultHtml);
-
-                // 删除内容为空的 p 和嵌套的 p
-                self.clearEmptyOrNestP();
-            }
-        });
-
-        // 处理粘贴的内容
-        function handle(elem) {
-            if (!elem || !elem.nodeType || !elem.nodeName) {
-                return;
-            }
-            var $elem;
-            var nodeName = elem.nodeName.toLowerCase();
-            var nodeType = elem.nodeType;
-            var childNodesClone;
-
-            // 只处理文本和普通node标签
-            if (nodeType !== 3 && nodeType !== 1) {
-                return;
-            }
-
-            $elem = $(elem);
-
-            // 如果是容器,则继续深度遍历
-            if (nodeName === 'div') {
-                childNodesClone = [];
-                $.each(elem.childNodes, function (index, item) {
-                    // elem.childNodes 可获取TEXT节点,而 $elem.children() 就获取不到
-                    // 先将 elem.childNodes 拷贝一份,一面在循环递归过程中 elem 发生变化
-                    childNodesClone.push(item);
-                });
-                // 遍历子元素,执行操作
-                $.each(childNodesClone, function () {
-                    handle(this);
-                });
-                return;
-            }
-            
-            if (legalTagArr.indexOf(nodeName) >= 0) {
-                // 如果是合法标签之内的,则根据元素类型,获取值
-                resultHtml += getResult(elem);
-            } else if (nodeType === 3) {
-                // 如果是文本,则直接插入 p 标签
-                resultHtml += '<p>' + elem.textContent + '</p>';
-            } else if (nodeName === 'br') {
-                // <br>保留
-                resultHtml += '<br/>';
-            }
-            else {
-                // 忽略的标签
-                if (['meta', 'style', 'script', 'object', 'form', 'iframe', 'hr'].indexOf(nodeName) >= 0) {
-                    return;
-                }
-                // 其他标签,移除属性,插入 p 标签
-                $elem = $(removeAttrs(elem));
-                // 注意,这里的 clone() 是必须的,否则会出错
-                resultHtml += $('<div>').append($elem.clone()).html();
-            }
-        }
-
-        // 获取元素的结果
-        function getResult(elem) {
-            var nodeName = elem.nodeName.toLowerCase();
-            var $elem;
-            var htmlForP = '';
-            var htmlForLi = '';
-
-            if (['blockquote'].indexOf(nodeName) >= 0) {
-
-                // 直接取出元素text即可
-                $elem = $(elem);
-                return '<' + nodeName + '>' + $elem.text() + '</' + nodeName + '>';
-
-            } else if (['p', 'h1', 'h2', 'h3', 'h4', 'h5'].indexOf(nodeName) >= 0) {
-
-                //p head 取出 text 和链接
-                elem = removeAttrs(elem);
-                $elem = $(elem);
-                htmlForP = $elem.html();
-
-                // 剔除 a img 之外的元素
-                htmlForP = htmlForP.replace(/<.*?>/ig, function (tag) {
-                    if (tag === '</a>' || tag.indexOf('<a ') === 0 || tag.indexOf('<img ') === 0) {
-                        return tag;
-                    } else {
-                        return '';
-                    }
-                });
-
-                return '<' + nodeName + '>' + htmlForP + '</' + nodeName + '>';
-
-            } else if (['ul', 'ol'].indexOf(nodeName) >= 0) {
-                
-                // ul ol元素,获取子元素(li元素)的text link img,再拼接
-                $elem = $(elem);
-                $elem.children().each(function () {
-                    var $li = $(removeAttrs(this));
-                    var html = $li.html();
-
-                    html = html.replace(/<.*?>/ig, function (tag) {
-                        if (tag === '</a>' || tag.indexOf('<a ') === 0 || tag.indexOf('<img ') === 0) {
-                            return tag;
-                        } else {
-                            return '';
-                        }
-                    });
-
-                    htmlForLi += '<li>' + html + '</li>';
-                });
-                return '<' + nodeName + '>' + htmlForLi + '</' + nodeName + '>';
-            
-            } else {
-                
-                // 其他元素,移除元素属性
-                $elem = $(removeAttrs(elem));
-                return $('<div>').append($elem).html();
-            }
-        }
-
-        // 移除一个元素(子元素)的attr
-        function removeAttrs(elem) {
-            var attrs = elem.attributes || [];
-            var attrNames = [];
-            var exception = ['href', 'target', 'src', 'alt', 'rowspan', 'colspan']; //例外情况
-
-            // 先存储下elem中所有 attr 的名称
-            $.each(attrs, function (key, attr) {
-                if (attr && attr.nodeType === 2) {
-                    attrNames.push(attr.nodeName);
-                }
-            });
-            // 再根据名称删除所有attr
-            $.each(attrNames, function (key, attr) {
-                if (exception.indexOf(attr) < 0) {
-                    // 除了 exception 规定的例外情况,删除其他属性
-                    elem.removeAttribute(attr);
-                }
-            });
-
-
-            // 递归子节点
-            var children = elem.childNodes;
-            if (children.length) {
-                $.each(children, function (key, value) {
-                    removeAttrs(value);
-                });
-            }
-
-            return elem;
-        }
-    };
-
-    // 绑定 $txt.formatText() 方法
-    Txt.fn.bindFormatText = function () {
-        var self = this;
-        var editor = self.editor;
-        var $txt = self.$txt;
-        var legalTags = E.config.legalTags;
-        var legalTagArr = legalTags.split(',');
-        var length = legalTagArr.length;
-        var regArr = [];
-
-        // 将 E.config.legalTags 配置的有效字符,生成正则表达式
-        $.each(legalTagArr, function (k, tag) {
-            var reg = '\>\\s*\<(' + tag + ')\>';
-            regArr.push(new RegExp(reg, 'ig'));
-        });
-
-        // 增加 li 
-        regArr.push(new RegExp('\>\\s*\<(li)\>', 'ig'));
-
-        // 增加 tr
-        regArr.push(new RegExp('\>\\s*\<(tr)\>', 'ig'));
-
-        // 增加 code
-        regArr.push(new RegExp('\>\\s*\<(code)\>', 'ig'));
-
-        // 生成 formatText 方法
-        $txt.formatText = function () {
-            var $temp = $('<div>');
-            var html = $txt.html();
-
-            // 去除空格
-            html = html.replace(/\s*</ig, '<');
-
-            // 段落、表格之间换行
-            $.each(regArr, function (k, reg) {
-                if (!reg.test(html)) {
-                    return;
-                }
-                html = html.replace(reg, function (matchStr, tag) {
-                    return '>\n<' + tag + '>';
-                });
-            });
-
-            $temp.html(html);
-            return $temp.text();
-        };
-    };
-
-    // 定制 $txt.html 方法
-    Txt.fn.bindHtml = function () {
-        var self = this;
-        var editor = self.editor;
-        var $txt = self.$txt;
-        var $valueContainer = editor.$valueContainer;
-        var valueNodeName = editor.valueNodeName;
-
-        $txt.html = function (html) {
-            var result;
-
-            if (valueNodeName === 'div') {
-                // div 生成的编辑器,取值、赋值,都直接触发jquery的html方法
-                result = $.fn.html.call($txt, html);
-            }
-
-            // textarea 生成的编辑器,则需要考虑赋值时,也给textarea赋值
-
-            if (html === undefined) {
-                // 取值,直接触发jquery原生html方法
-                result = $.fn.html.call($txt);
-
-                // 替换 html 中,src和href属性中的 & 字符。
-                // 因为 .html() 或者 .innerHTML 会把所有的 & 字符都改成 &amp; 但是 src 和 href 中的要保持 &
-                result = result.replace(/(href|src)\=\"(.*)\"/igm, function (a, b, c) {
-                    return b + '="' + c.replace('&amp;', '&') + '"';
-                });
-            } else {
-                // 赋值,需要同时给 textarea 赋值
-                result = $.fn.html.call($txt, html);
-                $valueContainer.val(html);
-            }
-
-            if (html === undefined) {
-                return result;
-            } else {
-                // 手动触发 change 事件,因为 $txt 监控了 change 事件来判断是否需要执行 editor.onchange 
-                $txt.change();
-            }
-        };
-    };
-});
-// Txt.fn api
-_e(function (E, $) {
-
-    var Txt = E.Txt;
-
-    var txtChangeEventNames = 'propertychange change click keyup input paste';
-
-    // 渲染
-    Txt.fn.render = function () {
-        var $txt = this.$txt;
-        var $editorContainer = this.editor.$editorContainer;
-        $editorContainer.append($txt);
-    };
-
-    // 计算高度
-    Txt.fn.initHeight = function () {
-        var editor = this.editor;
-        var $txt = this.$txt;
-        var valueContainerHeight = editor.$valueContainer.height();
-        var menuHeight = editor.menuContainer.height();
-        var txtHeight = valueContainerHeight - menuHeight;
-
-        // 限制最小为 50px
-        txtHeight = txtHeight < 50 ? 50 : txtHeight;
-
-        $txt.height(txtHeight);
-
-        // 记录原始高度
-        editor.valueContainerHeight = valueContainerHeight;
-
-        // 设置 max-height
-        this.initMaxHeight(txtHeight, menuHeight);
-    };
-
-    // 计算最大高度
-    Txt.fn.initMaxHeight = function (txtHeight, menuHeight) {
-        var editor = this.editor;
-        var $menuContainer = editor.menuContainer.$menuContainer;
-        var $txt = this.$txt;
-        var $wrap = $('<div>');
-
-        // 需要浏览器支持 max-height,否则不管
-        if (window.getComputedStyle && 'max-height'in window.getComputedStyle($txt.get(0))) {
-            // 获取 max-height 并判断是否有值
-            var maxHeight = parseInt(editor.$valueContainer.css('max-height'));
-            if (isNaN(maxHeight)) {
-                return;
-            }
-
-            // max-height 和『全屏』暂时有冲突
-            if (editor.menus.fullscreen) {
-                E.warn('max-height和『全屏』菜单一起使用时,会有一些问题尚未解决,请暂时不要两个同时使用');
-                return;
-            }
-
-            // 标记
-            editor.useMaxHeight = true;
-
-            // 设置maxheight
-            $wrap.css({
-                'max-height': (maxHeight - menuHeight) + 'px',
-                'overflow-y': 'auto'
-            });
-            $txt.css({
-                'height': 'auto',
-                'overflow-y': 'visible',
-                'min-height': txtHeight + 'px'
-            });
-
-            // 滚动式,菜单阴影
-            $wrap.on('scroll', function () {
-                if ($txt.parent().scrollTop() > 10) {
-                    $menuContainer.addClass('wangEditor-menu-shadow');
-                } else {
-                    $menuContainer.removeClass('wangEditor-menu-shadow');
-                }
-            });
-
-            // 需在编辑器区域外面再包裹一层
-            $txt.wrap($wrap);
-        }
-    };
-
-    // 保存选区
-    Txt.fn.saveSelectionEvent = function () {
-        var $txt = this.$txt;
-        var editor = this.editor;
-        var timeoutId;
-        var dt = Date.now();
-
-        function save() {
-            editor.saveSelection();
-        }
-
-        // 同步保存选区
-        function saveSync() {
-            // 100ms之内,不重复保存
-            if (Date.now() - dt < 100) {
-                return;
-            }
-
-            dt = Date.now();
-            save();
-        }
-
-        // 异步保存选区
-        function saveAync() {
-            // 节流,防止高频率重复操作
-            if (timeoutId) {
-                clearTimeout(timeoutId);
-            }
-            timeoutId = setTimeout(save, 300);
-        }
-
-        // txt change 、focus、blur 时随时保存选区
-        $txt.on(txtChangeEventNames + ' focus blur', function (e) {
-            // 先同步保存选区,为了让接下来就马上要执行 editor.getRangeElem() 的程序
-            // 能够获取到正确的 rangeElem
-            saveSync();
-
-            // 再异步保存选区,为了确定更加准确的选区,为后续的操作做准备
-            saveAync();
-        });
-
-        // 鼠标拖拽选择时,可能会拖拽到编辑器区域外面再松手,此时 $txt 就监听不到 click事件了
-        $txt.on('mousedown', function () {
-            $txt.on('mouseleave.saveSelection', function (e) {
-                // 先同步后异步,如上述注释
-                saveSync();
-                saveAync();
-
-                // 顺道吧菜单状态也更新了
-                editor.updateMenuStyle();
-            });
-        }).on('mouseup', function () {
-            $txt.off('mouseleave.saveSelection');
-        });
-        
-    };
-
-    // 随时更新 value
-    Txt.fn.updateValueEvent = function () {
-        var $txt = this.$txt;
-        var editor = this.editor;
-        var timeoutId, oldValue;
-
-        // 触发 onchange 事件
-        function doOnchange() {
-            var val = $txt.html();
-            if (oldValue === val) {
-                // 无变化
-                return;
-            }
-
-            // 触发 onchange 事件
-            if (editor.onchange && typeof editor.onchange === 'function') {
-                editor.onchange.call(editor);
-            }
-
-            // 更新内容
-            editor.updateValue();
-
-            // 记录最新内容
-            oldValue = val;
-        }
-
-        // txt change 时随时更新内容
-        $txt.on(txtChangeEventNames, function (e) {
-            // 初始化
-            if (oldValue == null) {
-                oldValue = $txt.html();
-            }
-
-            // 监控内容变化(停止操作 100ms 之后立即执行)
-            if (timeoutId) {
-                clearTimeout(timeoutId);
-            }
-            timeoutId = setTimeout(doOnchange, 100);
-        });
-    };
-
-    // 随时更新 menustyle
-    Txt.fn.updateMenuStyleEvent = function () {
-        var $txt = this.$txt;
-        var editor = this.editor;
-
-        // txt change 时随时更新内容
-        $txt.on(txtChangeEventNames, function (e) {
-            editor.updateMenuStyle();
-        });
-    };
-
-    // 最后插入试图插入 <p><br><p>
-    Txt.fn.insertEmptyP = function () {
-        var $txt = this.$txt;
-        var $children = $txt.children();
-
-        if ($children.length === 0) {
-            $txt.append($('<p><br></p>'));
-            return;
-        }
-
-        if ($.trim($children.last().html()).toLowerCase() !== '<br>') {
-            $txt.append($('<p><br></p>'));
-        }
-    };
-
-    // 将编辑器暴露出来的文字和图片,都用 p 来包裹
-    Txt.fn.wrapImgAndText = function () {
-        var $txt = this.$txt;
-        var $imgs = $txt.children('img');
-        var txt = $txt[0];
-        var childNodes = txt.childNodes;
-        var childrenLength = childNodes.length;
-        var i, childNode, p;
-
-        // 处理图片
-        $imgs.length && $imgs.each(function () {
-            $(this).wrap('<p>');
-        });
-
-        // 处理文字
-        for (i = 0; i < childrenLength; i++) {
-            childNode = childNodes[i];
-            if (childNode.nodeType === 3 && childNode.textContent && $.trim(childNode.textContent)) {
-                $(childNode).wrap('<p>');
-            }
-        }
-    };
-
-    // 清空内容为空的<p>,以及重复包裹的<p>(在windows下的chrome粘贴文字之后,会出现上述情况)
-    Txt.fn.clearEmptyOrNestP = function () {
-        var $txt = this.$txt;
-        var $pList = $txt.find('p');
-
-        $pList.each(function () {
-            var $p = $(this);
-            var $children = $p.children();
-            var childrenLength = $children.length;
-            var $firstChild;
-            var content = $.trim($p.html());
-
-            // 内容为空的p
-            if (!content) {
-                $p.remove();
-                return;
-            }
-
-            // 嵌套的p
-            if (childrenLength === 1) {
-                $firstChild = $children.first();
-                if ($firstChild.get(0) && $firstChild.get(0).nodeName === 'P') {
-                    $p.html( $firstChild.html() );
-                }
-            }
-        });
-    };
-
-    // 获取 scrollTop
-    Txt.fn.scrollTop = function (val) {
-        var self = this;
-        var editor = self.editor;
-        var $txt = self.$txt;
-
-        if (editor.useMaxHeight) {
-            return $txt.parent().scrollTop(val);
-        } else {
-            return $txt.scrollTop(val);
-        }
-    };
-
-    // 鼠标hover时候,显示p、head的高度
-    Txt.fn.showHeightOnHover = function () {
-        var editor = this.editor;
-        var $editorContainer = editor.$editorContainer;
-        var menuContainer = editor.menuContainer;
-        var $txt = this.$txt;
-        var $tip = $('<i class="height-tip"><i>');
-        var isTipInTxt = false;
-
-        function addAndShowTip($target) {
-            if (!isTipInTxt) {
-                $editorContainer.append($tip);
-                isTipInTxt = true;
-            }
-
-            var txtTop = $txt.position().top;
-            var txtHeight = $txt.outerHeight();
-
-            var height = $target.height();
-            var top = $target.position().top;
-            var marginTop = parseInt($target.css('margin-top'), 10);
-            var paddingTop = parseInt($target.css('padding-top'), 10);
-            var marginBottom = parseInt($target.css('margin-bottom'), 10);
-            var paddingBottom = parseInt($target.css('padding-bottom'), 10);
-
-            // 计算初步的结果
-            var resultHeight = height + paddingTop + marginTop + paddingBottom + marginBottom;
-            var resultTop = top + menuContainer.height();
-            
-            // var spaceValue;
-
-            // // 判断是否超出下边界
-            // spaceValue = (resultTop + resultHeight) - (txtTop + txtHeight);
-            // if (spaceValue > 0) {
-            //     resultHeight = resultHeight - spaceValue;
-            // }
-
-            // // 判断是否超出了下边界
-            // spaceValue = txtTop > resultTop;
-            // if (spaceValue) {
-            //     resultHeight = resultHeight - spaceValue;
-            //     top = top + spaceValue;
-            // }
-
-            // 按照最终结果渲染
-            $tip.css({
-                height: height + paddingTop + marginTop + paddingBottom + marginBottom,
-                top: top + menuContainer.height()
-            });
-        }
-        function removeTip() {
-            if (!isTipInTxt) {
-                return;
-            }
-            $tip.remove();
-            isTipInTxt = false;
-        }
-
-        $txt.on('mouseenter', 'ul,ol,blockquote,p,h1,h2,h3,h4,h5,table,pre', function (e) {
-            addAndShowTip($(e.currentTarget));
-        }).on('mouseleave', function () {
-            removeTip();
-        });
-    };
-
-});
-// 工具函数
-_e(function (E, $) {
-
-    // IE8 [].indexOf()
-    if(!Array.prototype.indexOf){
-        //IE低版本不支持 arr.indexOf 
-        Array.prototype.indexOf = function(elem){
-            var i = 0,
-                length = this.length;
-            for(; i<length; i++){
-                if(this[i] === elem){
-                    return i;
-                }
-            }
-            return -1;
-        };
-        //IE低版本不支持 arr.lastIndexOf
-        Array.prototype.lastIndexOf = function(elem){
-            var length = this.length;
-            for(length = length - 1; length >= 0; length--){
-                if(this[length] === elem){
-                    return length;
-                }
-            }
-            return -1;
-        };
-    }
-
-    // IE8 Date.now()
-    if (!Date.now) {
-        Date.now = function () {
-            return new Date().valueOf(); 
-        };
-    }
-
-    // console.log && console.warn && console.error
-    var console = window.console;
-    var emptyFn = function () {};
-    $.each(['info', 'log', 'warn', 'error'], function (key, value) {
-        if (console == null) {
-            E[value] = emptyFn;
-        } else {
-            E[value] = function (info) {
-                // 通过配置来控制打印输出
-                if (E.config && E.config.printLog) {
-                    console[value]('wangEditor提示: ' + info);
-                }
-            };
-        }
-    });
-
-    // 获取随机数
-    E.random = function () {
-        return Math.random().toString().slice(2);
-    };
-
-    // 浏览器是否支持 placeholder
-    E.placeholder = 'placeholder' in document.createElement('input');
-
-    // 兼容IE8的 input placeholder
-    E.placeholderForIE8 = function ($container) {
-        if (E.placeholder) {
-            return;
-        }
-        $container.find('input[placeholder]').each(function () {
-            var $input = $(this);
-            var placeholder = $input.attr('placeholder');
-
-            if ($input.val() === '') {
-                $input.css('color', '#666');
-                $input.val(placeholder);
-
-                $input.on('focus.placeholder click.placeholder', function () {
-                    $input.val('');
-                    $input.css('color', '#333');
-                    $input.off('focus.placeholder click.placeholder');
-                });
-            }
-        });
-    };
-});
-// 语言包
-_e(function (E, $) {
-    E.langs = {};
-    
-    // 中文
-    E.langs['zh-cn'] = {
-        bold: '粗体',
-        underline: '下划线',
-        italic: '斜体',
-        forecolor: '文字颜色',
-        bgcolor: '背景色',
-        strikethrough: '删除线',
-        eraser: '清空格式',
-        source: '源码',
-        quote: '引用',
-        fontfamily: '字体',
-        fontsize: '字号',
-        head: '标题',
-        orderlist: '有序列表',
-        unorderlist: '无序列表',
-        alignleft: '左对齐',
-        aligncenter: '居中',
-        alignright: '右对齐',
-        link: '链接',
-        text: '文本',
-        submit: '提交',
-        cancel: '取消',
-        unlink: '取消链接',
-        table: '表格',
-        emotion: '表情',
-        img: '图片',
-        uploadImg: '上传图片',
-        linkImg: '网络图片',
-        video: '视频',
-        'width': '宽',
-        'height': '高',
-        location: '位置',
-        loading: '加载中',
-        searchlocation: '搜索位置',
-        dynamicMap: '动态地图',
-        clearLocation: '清除位置',
-        langDynamicOneLocation: '动态地图只能显示一个位置',
-        insertcode: '插入代码',
-        undo: '撤销',
-        redo: '重复',
-        fullscreen: '全屏',
-        openLink: '打开链接'
-    };
-
-    // 英文
-    E.langs.en = {
-        bold: 'Bold',
-        underline: 'Underline',
-        italic: 'Italic',
-        forecolor: 'Color',
-        bgcolor: 'Backcolor',
-        strikethrough: 'Strikethrough',
-        eraser: 'Eraser',
-        source: 'Codeview',
-        quote: 'Quote',
-        fontfamily: 'Font family',
-        fontsize: 'Font size',
-        head: 'Head',
-        orderlist: 'Ordered list',
-        unorderlist: 'Unordered list',
-        alignleft: 'Align left',
-        aligncenter: 'Align center',
-        alignright: 'Align right',
-        link: 'Insert link',
-        text: 'Text',
-        submit: 'Submit',
-        cancel: 'Cancel',
-        unlink: 'Unlink',
-        table: 'Table',
-        emotion: 'Emotions',
-        img: 'Image',
-        uploadImg: 'Upload',
-        linkImg: 'Link',
-        video: 'Video',
-        'width': 'width',
-        'height': 'height',
-        location: 'Location',
-        loading: 'Loading',
-        searchlocation: 'search',
-        dynamicMap: 'Dynamic',
-        clearLocation: 'Clear',
-        langDynamicOneLocation: 'Only one location in dynamic map',
-        insertcode: 'Insert Code',
-        undo: 'Undo',
-        redo: 'Redo',
-        fullscreen: 'Full screnn',
-        openLink: 'open link'
-    };
-});
-// 全局配置
-_e(function (E, $) {
-
-    E.config = {};
-
-    // 全屏时的 z-index
-    E.config.zindex = 10000;
-
-    // 是否打印log
-    E.config.printLog = true;
-
-    // 菜单吸顶:false - 不吸顶;number - 吸顶,值为top值
-    E.config.menuFixed = 0;
-
-    // 编辑源码时,过滤 javascript
-    E.config.jsFilter = true;
-
-    // 编辑器允许的标签
-    E.config.legalTags = 'p,h1,h2,h3,h4,h5,h6,blockquote,table,ul,ol,pre';
-
-    // 语言包
-    E.config.lang = E.langs['zh-cn'];
-
-    // 菜单配置
-    E.config.menus = [
-        'source',
-        '|',
-        'bold',
-        'underline',
-        'italic',
-        'strikethrough',
-        'eraser',
-        'forecolor',
-        'bgcolor',
-        '|',
-        'quote',
-        'fontfamily',
-        'fontsize',
-        'head',
-        'unorderlist',
-        'orderlist',
-        'alignleft',
-        'aligncenter',
-        'alignright',
-        '|',
-        'link',
-        'unlink',
-        'table',
-        'emotion',
-        '|',
-        'img',
-        'video',
-        'location',
-        'insertcode',
-        '|',
-        'undo',
-        'redo',
-        'fullscreen'
-    ];
-
-    // 颜色配置
-    E.config.colors = {
-        // 'value': 'title'
-        '#880000': '暗红色',
-        '#800080': '紫色',
-        '#ff0000': '红色',
-        '#ff00ff': '鲜粉色',
-        '#000080': '深蓝色',
-        '#0000ff': '蓝色',
-        '#00ffff': '湖蓝色',
-        '#008080': '蓝绿色',
-        '#008000': '绿色',
-        '#808000': '橄榄色',
-        '#00ff00': '浅绿色',
-        '#ffcc00': '橙黄色',
-        '#808080': '灰色',
-        '#c0c0c0': '银色',
-        '#000000': '黑色',
-        '#ffffff': '白色'
-    };
-
-    // 字体
-    E.config.familys = [
-        '宋体', '黑体', '楷体', '微软雅黑',
-        'Arial', 'Verdana', 'Georgia',
-        'Times New Roman', 'Microsoft JhengHei',
-        'Trebuchet MS', 'Courier New', 'Impact', 'Comic Sans MS', 'Consolas'
-    ];
-
-    // 字号
-    E.config.fontsizes = {
-        // 格式:'value': 'title'
-        1: '12px',
-        2: '13px',
-        3: '16px',
-        4: '18px',
-        5: '24px',
-        6: '32px',
-        7: '48px'
-    };
-
-    // 表情包
-    E.config.emotionsShow = 'icon'; // 显示项,默认为'icon',也可以配置成'value'
-    E.config.emotions = {
-        // 'default': {
-        //     title: '默认',
-        //     data: './emotions.data'
-        // },
-        'weibo': {
-            title: '微博表情',
-            data: [
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/7a/shenshou_thumb.gif',
-                    value: '[草泥马]'    
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/60/horse2_thumb.gif',
-                    value: '[神马]'    
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/bc/fuyun_thumb.gif',
-                    value: '[浮云]'    
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/c9/geili_thumb.gif',
-                    value: '[给力]'    
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/f2/wg_thumb.gif',
-                    value: '[围观]'    
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/70/vw_thumb.gif',
-                    value: '[威武]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/6e/panda_thumb.gif',
-                    value: '[熊猫]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/81/rabbit_thumb.gif',
-                    value: '[兔子]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/bc/otm_thumb.gif',
-                    value: '[奥特曼]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/15/j_thumb.gif',
-                    value: '[囧]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/89/hufen_thumb.gif',
-                    value: '[互粉]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/c4/liwu_thumb.gif',
-                    value: '[礼物]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/ac/smilea_thumb.gif',
-                    value: '[呵呵]'
-                },
-                {
-                    icon: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/0b/tootha_thumb.gif',
-                    value: '[哈哈]'
-                }
-            ]
-        }
-    };
-
-    // 百度地图的key
-    E.config.mapAk = 'TVhjYjq1ICT2qqL5LdS8mwas';
-
-    // 上传图片的配置
-    // server地址
-    E.config.uploadImgUrl = '';
-    // 超时时间
-    E.config.uploadTimeout = 20 * 1000;
-    // 用于存储上传回调事件
-    E.config.uploadImgFns = {};
-    // 自定义上传图片的filename
-    // E.config.uploadImgFileName = 'customFileName';
-
-    // 自定义上传,设置为 true 之后,显示上传图标
-    E.config.customUpload = false;
-    // 自定义上传的init事件
-    // E.config.customUploadInit = function () {....};
-
-    // 自定义上传时传递的参数(如 token)
-    E.config.uploadParams = {
-        /* token: 'abcdef12345' */
-    };
-
-    // 自定义上传是的header参数
-    E.config.uploadHeaders = {
-         /* 'Accept' : 'text/x-json' */
-    };
-
-    // 跨域上传时传递 cookie,默认为 true
-    E.config.withCredentials = true;
-
-    // 隐藏网络图片,默认为 false
-    E.config.hideLinkImg = false;
-
-    // 是否过滤粘贴内容
-    E.config.pasteFilter = true;
-
-    // 是否粘贴纯文本,当 editor.config.pasteFilter === false 时候,此配置将失效
-    E.config.pasteText = false;
-
-    // 插入代码时,默认的语言
-    E.config.codeDefaultLang = 'javascript';
-
-});
-// 全局UI
-_e(function (E, $) {
-
-     E.UI = {};
-
-     // 为菜单自定义配置的UI
-     E.UI.menus = {
-        // 这个 default 不加引号,在 IE8 会报错
-        'default': {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-command"></i></a>',
-            selected: '.selected'
-        },
-        bold: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-bold"></i></a>',
-            selected: '.selected'
-        },
-        underline: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-underline"></i></a>',
-            selected: '.selected'
-        },
-        italic: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-italic"></i></a>',
-            selected: '.selected'
-        },
-        forecolor: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-pencil"></i></a>',
-            selected: '.selected'
-        },
-        bgcolor: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-brush"></i></a>',
-            selected: '.selected'
-        },
-        strikethrough: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-strikethrough"></i></a>',
-            selected: '.selected'
-        },
-        eraser: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-eraser"></i></a>',
-            selected: '.selected'
-        },
-        quote: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-quotes-left"></i></a>',
-            selected: '.selected'
-        },
-        source: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-code"></i></a>',
-            selected: '.selected'
-        },
-        fontfamily: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-font2"></i></a>',
-            selected: '.selected'
-        },
-        fontsize: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-text-height"></i></a>',
-            selected: '.selected'
-        },
-        head: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-header"></i></a>',
-            selected: '.selected'
-        },
-        orderlist: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-list-numbered"></i></a>',
-            selected: '.selected'
-        },
-        unorderlist: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-list-bullet"></i></a>',
-            selected: '.selected'
-        },
-        alignleft: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-align-left"></i></a>',
-            selected: '.selected'
-        },
-        aligncenter: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-align-center"></i></a>',
-            selected: '.selected'
-        },
-        alignright: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-align-right"></i></a>',
-            selected: '.selected'
-        },
-        link: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-link"></i></a>',
-            selected: '.selected'
-        },
-        unlink: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-unlink"></i></a>',
-            selected: '.selected'
-        },
-        table: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-table"></i></a>',
-            selected: '.selected'
-        },
-        emotion: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-happy"></i></a>',
-            selected: '.selected'
-        },
-        img: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-picture"></i></a>',
-            selected: '.selected'
-        },
-        video: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-play"></i></a>',
-            selected: '.selected'
-        },
-        location: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-location"></i></a>',
-            selected: '.selected'
-        },
-        insertcode: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-terminal"></i></a>',
-            selected: '.selected'
-        },
-        undo: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-ccw"></i></a>',
-            selected: '.selected'
-        },
-        redo: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-cw"></i></a>',
-            selected: '.selected'
-        },
-        fullscreen: {
-            normal: '<a href="#" tabindex="-1"><i class="wangeditor-menu-img-enlarge2"></i></a>',
-            selected: '<a href="#" tabindex="-1" class="selected"><i class="wangeditor-menu-img-shrink2"></i></a>'
-        }
-     };
-     
-});
-// 对象配置
-_e(function (E, $) {
-
-    E.fn.initDefaultConfig = function () {
-        var editor = this;
-        editor.config = $.extend({}, E.config);
-        editor.UI = $.extend({}, E.UI);
-    };
-
-});
-// 增加 container
-_e(function (E, $) {
-
-    E.fn.addEditorContainer = function () {
-        this.$editorContainer = $('<div class="wangEditor-container"></div>');
-    };
-
-});
-// 增加编辑区域对象
-_e(function (E, $) {
-
-    E.fn.addTxt = function () {
-        var editor = this;
-        var txt = new E.Txt(editor);
-
-        editor.txt = txt;
-    };
-
-});
-// 增加menuContainer对象
-_e(function (E, $) {
-
-    E.fn.addMenuContainer = function () {
-        var editor = this;
-        editor.menuContainer = new E.MenuContainer(editor);
-    };
-
-});
-// 增加menus
-_e(function (E, $) {
-
-    // 存储创建菜单的函数
-    E.createMenuFns = [];
-    E.createMenu = function (fn) {
-        E.createMenuFns.push(fn);
-    };
-
-    // 创建所有菜单
-    E.fn.addMenus = function () {
-        var editor = this;
-        var menuIds = editor.config.menus;
-
-        // 检验 menuId 是否在配置中存在
-        function check(menuId) {
-            if (menuIds.indexOf(menuId) >= 0) {
-                return true;
-            }
-            return false;
-        }
-
-        // 遍历所有的菜单创建函数,并执行
-        $.each(E.createMenuFns, function (k, createMenuFn) {
-            createMenuFn.call(editor, check);
-        });
-    };
-
-});
-// bold菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'bold';
-        if (!check(menuId)) {
-            return;
-        }
-
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.bold,
-            commandName: 'Bold'
-        });
-
-        // 定义选中状态下的click事件
-        menu.clickEventSelected = function (e) {
-            var isRangeEmpty = editor.isRangeEmpty();
-            if (!isRangeEmpty) {
-                // 如果选区有内容,则执行基础命令
-                editor.command(e, 'Bold');
-            } else {
-                // 如果选区没有内容
-                editor.commandForElem('b,strong,h1,h2,h3,h4,h5', e, 'Bold');
-            }
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// underline菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'underline';
-        if (!check(menuId)) {
-            return;
-        }
-
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.underline,
-            commandName: 'Underline'
-        });
-
-        // 定义选中状态下的click事件
-        menu.clickEventSelected = function (e) {
-            var isRangeEmpty = editor.isRangeEmpty();
-            if (!isRangeEmpty) {
-                // 如果选区有内容,则执行基础命令
-                editor.command(e, 'Underline');
-            } else {
-                // 如果选区没有内容
-                editor.commandForElem('u,a', e, 'Underline');
-            }
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// italic 菜单
-_e(function (E, $) {
-    
-    E.createMenu(function (check) {
-        var menuId = 'italic';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.italic,
-            commandName: 'Italic'
-        });
-
-        // 定义选中状态下的click事件
-        menu.clickEventSelected = function (e) {
-            var isRangeEmpty = editor.isRangeEmpty();
-            if (!isRangeEmpty) {
-                // 如果选区有内容,则执行基础命令
-                editor.command(e, 'Italic');
-            } else {
-                // 如果选区没有内容
-                editor.commandForElem('i', e, 'Italic');
-            }
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// forecolor 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'forecolor';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-        var configColors = editor.config.colors;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.forecolor
-        });
-
-        // 创建 dropPanel
-        var $content = $('<div></div>');
-        $.each(configColors, function (k, v) {
-            $content.append(
-                [
-                    '<a href="#" class="color-item"',
-                    '    title="' + v + '" commandValue="' + k + '" ',
-                    '    style="color: ' + k + '" ',
-                    '><i class="wangeditor-menu-img-pencil"></i></a>'
-                ].join('')
-            );
-        });
-        $content.on('click', 'a[commandValue]', function (e) {
-            // 执行命令
-            var $elem = $(this);
-            var commandValue = $elem.attr('commandValue');
-
-            if (menu.selected && editor.isRangeEmpty()) {
-                // 当前处于选中状态,并且选中内容为空
-                editor.commandForElem('font[color]', e, 'forecolor', commandValue);
-            } else {
-                // 当前未处于选中状态,或者有选中内容。则执行默认命令
-                editor.command(e, 'forecolor', commandValue);
-            }
-        });
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $content,
-            width: 125
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'font[color]');
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// bgcolor 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'bgcolor';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-        var configColors = editor.config.colors;
-
-        // 检查元素是否有 background-color: 内联样式
-        function checkElemFn(elem) {
-            var cssText;
-            if (elem && elem.style && elem.style.cssText != null) {
-                cssText = elem.style.cssText;
-                if (cssText && cssText.indexOf('background-color:') >= 0) {
-                    return true;
-                }
-            }
-            return false;
-        }
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.bgcolor
-        });
-
-        // 创建 dropPanel
-        var $content = $('<div></div>');
-        $.each(configColors, function (k, v) {
-            $content.append(
-                [
-                    '<a href="#" class="color-item"',
-                    '    title="' + v + '" commandValue="' + k + '" ',
-                    '    style="color: ' + k + '" ',
-                    '><i class="wangeditor-menu-img-brush"></i></a>'
-                ].join('')
-            );
-        });
-        $content.on('click', 'a[commandValue]', function (e) {
-            // 执行命令
-
-            var $elem = $(this);
-            var commandValue = $elem.attr('commandValue');
-
-            if (menu.selected && editor.isRangeEmpty()) {
-                // 当前处于选中状态,并且选中内容为空。使用 commandForElem 执行命令
-                editor.commandForElem({
-                    selector: 'span,font',
-                    check: checkElemFn
-                }, e, 'BackColor', commandValue);
-            } else {
-                // 当前未处于选中状态,或者有选中内容。则执行默认命令
-                editor.command(e, 'BackColor', commandValue);
-            }
-        });
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $content,
-            width: 125
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'span,font', checkElemFn);
-            
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// strikethrough 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'strikethrough';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.strikethrough,
-            commandName: 'StrikeThrough'
-        });
-
-        // 定义选中状态下的click事件
-        menu.clickEventSelected = function (e) {
-            var isRangeEmpty = editor.isRangeEmpty();
-            if (!isRangeEmpty) {
-                // 如果选区有内容,则执行基础命令
-                editor.command(e, 'StrikeThrough');
-            } else {
-                // 如果选区没有内容
-                editor.commandForElem('strike', e, 'StrikeThrough');
-            }
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// eraser 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'eraser';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.eraser,
-            commandName: 'RemoveFormat'
-        });
-
-        // 定义点击事件
-        menu.clickEvent = function (e) {
-            var isRangeEmpty = editor.isRangeEmpty();
-
-            if (!isRangeEmpty) {
-                // 选区不是空的,则执行默认命令
-                editor.command(e, 'RemoveFormat');
-                return;
-            }
-
-            var $clearElem;
-
-            // 自定义的命令函数
-            function commandFn() {
-                var editor = this;
-                var rangeElem;
-                var pElem, $pElem;
-                var quoteElem, $quoteElem;
-                var listElem, $listElem;
-
-                // 获取选区 elem
-                rangeElem = editor.getRangeElem();
-                // 第一步,获取 quote 父元素
-                quoteElem = editor.getSelfOrParentByName(rangeElem, 'blockquote');
-                if (quoteElem) {
-                    $quoteElem = $(quoteElem);
-                    $clearElem = $('<p>' + $quoteElem.text() + '</p>');
-                    $quoteElem.after($clearElem).remove();
-                }
-                // 第二步,获取 p h 父元素
-                pElem = editor.getSelfOrParentByName(rangeElem, 'p,h1,h2,h3,h4,h5');
-                if (pElem) {
-                    $pElem = $(pElem);
-                    $clearElem = $('<p>' + $pElem.text() + '</p>');
-                    $pElem.after($clearElem).remove();
-                }
-                // 第三步,获取list
-                listElem = editor.getSelfOrParentByName(rangeElem, 'ul,ol');
-                if (listElem) {
-                    $listElem = $(listElem);
-                    $clearElem = $('<p>' + $listElem.text() + '</p>');
-                    $listElem.after($clearElem).remove();
-                }
-            }
-
-            // 自定义 callback 事件
-            function callback() {
-                // callback中,设置range为clearElem
-                var editor = this;
-                if ($clearElem) {
-                    editor.restoreSelectionByElem($clearElem.get(0));
-                }
-            }
-
-            // 执行自定义命令
-            editor.customCommand(e, commandFn, callback);
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// source 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'source';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-        var txtHtml;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.source
-        });
-
-        menu.isShowCode = false;
-
-        // 更新内容
-        function updateValue() {
-            var $code = menu.$codeTextarea;
-            var $txt = editor.txt.$txt;
-            var value = $.trim($code.val()); // 取值
-
-            if (!value) {
-                value = '<p><br></p>';
-            }
-            
-            // 过滤js代码
-            if (editor.config.jsFilter) {
-                
-                value = value.replace(/<script[\s\S]*?<\/script>/ig, '');
-            }
-            // 赋值
-            try {
-                $txt.html(value);
-            } catch (ex) {
-                // 更新 html 源码出错,一般都是取消了 js 过滤之后,js报错导致的
-            }
-        }
-
-        // 定义click事件
-        menu.clickEvent = function (e) {
-            var self = this;
-            var editor = self.editor;
-            var $txt = editor.txt.$txt;
-            var txtOuterHeight = $txt.outerHeight();
-            var txtHeight = $txt.height();
-
-            if (!self.$codeTextarea) {
-                self.$codeTextarea = $('<textarea class="code-textarea"></textarea>');
-            }
-            var $code = self.$codeTextarea;
-            $code.css({
-                height: txtHeight,
-                'margin-top': txtOuterHeight - txtHeight
-            });
-
-            // 赋值
-            $code.val($txt.html());
-
-            // 监控变化
-            $code.on('change', function (e) {
-                updateValue();
-            });
-
-            // 渲染
-            $txt.after($code).hide();
-            $code.show();
-
-            // 更新状态
-            menu.isShowCode = true;
-
-            // 执行 updateSelected 事件
-            this.updateSelected();
-
-            // 禁用其他菜单
-            editor.disableMenusExcept('source');
-
-            // 记录当前html值
-            txtHtml = $txt.html();
-        };
-
-        // 定义选中状态下的click事件
-        menu.clickEventSelected = function (e) {
-            var self = this;
-            var editor = self.editor;
-            var $txt = editor.txt.$txt;
-            var $code = self.$codeTextarea;
-            var value;
-
-            if (!$code) {
-                return;
-            }
-
-            // 更新内容
-            updateValue();
-
-            // 渲染
-            $code.after($txt).hide();
-            $txt.show();
-
-            // 更新状态
-            menu.isShowCode = false;
-
-            // 执行 updateSelected 事件
-            this.updateSelected();
-
-            // 启用其他菜单
-            editor.enableMenusExcept('source');
-
-            // 判断是否执行 onchange 事件
-            if ($txt.html() !== txtHtml) {
-                if (editor.onchange && typeof editor.onchange === 'function') {
-                    editor.onchange.call(editor);
-                }
-            }
-        };
-
-        // 定义切换选中状态事件
-        menu.updateSelectedEvent = function () {
-            return this.isShowCode;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// quote 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'quote';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.quote,
-            commandName: 'formatBlock',
-            commandValue: 'blockquote'
-        });
-
-        // 定义click事件
-        menu.clickEvent = function (e) {
-            var rangeElem = editor.getRangeElem();
-            var $rangeElem;
-            if (!rangeElem) {
-                e.preventDefault();
-                return;
-            }
-            var currentQuote = editor.getSelfOrParentByName(rangeElem, 'blockquote');
-            var $quote;
-
-            if (currentQuote) {
-                // 说明当前在quote之内,不做任何处理
-                e.preventDefault();
-                return;
-            }
-
-            rangeElem = editor.getLegalTags(rangeElem);
-            $rangeElem = $(rangeElem);
-
-            // 无文字,则不允许执行引用
-            if (!$rangeElem.text()) {
-                return;
-            }
-
-
-            if (!rangeElem) {
-                // 执行默认命令
-                // IE8 下执行此处(不过,经测试代码无效,也不报错)
-                editor.command(e, 'formatBlock', 'blockquote');
-                return;
-            }
-
-            // 自定义command事件
-            function commandFn() {
-                $quote = $('<p>' + $rangeElem.text() + '</p>');
-                $rangeElem.after($quote).remove();
-                $quote.wrap('<blockquote>');
-            }
-
-            // 自定义 callback 事件
-            function callback() {
-                // callback中,设置range为quote
-                var editor = this;
-                if ($quote) {
-                    editor.restoreSelectionByElem($quote.get(0));
-                }
-            }
-
-            // 执行自定义命令
-            editor.customCommand(e, commandFn, callback);
-        };
-
-        // 定义选中状态下的click事件
-        menu.clickEventSelected = function (e) {
-            var rangeElem;
-            var quoteElem;
-            var $lastChild;
-
-            // 获取当前选区的elem,并试图往上找 quote 元素
-            rangeElem = editor.getRangeElem();
-            quoteElem = editor.getSelfOrParentByName(rangeElem, 'blockquote');
-            if (!quoteElem) {
-                // 没找到,则返回
-                e.preventDefault();
-                return;
-            }
-
-            // 自定义的command事件
-            function commandFn() {
-                var $quoteElem;
-                var $children;
-
-                $quoteElem = $(quoteElem);
-                $children = $quoteElem.children();
-                if ($children.length) {
-                    $children.each(function (k) {
-                        var $item = $(this);
-                        if ($item.get(0).nodeName === 'P') {
-                            $quoteElem.after($item);
-                        } else {
-                            $quoteElem.after('<p>' + $item.text() + '</p>');
-                        }
-                        $lastChild = $item;  // 记录最后一个子元素,用于callback中的range定位
-                    });
-                    $quoteElem.remove();
-                    return;
-                }
-            }
-
-            // 自定义的callback函数
-            function callback() {
-                // callback中,设置range为lastChild
-                var editor = this;
-                if ($lastChild) {
-                    editor.restoreSelectionByElem($lastChild.get(0));
-                }
-            }
-
-            // 执行自定义命令
-            editor.customCommand(e, commandFn, callback);
-        };
-
-        // 定义更新选中状态的事件
-        menu.updateSelectedEvent = function () {
-            var self = this; //菜单对象
-            var editor = self.editor;
-            var rangeElem;
-
-            rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'blockquote');
-
-            if (rangeElem) {
-                return true;
-            }
-
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-
-        // --------------- 两次点击 enter 跳出引用 ---------------
-        editor.ready(function () {
-            var editor = this;
-            var $txt = editor.txt.$txt;
-            var isPrevEnter = false;  // 是不是刚刚在quote中按了 enter 键
-            $txt.on('keydown', function (e) {
-                if (e.keyCode !== 13) {
-                    // 不是 enter 键
-                    isPrevEnter = false;
-                    return;
-                }
-
-                var rangeElem = editor.getRangeElem();
-                rangeElem = editor.getSelfOrParentByName(rangeElem, 'blockquote');
-                if (!rangeElem) {
-                    // 选区不是 quote
-                    isPrevEnter = false;
-                    return;
-                }
-
-                if (!isPrevEnter) {
-                    // 最近没有在qote中按enter键
-                    isPrevEnter = true;
-                    return;
-                }
-
-                var currentRangeElem = editor.getRangeElem();
-                var $currentRangeElem = $(currentRangeElem);
-                if ($currentRangeElem.length) {
-                    $currentRangeElem.parent().after($currentRangeElem);
-                }
-
-                // 设置选区
-                editor.restoreSelectionByElem(currentRangeElem, 'start');
-
-                isPrevEnter = false;
-                // 阻止默认行文
-                e.preventDefault();
-
-            });
-        }); // editor.ready(
-
-        // --------------- 处理quote中无内容时不能删除的问题 ---------------
-        editor.ready(function () {
-            var editor = this;
-            var $txt = editor.txt.$txt;
-            var $rangeElem;
-
-            function commandFn() {
-                $rangeElem && $rangeElem.remove();
-            }
-            function callback() {
-                if (!$rangeElem) {
-                    return;
-                }
-                var $prev = $rangeElem.prev();
-                if ($prev.length) {
-                    // 有 prev 则定位到 prev 最后
-                    editor.restoreSelectionByElem($prev.get(0));
-                } else {
-                    // 无 prev 则初始化选区
-                    editor.initSelection();
-                }
-            }
-
-            $txt.on('keydown', function (e) {
-                if (e.keyCode !== 8) {
-                    // 不是 backspace 键
-                    return;
-                }
-
-                var rangeElem = editor.getRangeElem();
-                rangeElem = editor.getSelfOrParentByName(rangeElem, 'blockquote');
-                if (!rangeElem) {
-                    // 选区不是 quote
-                    return;
-                }
-                $rangeElem = $(rangeElem);
-
-                var text = $rangeElem.text();
-                if (text) {
-                    // quote 中还有内容
-                    return;
-                }
-                editor.customCommand(e, commandFn, callback);
-
-            }); // $txt.on
-        }); // editor.ready(
-    });
-
-});
-// 字体 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'fontfamily';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-        var configFamilys = editor.config.familys;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.fontfamily,
-            commandName: 'fontName'
-        });
-
-        // 初始化数据
-        var data  = {};
-        /*
-            data 需要的结构
-            {
-                'commandValue': 'title'
-                ...
-            }
-        */
-        $.each(configFamilys, function (k, v) {
-            // configFamilys 是数组,data 是对象
-            data[v] = v;
-        });
-
-        // 创建droplist
-        var tpl = '<span style="font-family:{#commandValue};">{#title}</span>';
-        menu.dropList = new E.DropList(editor, menu, {
-            data: data,
-            tpl: tpl,
-            selectorForELemCommand: 'font[face]'  // 为了执行 editor.commandForElem 而传入的elem查询方式
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'font[face]');
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-});
-// 字号 菜单
-_e(function (E, $) {
-    E.createMenu(function (check) {
-        var menuId = 'fontsize';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-        var configSize = editor.config.fontsizes;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.fontsize,
-            commandName: 'fontSize'
-        });
-
-        // 初始化数据
-        var data  = configSize;
-        /*
-            data 需要的结构
-            {
-                'commandValue': 'title'
-                ...
-            }
-        */
-
-        // 创建droplist
-        var tpl = '<span style="font-size:{#title};">{#title}</span>';
-        menu.dropList = new E.DropList(editor, menu, {
-            data: data,
-            tpl: tpl,
-            selectorForELemCommand: 'font[size]'  // 为了执行 editor.commandForElem 而传入的elem查询方式
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'font[size]');
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-});
-// head 菜单
-_e(function (E, $) {
-    E.createMenu(function (check) {
-        var menuId = 'head';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.head,
-            commandName: 'formatBlock'
-        });
-
-        // 初始化数据
-        var data  = {
-            '<h1>': '标题1',
-            '<h2>': '标题2',
-            '<h3>': '标题3',
-            '<h4>': '标题4',
-            '<h5>': '标题5'
-        };
-        /*
-            data 需要的结构
-            {
-                'commandValue': 'title'
-                ...
-            }
-        */
-
-        var isOrderedList;
-        function beforeEvent(e) {
-            if (editor.queryCommandState('InsertOrderedList')) {
-                isOrderedList = true;
-
-                // 先取消有序列表
-                editor.command(e, 'InsertOrderedList');
-            } else {
-                isOrderedList = false;
-            }
-        }
-
-        function afterEvent(e) {
-            if (isOrderedList) {
-                // 再设置有序列表
-                editor.command(e, 'InsertOrderedList');
-            }
-        }
-
-        // 创建droplist
-        var tpl = '{#commandValue}{#title}';
-        menu.dropList = new E.DropList(editor, menu, {
-            data: data,
-            tpl: tpl,
-            // 对 ol 直接设置 head,会出现每个 li 的 index 都变成 1 的问题,因此要先取消 ol,然后设置 head,最后再增加上 ol
-            beforeEvent: beforeEvent,
-            afterEvent: afterEvent
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'h1,h2,h3,h4,h5');
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-});
-// unorderlist 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'unorderlist';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.unorderlist,
-            commandName: 'InsertUnorderedList'
-        });
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// orderlist 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'orderlist';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.orderlist,
-            commandName: 'InsertOrderedList'
-        });
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// alignleft 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'alignleft';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.alignleft,
-            commandName: 'JustifyLeft'
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'p,h1,h2,h3,h4,h5,li', function (elem) {
-                var cssText;
-                if (elem && elem.style && elem.style.cssText != null) {
-                    cssText = elem.style.cssText;
-                    if (cssText && /text-align:\s*left;/.test(cssText)) {
-                        return true;
-                    }
-                }
-                if ($(elem).attr('align') === 'left') {
-                    // ff 中,设置align-left之后,会是 <p align="left">xxx</p>
-                    return true;
-                }
-                return false;
-            });
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// aligncenter 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'aligncenter';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.aligncenter,
-            commandName: 'JustifyCenter'
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'p,h1,h2,h3,h4,h5,li', function (elem) {
-                var cssText;
-                if (elem && elem.style && elem.style.cssText != null) {
-                    cssText = elem.style.cssText;
-                    if (cssText && /text-align:\s*center;/.test(cssText)) {
-                        return true;
-                    }
-                }
-                if ($(elem).attr('align') === 'center') {
-                    // ff 中,设置align-center之后,会是 <p align="center">xxx</p>
-                    return true;
-                }
-                return false;
-            });
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// alignright 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'alignright';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.alignright,
-            commandName: 'JustifyRight'
-        });
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'p,h1,h2,h3,h4,h5,li', function (elem) {
-                var cssText;
-                if (elem && elem.style && elem.style.cssText != null) {
-                    cssText = elem.style.cssText;
-                    if (cssText && /text-align:\s*right;/.test(cssText)) {
-                        return true;
-                    }
-                }
-                if ($(elem).attr('align') === 'right') {
-                    // ff 中,设置align-right之后,会是 <p align="right">xxx</p>
-                    return true;
-                }
-                return false;
-            });
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// link 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'link';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.link
-        });
-
-        // 创建 dropPanel
-        var $content = $('<div></div>');
-        var $div1 = $('<div style="margin:20px 10px;" class="clearfix"></div>');
-        var $div2 = $div1.clone();
-        var $div3 = $div1.clone().css('margin', '0 10px');
-        var $textInput = $('<input type="text" class="block" placeholder="' + lang.text + '"/>');
-        var $urlInput = $('<input type="text" class="block" placeholder="' + lang.link + '"/>');
-        var $btnSubmit = $('<button class="right">' + lang.submit + '</button>');
-        var $btnCancel = $('<button class="right gray">' + lang.cancel + '</button>');
-
-        $div1.append($textInput);
-        $div2.append($urlInput);
-        $div3.append($btnSubmit).append($btnCancel);
-        $content.append($div1).append($div2).append($div3);
-        
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $content,
-            width: 300
-        });
-
-        // 定义click事件
-        menu.clickEvent = function (e) {
-            var menu = this;
-            var dropPanel = menu.dropPanel;
-
-            // -------------隐藏----------------
-            if (dropPanel.isShowing) {
-                dropPanel.hide();
-                return;
-            }
-
-            // -------------显示----------------
-
-            // 重置 input
-            $textInput.val('');
-            $urlInput.val('http://');
-
-            // 获取url
-            var url = '';
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'a');
-            if (rangeElem) {
-                url = rangeElem.href || '';
-            }
-
-            // 获取 text
-            var text = '';
-            var isRangeEmpty = editor.isRangeEmpty();
-            if (!isRangeEmpty) {
-                // 选区不是空
-                text = editor.getRangeText() || '';
-            } else if (rangeElem) {
-                // 如果选区空,并且在 a 标签之内
-                text = rangeElem.textContent || rangeElem.innerHTML;
-            }
-
-            // 设置 url 和 text
-            url && $urlInput.val(url);
-            text && $textInput.val(text);
-
-            // 如果有选区内容,textinput 不能修改
-            if (!isRangeEmpty) {
-                $textInput.attr('disabled', true);
-            } else {
-                $textInput.removeAttr('disabled');
-            }
-
-            // 显示(要设置好了所有input的值和属性之后再显示)
-            dropPanel.show();
-        };
-
-        // 定义 update selected 事件
-        menu.updateSelectedEvent = function () {
-            var rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'a');
-            if (rangeElem) {
-                return true;
-            }
-            return false;
-        };
-
-        // 『取消』 按钮
-        $btnCancel.click(function (e) {
-            e.preventDefault();
-            menu.dropPanel.hide();
-        });
-
-        // 『确定』按钮
-        $btnSubmit.click(function (e) {
-            e.preventDefault();
-            var rangeElem = editor.getRangeElem();
-            var targetElem = editor.getSelfOrParentByName(rangeElem, 'a');
-            var isRangeEmpty = editor.isRangeEmpty();
-
-            var $linkElem, linkHtml;
-            var commandFn, callback;
-            var $txt = editor.txt.$txt;
-            var $oldLinks, $newLinks;
-            var uniqId = 'link' + E.random();
-
-            // 获取数据
-            var url = $.trim($urlInput.val());
-            var text = $.trim($textInput.val());
-
-            if (!url) {
-                menu.dropPanel.focusFirstInput();
-                return;
-            }
-            if (!text) {
-                text = url;
-            }
-
-            if (!isRangeEmpty) {
-                // 选中区域有内容,则执行默认命令
-
-                // 获取目前 txt 内所有链接,并为当前链接做一个标记
-                $oldLinks = $txt.find('a');
-                $oldLinks.attr(uniqId, '1');
-
-                // 执行命令 
-                editor.command(e, 'createLink', url);
-
-                // 去的没有标记的链接,即刚刚插入的链接
-                $newLinks = $txt.find('a').not('[' + uniqId + ']');
-                $newLinks.attr('target', '_blank'); // 增加 _blank
-
-                // 去掉之前做的标记
-                $oldLinks.removeAttr(uniqId);
-
-            } else if (targetElem) {
-                // 无选中区域,在 a 标签之内,修改该 a 标签的内容和链接
-                $linkElem = $(targetElem);
-                commandFn = function () {
-                    $linkElem.attr('href', url);
-                    $linkElem.text(text);
-                };
-                callback = function () {
-                    var editor = this;
-                    editor.restoreSelectionByElem(targetElem);
-                };
-                // 执行命令
-                editor.customCommand(e, commandFn, callback);
-            } else {
-                // 无选中区域,不在 a 标签之内,插入新的链接
-
-                linkHtml = '<a href="' + url + '" target="_blank">' + text + '</a>';
-                if (E.userAgent.indexOf('Firefox') > 0) {
-                    linkHtml += '<span>&nbsp;</span>';
-                }
-                editor.command(e, 'insertHtml', linkHtml);
-            }
-
-        });
-        
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// unlink 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'unlink';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.unlink,
-            commandName: 'unLink'
-        });
-
-        // click 事件
-        menu.clickEvent = function  (e) {
-            var isRangeEmpty = editor.isRangeEmpty();
-            if (!isRangeEmpty) {
-                // 有选中区域,或者IE8,执行默认命令
-                editor.command(e, 'unLink');
-                return;
-            }
-
-            // 无选中区域...
-
-            var rangeElem = editor.getRangeElem();
-            var aElem = editor.getSelfOrParentByName(rangeElem, 'a');
-            if (!aElem) {
-                // 不在 a 之内,返回
-                e.preventDefault();
-                return;
-            }
-
-            // 在 a 之内
-            var $a = $(aElem);
-            var $span = $('<span>' + $a.text() + '</span>');
-            function commandFn() {
-                $a.after($span).remove();
-            }
-            function callback() {
-                editor.restoreSelectionByElem($span.get(0));
-            }
-            editor.customCommand(e, commandFn, callback);
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// table 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'table';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.table
-        });
-
-        // dropPanel 内容
-        var $content = $('<div style="font-size: 14px; color: #666; text-align:right;"></div>');
-        var $table = $('<table class="choose-table" style="margin-bottom:10px;margin-top:5px;">');
-        var $row = $('<span>0</span>');
-        var $rowspan = $('<span> 行 </span>');
-        var $col = $('<span>0</span>');
-        var $colspan = $('<span> 列</span>');
-        var $tr;
-        var i, j;
-
-        // 创建一个n行n列的表格
-        for (i = 0; i < 15; i++) {
-            $tr = $('<tr index="' + (i + 1) + '">');
-            for (j = 0; j < 20; j++) {
-                $tr.append($('<td index="' + (j + 1) + '">'));
-            }
-            $table.append($tr);
-        }
-        $content.append($table);
-        $content.append($row).append($rowspan).append($col).append($colspan);
-
-        // 定义table事件
-        $table.on('mouseenter', 'td', function (e) {
-            var $currentTd = $(e.currentTarget);
-            var currentTdIndex = $currentTd.attr('index');
-            var $currentTr = $currentTd.parent();
-            var currentTrIndex = $currentTr.attr('index');
-
-            // 显示
-            $row.text(currentTrIndex);
-            $col.text(currentTdIndex);
-
-            // 遍历设置背景颜色
-            $table.find('tr').each(function () {
-                var $tr = $(this);
-                var trIndex = $tr.attr('index');
-                if (parseInt(trIndex, 10) <= parseInt(currentTrIndex, 10)) {
-                    // 该行需要可能需要设置背景色
-                    $tr.find('td').each(function () {
-                        var $td = $(this);
-                        var tdIndex = $td.attr('index');
-                        if (parseInt(tdIndex, 10) <= parseInt(currentTdIndex, 10)) {
-                            // 需要设置背景色
-                            $td.addClass('active');
-                        } else {
-                            // 需要移除背景色
-                            $td.removeClass('active');
-                        }
-                    });
-                } else {
-                    // 改行不需要设置背景色
-                    $tr.find('td').removeClass('active');
-                }
-            });
-        }).on('mouseleave', function (e) {
-            // mouseleave 删除背景色
-            $table.find('td').removeClass('active');
-
-            $row.text(0);
-            $col.text(0);
-        });
-
-        // 插入表格
-        $table.on('click', 'td', function (e) {
-            var $currentTd = $(e.currentTarget);
-            var currentTdIndex = $currentTd.attr('index');
-            var $currentTr = $currentTd.parent();
-            var currentTrIndex = $currentTr.attr('index');
-
-            var rownum = parseInt(currentTrIndex, 10);
-            var colnum = parseInt(currentTdIndex, 10);
-
-            // -------- 拼接tabel html --------
-
-            var i, j;
-            var tableHtml = '<table>';
-            for (i = 0; i < rownum; i++) {
-                tableHtml += '<tr>';
-
-                for (j = 0; j < colnum; j++) {
-                    tableHtml += '<td><span>&nbsp;</span></td>';
-                }
-                tableHtml += '</tr>';
-            }
-            tableHtml += '</table>';
-
-            // -------- 执行命令 --------
-            editor.command(e, 'insertHtml', tableHtml);
-        });
-
-        // 创建 panel
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $content,
-            width: 262
-        });
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// emotion 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'emotion';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var config = editor.config;
-        var lang = config.lang;
-        var configEmotions = config.emotions;
-        var emotionsShow = config.emotionsShow;
-
-        // 记录每一个表情图片的地址
-        editor.emotionUrls = [];
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.emotion
-        });
-
-        // 添加表情图片的函数
-        function insertEmotionImgs(data, $tabContent) {
-            // 添加表情图片
-            $.each(data, function (k, emotion) {
-                var src = emotion.icon || emotion.url;
-                var value = emotion.value || emotion.title;
-                // 通过配置 editor.config.emotionsShow 的值来修改插入到编辑器的内容(图片/value)
-                var commandValue = emotionsShow === 'icon' ? src : value;
-                var $command = $('<a href="#" commandValue="' + commandValue + '"></a>');
-                var $img = $('<img>');
-                $img.attr('_src', src);  // 先将 src 复制到 '_src' 属性,先不加载
-
-                $command.append($img);
-                $tabContent.append($command);
-
-                // 记录下每一个表情图片的地址
-                editor.emotionUrls.push(src);
-            });
-        }
-
-        // 拼接 dropPanel 内容
-        var $panelContent = $('<div class="panel-tab"></div>');
-        var $tabContainer = $('<div class="tab-container"></div>');
-        var $contentContainer = $('<div class="content-container emotion-content-container"></div>');
-        $.each(configEmotions, function (k, emotion) {
-            var title = emotion.title;
-            var data = emotion.data;
-
-            E.log('正在处理 ' + title + ' 表情的数据...');
-
-            // 增加该组表情的tab和content
-            var $tab = $('<a href="#">' + title +' </a>');
-            $tabContainer.append($tab);
-            var $tabContent = $('<div class="content"></div>');
-            $contentContainer.append($tabContent);
-
-            // tab 切换事件
-            $tab.click(function (e) {
-                $tabContainer.children().removeClass('selected');
-                $contentContainer.children().removeClass('selected');
-                $tabContent.addClass('selected');
-                $tab.addClass('selected');
-                e.preventDefault();
-            });
-
-            // 处理data
-            if (typeof data === 'string') {
-                // url 形式,需要通过ajax从该url获取数据
-                E.log('将通过 ' + data + ' 地址ajax下载表情包');
-                $.get(data, function (result) {
-                    result = $.parseJSON(result);
-                    E.log('下载完毕,得到 ' + result.length + ' 个表情');
-                    insertEmotionImgs(result, $tabContent);
-                });
-                
-            } else if ( Object.prototype.toString.call(data).toLowerCase().indexOf('array') > 0 ) {
-                // 数组,即 data 直接就是表情包数据
-                insertEmotionImgs(data, $tabContent);
-            } else {
-                // 其他情况,data格式不对
-                E.error('data 数据格式错误,请修改为正确格式,参考文档:' + E.docsite);
-                return;
-            }
-        });
-        $panelContent.append($tabContainer).append($contentContainer);
-
-        // 默认显示第一个tab
-        $tabContainer.children().first().addClass('selected');
-        $contentContainer.children().first().addClass('selected');
-
-        // 插入表情command事件
-        $contentContainer.on('click', 'a[commandValue]', function (e) {
-            var $a = $(e.currentTarget);
-            var commandValue = $a.attr('commandValue');
-            var img;
-
-            // commandValue 有可能是图片url,也有可能是表情的 value,需要区别对待
-
-            if (emotionsShow === 'icon') {
-                // 插入图片
-                editor.command(e, 'InsertImage', commandValue);
-            } else {
-                // 插入value
-                editor.command(e, 'insertHtml', '<span>' + commandValue + '</span>');
-            }
-
-            e.preventDefault();
-        });
-
-        // 添加panel
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $panelContent,
-            width: 350
-        });
-
-        // 定义click事件(异步加载表情图片)
-        menu.clickEvent = function (e) {
-            var menu = this;
-            var dropPanel = menu.dropPanel;
-
-            // -------------隐藏-------------
-            if (dropPanel.isShowing) {
-                dropPanel.hide();
-                return;
-            }
-
-            // -------------显示-------------
-            dropPanel.show();
-
-            // 异步加载图片
-            if (menu.imgLoaded) {
-                return;
-            }
-            $contentContainer.find('img').each(function () {
-                var $img = $(this);
-                var _src = $img.attr('_src');
-                $img.on('error', function () {
-                    E.error('加载不出表情图片 ' + _src);
-                });
-                $img.attr('src', _src);
-                $img.removeAttr('_src');
-            });
-            menu.imgLoaded = true;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// img 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'img';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.img
-        });
-
-        // 创建 panel content
-        var $panelContent = $('<div class="panel-tab"></div>');
-        var $tabContainer = $('<div class="tab-container"></div>');
-        var $contentContainer = $('<div class="content-container"></div>');
-        $panelContent.append($tabContainer).append($contentContainer);
-
-        // tab
-        var $uploadTab = $('<a href="#">' + lang.uploadImg + '</a>');
-        var $linkTab = $('<a href="#">' + lang.linkImg + '</a>');
-        $tabContainer.append($uploadTab).append($linkTab);
-
-        // 上传图片 content
-        var $uploadContent = $('<div class="content"></div>');
-        $contentContainer.append($uploadContent);
-
-        // 网络图片 content
-        var $linkContent = $('<div class="content"></div>');
-        $contentContainer.append($linkContent);
-        linkContentHandler(editor, menu, $linkContent);
-
-        // 添加panel
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $panelContent,
-            width: 400,
-            onRender: function () {
-                // 渲染后的回调事件,用于执行自定义上传的init
-                // 因为渲染之后,上传面板的dom才会被渲染到页面,才能让第三方空间获取到
-                var init = editor.config.customUploadInit;
-                init && init.call(editor);
-            }
-        });
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-
-        // tab 切换事件
-        function tabToggle() {
-            $uploadTab.click(function (e) {
-                $tabContainer.children().removeClass('selected');
-                $contentContainer.children().removeClass('selected');
-                $uploadContent.addClass('selected');
-                $uploadTab.addClass('selected');
-                e.preventDefault();
-            });
-            $linkTab.click(function (e) {
-                $tabContainer.children().removeClass('selected');
-                $contentContainer.children().removeClass('selected');
-                $linkContent.addClass('selected');
-                $linkTab.addClass('selected');
-                e.preventDefault();
-
-                // focus input
-                if (E.placeholder) {
-                    $linkContent.find('input[type=text]').focus();
-                }
-            });
-
-            // 默认情况
-            // $uploadTab.addClass('selected');
-            // $uploadContent.addClass('selected');
-            $uploadTab.click();
-        }
-
-        // 隐藏上传图片
-        function hideUploadImg() {
-            $tabContainer.remove();
-            $uploadContent.remove();
-            $linkContent.addClass('selected');
-        }
-
-        // 隐藏网络图片
-        function hideLinkImg() {
-            $tabContainer.remove();
-            $linkContent.remove();
-            $uploadContent.addClass('selected');
-        }
-
-        // 判断用户是否配置了上传图片
-        editor.ready(function () {
-            var editor = this;
-            var config = editor.config;
-            var uploadImgUrl = config.uploadImgUrl;
-            var customUpload = config.customUpload;
-            var linkImg = config.hideLinkImg;
-            var $uploadImgPanel;
-
-            if (uploadImgUrl || customUpload) {
-                // 第一,暴露出 $uploadContent 以便用户自定义 !!!重要
-                editor.$uploadContent = $uploadContent;
-
-                // 第二,绑定tab切换事件
-                tabToggle();
-
-                if (linkImg) {
-                    // 隐藏网络图片
-                    hideLinkImg();
-                }
-            } else {
-                // 未配置上传图片功能
-                hideUploadImg();
-            }
-
-            // 点击 $uploadContent 立即隐藏 dropPanel
-            // 为了兼容IE8、9的上传,因为IE8、9使用 modal 上传
-            // 这里使用异步,为了不妨碍高级浏览器通过点击 $uploadContent 选择文件
-            function hidePanel() {
-                menu.dropPanel.hide();
-            }
-            $uploadContent.click(function () {
-                setTimeout(hidePanel);
-            });
-        });
-    });
-
-    // --------------- 处理网络图片content ---------------
-    function linkContentHandler (editor, menu, $linkContent) {
-        var lang = editor.config.lang;
-        var $urlContainer = $('<div style="margin:20px 10px 10px 10px;"></div>');
-        var $urlInput = $('<input type="text" class="block" placeholder="http://"/>');
-        $urlContainer.append($urlInput);
-        var $btnSubmit = $('<button class="right">' + lang.submit + '</button>');
-        var $btnCancel = $('<button class="right gray">' + lang.cancel + '</button>');
-
-        $linkContent.append($urlContainer).append($btnSubmit).append($btnCancel);
-
-        // 取消
-        $btnCancel.click(function (e) {
-            e.preventDefault();
-            menu.dropPanel.hide();
-        });
-
-        // callback 
-        function callback() {
-            $urlInput.val('');
-        }
-
-        // 确定
-        $btnSubmit.click(function (e) {
-            e.preventDefault();
-            var url = $.trim($urlInput.val());
-            if (!url) {
-                // 无内容
-                $urlInput.focus();
-                return;
-            }
-
-            var imgHtml = '<img style="max-width:100%;" src="' + url + '"/>';
-            editor.command(e, 'insertHtml', imgHtml, callback);
-        });
-    }
-
-});
-// video 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'video';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-        var reg = /^<(iframe)|(embed)/i;  // <iframe... 或者 <embed... 格式
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.video
-        });
-
-        // 创建 panel 内容
-        var $content = $('<div></div>');
-        var $linkInputContainer = $('<div style="margin:20px 10px;"></div>');
-        var $linkInput = $('<input type="text" class="block" placeholder=\'格式如:<iframe src="..." frameborder=0 allowfullscreen></iframe>\'/>');
-        $linkInputContainer.append($linkInput);
-        var $sizeContainer = $('<div style="margin:20px 10px;"></div>');
-        var $widthInput = $('<input type="text" value="640" style="width:50px;text-align:center;"/>');
-        var $heightInput = $('<input type="text" value="498" style="width:50px;text-align:center;"/>');
-        $sizeContainer.append('<span> ' + lang.width + ' </span>')
-                      .append($widthInput)
-                      .append('<span> px &nbsp;&nbsp;&nbsp;</span>')
-                      .append('<span> ' + lang.height + ' </span>')
-                      .append($heightInput)
-                      .append('<span> px </span>');
-        var $btnContainer = $('<div></div>');
-        var $howToCopy = $('<a href="http://www.kancloud.cn/wangfupeng/wangeditor2/134973" target="_blank" style="display:inline-block;margin-top:10px;margin-left:10px;color:#999;">如何复制视频链接?</a>');
-        var $btnSubmit = $('<button class="right">' + lang.submit + '</button>');
-        var $btnCancel = $('<button class="right gray">' + lang.cancel + '</button>');
-        $btnContainer.append($howToCopy).append($btnSubmit).append($btnCancel);
-        $content.append($linkInputContainer).append($sizeContainer).append($btnContainer);
-
-        // 取消按钮
-        $btnCancel.click(function (e) {
-            e.preventDefault();
-            $linkInput.val('');
-            menu.dropPanel.hide();
-        });
-
-        // 确定按钮
-        $btnSubmit.click(function (e) {
-            e.preventDefault();
-            var link = $.trim($linkInput.val());
-            var $link;
-            var width = parseInt($widthInput.val());
-            var height = parseInt($heightInput.val());
-            var $div = $('<div>');
-            var html = '<p>{content}</p>';
-
-            // 验证数据
-            if (!link) {
-                menu.dropPanel.focusFirstInput();
-                return;
-            }
-
-            if (!reg.test(link)) {
-                alert('视频链接格式错误!');
-                menu.dropPanel.focusFirstInput();
-                return;
-            }
-
-            if (isNaN(width) || isNaN(height)) {
-                alert('宽度或高度不是数字!');
-                return;
-            }
-
-            $link = $(link);
-
-            // 设置高度和宽度
-            $link.attr('width', width)
-                 .attr('height', height);
-
-            // 拼接字符串
-            html = html.replace('{content}', $div.append($link).html());
-
-            // 执行命令
-            editor.command(e, 'insertHtml', html);
-            $linkInput.val('');
-        });
-
-        // 创建panel
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $content,
-            width: 400
-        });
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// location 菜单
-_e(function (E, $) {
-
-    // 判断浏览器的 input 是否支持 keyup
-    var inputKeyup = (function (input) {
-        return 'onkeyup' in input;
-    })(document.createElement('input'));
-
-    // 百度地图的key
-    E.baiduMapAk = 'TVhjYjq1ICT2qqL5LdS8mwas';
-
-    // 一个页面中,如果有多个编辑器,地图会出现问题。这个参数记录一下,如果超过 1 就提示
-    E.numberOfLocation = 0;
-
-    E.createMenu(function (check) {
-        var menuId = 'location';
-        if (!check(menuId)) {
-            return;
-        }
-
-        if (++E.numberOfLocation > 1) {
-            E.error('目前不支持在一个页面多个编辑器上同时使用地图,可通过自定义菜单配置去掉地图菜单');
-            return;
-        }
-
-        var editor = this;
-        var config = editor.config;
-        var lang = config.lang;
-        var ak = config.mapAk;
-
-        // 地图的变量存储到这个地方
-        editor.mapData = {};
-        var mapData = editor.mapData;
-
-        // ---------- 地图事件 ----------
-        mapData.markers = [];
-        mapData.mapContainerId = 'map' + E.random();
-
-        mapData.clearLocations = function () {
-            var map = mapData.map;
-            if (!map) {
-                return;
-            }
-            map.clearOverlays();
-
-            //同时,清空marker数组
-            mapData.markers = [];
-        };
-
-        mapData.searchMap = function () {
-            var map = mapData.map;
-            if (!map) {
-                return;
-            }
-
-            var BMap = window.BMap;
-            var cityName = $cityInput.val();
-            var locationName = $searchInput.val();
-            var myGeo, marker;
-
-            if(cityName !== ''){
-                if(!locationName || locationName === ''){
-                    map.centerAndZoom(cityName, 11);
-                }
-
-                //地址解析
-                if(locationName && locationName !== ''){
-                    myGeo = new BMap.Geocoder();
-                    // 将地址解析结果显示在地图上,并调整地图视野
-                    myGeo.getPoint(locationName, function(point){
-                        if (point) {
-                            map.centerAndZoom(point, 13);
-                            marker = new BMap.Marker(point);
-                            map.addOverlay(marker);
-                            marker.enableDragging();  //允许拖拽
-                            mapData.markers.push(marker);  //将marker加入到数组中
-                        }else{
-                            // alert('未找到');
-                            map.centerAndZoom(cityName, 11);  //找不到则重新定位到城市
-                        }
-                    }, cityName);
-                }
-            } // if(cityName !== '')
-        };
-
-        // load script 之后的 callback
-        var hasCallback = false;
-        window.baiduMapCallBack = function(){
-            // 避免重复加载
-            if (hasCallback) {
-                return;
-            } else {
-                hasCallback = true;
-            }
-
-            var BMap = window.BMap;
-            if (!mapData.map) {
-                // 创建Map实例
-                mapData.map = new BMap.Map(mapData.mapContainerId);
-            }
-            var map = mapData.map;
-
-            map.centerAndZoom(new BMap.Point(116.404, 39.915), 11);  // 初始化地图,设置中心点坐标和地图级别
-            map.addControl(new BMap.MapTypeControl());   //添加地图类型控件
-            map.setCurrentCity("北京");          // 设置地图显示的城市 此项是必须设置的
-            map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
-
-            //根据IP定位
-            function locationFun(result){
-                var cityName = result.name;
-                map.setCenter(cityName);
-
-                // 设置城市名称
-                $cityInput.val(cityName);
-                if (E.placeholder) {
-                    $searchInput.focus();
-                }
-                var timeoutId, searchFn;
-                if (inputKeyup) {
-                   // 并绑定搜索事件 - input 支持 keyup
-                   searchFn = function (e) {
-                       if (e.type === 'keyup' && e.keyCode === 13) {
-                           e.preventDefault();
-                       }
-                       if (timeoutId) {
-                           clearTimeout(timeoutId);
-                       }
-                       timeoutId = setTimeout(mapData.searchMap, 500);
-                   };
-                   $cityInput.on('keyup change paste', searchFn);
-                   $searchInput.on('keyup change paste', searchFn); 
-                } else {
-                    // 并绑定搜索事件 - input 不支持 keyup
-                    searchFn = function () {
-                        if (!$content.is(':visible')) {
-                            // panel 不显示了,就不用再监控了
-                            clearTimeout(timeoutId);
-                            return;
-                        }
-
-                        var currentCity = '';
-                        var currentSearch = '';
-                        var city = $cityInput.val();
-                        var search = $searchInput.val();
-
-                        if (city !== currentCity || search !== currentSearch) {
-                            // 刚获取的数据和之前的数据不一致,执行查询
-                            mapData.searchMap();
-                            // 更新数据
-                            currentCity = city;
-                            currentSearch = search;
-                        }
-
-                        // 继续监控
-                        if (timeoutId) {
-                            clearTimeout(timeoutId);
-                        }
-                        timeoutId = setTimeout(searchFn, 1000);
-                    };
-                    // 开始监控
-                    timeoutId = setTimeout(searchFn, 1000);
-                }
-            }
-            var myCity = new BMap.LocalCity();
-            myCity.get(locationFun);
-
-            //鼠标点击,创建位置
-            map.addEventListener("click", function(e){
-                var marker = new BMap.Marker(new BMap.Point(e.point.lng, e.point.lat)); 
-                map.addOverlay(marker);  
-                marker.enableDragging();
-                mapData.markers.push(marker);  //加入到数组中
-            }, false);
-        };
-
-        mapData.loadMapScript = function () {
-            var script = document.createElement("script");
-            script.type = "text/javascript";
-            script.src = "https://api.map.baidu.com/api?v=2.0&ak=" + ak + "&s=1&callback=baiduMapCallBack";  // baiduMapCallBack是一个本地函数
-            try {
-                // IE10- 报错
-                document.body.appendChild(script);
-            } catch (ex) {
-                E.error('加载地图过程中发生错误');
-            }
-        };
-
-        // 初始化地图
-        mapData.initMap = function () {
-            if (window.BMap) {
-                // 不是第一次,直接处理地图即可
-                window.baiduMapCallBack();
-            } else {
-                // 第一次,先加载地图 script,再处理地图(script加载完自动执行处理)
-                mapData.loadMapScript();
-            }
-        };
-
-        // ---------- 创建 menu 对象 ----------
-
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.location
-        });
-
-        editor.menus[menuId] = menu;
-
-        // ---------- 构建UI ----------
-
-        // panel content 
-        var $content = $('<div></div>');
-
-        // 搜索框
-        var $inputContainer = $('<div style="margin:10px 0;"></div>');
-        var $cityInput = $('<input type="text"/>');
-        $cityInput.css({
-            width: '80px',
-            'text-align': 'center'
-        });
-        var $searchInput = $('<input type="text"/>');
-        $searchInput.css({
-            width: '300px',
-            'margin-left': '10px'
-        }).attr('placeholder', lang.searchlocation);
-        var $clearBtn = $('<button class="right link">' + lang.clearLocation + '</button>');
-        $inputContainer.append($clearBtn)
-                       .append($cityInput)
-                       .append($searchInput);
-        $content.append($inputContainer);
-
-        // 清除位置按钮
-        $clearBtn.click(function (e) {
-            $searchInput.val('');
-            $searchInput.focus();
-            mapData.clearLocations();
-            e.preventDefault();
-        });
-
-        // 地图
-        var $map = $('<div id="' + mapData.mapContainerId + '"></div>');
-        $map.css({
-            height: '260px',
-            width: '100%',
-            position: 'relative',
-            'margin-top': '10px',
-            border: '1px solid #f1f1f1'
-        });
-        var $mapLoading = $('<span>' + lang.loading + '</span>');
-        $mapLoading.css({
-            position: 'absolute',
-            width: '100px',
-            'text-align': 'center',
-            top: '45%',
-            left: '50%',
-            'margin-left': '-50px'
-        });
-        $map.append($mapLoading);
-        $content.append($map);
-
-        // 按钮
-        var $btnContainer = $('<div style="margin:10px 0;"></div>');
-        var $btnSubmit = $('<button class="right">' + lang.submit + '</button>');
-        var $btnCancel = $('<button class="right gray">' + lang.cancel + '</button>');
-        var $checkLabel = $('<label style="display:inline-block;margin-top:10px;color:#666;"></label>');
-        var $check = $('<input type="checkbox">');
-        $checkLabel.append($check).append('<span style="display:inline-block;margin-left:5px;">  ' + lang.dynamicMap + '</span>');
-        $btnContainer.append($checkLabel)
-                     .append($btnSubmit)
-                     .append($btnCancel);
-        $content.append($btnContainer);
-
-        function callback() {
-            $searchInput.val('');
-        }
-
-        // 『取消』按钮事件
-        $btnCancel.click(function (e) {
-            e.preventDefault();
-            callback();
-            menu.dropPanel.hide();
-        });
-
-        // 『确定』按钮事件
-        $btnSubmit.click(function (e) {
-            e.preventDefault();
-            var map = mapData.map,
-                isDynamic = $check.is(':checked'),
-                markers =  mapData.markers,
-
-                center = map.getCenter(),
-                centerLng = center.lng,
-                centerLat = center.lat,
-
-                zoom = map.getZoom(),
-
-                size = map.getSize(),
-                sizeWidth = size.width,
-                sizeHeight = size.height,
-
-                position,
-                src,
-                iframe;
-
-            if(isDynamic){
-                //动态地址
-                src = 'http://ueditor.baidu.com/ueditor/dialogs/map/show.html#';
-            }else{
-                //静态地址
-                src = 'http://api.map.baidu.com/staticimage?';
-            }
-
-            //src参数
-            src = src +'center=' + centerLng + ',' + centerLat +
-                '&zoom=' + zoom +
-                '&width=' + sizeWidth +
-                '&height=' + sizeHeight;
-            if(markers.length > 0){
-                src = src + '&markers=';
-
-                //添加所有的marker
-                $.each(markers, function(key, value){
-                    position = value.getPosition();
-                    if(key > 0){
-                        src = src + '|';
-                    }
-                    src = src + position.lng + ',' + position.lat;
-                });
-            }
-
-            if(isDynamic){
-                if(markers.length > 1){
-                    alert( lang.langDynamicOneLocation );
-                    return;
-                }
-
-                src += '&markerStyles=l,A';
-
-                //插入iframe
-                iframe = '<iframe class="ueditor_baidumap" src="{src}" frameborder="0" width="' + sizeWidth + '" height="' + sizeHeight + '"></iframe>';
-                iframe = iframe.replace('{src}', src);
-                editor.command(e, 'insertHtml', iframe, callback);
-            }else{
-                //插入图片
-                editor.command(e, 'insertHtml', '<img style="max-width:100%;" src="' + src + '"/>', callback);
-            }
-        });
-
-        // 根据 UI 创建菜单 panel
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $content,
-            width: 500
-        });
-
-        // ---------- 事件 ----------
-
-        // render 时执行事件
-        menu.onRender = function () {
-            if (ak === E.baiduMapAk) {
-                E.warn('建议在配置中自定义百度地图的mapAk,否则可能影响地图功能,文档:' + E.docsite);
-            }
-        };
-
-        // click 事件
-        menu.clickEvent = function (e) {
-            var menu = this;
-            var dropPanel = menu.dropPanel;
-            var firstTime = false;
-
-            // -------------隐藏-------------
-            if (dropPanel.isShowing) {
-                dropPanel.hide();
-                return;
-            }
-
-            // -------------显示-------------
-            if (!mapData.map) {
-                // 第一次,先加载地图
-                firstTime = true;
-            }
-            
-            dropPanel.show();
-            mapData.initMap();
-
-            if (!firstTime) {
-                $searchInput.focus();
-            }
-        };
-
-    });
-
-});
-// insertcode 菜单
-_e(function (E, $) {
-
-    // 加载 highlightjs 代码
-    function loadHljs() {
-        if (E.userAgent.indexOf('MSIE 8') > 0) {
-            // 不支持 IE8
-            return;
-        }
-        if (window.hljs) {
-            // 不要重复加载
-            return;
-        }
-        var script = document.createElement("script");
-        script.type = "text/javascript";
-        script.src = "//cdn.bootcss.com/highlight.js/9.2.0/highlight.min.js";
-        document.body.appendChild(script);
-    }
-    
-
-    E.createMenu(function (check) {
-        var menuId = 'insertcode';
-        if (!check(menuId)) {
-            return;
-        }
-
-        // 加载 highlightjs 代码
-        setTimeout(loadHljs, 0);
-
-        var editor = this;
-        var config = editor.config;
-        var lang = config.lang;
-        var $txt = editor.txt.$txt;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.insertcode
-        });
-
-        // click 事件
-        menu.clickEvent = function (e) {
-            var menu = this;
-            var dropPanel = menu.dropPanel;
-
-            // 隐藏
-            if (dropPanel.isShowing) {
-                dropPanel.hide();
-                return;
-            }
-
-            // 显示
-            $textarea.val('');
-            dropPanel.show();
-
-            // highlightjs 语言列表
-            var hljs = window.hljs;
-            if (hljs && hljs.listLanguages) {
-                if ($langSelect.children().length !== 0) {
-                    return;
-                }
-                $langSelect.css({
-                    'margin-top': '9px',
-                    'margin-left': '5px'
-                });
-                $.each(hljs.listLanguages(), function (key, lang) {
-                    if (lang === 'xml') {
-                        lang = 'html';
-                    }
-                    if (lang === config.codeDefaultLang) {
-                        $langSelect.append('<option value="' + lang + '" selected="selected">' + lang + '</option>');
-                    } else {
-                        $langSelect.append('<option value="' + lang + '">' + lang + '</option>');
-                    }
-                });
-            } else {
-                $langSelect.hide();
-            }
-        };
-
-        // 选中状态下的 click 事件
-        menu.clickEventSelected = function (e) {
-            var menu = this;
-            var dropPanel = menu.dropPanel;
-
-            // 隐藏
-            if (dropPanel.isShowing) {
-                dropPanel.hide();
-                return;
-            }
-
-            // 显示
-            dropPanel.show();
-
-            var rangeElem = editor.getRangeElem();
-            var targetElem = editor.getSelfOrParentByName(rangeElem, 'pre');
-            var $targetElem;
-            var className;
-            if (targetElem) {
-                // 确定找到 pre 之后,再找 code
-                targetElem = editor.getSelfOrParentByName(rangeElem, 'code');
-            }
-            if (!targetElem) {
-                return;
-            }
-            $targetElem = $(targetElem);
-
-            // 赋值内容
-            $textarea.val($targetElem.text());
-            if ($langSelect) {
-                // 赋值语言
-                className = $targetElem.attr('class');
-                if (className) {
-                    $langSelect.val(className.split(' ')[0]);
-                }
-            }
-        };
-
-        // 定义更新选中状态的事件
-        menu.updateSelectedEvent = function () {
-            var self = this; //菜单对象
-            var editor = self.editor;
-            var rangeElem;
-
-            rangeElem = editor.getRangeElem();
-            rangeElem = editor.getSelfOrParentByName(rangeElem, 'pre');
-
-            if (rangeElem) {
-                return true;
-            }
-
-            return false;
-        };
-
-        // 创建 panel
-        var $content = $('<div></div>');
-        var $textarea = $('<textarea></textarea>');
-        var $langSelect = $('<select></select>');
-        contentHandle($content);
-        menu.dropPanel = new E.DropPanel(editor, menu, {
-            $content: $content,
-            width: 500
-        });
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-
-        // ------ 增加 content 内容 ------
-        function contentHandle($content) {
-            // textarea 区域
-            var $textareaContainer = $('<div></div>');
-            $textareaContainer.css({
-                margin: '15px 5px 5px 5px',
-                height: '160px',
-                'text-align': 'center'
-            });
-            $textarea.css({
-                width: '100%',
-                height: '100%',
-                padding: '10px'
-            });
-            $textarea.on('keydown', function (e) {
-                // 取消 tab 键默认行为
-                if (e.keyCode === 9) {
-                    e.preventDefault();
-                }
-            });
-            $textareaContainer.append($textarea);
-            $content.append($textareaContainer);
-
-            // 按钮区域
-            var $btnContainer = $('<div></div>');
-            var $btnSubmit = $('<button class="right">' + lang.submit + '</button>');
-            var $btnCancel = $('<button class="right gray">' + lang.cancel + '</button>');
-
-            $btnContainer.append($btnSubmit).append($btnCancel).append($langSelect);
-            $content.append($btnContainer);
-
-            // 取消按钮
-            $btnCancel.click(function (e) {
-                e.preventDefault();
-                menu.dropPanel.hide();
-            });
-
-            // 确定按钮
-            var codeTpl = '<pre style="max-width:100%;overflow-x:auto;"><code{#langClass}>{#content}</code></pre>';
-            $btnSubmit.click(function (e) {
-                e.preventDefault();
-                var val = $textarea.val();
-                if (!val) {
-                    // 无内容
-                    $textarea.focus();
-                    return;
-                }
-
-                var rangeElem = editor.getRangeElem();
-                if ($.trim($(rangeElem).text()) && codeTpl.indexOf('<p><br></p>') !== 0) {
-                    codeTpl = '<p><br></p>' + codeTpl;
-                }
-
-                var lang = $langSelect ? $langSelect.val() : ''; // 获取高亮语言
-                var langClass = '';
-                var doHightlight = function () {
-                    $txt.find('pre code').each(function (i, block) {
-                        var $block = $(block);
-                        if ($block.attr('codemark')) {
-                            // 有 codemark 标记的代码块,就不再重新格式化了
-                            return;
-                        } else if (window.hljs) {
-                            // 新代码块,格式化之后,立即标记 codemark
-                            window.hljs.highlightBlock(block);
-                            $block.attr('codemark', '1');
-                        }
-                    });
-                };
-
-                // 语言高亮样式
-                if (lang) {
-                    langClass = ' class="' + lang + ' hljs"';
-                }
-
-                // 替换标签
-                val = val.replace(/&/gm, '&amp;')
-                         .replace(/</gm, '&lt;')
-                         .replace(/>/gm, '&gt;');
-
-                // ---- menu 未选中状态 ----
-                if (!menu.selected) {
-                    // 拼接html
-                    var html = codeTpl.replace('{#langClass}', langClass).replace('{#content}', val);
-                    editor.command(e, 'insertHtml', html, doHightlight);
-                    return;
-                }
-
-                // ---- menu 选中状态 ----
-                var targetElem = editor.getSelfOrParentByName(rangeElem, 'pre');
-                var $targetElem;
-                if (targetElem) {
-                    // 确定找到 pre 之后,再找 code
-                    targetElem = editor.getSelfOrParentByName(rangeElem, 'code');
-                }
-                if (!targetElem) {
-                    return;
-                }
-                $targetElem = $(targetElem);
-
-                function commandFn() {
-                    var className;
-                    if (lang) {
-                        className = $targetElem.attr('class');
-                        if (className !== lang + ' hljs') {
-                            $targetElem.attr('class', lang + ' hljs');
-                        }
-                    }
-                    $targetElem.html(val);
-                }
-                function callback() {
-                    editor.restoreSelectionByElem(targetElem);
-                    doHightlight();
-                }
-                editor.customCommand(e, commandFn, callback);
-            });
-        }
-
-        // ------ enter 时,不另起标签,只换行 ------
-        $txt.on('keydown', function (e) {
-            if (e.keyCode !== 13) {
-                return;
-            }
-            var rangeElem = editor.getRangeElem();
-            var targetElem = editor.getSelfOrParentByName(rangeElem, 'code');
-            if (!targetElem) {
-                return;
-            }
-
-            editor.command(e, 'insertHtml', '\n');
-        });
-
-        // ------ 点击时,禁用其他标签 ------
-        function updateMenu() {
-            var rangeElem = editor.getRangeElem();
-            var targetElem = editor.getSelfOrParentByName(rangeElem, 'code');
-            if (targetElem) {
-                // 在 code 之内,禁用其他菜单
-                editor.disableMenusExcept('insertcode');
-            } else {
-                // 不是在 code 之内,启用其他菜单
-                editor.enableMenusExcept('insertcode');
-            }
-        }
-        $txt.on('keydown click', function (e) {
-            // 此处必须使用 setTimeout 异步处理,否则不对
-            setTimeout(updateMenu);
-        });
-    });
-
-});
-// undo 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'undo';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.undo
-        });
-
-        // click 事件
-        menu.clickEvent = function (e) {
-            editor.undo();
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-
-
-        // ------------ 初始化时、enter 时、打字中断时,做记录 ------------
-        // ------------ ctrl + z 是调用记录撤销,而不是使用浏览器默认的撤销 ------------
-        editor.ready(function () {
-            var editor = this;
-            var $txt = editor.txt.$txt;
-            var timeoutId;
-
-            // 执行undo记录
-            function undo() {
-                editor.undoRecord();
-            }
-
-            $txt.on('keydown', function (e) {
-                var keyCode = e.keyCode;
-
-                // 撤销 ctrl + z
-                if (e.ctrlKey && keyCode === 90) {
-                    editor.undo();
-                    return;
-                }
-
-                if (keyCode === 13) {
-                    // enter 做记录
-                    undo();
-                } else {
-                    // keyup 之后 1s 之内不操作,则做一次记录
-                    if (timeoutId) {
-                        clearTimeout(timeoutId);
-                    }
-                    timeoutId = setTimeout(undo, 1000);
-                }
-            });
-
-            // 初始化做记录
-            editor.undoRecord();
-        });
-    });
-
-});
-// redo 菜单
-_e(function (E, $) {
-
-    E.createMenu(function (check) {
-        var menuId = 'redo';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var lang = editor.config.lang;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.redo
-        });
-
-        // click 事件
-        menu.clickEvent = function (e) {
-            editor.redo();
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// 全屏 菜单
-_e(function (E, $) {
-
-    // 记录全屏时的scrollTop
-    var scrollTopWhenFullScreen;
-
-    E.createMenu(function (check) {
-        var menuId = 'fullscreen';
-        if (!check(menuId)) {
-            return;
-        }
-        var editor = this;
-        var $txt = editor.txt.$txt;
-        var config = editor.config;
-        var zIndexConfig = config.zindex || 10000;
-        var lang = config.lang;
-
-        var isSelected = false;
-        var zIndex;
-
-        var maxHeight;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,
-            id: menuId,
-            title: lang.fullscreen
-        });
-
-        // 定义click事件
-        menu.clickEvent = function (e) {
-            // 增加样式
-            var $editorContainer = editor.$editorContainer;
-            $editorContainer.addClass('wangEditor-fullscreen');
-
-            // (先保存当前的)再设置z-index
-            zIndex = $editorContainer.css('z-index');
-            $editorContainer.css('z-index', zIndexConfig);
-
-            var $wrapper;
-            var txtHeight = $txt.height();
-            var txtOuterHeight = $txt.outerHeight();
-
-            if (editor.useMaxHeight) {
-                // 记录 max-height,并暂时去掉maxheight
-                maxHeight = $txt.css('max-height');
-                $txt.css('max-height', 'none');
-
-                // 如果使用了maxHeight, 将$txt从它的父元素中移出来
-                $wrapper = $txt.parent();
-                $wrapper.after($txt);
-                $wrapper.remove();
-                $txt.css('overflow-y', 'auto');
-            }
-
-            // 设置高度到全屏
-            var menuContainer = editor.menuContainer;
-            $txt.height(
-                E.$window.height() - 
-                menuContainer.height() - 
-                (txtOuterHeight - txtHeight)  // 去掉内边距和外边距
-            );
-
-            // 取消menuContainer的内联样式(menu吸顶时,会为 menuContainer 设置一些内联样式)
-            editor.menuContainer.$menuContainer.attr('style', '');
-
-            // 保存状态
-            isSelected = true;
-
-            // 记录编辑器是否全屏
-            editor.isFullScreen = true;
-
-            // 记录设置全屏时的高度
-            scrollTopWhenFullScreen = E.$window.scrollTop();
-        };
-
-        // 定义选中状态的 click 事件
-        menu.clickEventSelected = function (e) {
-            // 取消样式
-            var $editorContainer = editor.$editorContainer;
-            $editorContainer.removeClass('wangEditor-fullscreen');
-            $editorContainer.css('z-index', zIndex);
-
-            // 还原height
-            if (editor.useMaxHeight) {
-                $txt.css('max-height', maxHeight);
-            } else {
-                // editor.valueContainerHeight 在 editor.txt.initHeight() 中事先保存了
-                editor.$valueContainer.css('height', editor.valueContainerHeight);
-            }
-
-            // 重新计算高度
-            editor.txt.initHeight();
-
-            // 保存状态
-            isSelected = false;
-
-            // 记录编辑器是否全屏
-            editor.isFullScreen = false;
-
-            // 还原scrollTop
-            if (scrollTopWhenFullScreen != null) {
-                E.$window.scrollTop(scrollTopWhenFullScreen);
-            }
-        };
-
-        // 定义选中事件
-        menu.updateSelectedEvent = function (e) {
-            return isSelected;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// 渲染menus
-_e(function (E, $) {
-
-    E.fn.renderMenus = function () {
-
-        var editor = this;
-        var menus = editor.menus;
-        var menuIds = editor.config.menus;
-        var menuContainer = editor.menuContainer;
-
-        var menu;
-        var groupIdx = 0;
-        $.each(menuIds, function (k, v) {
-            if (v === '|') {
-                groupIdx++;
-                return;
-            }
-
-            menu = menus[v];
-            if (menu) {
-                menu.render(groupIdx);
-            }
-        });
-    };
-
-});
-// 渲染menus
-_e(function (E, $) {
-
-    E.fn.renderMenuContainer = function () {
-
-        var editor = this;
-        var menuContainer = editor.menuContainer;
-        var $editorContainer = editor.$editorContainer;
-
-        menuContainer.render();
-
-    };
-
-});
-// 渲染 txt
-_e(function (E, $) {
-
-    E.fn.renderTxt = function () {
-
-        var editor = this;
-        var txt = editor.txt;
-
-        txt.render();
-
-        // ready 时候,计算txt的高度
-        editor.ready(function () {
-            txt.initHeight();
-        });
-    };
-
-});
-// 渲染 container
-_e(function (E, $) {
-
-    E.fn.renderEditorContainer = function () {
-
-        var editor = this;
-        var $valueContainer = editor.$valueContainer;
-        var $editorContainer = editor.$editorContainer;
-        var $txt = editor.txt.$txt;
-        var $prev, $parent;
-
-        // 将编辑器渲染到页面中
-        if ($valueContainer === $txt) {
-            $prev = editor.$prev;
-            $parent = editor.$parent;
-
-            if ($prev && $prev.length) {
-                // 有前置节点,就插入到前置节点的后面
-                $prev.after($editorContainer);
-            } else {
-                // 没有前置节点,就直接插入到父元素
-                $parent.prepend($editorContainer);
-            }
-
-        } else {
-            $valueContainer.after($editorContainer);
-            $valueContainer.hide();
-        }
-
-        // 设置宽度(这样设置宽度有问题)
-        // $editorContainer.css('width', $valueContainer.css('width'));
-    };
-
-});
-// 菜单事件
-_e(function (E, $) {
-
-    // 绑定每个菜单的click事件
-    E.fn.eventMenus = function () {
-
-        var menus = this.menus;
-
-        // 绑定菜单的点击事件
-        $.each(menus, function (k, v) {
-            v.bindEvent();
-        });
-
-    };
-
-});
-// 菜单container事件
-_e(function (E, $) {
-
-    E.fn.eventMenuContainer = function () {
-
-    };
-
-});
-// 编辑区域事件
-_e(function (E, $) {
-
-    E.fn.eventTxt = function () {
-
-        var txt = this.txt;
-
-        // txt内容变化时,保存选区
-        txt.saveSelectionEvent();
-
-        // txt内容变化时,随时更新 value
-        txt.updateValueEvent();
-
-        // txt内容变化时,随时更新 menu style
-        txt.updateMenuStyleEvent();
-
-        // // 鼠标hover时,显示 p head 高度(暂时关闭这个功能)
-        // if (!/ie/i.test(E.userAgent)) {
-        //     // 暂时不支持IE
-        //     txt.showHeightOnHover();
-        // }
-    };
-
-});
-// 上传图片事件
-_e(function (E, $) {
-
-    E.plugin(function () {
-        var editor = this;
-        var fns = editor.config.uploadImgFns; // editor.config.uploadImgFns = {} 在config文件中定义了
-
-        // -------- 定义load函数 --------
-        fns.onload || (fns.onload = function (resultText, xhr) {
-            E.log('上传结束,返回结果为 ' + resultText);
-
-            var editor = this;
-            var originalName = editor.uploadImgOriginalName || '';  // 上传图片时,已经将图片的名字存在 editor.uploadImgOriginalName
-            var img;
-            if (resultText.indexOf('error|') === 0) {
-                // 提示错误
-                E.warn('上传失败:' + resultText.split('|')[1]);
-                alert(resultText.split('|')[1]);
-            } else {
-                E.log('上传成功,即将插入编辑区域,结果为:' + resultText);
-
-                // 将结果插入编辑器
-                img = document.createElement('img');
-                img.onload = function () {
-                    var html = '<img src="' + resultText + '" alt="' + originalName + '" style="max-width:100%;"/>';
-                    editor.command(null, 'insertHtml', html);
-
-                    E.log('已插入图片,地址 ' + resultText);
-                    img = null;
-                };
-                img.onerror = function () {
-                    E.error('使用返回的结果获取图片,发生错误。请确认以下结果是否正确:' + resultText);
-                    img = null;
-                };
-                img.src = resultText;
-            }
-
-        });
-
-        // -------- 定义tiemout函数 --------
-        fns.ontimeout || (fns.ontimeout = function (xhr) {
-            E.error('上传图片超时');
-            alert('上传图片超时');
-        });
-
-        // -------- 定义error函数 --------
-        fns.onerror || (fns.onerror = function (xhr) {
-            E.error('上传上图片发生错误');
-            alert('上传上图片发生错误');
-        });
-
-    });
-});
-// xhr 上传图片
-_e(function (E, $) {
-
-    if (!window.FileReader || !window.FormData) {
-        // 如果不支持html5的文档操作,直接返回
-        return;
-    }
-
-    E.plugin(function () {
-
-        var editor = this;
-        var config = editor.config;
-        var uploadImgUrl = config.uploadImgUrl;
-        var uploadTimeout = config.uploadTimeout;
-
-        // 获取配置中的上传事件
-        var uploadImgFns = config.uploadImgFns;
-        var onload = uploadImgFns.onload;
-        var ontimeout = uploadImgFns.ontimeout;
-        var onerror = uploadImgFns.onerror;
-
-        if (!uploadImgUrl) {
-            return;
-        }
-
-        // -------- 将以base64的图片url数据转换为Blob --------
-        function convertBase64UrlToBlob(urlData, filetype){
-            //去掉url的头,并转换为byte
-            var bytes = window.atob(urlData.split(',')[1]);
-            
-            //处理异常,将ascii码小于0的转换为大于0
-            var ab = new ArrayBuffer(bytes.length);
-            var ia = new Uint8Array(ab);
-            var i;
-            for (i = 0; i < bytes.length; i++) {
-                ia[i] = bytes.charCodeAt(i);
-            }
-
-            return new Blob([ab], {type : filetype});
-        }
-
-        // -------- 插入图片的方法 --------
-        function insertImg(src, event) {
-            var img = document.createElement('img');
-            img.onload = function () {
-                var html = '<img src="' + src + '" style="max-width:100%;"/>';
-                editor.command(event, 'insertHtml', html);
-
-                E.log('已插入图片,地址 ' + src);
-                img = null;
-            };
-            img.onerror = function () {
-                E.error('使用返回的结果获取图片,发生错误。请确认以下结果是否正确:' + src);
-                img = null;
-            };
-            img.src = src;
-        }
-
-        // -------- onprogress 事件 --------
-        function updateProgress(e) {
-            if (e.lengthComputable) {
-                var percentComplete = e.loaded / e.total;
-                editor.showUploadProgress(percentComplete * 100);
-            }
-        }
-
-        // -------- xhr 上传图片 --------
-        editor.xhrUploadImg = function (opt) {
-            // opt 数据
-            var event = opt.event;
-            var fileName = opt.filename || '';
-            var base64 = opt.base64;
-            var fileType = opt.fileType || 'image/png'; // 无扩展名则默认使用 png
-            var name = opt.name || 'wangEditor_upload_file';
-            var loadfn = opt.loadfn || onload;
-            var errorfn = opt.errorfn || onerror;
-            var timeoutfn = opt.timeoutfn || ontimeout;
-
-            // 上传参数(如 token)
-            var params = editor.config.uploadParams || {};
-
-            // headers
-            var headers = editor.config.uploadHeaders || {};
-
-            // 获取文件扩展名
-            var fileExt = 'png';  // 默认为 png
-            if (fileName.indexOf('.') > 0) {
-                // 原来的文件名有扩展名
-                fileExt = fileName.slice(fileName.lastIndexOf('.') - fileName.length + 1);
-            } else if (fileType.indexOf('/') > 0 && fileType.split('/')[1]) {
-                // 文件名没有扩展名,通过类型获取,如从 'image/png' 取 'png'
-                fileExt = fileType.split('/')[1];
-            }
-
-            // ------------ begin 预览模拟上传 ------------
-            if (E.isOnWebsite) {
-                E.log('预览模拟上传');
-                insertImg(base64, event);
-                return;
-            }
-            // ------------ end 预览模拟上传 ------------
-
-            // 变量声明
-            var xhr = new XMLHttpRequest();
-            var timeoutId;
-            var src;
-            var formData = new FormData();
-
-            // 超时处理
-            function timeoutCallback() {
-                if (timeoutId) {
-                    clearTimeout(timeoutId);
-                }
-                if (xhr && xhr.abort) {
-                    xhr.abort();
-                }
-
-                // 超时了就阻止默认行为
-                event.preventDefault();
-
-                // 执行回调函数,提示什么内容,都应该在回调函数中定义
-                timeoutfn && timeoutfn.call(editor, xhr);
-
-                // 隐藏进度条
-                editor.hideUploadProgress();
-            }
-
-            xhr.onload = function () {
-                if (timeoutId) {
-                    clearTimeout(timeoutId);
-                }
-
-                // 记录文件名到 editor.uploadImgOriginalName ,插入图片时,可做 alt 属性用
-                editor.uploadImgOriginalName = fileName;
-                if (fileName.indexOf('.') > 0) {
-                    editor.uploadImgOriginalName = fileName.split('.')[0];
-                }
-
-                // 执行load函数,任何操作,都应该在load函数中定义
-                loadfn && loadfn.call(editor, xhr.responseText, xhr);
-
-                // 隐藏进度条
-                editor.hideUploadProgress();
-            };
-            xhr.onerror = function () {
-                if (timeoutId) {
-                    clearTimeout(timeoutId);
-                }
-
-                // 超时了就阻止默认行为
-                event.preventDefault();
-
-                // 执行error函数,错误提示,应该在error函数中定义
-                errorfn && errorfn.call(editor, xhr);
-
-                // 隐藏进度条
-                editor.hideUploadProgress();
-            };
-            // xhr.onprogress = updateProgress;
-            xhr.upload.onprogress = updateProgress;
-
-            // 填充数据
-            formData.append(name, convertBase64UrlToBlob(base64, fileType), E.random() + '.' + fileExt);
-
-            // 添加参数
-            $.each(params, function (key, value) {
-                formData.append(key, value);
-            });
-
-            // 开始上传
-            xhr.open('POST', uploadImgUrl, true);
-            // xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");  // 将参数解析成传统form的方式上传
-
-            // 修改自定义配置的headers
-            $.each(headers, function (key, value) {
-                xhr.setRequestHeader(key, value);
-            });
-
-            // 跨域上传时,传cookie
-            xhr.withCredentials = editor.config.withCredentials || true;
-
-            // 发送数据
-            xhr.send(formData);
-            timeoutId = setTimeout(timeoutCallback, uploadTimeout);
-
-            E.log('开始上传...并开始超时计算');
-        };
-    });
-});
-// 进度条
-_e(function (E, $) {
-
-    E.plugin(function () {
-
-        var editor = this;
-        var menuContainer = editor.menuContainer;
-        var menuHeight = menuContainer.height();
-        var $editorContainer = editor.$editorContainer;
-        var width = $editorContainer.width();
-        var $progress = $('<div class="wangEditor-upload-progress"></div>');
-
-        // 渲染事件
-        var isRender = false;
-        function render() {
-            if (isRender) {
-                return;
-            }
-            isRender = true;
-
-            $progress.css({
-                top: menuHeight + 'px'
-            });
-            $editorContainer.append($progress);
-        }
-
-        // ------ 显示进度 ------
-        editor.showUploadProgress = function (progress) {
-            if (timeoutId) {
-                clearTimeout(timeoutId);
-            }
-
-            // 显示之前,先判断是否渲染
-            render();
-
-            $progress.show();
-            $progress.width(progress * width / 100);
-        };
-
-        // ------ 隐藏进度条 ------
-        var timeoutId;
-        function hideProgress() {
-            $progress.hide();
-            timeoutId = null;
-        }
-        editor.hideUploadProgress = function (time) {
-            if (timeoutId) {
-                clearTimeout(timeoutId);
-            }
-            time = time || 750;
-            timeoutId = setTimeout(hideProgress, time);
-        };
-    });
-});
-// upload img 插件
-_e(function (E, $) {
-
-    E.plugin(function () {
-        var editor = this;
-        var config = editor.config;
-        var uploadImgUrl = config.uploadImgUrl;
-        var uploadTimeout = config.uploadTimeout;
-        var event;
-
-        if (!uploadImgUrl) {
-            return;
-        }
-
-        // 获取editor的上传dom
-        var $uploadContent = editor.$uploadContent;
-        if (!$uploadContent) {
-            return;
-        }
-
-        // 自定义UI,并添加到上传dom节点上
-        var $uploadIcon = $('<div class="upload-icon-container"><i class="wangeditor-menu-img-upload"></i></div>');
-        $uploadContent.append($uploadIcon);
-
-        // ---------- 构建上传对象 ----------
-        var upfile = new E.UploadFile({
-            editor: editor,
-            uploadUrl: uploadImgUrl,
-            timeout: uploadTimeout,
-            fileAccept: 'image/jpg,image/jpeg,image/png,image/gif,image/bmp'    // 只允许选择图片 
-        });
-
-        // 选择本地文件,上传
-        $uploadIcon.click(function (e) {
-            event = e;
-            upfile.selectFiles();
-        });
-    });
-});
-// h5 方式上传图片
-_e(function (E, $) {
-
-    if (!window.FileReader || !window.FormData) {
-        // 如果不支持html5的文档操作,直接返回
-        return;
-    }
-
-    // 构造函数
-    var UploadFile = function (opt) {
-        this.editor = opt.editor;
-        this.uploadUrl = opt.uploadUrl;
-        this.timeout = opt.timeout;
-        this.fileAccept = opt.fileAccept;
-        this.multiple = true;
-    };
-
-    UploadFile.fn = UploadFile.prototype;
-
-    // clear
-    UploadFile.fn.clear = function () {
-        this.$input.val('');
-        E.log('input value 已清空');
-    };
-
-    // 渲染
-    UploadFile.fn.render = function () {
-        var self = this;
-        if (self._hasRender) {
-            // 不要重复渲染
-            return;
-        }
-
-        E.log('渲染dom');
-
-        var fileAccept = self.fileAccept;
-        var acceptTpl = fileAccept ? 'accept="' + fileAccept + '"' : '';
-        var multiple = self.multiple;
-        var multipleTpl = multiple ? 'multiple="multiple"' : '';
-        var $input = $('<input type="file" ' + acceptTpl + ' ' + multipleTpl + '/>');
-        var $container = $('<div style="display:none;"></div>');
-
-        $container.append($input);
-        E.$body.append($container);
-
-        // onchange 事件
-        $input.on('change', function (e) {
-            self.selected(e, $input.get(0));
-        });
-
-        // 记录对象数据
-        self.$input = $input;
-
-        // 记录
-        self._hasRender = true;
-    };
-
-    // 选择
-    UploadFile.fn.selectFiles = function () {
-        var self = this;
-
-        E.log('使用 html5 方式上传');
-
-        // 先渲染
-        self.render();
-
-        // 选择
-        E.log('选择文件');
-        self.$input.click();
-    };
-
-    // 选中文件之后
-    UploadFile.fn.selected = function (e, input) {
-        var self = this;
-        var files = input.files || [];
-        if (files.length === 0) {
-            return;
-        }
-
-        E.log('选中 ' + files.length + ' 个文件');
-
-        // 遍历选中的文件,预览、上传
-        $.each(files, function (key, value) {
-            self.upload(value);
-        });
-    };
-
-    // 上传单个文件
-    UploadFile.fn.upload = function (file) {
-        var self = this;
-        var editor = self.editor;
-        var filename = file.name || '';
-        var fileType = file.type || '';
-        var uploadImgFns = editor.config.uploadImgFns;
-        var uploadFileName = editor.config.uploadImgFileName || 'wangEditorH5File';
-        var onload = uploadImgFns.onload;
-        var ontimeout = uploadImgFns.ontimeout;
-        var onerror = uploadImgFns.onerror;
-        var reader = new FileReader();
-
-        if (!onload || !ontimeout || !onerror) {
-            E.error('请为编辑器配置上传图片的 onload ontimeout onerror 回调事件');
-            return;
-        }
-
-
-        E.log('开始执行 ' + filename + ' 文件的上传');
-
-        // 清空 input 数据
-        function clearInput() {
-            self.clear();
-        }
-
-        // onload事件
-        reader.onload = function (e) {
-            E.log('已读取' + filename + '文件');
-
-            var base64 = e.target.result || this.result;
-            editor.xhrUploadImg({
-                event: e,
-                filename: filename,
-                base64: base64,
-                fileType: fileType,
-                name: uploadFileName,
-                loadfn: function (resultText, xhr) {
-                    clearInput();
-                    // 执行配置中的方法
-                    var editor = this;
-                    onload.call(editor, resultText, xhr);
-                },
-                errorfn: function (xhr) {
-                    clearInput();
-                    if (E.isOnWebsite) {
-                        alert('wangEditor官网暂时没有服务端,因此报错。实际项目中不会发生');
-                    }
-                    // 执行配置中的方法
-                    var editor = this;
-                    onerror.call(editor, xhr);
-                },
-                timeoutfn: function (xhr) {
-                    clearInput();
-                    if (E.isOnWebsite) {
-                        alert('wangEditor官网暂时没有服务端,因此超时。实际项目中不会发生');
-                    }
-                    // 执行配置中的方法
-                    var editor = this;
-                    ontimeout(editor, xhr);
-                }
-            });
-        };
-
-        // 开始取文件
-        reader.readAsDataURL(file);
-    };
-
-    // 暴露给 E
-    E.UploadFile = UploadFile;
-
-});
-// form方式上传图片
-_e(function (E, $) {
-
-    if (window.FileReader && window.FormData) {
-        // 如果支持 html5 上传,则返回
-        return;
-    }
-    
-    // 构造函数
-    var UploadFile = function (opt) {
-        this.editor = opt.editor;
-        this.uploadUrl = opt.uploadUrl;
-        this.timeout = opt.timeout;
-        this.fileAccept = opt.fileAccept;
-        this.multiple = false;
-    };
-
-    UploadFile.fn = UploadFile.prototype;
-
-    // clear
-    UploadFile.fn.clear = function () {
-        this.$input.val('');
-        E.log('input value 已清空');
-    };
-
-    // 隐藏modal
-    UploadFile.fn.hideModal = function () {
-        this.modal.hide();
-    };
-
-    // 渲染
-    UploadFile.fn.render = function () {
-        var self = this;
-        var editor = self.editor;
-        var uploadFileName = editor.config.uploadImgFileName || 'wangEditorFormFile';
-        if (self._hasRender) {
-            // 不要重复渲染
-            return;
-        }
-
-        // 服务器端路径
-        var uploadUrl = self.uploadUrl;
-
-        E.log('渲染dom');
-
-        // 创建 form 和 iframe
-        var iframeId = 'iframe' + E.random();
-        var $iframe = $('<iframe name="' + iframeId + '" id="' + iframeId + '" frameborder="0" width="0" height="0"></iframe>');
-        var multiple = self.multiple;
-        var multipleTpl = multiple ? 'multiple="multiple"' : '';
-        var $p = $('<p>选择图片并上传</p>');
-        var $input = $('<input type="file" ' + multipleTpl + ' name="' + uploadFileName + '"/>');
-        var $btn = $('<input type="submit" value="上传"/>');
-        var $form = $('<form enctype="multipart/form-data" method="post" action="' + uploadUrl + '" target="' + iframeId + '"></form>');
-        var $container = $('<div style="margin:10px 20px;"></div>');
-
-        $form.append($p).append($input).append($btn);
-
-        // 增加用户配置的参数,如 token
-        $.each(editor.config.uploadParams, function (key, value) {
-            $form.append( $('<input type="hidden" name="' + key + '" value="' + value + '"/>') );
-        });
-
-        $container.append($form);
-        $container.append($iframe);
-
-        self.$input = $input;
-        self.$iframe = $iframe;
-
-        // 生成 modal
-        var modal = new E.Modal(editor, undefined, {
-            $content: $container
-        });
-        self.modal = modal;
-
-        // 记录
-        self._hasRender = true;
-    };
-
-    // 绑定 iframe load 事件
-    UploadFile.fn.bindLoadEvent = function () {
-        var self = this;
-        if (self._hasBindLoad) {
-            // 不要重复绑定
-            return;
-        }
-
-        var editor = self.editor;
-        var $iframe = self.$iframe;
-        var iframe = $iframe.get(0);
-        var iframeWindow = iframe.contentWindow;
-        var onload = editor.config.uploadImgFns.onload;
-
-        // 定义load事件
-        function onloadFn() {
-            var resultText = $.trim(iframeWindow.document.body.innerHTML);
-            if (!resultText) {
-                return;
-            }
-
-            // 获取文件名
-            var fileFullName = self.$input.val();  // 结果如 C:\folder\abc.png 格式
-            var fileOriginalName = fileFullName;
-            if (fileFullName.lastIndexOf('\\') >= 0) {
-                // 获取 abc.png 格式
-                fileOriginalName = fileFullName.slice(fileFullName.lastIndexOf('\\') + 1);
-                if (fileOriginalName.indexOf('.') > 0) {
-                    // 获取 abc (即不带扩展名的文件名)
-                    fileOriginalName = fileOriginalName.split('.')[0];
-                }
-            }
-
-            // 将文件名暂存到 editor.uploadImgOriginalName ,插入图片时,可作为 alt 属性来用
-            editor.uploadImgOriginalName = fileOriginalName;
-
-            // 执行load函数,插入图片的操作,应该在load函数中执行
-            onload.call(editor, resultText);
-
-            // 清空 input 数据
-            self.clear();
-
-            // 隐藏modal
-            self.hideModal();
-        }
-
-        // 绑定 load 事件
-        if (iframe.attachEvent) {
-            iframe.attachEvent('onload', onloadFn);
-        } else {
-            iframe.onload = onloadFn;
-        }
-
-        // 记录
-        self._hasBindLoad = true;
-    };
-
-    UploadFile.fn.show = function () {
-        var self = this;
-        var modal = self.modal;
-
-        function show() {
-            modal.show();
-            self.bindLoadEvent();
-        }
-        setTimeout(show);
-    };
-
-    // 选择
-    UploadFile.fn.selectFiles = function () {
-        var self = this;
-
-        E.log('使用 form 方式上传');
-
-        // 先渲染
-        self.render();
-
-        // 先清空
-        self.clear();
-
-        // 显示
-        self.show();
-    };
-
-    // 暴露给 E
-    E.UploadFile = UploadFile;
-
-});
-// upload img 插件 粘贴图片
-_e(function (E, $) {
-    
-    E.plugin(function () {
-        var editor = this;
-        var txt = editor.txt;
-        var $txt = txt.$txt;
-        var config = editor.config;
-        var uploadImgUrl = config.uploadImgUrl;
-        var uploadFileName = config.uploadImgFileName || 'wangEditorPasteFile';
-        var pasteEvent;
-        var $imgsBeforePaste;
-
-        // 未配置上传图片url,则忽略
-        if (!uploadImgUrl) {
-            return;
-        }
-
-        // -------- 非 chrome 下,通过查找粘贴的图片的方式上传 --------
-        function findPasteImgAndUpload() {
-            var reg = /^data:(image\/\w+);base64/;
-            var $imgs = $txt.find('img');
-
-            E.log('粘贴后,检查到编辑器有' + $imgs.length + '个图片。开始遍历图片,试图找到刚刚粘贴过来的图片');
-
-            $.each($imgs, function () {
-                var img = this;
-                var $img = $(img);
-                var flag;
-                var base64 = $img.attr('src');
-                var type;
-
-                // 判断当前图片是否是粘贴之前的
-                $imgsBeforePaste.each(function () {
-                    if (img === this) {
-                        // 当前图片是粘贴之前的
-                        flag = true;
-                        return false;
-                    }
-                });
-
-                // 当前图片是粘贴之前的,则忽略
-                if (flag) {
-                    return;
-                }
-
-                E.log('找到一个粘贴过来的图片');
-
-                if (reg.test(base64)) {
-                    // 得到的粘贴的图片是 base64 格式,符合要求
-                    E.log('src 是 base64 格式,可以上传');
-                    type = base64.match(reg)[1];
-                    editor.xhrUploadImg({
-                        event: pasteEvent,
-                        base64: base64,
-                        fileType: type,
-                        name: uploadFileName
-                    });
-                } else {
-                    E.log('src 为 ' + base64 + ' ,不是 base64 格式,暂时不支持上传');
-                }
-
-                // 最终移除原图片
-                $img.remove();
-            });
-
-            E.log('遍历结束');
-        }
-
-        // 开始监控粘贴事件
-        $txt.on('paste', function (e) {
-            pasteEvent = e;
-            var data = pasteEvent.clipboardData || pasteEvent.originalEvent.clipboardData;
-            var text;
-            var items;
-
-            // -------- 试图获取剪切板中的文字,有文字的情况下,就不处理图片粘贴 --------
-            if (data == null) {
-                text = window.clipboardData && window.clipboardData.getData('text');
-            } else {
-                text = data.getData('text/plain') || data.getData('text/html');
-            }
-            if (text) {
-                return;
-            }
-
-            items = data && data.items;
-            if (items) {
-                // -------- chrome 可以用 data.items 取出图片 -----
-                E.log('通过 data.items 得到了数据');
-
-                $.each(items, function (key, value) {
-                    var fileType = value.type || '';
-                    if(fileType.indexOf('image') < 0) {
-                        // 不是图片
-                        return;
-                    }
-
-                    var file = value.getAsFile();
-                    var reader = new FileReader();
-
-                    E.log('得到一个粘贴图片');
-
-                    reader.onload = function (e) {
-                        E.log('读取到粘贴的图片');
-
-                        // 执行上传
-                        var base64 = e.target.result || this.result;
-                        editor.xhrUploadImg({
-                            event: pasteEvent,
-                            base64: base64,
-                            fileType: fileType,
-                            name: uploadFileName
-                        });
-                    };
-
-                    //读取粘贴的文件
-                    reader.readAsDataURL(file);
-                });
-            } else {
-                // -------- 非 chrome 不能用 data.items 取图片 -----
-
-                E.log('未从 data.items 得到数据,使用检测粘贴图片的方式');
-
-                // 获取
-                $imgsBeforePaste = $txt.find('img');
-                E.log('粘贴前,检查到编辑器有' + $imgsBeforePaste.length + '个图片');
-
-                // 异步上传找到的图片
-                setTimeout(findPasteImgAndUpload, 0);
-            }
-        });
-
-    });
-});
-// 拖拽上传图片 插件 
-_e(function (E, $) {
-
-    E.plugin(function () {
-
-        var editor = this;
-        var txt = editor.txt;
-        var $txt = txt.$txt;
-        var config = editor.config;
-        var uploadImgUrl = config.uploadImgUrl;
-        var uploadFileName = config.uploadImgFileName || 'wangEditorDragFile';
-
-        // 未配置上传图片url,则忽略
-        if (!uploadImgUrl) {
-            return;
-        }
-
-        // 阻止浏览器默认行为
-        E.$document.on('dragleave drop dragenter dragover', function (e) {
-            e.preventDefault();
-        });
-
-        // 监控 $txt drop 事件
-        $txt.on('drop', function (dragEvent) {
-            dragEvent.preventDefault();
-
-            var originalEvent = dragEvent.originalEvent;
-            var files = originalEvent.dataTransfer && originalEvent.dataTransfer.files;
-
-            if (!files || !files.length) {
-                return;
-            }
-
-            $.each(files, function (k, file) {
-                var type = file.type;
-                var name = file.name;
-
-                if (type.indexOf('image/') < 0) {
-                    // 只接收图片
-                    return;
-                }
-
-                E.log('得到图片 ' + name);
-
-                var reader = new FileReader();
-                reader.onload = function (e) {
-                    E.log('读取到图片 ' + name);
-
-                    // 执行上传
-                    var base64 = e.target.result || this.result;
-                    editor.xhrUploadImg({
-                        event: dragEvent,
-                        base64: base64,
-                        fileType: type,
-                        name: uploadFileName
-                    });
-                };
-
-                //读取粘贴的文件
-                reader.readAsDataURL(file);
-
-            });
-        });
-    });
-
-});
-// 编辑器区域 table toolbar
-_e(function (E, $) {
-
-    E.plugin(function () {
-        var editor = this;
-        var txt = editor.txt;
-        var $txt = txt.$txt;
-        var html = '';
-        // 说明:设置了 max-height 之后,$txt.parent() 负责滚动处理
-        var $currentTxt = editor.useMaxHeight ? $txt.parent() : $txt;
-        var $currentTable;
-
-        // 用到的dom节点
-        var isRendered = false;
-        var $toolbar = $('<div class="txt-toolbar"></div>');
-        var $triangle = $('<div class="tip-triangle"></div>');
-        var $delete = $('<a href="#"><i class="wangeditor-menu-img-trash-o"></i></a>');
-        var $zoomSmall = $('<a href="#"><i class="wangeditor-menu-img-search-minus"></i></a>');
-        var $zoomBig = $('<a href="#"><i class="wangeditor-menu-img-search-plus"></i></a>');
-
-        // 渲染到页面
-        function render() {
-            if (isRendered) {
-                return;
-            }
-            
-            // 绑定事件
-            bindEvent();
-
-            // 拼接 渲染到页面上
-            $toolbar.append($triangle)
-                    .append($delete)
-                    .append($zoomSmall)
-                    .append($zoomBig);
-            editor.$editorContainer.append($toolbar);
-            isRendered = true;
-        }
-
-        // 绑定事件
-        function bindEvent() {
-            // 统一执行命令的方法
-            var commandFn;
-            function command(e, callback) {
-                // 执行命令之前,先存储html内容
-                html = $txt.html();
-                // 监控内容变化
-                var cb = function  () {
-                    if (callback) {
-                        callback();
-                    }
-                    if (html !== $txt.html()) {
-                        $txt.change();
-                    }
-                };
-                // 执行命令
-                if (commandFn) {
-                    editor.customCommand(e, commandFn, cb);
-                }
-            }
-
-            // 删除
-            $delete.click(function (e) {
-                commandFn = function () {
-                    $currentTable.remove();
-                };
-                command(e, function () {
-                    setTimeout(hide, 100);
-                });
-            });
-
-            // 放大
-            $zoomBig.click(function (e) {
-                commandFn = function () {
-                    $currentTable.css({
-                        width: '100%'
-                    });
-                };
-                command(e, function () {
-                    setTimeout(show);
-                });
-            });
-
-            // 缩小
-            $zoomSmall.click(function (e) {
-                commandFn = function () {
-                    $currentTable.css({
-                        width: 'auto'
-                    });
-                };
-                command(e, function () {
-                    setTimeout(show);
-                });
-            });
-        }
-
-        // 显示 toolbar
-        function show() {
-            if (editor._disabled) {
-                // 编辑器已经被禁用,则不让显示
-                return;
-            }
-            if ($currentTable == null) {
-                return;
-            }
-            $currentTable.addClass('clicked');
-            var tablePosition = $currentTable.position();
-            var tableTop = tablePosition.top;
-            var tableLeft = tablePosition.left;
-            var tableHeight = $currentTable.outerHeight();
-            var tableWidth = $currentTable.outerWidth();
-
-            // --- 定位 toolbar ---
-
-            // 计算初步结果
-            var top = tableTop + tableHeight;
-            var left = tableLeft;
-            var marginLeft = 0;
-
-            var txtTop = $currentTxt.position().top;
-            var txtHeight = $currentTxt.outerHeight();
-            if (top > (txtTop + txtHeight)) {
-                // top 不得超出编辑范围
-                top = txtTop + txtHeight;
-            }
-
-            // 显示(方便计算 margin)
-            $toolbar.show();
-
-            // 计算 margin
-            var width = $toolbar.outerWidth();
-            marginLeft = tableWidth / 2 - width / 2;
-
-            // 定位
-            $toolbar.css({
-                top: top + 5,
-                left: left,
-                'margin-left': marginLeft
-            });
-            // 如果定位太靠左了
-            if (marginLeft < 0) {
-                // 得到三角形的margin-left
-                $toolbar.css('margin-left', '0');
-                $triangle.hide();
-            } else {
-                $triangle.show();
-            }
-        }
-        
-        // 隐藏 toolbar
-        function hide() {
-            if ($currentTable == null) {
-                return;
-            }
-            $currentTable.removeClass('clicked');
-            $currentTable = null;
-            $toolbar.hide();
-        }
-
-        // click table 事件
-        $currentTxt.on('click', 'table', function (e) {
-            var $table = $(e.currentTarget);
-
-            // 渲染
-            render();
-
-            if ($currentTable && ($currentTable.get(0) === $table.get(0))) {
-                setTimeout(hide, 100);
-                return;
-            }
-
-            // 显示 toolbar
-            $currentTable = $table;
-            show();
-
-            // 阻止冒泡
-            e.preventDefault();
-            e.stopPropagation();
-            
-        }).on('click keydown scroll', function (e) {
-            setTimeout(hide, 100);
-        });
-        E.$body.on('click keydown scroll', function (e) {
-            setTimeout(hide, 100);
-        });
-    });
-
-});
-// 编辑器区域 img toolbar
-_e(function (E, $) {
-
-    if (E.userAgent.indexOf('MSIE 8') > 0) {
-        return;
-    }
-    
-    E.plugin(function () {
-        var editor = this;
-        var lang = editor.config.lang;
-        var txt = editor.txt;
-        var $txt = txt.$txt;
-        var html = '';
-        // 说明:设置了 max-height 之后,$txt.parent() 负责滚动处理
-        var $currentTxt = editor.useMaxHeight ? $txt.parent() : $txt;
-        var $editorContainer = editor.$editorContainer;
-        var $currentImg;
-        var currentLink = '';
-
-        // 用到的dom节点
-        var isRendered = false;
-        var $dragPoint = $('<div class="img-drag-point"></div>');
-
-        var $toolbar = $('<div class="txt-toolbar"></div>');
-        var $triangle = $('<div class="tip-triangle"></div>');
-
-        var $menuContainer = $('<div></div>');
-        var $delete = $('<a href="#"><i class="wangeditor-menu-img-trash-o"></i></a>');
-        var $zoomSmall = $('<a href="#"><i class="wangeditor-menu-img-search-minus"></i></a>');
-        var $zoomBig = $('<a href="#"><i class="wangeditor-menu-img-search-plus"></i></a>');
-        // var $floatLeft = $('<a href="#"><i class="wangeditor-menu-img-align-left"></i></a>');
-        // var $noFloat = $('<a href="#"><i class="wangeditor-menu-img-align-justify"></i></a>');
-        // var $floatRight = $('<a href="#"><i class="wangeditor-menu-img-align-right"></i></a>');
-        var $alignLeft = $('<a href="#"><i class="wangeditor-menu-img-align-left"></i></a>');
-        var $alignCenter = $('<a href="#"><i class="wangeditor-menu-img-align-center"></i></a>');
-        var $alignRight = $('<a href="#"><i class="wangeditor-menu-img-align-right"></i></a>');
-        var $link = $('<a href="#"><i class="wangeditor-menu-img-link"></i></a>');
-        var $unLink = $('<a href="#"><i class="wangeditor-menu-img-unlink"></i></a>');
-
-        var $linkInputContainer = $('<div style="display:none;"></div>');
-        var $linkInput = $('<input type="text" style="height:26px; margin-left:10px; width:200px;"/>');
-        var $linkBtnSubmit = $('<button class="right">' + lang.submit + '</button>');
-        var $linkBtnCancel = $('<button class="right gray">' + lang.cancel + '</button>');
-
-        // 记录是否正在拖拽
-        var isOnDrag = false;
-
-        // 获取 / 设置 链接
-        function imgLink(e, url) {
-            if (!$currentImg) {
-                return;
-            }
-            var commandFn;
-            var callback = function () {
-                // 及时保存currentLink
-                if (url != null) {
-                    currentLink = url;
-                }
-                if (html !== $txt.html()) {
-                    $txt.change();
-                }
-            };
-            var $link;
-            var inLink = false;
-            var $parent = $currentImg.parent();
-            if ($parent.get(0).nodeName.toLowerCase() === 'a') {
-                // 父元素就是图片链接
-                $link = $parent;
-                inLink = true;
-            } else {
-                // 父元素不是图片链接,则重新创建一个链接
-                $link = $('<a target="_blank"></a>');
-            }
-
-            if (url == null) {
-                // url 无值,是获取链接
-                return $link.attr('href') || '';
-            } else if (url === '') {
-                // url 是空字符串,是取消链接
-                if (inLink) {
-                    commandFn = function () {
-                        $currentImg.unwrap();
-                    };
-                }
-            } else {
-                // url 有值,是设置链接
-                if (url === currentLink) {
-                    return;
-                }
-                commandFn = function () {
-                    $link.attr('href', url);
-
-                    if (!inLink) {
-                        // 当前图片未包含在链接中,则包含进来
-                        $currentImg.wrap($link);
-                    }
-                };
-            }
-
-            // 执行命令
-            if (commandFn) {
-                // 记录下执行命令之前的html内容
-                html = $txt.html();
-                // 执行命令
-                editor.customCommand(e, commandFn, callback);
-            }
-        }
-
-        // 渲染到页面
-        function render() {
-            if (isRendered) {
-                return;
-            }
-            
-            // 绑定事件
-            bindToolbarEvent();
-            bindDragEvent();
-
-            // 菜单放入 container
-            $menuContainer.append($delete)
-                            .append($zoomSmall)
-                            .append($zoomBig)
-                            // .append($floatLeft)
-                            // .append($noFloat)
-                            // .append($floatRight);
-                            .append($alignLeft)
-                            .append($alignCenter)
-                            .append($alignRight)
-                            .append($link)
-                            .append($unLink);
-
-            // 链接input放入container
-            $linkInputContainer.append($linkInput)
-                               .append($linkBtnCancel)
-                               .append($linkBtnSubmit);
-
-            // 拼接 渲染到页面上
-            $toolbar.append($triangle)
-                    .append($menuContainer)
-                    .append($linkInputContainer);
-                    
-            editor.$editorContainer.append($toolbar).append($dragPoint);
-            isRendered = true;
-        }
-
-        // 绑定toolbar事件
-        function bindToolbarEvent() {
-            // 统一执行命令的方法
-            var commandFn;
-            function customCommand(e, callback) {
-                var cb;
-                // 记录下执行命令之前的html内容
-                html = $txt.html();
-                cb = function () {
-                    if (callback) {
-                        callback();
-                    }
-                    if (html !== $txt.html()) {
-                        $txt.change();
-                    }
-                };
-                // 执行命令
-                if (commandFn) {
-                    editor.customCommand(e, commandFn, cb);
-                }
-            }
-
-            // 删除
-            $delete.click(function (e) {
-                // 删除之前先unlink
-                imgLink(e, '');
-
-                // 删除图片
-                commandFn = function () {
-                    $currentImg.remove();
-                };
-                customCommand(e, function () {
-                    setTimeout(hide, 100);
-                });
-            });
-
-            // 放大
-            $zoomBig.click(function (e) {
-                commandFn = function () {
-                    var img = $currentImg.get(0);
-                    var width = img.width;
-                    var height = img.height;
-                    width = width * 1.1;
-                    height = height * 1.1;
-
-                    $currentImg.css({
-                        width: width + 'px',
-                        height: height + 'px'
-                    });
-                };
-                customCommand(e, function () {
-                    setTimeout(show);
-                });
-            });
-
-            // 缩小
-            $zoomSmall.click(function (e) {
-                commandFn = function () {
-                    var img = $currentImg.get(0);
-                    var width = img.width;
-                    var height = img.height;
-                    width = width * 0.9;
-                    height = height * 0.9;
-
-                    $currentImg.css({
-                        width: width + 'px',
-                        height: height + 'px'
-                    });
-                };
-                customCommand(e, function () {
-                    setTimeout(show);
-                });
-            });
-
-            // // 左浮动
-            // $floatLeft.click(function (e) {
-            //     commandFn = function () {
-            //         $currentImg.css({
-            //             float: 'left'
-            //         });
-            //     };
-            //     customCommand(e, function () {
-            //         setTimeout(hide, 100);
-            //     });
-            // });
-
-            // alignLeft
-            $alignLeft.click(function (e) {
-                commandFn = function () {
-                    // 如果 img 增加了链接,那么 img.parent() 就是 a 标签,设置 align 没用的,因此必须找到 P 父节点来设置 align
-                    $currentImg.parents('p').css({
-                        'text-align': 'left'
-                    }).attr('align', 'left');
-                };
-                customCommand(e, function () {
-                    setTimeout(hide, 100);
-                });
-            });
-
-            // // 右浮动
-            // $floatRight.click(function (e) {
-            //     commandFn = function () {
-            //         $currentImg.css({
-            //             float: 'right'
-            //         });
-            //     };
-            //     customCommand(e, function () {
-            //         setTimeout(hide, 100);
-            //     });
-            // });
-
-            // alignRight
-            $alignRight.click(function (e) {
-                commandFn = function () {
-                    // 如果 img 增加了链接,那么 img.parent() 就是 a 标签,设置 align 没用的,因此必须找到 P 父节点来设置 align
-                    $currentImg.parents('p').css({
-                        'text-align': 'right'
-                    }).attr('align', 'right');
-                };
-                customCommand(e, function () {
-                    setTimeout(hide, 100);
-                });
-            });
-
-            // // 无浮动
-            // $noFloat.click(function (e) {
-            //     commandFn = function () {
-            //         $currentImg.css({
-            //             float: 'none'
-            //         });
-            //     };
-            //     customCommand(e, function () {
-            //         setTimeout(hide, 100);
-            //     });
-            // });
-
-            // alignCenter
-            $alignCenter.click(function (e) {
-                commandFn = function () {
-                    // 如果 img 增加了链接,那么 img.parent() 就是 a 标签,设置 align 没用的,因此必须找到 P 父节点来设置 align
-                    $currentImg.parents('p').css({
-                        'text-align': 'center'
-                    }).attr('align', 'center');
-                };
-                customCommand(e, function () {
-                    setTimeout(hide, 100);
-                });
-            });
-
-            // link
-            // 显示链接input
-            $link.click(function (e) {
-                e.preventDefault();
-
-                // 获取当前链接,并显示
-                currentLink = imgLink(e);
-                $linkInput.val(currentLink);
-
-                $menuContainer.hide();
-                $linkInputContainer.show();
-            });
-            // 设置链接
-            $linkBtnSubmit.click(function (e) {
-                e.preventDefault();
-
-                var url = $.trim($linkInput.val());
-                if (url) {
-                    // 设置链接,同时会自动更新 currentLink 的值
-                    imgLink(e, url);
-                }
-
-                // 隐藏 toolbar
-                setTimeout(hide);
-            });
-            // 取消设置链接
-            $linkBtnCancel.click(function (e) {
-                e.preventDefault();
-
-                // 重置链接 input
-                $linkInput.val(currentLink);
-
-                $menuContainer.show();
-                $linkInputContainer.hide();
-            });
-
-            // unlink
-            $unLink.click(function (e) {
-                e.preventDefault();
-
-                // 执行 unlink
-                imgLink(e, '');
-
-                // 隐藏 toolbar
-                setTimeout(hide);
-            });
-        }
-
-        // 绑定drag事件
-        function bindDragEvent() {
-            var _x, _y;
-            var dragMarginLeft, dragMarginTop;
-            var imgWidth, imgHeight;
-
-            function mousemove (e) {
-                var diffX, diffY;
-
-                // 计算差额
-                diffX = e.pageX - _x;
-                diffY = e.pageY - _y;
-
-                // --------- 计算拖拽点的位置 ---------
-                var currentDragMarginLeft = dragMarginLeft + diffX;
-                var currentDragMarginTop = dragMarginTop + diffY;
-                $dragPoint.css({
-                    'margin-left': currentDragMarginLeft,
-                    'margin-top': currentDragMarginTop
-                });
-
-                // --------- 计算图片的大小 ---------
-                var currentImgWidth = imgWidth + diffX;
-                var currentImggHeight = imgHeight + diffY;
-                $currentImg && $currentImg.css({
-                    width: currentImgWidth,
-                    height: currentImggHeight
-                });
-            }
-
-            $dragPoint.on('mousedown', function(e){
-                if (!$currentImg) {
-                    return;
-                }
-                // 当前鼠标位置
-                _x = e.pageX;
-                _y = e.pageY;
-
-                // 当前拖拽点的位置
-                dragMarginLeft = parseFloat($dragPoint.css('margin-left'), 10);
-                dragMarginTop = parseFloat($dragPoint.css('margin-top'), 10);
-
-                // 当前图片的大小
-                imgWidth = $currentImg.width();
-                imgHeight = $currentImg.height();
-
-                // 隐藏 $toolbar
-                $toolbar.hide();
-
-                // 绑定计算事件
-                E.$document.on('mousemove._dragResizeImg', mousemove);
-                E.$document.on('mouseup._dragResizeImg', function (e) {
-                    // 取消绑定
-                    E.$document.off('mousemove._dragResizeImg');
-                    E.$document.off('mouseup._dragResizeImg');
-
-                    // 隐藏,并还原拖拽点的位置
-                    hide();
-                    $dragPoint.css({
-                        'margin-left': dragMarginLeft,
-                        'margin-top': dragMarginTop
-                    });
-
-                    // 记录
-                    isOnDrag = false;
-                });
-
-                // 记录
-                isOnDrag = true;
-            });
-        }
-
-        // 显示 toolbar
-        function show() {
-            if (editor._disabled) {
-                // 编辑器已经被禁用,则不让显示
-                return;
-            }
-            if ($currentImg == null) {
-                return;
-            }
-            $currentImg.addClass('clicked');
-            var imgPosition = $currentImg.position();
-            var imgTop = imgPosition.top;
-            var imgLeft = imgPosition.left;
-            var imgHeight = $currentImg.outerHeight();
-            var imgWidth = $currentImg.outerWidth();
-
-
-            // --- 定位 dragpoint ---
-            $dragPoint.css({
-                top: imgTop + imgHeight,
-                left: imgLeft + imgWidth
-            });
-
-            // --- 定位 toolbar ---
-
-            // 计算初步结果
-            var top = imgTop + imgHeight;
-            var left = imgLeft;
-            var marginLeft = 0;
-
-            var txtTop = $currentTxt.position().top;
-            var txtHeight = $currentTxt.outerHeight();
-            if (top > (txtTop + txtHeight)) {
-                // top 不得超出编辑范围
-                top = txtTop + txtHeight;
-            } else {
-                // top 超出编辑范围,dragPoint就不显示了
-                $dragPoint.show();
-            }
-
-            // 显示(方便计算 margin)
-            $toolbar.show();
-
-            // 计算 margin
-            var width = $toolbar.outerWidth();
-            marginLeft = imgWidth / 2 - width / 2;
-
-            // 定位
-            $toolbar.css({
-                top: top + 5,
-                left: left,
-                'margin-left': marginLeft
-            });
-            // 如果定位太靠左了
-            if (marginLeft < 0) {
-                // 得到三角形的margin-left
-                $toolbar.css('margin-left', '0');
-                $triangle.hide();
-            } else {
-                $triangle.show();
-            }
-
-            // disable 菜单
-            editor.disableMenusExcept();
-        }
-        
-        // 隐藏 toolbar
-        function hide() {
-            if ($currentImg == null) {
-                return;
-            }
-            $currentImg.removeClass('clicked');
-            $currentImg = null;
-
-            $toolbar.hide();
-            $dragPoint.hide();
-
-            // enable 菜单
-            editor.enableMenusExcept();
-        }
-
-        // 判断img是否是一个表情
-        function isEmotion(imgSrc) {
-            var result = false;
-            if (!editor.emotionUrls) {
-                return result;
-            }
-            $.each(editor.emotionUrls, function (index, url) {
-                var flag = false;
-                if (imgSrc === url) {
-                    result = true;
-                    flag = true;
-                }
-                if (flag) {
-                    return false;  // break 循环
-                }
-            });
-            return result;
-        }
-
-        // click img 事件
-        $currentTxt.on('mousedown', 'img', function (e) {
-            e.preventDefault();
-        }).on('click', 'img', function (e) {
-            var $img = $(e.currentTarget);
-            var src = $img.attr('src');
-
-            if (!src || isEmotion(src)) {
-                // 是一个表情图标
-                return;
-            }
-
-            // ---------- 不是表情图标 ---------- 
-
-            // 渲染
-            render();
-
-            if ($currentImg && ($currentImg.get(0) === $img.get(0))) {
-                setTimeout(hide, 100);
-                return;
-            }
-
-            // 显示 toolbar
-            $currentImg = $img;
-            show();
-
-            // 默认显示menuContainer,其他默认隐藏
-            $menuContainer.show();
-            $linkInputContainer.hide();
-
-            // 阻止冒泡
-            e.preventDefault();
-            e.stopPropagation();
-            
-        }).on('click keydown scroll', function (e) {
-            if (!isOnDrag) {
-                setTimeout(hide, 100);
-            }
-        });
-
-    });
-
-});
-// 编辑区域 link toolbar
-_e(function (E, $) {
-    E.plugin(function () {
-        var editor = this;
-        var lang = editor.config.lang;
-        var $txt = editor.txt.$txt;
-
-        // 当前命中的链接
-        var $currentLink;
-
-        var $toolbar = $('<div class="txt-toolbar"></div>');
-        var $triangle = $('<div class="tip-triangle"></div>');
-        var $triggerLink = $('<a href="#" target="_blank"><i class="wangeditor-menu-img-link"></i> ' + lang.openLink + '</a>');
-        var isRendered;
-
-        // 记录当前的显示/隐藏状态
-        var isShow = false;
-
-        var showTimeoutId, hideTimeoutId;
-        var showTimeoutIdByToolbar, hideTimeoutIdByToolbar;
-
-        // 渲染 dom
-        function render() {
-            if (isRendered) {
-                return;
-            }
-
-            $toolbar.append($triangle)
-                    .append($triggerLink);
-
-            editor.$editorContainer.append($toolbar);
-
-            isRendered = true;
-        }
-
-        // 定位
-        function setPosition() {
-            if (!$currentLink) {
-                return;
-            }
-
-            var position = $currentLink.position();
-            var left = position.left;
-            var top = position.top;
-            var height = $currentLink.height();
-
-            // 初步计算top值
-            var topResult = top + height + 5;
-
-            // 判断 toolbar 是否超过了编辑器区域的下边界
-            var menuHeight = editor.menuContainer.height();
-            var txtHeight = editor.txt.$txt.outerHeight();
-            if (topResult > menuHeight + txtHeight) {
-                topResult = menuHeight + txtHeight + 5;
-            }
-
-            // 最终设置
-            $toolbar.css({
-                top: topResult,
-                left: left
-            });
-        }
-
-        // 显示 toolbar
-        function show() {
-            if (isShow) {
-                return;
-            }
-
-            if (!$currentLink) {
-                return;
-            }
-
-            render();
-
-            $toolbar.show();
-
-            // 设置链接
-            var href = $currentLink.attr('href');
-            $triggerLink.attr('href', href);
-
-            // 定位
-            setPosition();
-
-            isShow = true;
-        }
-
-        // 隐藏 toolbar
-        function hide() {
-            if (!isShow) {
-                return;
-            }
-
-            if (!$currentLink) {
-                return;
-            }
-
-            $toolbar.hide();
-            isShow = false;
-        }
-
-        // $txt 绑定事件
-        $txt.on('mouseenter', 'a', function (e) {
-            // 延时 500ms 显示toolbar
-            if (showTimeoutId) {
-                clearTimeout(showTimeoutId);
-            }
-            showTimeoutId = setTimeout(function () {
-                var a = e.currentTarget;
-                var $a = $(a);
-                $currentLink = $a;
-
-                var $img = $a.children('img');
-                if ($img.length) {
-                    // 该链接下包含一个图片
-
-                    // 图片点击时,隐藏toolbar
-                    $img.click(function (e) {
-                        hide();
-                    });
-
-                    if ($img.hasClass('clicked')) {
-                        // 图片还处于clicked状态,则不显示toolbar
-                        return;
-                    }
-                }
-
-                // 显示toolbar
-                show();
-            }, 500);
-        }).on('mouseleave', 'a', function (e) {
-            // 延时 500ms 隐藏toolbar
-            if (hideTimeoutId) {
-                clearTimeout(hideTimeoutId);
-            }
-            hideTimeoutId = setTimeout(hide, 500);
-        }).on('click keydown scroll', function (e) {
-            setTimeout(hide, 100);
-        });
-        // $toolbar 绑定事件
-        $toolbar.on('mouseenter', function (e) {
-            // 先中断掉 $txt.mouseleave 导致的隐藏
-            if (hideTimeoutId) {
-                clearTimeout(hideTimeoutId);
-            }
-        }).on('mouseleave', function (e) {
-            // 延时 500ms 显示toolbar
-            if (showTimeoutIdByToolbar) {
-                clearTimeout(showTimeoutIdByToolbar);
-            }
-            showTimeoutIdByToolbar = setTimeout(hide, 500);
-        });
-    });
-});
-// menu吸顶
-_e(function (E, $) {
-
-    E.plugin(function () {
-        var editor = this;
-        var menuFixed = editor.config.menuFixed;
-        if (menuFixed === false || typeof menuFixed !== 'number') {
-            // 没有配置菜单吸顶
-            return;
-        }
-        var bodyMarginTop = parseFloat(E.$body.css('margin-top'), 10);
-        if (isNaN(bodyMarginTop)) {
-            bodyMarginTop = 0;
-        }
-
-        var $editorContainer = editor.$editorContainer;
-        var editorTop = $editorContainer.offset().top;
-        var editorHeight = $editorContainer.outerHeight();
-        
-        var $menuContainer = editor.menuContainer.$menuContainer;
-        var menuCssPosition = $menuContainer.css('position');
-        var menuCssTop = $menuContainer.css('top');
-        var menuTop = $menuContainer.offset().top;
-        var menuHeight = $menuContainer.outerHeight();
-        
-        var $txt = editor.txt.$txt;
-
-        E.$window.scroll(function () {
-            //全屏模式不支持
-            if (editor.isFullScreen) {
-                return;
-            }
-
-            var sTop = E.$window.scrollTop();
-
-            // 需要重新计算宽度,因为浏览器可能此时出现滚动条
-            var menuWidth = $menuContainer.width();
-
-            // 如果 menuTop === 0 说明此前编辑器一直隐藏,后来显示出来了,要重新计算相关数据
-            if (menuTop === 0) {
-                menuTop = $menuContainer.offset().top;
-                editorTop = $editorContainer.offset().top;
-                editorHeight = $editorContainer.outerHeight();
-                menuHeight = $menuContainer.outerHeight();
-            }
-
-            if (sTop >= menuTop && sTop + menuFixed + menuHeight + 30 < editorTop + editorHeight) {
-                // 吸顶
-                $menuContainer.css({
-                    position: 'fixed',
-                    top: menuFixed
-                });
-
-                // 固定宽度
-                $menuContainer.width(menuWidth);
-
-                // 增加body margin-top
-                E.$body.css({
-                    'margin-top': bodyMarginTop + menuHeight
-                });
-
-                // 记录
-                if (!editor._isMenufixed) {
-                    editor._isMenufixed = true;
-                }
-            } else {
-                // 取消吸顶
-                $menuContainer.css({
-                    position: menuCssPosition,
-                    top: menuCssTop
-                });
-
-                // 取消宽度固定
-                $menuContainer.css('width', '100%');
-
-                // 还原 body margin-top
-                E.$body.css({
-                    'margin-top': bodyMarginTop
-                });
-
-                // 撤销记录
-                if (editor._isMenufixed) {
-                    editor._isMenufixed = false;
-                }
-            }
-        });
-    });
-
-});
-// 缩进 菜单插件
-_e(function (E, $) {
-
-    // 用 createMenu 方法创建菜单
-    E.createMenu(function (check) {
-
-        // 定义菜单id,不要和其他菜单id重复。编辑器自带的所有菜单id,可通过『参数配置-自定义菜单』一节查看
-        var menuId = 'indent';
-
-        // check将检查菜单配置(『参数配置-自定义菜单』一节描述)中是否该菜单id,如果没有,则忽略下面的代码。
-        if (!check(menuId)) {
-            return;
-        }
-
-        // this 指向 editor 对象自身
-        var editor = this;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,  // 编辑器对象
-            id: menuId,  // 菜单id
-            title: '缩进', // 菜单标题
-
-            // 正常状态和选中装下的dom对象,样式需要自定义
-            $domNormal: $('<a href="#" tabindex="-1"><i class="wangeditor-menu-img-indent-left"></i></a>'),
-            $domSelected: $('<a href="#" tabindex="-1" class="selected"><i class="wangeditor-menu-img-indent-left"></i></a>')
-        });
-
-        // 菜单正常状态下,点击将触发该事件
-        menu.clickEvent = function (e) {
-            var elem = editor.getRangeElem();
-            var p = editor.getSelfOrParentByName(elem, 'p');
-            var $p;
-
-            if (!p) {
-                // 未找到 p 元素,则忽略
-                return e.preventDefault();
-            }
-            $p = $(p);
-
-            // 使用自定义命令
-            function commandFn() {
-                $p.css('text-indent', '2em');
-            }
-            editor.customCommand(e, commandFn);
-        };
-
-        // 菜单选中状态下,点击将触发该事件
-        menu.clickEventSelected = function (e) {
-            var elem = editor.getRangeElem();
-            var p = editor.getSelfOrParentByName(elem, 'p');
-            var $p;
-
-            if (!p) {
-                // 未找到 p 元素,则忽略
-                return e.preventDefault();
-            }
-            $p = $(p);
-
-            // 使用自定义命令
-            function commandFn() {
-                $p.css('text-indent', '0');
-            }
-            editor.customCommand(e, commandFn);
-        };
-
-        // 根据当前选区,自定义更新菜单的选中状态或者正常状态
-        menu.updateSelectedEvent = function () {
-            // 获取当前选区所在的父元素
-            var elem = editor.getRangeElem();
-            var p = editor.getSelfOrParentByName(elem, 'p');
-            var $p;
-            var indent;
-
-            if (!p) {
-                // 未找到 p 元素,则标记为未处于选中状态
-                return false;
-            }
-            $p = $(p);
-            indent = $p.css('text-indent');
-
-            if (!indent || indent === '0px') {
-                // 得到的p,text-indent 属性是 0,则标记为未处于选中状态
-                return false;
-            }
-
-            // 找到 p 元素,并且 text-indent 不是 0,则标记为选中状态
-            return true;
-        };
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-});
-// 行高 菜单插件
-_e(function (E, $) {
-
-    // 用 createMenu 方法创建菜单
-    E.createMenu(function (check) {
-
-        // 定义菜单id,不要和其他菜单id重复。编辑器自带的所有菜单id,可通过『参数配置-自定义菜单』一节查看
-        var menuId = 'lineheight';
-
-        // check将检查菜单配置(『参数配置-自定义菜单』一节描述)中是否该菜单id,如果没有,则忽略下面的代码。
-        if (!check(menuId)) {
-            return;
-        }
-
-        // this 指向 editor 对象自身
-        var editor = this;
-
-        // 由于浏览器自身不支持 lineHeight 命令,因此要做一个hook
-        editor.commandHooks.lineHeight = function (value) {
-            var rangeElem = editor.getRangeElem();
-            var targetElem = editor.getSelfOrParentByName(rangeElem, 'p,h1,h2,h3,h4,h5,pre');
-            if (!targetElem) {
-                return;
-            }
-            $(targetElem).css('line-height', value + '');
-        };
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,  // 编辑器对象
-            id: menuId,  // 菜单id
-            title: '行高', // 菜单标题
-            commandName: 'lineHeight', // 命令名称
-
-            // 正常状态和选中装下的dom对象,样式需要自定义
-            $domNormal: $('<a href="#" tabindex="-1"><i class="wangeditor-menu-img-arrows-v"></i></a>'),
-            $domSelected: $('<a href="#" tabindex="-1" class="selected"><i class="wangeditor-menu-img-arrows-v"></i></a>')
-        });
-
-        // 数据源
-        var data  = {
-            // 格式: 'value' : 'title'
-            '1.0': '1.0倍',
-            '1.5': '1.5倍',
-            '1.8': '1.8倍',
-            '2.0': '2.0倍',
-            '2.5': '2.5倍',
-            '3.0': '3.0倍'
-        };
-
-        // 为menu创建droplist对象
-        var tpl = '<span style="line-height:{#commandValue}">{#title}</span>';
-        menu.dropList = new E.DropList(editor, menu, {
-            data: data,  // 传入数据源
-            tpl: tpl  // 传入模板
-        });
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-
-    });
-
-});
-// 自定义上传
-_e(function (E, $) {
-
-    E.plugin(function () {
-
-        var editor = this;
-        var customUpload = editor.config.customUpload;
-        if (!customUpload) {
-            return;
-        } else if (editor.config.uploadImgUrl) {
-            alert('自定义上传无效,详看浏览器日志console.log');
-            E.error('已经配置了 uploadImgUrl ,就不能再配置 customUpload ,两者冲突。将导致自定义上传无效。');
-            return;
-        }
-
-        var $uploadContent = editor.$uploadContent;
-        if (!$uploadContent) {
-            E.error('自定义上传,无法获取 editor.$uploadContent');
-        }
-
-        // UI
-        var $uploadIcon = $('<div class="upload-icon-container"><i class="wangeditor-menu-img-upload"></i></div>');
-        $uploadContent.append($uploadIcon);
-
-        // 设置id,并暴露
-        var btnId = 'upload' + E.random();
-        var containerId = 'upload' + E.random();
-        $uploadIcon.attr('id', btnId);
-        $uploadContent.attr('id', containerId);
-
-        editor.customUploadBtnId = btnId;
-        editor.customUploadContainerId = containerId;
-    });
-
-});
-// 版权提示
-_e(function (E, $) {
-    E.info('本页面富文本编辑器由 wangEditor 提供 http://wangeditor.github.io/ ');
-});
-    
-    // 最终返回wangEditor构造函数
-    return window.wangEditor;
-});

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
static/wangEditor/js/wangEditor.min.js


+ 0 - 0
static/wangEditor/plugins/attach-menu.js → static/wangEditor/old/plugins/attach-menu.js


+ 0 - 0
static/wangEditor/plugins/history-menu.js → static/wangEditor/old/plugins/history-menu.js


+ 0 - 0
static/wangEditor/plugins/release-menu.js → static/wangEditor/old/plugins/release-menu.js


+ 0 - 47
static/wangEditor/plugins/save-menu.js

@@ -1,47 +0,0 @@
-(function () {
-
-    // 获取 wangEditor 构造函数和 jquery
-    var E = window.wangEditor;
-    var $ = window.jQuery;
-
-    // 用 createMenu 方法创建菜单
-    E.createMenu(function (check) {
-
-        // 定义菜单id,不要和其他菜单id重复。编辑器自带的所有菜单id,可通过『参数配置-自定义菜单』一节查看
-        var menuId = 'save';
-
-        // check将检查菜单配置(『参数配置-自定义菜单』一节描述)中是否该菜单id,如果没有,则忽略下面的代码。
-        if (!check(menuId)) {
-            return;
-        }
-
-        // this 指向 editor 对象自身
-        var editor = this;
-
-        // 创建 menu 对象
-        var menu = new E.Menu({
-            editor: editor,  // 编辑器对象
-            id: menuId,  // 菜单id
-            title: '保存', // 菜单标题
-
-            // 正常状态和选中状态下的dom对象,样式需要自定义
-            $domNormal: $('<a href="#" tabindex="-1"><i class="fa fa-save" aria-hidden="true" name="save"></i></a>'),
-            $domSelected: $('<a href="#" tabindex="-1" class="selected"><i class="fa fa-save" aria-hidden="true" name="save"></i></a>')
-        });
-
-        // 菜单正常状态下,点击将触发该事件
-        menu.clickEvent = function (e) {
-            window.saveDocument();
-        };
-
-        // 菜单选中状态下,点击将触发该事件
-        menu.clickEventSelected = function (e) {
-
-        };
-
-
-        // 增加到editor对象中
-        editor.menus[menuId] = menu;
-    });
-
-})();

+ 14 - 0
static/wangEditor/wangEditor.d.ts

@@ -0,0 +1,14 @@
+/**
+ * @description 入口文件
+ * @author wangfupeng
+ */
+import './assets/style/common.less';
+import './assets/style/icon.less';
+import './assets/style/menus.less';
+import './assets/style/text.less';
+import './assets/style/panel.less';
+import './assets/style/droplist.less';
+import './utils/polyfill';
+import Editor from './editor/index';
+export * from './menus/menu-constructors/index';
+export default Editor;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 7593 - 0
static/wangEditor/wangEditor.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
static/wangEditor/wangEditor.js.map


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 15 - 0
static/wangEditor/wangEditor.min.js


+ 4 - 1
views/book/setting.tpl

@@ -89,7 +89,10 @@
                                         <input type="radio"{{if eq .Model.Editor "markdown"}} checked{{end}} name="editor" value="markdown"> Markdown {{i18n $.Lang "blog.text_editor"}}
                                     </label>
                                     <label class="radio-inline">
-                                        <input type="radio"{{if eq .Model.Editor "html"}} checked{{end}} name="editor" value="html"> Html {{i18n $.Lang "blog.text_editor"}}
+                                        <input type="radio"{{if eq .Model.Editor "new_html"}} checked{{end}} name="editor" value="new_html"> Html {{i18n $.Lang "blog.text_editor"}}(Quill)
+                                    </label>
+                                    <label class="radio-inline">
+                                        <input type="radio"{{if eq .Model.Editor "html"}} checked{{end}} name="editor" value="html"> Html {{i18n $.Lang "blog.text_editor"}}(wangEditor)
                                     </label>
                                 </div>
                             </div>

+ 12 - 6
views/document/html_edit_template.tpl

@@ -6,6 +6,11 @@
     <meta name="viewport" content="width=device-width, initial-scale=1">
 
     <title>编辑文档 - Powered by MinDoc</title>
+    <style type="text/css">
+        .w-e-menu.selected > i {
+            color: #44B036 !important;
+        }
+    </style>
 
     <script type="text/javascript">
         window.editor = null;
@@ -27,7 +32,7 @@
     <link href="{{cdncss "/static/bootstrap/css/bootstrap.min.css"}}" rel="stylesheet">
     <link href="{{cdncss "/static/font-awesome/css/font-awesome.min.css"}}" rel="stylesheet">
     <link href="{{cdncss "/static/jstree/3.3.4/themes/default/style.min.css"}}" rel="stylesheet">
-    <link href="{{cdncss "/static/wangEditor/css/wangEditor.min.css"}}" rel="stylesheet">
+    <!-- <link href="{{cdncss "/static/wangEditor/css/wangEditor.min.css"}}" rel="stylesheet"> -->
 
     <link href="{{cdncss (print "/static/editor.md/lib/highlight/styles/" .HighlightStyle ".css") "version"}}" rel="stylesheet">
     <link href="{{cdncss "/static/webuploader/webuploader.css"}}" rel="stylesheet">
@@ -188,11 +193,12 @@
 <script src="{{cdnjs "/static/vuejs/vue.min.js"}}" type="text/javascript"></script>
 <script src="{{cdnjs "/static/jstree/3.3.4/jstree.min.js"}}" type="text/javascript"></script>
 <script src="{{cdnjs "/static/webuploader/webuploader.min.js"}}" type="text/javascript"></script>
-<script src="{{cdnjs "/static/wangEditor/js/wangEditor.min.js"}}" type="text/javascript"></script>
-<script src="{{cdnjs "/static/wangEditor/plugins/save-menu.js"}}" type="text/javascript"></script>
-<script src="{{cdnjs "/static/wangEditor/plugins/release-menu.js"}}" type="text/javascript"></script>
-<script src="{{cdnjs "/static/wangEditor/plugins/attach-menu.js"}}" type="text/javascript"></script>
-<script src="{{cdnjs "/static/wangEditor/plugins/history-menu.js"}}" type="text/javascript"></script>
+<script src="{{cdnjs "/static/js/class2browser.js"}}" type="text/javascript"></script>
+<script src="{{cdnjs "/static/wangEditor/wangEditor.min.js"}}" type="text/javascript"></script>
+<script src="{{cdnjs "/static/js/wangEditor-plugins/save-menu.js"}}" type="text/javascript"></script>
+<!-- <script src="{{cdnjs "/static/wangEditor/old/plugins/release-menu.js"}}" type="text/javascript"></script> -->
+<!-- <script src="{{cdnjs "/static/wangEditor/old/plugins/attach-menu.js"}}" type="text/javascript"></script> -->
+<!-- <script src="{{cdnjs "/static/wangEditor/old/plugins/history-menu.js"}}" type="text/javascript"></script> -->
 <script src="{{cdnjs "/static/layer/layer.js"}}" type="text/javascript" ></script>
 <script src="{{cdnjs "/static/to-markdown/dist/to-markdown.js"}}" type="text/javascript"></script>
 <script src="{{cdnjs "/static/js/jquery.form.js"}}" type="text/javascript"></script>

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.