├── design ├── css │ ├── select.area.css │ ├── resize.css │ └── style.css ├── images │ ├── grid.png │ ├── image.jpg │ ├── card_bg.png │ └── canvas_bg.jpg ├── fontawesome-free-5.6.3 │ ├── webfonts │ │ ├── fa-solid-900.eot │ │ ├── fa-solid-900.ttf │ │ ├── fa-brands-400.eot │ │ ├── fa-brands-400.ttf │ │ ├── fa-brands-400.woff │ │ ├── fa-brands-400.woff2 │ │ ├── fa-regular-400.eot │ │ ├── fa-regular-400.ttf │ │ ├── fa-regular-400.woff │ │ ├── fa-solid-900.woff │ │ ├── fa-solid-900.woff2 │ │ └── fa-regular-400.woff2 │ └── css │ │ └── all.min.css ├── js │ ├── index.js │ ├── diamond.js │ ├── drag.js │ ├── select.area.js │ ├── components.js │ ├── resize.js │ └── frame.js ├── x0popup │ ├── x0popup.min.js │ └── x0popup.min.css └── vue │ └── vue.min.js ├── _config.yml ├── images └── preview.png ├── package.json ├── README.md ├── drag.md ├── selectArea.md ├── app.js ├── resize.md └── index.html /design/css/select.area.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-leap-day -------------------------------------------------------------------------------- /images/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/images/preview.png -------------------------------------------------------------------------------- /design/images/grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/images/grid.png -------------------------------------------------------------------------------- /design/images/image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/images/image.jpg -------------------------------------------------------------------------------- /design/images/card_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/images/card_bg.png -------------------------------------------------------------------------------- /design/images/canvas_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/images/canvas_bg.jpg -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newpanjing/flow-chart/HEAD/design/fontawesome-free-5.6.3/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "graphic-design", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "node ./app.js" 7 | }, 8 | "dependencies": { 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /design/js/index.js: -------------------------------------------------------------------------------- 1 | //引入js 2 | 3 | var libs = ['/js/jsplumb.js','/js/select.area.js','js/resize.js','js/drag.js','vue/vue.js','/js/diamond.js','js/components.js','/x0popup/x0popup.min.js','/js/frame.js']; 4 | var base = './design/'; 5 | libs.forEach(lib => { 6 | var script = document.createElement('script'); 7 | script.type = 'text/javascript'; 8 | script.src = base + lib; 9 | document.body.appendChild(script); 10 | }); 11 | 12 | window.onload = function () { 13 | //初始化 14 | frameInit(); 15 | } 16 | -------------------------------------------------------------------------------- /design/js/diamond.js: -------------------------------------------------------------------------------- 1 | function Diamond(width, height) { 2 | 3 | var canvas = document.createElement('canvas'); 4 | canvas.width = width; 5 | canvas.height = height; 6 | var ctx = canvas.getContext("2d"); 7 | 8 | ctx.lineWidth = 3; 9 | ctx.strokeStyle = 'black'; 10 | 11 | ctx.moveTo(0, height / 2 - 1); 12 | ctx.lineTo(width / 2 - 1, 1); 13 | ctx.lineTo(width - 1, height / 2 - 1) 14 | ctx.lineTo(width / 2 - 1, height - 1) 15 | ctx.lineTo(1, height / 2 - 1); 16 | ctx.stroke(); 17 | ctx.closePath(); 18 | ctx.fillStyle = 'yellow'; 19 | ctx.fill(); 20 | 21 | 22 | return canvas.toDataURL('image/png'); 23 | } 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # js+vue flow chart 在线流程图 2 | 3 | 原生js+vue实现 图形画板,和windows图标一样,可以自由的拖动、拖拉改变大小。 4 | 以及和windows桌面一样 有选区,可以选中若干个元素一起拖动。 5 | 6 | 在线预览地址: 7 | [https://newpanjing.github.io/flow-chart/index.html](https://newpanjing.github.io/flow-chart/) 8 | ## 特色功能 9 | + 键盘位移 10 | + 双击编辑 11 | + 拖拽 12 | + 改变大小 13 | + 单选/多选 14 | 15 | ## 源码启动预览 16 | + 启动: 17 | ```shell 18 | npm run start 19 | ``` 20 | + 也可以直接运行app.js 21 | ````shell 22 | node app.js 23 | ```` 24 | 25 | ## 预览 26 | ![](https://raw.githubusercontent.com/newpanjing/flow-chart/master/images/preview.png) 27 | ## js 插件 28 | 29 | + drag.js 30 | > 实现了div的自由拖动 31 | 32 | + resize.js 33 | > 实现了div 自由改变大小 34 | + select.area.js 35 | > 实现了 div 上选区 36 | 37 | ## 文档 38 | 39 | + [drag.js](/drag.md) 40 | + [resize.js](/resize.md) 41 | + [select.area.js](/selectArea.md) 42 | -------------------------------------------------------------------------------- /drag.md: -------------------------------------------------------------------------------- 1 | # drag.js 2 | js div 实现推拽功能 3 | 4 | 用法: 5 | ```javascript 6 | new Drag(options).register(el) 7 | ``` 8 | 9 | options: 10 | 11 | | 名称 | 参数 | 说明 | 12 | |---|----|----| 13 | |onDrag|left=左边距离,top=顶部距离|推拽中| 14 | |onBegin|left=左边距离,top=顶部距离,x=移动的左边相对距离,y=移动的顶部相对距离|开始推拽| 15 | |onEnd|left=左边距离,top=顶部距离|结束推拽| 16 | 17 | ## 支持jquery 18 | ```javascript 19 | 20 | $.fn.drag=function() { 21 | var options={ 22 | onBegin:function(data) { 23 | 24 | }, 25 | onEnd:function(data) { 26 | 27 | }, 28 | onDrag:function(data) { 29 | 30 | } 31 | } 32 | new Drag(options).register(this); 33 | } 34 | ``` 35 | 36 | jquery使用: 37 | ```javascript 38 | $(".aa").drag(); 39 | ``` 40 | 41 | ## 支持vue 42 | ```javascript 43 | 44 | Vue.directive('drag', { 45 | inserted(el, binding) { 46 | var options={}; 47 | new Drag(options).register(el); 48 | }}); 49 | ``` 50 | 51 | vue使用: 52 | ```html 53 |
54 | ``` -------------------------------------------------------------------------------- /design/css/resize.css: -------------------------------------------------------------------------------- 1 | .border{ 2 | border: #0774d6 1px solid; 3 | position: absolute; 4 | left: -1px; 5 | right: -1px; 6 | top: -1px; 7 | bottom: -1px; 8 | display: none; 9 | z-index: 99; 10 | } 11 | .active .direction,.active .border{ 12 | display: block; 13 | } 14 | .direction{ 15 | position: absolute; 16 | width: 5px; 17 | height: 5px; 18 | border: 1px #0774d6 solid; 19 | background-color: #0792ff; 20 | display: none; 21 | z-index: 100; 22 | } 23 | 24 | .nw{left: -4px; top: -4px; cursor: nw-resize} 25 | .ws{left: -4px; bottom: -4px; cursor: sw-resize} 26 | .se{right: -4px; bottom: -4px; cursor: se-resize} 27 | .ne{right: -4px; top: -4px; cursor: ne-resize} 28 | 29 | 30 | .w{left: -4px; top: 50%; margin-top: -3px; cursor: crosshair;border-radius: 5px;} 31 | .s{left: 50%; bottom: -4px; margin-left: -3px; cursor: crosshair;border-radius: 5px;} 32 | .e{right: -4px; top: 50%; margin-top: -3px; cursor: crosshair;border-radius: 5px;} 33 | .n{top:-4px;left: 50%;margin-left: -3px;cursor: crosshair;border-radius: 5px;} 34 | -------------------------------------------------------------------------------- /selectArea.md: -------------------------------------------------------------------------------- 1 | # select.area.js 2 | js div 创建选区 3 | 4 | 用法: 5 | ```javascript 6 | new SelectArea(options).register(el) 7 | ``` 8 | 9 | options: 10 | 11 | | 名称 | 参数 | 说明 | 12 | |---|----|----| 13 | |onBegin|data|选区结束| 14 | |onHandler|data|选区拉伸中| 15 | |onEnd|data|选区开始| 16 | 17 | ## 支持jquery 18 | ```javascript 19 | 20 | $.fn.selectArea=function() { 21 | var options={ 22 | onBegin:function(data) { 23 | 24 | }, 25 | onEnd:function(data) { 26 | 27 | }, 28 | onHandler:function(data) { 29 | 30 | } 31 | } 32 | new SelectArea(options).register(this); 33 | } 34 | ``` 35 | 36 | jquery使用: 37 | ```javascript 38 | $(".aa").selectArea(); 39 | ``` 40 | 41 | ## 支持vue 42 | ```javascript 43 | 44 | Vue.directive('selectarea', { 45 | inserted(el, binding) { 46 | var options={}; 47 | new Resize(options).register(el); 48 | }}); 49 | ``` 50 | 51 | vue使用: 52 | ```html 53 |
54 | ``` 55 | 56 | ### PS: 为什么不适用驼峰大小写? 57 | > vue会报错,具体原因还没来得及去看文档。 -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | 创建一个简单的http服务器 4 | */ 5 | 6 | var http = require('http'); 7 | var baseDir = ''; 8 | var path = require('path'); 9 | var fs = require('fs'); 10 | 11 | http.createServer(function (req, res, next) { 12 | var url = req.url; 13 | console.log(`${req.method} ${req.url}`) 14 | if (url == '/') { 15 | url = 'index.html'; 16 | } 17 | 18 | var index = url.indexOf('?'); 19 | if (index != -1) { 20 | url = url.substring(0, index); 21 | } 22 | 23 | //读取文件 24 | 25 | var ap = path.join(__dirname, baseDir, url); 26 | 27 | var exists = fs.existsSync(ap); 28 | if (!exists) { 29 | res.writeHead(404); 30 | res.end('not found.') 31 | return; 32 | } 33 | 34 | 35 | var readerStream = fs.createReadStream(ap); 36 | readerStream.pipe(res); 37 | // readerStream.on('data', function (data) { 38 | // 39 | // }); 40 | // 41 | // res.end(url); 42 | 43 | }).on('error', function (err) { 44 | console.error(err); 45 | }).listen(3000); 46 | 47 | console.log('listen http://127.0.0.1:3000'); 48 | -------------------------------------------------------------------------------- /resize.md: -------------------------------------------------------------------------------- 1 | # resize.js 2 | js div 拉伸改变大小 3 | 4 | 用法: 5 | ```javascript 6 | new Resize(options).register(el) 7 | ``` 8 | 9 | options: 10 | 11 | | 名称 | 参数 | 说明 | 12 | |---|----|----| 13 | |onBegin|data|开始拉伸| 14 | |onResize|data|拉伸中| 15 | |onEnd|data|结束拉伸| 16 | 17 | ## 支持jquery 18 | ```javascript 19 | 20 | $.fn.resize=function() { 21 | var options={ 22 | onBegin:function(data) { 23 | 24 | }, 25 | onEnd:function(data) { 26 | 27 | }, 28 | onResize:function(data) { 29 | 30 | } 31 | } 32 | new Resize(options).register(this); 33 | } 34 | ``` 35 | 36 | jquery使用: 37 | ```javascript 38 | $(".aa").resize(); 39 | ``` 40 | 41 | ## 支持vue 42 | ```javascript 43 | 44 | Vue.directive('resize', { 45 | inserted(el, binding) { 46 | var options={}; 47 | new Resize(options).register(el); 48 | }}); 49 | ``` 50 | 51 | vue使用: 52 | ```html 53 |
54 | ``` 55 | -------------------------------------------------------------------------------- /design/js/drag.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 拖拽 3 | * @constructor 4 | */ 5 | function Drag(options) { 6 | 7 | /** 8 | * 9 | * @param el 节点 10 | */ 11 | this.register = function (el) { 12 | 13 | el.addEventListener('mousedown', function (e) { 14 | 15 | if (e.button != 0) { 16 | //屏蔽左键以外的按键 17 | return; 18 | } 19 | 20 | if(e.target.tagName=='TEXTAREA'){ 21 | return false; 22 | } 23 | 24 | //获取x坐标和y坐标 25 | var x = e.clientX; 26 | var y = e.clientY; 27 | 28 | //获取左部和顶部的偏移量 29 | var l = el.offsetLeft; 30 | var t = el.offsetTop; 31 | 32 | if (options && options.onBegin) { 33 | options.onBegin.call(el, { 34 | left: x - l, 35 | top: y - t 36 | }); 37 | } 38 | 39 | 40 | //开关打开 41 | var isDown = true; 42 | //设置样式 43 | el.style.cursor = 'move'; 44 | 45 | var nl = x, nt = y; 46 | 47 | 48 | window.onmousemove = function (e) { 49 | if (!isDown) { 50 | return; 51 | } 52 | //获取x和y 53 | var nx = e.clientX; 54 | var ny = e.clientY; 55 | 56 | 57 | //计算移动后的左偏移量和顶部的偏移量 58 | nl = nx - (x - l); 59 | nt = ny - (y - t); 60 | 61 | 62 | el.style.left = nl + 'px'; 63 | el.style.top = nt + 'px'; 64 | 65 | if (options && options.onDrag) { 66 | options.onDrag.call(el, { 67 | left: nl, 68 | top: nt, 69 | x: nx - x, 70 | y: ny - y 71 | }); 72 | } 73 | 74 | return false; 75 | } 76 | 77 | window.onmouseup = function (e) { 78 | //开关关闭 79 | isDown = false; 80 | el.style.cursor = 'default'; 81 | 82 | if (options && options.onEnd) { 83 | options.onEnd.call(el, {left: nl, top: nt}); 84 | } 85 | 86 | return false; 87 | } 88 | // e.stopPropagation(); 89 | if (e.stopPropagation) { 90 | e.stopPropagation(); 91 | } else if (e.preventDefault) { 92 | e.preventDefault(); 93 | } else { 94 | window.event.returnValue == false; 95 | } 96 | }); 97 | 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /design/js/select.area.js: -------------------------------------------------------------------------------- 1 | function SelectArea(options) { 2 | 3 | this.register = function (el) { 4 | 5 | el.addEventListener('mousedown', function (e) { 6 | 7 | //TODO 需要考虑x,y滚动条的距离 8 | 9 | if (e.button != 0 || e.target != this) { 10 | return; 11 | } 12 | 13 | 14 | var x = e.clientX; 15 | var y = e.clientY; 16 | 17 | var ox = x; 18 | var oy = y; 19 | 20 | var tempX = x - e.target.offsetLeft; 21 | var tempY = y - e.target.offsetTop; 22 | 23 | 24 | var isDown = true; 25 | 26 | x = tempX; 27 | y = tempY; 28 | 29 | 30 | //考虑滚动条 31 | //有两种情况 一种是自己的滚动条,一种是父容器的滚动条 32 | sx = e.target.parentElement.scrollLeft; 33 | sy = e.target.parentElement.scrollTop; 34 | 35 | x += sx; 36 | y += sy; 37 | 38 | if (options && options.onBegin) { 39 | options.onBegin.call(el, e); 40 | } 41 | var select = document.createElement('div'); 42 | 43 | select.style.position = 'absolute'; 44 | select.style.border = '1px #4a98be solid'; 45 | select.style.backgroundColor = 'rgba(127,214,255,0.3)'; 46 | select.style.zIndex = '99999999'; 47 | 48 | el.appendChild(select); 49 | 50 | window.onmousemove = function (ev) { 51 | if (!isDown) { 52 | return; 53 | } 54 | //计算差值 55 | var w = ev.clientX - ox; 56 | var h = ev.clientY - oy; 57 | 58 | 59 | if (w < 0) { 60 | x = tempX + w + sx; 61 | } 62 | if (h < 0) { 63 | y = tempY + h + sy; 64 | } 65 | 66 | var width = Math.abs(w); 67 | var height = Math.abs(h); 68 | 69 | 70 | //计算 选区覆盖的元素,并进行选中 71 | var x1 = x, y1 = y; 72 | var x2 = x + width, y2 = y + height; 73 | 74 | select.style.left = x + 'px'; 75 | select.style.top = y + 'px'; 76 | select.style.width = width + 'px'; 77 | select.style.height = height + 'px'; 78 | 79 | if (options && options.onHandler) { 80 | options.onHandler.call(el, { 81 | x1: x1, 82 | x2: x2, 83 | y1: y1, 84 | y2: y2, 85 | width: width, 86 | height: height 87 | }) 88 | } 89 | } 90 | window.onmouseup = function (ee) { 91 | isDown = false; 92 | select.remove(); 93 | if (options && options.onEnd) { 94 | options.onEnd.call(el, e); 95 | } 96 | return false; 97 | } 98 | 99 | return false; 100 | }); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /design/js/components.js: -------------------------------------------------------------------------------- 1 | function componentInit() { 2 | 3 | //注册组件 4 | Vue.component('shape', { 5 | props: ['shape'], 6 | data: function () { 7 | 8 | var shape = this.shape; 9 | 10 | 11 | var mappers = { 12 | numbers: ['left', 'top', 'width', 'height', 'borderWidth', 'fontSize', 'borderRadius', 'padding'], 13 | strings: ['active', 'borderColor', 'borderStyle', 'fontColor', 'background', 'fontStyle', 'index'] 14 | } 15 | var alias = { 16 | fontColor: 'color', 17 | index: 'z-index' 18 | }; 19 | 20 | return { 21 | width() { 22 | return shape.width 23 | }, 24 | height() { 25 | return shape.height 26 | }, 27 | data: shape, 28 | live() { 29 | return shape; 30 | }, 31 | value() { 32 | 33 | var value = shape.value; 34 | //换行改为br 35 | //空格改为占位符 36 | value = value.replace(/ /g, ' ').replace(/\r|\n/g, '
'); 37 | return value; 38 | }, 39 | style() { 40 | var json = {}; 41 | for (var key in shape) { 42 | var value = shape[key]; 43 | 44 | var isNumber = mappers.numbers.indexOf(key) != -1; 45 | var isString = mappers.strings.indexOf(key) != -1; 46 | 47 | //不在样式表范围内的字段不处理 48 | if (isNumber || isString) { 49 | if (isNumber) { 50 | value = value + 'px'; 51 | } 52 | 53 | key = alias[key] || key; 54 | json[key] = value; 55 | } 56 | } 57 | 58 | //判断显示菱形 59 | if (json.background && shape.type == 1) { 60 | var bg = Diamond(shape.width, shape.height); 61 | json.background = `url("${bg}") no-repeat;` 62 | } 63 | 64 | var str = ''; 65 | for (var i in json) { 66 | str += `${i}:${json[i]};` 67 | } 68 | return str; 69 | } 70 | } 71 | }, 72 | watch: {}, 73 | methods: { 74 | blur: function (e, data) { 75 | //失去焦点就让编辑禁用 76 | data.editor = false; 77 | //通知刷新 78 | this.$forceUpdate(); 79 | }, 80 | dblclick: function (e, data) { 81 | data.editor = true; 82 | }, 83 | move: function (e) { 84 | // console.log(e.code) 85 | //通知 86 | this.$emit('shapemove', e); 87 | // e.preventDefault() 88 | // e.stopPropagation() 89 | 90 | } 91 | }, 92 | computed: {}, 93 | template: '#shape-template' 94 | }); 95 | } 96 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Flow Chart 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
16 |
17 |
属性设置
18 | 19 |
20 |
名称:
21 |
22 | 23 |
24 |
25 | 26 |
27 |
宽度:
28 |
29 | 30 |
31 |
32 |
33 |
高度:
34 |
35 | 36 |
37 |
38 |
39 |
40 |
流程
41 |
42 | 43 |
44 |
46 | 47 | 48 |
52 | 53 | 54 | 55 | 66 | 67 | 68 |
69 | 70 |
71 | 72 | 73 | 79 | 80 | 86 |
87 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /design/js/resize.js: -------------------------------------------------------------------------------- 1 | function Resize(options) { 2 | 3 | this.register = function (el) { 4 | 5 | //TODO 需要考虑x,y滚动条的距离 6 | 7 | var directions = ['nw', 'ws', 'se', 'ne'] 8 | //, 'w', 's', 'e', 'n' 9 | // var lineTo = ['w', 's', 'e', 'n']; 10 | 11 | //增加元素 12 | directions.forEach(str => { 13 | 14 | 15 | //direction ws 16 | 17 | var div = document.createElement('div'); 18 | div.className = 'direction ' + str; 19 | //注册事件 20 | 21 | el.appendChild(div); 22 | 23 | }); 24 | 25 | var border = document.createElement('div'); 26 | border.className = 'border'; 27 | el.appendChild(border); 28 | 29 | 30 | //注册事件 31 | 32 | directions.forEach(str => { 33 | //lineTo 不注册事件 34 | // if(lineTo.indexOf(str)!=-1){ 35 | // return; 36 | // } 37 | var isDown = false; 38 | var obj = el.querySelector("." + str); 39 | obj.onmousedown = function (e) { 40 | 41 | if (e.button != 0) { 42 | return; 43 | } 44 | 45 | var ox = e.clientX; 46 | var oy = e.clientY; 47 | 48 | var data = { 49 | ox: ox, 50 | oy: oy, 51 | ow: el.offsetWidth, 52 | oh: el.offsetHeight, 53 | ol: el.offsetLeft, 54 | ot: el.offsetTop 55 | 56 | }; 57 | 58 | if (options && options.onBegin) { 59 | options.onBegin.call(el, data) 60 | } 61 | 62 | var isResize = true; 63 | window.onmousemove = function (event) { 64 | if (!isResize) { 65 | return; 66 | } 67 | var x = event.clientX; 68 | var y = event.clientY; 69 | 70 | //计算 width和height 差值 71 | 72 | var width = x - data.ox; 73 | var height = y - data.oy; 74 | 75 | 76 | data.width = width; 77 | data.height = height; 78 | 79 | var fun = mappers[str]; 80 | if (fun) { 81 | fun.call(obj, data, event); 82 | } 83 | 84 | 85 | } 86 | window.onmouseup = function (ee) { 87 | isResize = false; 88 | ee.stopPropagation() 89 | 90 | if (options && options.onEnd) { 91 | options.onEnd.call(el) 92 | } 93 | } 94 | 95 | //阻止事件冒泡 96 | e.stopPropagation() 97 | } 98 | 99 | }); 100 | 101 | 102 | if (!options) { 103 | options = { 104 | onResize: function () { 105 | 106 | } 107 | } 108 | } else if (!options.onResize) { 109 | options.onResize = function () { 110 | 111 | } 112 | } 113 | 114 | function setLeft(l) { 115 | 116 | options.onResize.call(el, {left: l}); 117 | el.style.left = l + 'px'; 118 | } 119 | 120 | function setTop(t) { 121 | options.onResize.call(el, {top: t}); 122 | el.style.top = t + 'px'; 123 | } 124 | 125 | function setWidth(w) { 126 | if (w < 20) { 127 | w = 20; 128 | } 129 | options.onResize.call(el, {width: w}); 130 | el.style.width = w + 'px'; 131 | } 132 | 133 | function setHeight(h) { 134 | 135 | if (h < 20) { 136 | h = 20; 137 | } 138 | options.onResize.call(el, {height: h}); 139 | el.style.height = h + 'px'; 140 | } 141 | 142 | var mappers = { 143 | s: function (data) { 144 | setHeight(data.oh + data.height); 145 | }, 146 | e: function (data) { 147 | setWidth(data.ow + data.width) 148 | }, 149 | w: function (data) { 150 | var value = data.width; 151 | 152 | 153 | var l = data.ol + value; 154 | var w = data.ow + Math.abs(value); 155 | 156 | if (value > 0) { 157 | w = data.ow - value; 158 | } 159 | 160 | if (w > 20) { 161 | setLeft(l); 162 | setWidth(w); 163 | } 164 | }, 165 | n: function (data) { 166 | var value = data.height; 167 | 168 | var t = data.ot + value; 169 | var h = data.oh + Math.abs(value); 170 | 171 | if (value > 0) { 172 | h = data.oh - value; 173 | } 174 | if (h > 20) { 175 | setHeight(h); 176 | setTop(t); 177 | } 178 | }, 179 | se: function (data) { 180 | mappers.s(data); 181 | mappers.e(data); 182 | }, 183 | nw: function (data) { 184 | mappers.n(data); 185 | mappers.w(data); 186 | }, 187 | ws: function (data) { 188 | mappers.w(data); 189 | mappers.s(data); 190 | }, 191 | ne: function (data) { 192 | mappers.n(data); 193 | mappers.e(data); 194 | } 195 | } 196 | 197 | // el.querySelector() 198 | } 199 | } 200 | -------------------------------------------------------------------------------- /design/x0popup/x0popup.min.js: -------------------------------------------------------------------------------- 1 | /* x0popup - v0.3.3 | http://gao-sun.github.io/x0popup */ 2 | "use strict";var x0popup,x0p,x0pDefaultConfig={title:"Message",text:null,theme:"default",overlay:!0,width:"90%",height:"50%",maxWidth:"450px",maxHeight:"200px",type:"text",icon:null,iconURL:null,inputType:null,inputValue:null,inputPlaceholder:null,inputColor:null,inputValidator:null,inputPromise:null,showCancelButton:null,buttons:null,autoClose:null,html:!1,animation:!0,animationType:"pop",overlayAnimation:!0,keyResponse:!0,showButtonOutline:!1,buttonTextOk:"OK",buttonTextConfirm:"Confirm",buttonTextCancel:"Cancel",buttonTextDefault:"Button"};x0popup=x0p=function(){function t(){var t="";return t+="width: "+y.width+";",t+="height: "+y.height+";",null!=y.maxWidth&&(t+="max-width: "+y.maxWidth+";"),null!=y.maxHeight&&(t+="max-height: "+y.maxHeight+";"),y.animation&&(t+="-webkit-animation-name: x0p"+y.animationType+"; animation-name: x0p"+y.animationType+";"),!y.overlay&&(t+="outline: 1px solid #ddd"),t}function e(){var t="",e=null==y.icon?y.type:y.icon;switch(t+='
',e){case"ok":t+='';break;case"error":t+='';break;case"info":t+='';break;case"warning":t+='';break;case"custom":t+='"}return t+="
"}function n(){var t="";if(x=y.buttons,null==x&&(x=[],1!=y.showCancelButton&&(0==y.showCancelButton||"warning"!=y.type&&"input"!=y.type)||x.push({type:"cancel",key:27}),"text"==y.type||"input"==y.type?x.push({type:"info",key:13}):x.push({type:y.type,key:13})),0==x.length)return"";var e=1==y.keyResponse?"button":"div",n=x.length,i="width: "+(100/n).toFixed(2)+"%; width: calc(100% / "+n+");",l=1==y.showButtonOutline?" button-outline":"";t+='
';for(var o=0;o'+c(a)+""}return t+="
"}function i(t){var e=document.getElementById(t);null!=e&&e.parentNode.removeChild(e)}function l(){g.classList.remove("noscroll"),document.removeEventListener("keydown",u),i("x0popup"),i("x0p-overlay")}function o(){var t=document.getElementById("x0p-buttons");t.innerHTML='
'}function a(){for(var t=x.length-1,e=0;e0){var i=document.getElementById("x0p-button-"+(x.length-1));i.addEventListener("keydown",function(t){9==t.keyCode&&(document.getElementById("x0p-button-0").focus(),t.preventDefault?t.preventDefault():t.returnValue=!1)}),document.getElementById("x0p-button-"+t).focus()}else document.activeElement.blur()}function u(t){for(var e=t.keyCode,n=0;n'+t+"")}function c(t){if(t.hasOwnProperty("text"))return t.text;switch(t.type){case"ok":case"error":case"info":return x0pDefaultConfig.buttonTextOk;case"warning":return x0pDefaultConfig.buttonTextConfirm;case"cancel":return x0pDefaultConfig.buttonTextCancel;default:return x0pDefaultConfig.buttonTextDefault}}function d(){var t=y.inputColor;return null==t?"":""}function v(t){var e=document.createElement("div");return e.innerText=e.textContent=t,t=e.innerHTML}var x,f=arguments[0],m=null,y=JSON.parse(JSON.stringify(x0pDefaultConfig)),h=null,g=document.body;if("string"==typeof f)y.title=arguments[0],void 0!=arguments[1]&&(y.text=arguments[1]),void 0!=arguments[2]&&(y.type=arguments[2]),void 0!=arguments[3]&&("boolean"==typeof arguments[3]?y.overlayAnimation=arguments[3]:m=arguments[3]);else{for(var b in f)y[b]=f[b];void 0!=arguments[1]&&(m=arguments[1])}var w,k,C="",T=null==y.icon&&("text"==y.type||"input"==y.type),E=null!=y.inputType?y.inputType:"input"==y.type?"text":null,B=null==y.inputValue?"":y.inputValue,D=null==y.inputPlaceholder?"":y.inputPlaceholder,L=n(),I=new Promise(function(n,i){w=n,k=i,y.overlay&&(C+='
'),C+='
',C+='
',C+=T?'
':e()+'
',C+='
',C+='
'+y.title+"
",null!=y.text&&(C+='
'+(y.html?y.text:v(y.text))+"
"),null!=E&&(C+='
'+d()+'
'),C+="
",C+="
",C+="
",C+=L,C+="
",l(),g.insertAdjacentHTML("beforeend",C),g.classList.add("noscroll"),a(),1==y.keyResponse&&document.addEventListener("keydown",u);var o=document.getElementById("x0p-input");null!=E&&o.focus(),null!=y.autoClose&&(h=setTimeout(function(){r("timeout")},y.autoClose))});return I},x0popup.setDefault=x0p.setDefault=function(){var t=arguments[0];for(var e in t)x0pDefaultConfig[e]=t[e]},"object"==typeof module&&(module.exports=x0popup); -------------------------------------------------------------------------------- /design/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | /*padding: 50px;*/ 3 | font-family: SFNSText, Helvetica Neue, sans-serif; 4 | padding: 0; 5 | margin: 0; 6 | overflow: hidden; 7 | font-size: 12px; 8 | } 9 | 10 | a { 11 | color: #00B7FF; 12 | } 13 | 14 | #app { 15 | /*padding: 10px;*/ 16 | overflow: hidden; 17 | background: #ccc; 18 | min-width: 600px; 19 | min-height: 500px; 20 | background: url("../images/canvas_bg.jpg") repeat; 21 | } 22 | 23 | #app .left, #app .center, #app .right { 24 | float: left; 25 | overflow: auto; 26 | 27 | } 28 | 29 | #app .left, #app .right { 30 | background-color: #fff; 31 | box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); 32 | } 33 | 34 | #app .center { 35 | /*border: #000 solid 1px;*/ 36 | /*background-color: white;*/ 37 | overflow: auto; 38 | text-align: center; 39 | } 40 | 41 | #app .card { 42 | background: url("../images/grid.png") repeat white; 43 | margin-left: auto; 44 | margin-right: auto; 45 | position: relative; 46 | overflow: hidden; 47 | box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); 48 | outline: none; 49 | border: 2px #fff solid; 50 | } 51 | 52 | #app .card:focus { 53 | border: 2px #6db7ff solid; 54 | } 55 | 56 | #app .pro-box { 57 | border-top: #ccc 1px dashed; 58 | user-select: none; 59 | } 60 | 61 | #app .pro-box:first-child { 62 | border-top: none; 63 | } 64 | 65 | #app .pro-box .title { 66 | /*fontawesome-free-5.6.3-weight: 300;*/ 67 | padding-top: 10px; 68 | padding-left: 10px; 69 | } 70 | 71 | .pro-box .item { 72 | display: table; 73 | padding: 10px; 74 | width: calc(100% - 20px); 75 | } 76 | 77 | .pro-box .item .key { 78 | display: table-cell; 79 | text-align: right; 80 | font-weight: 300; 81 | vertical-align: top; 82 | /*color: #cfcfcf;*/ 83 | } 84 | 85 | .pro-box .item .value { 86 | display: table-cell; 87 | width: 170px; 88 | } 89 | 90 | .pro-box .item .value input { 91 | width: 50px; 92 | } 93 | 94 | 95 | .card .active { 96 | /*border: #00B7FF 2px dashed;*/ 97 | } 98 | 99 | .popup-menu { 100 | padding: 3px 0px; 101 | position: fixed; 102 | background: #FFF; 103 | border-radius: 4px; 104 | border: 1px solid rgb(180, 180, 180); 105 | -webkit-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); 106 | -moz-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); 107 | box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); 108 | z-index: 10000; 109 | user-select: none; 110 | } 111 | 112 | .popup-menu .item { 113 | padding: 5px 10px; 114 | min-width: 100px; 115 | width: 180px; 116 | position: relative; 117 | color: #333; 118 | text-shadow: none; 119 | } 120 | 121 | .popup-menu .item .fa { 122 | margin-right: 10px; 123 | } 124 | 125 | .popup-menu .item:hover { 126 | background-color: #eee; 127 | } 128 | 129 | .popup-menu .split { 130 | height: 0px; 131 | border-top: #ccc solid 1px; 132 | margin: 4px 0; 133 | } 134 | 135 | .disable * { 136 | pointer-events: none; 137 | } 138 | 139 | .shape { 140 | width: 100px; 141 | height: 100px; 142 | position: absolute; 143 | user-select: none; 144 | border: #000 2px solid; 145 | /*overflow: hidden;*/ 146 | outline: none; 147 | } 148 | 149 | .shape *:not(.border,image) { 150 | max-width: 100%; 151 | max-height: 100%; 152 | } 153 | 154 | .shape .text { 155 | overflow: hidden; 156 | text-align: left; 157 | } 158 | 159 | .shape .border { 160 | pointer-events: none; 161 | } 162 | 163 | .pro-box textarea { 164 | width: 165px; 165 | height: 175px; 166 | } 167 | 168 | .shape .image, .shape .image img { 169 | height: 100%; 170 | width: 100%; 171 | } 172 | 173 | .btn { 174 | color: #fff; 175 | background-color: #5cb85c; 176 | 177 | display: inline-block; 178 | padding: 6px 12px; 179 | margin-bottom: 0; 180 | font-size: 14px; 181 | font-weight: 400; 182 | line-height: 1.42857143; 183 | text-align: center; 184 | white-space: nowrap; 185 | vertical-align: middle; 186 | -ms-touch-action: manipulation; 187 | touch-action: manipulation; 188 | cursor: pointer; 189 | -webkit-user-select: none; 190 | -moz-user-select: none; 191 | -ms-user-select: none; 192 | user-select: none; 193 | background-image: none; 194 | border: 1px solid #4cae4c; 195 | border-radius: 4px; 196 | text-decoration: none; 197 | } 198 | 199 | .btn:hover { 200 | color: #fff; 201 | background-color: #449d44; 202 | border-color: #398439; 203 | } 204 | 205 | .btn:active { 206 | color: #fff; 207 | background-color: #397b39; 208 | border-color: #2d652d; 209 | } 210 | 211 | .toolbars .item { 212 | text-align: center; 213 | } 214 | 215 | .toolbars .btn { 216 | min-width: 130px; 217 | } 218 | 219 | .toolbars .btn i { 220 | margin-right: 10px; 221 | } 222 | 223 | .node-list { 224 | padding: 10px; 225 | } 226 | 227 | .node-list .node { 228 | border-bottom: #ccc 1px dotted; 229 | padding: 10px; 230 | 231 | } 232 | 233 | .node-list .node .text { 234 | height: 18px; 235 | overflow: hidden; 236 | } 237 | 238 | .node-list .node:hover { 239 | background-color: #def2fe; 240 | } 241 | 242 | .node-list .active { 243 | background-color: #acdcff; 244 | } 245 | 246 | .empty { 247 | color: #666; 248 | } 249 | 250 | .image-box { 251 | width: 80px; 252 | height: 80px; 253 | border: #ccc 1px solid; 254 | cursor: pointer; 255 | text-align: center; 256 | } 257 | 258 | .image-box .tips { 259 | font-size: 12px; 260 | color: #666; 261 | line-height: 80px; 262 | } 263 | 264 | .card-shape-text { 265 | vertical-align: middle; 266 | display: table-cell; 267 | overflow: hidden; 268 | } 269 | 270 | .jtk-endpoint { 271 | z-index: 9999; 272 | } 273 | 274 | .aLabel { 275 | background-color: white; 276 | /*opacity: .9;*/ 277 | /*border: #ccc dashed 1px;*/ 278 | /*padding: 2px;*/ 279 | font-size: 12px; 280 | content: '文本'; 281 | user-select: none; 282 | } 283 | 284 | .basic .border { 285 | top: -3px; 286 | right: -3px; 287 | bottom: -3px; 288 | left: -3px; 289 | } 290 | 291 | .basic .nw { 292 | left: -6px; 293 | top: -6px; 294 | cursor: nw-resize 295 | } 296 | 297 | .basic .ws { 298 | left: -6px; 299 | bottom: -6px; 300 | cursor: sw-resize 301 | } 302 | 303 | .basic .se { 304 | right: -6px; 305 | bottom: -6px; 306 | cursor: se-resize 307 | } 308 | 309 | .basic .ne { 310 | right: -6px; 311 | top: -6px; 312 | cursor: ne-resize 313 | } 314 | .shape-input { 315 | background: transparent; 316 | height: 100%; 317 | width: 100%; 318 | border: none; 319 | resize: none; 320 | outline: none; 321 | color: black; 322 | text-align: center; 323 | display:inline-block; 324 | vertical-align: middle 325 | } 326 | -------------------------------------------------------------------------------- /design/x0popup/x0popup.min.css: -------------------------------------------------------------------------------- 1 | /* x0popup - v0.3.3 | http://gao-sun.github.io/x0popup */ 2 | .x0l,.x0l .ball{position:absolute}.xi-error span::before,.xi-info span::before,.xi-ok span::before,.xi-warning span::before{content:'';box-sizing:border-box}.x0l{width:120px;height:10px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.x0l .ball{width:0;height:0;border:5px solid #000;border-radius:30%;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:ease;animation-timing-function:ease;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.x0l .ball-1{border-color:#555;-webkit-animation-name:BallFly-1;animation-name:BallFly-1}.x0l .ball-2{border-color:#777;-webkit-animation-name:BallFly-2;animation-name:BallFly-2}.x0l .ball-3{border-color:#999;-webkit-animation-name:BallFly-3;animation-name:BallFly-3}.x0l .ball-4{border-color:#bbb;-webkit-animation-name:BallFly-4;animation-name:BallFly-4}@-webkit-keyframes BallFly-1{88%,from,to{margin-left:0}38%,50%{margin-left:110px}}@keyframes BallFly-1{88%,from,to{margin-left:0}38%,50%{margin-left:110px}}@-webkit-keyframes BallFly-2{4%,92%,from,to{margin-left:0}42%,54%{margin-left:110px}}@keyframes BallFly-2{4%,92%,from,to{margin-left:0}42%,54%{margin-left:110px}}@-webkit-keyframes BallFly-3{8%,96%,from,to{margin-left:0}46%,58%{margin-left:110px}}@keyframes BallFly-3{8%,96%,from,to{margin-left:0}46%,58%{margin-left:110px}}@-webkit-keyframes BallFly-4{12%,from,to{margin-left:0}50%,62%{margin-left:110px}}@keyframes BallFly-4{12%,from,to{margin-left:0}50%,62%{margin-left:110px}}.x0p-overlay{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(180,180,180,.8);z-index:99998;-webkit-animation:x0pfadeIn .5s ease;animation:x0pfadeIn .5s ease}.x0p,.xi{left:50%}.x0p{position:fixed;top:50%;font-size:16px;background-color:#fff;-webkit-transform:translate(-50%,-60%);transform:translate(-50%,-60%);font-family:STHeiti,Helvetica;-webkit-animation:x0ppop .45s ease;animation:x0ppop .45s ease;z-index:99999}.x0p-overlay.no-animation,.x0p.no-animation,.x0p.no-animation .xi>span::before{-webkit-animation:none;animation:none}@-webkit-keyframes x0pfadeIn{from{opacity:0}to{opacity:1}}@keyframes x0pfadeIn{from{opacity:0}to{opacity:1}}@-webkit-keyframes x0ppop{from{-webkit-transform:scale(.9) translate(-55%,-60%);transform:scale(.9) translate(-55%,-60%);opacity:.3}50%{-webkit-transform:scale(1.1) translate(-45%,-60%);transform:scale(1.1) translate(-45%,-60%);opacity:.7}to{-webkit-transform:scale(1) translate(-50%,-60%);transform:scale(1) translate(-50%,-60%);opacity:1}}@keyframes x0ppop{from{-webkit-transform:scale(.9) translate(-55%,-60%);transform:scale(.9) translate(-55%,-60%);opacity:.3}50%{-webkit-transform:scale(1.1) translate(-45%,-60%);transform:scale(1.1) translate(-45%,-60%);opacity:.7}to{-webkit-transform:scale(1) translate(-50%,-60%);transform:scale(1) translate(-50%,-60%);opacity:1}}@-webkit-keyframes x0pslideUp{from{-webkit-transform:translate(-50%,200%);transform:translate(-50%,200%);opacity:0}to{-webkit-transform:translate(-50%,-60%);transform:translate(-50%,-60%);opacity:1}}@keyframes x0pslideUp{from{-webkit-transform:translate(-50%,200%);transform:translate(-50%,200%);opacity:0}to{-webkit-transform:translate(-50%,-60%);transform:translate(-50%,-60%);opacity:1}}@-webkit-keyframes x0pslideDown{from{-webkit-transform:translate(-50%,-260%);transform:translate(-50%,-260%);opacity:0}to{-webkit-transform:translate(-50%,-60%);transform:translate(-50%,-60%);opacity:1}}@keyframes x0pslideDown{from{-webkit-transform:translate(-50%,-260%);transform:translate(-50%,-260%);opacity:0}to{-webkit-transform:translate(-50%,-60%);transform:translate(-50%,-60%);opacity:1}}.xi{position:absolute;width:80px;height:80px;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.xi-ok span::before{position:absolute;height:8%;border-radius:10px;background-color:#60BF80}.xi-ok-left::before{width:40%;left:15%;top:50%;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:showOKLeft .6s ease;animation:showOKLeft .6s ease}.xi-ok-right::before{width:60%;left:35%;top:42%;-webkit-transform:rotate(-50deg);transform:rotate(-50deg);-webkit-animation:showOKRight .75s ease;animation:showOKRight .75s ease}@-webkit-keyframes showOKLeft{75%,from{-webkit-transform:rotate(45deg);transform:rotate(45deg);width:0;left:21%;top:37%}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);width:40%;left:15%;top:50%}}@keyframes showOKLeft{75%,from{-webkit-transform:rotate(45deg);transform:rotate(45deg);width:0;left:21%;top:37%}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);width:40%;left:15%;top:50%}}@-webkit-keyframes showOKRight{80%,from{-webkit-transform:rotate(-50deg);transform:rotate(-50deg);width:0;left:46%;top:65%}to{-webkit-transform:rotate(-50deg);transform:rotate(-50deg);width:60%;left:35%;top:42%}}@keyframes showOKRight{80%,from{-webkit-transform:rotate(-50deg);transform:rotate(-50deg);width:0;left:46%;top:65%}to{-webkit-transform:rotate(-50deg);transform:rotate(-50deg);width:60%;left:35%;top:42%}}.xi-info span::before{position:absolute;background-color:#5080DF}.xi-info-circle::before{width:11%;height:11%;border-radius:50%;left:50%;top:15%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.xi-info-line::before{width:8%;height:45%;border-radius:10px;left:50%;top:35%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.xi-warning span::before{position:absolute;background-color:#F29F3F}.xi-warning-circle::before{width:11%;height:11%;border-radius:50%;left:50%;top:71%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.xi-warning-line::before{width:8%;height:45%;border-radius:10px;left:50%;top:15%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.xi-error span::before{position:absolute;background-color:#EF6080;width:8%;border-radius:10px}.xi-error-right::before{height:80%;top:10%;left:50%;-webkit-transform:translateX(-50%) rotate(45deg);transform:translateX(-50%) rotate(45deg);-webkit-animation:errorDrawRight .6s ease;animation:errorDrawRight .6s ease}.xi-error-left::before{height:80%;top:10%;left:50%;-webkit-transform:translateX(-50%) rotate(-45deg);transform:translateX(-50%) rotate(-45deg);-webkit-animation:errorDrawLeft .75s ease;animation:errorDrawLeft .75s ease}@-webkit-keyframes errorDrawLeft{75%,from{height:0;top:22%;left:23%}to{height:80%;top:10%;left:50%}}@keyframes errorDrawLeft{75%,from{height:0;top:22%;left:23%}to{height:80%;top:10%;left:50%}}@-webkit-keyframes errorDrawRight{80%,from{height:0;top:22%;left:76%}to{height:80%;top:10%;left:50%}}@keyframes errorDrawRight{80%,from{height:0;top:22%;left:76%}to{height:80%;top:10%;left:50%}}.noscroll{overflow:hidden} 3 | .x0p.default .button,.x0p.default .icon-wrapper,.x0p.default .text-pure-wrapper,.x0p.default .text-wrapper{display:inline-block;vertical-align:top}.x0p.default .icon-wrapper{position:relative;width:35%;height:100%}.x0p.default .text-wrapper{position:relative;width:65%;height:100%;margin:0 auto}.x0p.default .text-pure-wrapper{position:relative;width:100%;height:100%}.x0p.default .text-anchor{position:absolute;top:50%;width:100%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.x0p.default .content{width:100%;height:80%;height:calc(100% - 40px)}.x0p.default.no-button .content{height:100%}.x0p.default .buttons{width:100%;height:40px;position:absolute;bottom:0;background-color:#eee}.x0p.default .text-wrapper .input,.x0p.default .text-wrapper .text,.x0p.default .text-wrapper .title{padding-left:0}.x0p.default .title{padding:0 25px;box-sizing:border-box;font-size:28px;font-weight:700;color:#333}.x0p.default .text{margin-top:5%;padding:0 25px;font-size:18px;color:#777}.x0p.default .error{margin-top:1px;padding:5px 10px;font-size:13px;background-color:#fe9999;color:#fcfcfc}.x0p.default .input{padding:0 30px}.x0p.default input[type=text],.x0p.default input[type=password]{margin-top:7%;padding:8px 10px;outline:0;background-color:#f9f9f9;border-width:0 0 1px;border-style:solid;border-color:#aaa;font-size:18px;box-sizing:border-box;width:100%;color:#aaa;-webkit-transition:all ease .3s;transition:all ease .3s}.x0p.default input[type=text]:focus,.x0p.default input[type=password]:focus{border-color:#5080DF;color:#5080DF}.x0p.default .button{text-align:center;padding:12px 0;font-size:16px;margin-bottom:0;box-sizing:border-box;border:0;outline-width:0;outline-style:solid;outline-offset:-1px}.x0p.default .button-outline:focus{outline-width:1px;-webkit-animation:x0pButtonOutline .3s ease;animation:x0pButtonOutline .3s ease}.x0p.default .button:hover{cursor:pointer}@-webkit-keyframes x0pButtonOutline{from{outline-offset:7px}to{outline-offset:-1px}}@keyframes x0pButtonOutline{from{outline-offset:7px}to{outline-offset:-1px}}.x0p.default .button-ok{background-color:#60BF80;outline-color:#207F40;color:#fefefe}.x0p.default .button-ok:hover{background-color:#50AF70}.x0p.default .button-cancel{background-color:#eee;outline-color:#aaa;color:#666}.x0p.default .button-cancel:hover{background-color:#e3e3e3}.x0p.default .button-warning{background-color:#F29F3F;outline-color:#B25F00;color:#fefefe}.x0p.default .button-warning:hover{background-color:#E28F2F}.x0p.default .button-info{background-color:#6090EF;outline-color:#2050AF;color:#fefefe}.x0p.default .button-info:hover{background-color:#5080DF}.x0p.default .button-error{background-color:#EF6080;outline-color:#AF2040;color:#fefefe}.x0p.default .button-error:hover{background-color:#DF5070} -------------------------------------------------------------------------------- /design/js/frame.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 初始化布局UI 3 | */ 4 | function frameInit() { 5 | 6 | initResize(); 7 | initSelectArea(); 8 | initDrag(); 9 | initFocus(); 10 | 11 | componentInit(); 12 | initApp(); 13 | initLayout(); 14 | 15 | initJsPlumb(); 16 | 17 | 18 | document.addEventListener('click', function () { 19 | 20 | app.popup.show = false; 21 | app.cardPopup.show = false; 22 | }); 23 | 24 | for (var i = 0; i < 2; i++) { 25 | 26 | pushShape({ 27 | left: i * 3 * 20, 28 | top: i * 3 * 20, 29 | width: 100, 30 | height: 28, 31 | // value: new Date().getTime(), 32 | value: '开始', 33 | type: 0, 34 | }) 35 | } 36 | 37 | } 38 | 39 | function pushShape(data) { 40 | 41 | 42 | //0=文本,1=图片 43 | 44 | //一个随机不重复的id,用于当前判断 45 | if (!data.id) { 46 | data.id = getShapeId(); 47 | } 48 | 49 | //默认不能编辑 50 | data.editor = false; 51 | 52 | if (!data.active) { 53 | data.active = false; 54 | } 55 | data.type = data.type || 0; 56 | 57 | if (data.type == 0) { 58 | data.background = '#ffb952'; 59 | data.borderWidth = 2; 60 | data.borderColor = 'black'; 61 | } 62 | 63 | if (data.type == 1) { 64 | data.fontColor = 'black'; 65 | data.padding = '0px'; 66 | } 67 | 68 | if (data.type == 2) { 69 | data.background = '#5a95c9'; 70 | data.borderRadius = '0'; 71 | data.borderWidth = 2; 72 | data.borderColor = 'black'; 73 | } 74 | 75 | data.selectArea = false; 76 | 77 | var defaultData = { 78 | borderWidth: 0, 79 | borderColor: '#000000', 80 | borderStyle: 'solid', 81 | borderRadius: '20', 82 | padding: '10', 83 | 84 | fontColor: '#000000', 85 | fontSize: 12, 86 | fontStyle: '', 87 | value: '文本标签', 88 | height: 28 89 | , background: 'green', 90 | //端点 91 | endpoints: [] 92 | } 93 | for (var key in defaultData) { 94 | if (!data[key]) { 95 | data[key] = defaultData[key]; 96 | } 97 | } 98 | app.shapes.push(data); 99 | data.index = app.shapes.length; 100 | setTimeout(() => { 101 | endpoint(data.id, data.type) 102 | }, 100) 103 | } 104 | 105 | /** 106 | * 获取一个随机数id,18位 107 | * @returns {string} 108 | */ 109 | function getShapeId() { 110 | return new Date().getTime() + "" + Math.floor(Math.random() * 89999 + 10000); 111 | } 112 | 113 | function initFocus() { 114 | Vue.directive('focus', { 115 | inserted(el, binding) { 116 | console.log(binding.value) 117 | if (binding) { 118 | el.focus(); 119 | } 120 | } 121 | }); 122 | } 123 | 124 | function initSelectArea() { 125 | Vue.directive('selectarea', { 126 | inserted(el, binding) { 127 | new SelectArea({ 128 | onBegin: function () { 129 | 130 | }, 131 | onHandler: function (data) { 132 | 133 | var count = 0; 134 | var tempShape = null; 135 | app.shapes.forEach(item => { 136 | //计算出每个item的x1 x2 y1 y2 137 | var ix1 = item.left, ix2 = item.left + item.width; 138 | var iy1 = item.top, iy2 = item.top + item.height; 139 | 140 | //碰撞检测 141 | var crash = (data.y2 >= iy1 && data.y1 <= iy2) && (data.x2 >= ix1 && data.x1 <= ix2); 142 | item.active = crash; 143 | item.selectArea = crash; 144 | if (crash) { 145 | tempShape = item; 146 | count++; 147 | } 148 | }); 149 | 150 | //如果只有一个,显示置顶和底菜单,并显示属性 151 | var single = count == 1; 152 | for (var i = 1; i < app.popup.menus.length; i++) { 153 | app.popup.menus[i].show = single; 154 | } 155 | 156 | if (single) { 157 | app.selectShape(null, tempShape); 158 | } else { 159 | app.selected = {} 160 | } 161 | }, 162 | onEnd: function () { 163 | 164 | } 165 | }).register(el); 166 | } 167 | }); 168 | } 169 | 170 | function initResize() { 171 | Vue.directive('resize', { 172 | inserted(dv, binding) { 173 | //注册拉伸 174 | var resize = new Resize({ 175 | onResize: function (data) { 176 | for (var key in data) { 177 | binding.value.shape[key] = data[key]; 178 | } 179 | // console.log(this) 180 | // jsp.repaint(this); 181 | jsp.repaintEverything(); 182 | } 183 | }); 184 | resize.register(dv); 185 | } 186 | }); 187 | } 188 | 189 | function initDrag() { 190 | 191 | Vue.directive('drag', { 192 | inserted(dv, binding) { 193 | var drag = new Drag({ 194 | onBegin: function (data) { 195 | 196 | var id = parseInt(dv.getAttribute('data-id')); 197 | 198 | 199 | var self = {} 200 | for (var i = 0; i < app.shapes.length; i++) { 201 | var item = app.shapes[i]; 202 | if (item.id == id) { 203 | self = item; 204 | break; 205 | } 206 | } 207 | self.active = true; 208 | 209 | if (!self.selectArea) { 210 | app.shapes.forEach(item => { 211 | if (item != self) { 212 | item.selectArea = false; 213 | item.active = false; 214 | } 215 | }) 216 | } else { 217 | //所有选中的 记录下旧的坐标 218 | app.shapes.forEach(item => { 219 | if (item.active) { 220 | item.oldLeft = item.left; 221 | item.oldTop = item.top; 222 | } 223 | }); 224 | } 225 | 226 | }, 227 | onEnd: function (data) { 228 | app.shapes.forEach(item => { 229 | if (item.active) { 230 | item.oldLeft = item.left; 231 | item.oldTop = item.top; 232 | } 233 | }); 234 | }, 235 | onDrag: function (data) { 236 | var shape = binding.value.shape; 237 | shape.left = data.left; 238 | shape.top = data.top; 239 | 240 | //所有选中的移动,不包括当前 241 | app.shapes.forEach(item => { 242 | if (item.active && item != shape) { 243 | item.left = data.x + item.oldLeft; 244 | item.top = data.y + item.oldTop; 245 | } 246 | }); 247 | 248 | //重绘 249 | jsp.repaintEverything(); 250 | } 251 | }) 252 | drag.register(dv); 253 | 254 | // //注册拉伸 255 | // var resize = new Resize({ 256 | // onResize: function (data) { 257 | // for (var key in data) { 258 | // binding.value.shape[key] = data[key]; 259 | // } 260 | // } 261 | // }); 262 | // resize.register(dv); 263 | } 264 | }); 265 | 266 | } 267 | 268 | function moveLeft(val) { 269 | app.shapes.forEach(item => { 270 | if (item.active) { 271 | item.left += val; 272 | jsp.repaintEverything(); 273 | } 274 | }); 275 | } 276 | 277 | function moveTop(val) { 278 | app.shapes.forEach(item => { 279 | if (item.active) { 280 | item.top += val; 281 | jsp.repaintEverything(); 282 | } 283 | }); 284 | } 285 | 286 | function initApp() { 287 | window.app = new Vue({ 288 | el: '#app', 289 | data: { 290 | layout: { 291 | left: 250, 292 | right: 250, 293 | center: 200, 294 | margin: 0, 295 | width: getSize().width, 296 | height: getSize().width 297 | }, 298 | card: { 299 | width: 5000, 300 | height: 5000, 301 | name: '' 302 | }, 303 | selected: {}, 304 | isSelected: false, 305 | shapes: [], 306 | cardPopup: { 307 | show: false, 308 | left: 0, 309 | top: 0, 310 | menus: [{ 311 | text: '重绘界面', 312 | // icon: 'fas fa-sync-alt', 313 | handler: function () { 314 | jsp.repaintEverything(); 315 | } 316 | }, { 317 | text: '插入开始', 318 | icon: '', 319 | handler: function () { 320 | app.addShape(0, app.mousePos.x, app.mousePos.y); 321 | } 322 | }, { 323 | split: true 324 | }, { 325 | text: '插入判断', 326 | icon: 'far fa-diamond', 327 | handler: function () { 328 | app.addShape(1, app.mousePos.x, app.mousePos.y); 329 | } 330 | }, { 331 | text: '插入结果', 332 | icon: 'far fa-rectangle-landscape', 333 | handler: function () { 334 | app.addShape(2, app.mousePos.x, app.mousePos.y); 335 | } 336 | }, { 337 | text: '全部删除', 338 | icon: '', 339 | handler: function () { 340 | deleteAll(); 341 | } 342 | }] 343 | }, 344 | popup: { 345 | show: false, 346 | left: 0, 347 | top: 0, 348 | menus: [{ 349 | text: '删除', 350 | icon: 'fa-unlink', 351 | show: true, 352 | handler: function () { 353 | var data = app.popup.data; 354 | 355 | x0p('Confirmation', '确定要该元素吗?', 'warning').then(function (e) { 356 | if (e.button == 'warning') { 357 | app.shapes = app.shapes.filter(t => { 358 | 359 | return t.id != data.id 360 | }); 361 | 362 | //删除元素有关的连接线 363 | // jsp.remove(data.id); 364 | jsp.removeAllEndpoints(data.id); 365 | jsp.repaintEverything(); 366 | 367 | if (data.active) { 368 | app.selected = {}; 369 | } 370 | } 371 | }); 372 | 373 | 374 | } 375 | }, { 376 | split: true, 377 | show: true 378 | }, { 379 | text: '编辑', 380 | icon: 'fa-edit', 381 | show: true, 382 | handler: function () { 383 | var data = app.popup.data; 384 | data.editor = true; 385 | } 386 | }] 387 | }, 388 | isShiftDown: false 389 | }, 390 | watch: { 391 | selected: function (value) { 392 | var sed = false; 393 | 394 | 395 | for (var i in value) { 396 | sed = true; 397 | break; 398 | } 399 | 400 | app.isSelected = sed; 401 | } 402 | }, 403 | created: function () { 404 | console.log('ok') 405 | console.log(this.shapes) 406 | 407 | }, 408 | methods: { 409 | cardClick: function (e) { 410 | if (e.button != 0) { 411 | return; 412 | } 413 | app.shapes.forEach(item => { 414 | item.active = false; 415 | item.selectArea = false; 416 | }); 417 | app.popup.show = false; 418 | app.selected = {} 419 | 420 | }, 421 | selectShape: function (e, shape) { 422 | this.shapes.forEach(item => { 423 | if (!item.selectArea) { 424 | item.active = false 425 | } 426 | }); 427 | shape.active = true; 428 | if (e) { 429 | e.preventDefault(); 430 | } 431 | this.selected = shape; 432 | this.isSelected = true; 433 | }, 434 | showContextmenu: function (e, data) { 435 | app.popup.left = e.clientX; 436 | app.popup.top = e.clientY; 437 | app.popup.show = true; 438 | app.popup.data = data; 439 | 440 | app.cardPopup.show = false; 441 | }, 442 | showCardMenu: function (e) { 443 | var cardMenu = app.cardPopup; 444 | cardMenu.left = e.clientX; 445 | cardMenu.top = e.clientY; 446 | cardMenu.show = true; 447 | app.popup.show = false; 448 | 449 | //记录鼠标指针临时位置 450 | app.mousePos = { 451 | x: e.clientX - e.target.offsetLeft, 452 | y: e.clientY - e.target.offsetTop 453 | } 454 | }, 455 | cardKeyup: function (e) { 456 | if (e.keyCode == 9) { 457 | app.isShiftDown = false; 458 | } 459 | }, 460 | selectAll: function () { 461 | app.shapes.forEach(item => { 462 | item.active = true; 463 | item.selectArea = true; 464 | }); 465 | }, 466 | unselectAll: function () { 467 | app.shapes.forEach(item => { 468 | item.active = false; 469 | item.selectArea = false; 470 | }); 471 | }, 472 | shapeMove: function (e, data, index) { 473 | var code = e.keyCode; 474 | if (e.ctrlKey && code == 65) { 475 | this.selectAll(); 476 | return; 477 | } 478 | 479 | if (e.ctrlKey && code == 68) { 480 | this.unselectAll(); 481 | return; 482 | } 483 | var keymaps = { 484 | 37: () => moveLeft(-1), 485 | 38: () => moveTop(-1), 486 | 39: () => moveLeft(1), 487 | 40: () => moveTop(1), 488 | 9: () => app.isShiftDown = true, 489 | 8: function () { 490 | 491 | // app.popup.del(); 492 | }, 493 | 494 | }; 495 | var fun = keymaps[code]; 496 | if (fun) { 497 | 498 | if (e && e.stopPropagation) { 499 | //W3C取消冒泡事件 500 | e.stopPropagation(); 501 | } else { 502 | //IE取消冒泡事件 503 | window.event.cancelBubble = true; 504 | } 505 | fun.call(data, index); 506 | } 507 | }, 508 | addShape: function (type, x, y) { 509 | x = x || 10; 510 | y = y || 10; 511 | var value = '文本'; 512 | var width = 60, height = 28; 513 | 514 | //默认图片 515 | if (type == 1) { 516 | value = '判断'; 517 | width = 145; 518 | height = 75; 519 | } 520 | //获取滚动条位置 521 | 522 | var sx = document.getElementById('center').scrollLeft, sy = document.getElementById('center').scrollTop; 523 | 524 | var data = { 525 | left: x + sx, 526 | top: y + sy, 527 | width: width, 528 | height: height, 529 | value: value, 530 | type: type, 531 | active: true 532 | }; 533 | app.selectShape(null, data); 534 | pushShape(data) 535 | } 536 | } 537 | }); 538 | } 539 | 540 | function initLayout() { 541 | 542 | 543 | function handlerLayout() { 544 | var size = getSize(); 545 | // if (size.width < 600 || size.height < 500) { 546 | // return; 547 | // } 548 | app.layout.width = size.width; 549 | app.layout.height = size.height; 550 | 551 | //计算center的宽度 552 | //2=3个边框的宽度3*2 553 | //20=2个框的外边距 554 | //20=内边距 555 | 556 | app.layout.center = size.width - app.layout.left - (app.layout.margin * 2); 557 | 558 | } 559 | 560 | handlerLayout(); 561 | 562 | window.onresize = handlerLayout; 563 | 564 | } 565 | 566 | function getSize() { 567 | 568 | return { 569 | width: document.documentElement.clientWidth || document.body.clientWidth, 570 | height: document.documentElement.clientHeight || document.body.clientHeight 571 | }; 572 | } 573 | 574 | function initJsPlumb() { 575 | jsPlumb.ready(function () { 576 | // jsPlumb.setSuspendDrawing(true); 577 | var instance = window.jsp = jsPlumb.getInstance({ 578 | // default drag options 579 | DragOptions: {cursor: 'pointer', zIndex: 2000}, 580 | // the overlays to decorate each connection with. note that the label overlay uses a function to generate the label text; in this 581 | // case it returns the 'labelText' member that we set on each connection in the 'init' method below. 582 | ConnectionOverlays: [ 583 | ["Arrow", { 584 | location: 1, 585 | visible: true, 586 | width: 11, 587 | length: 11, 588 | id: "ARROW", 589 | events: { 590 | click: function () { 591 | alert("you clicked on the arrow overlay") 592 | } 593 | } 594 | }], 595 | ["Label", { 596 | location: 0.8, 597 | id: "label", 598 | cssClass: "aLabel", 599 | events: { 600 | tap: function () { 601 | var connId = this.component.id; 602 | 603 | console.log(connId) 604 | var label = this; 605 | var val = label.getLabel(); 606 | if (!val || val == '') { 607 | val = '标签'; 608 | } 609 | 610 | x0p('输入描述', null, 'input').then( 611 | function (data) { 612 | 613 | if (data.button == 'info') { 614 | val = data.text; 615 | label.setLabel(val); 616 | } 617 | }); 618 | 619 | } 620 | } 621 | }] 622 | ], 623 | Container: "card-wrapper" 624 | }); 625 | 626 | var basicType = { 627 | connector: "StateMachine", 628 | paintStyle: {stroke: "red", strokeWidth: 4}, 629 | hoverPaintStyle: {stroke: "blue"}, 630 | overlays: [ 631 | "Arrow" 632 | ] 633 | }; 634 | instance.registerConnectionType("basic", basicType); 635 | 636 | instance.bind("connection", function (connInfo, originalEvent) { 637 | var label = connInfo.connection.getOverlay("label"); 638 | label.setLabel('标签'); 639 | }); 640 | instance.bind("Endpoint", function () { 641 | console.log(arguments); 642 | }) 643 | 644 | // 单点击了连接线, 645 | jsp.bind('dblclick', function (conn, originalEvent) { 646 | console.log('删除链接:' + conn.id) 647 | x0p('Confirmation', '确定要删除连接线吗?', 'warning').then(function (e) { 648 | if (e.button == 'warning') { 649 | 650 | jsp.deleteConnection(conn) 651 | } 652 | }); 653 | 654 | }); 655 | }); 656 | } 657 | 658 | function deleteAll() { 659 | app.shapes.forEach(item => { 660 | jsp.removeAllEndpoints(item.id) 661 | }); 662 | jsp.repaintEverything(); 663 | app.shapes = []; 664 | } 665 | 666 | var common = { 667 | isSource: true, 668 | isTarget: true, 669 | connector: 'Flowchart', 670 | endpoint: ['Dot', { 671 | radius: 5, 672 | fill: '#ff5722' 673 | }], 674 | // enabled:true, 675 | cssClass: '', 676 | maxConnections: -1, 677 | paintStyle: { 678 | radius: 3, 679 | fill: '#FFFFFF', 680 | stroke: "#7AB02C", 681 | 682 | // strokeWidth: 1, 683 | // width:3 684 | }, 685 | hoverPaintStyle: { 686 | fill: "#216477", 687 | stroke: "#216477" 688 | }, 689 | connectorStyle: { 690 | strokeWidth: 2, 691 | stroke: "#216477", 692 | outlineWidth: 3, 693 | outlineStroke: "white" 694 | }, 695 | connectorHoverStyle: { 696 | strokeWidth: 3, 697 | stroke: "#216477", 698 | outlineWidth: 5, 699 | outlineStroke: "white" 700 | }, 701 | dragOptions: {}, 702 | // connectorHoverStyle: { 703 | // strokeWidth: 0.2 704 | // }, 705 | //不允许回环自己 706 | allowLoopback: false 707 | //如果只想产生一个端点,而不是多个端点 708 | //uniqueEndpoint:true 709 | , overlays: [ 710 | "Arrow", 711 | // [ "Label", { label:"1", location:1, id:"",cssClass:'endpoint-label-lkiarest' } ] 712 | ], 713 | 714 | } 715 | 716 | function endpoint(id, type) { 717 | 718 | 719 | /* 720 | 721 | anchor:"Continuous" 722 | //or 723 | anchor:["Continuous",{faces:["top","left"]}] 724 | 725 | faces同样有四个值:top,left,right,bottom。 726 | 727 | 将CSS类与Anchors相关联 728 | var ep = jsPlumb.addEndpoint("ele1",{ 729 | anchor:[0,0,0,0,0,0,"test"] 730 | }); 731 | 732 | * */ 733 | var array = ['Top', 'Bottom', 'Right', 'Left']; 734 | array.forEach(val => { 735 | 736 | jsp.addEndpoint(id, { 737 | anchor: val 738 | }, common) 739 | }, function () { 740 | console.log('ok') 741 | }); 742 | 743 | // jsp.draggable(id); 744 | } 745 | 746 | function getData() { 747 | 748 | var json = {}; 749 | //读取endpoints 信息 750 | var data = {}; 751 | var shapes = []; 752 | json.shapes = shapes; 753 | 754 | app.shapes.forEach(item => { 755 | 756 | //太多无用的字段,只挑选需要的 757 | var fields = ['id', 'left', 'top', 'width', 'height', 'type', 'value']; 758 | var temp = {}; 759 | fields.forEach(key => { 760 | temp[key] = item[key]; 761 | }); 762 | temp.endpoints = [] 763 | data[temp.id] = temp; 764 | }); 765 | 766 | //保存endpoints 767 | jsp.getConnections().forEach(item => { 768 | data[item.sourceId].endpoints.push({ 769 | targetId: item.targetId, 770 | label: item.getOverlay("label").getLabel(), 771 | anchors: [item.endpoints[0].anchor.type, item.endpoints[1].anchor.type] 772 | }) 773 | 774 | }); 775 | //转为json数组 776 | for (var i in data) { 777 | shapes.push(data[i]); 778 | } 779 | json.card = app.card; 780 | return json; 781 | } 782 | 783 | function loadChart(app, data) { 784 | 785 | deleteAll(); 786 | app.card = data.card; 787 | var shapes = data.shapes; 788 | app.$nextTick(function () { 789 | shapes.forEach(item => { 790 | pushShape(item); 791 | }); 792 | }); 793 | app.$nextTick(function () { 794 | shapes.forEach(item => { 795 | jsp.makeSource(item.id, common); 796 | }); 797 | var endpoints = []; 798 | 799 | shapes.forEach(item => { 800 | item.endpoints.forEach(p => { 801 | endpoints.push({ 802 | source: item.id, 803 | target: p.targetId, 804 | anchors: p.anchors, 805 | tips: p.label 806 | // label: p.label, 807 | // overlays: [ 808 | // "Arrow", 809 | // ["Label", {label: p.l, location: 1, id: "label", cssClass: 'aLabel'}] 810 | // ], 811 | }); 812 | }); 813 | }); 814 | setTimeout(function () { 815 | 816 | endpoints.forEach(item => { 817 | var conn = jsp.connect(item, common); 818 | conn.getOverlay('label').setLabel(item.tips); 819 | }); 820 | }, 100) 821 | 822 | }) 823 | } 824 | 825 | var ddd = { 826 | "shapes": [ 827 | { 828 | "id": "155226886759344950", 829 | "left": 403, 830 | "top": 70, 831 | "width": 100, 832 | "height": 28, 833 | "type": 0, 834 | "value": "开始22", 835 | "endpoints": [ 836 | { 837 | "targetId": "155226887217748113", 838 | "label": "123", 839 | "anchors": [ 840 | "Right", 841 | "Top" 842 | ] 843 | }, 844 | { 845 | "targetId": "155226887217748113", 846 | "label": "111", 847 | "anchors": [ 848 | "Bottom", 849 | "Top" 850 | ] 851 | } 852 | ] 853 | }, 854 | { 855 | "id": "155226887217748113", 856 | "left": 645, 857 | "top": 179, 858 | "width": 145, 859 | "height": 75, 860 | "type": 1, 861 | "value": "判断111", 862 | "endpoints": [ 863 | { 864 | "targetId": "155226887627288485", 865 | "label": "555", 866 | "anchors": [ 867 | "Bottom", 868 | "Top" 869 | ] 870 | }, 871 | { 872 | "targetId": "155226888658553342", 873 | "label": "444", 874 | "anchors": [ 875 | "Left", 876 | "Top" 877 | ] 878 | } 879 | ] 880 | }, 881 | { 882 | "id": "155226887627288485", 883 | "left": 674, 884 | "top": 334, 885 | "width": 60, 886 | "height": 28, 887 | "type": 2, 888 | "value": "文本222", 889 | "endpoints": [] 890 | }, 891 | { 892 | "id": "155226888658553342", 893 | "left": 480, 894 | "top": 324, 895 | "width": 60, 896 | "height": 28, 897 | "type": 2, 898 | "value": "文本111", 899 | "endpoints": [] 900 | } 901 | ], 902 | "card": { 903 | "width": 5000, 904 | "height": 5000, 905 | "name": "客户咨询流程图" 906 | } 907 | } 908 | 909 | -------------------------------------------------------------------------------- /design/fontawesome-free-5.6.3/css/all.min.css: -------------------------------------------------------------------------------- 1 | .fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-icicles:before{content:"\f7ad"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} -------------------------------------------------------------------------------- /design/vue/vue.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Vue.js v2.5.22 3 | * (c) 2014-2019 Evan You 4 | * Released under the MIT License. 5 | */ 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function s(e){return"[object Object]"===a.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function l(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var h=Object.prototype.hasOwnProperty;function m(e,t){return h.call(e,t)}function y(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var g=/-(\w)/g,_=y(function(e){return e.replace(g,function(e,t){return t?t.toUpperCase():""})}),b=y(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),$=/\B([A-Z])/g,w=y(function(e){return e.replace($,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function x(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function k(e,t){for(var n in t)e[n]=t[n];return e}function A(e){for(var t={},n=0;n0,q=z&&z.indexOf("edge/")>0,W=(z&&z.indexOf("android"),z&&/iphone|ipad|ipod|ios/.test(z)||"ios"===V),G=(z&&/chrome\/\d+/.test(z),{}.watch),Z=!1;if(B)try{var X={};Object.defineProperty(X,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,X)}catch(e){}var Y=function(){return void 0===R&&(R=!B&&!U&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),R},Q=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ee(e){return"function"==typeof e&&/native code/.test(e.toString())}var te,ne="undefined"!=typeof Symbol&&ee(Symbol)&&"undefined"!=typeof Reflect&&ee(Reflect.ownKeys);te="undefined"!=typeof Set&&ee(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var re=O,ie=0,oe=function(){this.id=ie++,this.subs=[]};oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){v(this.subs,e)},oe.prototype.depend=function(){oe.target&&oe.target.addDep(this)},oe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===w(e)){var c=Me(String,i.type);(c<0||s0&&(it((u=e(u,(a||"")+"_"+c))[0])&&it(f)&&(s[l]=pe(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?it(f)?s[l]=pe(f.text+u):""!==u&&s.push(pe(u)):it(u)&&it(f)?s[l]=pe(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function it(e){return n(e)&&n(e.text)&&!1===e.isComment}function ot(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),o(e)?t.extend(e):e}function at(e){return e.isComment&&e.asyncFactory}function st(e){if(Array.isArray(e))for(var t=0;tkt&&bt[n].id>e.id;)n--;bt.splice(n+1,0,e)}else bt.push(e);Ct||(Ct=!0,We(At))}}(this)},St.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){De(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},St.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},St.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},St.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Tt={enumerable:!0,configurable:!0,get:O,set:O};function Nt(e,t,n){Tt.get=function(){return this[t][n]},Tt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tt)}function jt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&ge(!1);var o=function(o){i.push(o);var a=Ee(o,t,n,e);$e(r,o,a),o in e||Nt(e,"_props",o)};for(var a in t)o(a);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?O:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){se();try{return e.call(t,t)}catch(e){return De(e,t,"data()"),{}}finally{ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&m(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Nt(e,"_data",o))}var a;be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Y();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new St(e,a||O,O,Et)),i in e||It(e,i,o)}}(e,t.computed),t.watch&&t.watch!==G&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function dn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=fn(a.componentOptions);s&&!t(s)&&vn(n,o,r,i)}}}function vn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=sn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Ne(cn(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ft(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=pt(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return an(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return an(t,e,n,r,i,!0)};var o=r&&r.data;$e(t,"$attrs",o&&o.attrs||e,null,!0),$e(t,"$listeners",n._parentListeners||e,null,!0)}(n),_t(n,"beforeCreate"),function(e){var t=Pt(e.$options.inject,e);t&&(ge(!1),Object.keys(t).forEach(function(n){$e(e,n,t[n])}),ge(!0))}(n),jt(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),_t(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(un),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=we,e.prototype.$delete=Ce,e.prototype.$watch=function(e,t,n){if(s(t))return Dt(this,e,t,n);(n=n||{}).user=!0;var r=new St(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){De(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(un),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?x(t):t;for(var n=x(arguments,1),r=0,i=t.length;rparseInt(this.max)&&vn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return D}};Object.defineProperty(e,"config",t),e.util={warn:re,extend:k,mergeOptions:Ne,defineReactive:$e},e.set=we,e.delete=Ce,e.nextTick=We,e.options=Object.create(null),L.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,k(e.options.components,mn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),ln(e),function(e){L.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(un),Object.defineProperty(un.prototype,"$isServer",{get:Y}),Object.defineProperty(un.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(un,"FunctionalRenderContext",{value:Zt}),un.version="2.5.22";var yn=f("style,class"),gn=f("input,textarea,option,select,progress"),_n=function(e,t,n){return"value"===n&&gn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},bn=f("contenteditable,draggable,spellcheck"),$n=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),wn="http://www.w3.org/1999/xlink",Cn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xn=function(e){return Cn(e)?e.slice(6,e.length):""},kn=function(e){return null==e||!1===e};function An(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=On(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=On(t,r.data));return function(e,t){if(n(e)||n(t))return Sn(e,Tn(t));return""}(t.staticClass,t.class)}function On(e,t){return{staticClass:Sn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function Sn(e,t){return e?t?e+" "+t:e:t||""}function Tn(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i-1?er(e,t,n):$n(t)?kn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):bn(t)?e.setAttribute(t,kn(n)||"false"===n?"false":"true"):Cn(t)?kn(n)?e.removeAttributeNS(wn,xn(t)):e.setAttributeNS(wn,t,n):er(e,t,n)}function er(e,t,n){if(kn(n))e.removeAttribute(t);else{if(K&&!J&&("TEXTAREA"===e.tagName||"INPUT"===e.tagName)&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var tr={create:Yn,update:Yn};function nr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=An(r),c=i._transitionClasses;n(c)&&(s=Sn(s,Tn(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var rr,ir,or,ar,sr,cr,ur={create:nr,update:nr},lr=/[\w).+\-_$\]]/;function fr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&lr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,ar),key:'"'+e.slice(ar+1)+'"'}:{exp:e,key:null};ir=e,ar=sr=cr=0;for(;!kr();)Ar(or=xr())?Sr(or):91===or&&Or(or);return{exp:e.slice(0,sr),key:e.slice(sr+1,cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function xr(){return ir.charCodeAt(++ar)}function kr(){return ar>=rr}function Ar(e){return 34===e||39===e}function Or(e){var t=1;for(sr=ar;!kr();)if(Ar(e=xr()))Sr(e);else if(91===e&&t++,93===e&&t--,0===t){cr=ar;break}}function Sr(e){for(var t=e;!kr()&&(e=xr())!==t;);}var Tr,Nr="__r",jr="__c";function Er(e,t,n){var r=Tr;return function i(){null!==t.apply(null,arguments)&&Lr(e,i,n,r)}}function Ir(e,t,n,r){var i;t=(i=t)._withTask||(i._withTask=function(){ze=!0;try{return i.apply(null,arguments)}finally{ze=!1}}),Tr.addEventListener(e,t,Z?{capture:n,passive:r}:n)}function Lr(e,t,n,r){(r||Tr).removeEventListener(e,t._withTask||t,n)}function Mr(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};Tr=r.elm,function(e){if(n(e[Nr])){var t=K?"change":"input";e[t]=[].concat(e[Nr],e[t]||[]),delete e[Nr]}n(e[jr])&&(e.change=[].concat(e[jr],e.change||[]),delete e[jr])}(i),et(i,o,Ir,Lr,Er,r.context),Tr=void 0}}var Dr={create:Mr,update:Mr};function Pr(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=k({},c)),s)t(c[i])&&(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i){a._value=o;var u=t(o)?"":String(o);Fr(a,u)&&(a.value=u)}else a[i]=o}}}function Fr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.lazy)return!1;if(i.number)return l(r)!==l(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var Rr={create:Pr,update:Pr},Hr=y(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Br(e){var t=Ur(e.style);return e.staticStyle?k(e.staticStyle,t):t}function Ur(e){return Array.isArray(e)?A(e):"string"==typeof e?Hr(e):e}var Vr,zr=/^--/,Kr=/\s*!important$/,Jr=function(e,t,n){if(zr.test(t))e.style.setProperty(t,n);else if(Kr.test(n))e.style.setProperty(t,n.replace(Kr,""),"important");else{var r=Wr(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Xr).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Qr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xr).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function ei(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&k(t,ti(e.name||"v")),k(t,e),t}return"string"==typeof e?ti(e):void 0}}var ti=y(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ni=B&&!J,ri="transition",ii="animation",oi="transition",ai="transitionend",si="animation",ci="animationend";ni&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oi="WebkitTransition",ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(si="WebkitAnimation",ci="webkitAnimationEnd"));var ui=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function li(e){ui(function(){ui(e)})}function fi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Yr(e,t))}function pi(e,t){e._transitionClasses&&v(e._transitionClasses,t),Qr(e,t)}function di(e,t,n){var r=hi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ri?ai:ci,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=ri,l=a,f=o.length):t===ii?u>0&&(n=ii,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?ri:ii:null)?n===ri?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===ri&&vi.test(r[oi+"Property"])}}function mi(e,t){for(;e.length1}function wi(e,t){!0!==t.data.show&&gi(t)}var Ci=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;ov?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(0,r,f,v)}(f,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(f,""),_(f,null,y,0,y.length-1,o)):n(h)?$(0,h,0,h.length-1):n(e.text)&&u.setTextContent(f,""):e.text!==i.text&&u.setTextContent(f,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function k(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o-1,a.selected!==o&&(a.selected=o);else if(N(Si(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Oi(e,t){return t.every(function(t){return!N(t,e)})}function Si(e){return"_value"in e?e._value:e.value}function Ti(e){e.target.composing=!0}function Ni(e){e.target.composing&&(e.target.composing=!1,ji(e.target,"input"))}function ji(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ei(e){return!e.componentInstance||e.data&&e.data.transition?e:Ei(e.componentInstance._vnode)}var Ii={model:xi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ei(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,gi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ei(n)).data&&n.data.transition?(n.data.show=!0,r?gi(n,function(){e.style.display=e.__vOriginalDisplay}):_i(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Li={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Mi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Mi(st(t.children)):e}function Di(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[_(o)]=i[o];return t}function Pi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Fi=function(e){return e.tag||at(e)},Ri=function(e){return"show"===e.name},Hi={name:"transition",props:Li,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Fi)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=Mi(o);if(!a)return o;if(this._leaving)return Pi(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=Di(this),u=this._vnode,l=Mi(u);if(a.data.directives&&a.data.directives.some(Ri)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!at(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=k({},c);if("out-in"===r)return this._leaving=!0,tt(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Pi(e,o);if("in-out"===r){if(at(a))return u;var p,d=function(){p()};tt(c,"afterEnter",d),tt(c,"enterCancelled",d),tt(f,"delayLeave",function(e){p=e})}}return o}}},Bi=k({tag:String,moveClass:String},Li);function Ui(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Vi(e){e.data.newPos=e.elm.getBoundingClientRect()}function zi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Bi.mode;var Ki={Transition:Hi,TransitionGroup:{props:Bi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=mt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Di(this),s=0;s-1?Mn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Mn[e]=/HTMLUnknownElement/.test(t.toString())},k(un.options.directives,Ii),k(un.options.components,Ki),un.prototype.__patch__=B?Ci:O,un.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=fe),_t(e,"beforeMount"),r=function(){e._update(e._render(),n)},new St(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&_t(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,_t(e,"mounted")),e}(this,e=e&&B?Pn(e):void 0,t)},B&&setTimeout(function(){D.devtools&&Q&&Q.emit("init",un)},0);var Ji=/\{\{((?:.|\r?\n)+?)\}\}/g,qi=/[-.*+?^${}()|[\]\/\\]/g,Wi=y(function(e){var t=e[0].replace(qi,"\\$&"),n=e[1].replace(qi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var Gi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=$r(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=br(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Zi,Xi={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=$r(e,"style");n&&(e.staticStyle=JSON.stringify(Hr(n)));var r=br(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Yi=function(e){return(Zi=Zi||document.createElement("div")).innerHTML=e,Zi.textContent},Qi=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),eo=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),to=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),no=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ro="[a-zA-Z_][\\w\\-\\.]*",io="((?:"+ro+"\\:)?"+ro+")",oo=new RegExp("^<"+io),ao=/^\s*(\/?)>/,so=new RegExp("^<\\/"+io+"[^>]*>"),co=/^]+>/i,uo=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},ho=/&(?:lt|gt|quot|amp);/g,mo=/&(?:lt|gt|quot|amp|#10|#9);/g,yo=f("pre,textarea",!0),go=function(e,t){return e&&yo(e)&&"\n"===t[0]};function _o(e,t){var n=t?mo:ho;return e.replace(n,function(e){return vo[e]})}var bo,$o,wo,Co,xo,ko,Ao,Oo,So=/^@|^v-on:/,To=/^v-|^@|^:/,No=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,jo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Eo=/^\(|\)$/g,Io=/:(.*)$/,Lo=/^:|^v-bind:/,Mo=/\.[^.]+/g,Do=y(Yi);function Po(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,fo(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),go(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(uo.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v)),C(v+3);continue}}if(lo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(co);if(m){C(m[0].length);continue}var y=e.match(so);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),go(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(so.test($)||oo.test($)||uo.test($)||lo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d),C(d)}d<0&&(b=e,e=""),t.chars&&b&&t.chars(b)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(ao))&&(r=e.match(no));)C(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&to(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,u){var l=r&&r.ns||Oo(e);K&&"svg"===l&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=fr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),_r(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Cr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Cr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Cr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=br(e,"value")||"null";hr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),_r(e,"change",Cr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Nr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Cr(t,l);c&&(f="if($event.target.composing)return;"+f),hr(e,"value","("+t+")"),_r(e,u,f,null,!0),(s||a)&&_r(e,"blur","$forceUpdate()")}(e,r,i);else if(!D.isReservedTag(o))return wr(e,r,i),!1;return!0},text:function(e,t){t.value&&hr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&hr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:Qi,mustUseProp:_n,canBeLeftOpenTag:eo,isReservedTag:In,getTagNamespace:Ln,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Jo)},Zo=y(function(e){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function Xo(e,t){e&&(qo=Zo(t.staticKeys||""),Wo=t.isReservedTag||S,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||p(e.tag)||!Wo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(qo)))}(t);if(1===t.type){if(!Wo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*\(/,Qo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ea={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ta={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},na=function(e){return"if("+e+")return null;"},ra={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:na("$event.target !== $event.currentTarget"),ctrl:na("!$event.ctrlKey"),shift:na("!$event.shiftKey"),alt:na("!$event.altKey"),meta:na("!$event.metaKey"),left:na("'button' in $event && $event.button !== 0"),middle:na("'button' in $event && $event.button !== 1"),right:na("'button' in $event && $event.button !== 2")};function ia(e,t){var n=t?"nativeOn:{":"on:{";for(var r in e)n+='"'+r+'":'+oa(r,e[r])+",";return n.slice(0,-1)+"}"}function oa(e,t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return oa(e,t)}).join(",")+"]";var n=Qo.test(t.value),r=Yo.test(t.value);if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(ra[s])o+=ra[s],ea[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!('button' in $event)&&"+e.map(aa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(n?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":t.value)+"}"}return n||r?t.value:"function($event){"+t.value+"}"}function aa(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ea[e],r=ta[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var sa={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:O},ca=function(e){this.options=e,this.warn=e.warn||dr,this.transforms=vr(e.modules,"transformCode"),this.dataGenFns=vr(e.modules,"genData"),this.directives=k(k({},sa),e.directives);var t=e.isReservedTag||S;this.maybeComponent=function(e){return!(t(e.tag)&&!e.component)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ua(e,t){var n=new ca(t);return{render:"with(this){return "+(e?la(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function la(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return fa(e,t);if(e.once&&!e.onceProcessed)return pa(e,t);if(e.for&&!e.forProcessed)return function(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||la)(e,t)+"})"}(e,t);if(e.if&&!e.ifProcessed)return da(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ma(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return _(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ma(t,n,!0);return"_c("+e+","+va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=va(e,t));var i=e.inlineTemplate?null:ma(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'
',Ca.innerHTML.indexOf(" ")>0}var Oa=!!B&&Aa(!1),Sa=!!B&&Aa(!0),Ta=y(function(e){var t=Pn(e);return t&&t.innerHTML}),Na=un.prototype.$mount;return un.prototype.$mount=function(e,t){if((e=e&&Pn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ta(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=ka(r,{shouldDecodeNewlines:Oa,shouldDecodeNewlinesForHref:Sa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Na.call(this,e,t)},un.compile=ka,un}); --------------------------------------------------------------------------------