├── README.md └── encodeSVG ├── index.html └── static └── js ├── 0.0c7fa5ae4fa2b61a7955.js ├── app.424aab2a37e5a01a90b0.js ├── manifest.bbade950c50a523098f0.js └── vendor.c74db87a068ae0aa1ecd.js /README.md: -------------------------------------------------------------------------------- 1 | 2 | ## encodeSVG 3 | 通过将SVG图形编码,在css:background-image: url("data:image/svg+xml,encodeddSVG")或者border-image中使用SVG背景图片 4 | 5 | 此工具是学生时代写前端时候,将SVG图片encode为css background-image的小工具,后面域名已经莫得了,现在估计也没人在用这个工具了,留待以后整理 6 | @todo 迁移到gitee 7 | 8 | ~~线上工具地址【传送门】:[http://www.xiyoulive.com/encodeSVG](http://www.xiyoulive.com/encodeSVG)~~ 9 | 10 | 用的方便还请给个star 11 | ```vue 12 | 36 | 37 | 83 | 84 | 103 | ``` 104 | ##作者 105 | ulooper@aliyun.com 106 | -------------------------------------------------------------------------------- /encodeSVG/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SVG编码工具 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 |
15 | 18 | 21 | 24 | -------------------------------------------------------------------------------- /encodeSVG/static/js/0.0c7fa5ae4fa2b61a7955.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([0,1],[,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{insert:"",encoded:"",css:""}},watch:{insert:function(e,t){var n=this.addNameSpace(e),r=this.encodeSVG(n);this.encoded=r;var s='background-image: url("data:image/svg+xml,'+r+'");';this.css=s,document.getElementById("pre").setAttribute("style",s)}},methods:{encodeSVG:function(e){var t=/[\r\n"%#()<>?\[\\\]^`{|}]/g;this.addNameSpace(this.insert);return e.indexOf('"')>=0&&(e=e.replace(/"/g,"'")),e=e.replace(/>\s{1,}<"),e=e.replace(/\s{2,}/g," "),e.replace(t,escape)},addNameSpace:function(e){return e.indexOf("http://www.w3.org/2000/svg")<0&&(e=e.replace(/...code...")]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.insert,expression:"insert"}],staticClass:"con",attrs:{placeholder:"此处粘贴...code..."},domProps:{value:e._s(e.insert)},on:{input:function(t){t.target.composing||(e.insert=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"cont"},[t("h4",[e._v("编码后的代码")]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.encoded,expression:"encoded"}],staticClass:"con",attrs:{placeholder:"输出编码"},domProps:{value:e._s(e.encoded)},on:{input:function(t){t.target.composing||(e.encoded=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"cont"},[t("h4",[e._v("输出css")]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.css,expression:"css"}],staticClass:"con",attrs:{placeholder:"输出css"},domProps:{value:e._s(e.css)},on:{input:function(t){t.target.composing||(e.css=t.target.value)}}})]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this,t=(e.$createElement,e._c);return t("div",{staticClass:"cont"},[t("h4",[e._v("预览")]),e._v(" "),t("div",{staticClass:"preview con",attrs:{id:"pre"}})])}]}},function(e,t,n){function r(e,t){for(var n=0;n=0&&m.splice(t,1)}function o(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function c(e,t){var n,r,s;if(t.singleton){var a=g++;n=h||(h=o(t)),r=d.bind(null,n,a,!1),s=d.bind(null,n,a,!0)}else n=o(t),r=u.bind(null,n),s=function(){i(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else s()}}function d(e,t,n,r){var s=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=A(t,s);else{var a=document.createTextNode(s),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function u(e,t){var n=t.css,r=t.media,s=t.sourceMap;if(r&&e.setAttribute("media",r),s&&(n+="\n/*# sourceURL="+s.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l={},p=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},v=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),f=p(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,g=0,m=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=v()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=s(e);return r(n,t),function(e){for(var a=[],i=0;i=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function _(t){return t.replace(/\/\//g,"/")}function b(t){var e=Object.create(null),n=Object.create(null);return t.forEach(function(t){w(e,n,t)}),{pathMap:e,nameMap:n}}function w(t,e,n,r,i){var o=n.path,a=n.name,s={path:$(o,r),components:n.components||{default:n.component},instances:{},name:a,parent:r,matchAs:i,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{}};n.children&&n.children.forEach(function(n){w(t,e,n,s)}),void 0!==n.alias&&(Array.isArray(n.alias)?n.alias.forEach(function(n){w(t,e,{path:n},r,s.path)}):w(t,e,{path:n.alias},r,s.path)),t[s.path]||(t[s.path]=s),a&&(e[a]||(e[a]=s))}function $(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:_(e.path+"/"+t)}function x(t,e){for(var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=jt.exec(t));){var c=n[0],u=n[1],l=n.index;if(a+=t.slice(o,l),o=l+c.length,u)a+=u[1];else{var f=t[o],p=n[2],d=n[3],h=n[4],v=n[5],m=n[6],y=n[7];a&&(r.push(a),a="");var g=null!=p&&null!=f&&f!==p,_="+"===m||"*"===m,b="?"===m||"*"===m,w=n[2]||s,$=h||v;r.push({name:d||i++,prefix:p||"",delimiter:w,optional:b,repeat:_,partial:g,asterisk:!!y,pattern:$?T($):y?".*":"[^"+S(w)+"]+?"})}}return o-1&&(r.params[l]=e.params[l]);if(a)return r.path=I(a.path,r.params,'named route "'+i+'"'),o(a,r,n)}else if(r.path){r.params={};for(var f in c)if(B(f,r.params,r.path))return o(c[f],r,n)}return o(null,r)}function n(t,n){var i=t.redirect,a="function"==typeof i?i(s(t,n)):i;if("string"==typeof a&&(a={path:a}),!a||"object"!=typeof a)return o(null,n);var c=a,l=c.name,f=c.path,p=n.query,d=n.hash,h=n.params;if(p=c.hasOwnProperty("query")?c.query:p,d=c.hasOwnProperty("hash")?c.hash:d,h=c.hasOwnProperty("params")?c.params:h,l){u[l];return e({_normalized:!0,name:l,query:p,hash:d,params:h},void 0,n)}if(f){var v=q(f,t),m=I(v,h,'redirect route with path "'+v+'"');return e({_normalized:!0,path:m,query:p,hash:d},void 0,n)}return r(!1,"invalid redirect option: "+JSON.stringify(a)),o(null,n)}function i(t,n,r){var i=I(r,n.params,'aliased route with path "'+r+'"'),a=e({_normalized:!0,path:i});if(a){var s=a.matched,c=s[s.length-1];return n.params=a.params,o(c,n)}return o(null,n)}function o(t,e,r){return t&&t.redirect?n(t,r||e):t&&t.matchAs?i(t,e,t.matchAs):s(t,e,r)}var a=b(t),c=a.pathMap,u=a.nameMap;return e}function B(t,e,n){var r=D(t),i=r.regexp,o=r.keys,a=n.match(i);if(!a)return!1;if(!e)return!0;for(var s=1,c=a.length;s=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function V(t){if(!t)if(Nt){var e=document.querySelector("base");t=e?e.getAttribute("href"):"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function J(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e:0)+"#"+t)}function vt(t,e,n){var r="hash"===n?"#"+e:e;return t?_(t+"/"+r):r}var mt,yt={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var a=i.$route,s=i._routerViewCache||(i._routerViewCache={}),c=0,u=!1;i;)i.$vnode&&i.$vnode.data.routerView&&c++,i._inactive&&(u=!0),i=i.$parent;o.routerViewDepth=c;var l=a.matched[c];if(!l)return t();var f=n.name,p=u?s[f]:s[f]=l.components[f];if(!u){var d=o.hook||(o.hook={});d.init=function(t){l.instances[f]=t.child},d.prepatch=function(t,e){l.instances[f]=e.child},d.destroy=function(t){l.instances[f]===t.child&&(l.instances[f]=void 0)}}return t(p,o,r)}},gt=encodeURIComponent,_t=decodeURIComponent,bt=s(null,{path:"/"}),wt=/\/$/,$t=[String,Object],xt={name:"router-link",props:{to:{type:$t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.normalizedTo,a=i.resolved,c=i.href,u={},f=this.activeClass||n.options.linkActiveClass||"router-link-active",d=o.path?s(null,o):a;u[f]=this.exact?l(r,d):p(r,d);var m=function(t){h(t)&&(e.replace?n.replace(o):n.push(o))},y={click:h};Array.isArray(this.event)?this.event.forEach(function(t){y[t]=m}):y[this.event]=m;var g={class:u};if("a"===this.tag)g.on=y,g.attrs={href:c};else{var _=v(this.$slots.default);if(_){_.isStatic=!1;var b=mt.util.extend,w=_.data=b({},_.data);w.on=y;var $=_.data.attrs=b({},_.data.attrs);$.href=c}else g.on=y}return t(this.tag,g,this.$slots.default)}},kt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Ct=kt,At=M,Ot=x,St=k,Tt=O,Et=R,jt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");At.parse=Ot,At.compile=St,At.tokensToFunction=Tt,At.tokensToRegExp=Et;var Lt=Object.create(null),Pt=Object.create(null),Nt="undefined"!=typeof window,Rt=Nt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),Mt=function(t,e){this.router=t,this.base=V(e),this.current=bt,this.pending=null};Mt.prototype.listen=function(t){this.cb=t},Mt.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL()},n)},Mt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(){n&&n()};if(l(t,i))return this.ensureURL(),o();var a=J(this.current.matched,t.matched),s=a.deactivated,c=a.activated,u=[].concat(W(s),this.router.beforeHooks,c.map(function(t){return t.beforeEnter}),Q(c));this.pending=t;var f=function(e,n){return r.pending!==t?o():void e(t,i,function(t){t===!1?(r.ensureURL(!0),o()):"string"==typeof t||"object"==typeof t?("object"==typeof t&&t.replace?r.replace(t):r.push(t),o()):n(t)})};z(u,f,function(){var n=[],i=Y(c,n,function(){return r.current===t});z(i,f,function(){return r.pending!==t?o():(r.pending=null,e(t),void(r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){return t()})})))})})},Mt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Dt=Object.create(null),It=function(){return String(Date.now())},Ut=It(),Ft=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior;window.addEventListener("popstate",function(t){Ut=t.state&&t.state.key;var e=r.current;r.transitionTo(ct(r.base),function(t){i&&r.handleScroll(t,e,!0)})}),i&&window.addEventListener("scroll",function(){nt(Ut)})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t){var e=this,n=this.current;this.transitionTo(t,function(t){ut(_(e.base+t.fullPath)),e.handleScroll(t,n,!1)})},e.prototype.replace=function(t){var e=this,n=this.current;this.transitionTo(t,function(t){lt(_(e.base+t.fullPath)),e.handleScroll(t,n,!1)})},e.prototype.ensureURL=function(t){if(ct(this.base)!==this.current.fullPath){var e=_(this.base+this.current.fullPath);t?ut(e):lt(e)}},e.prototype.handleScroll=function(t,e,n){var r=this.router;if(r.app){var i=r.options.scrollBehavior;i&&r.app.$nextTick(function(){var r=rt(Ut),o=i(t,e,n?r:null);if(o){var a="object"==typeof o;if(a&&"string"==typeof o.selector){var s=document.querySelector(o.selector);s?r=it(s):ot(o)&&(r=at(o))}else a&&ot(o)&&(r=at(o));r&&window.scrollTo(r.x,r.y)}})}},e}(Mt),Ht=function(t){function e(e,n,r){t.call(this,e,n),r&&this.checkFallback()||ft()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.checkFallback=function(){var t=ct(this.base);if(!/^\/#/.test(t))return window.location.replace(_(this.base+"/#"+t)),!0},e.prototype.onHashChange=function(){ft()&&this.transitionTo(pt(),function(t){ht(t.fullPath)})},e.prototype.push=function(t){this.transitionTo(t,function(t){dt(t.fullPath)})},e.prototype.replace=function(t){this.transitionTo(t,function(t){ht(t.fullPath)})},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;pt()!==e&&(t?dt(e):ht(e))},e}(Mt),Bt=function(t){function e(e){t.call(this,e),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index+1).concat(t),e.index++})},e.prototype.replace=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index).concat(t)})},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.ensureURL=function(){},e}(Mt),qt=function(t){void 0===t&&(t={}),this.app=null,this.options=t,this.beforeHooks=[],this.afterHooks=[],this.match=H(t.routes||[]);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Rt,this.fallback&&(e="hash"),Nt||(e="abstract"),this.mode=e,e){case"history":this.history=new Ft(this,t.base);break;case"hash":this.history=new Ht(this,t.base,this.fallback);break;case"abstract":this.history=new Bt(this)}},zt={currentRoute:{}};zt.currentRoute.get=function(){return this.history&&this.history.current},qt.prototype.init=function(t){var e=this;this.app=t;var n=this.history;if(n instanceof Ft)n.transitionTo(ct(n.base));else if(n instanceof Ht){var r=function(){window.addEventListener("hashchange",function(){n.onHashChange()})};n.transitionTo(pt(),r,r)}n.listen(function(t){e.app._route=t})},qt.prototype.beforeEach=function(t){this.beforeHooks.push(t)},qt.prototype.afterEach=function(t){this.afterHooks.push(t)},qt.prototype.push=function(t){this.history.push(t)},qt.prototype.replace=function(t){this.history.replace(t)},qt.prototype.go=function(t){this.history.go(t)},qt.prototype.back=function(){this.go(-1)},qt.prototype.forward=function(){this.go(1)},qt.prototype.getMatchedComponents=function(t){var e=t?this.resolve(t).resolved:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},qt.prototype.resolve=function(t,e,n){var r=U(t,e||this.history.current,n),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=vt(a,o,this.mode);return{normalizedTo:r,resolved:i,href:s}},Object.defineProperties(qt.prototype,zt),qt.install=m,Nt&&window.Vue&&window.Vue.use(qt),t.exports=qt},9:function(t,e,n){(function(e){/*! 7 | * Vue.js v2.1.5 8 | * (c) 2014-2016 Evan You 9 | * Released under the MIT License. 10 | */ 11 | "use strict";function n(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function r(t){var e=parseFloat(t,10);return e||0===e?e:t}function i(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}function a(t,e){return Zr.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function c(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function u(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function l(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function f(t,e){for(var n in e)t[n]=e[n];return t}function p(t){return null!==t&&"object"==typeof t}function d(t){return ei.call(t)===ni}function h(t){for(var e={},n=0;n=0&&ji[n].id>t.id;)n--;ji.splice(Math.max(n,Ri)+1,0,t)}else ji.push(t);Pi||(Pi=!0,yi(z))}}function J(t){Ii.clear(),K(t,Ii)}function K(t,e){var n,r,i=Array.isArray(t);if((i||p(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)K(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)K(t[r[n]],e)}}function W(t){t._watchers=[],Z(t),Q(t),Y(t),G(t),tt(t)}function Z(t){var e=t.$options.props;if(e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),i=!t.$parent;Ai.shouldConvert=i;for(var o=function(i){var o=r[i];S(t,o,U(o,e,n,t))},a=0;a1?l(n):n;for(var r=l(arguments,1),i=0,o=n.length;i-1:t.test(e)}function Jt(t){var e={};e.get=function(){return oi},Object.defineProperty(t,"config",e),t.util=Ei,t.set=T,t.delete=E,t.nextTick=yi,t.options=Object.create(null),oi._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,f(t.options.components,Wi),Ht(t),Bt(t),qt(t),zt(t)}function Kt(t){for(var e=t.data,n=t,r=t;r.child;)r=r.child._vnode,r.data&&(e=Wt(r.data,e));for(;n=n.parent;)n.data&&(e=Wt(e,n.data));return Zt(e)}function Wt(t,e){return{staticClass:Yt(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function Zt(t){var e=t.class,n=t.staticClass;return n||e?Yt(n,Gt(e)):""}function Yt(t,e){return t?e?t+" "+e:t:e||""}function Gt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,i=t.length;r-1?lo[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:lo[t]=/HTMLUnknownElement/.test(e.toString())}function te(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return document.createElement("div")}return t}function ee(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function ne(t,e){return document.createElementNS(oo[t],e)}function re(t){return document.createTextNode(t)}function ie(t){return document.createComment(t)}function oe(t,e,n){t.insertBefore(e,n)}function ae(t,e){t.removeChild(e)}function se(t,e){t.appendChild(e)}function ce(t){return t.parentNode}function ue(t){return t.nextSibling}function le(t){return t.tagName}function fe(t,e){t.textContent=e}function pe(t,e,n){t.setAttribute(e,n)}function de(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.child||t.elm,a=r.$refs;e?Array.isArray(a[n])?o(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(i)<0?a[n].push(i):a[n]=[i]:a[n]=i}}function he(t){return null==t}function ve(t){return null!=t}function me(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function ye(t,e,n){var r,i,o={};for(r=e;r<=n;++r)i=t[r].key,ve(i)&&(o[i]=r);return o}function ge(t){function e(t){return new Fi(O.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0===--n.listeners&&r(t)}return n.listeners=e,n}function r(t){var e=O.parentNode(t);e&&O.removeChild(e,t)}function o(t,e,n,r,i){if(t.isRootInsert=!i,!a(t,e,n,r)){var o=t.data,s=t.children,c=t.tag;ve(c)?(t.elm=t.ns?O.createElementNS(t.ns,c):O.createElement(c,t),h(t),l(t,s,e),ve(o)&&p(t,e),u(n,t.elm,r)):t.isComment?(t.elm=O.createComment(t.text),u(n,t.elm,r)):(t.elm=O.createTextNode(t.text),u(n,t.elm,r))}}function a(t,e,n,r){var i=t.data;if(ve(i)){var o=ve(t.child)&&i.keepAlive;if(ve(i=i.hook)&&ve(i=i.init)&&i(t,!1,n,r),ve(t.child))return d(t,e),o&&c(t,e,n,r),!0}}function c(t,e,n,r){for(var i,o=t;o.child;)if(o=o.child._vnode,ve(i=o.data)&&ve(i=i.transition)){for(i=0;ip?(u=he(n[m+1])?null:n[m+1].elm,v(t,u,n,f,m,r)):f>m&&y(t,e,l,p)}function b(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return e.elm=t.elm,void(e.child=t.child);var i,o=e.data,a=ve(o);a&&ve(i=o.hook)&&ve(i=i.prepatch)&&i(t,e);var s=e.elm=t.elm,c=t.children,u=e.children;if(a&&f(e)){for(i=0;i-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function De(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Ie(t){Do(function(){Do(t)})}function Ue(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Me(t,e)}function Fe(t,e){t._transitionClasses&&o(t._transitionClasses,e),De(t,e)}function He(t,e,n){var r=Be(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===jo?No:Mo,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=jo,l=a,f=o.length):e===Lo?u>0&&(n=Lo,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?jo:Lo:null,f=n?n===jo?o.length:c.length:0);var p=n===jo&&Io.test(r[Po+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:p}}function qe(t,e){for(;t.length1,T=n._enterCb=We(function(){O&&Fe(n,$),T.cancelled?(O&&Fe(n,w),A&&A(n)):C&&C(n),n._enterCb=null});t.data.show||$t(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),k&&k(n,T); 12 | },"transition-insert"),x&&x(n),O&&(Ue(n,w),Ue(n,$),Ie(function(){Fe(n,w),T.cancelled||S||He(n,o,T)})),t.data.show&&(e&&e(),k&&k(n,T)),O||S||T()}}}function Je(t,e){function n(){m.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),u&&u(r),h&&(Ue(r,s),Ue(r,c),Ie(function(){Fe(r,s),m.cancelled||v||He(r,a,m)})),l&&l(r,m),h||v||m())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=Ke(t.data.transition);if(!i)return e();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,s=i.leaveClass,c=i.leaveActiveClass,u=i.beforeLeave,l=i.leave,f=i.afterLeave,p=i.leaveCancelled,d=i.delayLeave,h=o!==!1&&!fi,v=l&&(l._length||l.length)>1,m=r._leaveCb=We(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),h&&Fe(r,c),m.cancelled?(h&&Fe(r,s),p&&p(r)):(e(),f&&f(r)),r._leaveCb=null});d?d(n):n()}}function Ke(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&f(e,Uo(t.name||"v")),f(e,t),e}return"string"==typeof t?Uo(t):void 0}}function We(t){var e=!1;return function(){e||(e=!0,t())}}function Ze(t,e){e.data.show||Ve(e)}function Ye(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(y(Xe(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ge(t,e){for(var n=0,r=e.length;n',n.innerHTML.indexOf(e)>0}function pn(t){return Xo=Xo||document.createElement("div"),Xo.innerHTML=t,Xo.textContent}function dn(t,e){return e&&(t=t.replace(Ja,"\n")),t.replace(za,"<").replace(Va,">").replace(Ka,"&").replace(Wa,'"')}function hn(t,e){function n(e){f+=e,t=t.substring(e)}function r(){var e=t.match(ua);if(e){var r={tagName:e[1],attrs:[],start:f};n(e[0].length);for(var i,o;!(i=t.match(la))&&(o=t.match(aa));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=f,r}}function i(t){var n=t.tagName,r=t.unarySlash;u&&("p"===s&&na(n)&&o("",s),ea(n)&&s===n&&o("",n));for(var i=l(n)||"html"===n&&"head"===s||!!r,a=t.attrs.length,f=new Array(a),p=0;p=0&&c[o].tag.toLowerCase()!==a;o--);}else o=0;if(o>=0){for(var u=c.length-1;u>=o;u--)e.end&&e.end(c[u].tag,r,i);c.length=o,s=o&&c[o-1].tag}else"br"===n.toLowerCase()?e.start&&e.start(n,[],!0,r,i):"p"===n.toLowerCase()&&(e.start&&e.start(n,[],!1,r,i),e.end&&e.end(n,r,i))}for(var a,s,c=[],u=e.expectHTML,l=e.isUnaryTag||ri,f=0;t;){if(a=t,s&&Ba(s,e.sfc,c)){var p=s.toLowerCase(),d=qa[p]||(qa[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=0,v=t.replace(d,function(t,n,r){return h=r.length,"script"!==p&&"style"!==p&&"noscript"!==p&&(n=n.replace(//g,"$1").replace(//g,"$1")),e.chars&&e.chars(n),""});f+=t.length-v.length,t=v,o("",p,f-h,f)}else{var m=t.indexOf("<");if(0===m){if(da.test(t)){var y=t.indexOf("-->");if(y>=0){n(y+3);continue}}if(ha.test(t)){var g=t.indexOf("]>");if(g>=0){n(g+2);continue}}var _=t.match(pa);if(_){n(_[0].length);continue}var b=t.match(fa);if(b){var w=f;n(b[0].length),o(b[0],b[1],w,f);continue}var $=r();if($){i($);continue}}var x=void 0,k=void 0,C=void 0;if(m>0){for(k=t.slice(m);!(fa.test(k)||ua.test(k)||da.test(k)||ha.test(k)||(C=k.indexOf("<",1),C<0));)m+=C,k=t.slice(m);x=t.substring(0,m),n(m)}m<0&&(x=t,t=""),e.chars&&x&&e.chars(x)}if(t===a&&e.chars){e.chars(t);break}}o()}function vn(t){function e(){(a||(a=[])).push(t.slice(h,i).trim()),h=i+1}var n,r,i,o,a,s=!1,c=!1,u=!1,l=!1,f=0,p=0,d=0,h=0;for(i=0;i=0&&(m=t.charAt(v)," "===m);v--);m&&/[\w$]/.test(m)||(l=!0)}}else void 0===o?(h=i+1,o=t.slice(0,i).trim()):e();if(void 0===o?o=t.slice(0,i).trim():0!==h&&e(),a)for(i=0;ia&&o.push(JSON.stringify(t.slice(a,i)));var s=vn(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a=ma}function Tn(t){return 34===t||39===t}function En(t){var e=1;for(ba=_a;!Sn();)if(t=On(),Tn(t))jn(t);else if(91===t&&e++,93===t&&e--,0===e){wa=_a;break}}function jn(t){for(var e=t;!Sn()&&(t=On(),t!==e););}function Ln(t,e){$a=e.warn||gn,xa=e.getTagNamespace||ri,ka=e.mustUseProp||ri,Ca=e.isPreTag||ri,Aa=_n(e.modules,"preTransformNode"),Oa=_n(e.modules,"transformNode"),Sa=_n(e.modules,"postTransformNode"),Ta=e.delimiters;var n,r,i=[],o=e.preserveWhitespace!==!1,a=!1,s=!1;return hn(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,shouldDecodeNewlines:e.shouldDecodeNewlines,start:function(t,o,c){function u(t){}var l=r&&r.ns||xa(t);li&&"svg"===l&&(o=Yn(o));var f={type:1,tag:t,attrsList:o,attrsMap:Kn(o),parent:r,children:[]};l&&(f.ns=l),Zn(f)&&!vi()&&(f.forbidden=!0);for(var p=0;p-1:_q("+e+","+o+")"),xn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+e+"=$$c}",null,!0)}function Mr(t,e,n){var r=n&&n.number,i=kn(t,"value")||"null";i=r?"_n("+i+")":i,bn(t,"checked","_q("+e+","+i+")"),xn(t,"change",Ur(e,i),null,!0)}function Dr(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=o||li&&"range"===r?"change":"input",u=!o&&"range"!==r,l="input"===t.tag||"textarea"===t.tag,f=l?"$event.target.value"+(s?".trim()":""):s?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";f=a||"number"===r?"_n("+f+")":f;var p=Ur(e,f);l&&u&&(p="if($event.target.composing)return;"+p),bn(t,"value",l?"_s("+e+")":"("+e+")"),xn(t,c,p,null,!0),(s||a||"number"===r)&&xn(t,"blur","$forceUpdate()")}function Ir(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})"+(null==t.attrsMap.multiple?"[0]":""),o=Ur(e,i);xn(t,"change",o,null,!0)}function Ur(t,e){var n=An(t);return null===n.idx?t+"="+e:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+t+"="+e+"}else{$$exp.splice($$idx, 1, "+e+")}"}function Fr(t,e){e.value&&bn(t,"textContent","_s("+e.value+")")}function Hr(t,e){e.value&&bn(t,"innerHTML","_s("+e.value+")")}function Br(t,e){return e=e?f(f({},_s),e):_s,Tr(t,e)}function qr(t,e,n){var r=(e&&e.warn||_i,e&&e.delimiters?String(e.delimiters)+t:t);if(gs[r])return gs[r];var i={},o=Br(t,e);i.render=zr(o.render);var a=o.staticRenderFns.length;i.staticRenderFns=new Array(a);for(var s=0;s0,pi=ui&&ui.indexOf("edge/")>0,di=ui&&ui.indexOf("android")>0,hi=ui&&/iphone|ipad|ipod|ios/.test(ui),vi=function(){return void 0===Jr&&(Jr=!ci&&"undefined"!=typeof e&&"server"===e.process.env.VUE_ENV),Jr},mi=ci&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,yi=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1&&(e[n[0].trim()]=n[1].trim())}}),e}),ko=/^--/,Co=/\s*!important$/,Ao=function(t,e,n){ko.test(e)?t.style.setProperty(e,n):Co.test(n)?t.style.setProperty(e,n.replace(Co,""),"important"):t.style[So(e)]=n},Oo=["Webkit","Moz","ms"],So=c(function(t){if(Yi=Yi||document.createElement("div"),t=Gr(t),"filter"!==t&&t in Yi.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n\/=]+)/,ia=/(?:=)/,oa=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],aa=new RegExp("^\\s*"+ra.source+"(?:\\s*("+ia.source+")\\s*(?:"+oa.join("|")+"))?"),sa="[a-zA-Z_][\\w\\-\\.]*",ca="((?:"+sa+"\\:)?"+sa+")",ua=new RegExp("^<"+ca),la=/^\s*(\/?)>/,fa=new RegExp("^<\\/"+ca+"[^>]*>"),pa=/^]+>/i,da=/^