tianheng-ui 0.0.44 → 0.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,26 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("tianheng-ui",[],e):"object"==typeof exports?exports["tianheng-ui"]=e():t["tianheng-ui"]=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/lib/",e(e.s=38)}([function(t,e){t.exports=function(t,e,n,i,o,r){var a,l=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(a=t,l=t.default);var c="function"==typeof l?l.options:l;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var u;if(r?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(t,e){return u.call(e),f(t,e)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:a,exports:l,options:c}}},function(t,e,n){"use strict";function i(t){return t=t.toLowerCase(),function(e){return A(e)===t}}function o(t){return Array.isArray(t)}function r(t){return void 0===t}function a(t){return null!==t&&!r(t)&&null!==t.constructor&&!r(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&O(t.buffer)}function s(t){return"string"==typeof t}function c(t){return"number"==typeof t}function u(t){return null!==t&&"object"==typeof t}function d(t){if("object"!==A(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Function]"===C.call(t)}function p(t){return u(t)&&f(t.pipe)}function h(t){return t&&("function"==typeof FormData&&t instanceof FormData||"[object FormData]"===C.call(t)||f(t.toString)&&"[object FormData]"===t.toString())}function m(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function g(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function v(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function b(){function t(t,n){d(e[n])&&d(t)?e[n]=b(e[n],t):d(t)?e[n]=b({},t):o(t)?e[n]=t.slice():e[n]=t}for(var e={},n=0,i=arguments.length;n<i;n++)v(arguments[n],t);return e}function w(t,e,n){return v(e,function(e,i){t[i]=n&&"function"==typeof e?S(e,n):e}),t}function y(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}function x(t,e,n,i){t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)}function k(t,e,n){var i,o,r,a={};e=e||{};do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)r=i[o],a[r]||(e[r]=t[r],a[r]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e}function _(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var i=t.indexOf(e,n);return-1!==i&&i===n}function E(t){if(!t)return null;var e=t.length;if(r(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n}var S=n(29),C=Object.prototype.toString,A=function(t){return function(e){var n=C.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),O=i("ArrayBuffer"),T=i("Date"),D=i("File"),I=i("Blob"),M=i("FileList"),R=i("URLSearchParams"),P=function(t){return function(e){return t&&e instanceof t}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));t.exports={isArray:o,isArrayBuffer:O,isBuffer:a,isFormData:h,isArrayBufferView:l,isString:s,isNumber:c,isObject:u,isPlainObject:d,isUndefined:r,isDate:T,isFile:D,isBlob:I,isFunction:f,isStream:p,isURLSearchParams:R,isStandardBrowserEnv:g,forEach:v,merge:b,extend:w,trim:m,stripBOM:y,inherits:x,toFlatObject:k,kindOf:A,kindOfTest:i,endsWith:_,toArray:E,isTypedArray:P,isFileList:M}},function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var r=i(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=u[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(r(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{for(var a=[],o=0;o<n.parts.length;o++)a.push(r(n.parts[o]));u[n.id]={id:n.id,refs:1,parts:a}}}}function o(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function r(t){var e,n,i=document.querySelector("style["+v+'~="'+t.id+'"]');if(i){if(h)return m;i.parentNode.removeChild(i)}if(b){var r=p++;i=f||(f=o()),e=a.bind(null,i,r,!1),n=a.bind(null,i,r,!0)}else i=o(),e=l.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function a(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=w(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function l(t,e){var n=e.css,i=e.media,o=e.sourceMap;if(i&&t.setAttribute("media",i),g.ssrId&&t.setAttribute(v,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(46),u={},d=s&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,m=function(){},g=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,o){h=n,g=o||{};var r=c(t,e);return i(r),function(e){for(var n=[],o=0;o<r.length;o++){var a=r[o],l=u[a.id];l.refs--,n.push(l)}e?(r=c(t,e),i(r)):r=[];for(var o=0;o<n.length;o++){var l=n[o];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete u[l.id]}}}};var w=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";function i(t,e,n,i,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}var o=n(1);o.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(t){a[t]={value:t}}),Object.defineProperties(i,a),Object.defineProperty(r,"isAxiosError",{value:!0}),i.from=function(t,e,n,a,l,s){var c=Object.create(r);return o.toFlatObject(t,c,function(t){return t!==Error.prototype}),i.call(c,t.message,e,n,a,l),c.name=t.name,s&&Object.assign(c,s),c},t.exports=i},function(t,e,n){!function(e,i){t.exports=i(n(92))}("undefined"!=typeof self&&self,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(i,o,function(e){return t[e]}.bind(null,o));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,h,m,g,v){s(n,e,h);var b,w,y,x=function(t){if(!f&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",_="values"==m,E=!1,S=t.prototype,C=S[d]||S["@@iterator"]||m&&S[m],A=C||x(m),O=m?_?x("entries"):A:void 0,T="Array"==e?S.entries||C:C;if(T&&(y=u(T.call(new t)))!==Object.prototype&&y.next&&(c(y,k,!0),i||"function"==typeof y[d]||a(y,d,p)),_&&C&&"values"!==C.name&&(E=!0,A=function(){return C.call(this)}),i&&!v||!f&&!E&&S[d]||a(S,d,A),l[e]=A,l[k]=p,m)if(b={values:_?A:x("values"),keys:g?A:x("keys"),entries:O},v)for(w in b)w in S||r(S,w,b[w]);else o(o.P+o.F*(f||E),e,b);return b}},"02f4":function(t,e,n){var i=n("4588"),o=n("be13");t.exports=function(t){return function(e,n){var r,a,l=String(o(e)),s=i(n),c=l.length;return s<0||s>=c?t?"":void 0:(r=l.charCodeAt(s),r<55296||r>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):r:t?l.slice(s,s+2):a-56320+(r-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return i(t,o)}},1495:function(t,e,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);for(var n,a=r(e),l=a.length,s=0;l>s;)i.f(t,n=a[s++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!r(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=l(t),p=!r(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),h=p?!r(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e}):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!d){var m=/./[f],g=n(a,f,""[t],function(t,e,n,i,o){return e.exec===s?p&&!o?{done:!0,value:m.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),v=g[0],b=g[1];i(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},"23c6":function(t,e,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:r?i(e):"Object"==(l=i(e))&&"function"==typeof e.callee?"Arguments":l}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s=(""+l).split("toString");n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var c="function"==typeof n;c&&(r(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(r(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===i?t[e]=n:l?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||l.call(this)})},"2aeb":function(t,e,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s=function(){var t,e=n("230e")("iframe"),i=r.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;i--;)delete s.prototype[r[i]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=i(t),n=new l,l.prototype=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,a="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=a&&r[t]||(a?r:o)("Symbol."+t))}).store=i},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var i=n("5ca1"),o=n("d2c8");i(i.P+i.F*n("5147")("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var i=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:o(1,n)}),r(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",function(){return function(t){return o(i(t))}})},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5147:function(t,e,n){var i=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){"use strict";var i=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,a=o,l=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),s=void 0!==/()??/.exec("")[1];(l||s)&&(a=function(t){var e,n,a,c,u=this;return s&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),l&&(e=u.lastIndex),a=o.call(u,t),l&&a&&(u.lastIndex=u.global?a.index+a[0].length:e),s&&a&&a.length>1&&r.call(a[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)}),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var i=n("8378"),o=n("7726"),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var i=n("7726"),o=n("8378"),r=n("32e9"),a=n("2aba"),l=n("9b43"),s=function(t,e,n){var c,u,d,f,p=t&s.F,h=t&s.G,m=t&s.S,g=t&s.P,v=t&s.B,b=h?i:m?i[e]||(i[e]={}):(i[e]||{}).prototype,w=h?o:o[e]||(o[e]={}),y=w.prototype||(w.prototype={});h&&(n=e);for(c in n)u=!p&&b&&void 0!==b[c],d=(u?b:n)[c],f=v&&u?l(d,i):g&&"function"==typeof d?l(Function.call,d):d,b&&a(b,c,d,t&s.U),w[c]!=d&&r(w,c,f),g&&y[c]!=d&&(y[c]=d)};i.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5eda":function(t,e,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*r(function(){n(1)}),"Object",a)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return i[t]||(i[t]=o(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},6762:function(t,e,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var i=n("626a"),o=n("be13");t.exports=function(t){return i(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),a=n("4bf8"),l=n("626a"),s=Object.assign;t.exports=!s||n("79e5")(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=i})?function(t,e){for(var n=a(t),s=arguments.length,c=1,u=o.f,d=r.f;s>c;)for(var f,p=l(arguments[c++]),h=u?i(p).concat(u(p)):i(p),m=h.length,g=0;m>g;)d.call(p,f=h[g++])&&(n[f]=p[f]);return n}:s},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),o=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),t<0?o(t+e,0):r(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),t.exports=function(t){o[i][t]=!0}},"9def":function(t,e,n){var i=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a352:function(e,n){e.exports=t},a481:function(t,e,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),a=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,h=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,m){function g(t,e,i,r,a,l){var s=i+t.length,c=r.length,u=p;return void 0!==a&&(a=o(a),u=f),n.call(l,u,function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(s);case"<":l=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===r[f-1]?o.charAt(1):r[f-1]+o.charAt(1):n}l=r[u-1]}return void 0===l?"":l})}return[function(i,o){var r=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,r,o):n.call(String(r),i,o)},function(t,e){var o=m(n,t,this,e);if(o.done)return o.value;var d=i(t),f=String(this),p="function"==typeof e;p||(e=String(e));var v=d.global;if(v){var b=d.unicode;d.lastIndex=0}for(var w=[];;){var y=s(d,f);if(null===y)break;if(w.push(y),!v)break;""===String(y[0])&&(d.lastIndex=l(f,r(d.lastIndex),b))}for(var x="",k=0,_=0;_<w.length;_++){y=w[_];for(var E=String(y[0]),S=c(u(a(y.index),f.length),0),C=[],A=1;A<y.length;A++)C.push(h(y[A]));var O=y.groups;if(p){var T=[E].concat(C,S,f);void 0!==O&&T.push(O);var D=String(e.apply(void 0,T))}else D=g(E,f,S,C,O,e);S>=k&&(x+=f.slice(k,S)+D,k=S+E.length)}return x+f.slice(k)}]})},aae3:function(t,e,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},ac6a:function(t,e,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),a=n("7726"),l=n("32e9"),s=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),f=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),m=0;m<h.length;m++){var g,v=h[m],b=p[v],w=a[v],y=w&&w.prototype;if(y&&(y[u]||l(y,u,f),y[d]||l(y,d,v),s[v]=f,b))for(g in i)y[g]||r(y,g,i[g],!0)}},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var i=n("6821"),o=n("9def"),r=n("77f1");t.exports=function(t){return function(e,n,a){var l,s=i(e),c=o(s.length),u=r(a,c);if(t&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){"use strict";(function(t){function i(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function o(t,e,n){var i=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,i)}n.d(e,"c",function(){return o}),n.d(e,"a",function(){return l}),n.d(e,"b",function(){return r}),n.d(e,"d",function(){return i});var r=(n("a481"),function(){return"undefined"!=typeof window?window.console:t.console}()),a=/-(\w)/g,l=function(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}(function(t){return t.replace(a,function(t,e){return e?e.toUpperCase():""})})}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,l=o(t),s=0,c=[];for(n in l)n!=a&&i(l,n)&&c.push(n);for(;e.length>s;)i(l,n=e[s++])&&(~r(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var i=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),a="".startsWith;i(i.P+i.F*n("5147")("startsWith"),"String",{startsWith:function(t){var e=r(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return a?a.call(e,i,n):e.slice(n,n+i.length)===i}})},f6fd:function(t,e){!function(t){var e=t.getElementsByTagName("script");"currentScript"in t||Object.defineProperty(t,"currentScript",{get:function(){try{throw new Error}catch(i){var t,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in e)if(e[t].src==n||"interactive"==e[t].readyState)return e[t];return null}}})}(document)},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";function i(t){if(Array.isArray(t))return t}function o(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,l=t[Symbol.iterator]();!(i=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw r}}return n}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){return i(t)||o(t,e)||a(t,e)||l()}function c(t){if(Array.isArray(t))return r(t)}function u(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t){return c(t)||u(t)||a(t)||d()}function p(t,e,n){return void 0===n?t:(t=t||{},t[e]=n,t)}function h(t,e){return t.map(function(t){return t.elm}).indexOf(e)}function m(t,e,n,i){if(!t)return[];var o=t.map(function(t){return t.elm}),r=e.length-i,a=f(e).map(function(t,e){return e>=r?o.length:o.indexOf(t)});return n?a.filter(function(t){return-1!==t}):a}function g(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}function v(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),g.call(e,t,n)}}function b(t){return["transition-group","TransitionGroup"].includes(t)}function w(t){if(!t||1!==t.length)return!1;var e=s(t,1),n=e[0].componentOptions;return!!n&&b(n.tag)}function y(t,e,n){return t[n]||(e[n]?e[n]():void 0)}function x(t,e,n){var i=0,o=0,r=y(e,n,"header");r&&(i=r.length,t=t?[].concat(f(r),f(t)):f(r));var a=y(e,n,"footer");return a&&(o=a.length,t=t?[].concat(f(t),f(a)):f(a)),{children:t,headerOffset:i,footerOffset:o}}function k(t,e){var n=null,i=function(t,e){n=p(n,t,e)};if(i("attrs",Object.keys(t).filter(function(t){return"id"===t||t.startsWith("data-")}).reduce(function(e,n){return e[n]=t[n],e},{})),!e)return n;var o=e.on,r=e.props,a=e.attrs;return i("on",o),i("props",r),Object.assign(n.attrs,a),n}if(n.r(e),"undefined"!=typeof window){n("f6fd");var _;(_=window.document.currentScript)&&(_=_.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=_[1])}var E=(n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb"),n("a352")),S=n.n(E),C=n("c649"),A=["Start","Add","Remove","Update","End"],O=["Choose","Unchoose","Sort","Filter","Clone"],T=["Move"].concat(A,O).map(function(t){return"on"+t}),D=null,I={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},M={name:"draggable",inheritAttrs:!1,props:I,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=w(e);var n=x(e,this.$slots,this.$scopedSlots),i=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var a=k(this.$attrs,this.componentData);return t(this.getTag(),a,i)},created:function(){null!==this.list&&null!==this.value&&C.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&C.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&C.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};A.forEach(function(n){e["on"+n]=v.call(t,n)}),O.forEach(function(n){e["on"+n]=g.bind(t,n)});var n=Object.keys(this.$attrs).reduce(function(e,n){return e[Object(C.a)(n)]=t.$attrs[n],e},{}),i=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new S.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(C.a)(e);-1===T.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=m(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)})},getUnderlyingVm:function(t){var e=h(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&b(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)return void t(this.list);var e=f(this.value);t(e),this.$emit("input",e)},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,f(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var o=i.realList,r={list:o,component:i};if(e!==n&&o&&i.getUnderlyingVm){var a=i.getUnderlyingVm(n);if(a)return Object.assign(a,r)}return r},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),D=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(C.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var i={element:e,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(t){if(Object(C.c)(this.rootContainer,t.item,t.oldIndex),"clone"===t.pullMode)return void Object(C.d)(t.clone);var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate:function(t){Object(C.d)(t.item),Object(C.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var i={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=f(e.to.children).filter(function(t){return"none"!==t.style.display}),i=n.indexOf(e.related),o=t.component.getVmIndex(i);return-1===n.indexOf(D)&&e.willInsertAfter?o+1:o},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),o=this.context,r=this.computeFutureIndex(i,t);return Object.assign(o,{futureIndex:r}),n(Object.assign({},t,{relatedContext:i,draggedContext:o}),e)},onDragEnd:function(){this.computeIndexes(),D=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",M);var R=M;e.default=R}}).default})},function(t,e,n){"use strict";function i(t){o.call(this,null==t?"canceled":t,o.ERR_CANCELED),this.name="CanceledError"}var o=n(4);n(1).inherits(i,o,{__CANCEL__:!0}),t.exports=i},function(t,e,n){"use strict";(function(e){function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}var r=n(1),a=n(126),l=n(4),s=n(31),c=n(32),u={"Content-Type":"application/x-www-form-urlencoded"},d={transitional:s,adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(33):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=n(33)),t}(),transformRequest:[function(t,e){if(a(e,"Accept"),a(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,l=r.isObject(t),s=e&&e["Content-Type"];if((n=r.isFileList(t))||l&&"multipart/form-data"===s){var u=this.env&&this.env.FormData;return c(n?{"files[]":t}:t,u&&new u)}return l||"application/json"===s?(i(e,"application/json"),o(t)):t}],transformResponse:[function(t){var e=this.transitional||d.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw l.from(t,l.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(139)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(t){d.headers[t]={}}),r.forEach(["post","put","patch"],function(t){d.headers[t]=r.merge(u)}),t.exports=d}).call(e,n(125))},function(t,e,n){"use strict";e.a={name:"ThCell",props:{title:Number|String,value:Number|String,label:String,icon:String,customStyle:String|Object,titleStyle:String|Object,customClass:String|Object,titleClass:String|Object,labelClass:String|Object,valueClass:String|Object,cellActiveClass:String|Object,titleActiveClass:String|Object,labelActiveClass:String|Object,valueActiveClass:String|Object,cellHoverClass:String|Object,titleHoverClass:String|Object,labelHoverClass:String|Object,valueHoverClass:String|Object,center:Boolean,hover:Boolean,active:Boolean},computed:{cellActive:function(){return this.cellActiveClass?this.cellActiveClass:"is-active"},titleActive:function(){return this.titleActiveClass?this.titleActiveClass:"is-active"},labelActive:function(){return this.labelActiveClass?this.labelActiveClass:"is-active"},valueActive:function(){return this.valueActiveClass?this.valueActiveClass:"is-active"},cellHover:function(){return this.cellHoverClass?this.cellHoverClass:"is-hover"},titleHover:function(){return this.titleHoverClass?this.titleHoverClass:"is-hover"},labelHover:function(){return this.labelHoverClass?this.labelHoverClass:"is-hover"},valueHover:function(){return this.valueHoverClass?this.valueHoverClass:"is-hover"}},methods:{handleClick:function(t){this.$emit("click",t)}}}},function(t,e,n){"use strict";e.a={name:"ThIcons",props:["value","width"],data:function(){return{icons:["el-icon-platform-eleme","el-icon-eleme","el-icon-delete-solid","el-icon-delete","el-icon-s-tools","el-icon-setting","el-icon-user-solid","el-icon-user","el-icon-phone","el-icon-phone-outline","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-s-goods","el-icon-goods","el-icon-warning","el-icon-warning-outline","el-icon-question","el-icon-info","el-icon-remove","el-icon-circle-plus","el-icon-success","el-icon-error","el-icon-zoom-in","el-icon-zoom-out","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-circle-check","el-icon-circle-close","el-icon-s-help","el-icon-help","el-icon-minus","el-icon-plus","el-icon-check","el-icon-close","el-icon-picture","el-icon-picture-outline","el-icon-picture-outline-round","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-camera-solid","el-icon-camera","el-icon-video-camera-solid","el-icon-video-camera","el-icon-message-solid","el-icon-bell","el-icon-s-cooperation","el-icon-s-order","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-operation","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-video-pause","el-icon-video-play","el-icon-refresh","el-icon-refresh-right","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-loading","el-icon-view","el-icon-c-scale-to-original","el-icon-date","el-icon-edit","el-icon-edit-outline","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-tickets","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-document","el-icon-document-add","el-icon-printer","el-icon-paperclip","el-icon-takeaway-box","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors","el-icon-umbrella","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-data-line","el-icon-data-board","el-icon-pie-chart","el-icon-data-analysis","el-icon-collection-tag","el-icon-film","el-icon-suitcase","el-icon-suitcase-1","el-icon-receiving","el-icon-collection","el-icon-files","el-icon-notebook-1","el-icon-notebook-2","el-icon-toilet-paper","el-icon-office-building","el-icon-school","el-icon-table-lamp","el-icon-house","el-icon-no-smoking","el-icon-smoking","el-icon-shopping-cart-full","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-sold-out","el-icon-sell","el-icon-present","el-icon-box","el-icon-bank-card","el-icon-money","el-icon-coin","el-icon-wallet","el-icon-discount","el-icon-price-tag","el-icon-news","el-icon-guide","el-icon-male","el-icon-female","el-icon-thumb","el-icon-cpu","el-icon-link","el-icon-connection","el-icon-open","el-icon-turn-off","el-icon-set-up","el-icon-chat-round","el-icon-chat-line-round","el-icon-chat-square","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-square","el-icon-message","el-icon-postcard","el-icon-position","el-icon-turn-off-microphone","el-icon-microphone","el-icon-close-notification","el-icon-bangzhu","el-icon-time","el-icon-odometer","el-icon-crop","el-icon-aim","el-icon-switch-button","el-icon-full-screen","el-icon-copy-document","el-icon-mic","el-icon-stopwatch","el-icon-medal-1","el-icon-medal","el-icon-trophy","el-icon-trophy-1","el-icon-first-aid-kit","el-icon-discover","el-icon-place","el-icon-location","el-icon-location-outline","el-icon-location-information","el-icon-add-location","el-icon-delete-location","el-icon-map-location","el-icon-alarm-clock","el-icon-timer","el-icon-watch-1","el-icon-watch","el-icon-lock","el-icon-unlock","el-icon-key","el-icon-service","el-icon-mobile-phone","el-icon-bicycle","el-icon-truck","el-icon-ship","el-icon-basketball","el-icon-football","el-icon-soccer","el-icon-baseball","el-icon-wind-power","el-icon-light-rain","el-icon-lightning","el-icon-heavy-rain","el-icon-sunrise","el-icon-sunrise-1","el-icon-sunset","el-icon-sunny","el-icon-cloudy","el-icon-partly-cloudy","el-icon-cloudy-and-sunny","el-icon-moon","el-icon-moon-night","el-icon-dish","el-icon-dish-1","el-icon-food","el-icon-chicken","el-icon-fork-spoon","el-icon-knife-fork","el-icon-burger","el-icon-tableware","el-icon-sugar","el-icon-dessert","el-icon-ice-cream","el-icon-hot-water","el-icon-water-cup","el-icon-coffee-cup","el-icon-cold-drink","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-refrigerator","el-icon-grape","el-icon-watermelon","el-icon-cherry","el-icon-apple","el-icon-pear","el-icon-orange","el-icon-coffee","el-icon-ice-tea","el-icon-ice-drink","el-icon-milk-tea","el-icon-potato-strips","el-icon-lollipop","el-icon-ice-cream-square","el-icon-ice-cream-round"]}},created:function(){},methods:{handleIconClick:function(t){this.$emit("input",t)},handleInputClear:function(){this.$emit("input","")}}}},function(t,e,n){"use strict";var i=n(52),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a={name:"ThTable",components:{TableColumn:i.a},props:{data:{type:Array,default:function(){return[]}},options:{type:Array,default:function(){return[]}},selectType:{type:String,default:function(){return""}},dblclick:{type:Function,default:function(){return null}},stripe:{type:Boolean,default:function(){return!1}},treeProps:{type:Object,default:function(){return{}}},pageInfo:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:function(){return!1}},height:String|Number,rowKey:{type:String,default:function(){return""}},showPage:{type:Boolean,default:function(){return!0}},emptyText:{type:String,default:function(){return"暂无数据"}},loadingText:{type:String,default:function(){return"加载中"}},border:{type:Boolean,default:function(){return!1}}},data:function(){return{}},methods:{handleSelectionChange:function(t){t&&this.$emit("selection-change",t)},handleSingleSelect:function(t,e){t&&this.$emit("select-row-change",t)},handleSizeChange:function(t){this.pageInfo.pageSize=t,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handleCurrentChange:function(t){this.pageInfo.currentPage=t,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handlePrevClick:function(){1!==this.pageInfo.currentPage&&(this.pageInfo.currentPage-=1,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},handleNextClick:function(){this.pageInfo.currentPage!==this.pageInfo.pageCount&&(this.pageInfo.currentPage+=1,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},getTable:function(){return this.$refs.th_table},handleFormatTime:function(t,e){if(0===arguments.length)return null;var n=e||"yyyy-MM-dd HH:mm:ss",i=void 0;if(void 0===t||null===t||"null"===t)return"";"object"===(void 0===t?"undefined":o(t))?i=t:("string"==typeof t&&/^[0-9]+$/.test(t)&&(t=parseInt(t)),"number"==typeof t&&10===t.toString().length&&(t*=1e3),i=new Date(t));var r={yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),a:i.getDay()};return n.replace(/(yyyy|MM|dd|HH|mm|ss|a)/g,function(t,e){var n=r[e];return"a"===e?["日","一","二","三","四","五","六"][n]:(t.length>0&&n<10&&(n="0"+n),n||0)})},objectSpanMethod:function(t){this.$emit("span-method",t)}}}},function(t,e,n){"use strict";e.a={name:"TableColumn",props:{options:{type:Array,default:function(){return[]}}},created:function(){console.log(this.options)}}},function(t,e,n){"use strict";e.a={name:"ThTableAction",props:{actions:{type:Array,default:function(){return[]}},scope:{type:Object|String},permission:{type:Object,required:!1},msg:{type:String,default:"确定删除本条数据吗?"}},data:function(){return{pop:!1,loadingDel:!1}},computed:{btnDisabled:function(){var t=this;return function(e){return e.disabled instanceof Boolean?e.disabled:e.disabled instanceof Function?e.disabled(t.scope):void 0}}},methods:{handleCancel:function(){this.loadingDel=!1,this.pop=!1},handleClick:function(t,e){this.$emit("on-click",t,e)},handleDelete:function(t){var e=this;this.loadingDel=!0;var n=function(t){t?e.handleCancel():e.loadingDel=!1};this.handleClick(t,n)},handleMore:function(t,e,n){for(var i=0;i<n.children.length;i++){var o=n.children[i];if(o.act===t){this.handleClick(o);break}}}}}},function(t,e,n){"use strict";e.a={name:"ThTableSearch",props:{options:{type:Array,default:function(){return[]}},params:{type:Object,default:function(){return{}}}},data:function(){return{datePickerTypes:["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"]}},methods:{doSearch:function(){this.$emit("on-search",this.params)},doReset:function(){this.$emit("on-reset",this.params)}}}},function(t,e,n){"use strict";e.a={name:"ThTableTools",props:{options:{type:Array,default:function(){return[]}},disabled:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{handleClick:function(t){this.$emit("on-click",t)}}}},function(t,e,n){"use strict";e.a={name:"ThEmpty",props:{image:String,imageSize:Number,description:{type:String,default:"暂无数据"}},computed:{imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}}},function(t,e,n){"use strict";e.a={name:"ThDialog",props:{visible:Boolean,loading:Boolean,title:{type:String,default:"温馨提示"},showAffirm:{type:Boolean,default:!0},affirmText:{type:String,default:"确 认"},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取 消"},showClose:{type:Boolean,default:!0},closeIcon:{type:String,default:"el-icon-close"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!0},fullscreenIcon:{type:String,default:"el-icon-full-screen"}},data:function(){return{formRules:{},dialogFullscreen:this.fullscreen}},watch:{fullscreen:function(t){this.dialogFullscreen=t}},methods:{handleClose:function(){this.$emit("on-close")},handleAffirm:function(){this.$emit("on-affirm")},handleFullscreenChange:function(){this.dialogFullscreen=!this.dialogFullscreen,this.$emit("fullscreen-change")}}}},function(t,e,n){t.exports=n.p+"iconfont.eot?8efbc988a87d33707a688f4de3196c99"},function(t,e,n){"use strict";var i=n(5),o=n.n(i),r=n(93),a=n.n(r),l=n(94),s=n(96),c=n(98),u=n(108),d=n(26),f=n(117),p=n(118),h=n(144);e.a={name:"fm-making-form",components:{Draggable:o.a,WidgetConfig:l.a,FormConfig:s.a,WidgetForm:c.a,CusDialog:u.a,GenerateForm:d.a},props:{preview:{type:Boolean,default:!1},generateCode:{type:Boolean,default:!1},generateJson:{type:Boolean,default:!1},upload:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},basicFields:{type:Array,default:function(){return["input","textarea","number","radio","checkbox","time","date","rate","color","select","switch","slider","text"]}},advanceFields:{type:Array,default:function(){return["blank","imgupload","editor","cascader"]}},layoutFields:{type:Array,default:function(){return["grid"]}}},data:function(){return{basicComponents:f.b,layoutComponents:f.c,advanceComponents:f.a,resetJson:!1,widgetForm:{list:[],config:{labelWidth:100,labelPosition:"right",size:"small"}},configTab:"widget",widgetFormSelect:null,previewVisible:!1,jsonVisible:!1,codeVisible:!1,uploadVisible:!1,remoteFuncs:{func_test:function(t){setTimeout(function(){t([{id:"1",name:"1111"},{id:"2",name:"2222"},{id:"3",name:"3333"}])},2e3)},funcGetToken:function(t){p.a.get("http://tools-server.making.link/api/uptoken").then(function(e){t(e.uptoken)})},upload_callback:function(t,e,n){console.log("callback",t,e,n)}},widgetModels:{},blank:"",htmlTemplate:"",vueTemplate:"",jsonTemplate:"",uploadEditor:null,jsonCopyValue:"",jsonClipboard:null,jsonEg:'{\n "list": [],\n "config": {\n "labelWidth": 100,\n "labelPosition": "top",\n "size": "small"\n }\n}',codeActiveName:"vue"}},mounted:function(){},methods:{handleGoGithub:function(){window.location.href="https://github.com/GavinZhuLei/vue-form-making"},handleConfigSelect:function(t){this.configTab=t},handleMoveEnd:function(t){},handleMoveStart:function(t){t.oldIndex},handleMove:function(){return!0},handlePreview:function(){this.previewVisible=!0},handleTest:function(){var t=this;this.$refs.generateForm.getData().then(function(e){t.$alert(e,"").catch(function(t){}),t.$refs.widgetPreview.end()}).catch(function(e){t.$refs.widgetPreview.end()})},handleReset:function(){this.$refs.generateForm.reset()},handleGenerateJson:function(){var t=this;this.jsonVisible=!0,this.jsonTemplate=this.widgetForm,console.log(JSON.stringify(this.widgetForm)),this.$nextTick(function(){ace.edit("jsoneditor").session.setMode("ace/mode/json"),t.jsonClipboard||(t.jsonClipboard=new a.a(".json-btn"),t.jsonClipboard.on("success",function(e){t.$message.success("复制成功")})),t.jsonCopyValue=JSON.stringify(t.widgetForm)})},handleGenerateCode:function(){this.codeVisible=!0,this.htmlTemplate=Object(h.a)(JSON.stringify(this.widgetForm),"html"),this.vueTemplate=Object(h.a)(JSON.stringify(this.widgetForm),"vue"),this.$nextTick(function(){ace.edit("codeeditor").session.setMode("ace/mode/html"),ace.edit("vuecodeeditor").session.setMode("ace/mode/html")})},handleUpload:function(){var t=this;this.uploadVisible=!0,this.$nextTick(function(){t.uploadEditor=ace.edit("uploadeditor"),t.uploadEditor.session.setMode("ace/mode/json")})},handleUploadJson:function(){try{this.setJSON(JSON.parse(this.uploadEditor.getValue())),this.uploadVisible=!1}catch(t){this.$message.error(t.message),this.$refs.uploadJson.end()}},handleClear:function(){this.widgetForm={list:[],config:{labelWidth:100,labelPosition:"right",size:"small",customClass:""}},this.widgetFormSelect={}},clear:function(){this.handleClear()},getJSON:function(){return this.widgetForm},getHtml:function(){return Object(h.a)(JSON.stringify(this.widgetForm))},setJSON:function(t){this.widgetForm=t,t.list.length>0&&(this.widgetFormSelect=t.list[0])},handleInput:function(t){this.blank=t},handleDataChange:function(t,e,n){}},watch:{widgetForm:{deep:!0,handler:function(t){}},$lang:function(t){this._loadComponents()}}}},function(t,e,n){"use strict";var i=n(5),o=n.n(i);e.a={components:{Draggable:o.a},props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,range:null,length:null}}},computed:{show:function(){return!!(this.data&&Object.keys(this.data).length>0)}},methods:{handleOptionsRemove:function(t){"grid"===this.data.type?this.data.columns.splice(t,1):this.data.options.options.splice(t,1)},handleAddOption:function(){this.data.options.showLabel?this.data.options.options.push({value:"新选项",label:"新选项"}):this.data.options.options.push({value:"新选项"})},handleAddColumn:function(){this.data.columns.push({span:"",list:[]})},generateRule:function(){var t=this;this.data.rules=[],Object.keys(this.validator).forEach(function(e){t.validator[e]&&t.data.rules.push(t.validator[e])})},handleSelectMuliple:function(t){t?this.data.options.defaultValue?this.data.options.defaultValue=[this.data.options.defaultValue]:this.data.options.defaultValue=[]:this.data.options.defaultValue.length>0?this.data.options.defaultValue=this.data.options.defaultValue[0]:this.data.options.defaultValue=""},validateRequired:function(t){var e=this;this.validator.required=t?{required:!0,message:this.data.name+"必须填写"}:null,this.$nextTick(function(){e.generateRule()})},validateDataType:function(t){if(!this.show)return!1;this.validator.type=t?{type:t,message:this.data.name+"格式不正确"}:null,this.generateRule()},valiatePattern:function(t){if(!this.show)return!1;this.validator.pattern=t?{pattern:t,message:this.data.name+"格式不匹配"}:null,this.generateRule()}},watch:{"data.options.isRange":function(t){void 0!==t&&(t?this.data.options.defaultValue=null:Object.keys(this.data.options).indexOf("defaultValue")>=0&&(this.data.options.defaultValue=""))},"data.options.required":function(t){this.validateRequired(t)},"data.options.dataType":function(t){this.validateDataType(t)},"data.options.pattern":function(t){this.valiatePattern(t)},"data.name":function(t){this.data.options&&(this.validateRequired(this.data.options.required),this.validateDataType(this.data.options.dataType),this.valiatePattern(this.data.options.pattern))}}}},function(t,e,n){"use strict";e.a={props:["data"]}},function(t,e,n){"use strict";var i=n(5),o=n.n(i),r=n(99),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};e.a={components:{Draggable:o.a,WidgetFormItem:r.a},props:["data","select"],data:function(){return{selectWidget:this.select}},mounted:function(){document.body.ondrop=function(t){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&(t.preventDefault(),t.stopPropagation())}},methods:{handleMoveEnd:function(t){t.newIndex,t.oldIndex},handleSelectWidget:function(t){this.selectWidget=this.data.list[t]},handleWidgetAdd:function(t){var e=t.newIndex,n=(t.to,Date.parse(new Date)+"_"+Math.ceil(99999*Math.random()));this.$set(this.data.list,e,a({},this.data.list[e],{options:a({},this.data.list[e].options,{remoteFunc:"func_"+n}),key:n,model:this.data.list[e].type+"_"+n,rules:[]})),"radio"!==this.data.list[e].type&&"checkbox"!==this.data.list[e].type&&"select"!==this.data.list[e].type||this.$set(this.data.list,e,a({},this.data.list[e],{options:a({},this.data.list[e].options,{options:this.data.list[e].options.options.map(function(t){return a({},t)})})})),"grid"===this.data.list[e].type&&this.$set(this.data.list,e,a({},this.data.list[e],{columns:this.data.list[e].columns.map(function(t){return a({},t)})})),this.selectWidget=this.data.list[e]},handleWidgetColAdd:function(t,e,n){console.log("coladd",t,e,n);var i=t.newIndex,o=t.oldIndex,r=t.item;if(r.className.indexOf("data-grid")>=0)return"DIV"===r.tagName&&this.data.list.splice(o,0,e.columns[n].list[i]),e.columns[n].list.splice(i,1),!1;console.log("from",r);var l=Date.parse(new Date)+"_"+Math.ceil(99999*Math.random());this.$set(e.columns[n].list,i,a({},e.columns[n].list[i],{options:a({},e.columns[n].list[i].options,{remoteFunc:"func_"+l}),key:l,model:e.columns[n].list[i].type+"_"+l,rules:[]})),"radio"!==e.columns[n].list[i].type&&"checkbox"!==e.columns[n].list[i].type&&"select"!==e.columns[n].list[i].type||this.$set(e.columns[n].list,i,a({},e.columns[n].list[i],{options:a({},e.columns[n].list[i].options,{options:e.columns[n].list[i].options.options.map(function(t){return a({},t)})})})),this.selectWidget=e.columns[n].list[i]},handleWidgetDelete:function(t){var e=this;this.data.list.length-1===t?this.selectWidget=0===t?{}:this.data.list[t-1]:this.selectWidget=this.data.list[t+1],this.$nextTick(function(){e.data.list.splice(t,1)})}},watch:{select:function(t){this.selectWidget=t},selectWidget:{handler:function(t){this.$emit("update:select",t)},deep:!0}}}},function(t,e,n){"use strict";var i=n(23),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};e.a={props:["element","select","index","data"],components:{FmUpload:i.a},data:function(){return{selectWidget:this.select}},mounted:function(){},methods:{handleSelectWidget:function(t){this.selectWidget=this.data.list[t]},handleWidgetDelete:function(t){var e=this;this.data.list.length-1===t?this.selectWidget=0===t?{}:this.data.list[t-1]:this.selectWidget=this.data.list[t+1],this.$nextTick(function(){e.data.list.splice(t,1)})},handleWidgetClone:function(t){var e=this,n=Date.parse((new Date).toString())+"_"+Math.ceil(99999*Math.random()),i=o({},this.data.list[t],{options:o({},this.data.list[t].options,{remoteFunc:"func_"+n}),key:n,model:this.data.list[t].type+"_"+n,rules:this.data.list[t].rules||[]});"radio"!==this.data.list[t].type&&"checkbox"!==this.data.list[t].type&&"select"!==this.data.list[t].type||(i=o({},i,{options:o({},i.options,{options:i.options.options.map(function(t){return o({},t)})})})),this.data.list.splice(t,0,i),this.$nextTick(function(){e.selectWidget=e.data.list[t+1]})}},watch:{select:function(t){this.selectWidget=t},selectWidget:{handler:function(t){this.$emit("update:select",t)},deep:!0}}}},function(t,e,n){"use strict";function i(t){n(100)}var o=n(24),r=n(105),a=n(0),l=i,s=a(o.a,r.a,!1,l,null,null);e.a=s.exports},function(t,e,n){"use strict";var i=n(102),o=n.n(i),r=n(5),a=n.n(r),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};n(103),e.a={components:{Draggable:a.a},props:{value:{type:Array,default:function(){return[]}},width:{type:Number,default:100},height:{type:Number,default:100},token:{type:String,default:""},domain:{type:String,default:""},multiple:{type:Boolean,default:!1},length:{type:Number,default:9},isQiniu:{type:Boolean,default:!1},isDelete:{type:Boolean,default:!1},min:{type:Number,default:0},meitu:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},action:{type:String,default:""},disabled:{type:Boolean,default:!1}},data:function(){return{fileList:this.value.map(function(t){return{key:t.key?t.key:(new Date).getTime()+"_"+Math.ceil(99999*Math.random()),url:t.url,percent:t.percent?t.percent:100,status:t.status?t.status:"success"}}),viewer:null,uploadId:"upload_"+(new Date).getTime(),editIndex:-1,meituIndex:-1}},computed:{miniWidth:function(){return this.width>this.height?this.height:this.width}},mounted:function(){this.$emit("input",this.fileList)},methods:{handleChange:function(){var t=this;console.log(this.$refs.uploadInput.files);for(var e=this.$refs.uploadInput.files,n=0;n<e.length;n++)!function(n){var i=e[n],o=new FileReader,r=(new Date).getTime()+"_"+Math.ceil(99999*Math.random());o.readAsDataURL(i),o.onload=function(){t.editIndex>=0?(t.$set(t.fileList,t.editIndex,{key:r,url:o.result,percent:0,status:"uploading"}),t.editIndex=-1):t.fileList.push({key:r,url:o.result,percent:0,status:"uploading"}),t.$nextTick(function(){t.isQiniu?t.uplaodAction2(o.result,i,r):t.uplaodAction(o.result,i,r)})}}(n);this.$refs.uploadInput.value=[]},uplaodAction:function(t,e,n){var i=this;this.fileList.findIndex(function(t){return t.key===n});console.log(this.fileList.findIndex(function(t){return t.key===n}));var o=new XMLHttpRequest,r=this.action;o.open("POST",r,!0);var a=new FormData;a.append("file",e),o.onreadystatechange=function(){if(console.log(o),4===o.readyState){var t=JSON.parse(o.response);t&&t.url?(i.$set(i.fileList,i.fileList.findIndex(function(t){return t.key===n}),l({},i.fileList[i.fileList.findIndex(function(t){return t.key===n})],{url:t.url,percent:100})),setTimeout(function(){i.$set(i.fileList,i.fileList.findIndex(function(t){return t.key===n}),l({},i.fileList[i.fileList.findIndex(function(t){return t.key===n})],{status:"success"})),i.$emit("input",i.fileList)},200)):(i.$set(i.fileList,i.fileList.findIndex(function(t){return t.key===n}),l({},i.fileList[i.fileList.findIndex(function(t){return t.key===n})],{status:"error"})),i.fileList.splice(i.fileList.findIndex(function(t){return t.key===n}),1))}},o.upload.onprogress=function(t){console.log("progress",t),t.total&&t.loaded&&i.$set(i.fileList[i.fileList.findIndex(function(t){return t.key===n})],"percent",t.loaded/t.total*100)},o.send(a)},uplaodAction2:function(t,e,n){var i=this;qiniu.upload(e,n,this.token,{fname:n,mimeType:[]},{useCdnDomain:!0}).subscribe({next:function(t){i.$set(i.fileList[i.fileList.findIndex(function(t){return t.key===n})],"percent",parseInt(t.total.percent))},error:function(t){i.$set(i.fileList,i.fileList.findIndex(function(t){return t.key===n}),l({},i.fileList[i.fileList.findIndex(function(t){return t.key===n})],{status:"error"})),i.fileList.splice(i.fileList.findIndex(function(t){return t.key===n}),1)},complete:function(t){i.$set(i.fileList,i.fileList.findIndex(function(t){return t.key===n}),l({},i.fileList[i.fileList.findIndex(function(t){return t.key===n})],{url:i.domain+t.key,percent:100})),setTimeout(function(){i.$set(i.fileList,i.fileList.findIndex(function(t){return t.key===n}),l({},i.fileList[i.fileList.findIndex(function(t){return t.key===n})],{status:"success"})),i.$emit("input",i.fileList)},200)}})},handleRemove:function(t){this.fileList.splice(this.fileList.findIndex(function(e){return e.key===t}),1)},handleEdit:function(t){this.editIndex=this.fileList.findIndex(function(e){return e.key===t}),this.$refs.uploadInput.click()},handleMeitu:function(t){this.$emit("on-meitu",this.fileList.findIndex(function(e){return e.key===t}))},handleAdd:function(){this.disabled||(this.editIndex=-1,this.$refs.uploadInput.click())},handlePreviewFile:function(t){var e=this;this.viewer&&this.viewer.destroy(),this.uploadId="upload_"+(new Date).getTime(),console.log(this.viewer),this.$nextTick(function(){e.viewer=new o.a(document.getElementById(e.uploadId)),e.viewer.view(e.fileList.findIndex(function(e){return e.key===t}))})}},watch:{fileList:{deep:!0,handler:function(t){}}}}},function(t,e,n){"use strict";e.a={props:{visible:Boolean,loadingText:{type:String,default:""},title:{type:String,default:""},width:{type:String,default:"600px"},form:{type:Boolean,default:!0},action:{type:Boolean,default:!0}},computed:{show:function(){return!this.form||this.showForm}},data:function(){return{loading:!1,dialogVisible:this.visible,id:"dialog_"+(new Date).getTime(),showForm:!1}},methods:{close:function(){this.dialogVisible=!1},submit:function(){this.loading=!0,this.$emit("on-submit")},end:function(){this.loading=!1}},mounted:function(){},watch:{dialogVisible:function(t){var e=this;t?this.showForm=!0:(this.loading=!1,this.$emit("on-close"),setTimeout(function(){e.showForm=!1},300))},visible:function(t){this.dialogVisible=t}}}},function(t,e,n){"use strict";function i(t){n(112)}var o=n(27),r=n(116),a=n(0),l=i,s=a(o.a,r.a,!1,l,null,null);e.a=s.exports},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var o=n(114),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};e.a={name:"fm-generate-form",components:{GenetateFormItem:o.a},props:["data","remote","value","insite"],data:function(){return{models:{},rules:{}}},created:function(){this.generateModle(this.data.list)},mounted:function(){},methods:{generateModle:function(t){for(var e=this,n=0;n<t.length;n++)"grid"===t[n].type?t[n].columns.forEach(function(t){e.generateModle(t.list)}):(this.value&&Object.keys(this.value).indexOf(t[n].model)>=0?this.models[t[n].model]=this.value[t[n].model]:"blank"===t[n].type?this.$set(this.models,t[n].model,"String"===t[n].options.defaultType?"":"Object"===t[n].options.defaultType?{}:[]):this.models[t[n].model]=t[n].options.defaultValue,this.rules[t[n].model]?this.rules[t[n].model]=[].concat(i(this.rules[t[n].model]),i(t[n].rules.map(function(t){return t.pattern?r({},t,{pattern:new RegExp(t.pattern)}):r({},t)}))):this.rules[t[n].model]=[].concat(i(t[n].rules.map(function(t){return t.pattern?r({},t,{pattern:new RegExp(t.pattern)}):r({},t)}))))},getData:function(){var t=this;return new Promise(function(e,n){t.$refs.generateForm.validate(function(i){i?e(t.models):n(new Error("表单数据校验失败").message)})})},reset:function(){this.$refs.generateForm.resetFields()},onInputChange:function(t,e){this.$emit("on-change",e,t,this.models)},refresh:function(){}},watch:{data:{deep:!0,handler:function(t){this.generateModle(t.list)}},value:{deep:!0,handler:function(t){console.log(JSON.stringify(t)),this.models=r({},this.models,t)}}}}},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(23),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};e.a={props:["widget","models","rules","remote"],components:{FmUpload:o.a},data:function(){return{dataModel:this.models[this.widget.model]}},created:function(){var t=this;this.widget.options.remote&&this.remote[this.widget.options.remoteFunc]&&this.remote[this.widget.options.remoteFunc](function(e){t.widget.options.remoteOptions=e.map(function(e){return{value:e[t.widget.options.props.value],label:e[t.widget.options.props.label],children:e[t.widget.options.props.children]}})}),"imgupload"===this.widget.type&&this.widget.options.isQiniu&&this.remote[this.widget.options.tokenFunc](function(e){t.widget.options.token=e})},methods:{},watch:{dataModel:{deep:!0,handler:function(t){this.models[this.widget.model]=t,this.$emit("update:models",r({},this.models,i({},this.widget.model,t))),this.$emit("input-change",t,this.widget.model)}},models:{deep:!0,handler:function(t){this.dataModel=t[this.widget.model]}}}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},function(t,e,n){"use strict";function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(1);t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(o.isURLSearchParams(e))r=e.toString();else{var a=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))}))}),r=a.join("&")}if(r){var l=t.indexOf("#");-1!==l&&(t=t.slice(0,l)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},function(t,e,n){"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(t,e,n){"use strict";(function(e){function i(t,n){function i(t){return null===t?"":o.isDate(t)?t.toISOString():o.isArrayBuffer(t)||o.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):e.from(t):t}function r(t,e){if(o.isPlainObject(t)||o.isArray(t)){if(-1!==a.indexOf(t))throw Error("Circular reference detected in "+e);a.push(t),o.forEach(t,function(t,a){if(!o.isUndefined(t)){var l,s=e?e+"."+a:a;if(t&&!e&&"object"==typeof t)if(o.endsWith(a,"{}"))t=JSON.stringify(t);else if(o.endsWith(a,"[]")&&(l=o.toArray(t)))return void l.forEach(function(t){!o.isUndefined(t)&&n.append(s,i(t))});r(t,s)}}),a.pop()}else n.append(e,i(t))}n=n||new FormData;var a=[];return r(t),n}var o=n(1);t.exports=i}).call(e,n(127).Buffer)},function(t,e,n){"use strict";var i=n(1),o=n(132),r=n(133),a=n(30),l=n(34),s=n(136),c=n(137),u=n(31),d=n(4),f=n(6),p=n(138);t.exports=function(t){return new Promise(function(e,n){function h(){t.cancelToken&&t.cancelToken.unsubscribe(g),t.signal&&t.signal.removeEventListener("abort",g)}function m(){if(y){var i="getAllResponseHeaders"in y?s(y.getAllResponseHeaders()):null,r=w&&"text"!==w&&"json"!==w?y.response:y.responseText,a={data:r,status:y.status,statusText:y.statusText,headers:i,config:t,request:y};o(function(t){e(t),h()},function(t){n(t),h()},a),y=null}}var g,v=t.data,b=t.headers,w=t.responseType;i.isFormData(v)&&i.isStandardBrowserEnv()&&delete b["Content-Type"];var y=new XMLHttpRequest;if(t.auth){var x=t.auth.username||"",k=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";b.Authorization="Basic "+btoa(x+":"+k)}var _=l(t.baseURL,t.url);if(y.open(t.method.toUpperCase(),a(_,t.params,t.paramsSerializer),!0),y.timeout=t.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(n(new d("Request aborted",d.ECONNABORTED,t,y)),y=null)},y.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,t,y,y)),y=null},y.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",i=t.transitional||u;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new d(e,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,t,y)),y=null},i.isStandardBrowserEnv()){var E=(t.withCredentials||c(_))&&t.xsrfCookieName?r.read(t.xsrfCookieName):void 0;E&&(b[t.xsrfHeaderName]=E)}"setRequestHeader"in y&&i.forEach(b,function(t,e){void 0===v&&"content-type"===e.toLowerCase()?delete b[e]:y.setRequestHeader(e,t)}),i.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),w&&"json"!==w&&(y.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&y.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(g=function(t){y&&(n(!t||t&&t.type?new f:t),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(g),t.signal&&(t.signal.aborted?g():t.signal.addEventListener("abort",g))),v||(v=null);var S=p(_);if(S&&-1===["http","https","file"].indexOf(S))return void n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,t));y.send(v)})}},function(t,e,n){"use strict";var i=n(134),o=n(135);t.exports=function(t,e){return t&&!i(e)?o(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var i=n(1);t.exports=function(t,e){function n(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function o(o){return i.isUndefined(e[o])?i.isUndefined(t[o])?void 0:n(void 0,t[o]):n(t[o],e[o])}function r(t){if(!i.isUndefined(e[t]))return n(void 0,e[t])}function a(o){return i.isUndefined(e[o])?i.isUndefined(t[o])?void 0:n(void 0,t[o]):n(void 0,e[o])}function l(i){return i in e?n(t[i],e[i]):i in t?n(void 0,t[i]):void 0}e=e||{};var s={},c={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return i.forEach(Object.keys(t).concat(Object.keys(e)),function(t){var e=c[t]||o,n=e(t);i.isUndefined(n)&&e!==l||(s[t]=n)}),s}},function(t,e){t.exports={version:"0.27.2"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(39),o=n(42),r=n(48),a=n(57),l=n(62),s=n(67),c=n(72),u=n(75),d=n(78),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},p=[i.a,o.a,r.a,a.a,l.a,s.a,c.a,u.a,d.b,d.a],h=function(t){p.forEach(function(e){t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&h(window.Vue),e.default=f({version:"0.0.44",install:h},p)},function(t,e,n){"use strict";var i=n(40);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";var i=n(8),o=n(41),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"th-cell",class:[t.customClass,t.center?"is-center":"",t.active?t.cellActive:"",t.hover?t.cellHover:""],style:t.customStyle,on:{click:t.handleClick}},[t.icon?n("i",{staticClass:"th-cell-icon",class:t.icon}):t._t("icon"),t._v(" "),n("div",{staticClass:"th-cell-content"},[t.title?n("div",{staticClass:"th-cell-title",class:[t.titleClass,t.active?t.titleActive:"",t.hover?t.titleHover:""],style:t.titleStyle},[t._v("\n "+t._s(t.title)+"\n ")]):t._t("title"),t._v(" "),t.label?n("div",{staticClass:"th-cell-label",class:[t.labelClass,t.active?t.labelActive:"",t.hover?t.labelHover:""]},[t._v("\n "+t._s(t.label)+"\n ")]):t._t("label")],2),t._v(" "),t.value?n("div",{staticClass:"th-cell-value",class:[t.valueClass,t.active?t.valueActive:"",t.hover?t.valueHover:""]},[t._v("\n "+t._s(t.value)+"\n ")]):t._t("default")],2)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(43);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";function i(t){n(44)}var o=n(9),r=n(47),a=n(0),l=i,s=a(o.a,r.a,!1,l,"data-v-7d8c5857",null);e.a=s.exports},function(t,e,n){var i=n(45);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("a2abff02",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,".input-prefix[data-v-7d8c5857]{height:100%;width:32px;display:flex;align-items:center}.input-prefix .icon[data-v-7d8c5857]{font-size:20px}.th-icons[data-v-7d8c5857]{height:300px;overflow-y:scroll}.th-icons .icon[data-v-7d8c5857]{padding:8px;font-size:20px;border-radius:2px}.th-icons .icon[data-v-7d8c5857]:hover{cursor:pointer;background-color:#f2f2f2}",""])},function(t,e){t.exports=function(t,e){for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=r[0],l=r[1],s=r[2],c=r[3],u={id:t+":"+o,css:l,media:s,sourceMap:c};i[a]?i[a].parts.push(u):n.push(i[a]={id:a,parts:[u]})}return n}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popover",{attrs:{placement:"bottom-start",title:"Element图标库",width:t.width||400,trigger:"click"}},[n("el-input",{attrs:{slot:"reference",value:t.value,placeholder:"请选择图标",clearable:""},on:{clear:t.handleInputClear},slot:"reference"},[t.value?n("div",{staticClass:"input-prefix",attrs:{slot:"prefix"},slot:"prefix"},[n("i",{staticClass:"icon",class:t.value})]):t._e()]),t._v(" "),n("div",{staticClass:"th-icons"},t._l(t.icons,function(e,i){return n("i",{key:i,staticClass:"icon",class:e,on:{click:function(n){return t.handleIconClick(e)}}})}),0)],1)],1)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(49);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";function i(t){n(50)}var o=n(10),r=n(56),a=n(0),l=i,s=a(o.a,r.a,!1,l,"data-v-1caf69c6",null);e.a=s.exports},function(t,e,n){var i=n(51);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("028ca903",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,".th-table[data-v-1caf69c6]{position:relative;width:100%;height:100%}.th-table .pagination[data-v-1caf69c6]{margin-top:20px}.th-table-more[data-v-1caf69c6]{position:absolute;top:13px;right:5px;cursor:pointer}",""])},function(t,e,n){"use strict";function i(t){n(53)}var o=n(11),r=n(55),a=n(0),l=i,s=a(o.a,r.a,!1,l,null,null);e.a=s.exports},function(t,e,n){var i=n(54);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("20f2dc5b",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,"",""])},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._l(t.options,function(e,i){return[e.hide?t._e():[e.type?n("el-table-column",{key:i,attrs:{type:e.type,label:e.label,width:"50"}}):e.children?n("el-table-column",{key:i,attrs:{prop:e.prop,label:e.label,width:e.width,align:e.align,fixed:e.fixed,sortable:e.sortable,"sort-method":e.sortMethod,"show-overflow-tooltip":""}},[n("TableColumn",{key:i,attrs:{options:e.children}})],1):n("el-table-column",{key:i,attrs:{prop:e.prop,label:e.label,width:e.width,align:e.align,fixed:e.fixed,sortable:e.sortable,"sort-method":e.sortMethod,"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(i){return[e.slot?t._t("slot",null,{scope:i,option:e}):n("span",[t._v(t._s(i.row[e.prop]))])]}}],null,!0)})]]})],2)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"th-table"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"th_table",attrs:{height:t.height,data:t.data,"row-key":t.rowKey,stripe:t.stripe,border:t.border,"highlight-current-row":"single"===t.selectType,"tree-props":t.treeProps,"span-method":t.objectSpanMethod},on:{"current-change":t.handleSingleSelect,"row-dblclick":t.dblclick,"selection-change":t.handleSelectionChange},scopedSlots:t._u([{key:"empty",fn:function(){return[n("div",[t._v("\n "+t._s(t.loading?t.loadingText||"加载中":t.emptyText||"暂无数据")+"\n ")])]},proxy:!0}])},[t._l(t.options,function(e,i){return[e.hide?t._e():[e.type?n("el-table-column",{key:i,attrs:{type:e.type,label:e.label,width:"50"}}):e.children?n("el-table-column",{key:i,attrs:{prop:e.prop,label:e.label,width:e.width,align:e.align||"left",fixed:e.fixed||null,sortable:e.sortable,"sort-method":e.sortMethod,"show-overflow-tooltip":""}},[n("table-column",{attrs:{options:e.children}})],1):n("el-table-column",{key:i,attrs:{prop:e.prop,label:e.label,width:e.width,align:e.align||"left",fixed:e.fixed||null,sortable:e.sortable,"sort-method":e.sortMethod,"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(i){return[e.slot?t._t(e.slot,null,{scope:i,option:e}):e.format?n("span",[t._v("\n "+t._s(t.handleFormatTime(i.row[e.alias||e.prop],e.format))+"\n ")]):e.alias?n("span",[t._v(t._s(i.row[e.alias]))]):n("span",[t._v(t._s(i.row[e.prop]))])]}}],null,!0)})]]})],2),t._v(" "),Object.keys(t.pageInfo).length>0&&t.showPage?n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{"current-page":t.pageInfo.currentPage,"page-sizes":t.pageInfo.sizes,"page-size":t.pageInfo.pageSize,layout:"total, prev, pager, next, sizes",total:t.pageInfo.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"prev-click":t.handlePrevClick,"next-click":t.handleNextClick}})],1):t._e()],1)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(58);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";function i(t){n(59)}var o=n(12),r=n(61),a=n(0),l=i,s=a(o.a,r.a,!1,l,null,null);e.a=s.exports},function(t,e,n){var i=n(60);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("faba667c",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,".th-table-action{width:100%;display:flex;align-items:center;justify-content:space-around}.th-table-action .el-button+.el-button{margin-left:0}",""])},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"th-table-action",on:{click:function(t){t.stopPropagation()}}},[t._l(t.actions,function(e,i){return["delete"===e.act?n("el-popover",{key:i,attrs:{placement:"top",width:"180",trigger:"manual"},model:{value:t.pop,callback:function(e){t.pop=e},expression:"pop"}},[n("p",[t._v(t._s(e.delmsg||t.msg))]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",disabled:t.loadingDel},on:{click:t.handleCancel}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"text",loading:t.loadingDel},on:{click:function(n){return t.handleDelete(e)}}},[t._v("确定")])],1),t._v(" "),n("el-button",{style:e.style,attrs:{slot:"reference",disabled:t.loadingDel||t.btnDisabled(e),type:e.type,icon:e.icon},on:{click:function(e){t.pop=!0}},slot:"reference"},[t._v(t._s(e.name))])],1):"more"===e.act?n("el-dropdown",{key:i,attrs:{trigger:e.trigger||"click",placement:e.placement||"bottom-end",disabled:t.btnDisabled(e)},on:{command:function(n){t.handleMore(n,i,e)}}},[n("el-button",{style:e.style,attrs:{disabled:t.loadingDel||t.btnDisabled(e),type:e.type,icon:e.icon}},[t._v(t._s(e.name))]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(e.children,function(e,i){return n("el-dropdown-item",{key:i,style:e.style,attrs:{command:e.act,icon:e.icon,disabled:e.disabled}},[t._v(t._s(e.name))])}),1)],1):n("el-button",{key:i,style:e.style,attrs:{type:e.type,icon:e.icon,disabled:t.btnDisabled(e)},on:{click:function(n){return t.handleClick(e)}}},[t._v(t._s(e.name))])]})],2)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(63);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";function i(t){n(64)}var o=n(13),r=n(66),a=n(0),l=i,s=a(o.a,r.a,!1,l,"data-v-181c47c8",null);e.a=s.exports},function(t,e,n){var i=n(65);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("98c6eed6",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,".th-table-search[data-v-181c47c8]{display:flex;align-items:center;margin-bottom:20px}.th-table-search-item[data-v-181c47c8]{display:inline-block;margin-right:15px}.th-table-search .th-table-search-item[data-v-181c47c8]:last-child{margin-right:20px!important}",""])},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"th-table-search"},[t._l(t.options,function(e,i){return["input"===e.type?n("div",{key:i,staticClass:"th-table-search-item"},[n("span",{staticClass:"th-table-search-item-title"},[t._v(t._s(e.props.label)+":")]),t._v(" "),n("el-input",{style:{width:e.width+"px"},attrs:{placeholder:e.placeholder||"请输入",size:e.size,clearable:""},model:{value:t.params[e.props.prop],callback:function(n){t.$set(t.params,e.props.prop,n)},expression:"params[item.props.prop]"}})],1):t._e(),t._v(" "),"date"===e.type?n("div",{key:i,staticClass:"th-table-search-item"},[n("span",{staticClass:"th-table-search-item-title"},[t._v(t._s(e.props.label)+":")]),t._v(" "),n("el-date-picker",{style:{width:e.width+"px"},attrs:{type:e.dateType||"date",format:e.format,"value-format":e.valueFormat,size:e.size,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.params[e.props.prop],callback:function(n){t.$set(t.params,e.props.prop,n)},expression:"params[item.props.prop]"}})],1):t._e()]}),t._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-search",plain:""},on:{click:t.doSearch}},[t._v("查询")]),t._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right",plain:""},on:{click:t.doReset}},[t._v("重置")])],2)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(68);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";function i(t){n(69)}var o=n(14),r=n(71),a=n(0),l=i,s=a(o.a,r.a,!1,l,"data-v-2012ac2a",null);e.a=s.exports},function(t,e,n){var i=n(70);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("29887a00",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,".th-tools[data-v-2012ac2a]{margin-bottom:10px}",""])},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"th-tools"},t._l(t.options,function(e,i){return n("el-button",{key:i,style:e.style,attrs:{type:e.type,icon:e.icon,disabled:e.disabled||t.disabled[e.act],loading:e.loading},on:{click:function(n){return t.handleClick(e)}}},[t._v(t._s(e.name))])}),1)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(73);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";var i=n(15),o=n(74),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"th-empty"},[n("div",{staticClass:"th-empty-img",style:t.imageStyle},[t.image?n("img",{attrs:{src:t.image,alt:""}}):t._t("image")],2),t._v(" "),n("div",{staticClass:"th-empty-description"},[t.$slots.description?t._t("description"):n("p",[t._v(t._s(t.description))])],2),t._v(" "),t.$slots.default?n("div",{staticClass:"th-empty-bottom"},[t._t("default")],2):t._e()])},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(76);i.a.install=function(t){t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";var i=n(16),o=n(77),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"th-dialog",attrs:{visible:t.visible,fullscreen:t.dialogFullscreen,"close-on-click-modal":!1,"show-close":!1,"before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[n("div",{staticStyle:{"font-size":"14px"},attrs:{slot:"title"},slot:"title"},[n("div",{staticClass:"th-dialog__header",attrs:{slot:"title"},slot:"title"},[n("div",{staticClass:"th-dialog__title"},[t._v(t._s(t.title))]),t._v(" "),n("div",{staticClass:"th-dialog__action"},[t.showFullscreen?n("i",{staticClass:"th-dialog__action_item",class:t.fullscreenIcon,on:{click:t.handleFullscreenChange}}):t._e(),t._v(" "),t.showClose?n("i",{staticClass:"th-dialog__action_item ",class:t.closeIcon,on:{click:t.handleClose}}):t._e()])])]),t._v(" "),t._t("default"),t._v(" "),n("span",{attrs:{slot:"footer"},slot:"footer"},[t.showAffirm?n("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.handleAffirm}},[t._v(t._s(t.affirmText))]):t._e(),t._v(" "),t.showCancel?n("el-button",{on:{click:t.handleClose}},[t._v(t._s(t.cancelText))]):t._e()],1)],2)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(79),o=(n.n(i),n(81)),r=(n.n(o),n(87)),a=(n.n(r),n(89)),l=(n.n(a),n(91)),s=n(26);n.d(e,"b",function(){return l.a}),n.d(e,"a",function(){return s.a}),l.a.install=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.component(l.a.name,l.a)},s.a.install=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.component(s.a.name,s.a)};var c=[l.a,s.a],u=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];c.forEach(function(e){t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&u(window.Vue);l.a,s.a},function(t,e,n){var i=n(80);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("b712aa4c",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}",""])},function(t,e,n){var i=n(82);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("1e70815b",i,!0,{})},function(t,e,n){var i=n(83);e=t.exports=n(2)(!1),e.push([t.i,"@font-face{font-family:iconfont;src:url("+i(n(17))+");src:url("+i(n(17))+'#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABlcAAsAAAAAMDwAABkOAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCJFArIVLl8ATYCJAOBMAtaAAQgBYRtB4QCG8AnVUaFjQMg2+y7Rfb/pwQ6BuxA7iBlEYIxqKczB65GG3ai5V7ElKxVhy+NIEABir8I8UH3RxYXH+mlvKSMc/6Jl82ecNJy1hzjwk52T5ybUIDThlLy8P/7fdv3yf/v24h5Yk1CJUHCM4lEJHmmZNIQGiFZ9XjG4+Q3PD+3/3N3t3GX9y4IHbExGMPaHCMHvVEiPUYtMIaIYA/tEWWiTSnvCwYqRn5pI6cigoXIsAJndQC0+f/5wCOd1m4sOZ9Z4b0gjN0TdFjd3e9KAWQ3Uiu1ZDtITwB2sj81v9lOa8PCsNiXX+pa2ljXPBkEyMHIX4hrbX4+nh7FidYoe3AH5/S3mz0AOlLmu0XhkGxnk+KBuiUZUuFuBA/47472CUMP4kxzfcdaUjsj4O+npVRyLcxm1+T62Hm4nTI8jOl9bXv6kk//+pfcdjdltVd1bqu02lDGKOnS7bn0XXel1AYdQA5lgsNQKA0KgCCQNueXY3JpQgGV2WNs/nuwauZAm7LibfaPPDIJbXN2pJtfY5IBonAzE2zxkrKzAOLpUEjmJ9XqBmefBQWqUqqyysyE+ET/+HSMzqUKyJQ5uB3VgxeKaSA4wCF3b2rneV7oTXoSm32RYwcF2RtuMb0+gC3aobzN+2EWKfYAOG9BYSpAEMlMPBNJ+QsWSiFDlhnyLVckdOBN7/l3f/i5tffDwfVzawUIApGOSxRvcuBEzWlZNsHpqrjJ5Py99UVXyYWLnhw7Mfm0pPyvecCAQV1TRsybkOvZNGdSYUtLZtiyMaUlDUO2jdqwqs+6fjM6Zi0YlzStaJu2qLJGagDYvAvZCO7fJgABBggCMEgQgS5BA6YIOjBCoMA8YQ1MEDZATtgCPYILbBI8YI4QAZOEGCiIicAWIQVahD+QEYHAMBEELBPBwBgRCpSEAlgiMoAGoQGGCK3RNpYOgFEiC9ggZgCrRD7QRywD1onlQD9RBMwQW4AOsROYJQ4CC8RRYJy4BST2WUCT/Vxghf12oM3+eWCag1BgkUMnoaIWF/qtYSLaK48BP4HOHn2f3cwU5N7jxpVSxvDDT01EvDMP4xC2JXjLCVvCY48E8FImUamEIBuaYjmiZ8FmacxzdKUol+LER6Rirj2ZAEdXlEW7gTlJSnAiIRpwVVWKUfX1eA5qa9lsaxouzyW1KXHXI8dblJZAL1V4tGrGrNnUIkEo5jQFo0tYKDcwDCrERQpwqozFIrSguomJ6QOjMWB4ipCvhtJ7aUpowi63DHAxxvJPJBwoQuFTVr1CWExySTPRVEKNW09zM4ZCyrJjPYrAggCgZHOYilJz0PqJ6g7U50ismLFQ3Y0yV+98gwqtG8GP9fNT7Z2jvNTkFJPzywmWpxtRqPrarnsY8RXTZjTQdHZIpzjxtzxEwuBO1hj2frcUj2DeDTWpTRjhjWjbQ86Vf+NeE5Z0TuHU5RhqlIXAsKIXcyQ2NRoEzJ54kIXP2++UbNpWdIVdB8CzEABAwTtdiuj/QzzB8yKFKYmXB6GT9EABSQ1PjA6nNjHbkrbVTTmljI1p4yP6qDHSHEjGeNrlidivtySKpzpmegNgPLFVNgdiRX98CxwbVVBbTbsU1KaljOVHsCtnGwAIOJBU+Nqw95SGbsi47ErVvdS8QjbndMiK12vcD++fovrdpZQskwJISYiGFxC6LWTyWbLJi1g4RcWcg3URj4gPaSXEhMSGmzXAQ0PCOboionsdFTz7Pd5+nk3c8MCHX3HhKE3jJvshtSfijP4gfNOodZ+NWgMEkUGd9diHdgUy9nzSqcT7zhOAycduFT5wF3hyz3587x63ypUQEJtPoh0C7vSxc+lduzfApoh+T8INEU8yhDMiDRBlj1uWyDqNwqlVXJCxGwgGjyzgtLQgeARrI0ojS0QRW0qhuirzUi/sJAggiSNbyrlTyu+4TeKZXeIAL8IRgfoSapndEDWETgCe7MamH0pNEpC4Jk5FGAl9VfYL0lY/xA9iV/FDHZ2nE99aXReJHzK5JQTS1gYC4wSMcEFIxCIKQGeIIS04wPa6eHvsf9puYHkdDbmsk+/6joKNKIKxFoUJglJG52ogIym24T5ekQoEm5vZgAg/vyv49U4VKSniR94AOF/4ZcbpM6qn51nDFXGf7/peGbzwm4RcLP46ezTjaGcXO9jlsZ/twCa5iL0F4C39Nuf2u/3+/UxrDpv86baOwnn0bUL85d/nT+Zc4+Isg4w05pMtbV5mUfaHYwUnVLHMrDIJJY2m73KH5i+7+/bt27yVdWc7T5ZDj9WkbJPfgvWwyjhBRCzQnGzb+s92zrtrvpcrz/uU5WFZoYeWUj7o2HN7XU/11L8Tv99b5IaI2g1O4AxPyYH+gcd+4qVbAdKUrcTAV8zzZxGll/PU55/xrDvm4T+g+oipzmzni586Xr6eKxptR0WE7ppv1flLQlD4UhbHmu6mbvdv82tld768EhTAZGPUupa+cFpYaBJ/fOLmpTUr2VKaPnfEFHIOR8Yf88WOBZLnYN51iezbqEBI2BLXlpAlF9fdFmyw8DTXgG9sMCBmjxUZ5ogdmzobCjWNdoWqNuwPMmsMLAxZNJi0ygPUju+ynVygJChtmJE0wChxJHkAjsMiOOaFe37KIIR+7EZeYJnjowWWKpDrLL/sreNy2Nel3NJdZdk11A1HrN8Xd8PDHu2b2XH9L4/azdxjrAGtExjT+6rz4H9119hZ1dPWM8YXbhcl820+4RbivXGhI2OS+APfqveE92C4QvS2kH012KgnSpT7a/SKrW95ooHTr5J32bjcnXKKEHBwg7payU0wzhILAgVC/NDAWtOleCdFpTLZGYfBU8ZyIG39/GwYR2Q+dkeP+v28UHhiTGY+BQJMzCUERMkSEaJGnYzogHIdX59UCzdHlfYe0nhsLL4/Tijif8Kg3B0A/J7WIiBQGzr/JLm82EEgzbIFFSt4EnSREc4VtkjZJFnPYskrfvUW5k9EhPwja7hDmlKf0hTLZqOu2mPflN2f3/fZTFMw3YlBlFxx2JvuH732gjSE8XtMIf7sKhyPi/ZkL2bLNrcd0no0g7aIh0UO79ek4DUAgr5IqMd3qNsa/FzGvGsQ5pu1mZ4SRuCMkIh+srcmi94bsiibl7KiTYAAE1+ZeMoBJKSgldCOfdZZqJhYLAAPGOfym3YsAyQaBaHvJXXNvXpcBf2ACr+gRpaSkIvihZ4P/TeuYRmgsjGRTa5880UAA7aT4MmiA5GhIekp6p54xLW7FLiPSuEvAILAiQIPC0ueV33GfEpWPC46AaFQz0ZRekHZPYZ3Dii2CQd2T2xg11jsgGsYWz310QSAgDBjHAiaF96PV9vPyUxqCRSoiB3sfaSTIGq2X6rE7lAUMM7DyiLVtuzjpbT44Wg46Po1PTOC0q+X9Vd4rwQ5Kto+ULy3QfaWtKtfj0XvGBNkjPhlcbY7zkZG46oA4DnhJ9V+KhzNlIQXYFVSOSH6x/YBYc2JYw/OcgxWpiuzqw+NtCt3X6NvEdwFK1STP9WUklSHx22mpFseMbqFznT6s/2ymbeF76ebU5nX+uBU7E7dJJ+wRnjfupaaaecalX4Qb2FXI3S36W0n5H7YdhxBX8/Dy3gFs86lemofJFst++M2x2aZpicbhW81sFjnws7lAKfy23PIWXgjgu9YRwyRJKTYx5GfNNB0OhWz5Jb1DdjGuhgrZiIaoGy6JCbcBEeyIQSdUyWmVb/CtmNdQWi56cz1OuB71glqv9vLVPjsL4hABjeIWMDu35fTxKf7c53IfwTPrd5O2CLkpC0jhL04IuIEFxM1SrY8aUaoPDGK/LtRtIUY/y25LCnPIYoTFwR46OdNuRrvRHI0e4dU9Sn206u4OLuQNGywRaJsicW/EseyZWnsMNZOafLf2M+f92aQ4cA0ZZ/k3UjwPSyyJ2xTBIyo2P4jsX2NdaIW8YUTFvT405zpVlXj6p9u3lFYLZCJuXrWdtaLoTOR2ys9xyouuF/7AvZe2JbpdXr5G8MjVX1tfZ3qkaGxUULiz1qgsnNf+T4VcTc56f29fJJz261hMLuuvq4uG1w+mcdfyP9NovMGoqLyJTUeDyV7pflfDfxZAJr1d8MDl40ukVER0IOok353B6KAVJddZChq/9HubpBt+Mkrru0x+AFpvH8pEpZVItqVscRqk9IwiiCXe1z7VOA9wsM9gE5nUqIKMkmBhylNclRhzv0MKdBJGX1m24tZvlmzbJm3bMFSeaktGVUOxYBZiSa3RQyBV/LykBrkFEnThU/ykWqdNARdevOQZuQkpOHWXDq0fZfb+cg+btc+BN0av1d6a/yO+LfGv53DtT3VDka25wkUAkDS9GMGXoXhu1oar1714HiIE8qA5LfHb0/GeSIaBO/zDJ3mESyRi5vxMszqWbLXhYda7wfYR6EC4cNhi53l8Acqg56nBo4ODPVhyygLZWU/w8GB0c/ftdTy/tr+A3fuDMFK5ghPCf/5TkD+a2IF67dcsmvsuF19d1sh04gJa42IWLqUYUckGhvAixfxGboMmTDMBF3Geas7oGEvhfHCPVqdCYBeLHBNTHmsS0NYAU/vrOcVVDFdHQmM19viFYCVK7k0HGpEgcyl4szc4OAGD7KO7NHQtQ4EN1C5f/MhLTbUUP3SoQQCgY6S827c2PSeFXAW02iLA2UbNsiAT49QaKlGm9Bqi9ZcjZJama0kGoOmpTPoTaRdaPQxDhmP6kkqANMRC8RRnwriKSdl59oOxilhZQqNSe+wvKj1jEjESIsfSzR8DK1e4kRqJfus5+tIbaSLovg4H0tHB+mxHM2YhDJkenp6CqOVsY7RM0ydALnGSMkIcBMkAl6WpTkzA/bsCQCTHexN4N7nLwFE4jjGEoxAZNeIM2s9e86/rDx2u+/Q6tJS/+7u1d7eVr23ev19LXHgjEd/fXhxCxbIqv/zO+x5GKBJ+kwbdqj12p4WLd3Hh3o8dWEvJRra3G63CcbPDZ9m3jHDymrWY2rQyo11PTOetb6mY5RpW9o6dXNP13Q6GPAurROUxjPotcrlSILNC5XnjFOfDzodTJhVz62v778NuLDuGp5Ox1fuWkfIOhXUc7n74OFhmNy+hpDFZdS6SUvsPu8iw448sYSfeDDnxak/B8Eo7sXpkwWJ/iSl68OG2nauVkkbcNJdFMTMdI1Zf+YeOiXTeFP/31Dr8pCuTPGfLGibrloV+ITxkXhnwkY8S0fDBKa0K40GRBL5tLLiDH6TIDlUnhTi6Z4VHBwSK7FIgx9QwTdIF6Cua4x26AmeHb5QtygmIYtYOMVbmY2FhjIZ1zQGbxqEq0Vy1MiQ8DBoIgNAXqfxX77Ap+V8+fzqyM+f8a9df/5C2STcie+7DTfAO/v6dsLoE5+ffkPfbU2hlsH2gMYr4xoCwsbFEcIi8UmQtSanzFW3BF5CJOcRw1djUj8peKIOCKis5U2QT2AevFCxiDT6Q3Y280QNixe87+GGheF6cLRxrecGmyI4gNNDIsD7xeaZ0Jq1uBzp8xYzIVfFPbMWt2IFpAk9bq7FocqcwT0gXKMOh0Kq1dCLq51vqUYNfjcRE39XEMqeF4uCmDc699d/dOGV/Fluzpv/15n/cW3rQMc4uv/TLtJZq8QHBrcRh+2t//vqeCtz2sC8gdzun/aHG6vHe70Znh8KPDceOGqMiUGikWozWtsZdRP6pySxfz/p3siFg7XscNrRUkq3p4zY3teVkDl2OQbz9PHsiLvbBL2t9y33rvS2yc7JybZhSct9699Cm3SRLeXlLZFEeFoB1LFyQt64/HHDScnJScNGLXkTVnZABXDjg/uNK9pwYmWqZIr11aa3RgdoJFrpt5iuN6vWzjfqCzJUlUcPoYv9KoNL/RaBZYg8UZ5EIsfKjsMWE1wL11gu89uVxFDepgrXS+jJwDGcIxeOZZn7S87vtOr6yoe3WK6c+KsGzbIQWaiPS7SLInUsc7KtiyTYMcS72a8V7PcP8Qv1idqqgkJPdNkMjt3C0ilpU6pa8fpy70wgOybTYGFMhBmGaYj/tXIICNF2j2AyJmfEMuXMyRCIZcgrizWMrOD5NQw5ZJUg3yaQMDrqkmIN8WjzWDzClDP0ng3ZP3eRWwpxQFjX4tfytkXWUkEqwMU09YCT03I7Axpi1L5qboqTb6BvkNFrCDwsCgJhmOg5rL/4zq5OPLwyMCAQmFSLyIPsQbJ5fXCnO/ysTOH0lhePnl0uxV3SeXTF5XPkVset5HNMQTCVwa5mm4gPC8XCQuhYLlfqks8DWh48CcDLqOuxO8Lg2PWrqPyjqf6pGe+Li588GbseypAcMxqPHVOpeABrhsC9pz7g0avHoR7oCJEttVXZ9QMRFXR4c1BE0FFQhYYEYv1Y+U5eeMJI2HlOM+ahzo7OqOnU0HuvxMGZfrqzg6QGOOo/TPOai3JkTfzrCYCvuGjh0yE63+JpTnGczePHUy3U14DqSBG7TgCjp3pEEyuI5Nq+e+8I/Ed4SCCQV16zWLKJGEujxRJ9+Ytr+MjT8vWJTRKBiaCOYgLaliiPxTXOiLNUZxfgqeEbpnAXA1O7xpAFidZYn4oh3MWkcFPnuGmio9UCzwfiM+xT+ncCk+DRksVhTYW6WyGJ05csGXS7Jng3vaxZAakzIQWOWk2vWAw2ZV4x6ADFjZir+YgTiJuFzWJPtSA62k2T46YG4fMut1W1sc+wJcQfzaniLPaozToVI3GyxEQ/iV/lZO+EBJ0K8KwIw7lBWK+A3HBTa6dF5fi/S39RvyvrZHpuGZXkhXKIgdSwfXISMA32shxvVJuh/lmxesepaw5Vxv4Fq7/+Lw8ei/CQOGLq7JObnU7r3V/UTyBYpdu2KpHDh6fQZNO9HZZwK4znrzkYb4472jyp2dWFM5nqR+xZmKsz9CGLqBIETO+2bxTbnuxdWaFr0xRZ+033stWJDquS6HoKGq/i5ZL4lHSg1V4e6ScE83sfa/gevcAcbC6g91DzcsALuGkONUzP/VCXywAv55AODPBcD1WBAcOtI6bjyspwlZsOwsWcYQcSoNxciFxCQ8jiqD+uZP3hIwbWCMuwTkDPegScM8+0t9/6D4zaVSAVS6s7nV1DQ4cepz5/BcBbLMSq8ufTthfQNq8oel4SabZJcJobTPAbKvnq02i7zb96Bgj4cHJ1UMQr3rAuc8ZtUZhoRl+Grvc1zytu9b4meYDwlVTv2JN30eHirTzHFKnbq/GrqlMLAkN43S3pQ2E3qxZud0JswdrKcxx8yjvVkZQj71LwJyaAUoEpeUqsgoF2A6I/Plc/9+zxVNsO2j4nafrln6EKvYTAm59t1SSPP5s5F5yGSUP8Q6N7KFNIV+wcFp7evALKANsSRRFXSeS3FC35YdWGKhNpA+k6WUu5YctPECjXGh+StSSTTu8G8iAvjfyIjDQq4rszkgsDnzA8IqwQhpM0rtdtN2LDbmV/st7PzsI3B5dkJU1k77f+5Jdg5b/b9J4VqGvthaejxiFmmNu4UROc33jMABzfeF4X7Fq8NWLcH3WL+UPYG6r14q4DUL9zB7b2embcS4jrggFSNxiGdUbfXfdgFm/+fZylr9p3OFs20exvHgFcCI2DhmD+0644CYthKfI3uKUDd9yC3fOgA2CvTdt9r79sCN5reArIe7gLoO5UtQN1zsOpaVEWNDbpgNX+dcdgD9xc4zmsnzjQ+GC+wALaX6erI3VgcVmcxj4H4El9u/2AE+pmPiqTqH+lYRP+92MsdP/9Cmct6p/KWUX+ReRhv2omU1Eb0z+Xi0rmtibxfx0XKTMOQP1vzrYZ1LlTHC+DXJ97vFNL12dX78pErIRXCKX/76TwZcDNz9C+34z//1g/5H8d7VFtZlLlSW20TNOslqusqMXkHa3Usas1VK5obdvuVOsY9gosFaS//NsfQUsG7GmZPl+13IBvajH5H5Vgn4LWMJByre1hYtXY2VeQ6DxMEBSdGXeGLGfvbj1nW/7CUBOIO0Mb/qEUOtu8GB79g98wo6Sxm7IOL1W98cKz+WocHabEZhGe0OoQVZePq5XnJRgszwfnYYKg6IxxZ7Ymy9nfu54HTv4vDDWBSC711PofSqFtN14YPGqo33jWutSyhMs6vKRIekMuKDwbX5HEdO9jY+FXm9DqIMbwl49W6Nq8Lh/yt+c+9jho3/aM2cGlaWvv6Oz6Y8K/RXdPb18/g8liW9vY2o0azbF3cHTi8pz5Lq4CN6H7mLHjBO1bmxDkYoM0ErDS67edw4SKjYexPvynHJ45h1ipRK77CLmx7LBVGBPeOtr1bzG+V9wqCMLVnpw27RQPr061mQrny4kSQd5WyHvsXnFPNnHGuw3mKZRKcjLYKAqeecwBt8H8hdblRbtPcGRulGY822AOa4p24WfegOuD9TMnpeXMRrTP/cjbrmxIbTxZyoCJveGW8lL1UsAR92CV1thaTixdSeRQUg09jSDlytfi5EaL53r4CxoHikdkWxUosQ1Crm+cQDgvLLVNoXOeLtd5RGl3oa5gQquXqdC+ATbDfaT+tBjyxdWvcIwYn/ATL7u27LJ90TSiWw4A") format("woff2"),url('+i(n(84))+') format("woff"),url('+i(n(85))+') format("truetype"),url('+i(n(86))+'#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-clear:before{content:"\\E6D1"}.icon-weibiaoti46:before{content:"\\E63C"}.icon-delete:before{content:"\\E616"}.icon-fabu:before{content:"\\E630"}.icon-qingkonghuishouzhan:before{content:"\\E642"}.icon-code:before{content:"\\E65B"}.icon-table:before{content:"\\E713"}.icon-diy-com-textarea:before{content:"\\E91F"}.icon-zidingyishuju:before{content:"\\E634"}.icon-json:before{content:"\\E7BD"}.icon-jilianxuanze:before{content:"\\E695"}.icon-icon_clone:before{content:"\\E606"}.icon-wenjianshangchuan:before{content:"\\E617"}.icon-fengexian:before{content:"\\E66E"}.icon-tupianyulan:before{content:"\\E67D"}.icon-time:before{content:"\\E600"}.icon-icon-test:before{content:"\\E605"}.icon-tupian:before{content:"\\E65E"}.icon-ad-icon-tooltip:before{content:"\\E63E"}.icon-check-box:before{content:"\\E60E"}.icon-switch:before{content:"\\E660"}.icon-pingfen:before{content:"\\E640"}.icon-input:before{content:"\\E6B2"}.icon-radio-active:before{content:"\\E615"}.icon-color:before{content:"\\E62F"}.icon-slider:before{content:"\\E60D"}.icon-icon_bars:before{content:"\\E7C4"}.icon-fuwenbenkuang:before{content:"\\E682"}.icon-date:before{content:"\\E69F"}.icon-ic:before{content:"\\E621"}.icon-trash:before{content:"\\E60F"}.icon-grid-:before{content:"\\E6AD"}.icon-drag:before{content:"\\E842"}.icon-shangchuan:before{content:"\\E645"}.icon-zhage:before{content:"\\E63F"}.icon-number:before{content:"\\E76B"}.icon-yulan:before{content:"\\E668"}.icon-select:before{content:"\\E920"}.icon-wenzishezhi-:before{content:"\\E67C"}.icon-pingfen1:before{content:"\\E661"}.icon-RectangleCopy:before{content:"\\E620"}.icon-sync1:before{content:"\\E631"}.icon-tabs:before{content:"\\E65F"}',""])},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e,n){t.exports=n.p+"iconfont.woff?34ea347599227d36d0c388a94b11d962"},function(t,e,n){t.exports=n.p+"iconfont.ttf?4d5a9051acd69e35962cffd5ac40e192"},function(t,e,n){t.exports=n.p+"iconfont.svg?f0e930efd6a945b510c009d8c52a4064"},function(t,e,n){var i=n(88);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("296b1462",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,".fm-style .el-radio+.el-radio{margin-left:0!important}.fm-style .el-radio{margin-right:30px}.fm-style .el-checkbox+.el-checkbox{margin-left:0!important}.fm-style .el-checkbox{margin-right:30px}.fm-style .el-form-item--small .el-radio{line-height:32px!important}.fm-style .el-form-item--small .el-rate{margin-top:6px}.fm-style .el-form-item--mini .el-radio{line-height:28px!important}.fm-style .el-form-item--mini .el-rate{margin-top:4px}.fm-style .el-form-item--medium .el-radio{line-height:36px!important}.fm-style .el-form-item--medium .el-rate{margin-top:8px}",""])},function(t,e,n){var i=n(90);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("4d4fe9d9",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,'.fm-style{height:100%}.fm-style *,.fm-style :after,.fm-style :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fm-style .fa-icon{width:auto;height:1em;max-width:100%;max-height:100%;vertical-align:middle}.fm-style .fm2-container{background:#fff;height:100%;border:1px solid #e0e0e0}.fm-style .fm2-container .el-container{height:100%!important}.fm-style .fm2-container>.el-container{background:#fff}.fm-style .fm2-container .fm2-main{position:relative}.fm-style .fm2-container .fm2-main>.el-container{position:absolute;top:0;bottom:0;left:0;right:0}.fm-style .fm2-container main{padding:0}.fm-style .fm2-container footer{height:30px;line-height:30px;border-top:1px solid #e0e0e0;font-size:12px;text-align:right;color:#409eff;background:#fafafa}.fm-style .fm2-container footer a{color:#409eff}.fm-style .center-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0}.fm-style .center-container .btn-bar{height:45px;line-height:45px;font-size:18px;border-bottom:2px solid #e4e7ed;text-align:right}.fm-style .center-container .el-main{padding:0;position:relative;background:#fafafa}.fm-style .components-list{padding:8px 0;width:100%;height:100%}.fm-style .components-list .widget-cate{padding:8px 12px;font-size:13px}.fm-style .components-list ul{position:relative;overflow:hidden;padding:0 10px 10px;margin:0}.fm-style .components-list .form-edit-widget-label{font-size:12px;display:block;width:48%;line-height:26px;position:relative;float:left;left:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:1%;color:#333;border:1px solid #f4f6fc}.fm-style .components-list .form-edit-widget-label:hover{color:#409eff;border:1px dashed #409eff}.fm-style .components-list .form-edit-widget-label>a{display:block;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc}.fm-style .components-list .form-edit-widget-label>a .icon{margin-right:6px;margin-left:8px;font-size:14px;display:inline-block;vertical-align:middle}.fm-style .components-list .form-edit-widget-label>a span{display:inline-block;vertical-align:middle}.fm-style .widget-form-container{position:absolute;top:0;left:0;right:0;bottom:0}.fm-style .widget-form-container .widget-form-list{background:#fff;border:1px dashed #999;min-height:600px;margin:10px}.fm-style .widget-form-container .widget-form-list .widget-col-list{min-height:50px;border:1px dashed #ccc;background:#fff}.fm-style .widget-form-container .widget-form-list .widget-view{padding-bottom:18px;position:relative;border:1px dashed hsla(0,0%,67%,.7);background-color:rgba(236,245,255,.3);margin:2px}.fm-style .widget-form-container .widget-form-list .widget-view .el-form-item__content{position:unset}.fm-style .widget-form-container .widget-form-list .widget-view.is_req .el-form-item__label:before{content:"*";color:#f56c6c;margin-right:4px}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-description{height:15px;line-height:15px;font-size:13px;margin-top:6px;color:#909399}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-action{position:absolute;right:0;bottom:0;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-action i{font-size:14px;color:#fff;margin:0 5px;cursor:pointer}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-drag{position:absolute;left:-2px;top:-2px;bottom:-18px;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-drag i{font-size:14px;color:#fff;margin:0 5px;cursor:move}.fm-style .widget-form-container .widget-form-list .widget-view:after{position:absolute;left:0;right:0;top:0;bottom:0;display:block}.fm-style .widget-form-container .widget-form-list .widget-view:hover{background:#ecf5ff;outline:1px solid #409eff;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-view:hover.active{outline:2px solid #409eff;border:1px solid #409eff;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-view:hover .widget-view-drag{display:block}.fm-style .widget-form-container .widget-form-list .widget-view.active{outline:2px solid #409eff;border:1px solid #409eff}.fm-style .widget-form-container .widget-form-list .widget-view.ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .widget-form-list .widget-table{padding-bottom:0;padding:5px;background-color:hsla(35,81%,96%,.3)}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper{min-height:50px;background:#fff;display:flex;justify-content:flex-start}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-row td{border-bottom:0}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-left{width:51px;border-left:1px solid #ebeef5;border-right:1px solid #ebeef5;border-top:1px solid #ebeef5;flex:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view{border:1px solid #ebeef5;width:200px;float:left;height:100%;position:relative;display:block}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .el-table{height:100%}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.is_req .el-form-item__label:before{content:"*";color:#f56c6c;margin-right:4px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-description{height:15px;line-height:15px;font-size:13px;margin-top:6px;color:#909399}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-action{position:absolute;right:0;bottom:0;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-action i{font-size:14px;color:#fff;margin:0 5px;cursor:pointer}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-drag{position:absolute;left:-2px;top:-2px;bottom:-18px;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-drag i{font-size:14px;color:#fff;margin:0 5px;cursor:move}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:after{position:absolute;left:0;right:0;top:0;bottom:0;display:block;content:""}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:before{display:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:hover{background:#ecf5ff;outline:1px solid #409eff;outline-offset:-1px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:hover.active{border:1px solid #409eff;outline:1px solid #409eff;outline-offset:-1px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:hover .widget-view-drag{display:block}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.active{outline:1px solid #409eff;border:1px solid #409eff;outline-offset:-1px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.ghost{background:#f56c6c;outline-width:0;width:5px!important;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0;position:relative;outline:none!important;border:0!important}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.ghost:after{background:#f56c6c;position:absolute;top:0;left:0;bottom:0;right:0;z-index:9999;content:"";outline:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content{width:100%;outline:1px dashed #ccc;background:#fff;flex:1;margin:0 1px;overflow:auto}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content .widget-table-col,.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content>div{height:100%}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content .widget-table-col .ghost{background:#f56c6c;position:relative;content:"";float:left;height:100%;width:5px!important;list-style:none;font-size:0;overflow:hidden;outline:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content .widget-table-col .ghost:after{background:#f56c6c;position:absolute;top:0;left:0;bottom:0;right:0;z-index:9999;content:"";outline:none}.fm-style .widget-form-container .widget-form-list .widget-table.active{outline:2px solid #e6a23c;border:1px solid #e6a23c}.fm-style .widget-form-container .widget-form-list .widget-table:hover{background:#fdf6ec;outline:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-table:hover.active{outline:2px solid #e6a23c;border:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-table .widget-view-action.widget-col-action,.fm-style .widget-form-container .widget-form-list .widget-table .widget-view-drag.widget-col-drag{background:#e6a23c}.fm-style .widget-form-container .widget-form-list .widget-table:after{display:none}.fm-style .widget-form-container .widget-form-list .widget-table.ghost{background:#f56c6c;outline-width:0;height:5px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0;position:relative;outline:none;border:0}.fm-style .widget-form-container .widget-form-list .widget-table.ghost:after{background:#f56c6c;position:absolute;top:0;left:0;right:0;bottom:0;content:"";display:block;z-index:999}.fm-style .widget-form-container .widget-form-list .widget-col{padding-bottom:0;padding:5px;background-color:hsla(35,81%,96%,.3)}.fm-style .widget-form-container .widget-form-list .widget-col.active{outline:2px solid #e6a23c;border:1px solid #e6a23c}.fm-style .widget-form-container .widget-form-list .widget-col:hover{background:#fdf6ec;outline:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-col:hover.active{outline:2px solid #e6a23c;border:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-col .el-col{min-height:50px}.fm-style .widget-form-container .widget-form-list .widget-col.ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .widget-form-list .widget-col .widget-view-action.widget-col-action,.fm-style .widget-form-container .widget-form-list .widget-col .widget-view-drag.widget-col-drag{background:#e6a23c}.fm-style .widget-form-container .widget-form-list .widget-col:after{display:none}.fm-style .widget-form-container .widget-form-list .ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .widget-grid{background:#f4f6fc;position:relative;border-left:5px solid transparent;padding:5px;margin:0!important}.fm-style .widget-form-container .widget-grid.active{border-left:5px solid #409eff;background:#b3d8ff}.fm-style .widget-form-container .widget-grid-container.ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .ghost{background:#f56c6c;border:2px solid #f56c6c;position:relative}.fm-style .widget-form-container .ghost:after{background:#f56c6c}.fm-style .widget-form-container li.ghost{height:5px;list-style:none;font-size:0;overflow:hidden}.fm-style .widget-config-container{position:relative}.fm-style .widget-config-container .el-header{border-bottom:2px solid #e4e7ed;padding:0 2px}.fm-style .widget-config-container .config-tab{height:45px;line-height:45px;display:inline-block;width:145px;text-align:center;font-size:14px;font-weight:500;position:relative;cursor:pointer}.fm-style .widget-config-container .config-tab.active{border-bottom:2px solid #409eff}.fm-style .widget-config-container .config-content{padding:10px}.fm-style .widget-config-container .config-content .el-form-item__label{padding:0;font-weight:500}.fm-style .widget-config-container .config-content .el-form-item{border-bottom:1px solid #e1e1e1;padding-bottom:10px}.fm-style .widget-config-container .config-content .config-pattern-input .el-input-group__append,.fm-style .widget-config-container .config-content .config-pattern-input .el-input-group__prepend{padding:0 8px}.fm-style .widget-config-container .ghost{background:#fff;border:1px dashed #409eff}.fm-style .widget-config-container .ghost:after{background:#fff;display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0}.fm-style .widget-config-container ul{margin:0;padding:0}.fm-style .widget-config-container li.ghost{list-style:none;font-size:0;display:block;position:relative}.fm-style .viewer-container{z-index:99999!important}.fm-style .form-empty{position:absolute;text-align:center;width:300px;font-size:20px;top:200px;left:50%;margin-left:-150px;color:#ccc}.fm-style .widget-empty{background-position:50%}',""])},function(t,e,n){"use strict";var i=n(18),o=n(145),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";/**!
2
- * Sortable 1.10.2
3
- * @author RubaXa <trash@rubaxa.org>
4
- * @author owenm <owen23355@gmail.com>
5
- * @license MIT
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tianheng-ui",[],t):"object"==typeof exports?exports["tianheng-ui"]=t():e["tianheng-ui"]=t()}(window,(function(){return t=[function(e,t,n){"use strict";var i,o=n(15),r=Object.prototype.toString,s=(i=Object.create(null),function(e){return e=r.call(e),i[e]||(i[e]=e.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function h(e){return"object"===s(e)&&(null===(e=Object.getPrototypeOf(e))||e===Object.prototype)}n=a("Date");var f=a("File"),p=a("Blob"),g=a("FileList");function m(e){return"[object Function]"===r.call(e)}var b,v=a("URLSearchParams");function y(e,t){if(null!=e)if(l(e="object"!=typeof e?[e]:e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||r.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:h,isUndefined:c,isDate:n,isFile:f,isBlob:p,isFunction:m,isStream:function(e){return d(e)&&m(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:y,merge:function e(){var t={};function n(n,i){h(t[i])&&h(n)?t[i]=e(t[i],n):h(n)?t[i]=e({},n):l(n)?t[i]=n.slice():t[i]=n}for(var i=0,o=arguments.length;i<o;i++)y(arguments[i],n);return t},extend:function(e,t,n){return y(t,(function(t,i){e[i]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)?e.slice(1):e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var i,o,r,s={};t=t||{};do{for(o=(i=Object.getOwnPropertyNames(e)).length;0<o--;)s[r=i[o]]||(t[r]=e[r],s[r]=!0)}while((e=Object.getPrototypeOf(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){return e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length,-1!==(e=e.indexOf(t,n))&&e===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},isTypedArray:function(e){return b&&e instanceof b},isFileList:g}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];return i?t&&"function"==typeof btoa?(e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})),[n].concat(t).concat([e]).join("\n")):[n].join("\n"):n}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},o=0;o<t.length;o++){var r=(s=t[o])[0],s={id:e+":"+o,css:s[1],media:s[2],sourceMap:s[3]};i[r]?i[r].parts.push(s):n.push(i[r]={id:r,parts:[s]})}return n}if(n.r(t),n.d(t,"default",(function(){return f})),n="undefined"!=typeof document,"undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");function o(){}var r={},s=n&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=null,d="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,o){c=n,u=o||{};var s=i(e,t);return p(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(l=r[a.id]).refs--,n.push(l)}t?p(s=i(e,t)):s=[];var l;for(o=0;o<n.length;o++)if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t],i=r[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(m(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(m(n.parts[o]));r[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function m(e){var t,n,i,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(c)return o;r.parentNode.removeChild(r)}return i=h?(t=l++,r=a=a||g(),n=v.bind(null,r,t,!1),v.bind(null,r,t,!0)):(r=g(),n=function(e,t){var n=t.css,i=t.media,o=t.sourceMap;if(i&&e.setAttribute("media",i),u.ssrId&&e.setAttribute(d,t.id),o&&(n=(n+="\n/*# sourceURL="+o.sources[0]+" */")+"\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),function(){r.parentNode.removeChild(r)}),n(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||n(e=t):i()}}b=[];var b;function v(e,t,n,i){n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=function(e,t){return b[e]=t,b.filter(Boolean).join("\n")}(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},function(e,t,n){(function(t){
2
+ /*!
3
+ * Quill Editor v1.3.7
4
+ * https://quilljs.com/
5
+ * Copyright (c) 2014, Jason Chen
6
+ * Copyright (c) 2013, salesforce.com
7
+ */
8
+ var n;n=function(){return n=[function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(18),r=n(19),s=n(45),a=n(46),l=n(47),c=n(48),u=n(49),d=n(12),h=n(32),f=n(33),p=n(31);n={Scope:(n=n(1)).Scope,create:n.create,find:n.find,query:n.query,register:n.register,Container:i.default,Format:o.default,Leaf:r.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:u.default,Attributor:{Attribute:d.default,Class:h.default,Style:f.default,Store:p.default}};t.default=n},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),r(a,o=Error),a);function a(e){var t=this;return(t=o.call(this,e="[Parchment] "+e)||this).message=e,t.name=t.constructor.name,t}t.ParchmentError=s;var l,c={},u={},d={},h={};function f(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=h[e]||c[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=h.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=h.block:e&l.LEVEL&l.INLINE&&(n=h.inline);else if(e instanceof HTMLElement){var i,o=(e.getAttribute("class")||"").split(/\s+/);for(i in o)if(n=u[o[i]])break;n=n||d[e.tagName]}return null!=n&&t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}t.DATA_KEY="__blot",(r=l=t.Scope||(t.Scope={}))[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",t.create=function(e,t){var n=f(e);if(null==n)throw new s("Unable to create "+e+" blot");return e=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t),new n(e,t)},t.find=function e(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:i?e(n.parentNode,i):null},t.query=f,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(1<t.length)return t.map((function(t){return e(t)}));var i=t[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new s("Invalid definition");if("abstract"===i.blotName)throw new s("Cannot register abstract class");return"string"==typeof(h[i.blotName||i.attrName]=i).keyName?c[i.keyName]=i:(null!=i.className&&(u[i.className]=i),null!=i.tagName&&(Array.isArray(i.tagName)?i.tagName=i.tagName.map((function(e){return e.toUpperCase()})):i.tagName=i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach((function(e){null!=d[e]&&null!=i.className||(d[e]=i)})))),i}},function(e,t,n){function i(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var o=n(51),r=n(11),s=n(3),a=n(20),l=String.fromCharCode(0);i.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&0<Object.keys(t).length&&(n.attributes=t),this.push(n))},i.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},i.prototype.retain=function(e,t){return e<=0?this:(e={retain:e},null!=t&&"object"==typeof t&&0<Object.keys(t).length&&(e.attributes=t),this.push(e))},i.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=s(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&"object"!=typeof(n=this.ops[--t-1]))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},i.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},i.prototype.filter=function(e){return this.ops.filter(e)},i.prototype.forEach=function(e){this.ops.forEach(e)},i.prototype.map=function(e){return this.ops.map(e)},i.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(i){(e(i)?t:n).push(i)})),[t,n]},i.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},i.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},i.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},i.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n,o=[],r=a.iterator(this.ops),s=0;s<t&&r.hasNext();)s<e?n=r.next(e-s):(n=r.next(t-s),o.push(n)),s+=a.length(n);return new i(o)},i.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[];if(null!=(e=n.peek())&&"number"==typeof e.retain&&null==e.attributes){for(var s=e.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),o.push(t.next());0<e.retain-s&&n.next(e.retain-s)}for(var l=new i(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),u=t.next(c),d=n.next(c);if("number"==typeof d.retain){var h={};if((c=("number"==typeof u.retain?h.retain=c:h.insert=u.insert,a.attributes.compose(u.attributes,d.attributes,"number"==typeof u.retain)))&&(h.attributes=c),l.push(h),!n.hasNext()&&r(l.ops[l.ops.length-1],h))return c=new i(t.rest()),l.concat(c).chop()}else"number"==typeof d.delete&&"number"==typeof u.retain&&l.push(d)}return l.chop()},i.prototype.concat=function(e){var t=new i(this.ops.slice());return 0<e.ops.length&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},i.prototype.diff=function(e,t){if(this.ops===e.ops)return new i;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),s=new i,c=(n=o(n[0],n[1],t),a.iterator(this.ops)),u=a.iterator(e.ops);return n.forEach((function(e){for(var t=e[1].length;0<t;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(u.peekLength(),t),s.push(u.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),s.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),u.peekLength(),t);var i=c.next(n),l=u.next(n);r(i.insert,l.insert)?s.retain(n,a.attributes.diff(i.attributes,l.attributes)):s.push(l).delete(n)}t-=n}})),s.chop()},i.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new i,r=0;n.hasNext();){if("insert"!==n.peekType())return;var s=n.peek(),l=a.length(s)-n.peekLength();if((s="string"==typeof s.insert?s.insert.indexOf(t,l)-l:-1)<0)o.push(n.next());else if(0<s)o.push(n.next(s));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new i}}0<o.length()&&e(o,{},r)},i.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n,o,r,s=a.iterator(this.ops),l=a.iterator(e.ops),c=new i;s.hasNext()||l.hasNext();)"insert"!==s.peekType()||!t&&"insert"===l.peekType()?"insert"===l.peekType()?c.push(l.next()):(n=Math.min(s.peekLength(),l.peekLength()),o=s.next(n),r=l.next(n),o.delete||(r.delete?c.push(r):c.retain(n,a.attributes.transform(o.attributes,r.attributes,t)))):c.retain(a.length(s.next()));return c.chop()},i.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),i=0;n.hasNext()&&i<=e;){var o=n.peekLength(),r=n.peekType();n.next(),"delete"===r?e-=Math.min(o,e-i):("insert"===r&&(i<e||!t)&&(e+=o),i+=o)}return e},e.exports=i},function(e,t){"use strict";function n(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function i(e){if(e&&"[object Object]"===a.call(e)){var t,n=s.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&s.call(e.constructor.prototype,"isPrototypeOf");if(!e.constructor||n||i){for(t in e);return void 0===t||s.call(e,t)}}}function o(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue}function r(e,t){if("__proto__"===t){if(!s.call(e,t))return;if(c)return c(e,t).value}return e[t]}var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;e.exports=function e(){var t,s,a,l,c,u=arguments[0],d=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},d=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});d<h;++d)if(null!=(t=arguments[d]))for(s in t)c=r(u,s),u!==(a=r(t,s))&&(f&&a&&(i(a)||(l=n(a)))?o(u,{name:s,newValue:e(f,c=l?(l=!1,c&&n(c)?c:[]):c&&i(c)?c:{},a)}):void 0!==a&&o(u,{name:s,newValue:a}));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?r(i,t,n):void 0}var s=d(n(3)),a=d(n(2)),l=d(n(0)),c=d(n(16)),u=d(n(6));n=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}p(m,l.default.Embed),i(m,[{key:"attach",value:function(){r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,s.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){null!=(e=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE))&&this.attributes.attribute(e,t)}},{key:"formatAt",value:function(e,t,n,i){this.format(n,i)}},{key:"insertAt",value:function(e,t,n){var i;"string"==typeof t&&t.endsWith("\n")?(i=l.default.create(b.blotName),this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,t.slice(0,-1))):r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,e,t,n)}}]);var g=m;function m(){return h(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}g.scope=l.default.Scope.BLOCK_BLOT,p(v,l.default.Block),i(v,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))}),new a.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,t){r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,e,t),this.cache={}}},{key:"formatAt",value:function(e,t,n,i){t<=0||(l.default.query(n,l.default.Scope.BLOCK)?e+t===this.length()&&this.format(n,i):r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,e,Math.min(t,this.length()-e-1),n,i),this.cache={})}},{key:"insertAt",value:function(e,t,n){if(null!=n)return r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,e,t,n);var i;0!==t.length&&(0<(t=(n=t.split("\n")).shift()).length&&(e<this.length()-1||null==this.children.tail?r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),t):this.children.tail.insertAt(this.children.tail.length(),t),this.cache={}),i=this,n.reduce((function(e,t){return(i=i.split(e,!0)).insertAt(0,t),t.length}),e+t.length))}},{key:"insertBefore",value:function(e,t){var n=this.children.head;r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,e,t),n instanceof c.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,t){r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"moveChildren",this).call(this,e,t),this.cache={}}},{key:"optimize",value:function(e){r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return n&&(0===e||e>=this.length()-1)?(t=this.clone(),0===e?(this.parent.insertBefore(t,this),this):(this.parent.insertBefore(t,this.next),t)):(t=r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"split",this).call(this,e,n),this.cache={},t)}}]);var b=v;function v(e){return h(this,v),(e=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,e))).cache={},e}function y(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,s.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:y(e.parent,t))}b.blotName="block",b.tagName="P",b.defaultChild="break",b.allowedChildren=[u.default,l.default.Embed,n.default],t.bubbleFormats=y,t.BlockEmbed=g,t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(50);var a=b(n(2)),l=b(n(14)),c=b(n(8)),u=b(n(9)),d=b(n(0)),h=n(15),f=b(h),p=b(n(3)),g=b(n(10)),m=b(n(34));function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,g.default)("quill"),w=(r(x,null,[{key:"debug",value:function(e){g.default.level(e=!0===e?"log":e)}},{key:"find",value:function(e){return e.__quill||d.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n,i=this,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];"string"!=typeof e?"string"==typeof(n=e.attrName||e.blotName)?this.register("formats/"+n,e,t):Object.keys(e).forEach((function(n){i.register(n,e[n],t)})):(null==this.imports[e]||o||y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?d.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register())}}]),r(x,[{key:"addContainer",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof e&&(t=e,(e=document.createElement("div")).classList.add(t)),this.container.insertBefore(e,n),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var i=this,r=C(e,t,n);r=o(r,4);return e=r[0],t=r[1],n=r[3],_.call(this,(function(){return i.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;return _.call(this,(function(){var i=n.getSelection(!0),o=new a.default;if(null!=i){if(d.default.query(e,d.default.Scope.BLOCK))o=n.editor.formatLine(i.index,i.length,v({},e,t));else{if(0===i.length)return n.selection.format(e,t),o;o=n.editor.formatText(i.index,i.length,v({},e,t))}n.setSelection(i,c.default.sources.SILENT)}return o}),i)}},{key:"formatLine",value:function(e,t,n,i,r){var s,a=this;n=C(e,t,n,i,r),i=o(n,4);return e=i[0],t=i[1],s=i[2],r=i[3],_.call(this,(function(){return a.editor.formatLine(e,t,s)}),r,e,0)}},{key:"formatText",value:function(e,t,n,i,r){var s,a=this;n=C(e,t,n,i,r),i=o(n,4);return e=i[0],t=i[1],s=i[2],r=i[3],_.call(this,(function(){return a.editor.formatText(e,t,s)}),r,e,0)}},{key:"getBounds",value:function(e){var t=void 0;t="number"==typeof e?this.selection.getBounds(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(e.index,e.length),e=this.container.getBoundingClientRect();return{bottom:t.bottom-e.top,height:t.height,left:t.left-e.left,right:t.right-e.left,top:t.top-e.top,width:t.width}}},{key:"getContents",value:function(){var e=C(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-t),t=(e=o(e,2))[0];e=e[1];return this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof e?this.editor.getFormat(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=C(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-t),t=(e=o(e,2))[0];e=e[1];return this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,t,n){var i=this,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:x.sources.API;return _.call(this,(function(){return i.editor.insertEmbed(e,t,n)}),o,e)}},{key:"insertText",value:function(e,t,n,i,r){var s,a=this;n=C(e,0,n,i,r),i=o(n,4);return e=i[0],s=i[2],r=i[3],_.call(this,(function(){return a.editor.insertText(e,t,s)}),r,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var i=this,r=C(e,t,n);r=o(r,4);return e=r[0],t=r[1],n=r[3],_.call(this,(function(){return i.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return _.call(this,(function(){e=new a.default(e);var n=t.getLength(),i=(n=t.editor.deleteText(0,n),t.editor.applyDelta(e)),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),n.compose(i)}),n)}},{key:"setSelection",value:function(e,t,n){var i;null==e?this.selection.setRange(null,t||x.sources.API):(i=C(e,t,n),e=(i=o(i,4))[0],t=i[1],n=i[3],this.selection.setRange(new h.Range(e,t),n),n!==c.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;e=(new a.default).insert(e);return this.setContents(e,t)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),x);function x(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=this,o=x;if(!(i instanceof o))throw new TypeError("Cannot call a class as a function");if(this.options=k(e,n),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",e);this.options.debug&&x.debug(this.options.debug),i=this.container.innerHTML.trim(),this.container.classList.add("ql-container"),this.container.innerHTML="",(this.container.__quill=this).root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new c.default,this.scroll=d.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(e){e===c.default.events.TEXT_CHANGE&&t.root.classList.toggle("ql-blank",t.editor.isBlank())})),this.emitter.on(c.default.events.SCROLL_UPDATE,(function(e,n){var i=t.selection.lastRange,o=i&&0===i.length?i.index:void 0;_.call(t,(function(){return t.editor.update(null,n,o)}),e)})),o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>"),this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}function k(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;[e=(0,p.default)(!0,{},t.theme.DEFAULTS),t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var n=Object.keys(e.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:n},e,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function _(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===c.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),r=this.editor.delta;e=e();return null!=o&&(!0===n&&(n=o.index),null==i?o=S(o,e,t):0!==i&&(o=S(o,n,i,t)),this.setSelection(o,c.default.sources.SILENT)),0<e.length()&&(n=[c.default.events.TEXT_CHANGE,e,r,t],(i=this.emitter).emit.apply(i,[c.default.events.EDITOR_CHANGE].concat(n)),t!==c.default.sources.SILENT&&(o=this.emitter).emit.apply(o,n)),e}function C(e,t,n,o,r){var s={};return"number"==typeof e.index&&"number"==typeof e.length?("number"!=typeof t&&(r=o,o=n,n=t),t=e.length,e=e.index):"number"!=typeof t&&(r=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":i(n))?(s=n,r=o):"string"==typeof n&&(null!=o?s[n]=o:r=n),[e,t,s,r=r||c.default.sources.API]}function S(e,t,n,i){if(null==e)return null;var r,s,l=void 0;return s=t instanceof a.default?(r=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,i!==c.default.sources.USER)})),l=(r=o(r,2))[0],r[1]):(r=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&i===c.default.sources.USER?e:0<=n?e+n:Math.max(t,e+n)})),l=(e=o(r,2))[0],e[1]),new h.Range(l,s-l)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=c.default.events,w.sources=c.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:d.default,"core/module":u.default,"core/theme":m.default},t.expandConfig=k,t.overload=C,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,n):void 0}var r=a(n(7)),s=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"formatAt",value:function(e,t,i,r){var a;n.compare(this.statics.blotName,i)<0&&s.default.query(i,s.default.Scope.BLOT)?(a=this.isolate(e,t),r&&a.wrap(i,r)):o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"formatAt",this).call(this,e,t,i,r)}},{key:"optimize",value:function(e){o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"optimize",this).call(this,e),this.parent instanceof n&&0<n.compare(this.statics.blotName,this.parent.statics.blotName)&&(e=this.parent.isolate(this.offset(),this.length()),this.moveChildren(e),e.wrap(this))}}],[{key:"compare",value:function(e,t){var i=n.order.indexOf(e),o=n.order.indexOf(t);return 0<=i||0<=o?i-o:e===t?0:e<t?-1:1}}]),n}(s.default.Inline)).allowedChildren=[n,s.default.Embed,r.default],n.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n}(((n=n=n(0))&&n.__esModule?n:{default:n}).default.Text),t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,n):void 0}var r=s(n(54));function s(e){return e&&e.__esModule?e:{default:e}}var a=(0,s(n(10)).default)("quill:events");(n=(["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){e.__quill&&e.__quill.emitter&&(e=e.__quill.emitter).handleDOM.apply(e,t)}))}))})),function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.listeners={},e.on("error",a.error),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"emit",value:function(){a.log.apply(a,arguments),o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.listeners[e.type]||[]).forEach((function(t){var i=t.node;t=t.handler;e.target!==i&&!i.contains(e.target)||t.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),n}(r.default))).events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},n.sources={API:"api",SILENT:"silent",USER:"user"},t.default=n},function(e,t,n){"use strict";function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,o=i;if(!(n instanceof o))throw new TypeError("Cannot call a class as a function");this.quill=e,this.options=t}Object.defineProperty(t,"__esModule",{value:!0}),i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],o="warn";function r(e){if(i.indexOf(e)<=i.indexOf(o)){for(var t,n=arguments.length,r=Array(1<n?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];(t=console)[e].apply(t,r)}}function s(e){return i.reduce((function(t,n){return t[n]=r.bind(console,n,e),t}),{})}r.level=s.level=function(e){o=e},t.default=s},function(e,t,n){var i=Array.prototype.slice,o=n(52),r=n(53),s=e.exports=function(e,t,n){if(n=n||{},e===t)return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return n.strict?e===t:e==t;var c,u,d=e,h=t,f=n;if(a(d)||a(h))return!1;if(d.prototype!==h.prototype)return!1;if(r(d))return!!r(h)&&(d=i.call(d),h=i.call(h),s(d,h,f));if(l(d)){if(!l(h))return!1;if(d.length!==h.length)return!1;for(c=0;c<d.length;c++)if(d[c]!==h[c])return!1;return!0}try{var p=o(d),g=o(h)}catch(e){return!1}if(p.length!=g.length)return!1;for(p.sort(),g.sort(),c=p.length-1;0<=c;c--)if(p[c]!=g[c])return!1;for(c=p.length-1;0<=c;c--)if(u=p[c],!s(d[u],h[u],f))return!1;return typeof d==typeof h};function a(e){return null==e}function l(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"function"==typeof e.copy&&"function"==typeof e.slice&&!(0<e.length&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);function o(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t,e=i.Scope.TYPE&i.Scope.ATTRIBUTE,null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|e:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}o.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},o.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},o.prototype.canAdd=function(e,t){return null!=i.query(e,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?-1<this.whitelist.indexOf(t.replace(/["']/g,"")):-1<this.whitelist.indexOf(t)))},o.prototype.remove=function(e){e.removeAttribute(this.keyName)},o.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?r(i,t,n):void 0}var s=d(n(2)),a=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function g(){return h(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}function m(){return h(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}p(g,c.default),(n=g).blotName="code",n.tagName="CODE",p(m,l.default),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(m,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return(t=t.endsWith("\n")?t.slice(0,-1):t).split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,t){var n;e===this.statics.blotName&&t||(n=this.descendant(u.default,this.length()-1),null!=(n=i(n,1)[0])&&n.deleteAt(n.length()-1,1),r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,e,t))}},{key:"formatAt",value:function(e,t,n,i){var o,r,s,l;0===t||null==a.default.query(n,a.default.Scope.BLOCK)||n===this.statics.blotName&&i===this.statics.formats(this.domNode)||(r=this.newlineIndex(e))<0||e+t<=r||(o=this.newlineIndex(e,!0)+1,l=(s=this.isolate(o,r=r-o+1)).next,s.format(n,i),l instanceof m&&l.formatAt(0,e-o+t-r,n,i))}},{key:"insertAt",value:function(e,t,n){null==n&&(n=this.descendant(u.default,e),n=(e=i(n,2))[0],e=e[1],n.insertAt(e,t))}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t;return 1<arguments.length&&void 0!==arguments[1]&&arguments[1]?this.domNode.textContent.slice(0,e).lastIndexOf("\n"):-1<(t=this.domNode.textContent.slice(e).indexOf("\n"))?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===t.statics.formats(t.domNode)&&(t.optimize(e),t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){return(e=r(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,e)).setAttribute("spellcheck",!1),e}},{key:"formats",value:function(){return!0}}]),(c=m).blotName="code-block",c.tagName="PRE",c.TAB=" ",t.Code=n,t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=b(n(2)),a=b(n(20)),l=b(n(0)),c=b(n(13)),u=b(n(24)),d=n(4),h=b(d),f=b(n(16)),p=b(n(21)),g=b(n(11)),m=b(n(3));function b(e){return e&&e.__esModule?e:{default:e}}var v=/^[ -~]*$/;(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)})(y,[{key:"applyDelta",value:function(e){var t=this,n=!1,r=(this.scroll.update(),this.scroll.length());return this.scroll.batchStart(),(e=e.reduce((function(e,t){var n;return 1===t.insert?(delete(n=(0,p.default)(t.attributes)).image,e.insert({image:t.attributes.image},n)):(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,p.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert?(n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.insert(n,t.attributes)):e.push(t))}),new s.default)).reduce((function(e,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var f=((f=s.insert).endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),r<=e&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f),t.scroll.line(e)),p=(f=o(f,2))[0],g=(f=f[1],(0,m.default)({},(0,d.bubbleFormats)(p)));p instanceof h.default&&(p=p.descendant(l.default.Leaf,f),f=o(p,1)[0],g=(0,m.default)(g,(0,d.bubbleFormats)(f))),u=a.default.attributes.diff(g,u)||{}}else if("object"===i(s.insert)){if(null==(p=Object.keys(s.insert)[0]))return e;t.scroll.insertAt(e,p,s.insert[p])}r+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(o){var r,s;null!=n.scroll.whitelist&&!n.scroll.whitelist[o]||(r=n.scroll.lines(e,Math.max(t,1)),s=t,r.forEach((function(t){var r,a,l=t.length();t instanceof c.default?(r=e-t.offset(n.scroll),a=t.newlineIndex(r+s)-r+1,t.formatAt(r,a,o,i[o])):t.format(o,i[o]),s-=l})))})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,p.default)(i)))}},{key:"formatText",value:function(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(o){n.scroll.formatAt(e,t,o,i[o])})),this.update((new s.default).retain(e).retain(t,(0,p.default)(i)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===t?this.scroll.path(e).forEach((function(e){(e=o(e,1)[0])instanceof h.default?n.push(e):e instanceof l.default.Leaf&&i.push(e)})):(n=this.scroll.lines(e,t),i=this.scroll.descendants(l.default.Leaf,e,t)),e=[n,i].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());0<Object.keys(t).length;){var n=e.shift();if(null==n)return t;t=function(e,t){return Object.keys(t).reduce((function(n,i){return null!=e[i]&&(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n}),{})}((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,e)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert((e=n,(n=t)in(t={})?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t)))}},{key:"insertText",value:function(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(i).forEach((function(o){n.scroll.formatAt(e,t.length,o,i[o])})),this.update((new s.default).retain(e).insert(t,(0,p.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&!(1<e.children.length)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),i=this.scroll.line(e+t),r=(i=o(i,2))[0],a=(i=i[1],0),l=new s.default;return null!=r&&(a=r instanceof c.default?r.newlineIndex(i)-i+1:r.length()-i,l=r.delta().slice(i,i+a-1).insert("\n")),r=this.getContents(e,t+a).diff((new s.default).insert(n).concat(l)),i=(new s.default).retain(e).concat(r),this.applyDelta(i)}},{key:"update",value:function(e){var t,n,i,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,a=this.delta;return 1===o.length&&"characterData"===o[0].type&&o[0].target.data.match(v)&&l.default.find(o[0].target)?(i=l.default.find(o[0].target),t=(0,d.bubbleFormats)(i),n=i.offset(this.scroll),o=o[0].oldValue.replace(u.default.CONTENTS,""),o=(new s.default).insert(o),i=(new s.default).insert(i.value()),e=(new s.default).retain(n).concat(o.diff(i,r)).reduce((function(e,n){return n.insert?e.insert(n.insert,t):e.push(n)}),new s.default),this.delta=a.compose(e)):(this.delta=this.getDelta(),e&&(0,g.default)(a.compose(e),this.delta)||(e=a.diff(this.delta,r))),e}}]),n=y;function y(e){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.scroll=e,this.delta=this.getDelta()}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=c(n(0)),s=c(n(21)),a=c(n(11)),l=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;d(this,h),this.index=e,this.length=t}var f=(0,c(n(10)).default)("quill:selection");(function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)})(p,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){var t;e.composing=!1,e.cursor.parent&&(t=e.cursor.restore())&&setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!r.default.query(e,r.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i,o=r.default.find(n.start.node,!1);if(null==o)return;o instanceof r.default.Leaf?(i=o.split(n.start.offset),o.parent.insertBefore(this.cursor,i)):o.insertBefore(this.cursor,n.start.node),this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length(),o=(n=(e=Math.min(e,n-1),void(t=Math.min(e+t,n-1)-e)),this.scroll.leaf(e)),r=(o=i(o,2))[0];o=o[1];if(null==r)return null;var s=r.position(o,!0);n=(s=i(s,2))[0],o=s[1],s=document.createRange();if(0<t){s.setStart(n,o);e=this.scroll.leaf(e+t),r=(t=i(e,2))[0],o=t[1];return null==r?null:(e=r.position(o,!0),n=(t=i(e,2))[0],o=t[1],s.setEnd(n,o),s.getBoundingClientRect())}return e="left",t=void 0,n instanceof Text?(o<n.data.length?(s.setStart(n,o),s.setEnd(n,o+1)):(s.setStart(n,o-1),s.setEnd(n,o),e="right"),t=s.getBoundingClientRect()):(t=r.domNode.getBoundingClientRect(),0<o&&(e="right")),{bottom:t.top+t.height,height:t.height,left:t[e],right:t[e],top:t.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();return null==e||e.rangeCount<=0||null==(e=e.getRangeAt(0))?null:(e=this.normalizeNative(e),f.info("getNativeRange",e),e)}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]),e=n.map((function(e){var n=(e=i(e,2))[0],o=(e=e[1],r.default.find(n,!0)),s=o.offset(t.scroll);return 0===e?s:o instanceof r.default.Container?s+o.length():s+o.index(n,e)})),n=Math.min(Math.max.apply(Math,u(e)),this.scroll.length()-1);return new h(e=Math.min.apply(Math,[n].concat(u(e))),n-e)}},{key:"normalizeNative",value:function(e){return g(this.root,e.startContainer)&&(e.collapsed||g(this.root,e.endContainer))?([(e={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e}).start,e.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&0<t.childNodes.length;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),e):null}},{key:"rangeToNative",value:function(e){var t=this,n=(e=e.collapsed?[e.index]:[e.index,e.index+e.length],[]),o=this.scroll.length();return e.forEach((function(e,r){e=Math.min(o-1,e);e=t.scroll.leaf(e);var s=(e=i(e,2))[0];e=e[1],s=s.position(e,0!==r),s=(r=i(s,2))[0],e=r[1];n.push(s,e)})),n=n.length<2?n.concat(n):n}},{key:"scrollIntoView",value:function(e){var t,n,o,r,s=this.lastRange;null!=s&&null!=(t=this.getBounds(s.index,s.length))&&(r=this.scroll.length()-1,n=this.scroll.line(Math.min(s.index,r)),o=n=i(n,1)[0],0<s.length&&(s=this.scroll.line(Math.min(s.index+s.length,r)),o=i(s,1)[0]),null!=n&&null!=o&&(r=e.getBoundingClientRect(),t.top<r.top?e.scrollTop-=r.top-t.top:t.bottom>r.bottom&&(e.scrollTop+=t.bottom-r.bottom)))}},{key:"setNativeRange",value:function(e,t){var n,i,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:t,s=4<arguments.length&&void 0!==arguments[4]&&arguments[4];f.info("setNativeRange",e,t,o,r),null!=e&&(null==this.root.parentNode||null==e.parentNode||null==o.parentNode)||null!=(n=document.getSelection())&&(null!=e?(this.hasFocus()||this.root.focus(),null!=(i=(this.getNativeRange()||{}).native)&&!s&&e===i.startContainer&&t===i.startOffset&&o===i.endContainer&&r===i.endOffset||("BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==o.tagName&&(r=[].indexOf.call(o.parentNode.childNodes,o),o=o.parentNode),(s=document.createRange()).setStart(e,t),s.setEnd(o,r),n.removeAllRanges(),n.addRange(s))):(n.removeAllRanges(),this.root.blur(),document.body.focus()))}},{key:"setRange",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;"string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e?(e=this.rangeToNative(e),this.setNativeRange.apply(this,u(e).concat([t]))):this.setNativeRange(null),this.update(n)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),o=(n=i(n,2))[0];n=n[1];this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),(0,a.default)(t,this.lastRange)||(!this.composing&&null!=n&&n.native.collapsed&&n.start.node!==this.cursor.textNode&&this.cursor.restore(),o=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e],(n=this.emitter).emit.apply(n,[l.default.events.EDITOR_CHANGE].concat(o)),e!==l.default.sources.SILENT&&(t=this.emitter).emit.apply(t,o))}}]),n=p;function p(e,t){var n=this;d(this,p),this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&0<t.length()&&n.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){var e;!n.hasFocus()||null!=(e=n.getNativeRange())&&e.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){var i,o,r;t.range&&(i=(t=t.range).startNode,o=t.startOffset,r=t.endNode,t=t.endOffset,n.setNativeRange(i,o,r,t))})),this.update(l.default.sources.SILENT)}function g(e,t){try{t.parentNode}catch(e){return}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=h,t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"insertInto",value:function(e,t){0===e.children.length?function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"insertInto",this).call(this,e,t):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),n}(((n=n=n(0))&&n.__esModule?n:{default:n}).default.Embed)).blotName="break",n.tagName="BR",t.default=n},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(44)),a=n(30),l=n(1);r(c,o=a.default),c.prototype.appendChild=function(e){this.insertBefore(e)},c.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},c.prototype.build=function(){var e=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(t){if(t instanceof l.ParchmentError)return;throw t}}))},c.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},c.prototype.descendant=function(e,t){var n=(t=this.children.find(t))[0];t=t[1];return null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e?[n,t]:n instanceof c?n.descendant(e,t):[null,-1]},c.prototype.descendants=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=Number.MAX_VALUE);var i=[],o=n;return this.children.forEachAt(t,n,(function(t,n,r){(null==e.blotName&&e(t)||null!=e.blotName&&t instanceof e)&&i.push(t),t instanceof c&&(i=i.concat(t.descendants(e,n,o))),o-=r})),i},c.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),o.prototype.detach.call(this)},c.prototype.formatAt=function(e,t,n,i){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,i)}))},c.prototype.insertAt=function(e,t,n){var i=(e=this.children.find(e))[0];e=e[1];i?i.insertAt(e,t,n):(i=null==n?l.create("text",t):l.create(t,n),this.appendChild(i))},c.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},c.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},c.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},c.prototype.optimize=function(e){var t;o.prototype.optimize.call(this,e),0===this.children.length&&(null!=this.statics.defaultChild?(t=l.create(this.statics.defaultChild),this.appendChild(t),t.optimize(e)):this.remove())},c.prototype.path=function(e,t){var n=(i=this.children.find(e,t=void 0!==t&&t))[0],i=i[1];e=[[this,e]];return n instanceof c?e.concat(n.path(i,t)):(null!=n&&e.push([n,i]),e)},c.prototype.removeChild=function(e){this.children.remove(e)},c.prototype.replace=function(e){e instanceof c&&e.moveChildren(this),o.prototype.replace.call(this,e)},c.prototype.split=function(e,t){if(!(t=void 0!==t&&t)){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,i,o){e=e.split(i,t),n.appendChild(e)})),n},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(e,t){var n=this,i=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY||null==(e=l.find(e))||null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach()})),i.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;(e=(null!=e.nextSibling&&(t=l.find(e.nextSibling)),u(e))).next==t&&null!=e.next||(null!=e.parent&&e.parent.removeChild(n),n.insertBefore(e,t||void 0))}))},n=c;function c(e){return(e=o.call(this,e)||this).build(),e}function u(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=n},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(12)),a=n(31),l=n(17),c=n(1);r(u,o=l.default),u.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},u.prototype.format=function(e,t){var n=c.query(e);n instanceof s.default?this.attributes.attribute(n,t):!t||null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t)},u.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},u.prototype.replaceWith=function(e,t){return e=o.prototype.replaceWith.call(this,e,t),this.attributes.copy(e),e},u.prototype.update=function(e,t){var n=this;o.prototype.update.call(this,e,t),e.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},u.prototype.wrap=function(e,t){return(e=o.prototype.wrap.call(this,e,t))instanceof u&&e.statics.scope===this.statics.scope&&this.attributes.move(e),e},n=u;function u(e){return(e=o.call(this,e)||this).attributes=new a.default(e.domNode),e}t.default=n},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(30));n=n(1),r(a,o=s.default),a.value=function(e){return!0},a.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},a.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return 0<e&&(n+=1),[this.parent.domNode,n]},a.prototype.value=function(){var e={};return e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},a.scope=n.Scope.INLINE_BLOT,s=a;function a(){return null!==o&&o.apply(this,arguments)||this}t.default=s},function(e,t,n){var i=n(11),o=n(3),r={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={});var i,r=o(!0,{},t="object"!=typeof t?{}:t);for(i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return 0<Object.keys(r).length?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return i(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return 0<Object.keys(n).length?n:void 0},transform:function(e,t,n){return"object"!=typeof e?t:"object"==typeof t?n?(n=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{}),0<Object.keys(n).length?n:void 0):t:void 0}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e=e||1/0;var t,n,i=this.ops[this.index];return i?(t=this.offset,(n=r.length(i))-t<=e?(e=n-t,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof i.delete?{delete:e}:(n={},i.attributes&&(n.attributes=i.attributes),"number"==typeof i.retain?n.retain=e:"string"==typeof i.insert?n.insert=i.insert.substr(t,e):n.insert=i.insert,n)):{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){var e,t,n,i;return this.hasNext()?0===this.offset?this.ops.slice(this.index):(e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index),this.offset=e,this.index=t,[n].concat(i)):[]},e.exports=r},function(e,n){var i=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,i,o;try{n=Map}catch(e){n=function(){}}try{i=Set}catch(e){i=function(){}}try{o=Promise}catch(e){o=function(){}}function r(s,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var h=[],f=[],p=void 0!==t;return void 0===l&&(l=!0),function s(c,g){if(null===c)return null;if(0===g)return c;var m,b,v;if("object"!=typeof c)return c;if(e(c,n))m=new n;else if(e(c,i))m=new i;else if(e(c,o))m=new o((function(e,t){c.then((function(t){e(s(t,g-1))}),(function(e){t(s(e,g-1))}))}));else if(r.__isArray(c))m=[];else if(r.__isRegExp(c))m=new RegExp(c.source,a(c)),c.lastIndex&&(m.lastIndex=c.lastIndex);else if(r.__isDate(c))m=new Date(c.getTime());else{if(p&&t.isBuffer(c))return m=t.allocUnsafe?t.allocUnsafe(c.length):new t(c.length),c.copy(m),m;e(c,Error)?m=Object.create(c):void 0===u?(b=Object.getPrototypeOf(c),m=Object.create(b)):(m=Object.create(u),b=u)}if(l){var y=h.indexOf(c);if(-1!=y)return f[y];h.push(c),f.push(m)}for(x in e(c,n)&&c.forEach((function(e,t){t=s(t,g-1),e=s(e,g-1),m.set(t,e)})),e(c,i)&&c.forEach((function(e){e=s(e,g-1),m.add(e)})),c)(v=b?Object.getOwnPropertyDescriptor(b,x):v)&&null==v.set||(m[x]=s(c[x],g-1));if(Object.getOwnPropertySymbols)for(var w=Object.getOwnPropertySymbols(c),x=0;x<w.length;x++){var k=w[x];(C=Object.getOwnPropertyDescriptor(c,k))&&!C.enumerable&&!d||(m[k]=s(c[k],g-1),C.enumerable||Object.defineProperty(m,k,{enumerable:!1}))}if(d){var _=Object.getOwnPropertyNames(c);for(x=0;x<_.length;x++){var C,S=_[x];(C=Object.getOwnPropertyDescriptor(c,S))&&C.enumerable||(m[S]=s(c[S],g-1),Object.defineProperty(m,S,{enumerable:!1}))}}return m}(s,c=void 0===c?1/0:c)}function s(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;function t(){}return t.prototype=e,new t},r.__objToStr=s,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===s(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===s(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===s(e)},r.__getRegExpFlags=a,r}();"object"==typeof e&&e.exports&&(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?r(i,t,n):void 0}var s=h(n(0)),a=h(n(8)),l=n(4),c=h(l),u=h(n(16)),d=h(n(13));n=h(n(25));function h(e){return e&&e.__esModule?e:{default:e}}function f(e){return e instanceof c.default||e instanceof l.BlockEmbed}var p=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).emitter=t.emitter,Array.isArray(t.whitelist)&&(e.whitelist=t.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),e.domNode.addEventListener("DOMNodeInserted",(function(){})),e.optimize(),e.enable(),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(n,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,t){var o=this.line(e),s=(o=i(o,2))[0],a=(o=o[1],this.line(e+t));a=i(a,1)[0];if(r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"deleteAt",this).call(this,e,t),null!=a&&s!==a&&0<o){if(s instanceof l.BlockEmbed||a instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){if(-1<(e=s.newlineIndex(s.length(),!0))&&(s=s.split(e+1))===a)return void this.optimize()}else a instanceof d.default&&-1<(t=a.newlineIndex(0))&&a.split(t+1);o=a.children.head instanceof u.default?null:a.children.head,s.moveChildren(a,o),s.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(0<arguments.length&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(e,t,i,o){null!=this.whitelist&&!this.whitelist[i]||(r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"formatAt",this).call(this,e,t,i,o),this.optimize())}},{key:"insertAt",value:function(e,t,i){var o;null!=i&&null!=this.whitelist&&!this.whitelist[t]||(e>=this.length()?null==i||null==s.default.query(t,s.default.Scope.BLOCK)?(o=s.default.create(this.statics.defaultChild),this.appendChild(o),null==i&&t.endsWith("\n")&&(t=t.slice(0,-1)),o.insertAt(0,t,i)):(o=s.default.create(t,i),this.appendChild(o)):r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"insertAt",this).call(this,e,t,i),this.optimize())}},{key:"insertBefore",value:function(e,t){var i;e.statics.scope===s.default.Scope.INLINE_BLOT&&((i=s.default.create(this.statics.defaultChild)).appendChild(e),e=i),r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"insertBefore",this).call(this,e,t)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(f,e)}},{key:"lines",value:function(){return function e(t,n,i){var o=[],r=i;return t.children.forEachAt(n,i,(function(t,n,i){f(t)?o.push(t):t instanceof s.default.Container&&(o=o.concat(e(t,n,r))),r-=i})),o}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"optimize",this).call(this,e,t),0<e.length&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,t))}},{key:"path",value:function(e){return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){var t;!0!==this.batch&&(t=a.default.sources.USER,"string"==typeof e&&(t=e),0<(e=Array.isArray(e)?e:this.observer.takeRecords()).length&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,t,e),r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"update",this).call(this,e.concat([])),0<e.length&&this.emitter.emit(a.default.events.SCROLL_UPDATE,t,e))}}]),n}(s.default.Scroll);p.blotName="scroll",p.className="ql-editor",p.tagName="DIV",p.defaultChild="block",p.allowedChildren=[c.default,l.BlockEmbed,n.default],t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=g(n(21)),l=g(n(11)),c=g(n(3)),u=g(n(2)),d=g(n(20)),h=g(n(0)),f=g(n(5)),p=g(n(10));n=g(n(9));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var b=(0,p.default)("quill:keyboard"),v=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return i.bindings={},Object.keys(i.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&i.options.bindings[t]&&i.addBinding(i.options.bindings[t])})),i.addBinding({key:n.keys.ENTER,shiftKey:null},C),i.addBinding({key:n.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:n.keys.BACKSPACE},{collapsed:!0},x),i.addBinding({key:n.keys.DELETE},{collapsed:!0},k)):(i.addBinding({key:n.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),i.addBinding({key:n.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),i.addBinding({key:n.keys.BACKSPACE},{collapsed:!1},_),i.addBinding({key:n.keys.DELETE},{collapsed:!1},_),i.addBinding({key:n.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),i.listen(),i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,null,[{key:"match",value:function(e,t){return t=E(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),r(n,[{key:"addBinding",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(null==(e=E(e))||null==e.key)return b.warn("Attempted to add invalid keyboard binding",e);e=(0,c.default)(e,t="function"==typeof t?{handler:t}:t,n="function"==typeof n?{handler:n}:n),this.bindings[e.key]=this.bindings[e.key]||[],this.bindings[e.key].push(e)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(t){var r,s,a,c,u,d,f,p,g;t.defaultPrevented||(r=t.which||t.keyCode,0!==(r=(e.bindings[r]||[]).filter((function(e){return n.match(t,e)}))).length&&null!=(s=e.quill.getSelection())&&e.quill.hasFocus()&&(c=e.quill.getLine(s.index),a=(c=o(c,2))[0],c=c[1],p=e.quill.getLeaf(s.index),f=(p=o(p,2))[0],p=p[1],d=0===s.length?[f,p]:e.quill.getLeaf(s.index+s.length),u=(d=o(d,2))[0],d=d[1],f=f instanceof h.default.Text?f.value().slice(0,p):"",p=u instanceof h.default.Text?u.value().slice(d):"",g={collapsed:0===s.length,empty:0===s.length&&a.length()<=1,format:e.quill.getFormat(s),offset:c,prefix:f,suffix:p},r.some((function(t){if(null!=t.collapsed&&t.collapsed!==g.collapsed)return!1;if(null!=t.empty&&t.empty!==g.empty)return!1;if(null!=t.offset&&t.offset!==g.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==g.format[e]})))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=g.format[e]:!1===t.format[e]?null==g.format[e]:(0,l.default)(t.format[e],g.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(g.prefix)||null!=t.suffix&&!t.suffix.test(g.suffix)||!0===t.handler.call(e,s,g))}))&&t.preventDefault()))}))}}]),n}(n.default);function w(e,t){var n=e===y.keys.LEFT?"prefix":"suffix",i={key:e,shiftKey:t,altKey:null};return m(i,n,/^$/),m(i,"handler",(function(n){var i=n.index;e===y.keys.RIGHT&&(i+=n.length+1),i=this.quill.getLeaf(i);return!(o(i,1)[0]instanceof h.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),i}function x(e,t){var n,i,r;0===e.index||this.quill.getLength()<=1||(n=this.quill.getLine(e.index),n=o(n,1)[0],i={},0===t.offset&&(r=this.quill.getLine(e.index-1),null!=(r=o(r,1)[0])&&1<r.length()&&(r=n.formats(),n=this.quill.getFormat(e.index-1,1),i=d.default.attributes.diff(r,n)||{})),r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1,this.quill.deleteText(e.index-r,r,f.default.sources.USER),0<Object.keys(i).length&&this.quill.formatLine(e.index-r,r,i,f.default.sources.USER),this.quill.focus())}function k(e,t){var n,i,r,s,a=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;e.index>=this.quill.getLength()-a||(r={},s=0,n=this.quill.getLine(e.index),n=o(n,1)[0],t.offset>=n.length()-1&&(t=this.quill.getLine(e.index+1),(t=o(t,1)[0])&&(n=n.formats(),i=this.quill.getFormat(e.index,1),r=d.default.attributes.diff(n,i)||{},s=t.length())),this.quill.deleteText(e.index,a,f.default.sources.USER),0<Object.keys(r).length&&this.quill.formatLine(e.index+s-1,a,r,f.default.sources.USER))}function _(e){var t,n=this.quill.getLines(e),i={};1<n.length&&(t=n[0].formats(),n=n[n.length-1].formats(),i=d.default.attributes.diff(n,t)||{}),this.quill.deleteText(e,f.default.sources.USER),0<Object.keys(i).length&&this.quill.formatLine(e.index,1,i,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function C(e,t){var n=this,i=(0<e.length&&this.quill.scroll.deleteAt(e.index,e.length),Object.keys(t.format).reduce((function(e,n){return h.default.query(n,h.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{}));this.quill.insertText(e.index,"\n",i,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null!=i[e]||Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER)}))}function S(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n,i=h.default.query("code-block"),r=t.index,s=t.length,a=(t=this.quill.scroll.descendant(i,r),(t=o(t,2))[0]),l=t[1];null!=a&&(t=this.quill.getIndex(a),n=a.newlineIndex(l,!0)+1,t=a.newlineIndex(t+l+s),t=a.domNode.textContent.slice(n,t).split("\n"),l=0,t.forEach((function(t,o){e?(a.insertAt(n+l,i.TAB),l+=i.TAB.length,0===o?r+=i.TAB.length:s+=i.TAB.length):t.startsWith(i.TAB)&&(a.deleteAt(n+l,i.TAB.length),l-=i.TAB.length,0===o?r-=i.TAB.length:s-=i.TAB.length),l+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,s,f.default.sources.SILENT))}}}function A(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function E(e){if("string"==typeof e||"number"==typeof e)return E({key:e});if("string"==typeof(e="object"===(void 0===e?"undefined":i(e))?(0,a.default)(e,!1):e).key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:A("bold"),italic:A("italic"),underline:A("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=(t=o(t,2))[0],i=(t=t[1],(0,c.default)({},n.formats(),{list:"checked"}));i=(new u.default).retain(e.index).insert("\n",i).retain(n.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),i=(n=o(n,2))[0];n=n[1],t=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-n-1).retain(1,{header:null});this.quill.updateContents(t,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,i=this.quill.getLine(e.index),r=(i=o(i,2))[0];if(n<(i=i[1]))return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff(),t=(new u.default).retain(e.index-i).delete(n+1).retain(r.length()-2-i).retain(1,{list:s}),this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=(t=o(t,2))[0];t=t[1],e=(new u.default).retain(e.index+n.length()-t-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(e,f.default.sources.USER)}},"embed left":w(y.keys.LEFT,!1),"embed left shift":w(y.keys.LEFT,!0),"embed right":w(y.keys.RIGHT,!1),"embed right shift":w(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=v},function(e,t,n){"use strict";function i(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(e))?i(o,t,n):void 0}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).selection=t,e.textNode=document.createTextNode(n.CONTENTS),e.domNode.appendChild(e.textNode),e._length=0,e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,null,[{key:"value",value:function(){}}]),o(n,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,t){if(0!==this._length)return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,e,t);for(var o=this,r=0;null!=o&&o.statics.scope!==s.default.Scope.BLOCK_BLOT;)r+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=n.CONTENTS.length,o.optimize(),o.formatAt(r,n.CONTENTS.length,e,t),this._length=0)}},{key:"index",value:function(e,t){return e===this.textNode?0:i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,e,t)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,t=this.selection.getNativeRange(),i=void 0,o=void 0,r=void 0;for(null!=t&&t.start.node===e&&t.end.node===e&&(e=[e,t.start.offset,t.end.offset],i=e[0],o=e[1],r=e[2]);null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);return this.textNode.data!==n.CONTENTS&&(t=this.textNode.data.split(n.CONTENTS).join(""),this.next instanceof a.default?(i=this.next.domNode,this.next.insertAt(0,t),this.textNode.data=n.CONTENTS):(this.textNode.data=t,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(n.CONTENTS),this.domNode.appendChild(this.textNode))),this.remove(),null!=o?(e=[o,r].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),o=(t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2))[0],r=t[1],{startNode:i,startOffset:o,endNode:i,endOffset:r}):void 0}}},{key:"update",value:function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))&&(e=this.restore())&&(t.range=e)}},{key:"value",value:function(){return""}}]),n}(s.default.Embed)).blotName="cursor",n.className="ql-cursor",n.tagName="span",n.CONTENTS="\ufeff",t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),o=r(n=n(4));function r(e){return e&&e.__esModule?e:{default:e}}(i=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n}(i.default.Container)).allowedChildren=[o.default,n.BlockEmbed,i],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"value",value:function(e){return(e=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"value",this).call(this,e)).startsWith("rgb(")?"#"+(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):e}}]),n}((n=(n=n=n(0))&&n.__esModule?n:{default:n}).default.Attributor.Style),r=new n.default.Attributor.Class("color","ql-color",{scope:n.default.Scope.INLINE});n=new o("color","color",{scope:n.default.Scope.INLINE});t.ColorAttributor=o,t.ColorClass=r,t.ColorStyle=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,n):void 0}function r(e,t){var n=document.createElement("a");n.href=e,e=n.href.slice(0,n.href.indexOf(":"));return-1<t.indexOf(e)}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"format",value:function(e,t){if(e!==this.statics.blotName||!t)return o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,e,t);t=this.constructor.sanitize(t),this.domNode.setAttribute("href",t)}}],[{key:"create",value:function(e){var t=o(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,e);return e=this.sanitize(e),t.setAttribute("href",e),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return r(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),n}(((n=n=n(6))&&n.__esModule?n:{default:n}).default)).blotName="link",n.tagName="A",n.SANITIZED_URL="about:blank",n.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=n,t.sanitize=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=a(n(23)),s=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}function u(e){var t=this;if(!(this instanceof u))throw new TypeError("Cannot call a class as a function");this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){t.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case r.default.keys.ENTER:t.togglePicker();break;case r.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}!function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(u,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case r.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case r.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var i=e.buildItem(n);t.appendChild(i),!0===n.selected&&e.selectItem(i)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&("function"==typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"==typeof Event?"undefined":i(Event))&&((n=document.createEvent("Event")).initEvent("change",!0,!0),this.select.dispatchEvent(n)),this.close())))}},{key:"update",value:function(){var e=void 0,t=(-1<this.select.selectedIndex?(t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex],e=this.select.options[this.select.selectedIndex],this.selectItem(t)):this.selectItem(null),null!=e&&e!==this.select.querySelector("option[selected]"));this.label.classList.toggle("ql-active",t)}}]),n=u,t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=m(n(0)),o=m(n(5)),r=n(4),s=m(r),a=m(n(16)),l=m(n(25)),c=m(n(24)),u=m(n(35)),d=m(n(6)),h=m(n(22)),f=m(n(7)),p=m(n(55)),g=m(n(42));n=m(n(23));function m(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":s.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":f.default,"modules/clipboard":p.default,"modules/history":g.default,"modules/keyboard":n.default}),i.default.register(s.default,a.default,c.default,d.default,h.default,f.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);function o(e){this.domNode=e,this.domNode[i.DATA_KEY]={blot:this}}Object.defineProperty(o.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),o.create=function(e){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");return e=Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),"number"==typeof e?document.createElement(this.tagName[e-1]):-1<this.tagName.indexOf(e)?document.createElement(e):document.createElement(this.tagName[0])):document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},o.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},o.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return i.create(e)},o.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},o.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},o.prototype.formatAt=function(e,t,n,o){e=this.isolate(e,t),null!=i.query(n,i.Scope.BLOT)&&o?e.wrap(n,o):null!=i.query(n,i.Scope.ATTRIBUTE)&&(t=i.create(this.statics.scope),e.wrap(t),t.format(n,o))},o.prototype.insertAt=function(e,t,n){t=null==n?i.create("text",t):i.create(t,n),n=this.split(e),this.parent.insertBefore(t,n)},o.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},o.prototype.isolate=function(e,t){return(e=this.split(e)).split(t),e},o.prototype.length=function(){return 1},o.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},o.prototype.optimize=function(e){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},o.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},o.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},o.prototype.replaceWith=function(e,t){return(t="string"==typeof e?i.create(e,t):e).replace(this),t},o.prototype.split=function(e,t){return 0===e?this:this.next},o.prototype.update=function(e,t){},o.prototype.wrap=function(e,t){return t="string"==typeof e?i.create(e,t):e,null!=this.parent&&this.parent.insertBefore(t,this.next),t.appendChild(this),t},o.blotName="abstract",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(32),r=n(33),s=n(1);function a(e){this.attributes={},this.domNode=e,this.build()}a.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},a.prototype.build=function(){var e=this,t=(this.attributes={},i.default.keys(this.domNode)),n=o.default.keys(this.domNode),a=r.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){(t=s.query(t,s.Scope.ATTRIBUTE))instanceof i.default&&(e.attributes[t.attrName]=t)}))},a.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var i=t.attributes[n].value(t.domNode);e.format(n,i)}))},a.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},a.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},t.default=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),n=n(12);function r(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}o(a,s=n.default),a.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},a.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},a.prototype.remove=function(e){r(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},a.prototype.value=function(e){var t=(r(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""};var s;n=a;function a(){return null!==s&&s.apply(this,arguments)||this}t.default=n},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),n=n(12);function r(e){var t=(e=e.split("-")).slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return e[0]+t}o(a,s=n.default),a.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},a.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[r(this.keyName)]=t,!0)},a.prototype.remove=function(e){e.style[r(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},a.prototype.value=function(e){var t=e.style[r(this.keyName)];return this.canAdd(e,t)?t:""};var s;n=a;function a(){return null!==s&&s.apply(this,arguments)||this}t.default=n},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t)}(r,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]);var o=r;function r(e,t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.quill=e,this.options=t,this.modules={}}o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=s(n(0)),r=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var a="\ufeff";n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.contentNode=document.createElement("span"),t.contentNode.setAttribute("contenteditable",!1),[].slice.call(t.domNode.childNodes).forEach((function(e){t.contentNode.appendChild(e)})),t.leftGuard=document.createTextNode(a),t.rightGuard=document.createTextNode(a),t.domNode.appendChild(t.leftGuard),t.domNode.appendChild(t.contentNode),t.domNode.appendChild(t.rightGuard),t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"index",value:function(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,e,t)}},{key:"restore",value:function(e){var t,n=void 0,i=void 0,s=e.data.split(a).join("");return e===this.leftGuard?n=this.prev instanceof r.default?(t=this.prev.length(),this.prev.insertAt(t,s),{startNode:this.prev.domNode,startOffset:t+s.length}):(i=document.createTextNode(s),this.parent.insertBefore(o.default.create(i),this),{startNode:i,startOffset:s.length}):e===this.rightGuard&&(n=this.next instanceof r.default?(this.next.insertAt(0,s),{startNode:this.next.domNode,startOffset:s.length}):(i=document.createTextNode(s),this.parent.insertBefore(o.default.create(i),this.next),{startNode:i,startOffset:s.length})),e.data=a,n}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){"characterData"!==e.type||e.target!==n.leftGuard&&e.target!==n.rightGuard||(e=n.restore(e.target))&&(t.range=e)}))}}]),n}(o.default.Embed);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i={scope:(n=(n=n=n(0))&&n.__esModule?n:{default:n}).default.Scope.BLOCK,whitelist:["right","center","justify"]},o=new n.default.Attributor.Attribute("align","align",i),r=new n.default.Attributor.Class("align","ql-align",i);n=new n.default.Attributor.Style("align","text-align",i);t.AlignAttribute=o,t.AlignClass=r,t.AlignStyle=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=(i=i=n(0))&&i.__esModule?i:{default:i},o=(n=n(26),new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}));n=new n.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=o,t.BackgroundStyle=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i={scope:(n=(n=n=n(0))&&n.__esModule?n:{default:n}).default.Scope.BLOCK,whitelist:["rtl"]},o=new n.default.Attributor.Attribute("direction","dir",i),r=new n.default.Attributor.Class("direction","ql-direction",i);n=new n.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=o,t.DirectionClass=r,t.DirectionStyle=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o={scope:(n=(n=n=n(0))&&n.__esModule?n:{default:n}).default.Scope.INLINE,whitelist:["serif","monospace"]},r=new n.default.Attributor.Class("font","ql-font",o);n=new(function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"value",value:function(e){return function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),n}(n.default.Attributor.Style))("font","font-family",o);t.FontStyle=n,t.FontClass=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=new((n=(n=n=n(0))&&n.__esModule?n:{default:n}).default.Attributor.Class)("size","ql-size",{scope:n.default.Scope.INLINE,whitelist:["small","large","huge"]});n=new n.default.Attributor.Style("size","font-size",{scope:n.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=n},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=s(n(0)),r=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.reduce((function(e,t){return e+(t.delete||0)}),0);t=e.length()-t;return null!=(e=(e=e).ops[e.ops.length-1])&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))&&--t,t}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(r.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==r.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&o!==r.default.sources.USER?i.transform(t):i.record(t,n))})),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"change",value:function(e,t){var n;0!==this.stack[e].length&&(n=this.stack[e].pop(),this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],r.default.sources.USER),this.ignoreChange=!1,t=a(n[e]),this.quill.setSelection(t))}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){var n,i;0!==e.ops.length&&(this.stack.redo=[],t=this.quill.getContents().diff(t),n=Date.now(),this.lastRecorded+this.options.delay>n&&0<this.stack.undo.length?(i=this.stack.undo.pop(),t=t.compose(i.undo),e=i.redo.compose(e)):this.lastRecorded=n,this.stack.undo.push({redo:e,undo:t}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(s(n(9)).default)).DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=n,t.getLastChangeIndex=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=f(n(3)),s=f(n(2)),a=f(n(8)),l=f(n(23)),c=f(n(34)),u=f(n(59)),d=f(n(60)),h=f(n(28));n=f(n(61));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[!1,"center","right","justify"],v=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],y=[!1,"serif","monospace"],w=["1","2","3",!1],x=["small",!1,"large","huge"],k=(m(_,c.default),i(_,[{key:"addModule",value:function(e){var t=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(t),t}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){var i;n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]&&("direction"===n?e.innerHTML=t[n][""]+t[n].rtl:"string"==typeof t[n]?e.innerHTML=t[n]:null!=(i=e.value||"")&&t[n][i]&&(e.innerHTML=t[n][i])))}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){var n;return e.classList.contains("ql-align")?(null==e.querySelector("option")&&S(e,b),new d.default(e,t.align)):e.classList.contains("ql-background")||e.classList.contains("ql-color")?(n=e.classList.contains("ql-background")?"background":"color",null==e.querySelector("option")&&S(e,v,"background"==n?"#ffffff":"#000000"),new u.default(e,t[n])):(null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,y):e.classList.contains("ql-header")?S(e,w):e.classList.contains("ql-size")&&S(e,x)),new h.default(e))})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),_);function _(e,t){p(this,_);var n=g(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,e,t));return e.emitter.listenDOM("click",document.body,(function t(i){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(i.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(i.target)||e.close()}))})),n}function C(e,t){return p(this,C),(e=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,e,t))).textbox=e.root.querySelector('input[type="text"]'),e.listen(),e}function S(e,t,n){var i=2<arguments.length&&void 0!==n&&n;t.forEach((function(t){var n=document.createElement("option");t===i?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}k.DEFAULTS=(0,r.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){var n;null!=t.files&&null!=t.files[0]&&((n=new FileReader).onload=function(n){var i=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(i.index).delete(i.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(i.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0]))})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}}),m(C,n.default),i(C,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,a.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;null!=(t=this.quill.getSelection(!0))&&(t=t.index+t.length,this.quill.insertEmbed(t,this.root.getAttribute("data-mode"),e,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(t+1," ",a.default.sources.USER),this.quill.setSelection(t+2,a.default.sources.USER))}this.textbox.value="",this.hide()}}]),r=C,t.BaseTooltip=r,t.default=k},function(e,t,n){"use strict";function i(){this.head=this.tail=null,this.length=0}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),1<e.length&&this.append.apply(this,e.slice(1))},i.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},i.prototype.insertBefore=function(e,t){e&&(null!=(e.next=t)?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?((this.tail.next=e).prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},i.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},i.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),--this.length)},i.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},i.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,i=this.iterator();n=i();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},i.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},i.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var i,o=this.find(e),r=o[0],s=e-o[1],a=this.iterator(r);(i=a())&&s<e+t;){var l=i.length();s<e?n(i,e-s,Math.min(t,s+l-e)):n(i,0,Math.min(l,e+t-s)),s+=l}},i.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},i.prototype.reduce=function(e,t){for(var n,i=this.iterator();n=i();)t=e(t,n);return t},t.default=i},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(17)),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};r(c,o=s.default),c.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(e,t){this.update(),0===e&&t===this.length()?this.children.forEach((function(e){e.remove()})):o.prototype.deleteAt.call(this,e,t)},c.prototype.formatAt=function(e,t,n,i){this.update(),o.prototype.formatAt.call(this,e,t,n,i)},c.prototype.insertAt=function(e,t,n){this.update(),o.prototype.insertAt.call(this,e,t,n)},c.prototype.optimize=function(e,t){for(var n=this,i=(void 0===e&&(e=[]),void 0===t&&(t={}),o.prototype.optimize.call(this,t),[].slice.call(this.observer.takeRecords()));0<i.length;)e.push(i.pop());for(var r=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&r(e.parent))},l=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof s.default&&e.children.forEach(l),e.optimize(t))},c=e,u=0;0<c.length;u+=1){if(100<=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(r(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){e=a.find(e,!1),r(e,!1),e instanceof s.default&&e.children.forEach((function(e){r(e,!1)}))}))):"attributes"===e.type&&r(t.prev)),r(t))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();0<i.length;)e.push(i.pop())}},c.prototype.update=function(e,t){var n=this;void 0===t&&(t={}),(e=e||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],t)})),null!=this.domNode[a.DATA_KEY].mutations&&o.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,t),this.optimize(e,t)},c.blotName="scroll",c.defaultChild="block",c.scope=a.Scope.BLOCK_BLOT,c.tagName="DIV",n=c;function c(e){var t=o.call(this,e)||this;return(t.scroll=t).observer=new MutationObserver((function(e){t.update(e)})),t.observer.observe(t.domNode,l),t.attach(),t}t.default=n},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),n(18)),s=n(1);o(l,a=r.default),l.formats=function(e){if(e.tagName!==l.tagName)return a.formats.call(this,e)},l.prototype.format=function(e,t){var n=this;e!==this.statics.blotName||t?a.prototype.format.call(this,e,t):(this.children.forEach((function(e){e instanceof r.default||(e=e.wrap(l.blotName,!0)),n.attributes.copy(e)})),this.unwrap())},l.prototype.formatAt=function(e,t,n,i){null!=this.formats()[n]||s.query(n,s.Scope.ATTRIBUTE)?this.isolate(e,t).format(n,i):a.prototype.formatAt.call(this,e,t,n,i)},l.prototype.optimize=function(e){if(a.prototype.optimize.call(this,e),e=this.formats(),0===Object.keys(e).length)return this.unwrap();var t=this.next;t instanceof l&&t.prev===this&&function(e,t){if(Object.keys(e).length===Object.keys(t).length){for(var n in e)if(e[n]!==t[n])return;return 1}}(e,t.formats())&&(t.moveChildren(this),t.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN";var a;n=l;function l(){return null!==a&&a.apply(this,arguments)||this}t.default=n},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(18)),a=n(1);r(l,o=s.default),l.formats=function(e){var t=a.query(l.blotName).tagName;if(e.tagName!==t)return o.formats.call(this,e)},l.prototype.format=function(e,t){null!=a.query(e,a.Scope.BLOCK)&&(e!==this.statics.blotName||t?o.prototype.format.call(this,e,t):this.replaceWith(l.blotName))},l.prototype.formatAt=function(e,t,n,i){null!=a.query(n,a.Scope.BLOCK)?this.format(n,i):o.prototype.formatAt.call(this,e,t,n,i)},l.prototype.insertAt=function(e,t,n){null==n||null!=a.query(t,a.Scope.INLINE)?o.prototype.insertAt.call(this,e,t,n):(e=this.split(e),t=a.create(t,n),e.parent.insertBefore(t,e))},l.prototype.update=function(e,t){navigator.userAgent.match(/Trident/)?this.build():o.prototype.update.call(this,e,t)},l.blotName="block",l.scope=a.Scope.BLOCK_BLOT,l.tagName="P",n=l;function l(){return null!==o&&o.apply(this,arguments)||this}t.default=n},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),n=n(19),r(s,o=n.default),s.formats=function(e){},s.prototype.format=function(e,t){o.prototype.formatAt.call(this,0,this.length(),e,t)},s.prototype.formatAt=function(e,t,n,i){0===e&&t===this.length()?this.format(n,i):o.prototype.formatAt.call(this,e,t,n,i)},s.prototype.formats=function(){return this.statics.formats(this.domNode)},n=s;function s(){return null!==o&&o.apply(this,arguments)||this}t.default=n},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(19)),a=n(1);r(l,o=s.default),l.create=function(e){return document.createTextNode(e)},l.value=function(e){return(e=e.data).normalize?e.normalize():e},l.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},l.prototype.index=function(e,t){return this.domNode===e?t:-1},l.prototype.insertAt=function(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):o.prototype.insertAt.call(this,e,t,n)},l.prototype.length=function(){return this.text.length},l.prototype.optimize=function(e){o.prototype.optimize.call(this,e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof l&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},l.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},l.prototype.split=function(e,t){if(!(t=void 0!==t&&t)){if(0===e)return this;if(e===this.length())return this.next}return t=a.create(this.domNode.splitText(e)),this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},l.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},l.prototype.value=function(){return this.text},l.blotName="text",l.scope=a.Scope.INLINE_BLOT,n=l;function l(e){return(e=o.call(this,e)||this).text=e.statics.value(e.domNode),e}t.default=n},function(e,t,n){"use strict";var i,o=document.createElement("div");o.classList.toggle("test-class",!1),o.classList.contains("test-class")&&(i=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(e,t){return 1<arguments.length&&!this.contains(e)==!t?t:i.call(this,e)}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(t=t||0,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();return-1!==(n=(("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length,n.indexOf(e,t)))&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,o=arguments[1],r=0;r<i;r++)if(t=n[r],e.call(o,t,r,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function i(e,t,a){if(e==t)return e?[[0,e]]:[];(a<0||e.length<a)&&(a=null);var c=r(e,t),u=e.substring(0,c),d=(c=s(e=e.substring(c),t=t.substring(c)),e.substring(e.length-c));e=function(e,t){if(!e)return[[1,t]];if(!t)return[[n,e]];var a,l,c=e.length>t.length?e:t,u=e.length>t.length?t:e,d=c.indexOf(u);return-1!=d?(c=[[1,c.substring(0,d)],[0,u],[1,c.substring(d+u.length)]],e.length>t.length&&(c[0][0]=c[2][0]=n),c):1==u.length?[[n,e],[1,t]]:(d=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function o(e,t,n){for(var i,o,a,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var h=r(e.substring(n),t.substring(u)),f=s(e.substring(0,n),t.substring(0,u));d.length<f+h&&(d=t.substring(u-f,u)+t.substring(u,u+h),i=e.substring(0,n-f),o=e.substring(n+h),a=t.substring(0,u-f),l=t.substring(u+h))}return 2*d.length>=e.length?[i,o,a,l,d]:null}var a,l,c,u,d=o(n,i,Math.ceil(n.length/4));i=o(n,i,Math.ceil(n.length/2));return d||i?(n=!i||d&&d[4].length>i[4].length?d:i,e.length>t.length?(a=n[0],l=n[1],c=n[2],u=n[3]):(c=n[0],u=n[1],a=n[2],l=n[3]),[a,l,c,u,d=n[4]]):null}(e,t))?(c=d[0],u=d[1],l=d[2],a=d[3],d=d[4],c=i(c,l),l=i(u,a),c.concat([[0,d]],l)):function(e,t){for(var i=e.length,r=t.length,s=Math.ceil((i+r)/2),a=s,l=2*s,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[a+1]=0,u[a+1]=0;for(var h=i-r,f=h%2!=0,p=0,g=0,m=0,b=0,v=0;v<s;v++){for(var y=-v+p;y<=v-g;y+=2){for(var w=a+y,x=(A=y==-v||y!=v&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-y;A<i&&x<r&&e.charAt(A)==t.charAt(x);)A++,x++;if(c[w]=A,i<A)g+=2;else if(r<x)p+=2;else if(f){var k;if(0<=(C=a+h-y)&&C<l&&-1!=u[C]&&(k=i-u[C])<=A)return o(e,t,A,x)}}for(var _=-v+m;_<=v-b;_+=2){for(var C=a+_,S=(k=_==-v||_!=v&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1)-_;k<i&&S<r&&e.charAt(i-k-1)==t.charAt(r-S-1);)k++,S++;if(u[C]=k,i<k)b+=2;else if(r<S)m+=2;else if(!f&&0<=(w=a+h-_)&&w<l&&-1!=c[w]){var A=c[w];x=a+A-w;if((k=i-k)<=A)return o(e,t,A,x)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return u&&e.unshift([0,u]),d&&e.push([0,d]),function e(t){t.push([0,""]);for(var i,o=0,a=0,l=0,c="",u="";o<t.length;)switch(t[o][0]){case 1:l++,u+=t[o][1],o++;break;case n:a++,c+=t[o][1],o++;break;case 0:1<a+l?(0!==a&&0!==l&&(0!==(i=r(u,c))&&(0<o-a-l&&0==t[o-a-l-1][0]?t[o-a-l-1][1]+=u.substring(0,i):(t.splice(0,0,[0,u.substring(0,i)]),o++),u=u.substring(i),c=c.substring(i)),0!==(i=s(u,c))&&(t[o][1]=u.substring(u.length-i)+t[o][1],u=u.substring(0,u.length-i),c=c.substring(0,c.length-i))),0===a?t.splice(o-l,a+l,[1,u]):0===l?t.splice(o-a,a+l,[n,c]):t.splice(o-a-l,a+l,[n,c],[1,u]),o=o-a-l+(a?1:0)+(l?1:0)+1):0!==o&&0==t[o-1][0]?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,a=l=0,u=c=""}""===t[t.length-1][1]&&t.pop();var d=!1;for(o=1;o<t.length-1;)0==t[o-1][0]&&0==t[o+1][0]&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)==t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),d=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),d=!0)),o++;d&&e(t)}(e),null!=a&&(t=function(e,t){if(0===t)return[0,e];for(var i=0,o=0;o<e.length;o++){var r=e[o];if(r[0]===n||0===r[0]){var s,a,l=i+r[1].length;if(t===l)return[o+1,e];if(t<l)return e=e.slice(),s=t-i,a=[r[0],r[1].slice(0,s)],r=[r[0],r[1].slice(s)],e.splice(o,1,a,r),[o+1,e];i=l}}throw new Error("cursor_pos is out of bounds!")}(c=e,t=a),d=(u=t[1])[t=t[0]],a=u[t+1],e=null==d||0!==d[0]?c:null!=a&&d[1]+a[1]===a[1]+d[1]?(u.splice(t,2,a,d),l(u,t,2)):null!=a&&0===a[1].indexOf(d[1])?(u.splice(t,2,[a[0],d[1]],[0,d[1]]),0<(d=a[1].slice(d[1].length)).length&&u.splice(t+2,0,[a[0],d]),l(u,t,3)):c),function(e){function t(e){return 56320<=e.charCodeAt(0)&&e.charCodeAt(0)<=57343}for(var i=!1,o=2;o<e.length;o+=1)0===e[o-2][0]&&function(e){return 55296<=e.charCodeAt(e.length-1)&&e.charCodeAt(e.length-1)<=56319}(e[o-2][1])&&e[o-1][0]===n&&t(e[o-1][1])&&1===e[o][0]&&t(e[o][1])&&(i=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));if(!i)return e;var r=[];for(o=0;o<e.length;o+=1)0<e[o][1].length&&r.push(e[o]);return r}(e)}function o(e,t,n,o){var r=e.substring(0,n),s=t.substring(0,o);e=e.substring(n),n=t.substring(o),t=i(r,s),o=i(e,n);return t.concat(o)}function r(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(r,o)==t.substring(r,o)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(e.length-o,e.length-r)==t.substring(t.length-o,t.length-r)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o}var a=i;function l(e,t,n){for(var i,o,r=t+n-1;0<=r&&t-1<=r;r--)r+1<e.length&&(i=e[r],o=e[r+1],i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]]));return e}a.INSERT=1,a.DELETE=n,a.EQUAL=0,e.exports=a},function(e,t){function n(e){var t,n=[];for(t in e)n.push(t);return n}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?i:o).supported=i,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),s.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e,t){e=i?i+e:e;var n=this._events[e];if(t)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var o=0,r=n.length,s=new Array(r);o<r;o++)s[o]=n[o].fn;return s},s.prototype.emit=function(e,t,n,o,r,s){var a=i?i+e:e;if(!this._events[a])return!1;var l,c=this._events[a],u=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,r),!0;case 6:return c.fn.call(c.context,t,n,o,r,s),!0}for(f=1,l=new Array(u-1);f<u;f++)l[f-1]=arguments[f];c.fn.apply(c.context,l)}else for(var d,h=c.length,f=0;f<h;f++)switch(c[f].once&&this.removeListener(e,c[f].fn,void 0,!0),u){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,t);break;case 3:c[f].fn.call(c[f].context,t,n);break;case 4:c[f].fn.call(c[f].context,t,n,o);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];c[f].fn.apply(c[f].context,l)}return!0},s.prototype.on=function(e,t,n){return t=new r(t,n||this),n=i?i+e:e,this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],t]:this._events[n].push(t):(this._events[n]=t,this._eventsCount++),this},s.prototype.once=function(e,t,n){return t=new r(t,n||this,!0),n=i?i+e:e,this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],t]:this._events[n].push(t):(this._events[n]=t,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,r){if(e=i?i+e:e,this._events[e]){if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[e],this;var s=this._events[e];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[e]);else{for(var a=0,l=[],c=s.length;a<c;a++)(s[a].fn!==t||r&&!s[a].once||n&&s[a].context!==n)&&l.push(s[a]);l.length?this._events[e]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new o:delete this._events[e]}}return this},s.prototype.removeAllListeners=function(e){return e?(e=i?i+e:e,this._events[e]&&(0==--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=i,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=v(n(3)),a=v(n(2)),l=v(n(0)),c=v(n(5)),u=v(n(10)),d=v(n(9)),h=n(36),f=n(37),p=v(n(13)),g=n(26),m=n(38),b=n(39);n=n(40);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),x="__ql-matcher",k=[[Node.TEXT_NODE,M],[Node.TEXT_NODE,R],["br",function(e,t){return E(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,function(e,t){var n={},i=e.style||{};return i.fontStyle&&"italic"===A(e).fontStyle&&(n.italic=!0),i.fontWeight&&(A(e).fontWeight.startsWith("bold")||700<=parseInt(A(e).fontWeight))&&(n.bold=!0),0<Object.keys(n).length&&(t=S(t,n)),0<parseFloat(i.textIndent||0)&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!E(t,"\n"))return t;for(var i=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(l.default.query(o)||{}).blotName&&(i+=1),o=o.parentNode;return i<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:i}))}],["b",T.bind(T,"bold")],["i",T.bind(T,"italic")],["style",function(){return new a.default}]],_=[h.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=[h.AlignStyle,f.BackgroundStyle,g.ColorStyle,m.DirectionStyle,b.FontStyle,n.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{});function S(e,t,n){return"object"===(void 0===t?"undefined":i(t))?Object.keys(t).reduce((function(e,n){return S(e,n,t[n])}),e):e.reduce((function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,s.default)({},y({},t,n),i.attributes))}),new a.default)}function A(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function E(e,t){for(var n="",i=e.ops.length-1;0<=i&&n.length<t.length;--i){var o=e.ops[i];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function O(e){if(0!==e.childNodes.length)return e=A(e),-1<["block","list-item"].indexOf(e.display)}function T(e,t,n){return S(n,e,!0)}function $(e,t){var n=l.default.Attributor.Attribute.keys(e),i=l.default.Attributor.Class.keys(e),o=l.default.Attributor.Style.keys(e),r={};return n.concat(i).concat(o).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(r[n.attrName]=n.value(e),r[n.attrName])||(null==(n=_[t])||n.attrName!==t&&n.keyName!==t||(r[n.attrName]=n.value(e)||void 0),null==(n=C[t])||n.attrName!==t&&n.keyName!==t||(n=C[t],r[n.attrName]=n.value(e)||void 0))})),0<Object.keys(r).length?S(t,r):t}function L(e,t){var n,i,o=l.default.query(e);return null!=o&&(o.prototype instanceof l.default.Embed?(n={},null!=(i=o.value(e))&&(n[o.blotName]=i,t=(new a.default).insert(n,o.formats(e)))):"function"==typeof o.formats&&(t=S(t,o.blotName,o.formats(e)))),t}function R(e,t){return E(t,"\n")||(O(e)||0<t.length()&&e.nextSibling&&O(e.nextSibling))&&t.insert("\n"),t}function q(e,t){var n;return O(e)&&null!=e.nextElementSibling&&!E(t,"\n\n")&&(n=e.offsetHeight+parseFloat(A(e).marginTop)+parseFloat(A(e).marginBottom),e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")),t}function M(e,t){var n,i=e.data;return"O:P"===e.parentNode.tagName?t.insert(i.trim()):0===i.trim().length&&e.parentNode.classList.contains("ql-clipboard")?t:(A(e.parentNode).whiteSpace.startsWith("pre")||(n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t},i=(i=i.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&O(e.parentNode)||null!=e.previousSibling&&O(e.previousSibling))&&(i=i.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&O(e.parentNode)||null!=e.nextSibling&&O(e.nextSibling))&&(i=i.replace(/\s+$/,n.bind(n,!1)))),t.insert(i))}(u=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],k.concat(i.options.matchers).forEach((function(e){var n=(e=o(e,2))[0];e=e[1];!t.matchVisual&&e===q||i.addMatcher(n,e)})),i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(n,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();if((e=this.quill.getFormat(this.quill.selection.savedRange.index))[p.default.blotName])return t=this.container.innerText,this.container.innerHTML="",(new a.default).insert(t,y({},p.default.blotName,e[p.default.blotName]));var t=this.prepareMatching();t=(e=o(t,2))[0],e=e[1];return E(t=function e(t,n,i){return t.nodeType===t.TEXT_NODE?i.reduce((function(e,n){return n(t,e)}),new a.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(o,r){var s=e(r,n,i);return r.nodeType===t.ELEMENT_NODE&&(s=n.reduce((function(e,t){return t(r,e)}),s),s=(r[x]||[]).reduce((function(e,t){return t(r,e)}),s)),o.concat(s)}),new a.default):new a.default}(this.container,t,e),"\n")&&null==t.ops[t.ops.length-1].attributes&&(t=t.compose((new a.default).retain(t.length()-1).delete(1))),w.log("convert",this.container.innerHTML,t),this.container.innerHTML="",t}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;"string"==typeof e?(this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT)):(t=this.convert(t),this.quill.updateContents((new a.default).retain(e).concat(t),n),this.quill.setSelection(e+t.length(),c.default.sources.SILENT))}},{key:"onPaste",value:function(e){var t,n,i,o=this;!e.defaultPrevented&&this.quill.isEnabled()&&(t=this.quill.getSelection(),n=(new a.default).retain(t.index),i=this.quill.scrollingContainer.scrollTop,this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){n=n.concat(o.convert()).delete(t.length),o.quill.updateContents(n,c.default.sources.USER),o.quill.setSelection(n.length()-t.length,c.default.sources.SILENT),o.quill.scrollingContainer.scrollTop=i,o.quill.focus()}),1))}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var r=(i=o(i,2))[0],s=i[1];switch(r){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(r),(function(e){e[x]=e[x]||[],e[x].push(s)}))}})),[t,n]}}]),n}(d.default)).DEFAULTS={matchers:[],matchVisual:!0},t.default=u,t.matchAttributor=$,t.matchBlot=L,t.matchNewline=R,t.matchSpacing=q,t.matchText=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,n):void 0}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"optimize",value:function(e){o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),n}(((n=n=n(6))&&n.__esModule?n:{default:n}).default)).blotName="bold",n.tagName=["STRONG","B"],t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=u(n(2)),a=u(n(0)),l=u(n(5)),c=u(n(10));n=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var h=(0,c.default)("quill:toolbar");function f(e,t,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+t),null!=n&&(i.value=n),e.appendChild(i)}function p(e,t){(t=Array.isArray(t[0])?t:[t]).forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){var t,i,o,r,s;"string"==typeof e?f(n,e):(t=e[e=Object.keys(e)[0]],Array.isArray(t)?(i=n,o=e,r=t,(s=document.createElement("select")).classList.add("ql-"+o),r.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),s.appendChild(t)})),i.appendChild(s)):f(n,e,t))})),e.appendChild(n)}))}(c=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var o=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return Array.isArray(o.options.container)?(p(t=document.createElement("div"),o.options.container),e.container.parentNode.insertBefore(t,e.container),o.container=t):"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container,o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange();e=i(e,1)[0];o.update(e)})),o):(e=h.error("Container required for toolbar",o.options),d(o,e))}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var r=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;r=!(d=e.options[e.selectedIndex]).hasAttribute("selected")&&d.value||!1}else r=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c,u,d=t.quill.selection.getRange();o=i(d,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,r);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(r=prompt("Enter "+n)))return;t.quill.updateContents((new s.default).retain(o.index).delete(o.length).insert((d=r,(u=n)in(c={})?Object.defineProperty(c,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[u]=d,c)),l.default.sources.USER)}else t.quill.format(n,r,l.default.sources.USER);t.update(o)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o,r,s=(n=i(n,2))[0];"SELECT"===(n=n[1]).tagName?(o=void 0,null==e?o=null:null==t[s]?o=n.querySelector("option[selected]"):Array.isArray(t[s])||("string"==typeof(r=t[s])&&(r=r.replace(/\"/g,'\\"')),o=n.querySelector('option[value="'+r+'"]')),null==o?(n.value="",n.selectedIndex=-1):o.selected=!0):null==e?n.classList.remove("ql-active"):n.hasAttribute("value")?(r=t[s]===n.getAttribute("value")||null!=t[s]&&t[s].toString()===n.getAttribute("value")||null==t[s]&&!n.getAttribute("value"),n.classList.toggle("ql-active",r)):n.classList.toggle("ql-active",null!=t[s])}))}}]),n}(n.default)).DEFAULTS={},c.DEFAULTS={container:null,handlers:{clean:function(){var e,t=this,n=this.quill.getSelection();null!=n&&(0==n.length?(e=this.quill.getFormat(),Object.keys(e).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))):this.quill.removeFormat(n,l.default.sources.USER))},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=(t=this.quill.getFormat(t),parseInt(t.indent||0));"+1"!==e&&"-1"!==e||(e="+1"===e?1:-1,"rtl"===t.direction&&(e*=-1),this.quill.format("indent",n+e,l.default.sources.USER))},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection();t=this.quill.getFormat(t);"check"===e?"checked"===t.list||"unchecked"===t.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=c,t.addControls=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,n):void 0}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).label.innerHTML=t,e.container.classList.add("ql-color-picker"),[].slice.call(e.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"buildItem",value:function(e){var t=o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"buildItem",this).call(this,e);return t.style.backgroundColor=e.getAttribute("value")||"",t}},{key:"selectItem",value:function(e,t){o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"selectItem",this).call(this,e,t),t=this.label.querySelector(".ql-color-label"),e=e&&e.getAttribute("data-value")||"",t&&("line"===t.tagName?t.style.stroke=e:t.style.fill=e)}}]),n}(((n=n=n(28))&&n.__esModule?n:{default:n}).default),t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).container.classList.add("ql-icon-picker"),[].forEach.call(e.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=t[e.getAttribute("data-value")||""]})),e.defaultItem=e.container.querySelector(".ql-selected"),e.selectItem(e.defaultItem),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"selectItem",value:function(e,t){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0})(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"selectItem",this).call(this,e,t),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),n}(((n=n=n(28))&&n.__esModule?n:{default:n}).default),t.default=n},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){var n=this;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t)}(o,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop,i=(this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip"),this.boundsContainer.getBoundingClientRect()),o=this.root.getBoundingClientRect(),r=0;return o.right>i.right&&(r=i.right-o.right,this.root.style.left=t+r+"px"),o.left<i.left&&(r=i.left-o.left,this.root.style.left=t+r+"px"),o.bottom>i.bottom&&(t=o.bottom-o.top,i=e.bottom-e.top+t,this.root.style.top=n-i+"px",this.root.classList.add("ql-flip")),r}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t.default=o},function(e,t,n){"use strict";function i(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(e))?i(o,t,n):void 0}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=f(n(3)),a=f(n(8)),l=n(43),c=f(l),u=f(n(27)),d=n(15),h=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];function v(e,t){return p(this,v),null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=b),(e=g(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,e,t))).quill.container.classList.add("ql-snow"),e}(n=(m(v,c.default),o(v,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),v)).DEFAULTS=(0,s.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?null!=(e=this.quill.getSelection())&&0!=e.length&&(e=this.quill.getText(e),/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e="mailto:"+e),this.quill.theme.tooltip.edit("link",e)):this.quill.format("link",!1)}}}}}),m(w,l.BaseTooltip),o(w,[{key:"listen",value:function(){var e=this;i(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){var n;null!=e.linkRange&&(n=e.linkRange,e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange),t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===a.default.sources.USER){var o=(i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],o=!0,r=(t=!1,void 0);try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(e){t=!0,r=e}finally{try{!o&&a.return&&a.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")}(i=e.quill.scroll.descendant(u.default,t.index),2))[0];i=i[1];if(null!=o)return e.linkRange=new d.Range(t.index-i,o.length()),t=u.default.formats(o.domNode),e.preview.textContent=t,e.preview.setAttribute("href",t),e.show(),void e.position(e.quill.getBounds(e.linkRange))}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]);var y=w;function w(e,t){return p(this,w),(e=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,e,t))).preview=e.root.querySelector("a.ql-preview"),e}y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=M(n(29)),o=n(36),r=n(38),s=n(64),a=M(n(65)),l=M(n(66)),c=n(67),u=M(c),d=n(37),h=n(26),f=n(39),p=n(40),g=M(n(56)),m=M(n(68)),b=M(n(27)),v=M(n(69)),y=M(n(70)),w=M(n(71)),x=M(n(72)),k=M(n(73)),_=n(13),C=M(_),S=M(n(74)),A=M(n(75)),E=M(n(57)),O=M(n(41)),T=M(n(28)),$=M(n(59)),L=M(n(60)),R=M(n(61)),q=M(n(108));n=M(n(62));function M(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":p.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":f.FontClass,"formats/size":p.SizeClass,"formats/blockquote":a.default,"formats/code-block":C.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":g.default,"formats/code":_.Code,"formats/italic":m.default,"formats/link":b.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":k.default,"formats/list/item":c.ListItem,"modules/formula":S.default,"modules/syntax":A.default,"modules/toolbar":E.default,"themes/bubble":q.default,"themes/snow":n.default,"ui/icons":O.default,"ui/picker":T.default,"ui/icon-picker":L.default,"ui/color-picker":$.default,"ui/tooltip":R.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?r(i,t,n):void 0}n=new(function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i(n,[{key:"add",value:function(e,t){var i;return"+1"!==t&&"-1"!==t||(i=this.value(e)||0,t="+1"===t?i+1:i-1),0===t?(this.remove(e),!0):r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"add",this).call(this,e,t)}},{key:"canAdd",value:function(e,t){return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"canAdd",this).call(this,e,t)||r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"canAdd",this).call(this,e,parseInt(t))}},{key:"value",value:function(e){return parseInt(r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"value",this).call(this,e))||void 0}}]),n}((n=(n=n=n(0))&&n.__esModule?n:{default:n}).default.Attributor.Class))("indent","ql-indent",{scope:n.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),t.IndentClass=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n}(((n=n=n(4))&&n.__esModule?n:{default:n}).default)).blotName="blockquote",n.tagName="blockquote",t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),n}(((n=n=n(4))&&n.__esModule?n:{default:n}).default)).blotName="header",n.tagName=["H1","H2","H3","H4","H5","H6"],t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?r(i,t,n):void 0}var s=l(n(0)),a=l(n(4));n=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}d(f,a.default),i(f,[{key:"format",value:function(e,t){e!==p.blotName||t?r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,t):this.replaceWith(s.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,t){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,t),this):(this.parent.unwrap(),r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,e,t))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(f.__proto__||Object.getPrototypeOf(f),"formats",this).call(this,e)}}]);var h=f;function f(){return c(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}h.blotName="list-item",h.tagName="LI",d(g,n.default),i(g,null,[{key:"create",value:function(e){var t="ordered"===e?"OL":"UL";t=r(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,t);return"checked"!==e&&"unchecked"!==e||t.setAttribute("data-checked","checked"===e),t}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(g,[{key:"format",value:function(e,t){0<this.children.length&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,t){e instanceof h?r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,e,t):(t=null==t?this.length():t.offset(this),(t=this.split(t)).parent.insertBefore(e,t))}},{key:"optimize",value:function(e){r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,e),null!=(e=this.next)&&e.prev===this&&e.statics.blotName===this.statics.blotName&&e.domNode.tagName===this.domNode.tagName&&e.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(e.moveChildren(this),e.remove())}},{key:"replace",value:function(e){var t;e.statics.blotName!==this.statics.blotName&&(t=s.default.create(this.statics.defaultChild),e.moveChildren(t),this.appendChild(t)),r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replace",this).call(this,e)}}]);var p=g;function g(e){function t(t){var i;t.target.parentNode===e&&(i=n.statics.formats(e),t=s.default.find(t.target),"checked"===i?t.format("list","unchecked"):"unchecked"===i&&t.format("list","checked"))}c(this,g);var n=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,e));return e.addEventListener("touchstart",t),e.addEventListener("mousedown",t),n}p.blotName="list",p.scope=s.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[h],t.ListItem=h,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n}(((n=n=n(56))&&n.__esModule?n:{default:n}).default)).blotName="italic",n.tagName=["EM","I"],t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),n}(((n=n=n(6))&&n.__esModule?n:{default:n}).default)).blotName="script",n.tagName=["SUB","SUP"],t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n}(((n=n=n(6))&&n.__esModule?n:{default:n}).default)).blotName="strike",n.tagName="S",t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n}(((n=n=n(6))&&n.__esModule?n:{default:n}).default)).blotName="underline",n.tagName="U",t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,n):void 0}var r=(r=r=n(0))&&r.__esModule?r:{default:r},s=n(27),a=["alt","height","width"];(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"format",value:function(e,t){-1<a.indexOf(e)?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,e,t)}}],[{key:"create",value:function(e){var t=o(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,e);return"string"==typeof e&&t.setAttribute("src",this.sanitize(e)),t}},{key:"formats",value:function(e){return a.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),n}(r.default.Embed)).blotName="image",n.tagName="IMG",t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,n):void 0}var r=n(4),s=(n=n=n(27))&&n.__esModule?n:{default:n},a=["height","width"];(n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");if(e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments),e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(n,[{key:"format",value:function(e,t){-1<a.indexOf(e)?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,e,t)}}],[{key:"create",value:function(e){var t=o(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",!0),t.setAttribute("src",this.sanitize(e)),t}},{key:"formats",value:function(e){return a.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),n}(r.BlockEmbed)).blotName="video",n.className="ql-video",n.tagName="IFRAME",t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=a(n(35)),s=a(n(5));n=a(n(9));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}u(h,r.default),i(h,null,[{key:"create",value:function(e){var t=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]);var d=h;function h(){return l(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}function f(){l(this,f);var e=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}d.blotName="formula",d.className="ql-formula",d.tagName="SPAN",u(f,n.default),i(f,null,[{key:"register",value:function(){s.default.register(d,!0)}}]),r=f,t.FormulaBlot=d,t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=l(n(0)),s=l(n(5)),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}d(f,l(n(13)).default),i(f,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(i):void 0:null!==(o=Object.getPrototypeOf(t))?e(o,n,i):void 0}(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((0<t.trim().length||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]);var h=f;function f(){return c(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}h.className="ql-syntax";var p=new r.default.Attributor.Class("token","hljs",{scope:r.default.Scope.INLINE});function g(e,t){c(this,g);var n=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,e,t));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return n.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){n.highlight(),i=null}),n.options.interval)})),n.highlight(),n}(n=(d(g,a.default),i(g,null,[{key:"register",value:function(){s.default.register(p,!0),s.default.register(h,!0)}}]),i(g,[{key:"highlight",value:function(){var e,t=this;this.quill.selection.composing||(this.quill.update(s.default.sources.USER),e=this.quill.getSelection(),this.quill.scroll.descendants(h).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=e&&this.quill.setSelection(e,s.default.sources.SILENT))}}]),g)).DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=h,t.CodeToken=p,t.default=n},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";function i(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);return void 0!==o?"value"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(e))?i(o,t,n):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=h(n(3)),a=h(n(8)),l=n(43),c=h(l),u=n(15),d=h(n(41));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];function b(e,t){return f(this,b),null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=m),(e=p(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,e,t))).quill.container.classList.add("ql-bubble"),e}(n=(g(b,c.default),o(b,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default)}}]),b)).DEFAULTS=(0,s.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}}),g(y,l.BaseTooltip),o(y,[{key:"listen",value:function(){var e=this;i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){var t;e.root.classList.contains("ql-hidden")||null!=(t=e.quill.getSelection())&&e.position(e.quill.getBounds(t))}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){e=i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"position",this).call(this,e);var t=this.root.querySelector(".ql-tooltip-arrow");if(t.style.marginLeft="",0===e)return e;t.style.marginLeft=-1*e-t.offsetWidth/2+"px"}}]);var v=y;function y(e,t){f(this,y);var n=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,e,t));return n.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,i,o){e===a.default.events.SELECTION_CHANGE&&(null!=t&&0<t.length&&o===a.default.sources.USER?(n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px",1===(e=n.quill.getLines(t.index,t.length)).length?n.position(n.quill.getBounds(t)):(o=e[e.length-1],e=n.quill.getIndex(o),o=Math.min(o.length()-1,t.index+t.length-e),t=n.quill.getBounds(new u.Range(e,o)),n.position(t))):document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide())})),n}v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=n},function(e,t,n){e.exports=n(63)}],i={},e.m=n,e.c=i,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=109).default;function e(t){if(i[t])return i[t].exports;var o=i[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n,i},e.exports=n()}).call(this,n(14).Buffer)},function(e,t,n){var i;i=function(e){return n={"01f9":function(e,t,n){"use strict";function i(){return this}var o=n("2d00"),r=n("5ca1"),s=n("2aba"),a=n("32e9"),l=n("84f2"),c=n("41a0"),u=n("7f20"),d=n("38fd"),h=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="values";e.exports=function(e,t,n,g,m,b,v){function y(e){if(!f&&e in C)return C[e];switch(e){case"keys":case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}}c(n,t,g);g=t+" Iterator";var w,x,k=m==p,_=!1,C=e.prototype,S=C[h]||C["@@iterator"]||m&&C[m],A=S||y(m),E=m?k?y("entries"):A:void 0,O="Array"==t&&C.entries||S;if(O&&(O=d(O.call(new e)))!==Object.prototype&&O.next&&(u(O,g,!0),o||"function"==typeof O[h]||a(O,h,i)),k&&S&&S.name!==p&&(_=!0,A=function(){return S.call(this)}),o&&!v||!f&&!_&&C[h]||a(C,h,A),l[t]=A,l[g]=i,m)if(w={values:k?A:y(p),keys:b?A:y("keys"),entries:E},v)for(x in w)x in C||s(C,x,w[x]);else r(r.P+r.F*(f||_),t,w);return w}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){t=String(o(t)),n=i(n);var r,s=t.length;return n<0||s<=n?e?"":void 0:(r=t.charCodeAt(n))<55296||56319<r||n+1===s||(s=t.charCodeAt(n+1))<56320||57343<s?e?t.charAt(n):r:e?t.slice(n,n+2):s-56320+(r-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);for(var n,s=r(t),a=s.length,l=0;l<a;)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i,o=n("2aba"),r=n("32e9"),s=n("79e5"),a=n("be13"),l=n("2b4c"),c=n("520a"),u=l("species"),d=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),h=(i=(n=/(?:)/).exec,n.exec=function(){return i.apply(this,arguments)},2===(n="ab".split(n)).length&&"a"===n[0]&&"b"===n[1]);e.exports=function(e,t,n){var i,f,p=l(e),g=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g?!s((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!t})):void 0;g&&m&&("replace"!==e||d)&&("split"!==e||h)||(i=/./[p],n=(m=n(a,p,""[e],(function(e,t,n,o,r){return t.exec===c?g&&!r?{done:!0,value:i.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}})))[0],f=m[1],o(String.prototype,e,n),r(RegExp.prototype,p,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Object(e),o))?t:r?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l=(""+a).split("toString");n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&!r(n,"name")&&o(n,"name",t),e[t]!==n&&(c&&!r(n,s)&&o(n,s,e[t]?""+e[t]:l.join(String(t))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){function i(){}var o=n("cb7c"),r=n("1495"),s=n("e11e"),a=n("613b")("IE_PROTO"),l="prototype",c=function(){var e=n("230e")("iframe"),t=s.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;t--;)delete c[l][s[t]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(i[l]=o(e),n=new i,i[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))}).store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8");i(i.P+i.F*n("5147")("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,1<arguments.length?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var i,o,r=n("0bfb"),s=RegExp.prototype.exec,a=String.prototype.replace,l=(n=s,"lastIndex"),c=(i=/a/,o=/b*/g,s.call(i,"a"),s.call(o,"a"),0!==i[l]||0!==o[l]),u=void 0!==/()??/.exec("")[1];e.exports=n=c||u?function(e){var t,n,i,o;return u&&(n=new RegExp("^"+this.source+"$(?!\\s)",r.call(this))),c&&(t=this[l]),i=s.call(this,e),c&&i&&(this[l]=this.global?i.index+i[0].length:t),u&&i&&1<i.length&&a.call(i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i}:n},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){function i(e,t,n){var u,d,h,f=e&i.F,p=e&i.G,g=e&i.P,m=e&i.B,b=p?o:e&i.S?o[t]||(o[t]={}):(o[t]||{})[c],v=p?r:r[t]||(r[t]={}),y=v[c]||(v[c]={});for(u in n=p?t:n)d=((h=!f&&b&&void 0!==b[u])?b:n)[u],h=m&&h?l(d,o):g&&"function"==typeof d?l(Function.call,d):d,b&&a(b,u,d,e&i.U),v[u]!=d&&s(v,u,h),g&&y[u]!=d&&(y[u]=d)}var o=n("7726"),r=n("8378"),s=n("32e9"),a=n("2aba"),l=n("9b43"),c="prototype";o.core=r,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,e.exports=i},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){if("object"!=typeof(n=n.call(e,t)))throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e))||"function"==typeof(n=e.valueOf)&&!i(o=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=o.f,d=r.f;c<l;)for(var h,f=a(arguments[c++]),p=u?i(f).concat(u(f)):i(f),g=p.length,m=0;m<g;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:l},7726:function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=e)},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){e=e.exports={version:"2.6.5"},"number"==typeof __e&&(__e=e)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;null==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return 0<e?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,p){return[function(i,o){var r=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var g=p(n,e,this,t);if(g.done)return g.value;for(var m,b=i(e),v=String(this),y="function"==typeof t,w=(y||(t=String(t)),b.global),x=(w&&(m=b.unicode,b.lastIndex=0),[]);null!==(A=l(b,v))&&(x.push(A),w);)""===String(A[0])&&(b.lastIndex=a(v,r(b.lastIndex),m));for(var k,_="",C=0,S=0;S<x.length;S++){for(var A=x[S],E=String(A[0]),O=c(u(s(A.index),v.length),0),T=[],$=1;$<A.length;$++)T.push(void 0===(k=A[$])?k:String(k));var L=A.groups,R=y?(R=[E].concat(T,O,v),void 0!==L&&R.push(L),String(t.apply(void 0,R))):function(e,t,i,r,s,a){var l=i+e.length,c=r.length,u=f;return void 0!==s&&(s=o(s),u=h),n.call(a,u,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var u,h=+o;if(0==h)return n;if(c<h)return 0!==(u=d(h/10))&&u<=c?void 0===r[u-1]?o.charAt(1):r[u-1]+o.charAt(1):n;a=r[h-1]}return void 0===a?"":a}))}(E,v,O,T,L,t);C<=O&&(_+=v.slice(C,O)+R,C=O+E.length)}return _+v.slice(C)}]}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=(n=n("2b4c"))("iterator"),u=n("toStringTag"),d=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=o(h),p=0;p<f.length;p++){var g,m=f[p],b=h[m],v=s[m],y=v&&v.prototype;if(y&&(y[c]||a(y,c,d),y[u]||a(y,u,m),l[m]=d,b))for(g in i)y[g]||r(y,g,i[g],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),u=r(s,c);if(e&&n!=n){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return l})),n("a481");var i,o,r=("undefined"!=typeof window?window:e).console,s=/-(\w)/g,a=(i=function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))},o=Object.create(null),function(e){return o[e]||(o[e]=i(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){n=0===n?e.children[0]:e.children[n-1].nextSibling,e.insertBefore(t,n)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(i(e))return e;throw TypeError(e+" is not an object!")}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;t.length>l;)!i(a,n=t[l++])||~r(c,n)||c.push(n);return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(1<arguments.length?arguments[1]:void 0,t.length));e=String(e);return a?a.call(t,e,n):t.slice(n,n+e.length)===e}})},f6fd:function(e,t){var n,i,o;n=document,i="currentScript",o=n.getElementsByTagName("script"),i in n||Object.defineProperty(n,i,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in o)if(o[e].src==t||"interactive"==o[e].readyState)return o[e];return null}}})},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){n=n("7726").document,e.exports=n&&n.documentElement},fb15:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var a=n("a352"),l=n.n(a),c=n("c649");function u(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function d(e){return["transition-group","TransitionGroup"].includes(e)}function h(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var f=["Start","Add","Remove","Update","End"],p=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(f,p).map((function(e){return"on"+e})),m=null;a={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t,n,i=this.$slots.default,o=(i=(this.transitionMode=!(!(l=i)||1!==l.length)&&!!(l=r(l,1)[0].componentOptions)&&d(l.tag),l=i,n=t=0,(a=h(i=this.$slots,o=this.$scopedSlots,"header"))&&(t=a.length,l=l?[].concat(s(a),s(l)):s(a)),(a=h(i,o,"footer"))&&(n=a.length,l=l?[].concat(s(l),s(a)):s(a)),{children:l,headerOffset:t,footerOffset:n})).children,a=i.footerOffset,l=(this.headerOffset=i.headerOffset,this.footerOffset=a,function(e,t){function n(e,t){var n;n=r,e=e,void 0!==(t=t)&&((n=n||{})[e]=t),r=n}var i,o,r=null;return n("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),t&&(i=t.on,o=t.props,t=t.attrs,n("on",i),n("props",o),Object.assign(r.attrs,t)),r}(this.$attrs,this.componentData));return e(this.getTag(),l,o)},created:function(){null!==this.list&&null!==this.value&&c.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&c.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&c.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={},n=(f.forEach((function(n){t["on"+n]=function(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),u.call(t,e,n)}}.call(e,n)})),p.forEach((function(n){t["on"+n]=u.bind(e,n)})),Object.keys(this.$attrs).reduce((function(t,n){return t[Object(c.a)(n)]=e.$attrs[n],t}),{}));"draggable"in(n=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}}))||(n.draggable=">*"),this._sortable=new l.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list||this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(c.a)(t);-1===g.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,i){if(!e)return[];var o=e.map((function(e){return e.elm})),r=t.length-i;e=s(t).map((function(e,t){return r<=t?o.length:o.indexOf(e)}));return n?e.filter((function(e){return-1!==e})):e}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){e=e;var t=(t=this.getChildrenNodes()||[]).map((function(e){return e.elm})).indexOf(e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){return(e=e.__vue__)&&e.$options&&d(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){this.list?e(this.list):(e(e=s(this.value)),this.$emit("input",e))},spliceList:function(){var e=arguments;this.alterList((function(t){return t.splice.apply(t,s(e))}))},updatePosition:function(e,t){this.alterList((function(n){return n.splice(t,0,n.splice(e,1)[0])}))},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=(e=e.related,this.getUnderlyingPotencialDraggableComponent(t));if(!n)return{component:n};var i=n.realList,o={list:i,component:n};return t!==e&&i&&n.getUnderlyingVm&&(t=n.getUnderlyingVm(e))?Object.assign(t,o):o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return n-1<e?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){this.noTransitionOnDrag&&this.transitionMode&&(this.getChildrenNodes()[e].data=null,(e=this.getComponent()).children=[],e.kept=void 0)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),m=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;void 0!==t&&(Object(c.d)(e.item),e=this.getVmIndex(e.newIndex),this.spliceList(e,0,t),this.computeIndexes(),this.emitChanges({added:{element:t,newIndex:e}}))},onDragRemove:function(e){var t;Object(c.c)(this.rootContainer,e.item,e.oldIndex),"clone"===e.pullMode?Object(c.d)(e.clone):(e=this.context.index,this.spliceList(e,1),t={element:this.context.element,oldIndex:e},this.resetTransitionData(e),this.emitChanges({removed:t}))},onDragUpdate:function(e){Object(c.d)(e.item),Object(c.c)(e.from,e.item,e.oldIndex);var t=this.context.index;e=this.getVmIndex(e.newIndex),this.updatePosition(t,e),t={element:this.context.element,oldIndex:t,newIndex:e};this.emitChanges({moved:t})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=s(t.to.children).filter((function(e){return"none"!==e.style.display})),i=n.indexOf(t.related);e=e.component.getVmIndex(i);return-1===n.indexOf(m)&&t.willInsertAfter?e+1:e},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.context,r=this.computeFutureIndex(i,e);return Object.assign(o,{futureIndex:r}),n(Object.assign({},e,{relatedContext:i,draggedContext:o}),t)},onDragEnd:function(){this.computeIndexes(),m=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",a),t.default=a}},i={},t.m=n,t.c=i,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="fb15").default;function t(e){if(i[e])return i[e].exports;var o=i[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n,i},e.exports=i(n(55))},function(e,t,n){(function(e){function t(e,t){var n,i;return t=l(e,t),(e=r.modules[t])||("function"==typeof(e=r.payloads[t])&&(n={id:t,uri:"",exports:i={},packaged:!0},i=e((function(e,n){return s(t,e,n)}),i,n)||n.exports,r.modules[t]=i,delete r.payloads[t]),e=r.modules[t]=i||e),e}var i,o,r,s,a,l;(o=function(){return this}())||"undefined"==typeof window||(o=window),(r=function(e,t,n){"string"!=typeof e?r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(n=t),r.modules[e]||(r.payloads[e]=n,r.modules[e]=null))}).modules={},r.payloads={},s=function(e,n,i){if("string"==typeof n){var o=t(e,n);if(null!=o)return i&&i(),o}else if("[object Array]"===Object.prototype.toString.call(n)){for(var r=[],s=0,l=n.length;s<l;++s){var c=t(e,n[s]);if(null==c&&a.original)return;r.push(c)}return i&&i.apply(null,r)||!0}},a=function(e,t){var n=s("",e,t);return null==n&&a.original?a.original.apply(this,arguments):n},l=function(e,t){var n;if(-1!==t.indexOf("!"))return n=t.split("!"),l(e,n[0])+"!"+l(e,n[1]);if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&i!=t;){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},i=o,"ace"&&(o.ace||(o.ace={}),i=o.ace),i.define&&i.define.packaged||(r.original=i.define,i.define=r,i.define.packaged=!0),i.require&&i.require.packaged||(a.original=i.require,i.require=a,i.require.packaged=!0),ace.define("ace/lib/fixoldbrowsers",["require","exports","module"],(function(e,t,n){"use strict";"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var i="object"==typeof navigator?navigator:{},o=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),r=i.userAgent||"";i=i.appName||"";t.isWin="win"==o,t.isMac="mac"==o,t.isLinux="linux"==o,t.isIE="Microsoft Internet Explorer"==i||0<=i.indexOf("MSAppHost")?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=r.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(r.split(" Edge/")[1])||void 0,t.isAIR=0<=r.indexOf("AdobeAIR"),t.isAndroid=0<=r.indexOf("Android"),t.isChromeOS=0<=r.indexOf(" CrOS "),t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";e=e("./useragent");var i,o,r=(t.buildDom=function e(t,n,i){if("string"==typeof t&&t)return c=document.createTextNode(t),n&&n.appendChild(c),c;if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],r=0;r<t.length;r++){var s=e(t[r],n,i);s&&o.push(s)}return o}var a=document.createElement(t[0]),l=t[1],c=1;for(r=c=l&&"object"==typeof l&&!Array.isArray(l)?2:c;r<t.length;r++)e(t[r],a,i);return 2==c&&Object.keys(l).forEach((function(e){var t=l[e];"class"===e?a.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?a[e]=t:"ref"===e?i&&(i[t]=a):"style"===e?"string"==typeof t&&(a.style.cssText=t):null!=t&&a.setAttribute(e,t)})),n&&n.appendChild(a),a},t.getDocumentHead=function(e){return(e=e||document).head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},t.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),i=!0;;){var o=n.indexOf(t);if(-1==o)break;i=!1,n.splice(o,1)}return i&&n.push(t),e.className=n.join(" "),i},t.setCssClass=function(e,n,i){i?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,i=0;if(n=(t=t||document).querySelectorAll("style"))for(;i<n.length;)if(n[i++].id===e)return!0},[]);function s(){var e=r;r=null,e&&e.forEach((function(e){a(e[0],e[1])}))}function a(e,n,o){if("undefined"!=typeof document){if(r)if(o)s();else if(!1===o)return r.push([e,n]);if(!i){var a=o;o=(a=o&&o.getRootNode&&(a=o.getRootNode())&&a!=o?a:document).ownerDocument||a;if(n&&t.hasCssString(n,a))return null;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */");var l=t.createElement("style");l.appendChild(o.createTextNode(e)),n&&(l.id=n),(a=a==o?t.getDocumentHead(o):a).insertBefore(l,a.firstChild)}}}t.useStrictCSP=function(e){0==(i=e)?s():r=r||[]},t.importCssString=a,t.importCssStylsheet=function(e,n){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n,i=t.createElement("ace_inner"),o=(i.style.width="100%",i.style.minWidth="0px",i.style.height="200px",i.style.display="block",t.createElement("ace_outer")),r=((e=((n=o.style).position="absolute",n.left="-10000px",n.overflow="hidden",n.width="200px",n.minWidth="0px",n.height="150px",n.display="block",o.appendChild(i),e.documentElement)).appendChild(o),i.offsetWidth);return r==(n=(n.overflow="scroll",i.offsetWidth))&&(n=o.clientWidth),e.removeChild(o),r-n},t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!e.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,e.isChromeOS&&(t.HI_DPI=!1),"undefined"!=typeof document&&(o=document.createElement("div"),t.HI_DPI&&void 0!==o.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),e.isEdge||void 0===o.style.animationName||(t.HAS_CSS_ANIMATION=!0),o=null),t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./oop"),o=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-";for(var o=["cmd","ctrl","alt","shift"],r=Math.pow(2,o.length);r--;)n.KEY_MODS[r]=o.filter((function(e){return r&n.KEY_MODS[e]})).join("-")+"-";return n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return(t="string"!=typeof t?String.fromCharCode(e):t).toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i,o=e("./keys"),r=e("./useragent"),s=null,a=0;function l(){if(null==i){i=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){i={passive:!1}}})}catch(e){}}return i}function c(e,t,n){this.elem=e,this.type=t,this.callback=n}function u(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}c.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var d,h=t.addListener=function(e,t,n,i){e.addEventListener(t,n,l()),i&&i.$toDestroy.push(new c(e,t,n))},f=t.removeListener=function(e,t,n){e.removeEventListener(t,n,l())};function p(e,t,n){var i=u(t);if(!r.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(i|=8),s.altGr){if(3==(3&i))return;s.altGr=0}18!==n&&17!==n||(l="location"in t?t.location:t.keyLocation,17===n&&1===l?1==s[n]&&(a=t.timeStamp):18===n&&3===i&&2===l&&t.timeStamp-a<50&&(s.altGr=!0))}if(n in o.MODIFIER_KEYS&&(n=-1),!i&&13===n){var l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,i,-n),t.defaultPrevented))return}if(r.isChromeOS&&8&i){if(e(t,i,n),t.defaultPrevented)return;i&=-9}return!!(i||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,i,n)}function g(){s=Object.create(null)}t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var i=e&&e.ownerDocument||document;function o(e){t&&t(e),n&&n(e),f(i,"mousemove",t),f(i,"mouseup",o),f(i,"dragstart",o)}return h(i,"mousemove",t),h(i,"mouseup",o),h(i,"dragstart",o),o},t.addMouseWheelListener=function(e,t,n){"onmousewheel"in e?h(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}),n):"onwheel"in e?h(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}),n):h(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)}),n)},t.addMultiMouseDownListener=function(e,n,i,o,s){var a,l,c,u=0,d={2:"dblclick",3:"tripleclick",4:"quadclick"};function f(e){var s;if(0!==t.getButton(e)?u=0:1<e.detail&&!(4<++u)||(u=1),r.isIE&&(s=5<Math.abs(e.clientX-a)||5<Math.abs(e.clientY-l),c&&!s||(u=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[u-1]||600),1==u&&(a=e.clientX,l=e.clientY)),e._clicks=u,i[o]("mousedown",e),4<u)u=0;else if(1<u)return i[o](d[u],e)}(e=Array.isArray(e)?e:[e]).forEach((function(e){h(e,"mousedown",f,s)}))},t.getModifierString=function(e){return o.KEY_MODS[u(e)]},t.addCommandKeyListener=function(e,n,i){var o,a;r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)?(o=null,h(e,"keydown",(function(e){o=e.keyCode}),i),h(e,"keypress",(function(e){return p(n,e,o)}),i)):(a=null,h(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=p(n,e,e.keyCode);return a=e.defaultPrevented,t}),i),h(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)}),i),h(e,"keyup",(function(e){s[e.keyCode]=null}),i),s||(g(),h(window,"focus",g)))},"object"==typeof window&&window.postMessage&&!r.isOldIE&&(d=1,t.nextTick=function(e,n){n=n||window;var i="zero-timeout-message-"+d++;h(n,"message",(function o(r){r.data==i&&(t.stopPropagation(r),f(n,"message",o),e())})),n.postMessage(i,"*")}),t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";function i(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}}(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t=e.end;e=e.start;return 1==(t=this.compare(t.row,t.column))?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){return-1==(e=this.compareRange(e))||0==e||1==e},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){var n,o;return this.end.row>t?n={row:t+1,column:0}:this.end.row<e&&(n={row:e,column:0}),this.start.row>t?o={row:t+1,column:0}:this.start.row<e&&(o={row:e,column:0}),i.fromPoints(o||this.start,n||this.end)},this.extend=function(e,t){var n,o,r=this.compare(e,t);return 0==r?this:(-1==r?n={row:e,column:t}:o={row:e,column:t},i.fromPoints(n||this.start,o||this.end))},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start);e=e.documentToScreenPosition(this.end);return new i(t.row,t.column,e.row,e.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";0<t;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t,n={};for(t in e)n[t]=e[t];return n},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;if(Array.isArray(t))for(var n=[],i=0;i<t.length;i++)n[i]=e(t[i]);else{if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var i in n={},t)n[i]=e(t[i])}return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t,n=Object.create(null);for(t in e)n[t]=e[t];return n},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){function t(){i=null,e()}function n(e){return n.cancel(),i=setTimeout(t,e||0),n}var i=null;return(n.schedule=n).call=function(){return this.cancel(),e(),n},n.cancel=function(){return clearTimeout(i),i=null,n},n.isPending=function(){return i},n},t.delayedCall=function(e,t){function n(){o=null,e()}function i(e){null==o&&(o=setTimeout(n,e||t))}var o=null;return i.delay=function(e){o&&clearTimeout(o),o=setTimeout(n,e||t)},(i.schedule=i).call=function(){this.cancel(),e()},i.cancel=function(){o&&clearTimeout(o),o=null},i.isPending=function(){return o},i}})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=e("../lib/dom"),s=e("../lib/lang"),a=e("../clipboard"),l=o.isChrome<18,c=o.isIE,u=63<o.isChrome,d=e("../lib/keys"),h=d.KEY_MODS,f=o.isIOS,p=f?/\s/:/\n/,g=o.isMobile;t.TextInput=function(e,t){var n=r.createElement("textarea"),m=(n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild),!1),b=!1,v=!1,y=!1,w="",x=(g||(n.style.fontSize="1px"),!1),k=!1,_="",C=0,S=0,A=0;try{var E=document.activeElement===n}catch(e){}function O(e){D(e,!0)}function T(e){D(e,!1)}function $(e){var r=I(e);a.pasteCancelled()||("string"==typeof r?(r&&t.onPaste(r,e),o.isIE&&setTimeout(L),i.preventDefault(e)):(n.value="",b=!0))}i.addListener(n,"blur",(function(e){k||(t.onBlur(e),E=!1)}),t),i.addListener(n,"focus",(function(e){if(!k){if(E=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(L):L()}}),t),this.$focusScroll=!1,this.focus=function(){if(w||u||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(e){return}var i=[];if(t)for(var o=n.parentElement;o&&1==o.nodeType;)i.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;n.focus({preventScroll:!0}),t&&i.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return E},t.on("beforeEndOperation",(function(){var e=t.curOp,i=e&&e.command&&e.command.name;"insertstring"!=i&&(i=i&&(e.docChanged||e.selectionChanged),v&&i&&(_=n.value="",F()),L())}));var L=f?function(e){var i;!E||m&&!e||y||((i="\n ab"+(e=e||"")+"cde fg\n")!=n.value&&(n.value=_=i),i=4+(e.length||(t.selection.isEmpty()?0:1)),4==C&&S==i||n.setSelectionRange(4,i),C=4,S=i)}:function(){if(!v&&!y&&(E||M)){v=!0;var e,i,o=0,r=0,s="",a=(t.session&&(a=(e=t.selection).getRange(),e=e.cursor.row,o=a.start.column,r=a.end.column,s=t.session.getLine(e),a.start.row!=e?(i=t.session.getLine(e-1),o=a.start.row<e-1?0:o,r+=i.length+1,s=i+"\n"+s):a.end.row!=e?(i=t.session.getLine(e+1),r=a.end.row>e+1?i.length:r,r+=s.length+1,s=s+"\n"+i):g&&0<e&&(s="\n"+s,r+=1,o+=1),400<s.length&&(o<400&&r<400?s=s.slice(0,400):(s="\n",o==r?o=r=0:(o=0,r=1)))),s+"\n\n");if(a!=_&&(n.value=_=a,C=S=a.length),M&&(C=n.selectionStart,S=n.selectionEnd),S!=r||C!=o||n.selectionEnd!=S)try{n.setSelectionRange(o,r),C=o,S=r}catch(e){}v=!1}},R=(this.resetSelection=L,E&&t.onFocus(),function(e){return 0===e.selectionStart&&e.selectionEnd>=_.length&&e.value===_&&_&&e.selectionEnd!==S}),q=null,M=(this.setInputHandler=function(e){q=e},!(this.getInputHandler=function(){return q})),P=function(e,i){if(M=M&&!1,b)return L(),e&&t.onPaste(e),b=!1,"";for(var r=n.selectionStart,s=n.selectionEnd,a=C,l=_.length-S,c=e,u=e.length-r,d=e.length-s,h=0;0<a&&_[h]==e[h];)h++,a--;for(c=c.slice(h),h=1;0<l&&_.length-h>C-1&&_[_.length-h]==e[e.length-h];)h++,l--;u-=h-1,d-=h-1;var f=c.length-h+1;return f<0&&(a=-f,f=0),c=c.slice(0,f),i||c||u||a||l||d?(f=!(y=!0),o.isAndroid&&". "==c&&(c=" ",f=!0),c&&!a&&!l&&!u&&!d||x?t.onTextInput(c):t.onTextInput(c,{extendLeft:a,extendRight:l,restoreStart:u,restoreEnd:d}),y=!1,_=e,C=r,S=s,A=d,f?"\n":c):""},N=function(e){if(v)return j();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}e=n.value;var i=P(e,!0);(500<e.length||p.test(i)||g&&C<1&&C==S)&&L()},I=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!l){var o=c||n?"Text":"text/plain";try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return I(e,t,!0)}}},D=function(e,o){var r=t.getCopyText();if(!r)return i.preventDefault(e);I(e,r)?(f&&(L(r),m=r,setTimeout((function(){m=!1}),10)),o?t.onCut():t.onCopy(),i.preventDefault(e)):(m=!0,n.value=r,n.select(),setTimeout((function(){m=!1,L(),o?t.onCut():t.onCopy()})))},j=(i.addCommandKeyListener(n,t.onCommandKey.bind(t),t),i.addListener(n,"select",(function(e){v||(m?m=!1:R(n)?(t.selectAll(),L()):g&&n.selectionStart!=C&&L())}),t),i.addListener(n,"input",N,t),i.addListener(n,"cut",O,t),i.addListener(n,"copy",T,t),i.addListener(n,"paste",$,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:T(e);break;case 86:$(e);break;case 88:O(e)}}),t),function(){var e;if(v&&t.onCompositionUpdate&&!t.$readOnly)return x?B():void(v.useTextareaForIME?t.onCompositionUpdate(n.value):(e=n.value,P(e),v.markerRange&&(v.context&&(v.markerRange.start.column=v.selectionStart=v.context.compositionStartOffset),v.markerRange.end.column=v.markerRange.start.column+S-v.selectionStart+A)))}),F=function(e){t.onCompositionEnd&&!t.$readOnly&&(v=!1,t.onCompositionEnd(),t.off("mousedown",B),e&&N())};function B(){k=!0,n.blur(),n.focus(),k=!1}var z,W=s.delayedCall(j,50).schedule.bind(null,null);function H(){clearTimeout(z),z=setTimeout((function(){w&&(n.style.cssText=w,w=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}function U(e){t.textInput.onContextMenu(e),H()}if(i.addListener(n,"compositionstart",(function(e){v||!t.onCompositionStart||t.$readOnly||(v={},x||(e.data&&(v.useTextareaForIME=!1),setTimeout(j,0),t._signal("compositionStart"),t.on("mousedown",B),(e=t.getSelectionRange()).end.row=e.start.row,e.end.column=e.start.column,v.markerRange=e,v.selectionStart=C,t.onCompositionStart(v),v.useTextareaForIME?(_=n.value="",S=C=0):(n.msGetInputContext&&(v.context=n.msGetInputContext()),n.getInputContext&&(v.context=n.getInputContext()))))}),t),i.addListener(n,"compositionupdate",j,t),i.addListener(n,"keyup",(function(e){27==e.keyCode&&n.value.length<n.selectionStart&&(v||(_=n.value),C=S=-1,L()),W()}),t),i.addListener(n,"keydown",W,t),i.addListener(n,"compositionend",F,t),this.getElement=function(){return n},this.setCommandMode=function(e){x=e,n.readOnly=!1},this.setReadOnly=function(e){x||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){M=!0,L(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){function a(e){r.translate(n,e.clientX-u-2,Math.min(e.clientY-c-2,d))}w=w||n.style.cssText,n.style.cssText=(s?"z-index:100000;":"")+(o.isIE?"opacity:0.1;":"")+"text-indent: -"+(C+S)*t.renderer.characterWidth*.5+"px;";s=t.container.getBoundingClientRect();var l=r.computedStyle(t.container),c=s.top+(parseInt(l.borderTopWidth)||0),u=s.left+(parseInt(s.borderLeftWidth)||0),d=s.bottom-c-n.clientHeight-2;a(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(z),o.isWin&&i.capture(t.container,a,H))},this.onContextMenuClose=H,i.addListener(n,"mouseup",U,t),i.addListener(n,"mousedown",(function(e){e.preventDefault(),H()}),t),i.addListener(t.renderer.scroller,"contextmenu",U,t),i.addListener(n,"contextmenu",U,t),f){var V=t,K=n;function G(e){var t,n,i,o;document.activeElement!==K||X||v||V.$mouseHandler.isMousePressed||m||(t=K.selectionStart,n=K.selectionEnd,i=null,(o=0)==t?i=d.up:1==t?i=d.home:S<n&&"\n"==_[n]?i=d.end:t<C&&" "==_[t-1]?(i=d.left,o=h.option):t<C||t==C&&S!=C&&t==n?i=d.left:S<n&&2<_.slice(0,n).split("\n").length?i=d.down:S<n&&" "==_[n-1]?(i=d.right,o=h.option):(S<n||n==S&&S!=C&&t==n)&&(i=d.right),t!==n&&(o|=h.shift),i&&(!V.onCommandKey({},o,i)&&V.commands&&(i=d.keyCodeToString(i),(o=V.commands.findKeyCommand(o,i))&&V.execCommand(o)),C=t,S=n,L("")))}var Y=null,X=!1;K.addEventListener("keydown",(function(e){Y&&clearTimeout(Y),X=!0}),!0),K.addEventListener("keyup",(function(e){Y=setTimeout((function(){X=!1}),100)}),!0),document.addEventListener("selectionchange",G),V.on("destroy",(function(){document.removeEventListener("selectionchange",G)}))}},t.$setUserAgentForTests=function(e,t){g=e,f=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/useragent");function o(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function r(e,t){return(e.start.row==e.end.row?2*t.column-e.start.column-e.end.column:e.start.row!=e.end.row-1||e.start.column||e.end.column?2*t.row-e.start.row-e.end.row:t.column-4)<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition(),o=(this.mousedownEvent=e,this.editor),r=e.getButton();return 0!==r?(!o.getSelectionRange().isEmpty()&&1!=r||o.selection.moveToPosition(n),void(2==r&&(o.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,1<e.domEvent._clicks),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(e=-1==(e=this.$clickSelection.comparePoint(n))?this.$clickSelection.end:1==e?this.$clickSelection.start:(n=(e=r(this.$clickSelection,n)).cursor,e.anchor),t.selection.setSelectionAnchor(e.row,e.column)),t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n,i,o=this.editor,s=o.renderer.screenToTextCoordinates(this.x,this.y);e=o.selection[e](s.row,s.column);this.$clickSelection&&(n=this.$clickSelection.comparePoint(e.start),t=this.$clickSelection.comparePoint(e.end),-1==n&&t<=0?(i=this.$clickSelection.end,e.end.row==s.row&&e.end.column==s.column||(s=e.start)):1==t&&0<=n?(i=this.$clickSelection.start,e.start.row==s.row&&e.start.column==s.column||(s=e.end)):i=-1==n&&1==t?(s=e.end,e.start):(s=(n=r(this.$clickSelection,s)).cursor,n.anchor),o.selection.setSelectionAnchor(i.row,i.column)),o.selection.selectToPosition(s),o.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){i=this.mousedownEvent.x,e=this.mousedownEvent.y,n=this.x,t=this.y;var e,t,n=Math.sqrt(Math.pow(n-i,2)+Math.pow(t-e,2)),i=Date.now();(0<n||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){e=e.getDocumentPosition();var t=this.editor,n=t.session.getBracketRange(e);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},this.onTripleClick=function(e){e=e.getDocumentPosition();var t=this.editor,n=(this.setState("selectByLines"),t.getSelectionRange());n.isMultiLine()&&n.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(n.start.row),this.$clickSelection.end=t.selection.getLineRange(n.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){var t,n,i,o,r,s,a;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),n=this.$lastScroll,o=(s=(i=e.domEvent.timeStamp)-n.t)?e.wheelX/s:n.vx,r=s?e.wheelY/s:n.vy,s<550&&(o=(o+n.vx)/2,r=(r+n.vy)/2),a=!1,1<=(s=Math.abs(o/r))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(a=!0),(a=!!(s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed))||a)?n.allowed=i:i-n.allowed<550&&(Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(r)<=1.5*Math.abs(n.vy)?(a=!0,n.allowed=i):n.allowed=0),n.t=i,n.vx=o,n.vy=r,a?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}).call(o.prototype),t.DefaultHandlers=o})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/event"),s=e("../tooltip").Tooltip;function a(e){s.call(this,e)}o.inherits(a,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();n<(e+=15)+o&&(e-=e+o-n),i<(t+=15)+r&&(t-=20+r),s.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=function(e){var t,n,o,s=e.editor,l=s.renderer.$gutterLayer,c=new a(s.container);function u(){t=t&&clearTimeout(t),o&&(c.hide(),o=null,s._signal("hideGutterTooltip",c),s.off("mousewheel",u))}function d(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(s.isFocused()&&0==t.getButton()&&"foldWidgets"!=(n=l.getRegion(t))){var n=t.getDocumentPosition().row,i=s.session.selection;if(t.getShiftKey())i.selectTo(n,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(r){var a=r.domEvent.target||r.domEvent.srcElement;if(i.hasCssClass(a,"ace_fold-widget"))return u();o&&e.$tooltipFollowsMouse&&d(r),n=r,t=t||setTimeout((function(){t=null,(n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,i=l.$annotations[t];if(!i)return u();if(t==s.session.getLength()){t=s.renderer.pixelToScreenCoordinates(0,n.y).row;var r=n.$pos;if(t>s.session.documentToScreenRow(r.row,r.column))return u()}o!=i&&(o=i.text.join("<br/>"),c.setHtml(o),c.show(),s._signal("showGutterTooltip",c),s.on("mousewheel",u),e.$tooltipFollowsMouse?d(n):(t=n.domEvent.target.getBoundingClientRect(),(r=c.getElement().style).left=t.right+"px",r.top=t.bottom+"px"))}:u)()}),50)})),r.addListener(s.renderer.$gutter,"mouseout",(function(e){n=null,o&&!t&&(t=setTimeout((function(){t=null,u()}),50))}),s),s.on("changeSession",u)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent");e=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(e.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/event"),r=e("../lib/useragent");function s(e){var t,n,s,l,c,u,d,h,f,p,g,m=e.editor,b=i.createElement("div"),v=(b.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",b.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),m.on("mousedown",this.onMouseDown.bind(e)),m.container),y=0;function w(){var e,t,i,o,r,l,c,d,h=u;i=u=m.renderer.screenToTextCoordinates(n,s),t=h,o=Date.now(),e=!t||i.row!=t.row,t=!t||i.column!=t.column,!p||e||t?(m.moveCursorToPosition(i),p=o,g={x:n,y:s}):5<a(g.x,g.y,n,s)?p=null:200<=o-p&&(m.renderer.scrollCursorIntoView(),p=null),e=u,t=h,i=Date.now(),o=m.renderer.layerConfig.lineHeight,h=m.renderer.layerConfig.characterWidth,r=m.renderer.scroller.getBoundingClientRect(),r={x:{left:n-r.left,right:r.right-n},y:{top:s-r.top,bottom:r.bottom-s}},l=Math.min(r.x.left,r.x.right),c=Math.min(r.y.top,r.y.bottom),d={row:e.row,column:e.column},l/h<=2&&(d.column+=r.x.left<r.x.right?-3:2),c/o<=1&&(d.row+=r.y.top<r.y.bottom?-1:1),l=e.row!=d.row,h=e.column!=d.column,c=!t||e.row!=t.row,l||h&&!c?f?200<=i-f&&m.renderer.scrollCursorIntoView(d):f=i:f=null}function x(){c=m.selection.toOrientedRange(),t=m.session.addMarker(c,"ace_selection",m.getSelectionStyle()),m.clearSelection(),m.isFocused()&&m.renderer.$cursorLayer.setBlinking(!1),clearInterval(l),w(),l=setInterval(w,20),y=0,o.addListener(document,"mousemove",C)}function k(){clearInterval(l),m.session.removeMarker(t),t=null,m.selection.fromOrientedRange(c),m.isFocused()&&!h&&m.$resetCursorStyle(),y=0,p=f=u=c=null,o.removeListener(document,"mousemove",C)}this.onDragStart=function(e){var t;if(this.cancelDrag||!v.draggable)return t=this,setTimeout((function(){t.startSelect(),t.captureMouse(e)}),0),e.preventDefault();c=m.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=m.getReadOnly()?"copy":"copyMove",m.container.appendChild(b),n.setDragImage&&n.setDragImage(b,0,0),setTimeout((function(){m.container.removeChild(b)})),n.clearData(),n.setData("Text",m.session.getTextRange()),h=!0,this.setState("drag")},this.onDragEnd=function(e){v.draggable=!1,h=!1,this.setState(null),m.getReadOnly()||(e=e.dataTransfer.dropEffect,d||"move"!=e||m.session.remove(m.getSelectionRange()),m.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!m.getReadOnly()&&S(e.dataTransfer))return n=e.clientX,s=e.clientY,t||x(),y++,e.dataTransfer.dropEffect=d=A(e),o.preventDefault(e)},this.onDragOver=function(e){if(!m.getReadOnly()&&S(e.dataTransfer))return n=e.clientX,s=e.clientY,t||(x(),y++),null!==_&&(_=null),e.dataTransfer.dropEffect=d=A(e),o.preventDefault(e)},this.onDragLeave=function(e){if(--y<=0&&t)return k(),d=null,o.preventDefault(e)},this.onDrop=function(e){if(u){var t=e.dataTransfer;if(h)switch(d){case"move":c=c.contains(u.row,u.column)?{start:u,end:u}:m.moveText(c,u);break;case"copy":c=m.moveText(c,u,!0)}else t=t.getData("Text"),c={start:u,end:m.session.insert(u,t)},m.focus(),d=null;return k(),o.preventDefault(e)}},o.addListener(v,"dragstart",this.onDragStart.bind(e),m),o.addListener(v,"dragend",this.onDragEnd.bind(e),m),o.addListener(v,"dragenter",this.onDragEnter.bind(e),m),o.addListener(v,"dragover",this.onDragOver.bind(e),m),o.addListener(v,"dragleave",this.onDragLeave.bind(e),m),o.addListener(v,"drop",this.onDrop.bind(e),m);var _=null;function C(){null==_&&(_=setTimeout((function(){null!=_&&t&&k()}),20))}function S(e){return!(e=e.types)||Array.prototype.some.call(e,(function(e){return"text/plain"==e||"Text"==e}))}function A(e){var t=["copy","copymove","all","uninitialized"],n=r.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return n&&0<=t.indexOf(i)?o="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(i)?o="move":0<=t.indexOf(i)&&(o="copy"),o}}function a(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),r.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;r.isIE&&"dragReady"==this.state&&3<a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&t.dragDrop(),"dragWait"===this.state&&0<a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){var t,n,i;this.$dragEnabled&&(this.mousedownEvent=e,t=this.editor,n=e.inSelection(),i=e.getButton(),1!==(e.domEvent.detail||1)||0!==i||!n||e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey())||(this.mousedownEvent.time=Date.now(),"unselectable"in(i=e.domEvent.target||e.domEvent.srcElement)&&(i.unselectable="on"),t.getDragDelay()?(r.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0))}}).call(s.prototype),t.DragdropHandler=s})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./mouse_event").MouseEvent,o=e("../lib/event"),r=e("../lib/dom");t.addTouchListeners=function(e,t){var n,s,a,l,c,u,d,h,f,p="scroll",g=0,m=0,b=0,v=0;function y(){f||function(){function e(e){var o,s=e.target.getAttribute("action");if("more"==s||!i)return i=!i,e=t.getCopyText(),o=t.session.getUndoManager().hasUndo(),void f.replaceChild(r.buildDom(i?["span",!e&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],e&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],e&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],n&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],o&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),f.firstChild);"paste"==s?n.readText().then((function(e){t.execCommand(s,e)})):s&&("cut"!=s&&"copy"!=s||(n?n.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(s)),f.firstChild.style.display="none",i=!1,"openCommandPallete"!=s&&t.focus()}var n=window.navigator&&window.navigator.clipboard,i=!1;f=r.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(t){t.stopPropagation(),t.preventDefault(),e(t)},onclick:e},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}();var e=t.selection.cursor,n=(e=t.renderer.textToScreenCoordinates(e.row,e.column),t.renderer.textToScreenCoordinates(0,0).pageX),i=t.renderer.scrollLeft,o=t.container.getBoundingClientRect();f.style.top=e.pageY-o.top-3+"px",e.pageX-o.left<o.width-70?(f.style.left="",f.style.right="10px"):(f.style.right="",f.style.left=n+i-o.left+"px"),f.style.display="",f.firstChild.style.display="none",t.on("input",w)}function w(e){f&&(f.style.display="none"),t.off("input",w)}function x(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(d.row,d.column);!e.isEmpty()&&n||(t.selection.moveToPosition(d),t.selection.selectWord()),p="wait",y()}o.addListener(e,"contextmenu",(function(e){h&&t.textInput.getElement().focus()}),t),o.addListener(e,"touchstart",(function(e){var o=e.touches;if(c||1<o.length)return clearTimeout(c),c=null,a=-1,void(p="zoom");h=t.$mouseHandler.isMousePressed=!0;var r=t.renderer.layerConfig.lineHeight,u=t.renderer.layerConfig.lineHeight,f=e.timeStamp,y=(w=(l=f,o[0])).clientX,w=w.clientY;Math.abs(n-y)+Math.abs(s-w)>r&&(a=-1),n=e.clientX=y,s=e.clientY=w,b=v=0,y=new i(e,t);if(d=y.getDocumentPosition(),f-a<500&&1==o.length&&!g)m++,e.preventDefault(),e.button=0,c=null,clearTimeout(c),t.selection.moveToPosition(d),(w=2<=m?t.selection.getLineRange(d.row):t.session.getBracketRange(d))&&!w.isEmpty()?t.selection.setRange(w):t.selection.selectWord(),p="wait";else{m=0;y=t.selection.cursor,o=t.selection.isEmpty()?y:t.selection.anchor,w=t.renderer.$cursorLayer.getPixelPosition(y,!0),y=t.renderer.$cursorLayer.getPixelPosition(o,!0),o=t.renderer.scroller.getBoundingClientRect();var k=t.renderer.layerConfig.offset,_=t.renderer.scrollLeft,C=function(e,t){return(e/=u)*e+(t=t/r-.75)*t};if(e.clientX<o.left)return void(p="zoom");w=C(e.clientX-o.left-w.left+_,e.clientY-o.top-w.top+k),C=C(e.clientX-o.left-y.left+_,e.clientY-o.top-y.top+k),w<3.5&&C<3.5&&(p=C<w?"cursor":"anchor"),p=C<3.5?"anchor":w<3.5?"cursor":"scroll",c=setTimeout(x,450)}a=f}),t),o.addListener(e,"touchend",(function(e){h=t.$mouseHandler.isMousePressed=!1,u&&clearInterval(u),"zoom"==p?(p="",g=0):c?(t.selection.moveToPosition(d),g=0,y()):"scroll"==p?(g+=60,u=setInterval((function(){g--<=0&&(clearInterval(u),u=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),g<20&&(b*=.9),g<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(g=0)}),10),w()):y(),clearTimeout(c),c=null}),t),o.addListener(e,"touchmove",(function(e){if(c&&(clearTimeout(c),c=null),!(1<(o=e.touches).length||"zoom"==p)){var o=o[0],r=n-o.clientX,a=s-o.clientY;if("wait"==p){if(!(4<r*r+a*a))return e.preventDefault();p="cursor"}n=o.clientX,s=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var u=(o=e.timeStamp)-l;l=o,"scroll"==p?((o=new i(e,t)).speed=1,o.wheelX=r,o.wheelY=a,10*Math.abs(r)<Math.abs(a)&&(r=0),10*Math.abs(a)<Math.abs(r)&&(a=0),0!=u&&(b=r/u,v=a/u),t._emit("mousewheel",o),o.propagationStopped||(b=v=0)):(r=new i(e,t).getDocumentPosition(),"cursor"==p?t.selection.moveCursorToPosition(r):"anchor"==p&&t.selection.setSelectionAnchor(r.row,r.column),t.renderer.scrollCursorIntoView(r),e.preventDefault())}}),t)}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=i.getDocumentHead(),o=document.createElement("script");o.src=e,n.appendChild(o),o.onload=o.onreadystatechange=function(e,n){!n&&o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(o=o.onload=o.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";function i(){this.propagationStopped=!0}function o(){this.defaultPrevented=!0}var r={};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){(t="object"==typeof t&&t?t:{}).type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o);n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){if(n=(this._eventRegistry||{})[e])for(var n=n.slice(),i=0;i<n.length;i++)n[i](t,this)},r.once=function(e,t){var n=this;if(this.on(e,(function i(){n.off(e,i),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n,i,o=this._defaultHandlers;(o=o||(this._defaultHandlers={_disabled_:{}}))[e]&&(i=o[e],(n=o._disabled_[e])||(o._disabled_[e]=n=[]),n.push(i),-1!=(i=n.indexOf(t))&&n.splice(i,1)),o[e]=t},r.removeDefaultHandler=function(e,t){var n,i=this._defaultHandlers;i&&(n=i._disabled_[e],i[e]==t?n&&this.setDefaultHandler(e,n.pop()):n&&-1!=(i=n.indexOf(t))&&n.splice(i,1))},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return-1==(i=i||(this._eventRegistry[e]=[])).indexOf(t)&&i[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{},!(e=this._eventRegistry[e])||-1!==(t=e.indexOf(t))&&e.splice(t,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var i=e("./oop"),o=e("./event_emitter").EventEmitter,r={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t,n={};return e?Array.isArray(e)||(n=e,e=Object.keys(n)):(t=this.$options,e=Object.keys(t).filter((function(e){return!t[e].hidden}))),e.forEach((function(e){n[e]=this.getOption(e)}),this),n},setOption:function(e,t){var n;if(this["$"+e]!==t)return(n=this.$options[e])?n.forwardTo?this[n.forwardTo]&&this[n.forwardTo].setOption(e,t):(n.handlesSet||(this["$"+e]=t),void(n&&n.set&&n.set.call(this,t))):s('misspelled option "'+e+'"')},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:s('misspelled option "'+e+'"')}};function s(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function a(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}function l(){this.$defaultOptions={}}(function(){i.implement(this,o),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var i=n[t];(i="string"==typeof i?{forwardTo:i}:i).name||(i.name=t),"initialValue"in(e.$options[i.name]=i)&&(e["$"+i.name]=i.initialValue)})),i.implement(e,r),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=s,this.reportError=a}).call(l.prototype),t.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/dom","ace/lib/app_config"],(function(e,t,i){var o=e("./lib/lang"),r=(e("./lib/oop"),e("./lib/net")),s=e("./lib/dom"),a=e("./lib/app_config").AppConfig,l=(i.exports=t=new a,function(){return this||"undefined"!=typeof window&&window}()),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null},u=(t.get=function(e){if(c.hasOwnProperty(e))return c[e];throw new Error("Unknown config key: "+e)},t.set=function(e,t){if(c.hasOwnProperty(e))c[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&s.useStrictCSP(t)},t.all=function(){return o.copyObject(c)},t.$modes={},t.moduleUrl=function(e,t){if(c.$moduleUrls[e])return c.$moduleUrls[e];e=e.split("/");var n="snippets"==(t=t||e[e.length-2]||"")?"/":"-",i=e[e.length-1],o=("worker"==t&&"-"==n&&(o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g"),i=i.replace(o,"")),(!i||i==t)&&1<e.length&&(i=e[e.length-2]),c[t+"Path"]);return null==o?o=c.basePath:"/"==n&&(t=n=""),o&&"/"!=o.slice(-1)&&(o+="/"),o+t+n+i+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,i){var o,s;Array.isArray(n)&&(s=n[0],n=n[1]);try{o=e(n)}catch(i){}if(o&&!t.$loading[n])return i&&i(o);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(i),!(1<t.$loading[n].length)){function a(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var i=t.$loading[n];t.$loading[n]=null,i.forEach((function(t){t&&t(e)}))}))}if(!t.get("packaged"))return a();r.loadScript(t.moduleUrl(n,s),a),u()}},function(){c.basePath||c.workerPath||c.modePath||c.themePath||Object.keys(c.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})});function d(o){if(l&&l.document){c.packaged=o||e.packaged||i.packaged||l.define&&n(12).packaged;for(var r,s={},a="",u=((o=document.currentScript||document._currentScript)&&o.ownerDocument||document).getElementsByTagName("script"),d=0;d<u.length;d++){var h=u[d],f=h.src||h.getAttribute("src");if(f){for(var p=h.attributes,g=0,m=p.length;g<m;g++){var b=p[g];0===b.name.indexOf("data-ace-")&&(s[b.name.replace(/^data-ace-/,"").replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))]=b.value)}(h=f.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/))&&(a=h[1])}}for(r in a&&(s.base=s.base||a,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)void 0!==s[r]&&t.set(r,s[r])}}d(!0),t.init=d,t.version="1.4.13"})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(e,t,n){"use strict";function i(e){function t(t){document.hasFocus&&document.hasFocus()&&(e.isFocused()||document.activeElement!=(e.textInput&&e.textInput.getElement()))||window.focus(),e.focus()}var n=this,i=(this.editor=e,new s(this),new a(this),new c(this),e.renderer.getMouseEventTarget()),l=(o.addListener(i,"click",this.onMouseEvent.bind(this,"click"),e),o.addListener(i,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),o.addMultiMouseDownListener([i,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),o.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),u(e.container,e),e.renderer.$gutter);o.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),o.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick"),e),o.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),o.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),o.addListener(i,"mousedown",t,e),o.addListener(l,"mousedown",t,e),r.isIE&&e.renderer.scrollBarV&&(o.addListener(e.renderer.scrollBarV.element,"mousedown",t,e),o.addListener(e.renderer.scrollBarH.element,"mousedown",t,e)),e.on("mousemove",(function(t){var i,o;n.state||n.$dragDelay||!n.$dragEnabled||(t=e.renderer.screenToTextCoordinates(t.x,t.y),i=e.session.selection.getRange(),o=e.renderer,!i.isEmpty()&&i.insideStart(t.row,t.column)?o.setCursorStyle("default"):o.setCursorStyle(""))}),e)}var o=e("../lib/event"),r=e("../lib/useragent"),s=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,l=e("./mouse_event").MouseEvent,c=e("./dragdrop_handler").DragdropHandler,u=e("./touch_handler").addTouchListeners;e=e("../config");(function(){this.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new l(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new l(t,this.editor))},this.onMouseWheel=function(e,t){var n=new l(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){function n(e){if(e){if(r.isWebKit&&!e.which&&u.releaseMouse)return u.releaseMouse();u.x=e.clientX,u.y=e.clientY,t&&t(e),u.mouseEvent=new l(e,u.editor),u.$mouseMoved=!0}}function i(e){a.off("beforeEndOperation",d),clearInterval(h),a.session&&s(),u[u.state+"End"]&&u[u.state+"End"](e),u.state="",u.isMousePressed=c.$isMousePressed=!1,c.$keepTextAreaAtCursor&&c.$moveTextAreaToCursor(),u.$onCaptureMouseMove=u.releaseMouse=null,e&&u.onMouseEvent("mouseup",e),a.endOperation()}function s(){u[u.state]&&u[u.state](),u.$mouseMoved=!1}this.x=e.x,this.y=e.y,this.isMousePressed=!0;var a=this.editor,c=this.editor.renderer,u=(c.$isMousePressed=!0,this);if(r.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){i(e)}));var d=function(e){u.releaseMouse&&a.curOp.command.name&&a.curOp.selectionChanged&&(u[u.state+"End"]&&u[u.state+"End"](),u.state="",u.releaseMouse())},h=(a.on("beforeEndOperation",d),a.startOperation({command:{name:"mouse"}}),u.$onCaptureMouseMove=n,u.releaseMouse=o.capture(this.editor.container,n,i),setInterval(s,20))},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&o.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(i.prototype),e.defineOptions(i.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:r.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=i})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom");t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),o=e.session;(n=((n=o.getFoldAt(n.row,n.column,1))&&(t.getAccelKey()?o.removeFold(n):o.expandFold(n),t.stop()),t.domEvent&&t.domEvent.target))&&i.hasCssClass(n,"ace_inline_button")&&i.hasCssClass(n,"ace_toggle_wrap")&&(o.setOption("wrap",!o.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){var n,i;"foldWidgets"==e.renderer.$gutterLayer.getRegion(t)&&(n=t.getDocumentPosition().row,(i=e.session).foldWidgets&&i.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop())})),e.on("gutterdblclick",(function(t){var n,i,o;"foldWidgets"==e.renderer.$gutterLayer.getRegion(t)&&(o=t.getDocumentPosition().row,(i=(i=(n=e.session).getParentFoldRangeData(o,!0)).range||i.firstRange)&&(o=i.start.row,(o=n.getFoldAt(o,n.getLine(o).length,1))?n.removeFold(o):(n.addFold("...",i),e.renderer.scrollCursorIntoView({row:i.start.row,column:0}))),t.stop())}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";function i(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}var o=e("../lib/keys"),r=e("../lib/event");(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){var n;e&&("function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e),-1!=(n=this.$handlers.indexOf(e))&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor))},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var o,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--&&!((o=this.$handlers[l].handleKeyboard(this.$data,e,t,n,i))&&o.command&&((s="null"==o.command||a.exec(o.command,this.$editor,o.args,i))&&i&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&r.stopEvent(i),s)););return s||-1!=e||(o={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),s},this.onCommandKey=function(e,t,n){var i=o.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(i.prototype),t.KeyBinding=i})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var i=0,o=0,r=!1,s=!1,a=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=11,d=18,h=[d,d,d,d,d,d,d,d,d,6,5,6,8,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,5,5,5,6,8,4,4,u,u,u,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,d,d,d,d,d,d,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,9,4,u,u,u,u,4,4,4,4,0,4,4,d,4,4,u,u,2,2,4,0,4,4,4,2,0,4,4,4,4,4],f=[8,8,8,8,8,8,8,8,8,8,8,d,d,d,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,u,u,u,u,u,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function p(e,t,n){if(!(o<e))if(1!=e||1!=i||s)for(var r,a,l,c,u=n.length,d=0;d<u;){if(t[d]>=e){for(r=d+1;r<u&&t[r]>=e;)r++;for(a=d,l=r-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;d=r}d++}else n.reverse()}function g(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?191<t?0:h[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?u:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?f[255&t]:254==n&&65136<=t?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,h){if(e.length<2)return{};var f=e.split(""),m=new Array(f.length),b=new Array(f.length),v=[];i=h?1:0,function(e,t,n,h){var f,p,m,b=i?c:l,v=0,y=-1,w=null,x=null,k=[];if(!h)for(w=0,h=[];w<n;w++)h[w]=g(e[w]);for(o=i,a=s=r=!1,x=0;x<n;x++){if(m=v,k[x]=f=function(e,t,n,o){var l,c,h,f=t[o];switch(f){case 0:case 1:r=!1;case 4:case 3:return f;case 2:return r?3:2;case 7:return r=!0,1;case 8:return 4;case 9:return o<1||o+1>=t.length||2!=(l=n[o-1])&&3!=l||2!=(p=t[o+1])&&3!=p?4:(p=r?3:p)==l?p:4;case 10:return 2==(l=0<o?n[o-1]:5)&&o+1<t.length&&2==t[o+1]?2:4;case u:if(0<o&&2==n[o-1])return 2;if(r)return 4;for(h=o+1,c=t.length;h<c&&t[h]==u;)h++;return h<c&&2==t[h]?2:4;case 12:for(c=t.length,h=o+1;h<c&&12==t[h];)h++;if(h<c){var p=1425<=(p=e[o])&&p<=2303||64286==p;if(l=t[h],p&&(1==l||7==l))return 1}return o<1||5==(l=t[o-1])?4:n[o-1];case 5:return s=!(r=!1),i;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:r=!1;case d:return 4}}(e,h,k,x),m=240&(v=b[m][f]),v&=15,t[x]=p=b[v][5],0<m)if(16==m){for(w=y;w<x;w++)t[w]=1;y=-1}else y=-1;if(b[v][6])-1==y&&(y=x);else if(-1<y){for(w=y;w<x;w++)t[w]=p;y=-1}5==h[x]&&(t[x]=0),o|=p}if(a)for(w=0;w<n;w++)if(6==h[w]){t[w]=i;for(var _=w-1;0<=_&&8==h[_];_--)t[_]=i}}(f,v,f.length,n);for(var y=0;y<m.length;m[y]=y,y++);for(p(2,v,m),p(1,v,m),y=0;y<m.length-1;y++)3===n[y]?v[y]=t.AN:1===v[y]&&(n[y]>7&&n[y]<13||4===n[y]||n[y]===d)?v[y]=t.ON_R:0<y&&"ل"===f[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(f[y])&&(v[y-1]=v[y]=t.R_H,y++);for(f[f.length-1]===t.DOT&&(v[f.length-1]=t.B),"‫"===f[0]&&(v[0]=t.RLE),y=0;y<m.length;y++)b[y]=v[m[y]];return{logicalFromVisual:m,bidiLevels:b}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=g(e.charAt(i)),n||1!=t[i]&&7!=t[i]&&3!=t[i]||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";function i(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=o,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=s.test(e.getValue())}var o=e("./lib/bidiutil"),r=e("./lib/lang"),s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&s.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;return t.length&&0<=(t=this.session.$getRowCacheIndex(t,this.currentRow))?this.session.$docRowCache[t]:e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);0<this.currentRow-e&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){var n,i=(e=void 0===e?this.getDocumentRow():e)===this.session.getLength()-1?this.EOF:this.EOL,s=(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode?((e=this.session.$wrapData[e])&&(0<(t=void 0===t?this.getSplitIndex():t)&&e.length?(this.wrapIndent=e.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=t<e.length?this.line.substring(e[t-1],e[t]):this.line.substring(e[e.length-1])):this.line=this.line.substring(0,e[t])),t==e.length&&(this.line+=this.showInvisibles?i:o.DOT)):this.line+=this.showInvisibles?i:o.DOT,this.session),a=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||s.isFullWidth(e.charCodeAt(0))?(n="\t"===e?s.getScreenTabSize(t+a):2,a+=n-1,r.stringRepeat(o.DOT,n)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==o.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];o.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=o.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){var t;this.characterWidth!==e.$characterSize.width&&(this.fontMetrics=e,t=this.characterWidth=e.$characterSize.width,e=e.$measureCharWidth("ה"),this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=t,this.charWidths[o.R]=this.charWidths[o.AN]=e,this.charWidths[o.R_H]=.45*e,this.charWidths[o.B]=this.charWidths[o.RLE]=0,this.currentRow=null)},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=t<e?this.session.getOverwrite()?e:e-1:t,i=o.getVisualFromLogicalIdx(n,this.bidiMap),r=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&r[i]%2!=0&&i++;for(var a=0;a<i;a++)s+=this.charWidths[r[a]];return!this.session.getOverwrite()&&t<e&&r[i]%2==0&&(s+=this.charWidths[r[i]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},this.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,d=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,f=0;f<o.length;f++)h=i.logicalFromVisual[f],n=o[f],(c=a<=h&&h<l)&&!u?d=s:!c&&u&&r.push({left:d,width:s-d}),s+=this.charWidths[n],u=c;if(c&&f===o.length&&r.push({left:d,width:s-d}),this.isRtlDir)for(var p=0;p<r.length;p++)r[p].left+=this.rtlLineOffset;return r},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o[i]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);n+r/2<e;){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o[++i]]}return 0===(t=0<i&&o[i-1]%2!=0&&o[i]%2==0?(e<n&&i--,this.bidiMap.logicalFromVisual[i]):0<i&&o[i-1]%2==0&&o[i]%2!=0?1+(n<e?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===r&&o[i-1]%2==0||!this.isRtlDir&&0===i&&o[i]%2!=0?1+this.bidiMap.logicalFromVisual[i]:(0<i&&o[i-1]%2!=0&&0!==r&&i--,this.bidiMap.logicalFromVisual[i]))&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(i.prototype),t.BidiHandler=i})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";function i(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))}var o=e("./lib/oop"),r=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,a=e("./range").Range;(function(){o.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start;t=t?e.start:e.end;this.$setSelection(n.row,n.column,t.row,t.column)},this.$setSelection=function(e,t,n,i){var o,r;this.$silent||(o=this.$isEmpty,r=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||r)&&this._emit("changeSelection"))},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var n;return void 0===t&&(e=(n=e||this.lead).row,t=n.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor();e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(e,t){e="number"==typeof e?e:this.lead.row;var n=(n=this.session.getFoldLine(e))?(e=n.start.row,n.end.row):e;return!0===t?new a(e,0,n,this.session.getLine(n).length):new a(e,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length):(e=this.session.getTabSize(),this.wouldMoveIntoSoftTab(t,e,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-e):this.moveCursorBy(0,-1))},this.moveCursorRight=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,1))?this.moveCursorTo(e.end.row,e.end.column):this.lead.column==this.doc.getLine(this.lead.row).length?this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0):(e=this.session.getTabSize(),t=this.lead,this.wouldMoveIntoSoftTab(t,e,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,e):this.moveCursorBy(0,1))},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t);n=this.session.screenToDocumentPosition(n,0);(e=this.session.getDisplayLine(e,null,n.row,n.column).match(/^\s*/))[0].length==t||this.session.$useEmacsStyleLineStart||(n.column+=e[0].length),this.moveCursorToPosition(n)},this.moveCursorLineEnd=function(){var e,t=this.lead;t=this.session.getDocumentLastRowColumnPosition(t.row,t.column);this.lead.column==t.column&&(e=this.session.getLine(t.row),t.column==e.length&&0<(e=e.search(/\s+$/))&&(t.column=e)),this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.getFoldAt(e,t,1));if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e=this.lead.row,t=this.lead.column;if(n=this.session.getFoldAt(e,t,-1))this.moveCursorTo(n.start.row,n.start.column);else{var n=(null==(n=this.session.getFoldStringAt(e,t,-1))&&(n=this.doc.getLine(e).substring(0,t)),r.stringReverse(n));if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(n)&&(t-=this.session.nonTokenRe.lastIndex,n=n.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),t<=0)return this.moveCursorTo(e,0),this.moveCursorLeft(),void(0<e&&this.moveCursorWordLeft());this.session.tokenRe.exec(n)&&(t-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&i.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e[n])&&!o.test(t);)if(o.lastIndex=0,n++,i.test(t)){if(2<n){n--;break}for(;(t=e[n])&&i.test(t);)n++;if(2<n)break}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){for(var r=this.doc.getLength();i=this.doc.getLine(++e),e<r&&/^\s*$/.test(i););/^\s+/.test(i)||(i=""),t=0}o=this.$shortWordEndIndex(i),this.moveCursorTo(e,t+o)},this.moveCursorShortWordLeft=function(){var e=this.lead.row,t=this.lead.column;if(i=this.session.getFoldAt(e,t,-1))return this.moveCursorTo(i.start.row,i.start.column);var n=this.session.getLine(e).substring(0,t);if(0===t){for(;n=this.doc.getLine(--e),0<e&&/^\s*$/.test(n););t=n.length,/\s+$/.test(n)||(n="")}var i=r.stringReverse(n);i=this.$shortWordEndIndex(i);return this.moveCursorTo(e,t-i)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o=(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]&&(o=this.session.lineWidgets[this.lead.row],e<0?e-=o.rowsAbove||0:0<e&&(e+=o.rowCount-(o.rowsAbove||0))),this.session.screenToDocumentPosition(i.row+e,i.column,n));0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=((i=this.session.getFoldAt(e,t,1))&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0,this.session.getLine(e));/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){e=this.session.screenToDocumentPosition(e,t),this.moveCursorTo(e.row,e.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){var e;return this.rangeCount?e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t})):(e=this.getRange()).isBackwards=this.isBackwards(),e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&1<e.length){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(i.prototype),t.Selection=i})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";function i(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c,u,d=n[l];d.defaultToken&&(r.defaultToken=d.defaultToken),d.caseInsensitive&&(s="gi"),null!=d.regex&&(d.regex instanceof RegExp&&(d.regex=d.regex.toString().slice(1,-1)),c=d.regex,u=new RegExp("(?:("+c+")|(.))").exec("a").length-2,Array.isArray(d.token)?1==d.token.length||1==u?d.token=d.token[0]:u-1!=d.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:d,groupCount:u-1}),d.token=d.token[0]):(d.tokenArray=d.token,d.token=null,d.onMatch=this.$arrayTokens):"function"!=typeof d.token||d.onMatch||(d.onMatch=1<u?this.$applyToken:d.token),1<u&&(c=/\\\d/.test(d.regex)?d.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(u=1,this.removeCapturingGroups(d.regex)),d.splitRegex||"string"==typeof d.token||a.push(d)),r[o]=l,o+=u,i.push(c),d.onMatch||(d.onMatch=null))}i.length||(r[0]=0,i.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}}var o=e("./config"),r=2e3;(function(){this.$setMaxTokenCount=function(e){r=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;o<r;o++)t[o]&&(i[i.length]={type:n[o],value:t[o]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t[o+1]&&(n[n.length]={type:i[o],value:t[o+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,(function(e,t){return t?"(?:":e}))},this.createSplitterRegexp=function(e,t){var n,i,o;return-1!=e.indexOf("(?=")&&(n=0,i=!1,o={},e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,r,s,a,l){return i?i="]"!=a:a?i=!0:s?(n==o.stack&&(o.end=l+1,o.stack=-1),n--):r&&(n++,1!=r.length&&(o.stack=n,o.start=l)),e})),null!=o.end&&/^\)*$/.test(e.substr(o.end))&&(e=e.substring(0,o.start)+e.substr(o.end))),"$"!=(e="^"!=e.charAt(0)?"^"+e:e).charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){t&&"string"!=typeof t?"#tmp"===(t=(n=t.slice(0))[0])&&(n.shift(),t=n.shift()):n=[];for(var n,i,o=t||"start",s=(s=this.states[o])||this.states[o="start"],a=this.matchMappings[o],l=this.regExps[o],c=[],u=l.lastIndex=0,d=0,h={type:null,value:""};i=l.exec(e);){var f,p=a.defaultToken,g=null,m=i[0],b=l.lastIndex;b-m.length>u&&(f=e.substring(u,b-m.length),h.type==p?h.value+=f:(h.type&&c.push(h),h={type:p,value:f}));for(var v=0;v<i.length-2;v++)if(void 0!==i[v+1]){p=(g=s[a[v]]).onMatch?g.onMatch(m,o,n,e):g.token,g.next&&(o="string"==typeof g.next?g.next:g.next(o,n),(s=this.states[o])||(this.reportError("state doesn't exist",o),s=this.states[o="start"]),a=this.matchMappings[o],(l=this.regExps[o]).lastIndex=u=b),g.consumeLineEnd&&(u=b);break}if(m)if("string"==typeof p)g&&!1===g.merge||h.type!==p?(h.type&&c.push(h),h={type:p,value:m}):h.value+=m;else if(p)for(h.type&&c.push(h),h={type:null,value:""},v=0;v<p.length;v++)c.push(p[v]);if(u==e.length)break;if(u=b,d++>r){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u<e.length;)h.type&&c.push(h),h={value:e.substring(u,u+=500),type:"overflow"};o="start",n=[];break}}return h.type&&c.push(h),1<n.length&&n[0]!==o&&n.unshift("#tmp",o),{tokens:c,state:n.length?n:o}},this.reportError=o.reportError}).call(i.prototype),t.Tokenizer=i})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";function i(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}var o=e("../lib/lang");(function(){function e(e,t){return"start"==e&&!t.length||t.unshift(this.nextState,e),this.nextState}function t(e,t){return t.shift(),t.shift()||"start"}this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],o=0;o<i.length;o++){var r=i[o];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,r){if(e="function"==typeof e?(new e).getRules():e,i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var a in i=[],e)i.push(t+a);if(this.addRules(e,t),n){var l=Array.prototype[r?"push":"unshift"];for(s=0;s<i.length;s++)l.apply(this.$rules[i[s]],o.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds},this.normalizeRules=function(){var n=0,i=this.$rules;Object.keys(i).forEach((function o(r){var s=i[r];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null,u=(Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0),l.next||l.push);if(u&&Array.isArray(u)?((h=l.stateName)||("string"!=typeof(h=l.token)&&(h=h[0]||""),i[h]&&(h+=n++)),i[h]=u,o(l.next=h)):"pop"==u&&(l.next=t),l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var d in l.rules)i[d]?i[d].push&&i[d].push.apply(i[d],l.rules[d]):i[d]=l.rules[d];var h="string"==typeof l?l:l.include;(c=h?Array.isArray(h)?h.map((function(e){return i[e]})):i[h]:c)&&(u=[a,1].concat(c),l.noEscape&&(u=u.filter((function(e){return!e.next}))),s.splice.apply(s,u),a--),l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,i){var o=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var r=e[t].split(i||"|"),s=r.length;s--;){var a=r[s];this.$keywordList.push(a),n&&(a=a.toLowerCase()),o[a]=t}}),this),e=null,n?function(e){return o[e.toLowerCase()]||t}:function(e){return o[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";function i(){this.$behaviours={}}(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){e=("function"==typeof e?new e:e).getBehaviours(t),this.addBehaviours(e)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";function i(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t),e=e.getTokenAt(t,n),this.$tokenIndex=e?e.index:-1}var o=e("./range").Range;(function(){this.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0===n)for(n=0;0<t;)n+=e[--t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new o(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";function i(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,f.rangeCount!=e.multiSelect.rangeCount&&(f={rangeCount:e.multiSelect.rangeCount})),f[t])return s=f[t];s=f[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function o(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}}function r(e){this.add("braces","insertion",(function(t,n,a,l,c){var d=a.getCursorPosition(),h=l.doc.getLine(d.row);if("{"==c)return i(a),p=a.getSelectionRange(),""!==(g=l.doc.getTextRange(p))&&"{"!==g&&a.getWrapBehavioursEnabled()?o(p,g,"{","}"):r.isSaneInsertion(a,l)?/[\]\}\)]/.test(h[d.column])||a.inMultiSelectMode||e&&e.braces?(r.recordAutoInsert(a,l,"}"),{text:"{}",selection:[1,1]}):(r.recordMaybeInsert(a,l,"{"),{text:"{",selection:[1,1]}):void 0;if("}"==c){i(a);var f=h.substring(d.column,d.column+1);if("}"==f&&null!==l.$findOpeningBracket("}",{column:d.column+1,row:d.row})&&r.isAutoInsertedClosing(d,h,c))return r.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==c||"\r\n"==c){i(a);var p="";if(r.isMaybeInsertedClosing(d,h)&&(p=u.stringRepeat("}",s.maybeInsertedBrackets),r.clearMaybeInsertedClosing()),"}"===(f=h.substring(d.column,d.column+1))){var g=l.findMatchingBracket({row:d.row,column:d.column+1},"}");if(!g)return null;var m=this.$getIndent(l.getLine(g.row))}else{if(!p)return void r.clearMaybeInsertedClosing();m=this.$getIndent(h)}return{text:"\n"+(c=m+l.getTabString())+"\n"+m+p,selection:[1,c.length,1,c.length]}}r.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,o,r){var a=o.doc.getTextRange(r);if(!r.isMultiLine()&&"{"==a){if(i(n),"}"==o.doc.getLine(r.start.row).substring(r.end.column,r.end.column+1))return r.end.column++,r;s.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,s,a){if("("==a)return i(n),l=n.getSelectionRange(),""!==(c=s.doc.getTextRange(l))&&n.getWrapBehavioursEnabled()?o(l,c,"(",")"):r.isSaneInsertion(n,s)?(r.recordAutoInsert(n,s,")"),{text:"()",selection:[1,1]}):void 0;if(")"==a){i(n);var l=n.getCursorPosition(),c=s.doc.getLine(l.row);if(")"==(n=c.substring(l.column,l.column+1))&&null!==s.$findOpeningBracket(")",{column:l.column+1,row:l.row})&&r.isAutoInsertedClosing(l,c,a))return r.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,o,r){var s=o.doc.getTextRange(r);if(!r.isMultiLine()&&"("==s&&(i(n),")"==o.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("brackets","insertion",(function(e,t,n,s,a){if("["==a)return i(n),l=n.getSelectionRange(),""!==(c=s.doc.getTextRange(l))&&n.getWrapBehavioursEnabled()?o(l,c,"[","]"):r.isSaneInsertion(n,s)?(r.recordAutoInsert(n,s,"]"),{text:"[]",selection:[1,1]}):void 0;if("]"==a){i(n);var l=n.getCursorPosition(),c=s.doc.getLine(l.row);if("]"==(n=c.substring(l.column,l.column+1))&&null!==s.$findOpeningBracket("]",{column:l.column+1,row:l.row})&&r.isAutoInsertedClosing(l,c,a))return r.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,o,r){var s=o.doc.getTextRange(r);if(!r.isMultiLine()&&"["==s&&(i(n),"]"==o.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("string_dquotes","insertion",(function(e,t,n,r,s){var a=r.$mode.$quotes||p;if(1==s.length&&a[s]&&(!this.lineCommentStart||-1==this.lineCommentStart.indexOf(s))){i(n);var l=n.getSelectionRange();if(!(""===(c=r.doc.getTextRange(l))||1==c.length&&a[c])&&n.getWrapBehavioursEnabled())return o(l,c,s,s);if(!c){a=n.getCursorPosition();var c=(l=r.doc.getLine(a.row)).substring(a.column-1,a.column),u=(n=l.substring(a.column,a.column+1),r.getTokenAt(a.row,a.column)),d=r.getTokenAt(a.row,a.column+1);if("\\"==c&&u&&/escape/.test(u.type))return null;u=u&&/string|escape/.test(u.type);var h,f=!d||/string|escape/.test(d.type);if(n==s)(h=u!==f)&&/string\.end/.test(d.type)&&(h=!1);else{if(u&&!f)return null;if(u&&f)return null;if((d=r.$mode.tokenRe).lastIndex=0,u=d.test(c),d.lastIndex=0,f=d.test(c),u||f)return null;if(n&&!/[\s;,.})\]\\]/.test(n))return null;if(r=l[a.column-2],c==s&&(r==s||d.test(r)))return null;h=!0}return{text:h?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,o,r){var s=o.$mode.$quotes||p,a=o.doc.getTextRange(r);if(!r.isMultiLine()&&s.hasOwnProperty(a)&&(i(n),o.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==a))return r.end.column++,r}))}var s,a=e("../../lib/oop"),l=e("../behaviour").Behaviour,c=e("../../token_iterator").TokenIterator,u=e("../../lib/lang"),d=["text","paren.rparen","rparen","paren","punctuation.operator"],h=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],f={},p={'"':'"',"'":"'"};r.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new c(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",d)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;if(e=new c(t,n.row,n.column+1),!this.$matchTokenType(e.getCurrentToken()||"text",d))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",h)},r.$matchTokenType=function(e,t){return-1<t.indexOf(e.type||e)},r.recordAutoInsert=function(e,t,n){e=e.getCursorPosition(),t=t.doc.getLine(e.row),this.isAutoInsertedClosing(e,t,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=e.row,s.autoInsertedLineEnd=n+t.substr(e.column),s.autoInsertedBrackets++},r.recordMaybeInsert=function(e,t,n){e=e.getCursorPosition(),t=t.doc.getLine(e.row),this.isMaybeInsertedClosing(e,t)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=e.row,s.maybeInsertedLineStart=t.substr(0,e.column)+n,s.maybeInsertedLineEnd=t.substr(e.column),s.maybeInsertedBrackets++},r.isAutoInsertedClosing=function(e,t,n){return 0<s.autoInsertedBrackets&&e.row===s.autoInsertedRow&&n===s.autoInsertedLineEnd[0]&&t.substr(e.column)===s.autoInsertedLineEnd},r.isMaybeInsertedClosing=function(e,t){return 0<s.maybeInsertedBrackets&&e.row===s.maybeInsertedRow&&t.substr(e.column)===s.maybeInsertedLineEnd&&t.substr(0,e.column)==s.maybeInsertedLineStart},r.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},r.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},a.inherits(r,l),t.CstyleBehaviour=r})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,r=[],s=0;s<i.length;s+=2)r.push(o+=i[s]),i[s+1]&&r.push(45,o+=i[s+1]);t.wordChars=String.fromCharCode.apply(null,r)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";function i(){this.HighlightRules=s}var o=e("../config"),r=e("../tokenizer").Tokenizer,s=e("./text_highlight_rules").TextHighlightRules,a=e("./behaviour/cstyle").CstyleBehaviour,l=e("../unicode"),c=e("../lib/lang"),u=e("../token_iterator").TokenIterator,d=e("../range").Range;(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+l.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new r(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var o=t.doc,r=!0,s=!0,a=1/0,l=t.getTabSize(),u=!1;if(this.lineCommentStart){m=Array.isArray(this.lineCommentStart)?(v=this.lineCommentStart.map(c.escapeRegExp).join("|"),this.lineCommentStart[0]):(v=c.escapeRegExp(this.lineCommentStart),this.lineCommentStart),v=new RegExp("^(\\s*)(?:"+v+") ?"),u=t.getUseSoftTabs();var d=function(e,t){var n,i,r=e.match(v);r&&(n=r[1].length,i=r[0].length,g(e,n,i)||" "!=r[0][i-1]||i--,o.removeInLine(t,n,i))},h=m+" ",f=function(e,t){r&&!/\S/.test(e)||(g(e,a,a)?o.insertInLine({row:t,column:a},h):o.insertInLine({row:t,column:a},m))},p=function(e,t){return v.test(e)},g=function(e,t,n){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%l!=0)return!1;for(i=0;" "==e.charAt(n++);)i++;return 2<l?i%l!=l-1:i%l==0}}else{if(!this.blockComment)return!1;var m=this.blockComment.start,b=this.blockComment.end,v=new RegExp("^(\\s*)(?:"+c.escapeRegExp(m)+")"),y=new RegExp("(?:"+c.escapeRegExp(b)+")\\s*$");f=function(e,t){p(e,t)||r&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},b),o.insertInLine({row:t,column:a},m))},d=function(e,t){var n;(n=e.match(y))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(v))&&o.removeInLine(t,n[1].length,n[0].length)},p=function(e,n){if(v.test(e))return!0;for(var i=t.getTokens(n),o=0;o<i.length;o++)if("comment"===i[o].type)return!0}}function w(e){for(var t=n;t<=i;t++)e(o.getLine(t),t)}var x=1/0;w((function(e,t){var n=e.search(/\S/);-1!==n?(n<a&&(a=n),s&&!p(e,t)&&(s=!1)):x>e.length&&(x=e.length)})),a==1/0&&(a=x,s=r=!1),u&&a%l!=0&&(a=Math.floor(a/l)*l),w(s?d:f)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var r,s,a=(p=new u(t,i.row,i.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(;a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(o.start))){var c=p.getCurrentTokenRow(),h=p.getCurrentTokenColumn()+g,f=new d(c,h,c,h+o.start.length);break}a=p.stepBackward()}var p,g;for(a=(p=new u(t,i.row,i.column)).getCurrentToken();a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(o.end))){c=p.getCurrentTokenRow(),h=p.getCurrentTokenColumn()+g;var m=new d(c,h,c,h+o.end.length);break}a=p.stepForward()}m&&t.remove(m),f&&(t.remove(f),r=f.start.row,s=-o.start.length)}else s=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==r&&(l.start.column+=s),l.end.row==r&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e){var n,i,r;e[t]&&(i=(n=e[t]).prototype.$id,(r=o.$modes[i])||(o.$modes[i]=r=new n),o.$modes[t]||(o.$modes[t]=r),this.$embeds.push(t),this.$modes[t]=r)}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<s.length;t++)!function(e){var n=s[t],i=e[n];e[s[t]]=function(){return this.$delegator(n,arguments,i)}}(this)},this.$delegator=function(e,t,n){var i=t[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var o=i[2][i[2].length-1];if(s=this.$modes[o])return s[e].apply(s,[i[1]].concat([].slice.call(t,1)))}i=i[0]||"start"}for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var s,a=i.split(this.$embeds[r]);if(!a[0]&&a[1])return t[0]=a[1],(s=this.$modes[this.$embeds[r]])[e].apply(s,t)}return o=n.apply(this,t),n?o:void 0},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r,s=this.$behaviour.getBehaviours();for(r in s)if(s[r][t]){var a=s[r][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(s in t)for(var i=t[s],o=0,r=i.length;o<r;o++)if("string"==typeof i[o].token)/keyword|support|storage/.test(i[o].token)&&n.push(i[o].regex);else if("object"==typeof i[o].token)for(var s,a=0,l=i[o].token.length;a<l;a++)/keyword|support|storage/.test(i[o].token[a])&&(s=i[o].regex.match(/\(.+?\)/g)[a],n.push(s.substr(1,s.length-2)));this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(i.prototype),t.Mode=i})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var i=t.start.row,o=t.start.column,r=e[i]||"";switch(t.action){case"insert":1===t.lines.length?e[i]=r.substring(0,o)+t.lines[0]+r.substring(o):(s=[i,1].concat(t.lines),e.splice.apply(e,s),e[i]=r.substring(0,o)+e[i],e[i+t.lines.length-1]+=r.substring(o));break;case"remove":var s=t.end.column,a=t.end.row;i===a?e[i]=r.substring(0,o)+r.substring(s):e.splice(i,a-i+1,r.substring(0,o)+e[a].substring(s))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter;e=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){return n=n?e.column<=t.column:e.column<t.column,e.row<t.row||e.row==t.row&&n}i.implement(this,o),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row||(t=function(t,n,i){var o=((a="insert"==t.action)?1:-1)*(t.end.row-t.start.row),r=(a?1:-1)*(t.end.column-t.start.column),s=t.start,a=a?s:t.end;return e(n,s,i)?{row:n.row,column:n.column}:e(a,n,!i)?{row:n.row+o,column:n.column+(n.row==a.row?r:0)}:{row:s.row,column:s.column}}(t,{row:this.row,column:this.column},this.$insertRight),this.setPosition(t.row,t.column,!0))},this.setPosition=function(e,t,n){n=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row==n.row&&this.column==n.column||(e={row:this.row,column:this.column},this.row=n.row,this.column=n.column,this._signal("change",{old:e,value:n}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(e.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";function i(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}var o=e("./lib/oop"),r=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,l=e("./anchor").Anchor;(function(){o.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new l(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m),this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t,n;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),n=t.length-1,e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))),t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column);e=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:n<=e&&(e=n-1,t=void 0),n=this.getLine(e);return null==t&&(t=n.length),{row:e,column:t=Math.min(Math.max(t,0),n.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),0):(t=[""].concat(t),this.$lines[--e].length);this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n={row:(e=this.clippedPos(e.row,e.column)).row+t.length-1,column:(1==t.length?e.column:0)+t[t.length-1].length};return this.applyDelta({start:e,end:n,action:"insert",lines:t}),this.clonePos(n)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column);e=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})}),this.clonePos(t)},this.removeInLine=function(e,t,n){return t=this.clippedPos(e,t),e=this.clippedPos(e,n),this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})},!0),this.clonePos(t)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,i=t<this.getLength()-1,o=n?e-1:e,r=(n=n?this.getLine(o).length:0,i?t+1:t);i=i?0:this.getLine(r).length,o=new a(o,n,r,i),n=this.$lines.slice(e,t+1);return this.applyDelta({start:o.start,end:o.end,action:"remove",lines:this.getLinesForRange(o)}),n},this.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&2e4<e.lines.length?this.$splitAndapplyLargeDelta(e,2e4):(r(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,s=0,a=0;s<i;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(o+s,r),end:this.pos(o+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=r,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if((e-=n[o].length+i)<0)return{row:o,column:e+n[o].length+i};return{row:r-1,column:e+n[r-1].length+i}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)o+=n[s].length+i;return o+e.column}}).call(i.prototype),t.Document=i})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";function i(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,i=-1,o=n.doc,r=t;n.lines[t];)t++;var s=o.getLength(),a=0;for(n.running=!1;t<s;){for(n.$tokenizeRow(t),i=t;t++,n.lines[t];);if(++a%5==0&&20<new Date-e){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,r<=(i=-1==i?t:i)&&n.fireUpdateEvent(r,i)}}}var o=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter;(function(){o.implement(this,r),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){this._signal("update",{data:{first:e,last:t}})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;0==n?this.lines[t]=null:"remove"==e.action?(this.lines.splice(t,1+n,null),this.states.splice(t,1+n,null)):((e=Array(1+n)).unshift(t,1),this.lines.splice.apply(this.lines,e),this.states.splice.apply(this.states,e)),this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1];t=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=t.state+""?(this.states[e]=t.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens}}).call(i.prototype),t.BackgroundTokenizer=i})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";function i(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"}var o=e("./lib/lang"),r=(e("./lib/oop"),e("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(var s=i.firstRow,a=i.lastRow,l=s;l<=a;l++){var c=this.cache[l];null==c&&(c=(c=(c=o.getMatchOffsets(n.getLine(l),this.regExp)).length>this.MAX_RANGES?c.slice(0,this.MAX_RANGES):c).map((function(e){return new r(l,e.offset,l,e.offset+e.length)})),this.cache[l]=c.length?c:"");for(var u=c.length;u--;)t.drawSingleLineMarker(e,c[u].toScreenRange(n),this.clazz,i)}}}).call(i.prototype),t.SearchHighlight=i})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t],e=t[t.length-1],this.range=new i(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,o,r=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(-1==(o=(i=s[l]).range.compareStart(t,n)))return void e(null,t,n,r,a);if(!e(null,i.start.row,i.start.column,r,a)&&e(i.placeholder,i.start.row,i.start.column,r)||0===o)return;a=!i.sameRow,r=i.end.column}e(null,t,n,r,a)},this.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(-1==(i=(n=this.folds[o]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,o=this.getNextFoldTo(e,t);if(o)if(i=o.fold,"inside"==o.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var r,s=(r=this.folds).indexOf(i);for(0===s&&(this.start.column+=n);s<r.length;s++){if((i=r[s]).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){if(!(e=this.getNextFoldTo(e,t))||"inside"==e.kind)return null;t=e.fold,e=this.folds;var n=this.foldData,i=(t=e.indexOf(t),e[t-1]);this.end.row=i.end.row,this.end.column=i.end.column,i=new o(n,e=e.splice(t,e.length-t));return n.splice(n.indexOf(this)+1,0,i),i},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(o.prototype),t.FoldLine=o})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";function i(){this.ranges=[],this.$bias=1}var o=e("./range").Range.comparePoints;(function(){this.comparePoints=o,this.pointIndex=function(e,t,n){for(var i=this.ranges,r=n||0;r<i.length;r++){var s=i[r],a=o(e,s.end);if(!(0<a))return s=o(e,s.start),0===a?t&&0!==s?-r-2:r:0<s||0===s&&!t?r:-r-1}return-r-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);return(t=this.pointIndex(e.end,t,n=n<0?-n-1:n))<0?t=-t-1:t++,this.ranges.splice(n,t-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){if(0<=(e=this.pointIndex(e)))return this.ranges.splice(e,1)},this.merge=function(){for(var e=[],t=this.ranges,n=(t=t.sort((function(e,t){return o(e.start,t.start)})))[0],i=1;i<t.length;i++){var r=n,s=(n=t[i],o(r.end,n.start));s<0||(0!=s||r.isEmpty()||n.isEmpty())&&(o(r.end,n.end)<0&&(r.end.row=n.end.row,r.end.column=n.end.column),t.splice(i,1),e.push(n),n=r,i--)}return this.ranges=t,e},this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},this.containsPoint=function(e){return 0<=this.pointIndex(e)},this.rangeAtPoint=function(e){if(0<=(e=this.pointIndex(e)))return this.ranges[e]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];e=this.pointIndex({row:e,column:0});for(var i=this.pointIndex({row:t,column:0},e=e<0?-e-1:e),o=(i<0&&(i=-i-1),[]),r=e;r<i;r++)o.push(n[r]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,s=0,a=r.length;s<a&&!((u=r[s]).end.row>=i);s++);if("insert"==e.action)for(var l=o-i,c=-t.column+n.column;s<a&&!((u=r[s]).start.row>i);s++)u.start.row==i&&u.start.column>=t.column&&(u.start.column==t.column&&this.$bias<=0||(u.start.column+=c,u.start.row+=l)),u.end.row==i&&u.end.column>=t.column&&(u.end.column==t.column&&this.$bias<0||(u.end.column==t.column&&0<c&&s<a-1&&u.end.column>u.start.column&&u.end.column==r[s+1].start.column&&(u.end.column-=c),u.end.column+=c,u.end.row+=l));else{var u;for(l=i-o,c=t.column-n.column;s<a&&!((u=r[s]).start.row>o);s++)u.end.row<o&&(i<u.end.row||i==u.end.row&&t.column<u.end.column)?(u.end.row=i,u.end.column=t.column):u.end.row==o?u.end.column<=n.column?(l||u.end.column>t.column)&&(u.end.column=t.column,u.end.row=t.row):(u.end.column+=c,u.end.row+=l):u.end.row>o&&(u.end.row+=l),u.start.row<o&&(i<u.start.row||i==u.start.row&&t.column<u.start.column)?(u.start.row=i,u.start.column=t.column):u.start.row==o?u.start.column<=n.column?(l||u.start.column>t.column)&&(u.start.column=t.column,u.start.row=t.row):(u.start.column+=c,u.start.row+=l):u.start.row>o&&(u.start.row+=l)}if(0!=l&&s<a)for(;s<a;s++)(u=r[s]).start.row+=l,u.end.row+=l}}).call(i.prototype),t.RangeList=i})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("../range_list").RangeList,o=(e=e("../lib/oop"),t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]});function r(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function s(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}e.inherits(o,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){s=e,a=this.start,r(s.start,a),r(s.end,a);for(var t=e.start.row,n=e.start.column,i=0,o=-1;i<this.subFolds.length&&1==(o=this.subFolds[i].range.compare(t,n));i++);var s=this.subFolds[i],a=0;if(0==o){if(s.range.containsRange(e))return s.addSubFold(e);a=1}t=e.range.end.row,n=e.range.end.column;var l=i;for(o=-1;l<this.subFolds.length&&1==(o=this.subFolds[l].range.compare(t,n));l++);0==o&&l++;for(var c=this.subFolds.splice(i,l-i,e),u=0==o?c.length-1:c.length,d=a;d<u;d++)e.addSubFold(c[d]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return e=e,t=this.start,s(e.start,t),void s(e.end,t);var t}}.call(o.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("./fold_line").FoldLine,r=e("./fold").Fold,s=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var s=o[r].range;if(s.contains(e,t)&&(1!=n||!s.isEnd(e,t)||s.isEmpty())&&(-1!=n||!s.isStart(e,t)||s.isEmpty()))return o[r]}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,--n.column;for(var r=0;r<i.length;r++){var s=i[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[r].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;o.push(c)}}}}return--t.column,n.column+=1,o},this.getFoldsInRangeList=function(e){var t;return Array.isArray(e)?(t=[],e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)):t=this.getFoldsInRange(e),t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(!(i=i||this.getFoldLine(e)))return null;for(var o,r={end:{column:0}},s=0;s<i.folds.length;s++){var a,l=(a=i.folds[s]).range.compareEnd(e,t);if(-1==l){o=this.getLine(a.start.row).substring(r.end.column,a.start.column);break}if(0===l)return null;r=a}return o=o||this.getLine(a.start.row).substring(r.end.column),-1==n?o.substring(0,t-r.end.column):1==n?o.substring(t-r.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(-1==(i=t?n.indexOf(t):i)&&(i=0);i<n.length;i++){var o=n[i];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(-1==(i=t?n.indexOf(t):i)&&(i=0);i<n.length;i++){var o=n[i];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=(s=n[o]).end.row,s=s.start.row;if(t<=r){s<t&&(e<=s?i-=t-s:i=0);break}e<=r&&(i-=e<=s?r-s:r-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,s=!1,a=(e instanceof r?n=e:(n=new r(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range),n.start.row),l=(e=n.start.column,n.end.row),c=(t=n.end.column,this.getFoldAt(a,e,1)),u=this.getFoldAt(l,t,-1);if(c&&u==c)return c.addSubFold(n);c&&!c.range.isStart(a,e)&&this.removeFold(c),u&&!u.range.isEnd(l,t)&&this.removeFold(u),0<(e=this.getFoldsInRange(n.range)).length&&(this.removeFolds(e),n.collapseChildren||e.forEach((function(e){n.addSubFold(e)})));for(var d=0;d<i.length;d++){var h=i[d];if(l==h.start.row){h.addFold(n),s=!0;break}if(a==h.end.row){if(h.addFold(n),s=!0,!n.sameRow){var f=i[d+1];if(f&&f.start.row==l){h.merge(f);break}}break}if(l<=h.start.row)break}return s||(h=this.$addFoldLine(new o(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(h.start.row,h.start.row):this.$updateRowLengthCache(h.start.row,h.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;1==r.length?o.splice(o.indexOf(t),1):t.range.isEnd(e.end.row,e.end.column)?(r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column):t.range.isStart(e.start.row,e.start.column)?(r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column):e.sameRow?r.splice(r.indexOf(e),1):((r=(o=t.split(e.start.row,e.start.column)).folds).shift(),o.start.row=r[0].start.row,o.start.column=r[0].start.column),this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),0<e.collapseChildren&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n;if(null==e)n=new i(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new i(e,0,e,this.getLine(e).length);else if("row"in e)n=i.fromPoints(e,e);else{if(Array.isArray(e))return o=[],e.forEach((function(e){o=o.concat(this.unfold(e))}),this),o;n=e}var o;for(e=o=this.getFoldsInRangeList(n);1==o.length&&i.comparePoints(o[0].start,n.start)<0&&0<i.comparePoints(o[0].end,n.end);)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(o):this.expandFolds(o),e.length)return e},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){return(t=this.getFoldLine(e,t))?t.end.row:e},this.getRowFoldStart=function(e,t){return(t=this.getFoldLine(e,t))?t.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,o){null==i&&(i=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var r=this.doc,s="";return e.walk((function(e,t,n,a){if(!(t<i)){if(t==i){if(n<o)return;a=Math.max(o,a)}s+=null!=e?e:r.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,i){var o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,i):(o=this.doc.getLine(e)).substring(i||0,t||o.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){return t=t.folds.map((function(e){return e.clone()})),new o(e,t)}))},this.toggleFold=function(e){var t=this.selection.getRange();if(t.isEmpty()){var n,i=t.start;if(n=this.getFoldAt(i.row,i.column))return void this.expandFold(n);(o=this.findMatchingBracket(i))?1==t.comparePoint(o)?t.end=o:(t.start=o,t.start.column++,t.end.column--):(o=this.findMatchingBracket({row:i.row,column:i.column+1}))?(1==t.comparePoint(o)?t.end=o:t.start=o,t.start.column++):t=this.getCommentFoldRange(i.row,i.column)||t}else{var o=this.getFoldsInRange(t);if(e&&o.length)return void this.expandFolds(o);1==o.length&&(n=o[0])}if((n=n||this.getFoldAt(t.start.row,t.start.column))&&n.range.toString()==t.toString())this.expandFold(n);else{if(i="...",!t.isMultiLine()){if((i=this.getTextRange(t)).length<4)return;i=i.trim().substring(0,2)+".."}this.addFold(i,t)}},this.getCommentFoldRange=function(e,t,n){var o=new s(this,e,t),r=o.getCurrentToken(),a=r&&r.type;if(r&&/^comment|string/.test(a)){"comment"==(a=a.match(/comment|string/)[0])&&(a+="|doc-start");var l=new RegExp(a);a=new i;if(1!=n){for(;(r=o.stepBackward())&&l.test(r.type););o.stepForward()}if(a.start.row=o.getCurrentTokenRow(),a.start.column=o.getCurrentTokenColumn()+2,o=new s(this,e,t),-1!=n){var c=-1;do{if(r=o.stepForward(),-1==c){var u=this.getState(o.$row);l.test(u)||(c=o.$row)}else if(o.$row>c)break}while(r&&l.test(r.type));r=o.stepBackward()}else r=o.getCurrentToken();return a.end.row=o.getCurrentTokenRow(),a.end.column=o.getCurrentTokenColumn()+r.value.length-2,a}},this.foldAll=function(e,t,n,i){null==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var r,s=e=e||0;s<t;s++)null==o[s]&&(o[s]=this.getFoldWidget(s)),"start"!=o[s]||i&&!i(s)||(r=this.getFoldWidgetRange(s))&&r.isMultiLine()&&r.end.row<=t&&r.start.row>=e&&(s=r.end.row,r.collapseChildren=n,this.addFold("...",r))}},this.foldToLevel=function(e){for(this.foldAll();0<e--;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),i=0;i<n.length;i++){var o=n[i];if("text"!=o.type||!/^\s+$/.test(o.value))return!!/comment/.test(o.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");this.$foldStyle!=e&&("manual"==(this.$foldStyle=e)&&this.unfold(),e=this.$foldMode,this.$setFolding(null),this.$setFolding(e))},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var i=e-1;0<=i;){var o=n[i];if("start"==(o=null==o?n[i]=this.getFoldWidget(i):o)){var r=this.getFoldWidgetRange(i),s=s||r;if(r&&r.end.row>=e)break}i--}return{range:-1!==i&&r,firstRange:s}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,n)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n,i,o=this.getFoldWidget(e),r=this.getLine(e);o="end"===o?-1:1;return(r=this.getFoldAt(e,-1==o?0:r.length,o))?(t.children||t.all?this.removeFold(r):this.expandFold(r),r):(o=this.getFoldWidgetRange(e,!0))&&!o.isMultiLine()&&(r=this.getFoldAt(o.start.row,o.start.column,1))&&o.isEqual(r.range)?(this.removeFold(r),r):(t.siblings?((r=this.getParentFoldRangeData(e)).range&&(n=r.range.start.row+1,i=r.range.end.row),this.foldAll(n,i,t.all?1e4:0)):t.children?(i=o?o.end.row:this.getLength(),this.foldAll(e+1,i,t.all?1e4:0)):o&&(t.all&&(o.collapseChildren=1e4),this.addFold("...",o)),o)}},this.toggleFoldWidget=function(e){var t,n=this.selection.getCursor().row;n=this.getRowFoldStart(n),this.$toggleFoldWidget(n,{})||(t=(t=this.getParentFoldRangeData(n,!0)).range||t.firstRange)&&(n=t.start.row,(n=this.getFoldAt(n,this.getLine(n).length,1))?this.removeFold(n):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;0==n?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+n,null):((e=Array(1+n)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){(e=e.data).first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../token_iterator").TokenIterator,o=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0==e.column||""==(t=t||this.getLine(e.row).charAt(e.column-1))?null:(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,n,i=this.getLine(e.row),r=!0,s=i.charAt(e.column-1),a=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(a||(s=i.charAt(e.column),e={row:e.row,column:e.column+1},a=s&&s.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(n=this.$findClosingBracket(a[1],e)))return null;t=o.fromPoints(e,n),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(n=this.$findOpeningBracket(a[2],e)))return null;t=o.fromPoints(n,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),i=n&&n.match(/([\(\[\{])|([\)\]\}])/);return i||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},i=n&&n.match(/([\(\[\{])|([\)\]\}])/)),i?(t=new o(e.row,e.column-1,e.row,e.column),(n=i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e))?[t,new o(n.row,n.column,n.row,n.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a=a||s.stepForward()){n=n||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;;){for(;0<=l;){var u=c.charAt(l);if(u==o){if(0==--r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(r+=1);--l}for(;(a=s.stepBackward())&&!n.test(a.type););if(null==a)break;l=(c=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a=a||s.stepForward()){n=n||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var l=t.column-s.getCurrentTokenColumn();;){for(var c=a.value,u=c.length;l<u;){var d=c.charAt(l);if(d==o){if(0==--r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(r+=1);l+=1}for(;(a=s.stepForward())&&!n.test(a.type););if(null==a)break;l=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";function i(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++i.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new h(e)),this.setDocument(e),this.selection=new c(this),this.$bidiHandler=new s(this),a.resetOptions(this),this.setMode(t),a._signal("session",this)}var o=e("./lib/oop"),r=e("./lib/lang"),s=e("./bidihandler").BidiHandler,a=e("./config"),l=e("./lib/event_emitter").EventEmitter,c=e("./selection").Selection,u=e("./mode/text").Mode,d=e("./range").Range,h=e("./document").Document,f=e("./background_tokenizer").BackgroundTokenizer,p=e("./search_highlight").SearchHighlight;i.$uid=0,function(){o.implement(this,l),this.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),(this.doc=e).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length;(e=this.$getRowCacheIndex(this.$docRowCache,e)+1)<t&&(this.$docRowCache.splice(e,t),this.$screenRowCache.splice(e,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var o=n+i>>1,r=e[o];if(r<t)n=1+o;else{if(!(t<r))return o;i=o-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){e=e.data,this.$resetRowCache(e.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n=this.bgTokenizer.getTokens(e),i=0;if(null==t){var o=n.length-1;i=this.getLine(e).length}else for(o=0;o<n.length&&!(t<=(i+=n[o].value.length));o++);return(e=n[o])?(e.index=o,e.start=i-e.value.length,e):null},this.setUndoManager=function(e){var t;this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e?(e.addSession(t=this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)):this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){(t=void 0===t?"ace_breakpoint":t)?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var o=this.$markerId++;e={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers[o]=e,this._signal("changeFrontMarker")):(this.$backMarkers[o]=e,this._signal("changeBackMarker")),o},this.addDynamicMarker=function(e,t){var n;if(e.update)return n=this.$markerId++,e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){var t;this.$searchHighlight||(t=new p(null,"ace_selected-word","text"),this.$searchHighlight=this.addDynamicMarker(t)),this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){return"number"!=typeof t&&(n=t,t=e),n=n||"ace_step",(e=new d(e,0,t,1/0)).id=this.addMarker(e,n,"fullLine",i),e},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){e=e.match(/^.*?(\r?\n)/m),this.$autoNewLine=e?e[1]:"\n"},this.getWordRange=function(e,t){var n,i=this.getLine(e),o=!1,r=(n=(o=(o=0<t?!!i.charAt(t-1).match(this.tokenRe):o)||!!i.charAt(t).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(i.slice(t-1,t+1))?/\s/:this.nonTokenRe,t);if(0<r){for(;0<=--r&&i.charAt(r).match(n););r++}for(var s=t;s<i.length&&i.charAt(s).match(n);)s++;return new d(e,r,e,s)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=a.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new u),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,a.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||((this.$modes[i]=e).$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){var n,i,o,r;t||(this.$modeId=e.$id),this.$mode!==e&&(n=this.$mode,this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker(),void 0!==(i=e.getTokenizer()).on&&(o=this.onReloadTokenizer.bind(this),i.on("update",o)),this.bgTokenizer?this.bgTokenizer.setTokenizer(i):(this.bgTokenizer=new f(i),(r=this).bgTokenizer.on("update",(function(e){r._signal("tokenizerUpdate",e)}))),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e})))},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData[o],s=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(s<l){if(a<=(l=r.end.row+1))break;s=(r=this.$foldData[o++])?r.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var i=e[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e[n];"insert"!=i.action&&"remove"!=i.action||this.doc.$safeApplyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var i,o,r=0;r<e.length;r++){var s=e[r];s.start&&(i?n(s)?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=s.start,-1==i.compare(o.row,o.column)&&(i=d.fromPoints(s.start,s.start))):i=n(s)?d.fromPoints(s.start,s.end):d.fromPoints(s.start,s.start))}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i,o,r,s=this.getTextRange(e),a=this.getFoldsInRange(e);t=d.fromPoints(t,t);return n||(this.remove(e),o=e.start.row-e.end.row,(r=o?-e.end.column:e.start.column-e.end.column)&&(t.start.row==e.end.row&&t.start.column>e.end.column&&(t.start.column+=r),t.end.row==e.end.row&&t.end.column>e.end.column&&(t.end.column+=r)),o&&t.start.row>=e.end.row&&(t.start.row+=o,t.end.row+=o)),t.end=this.insert(t.start,s),a.length&&(i=e.start,n=t.start,o=n.row-i.row,r=n.column-i.column,this.addFolds(a.map((function(e){return(e=e.clone()).start.row==i.row&&(e.start.column+=r),e.end.row==i.row&&(e.end.column+=r),e.start.row+=o,e.end.row+=o,e})))),t},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var s=0;s<i&&" "==r.charAt(s);++s);s<i&&"\t"==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((o=this.getRowFoldStart(e+n))<0)return 0;var i=o-e}else if(0<n){if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=o-t}else e=this.$clipRowToDocument(e),i=(t=this.$clipRowToDocument(t))-e+1;var o=new d(e,0,t,Number.MAX_VALUE);o=this.getFoldsInRange(o).map((function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e})),n=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,n),o.length&&this.addFolds(o),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){var n;return t=Math.max(0,t),t=e<0?e=0:(n=this.doc.getLength())<=e?this.doc.getLine(e=n-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;return(t=(n.max<0&&(n={min:t,max:t}),this.$constrainWrapLimit(e,n.min,n.max)))!=this.$wrapLimit&&1<t&&(this.$wrapLimit=t,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n?Math.min(n,e):e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,s=o.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e);this.removeFolds(l);var u=0;for((f=this.getFoldLine(o.row))&&(f.addRemoveChars(o.row,o.column,i.column-o.column),f.shiftRow(-a),(d=this.getFoldLine(r))&&d!==f&&(d.merge(f),f=d),u=c.indexOf(f)+1);u<c.length;u++)(f=c[u]).start.row>=o.row&&f.shiftRow(-a);s=r}else{var d=Array(a),h=(d.unshift(r,0),t?this.$wrapData:this.$rowLengthCache);c=(h.splice.apply(h,d),this.$foldData),u=0;for((f=this.getFoldLine(r))&&(0==(h=f.range.compareInside(i.row,i.column))?(f=f.split(i.row,i.column))&&(f.shiftRow(a),f.addRemoveChars(s,0,o.column-i.column)):-1==h&&(f.addRemoveChars(r,0,o.column-i.column),f.shiftRow(a)),u=c.indexOf(f)+1);u<c.length;u++)(f=c[u]).start.row>=r&&f.shiftRow(a)}else{var f;a=Math.abs(e.start.column-e.end.column);"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(f=this.getFoldLine(r))&&f.addRemoveChars(r,i.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,i){var o,r,s=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,u=n;for(i=Math.min(i,s.length-1);u<=i;)(r=this.getFoldLine(u,r))?(o=[],r.walk(function(n,i,r,a){var l;if(null!=n){(l=this.$getDisplayTokens(n,o.length))[0]=e;for(var c=1;c<l.length;c++)l[c]=t}else l=this.$getDisplayTokens(s[i].substring(a,r),o.length);o=o.concat(l)}.bind(this),r.end.row,s[r.end.row].length+1),l[r.start.row]=this.$computeWrapSplits(o,c,a),u=r.end.row+1):(o=this.$getDisplayTokens(s[u]),l[u]=this.$computeWrapSplits(o,c,a),u++)};var e=3,t=4;function n(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}this.$computeWrapSplits=function(n,i,o){if(0==n.length)return[];var r=[],s=n.length,a=0,l=0,c=this.$wrapAsCode,u=this.$indentedSoftWrap,d=i<=Math.max(2*o,8)||!1===u?0:Math.floor(i/2);function h(e){for(var t=e-a,i=a;i<e;i++){var s=n[i];12!==s&&2!==s||--t}r.length||(f=function(){var e=0;if(0===d)return e;if(u)for(var t=0;t<n.length;t++){var i=n[t];if(10==i)e+=1;else if(11==i)e+=o;else if(12!=i)break}return c&&!1!==u&&(e+=o),Math.min(e,d)}(),r.indent=f),l+=t,r.push(l),a=e}for(var f=0;i-f<s-a;){var p=a+i-f;if(10<=n[p-1]&&10<=n[p])h(p);else if(n[p]==e||n[p]==t){for(;p!=a-1&&n[p]!=e;p--);if(a<p)h(p);else{for(p=a+i;p<n.length&&n[p]==t;p++);if(p==n.length)break;h(p)}}else{for(var g=Math.max(p-(i-(i>>2)),a-1);g<p&&n[p]<e;)p--;if(c){for(;g<p&&n[p]<e;)p--;for(;g<p&&9==n[p];)p--}else for(;g<p&&n[p]<10;)p--;g<p?h(++p):(2==n[p=a+i]&&p--,h(p-f))}}return r},this.$getDisplayTokens=function(e,t){var i,o=[];t=t||0;for(var r=0;r<e.length;r++){var s=e.charCodeAt(r);if(9==s){i=this.getScreenTabSize(o.length+t),o.push(11);for(var a=1;a<i;a++)o.push(12)}else 32==s?o.push(10):39<s&&s<48||57<s&&s<64?o.push(9):4352<=s&&n(s)?o.push(1,2):o.push(1)}return o},this.$getStringScreenWidth=function(e,t,i){if(0==t)return[0,0];var o,r;for(null==t&&(t=1/0),i=i||0,r=0;r<e.length&&(9==(o=e.charCodeAt(r))?i+=this.getScreenTabSize(i):4352<=o&&n(o)?i+=2:i+=1,!(t<i));r++);return[i,r]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){var t;return this.$useWrapMode?(e=this.screenToDocumentPosition(e,Number.MAX_VALUE),(t=this.$wrapData[e.row]).length&&t[0]<e.column?t.indent:0):0},this.getScreenLastRowColumn=function(e){return e=this.screenToDocumentPosition(e,Number.MAX_VALUE),this.documentToScreenColumn(e.row,e.column)},this.getDocumentLastRowColumn=function(e,t){return e=this.documentToScreenRow(e,t),this.getScreenLastRowColumn(e)},this.getDocumentLastRowColumnPosition=function(e,t){return e=this.documentToScreenRow(e,t),this.screenToDocumentPosition(e,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){if(this.$useWrapMode)return this.$wrapData[e]},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};for(var i,o,r,s=0,a=0,l=0,c=0,u=this.$screenRowCache,d=this.$getRowCacheIndex(u,e),h=u.length,f=(r=h&&0<=d?(l=u[d],s=this.$docRowCache[d],e>u[h-1]):!h,this.getLength()-1),p=this.getNextFoldLine(s),g=p?p.start.row:1/0;l<=e&&!(e<l+(c=this.getRowLength(s))||f<=s);)l+=c,g<++s&&(s=p.end.row+1,g=(p=this.getNextFoldLine(s,p))?p.start.row:1/0),r&&(this.$docRowCache.push(s),this.$screenRowCache.push(l));if(p&&p.start.row<=s)i=this.getFoldDisplayLine(p),s=p.start.row;else{if(l+c<=e||f<s)return{row:f,column:this.getLine(f).length};i=this.getLine(s),p=null}return d=0,u=Math.floor(e-l),this.$useWrapMode&&(h=this.$wrapData[s])&&(o=h[u],0<u&&h.length&&(d=h.indent,a=h[u-1]||h[h.length-1],i=i.substring(a))),void 0!==n&&this.$bidiHandler.isBidiRow(l+u,s,u)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(i,t-d)[1],this.$useWrapMode&&o<=a&&(a=o-1),p?p.idxToPosition(a):{row:s,column:a}},this.documentToScreenPosition=function(e,t){var n=(e=(i=void 0===t?this.$clipPositionToDocument(e.row,e.column):this.$clipPositionToDocument(e,t)).row,t=i.column,0),i=null;(a=this.getFoldAt(e,t,1))&&(e=a.start.row,t=a.start.column);for(var o,r,s=0,a=this.$docRowCache,l=this.$getRowCacheIndex(a,e),c=a.length,u=(r=c&&0<=l?(s=a[l],n=this.$screenRowCache[l],e>a[c-1]):!c,this.getNextFoldLine(s)),d=u?u.start.row:1/0;s<e;){if(d<=s){if(e<(o=u.end.row+1))break;d=(u=this.getNextFoldLine(o,u))?u.start.row:1/0}else o=s+1;n+=this.getRowLength(s),s=o,r&&(this.$docRowCache.push(s),this.$screenRowCache.push(n))}var h="";i=u&&d<=s?(h=this.getFoldDisplayLine(u,e,t),u.start.row):(h=this.getLine(e).substring(0,t),e),l=0;if(this.$useWrapMode){var f=this.$wrapData[i];if(f){for(var p=0;h.length>=f[p];)n++,p++;h=h.substring(f[p-1]||0,h.length),l=0<p?f.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(n+=this.lineWidgets[s].rowsAbove),{row:n,column:l+this.$getStringScreenWidth(h)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,o=0,r=(t=this.$foldData[o++])?t.start.row:1/0;i<n;){var s=this.$wrapData[i];e+=s?s.length+1:1,r<++i&&(i=t.end.row+1,r=(t=this.$foldData[o++])?t.start.row:1/0)}else{e=this.getLength();var a=this.$foldData;for(o=0;o<a.length;o++)e-=(t=a[o]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return[0,0];var o,r;for(n=n||1/0,i=i||0,r=0;r<t.length&&!(n<(i+="\t"===(o=t.charAt(r))?this.getScreenTabSize(i):e.getCharacterWidth(o)));r++);return[i,r]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=n}.call(i.prototype),e("./edit_session/folding").Folding.call(i.prototype),e("./edit_session/bracket_match").BracketMatch.call(i.prototype),a.defineOptions(i.prototype,"session",{wrap:{set:function(e){e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e&&((this.$wrap=e)?(this.setWrapLimitRange(e="number"==typeof e?e:null,e),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){0<(e=parseInt(e))&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=i})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";function i(){this.$options={}}var o=e("./lib/lang"),r=e("./lib/oop"),s=e("./range").Range;(function(){this.set=function(e){return r.mixin(this.$options,e),this},this.getOptions=function(){return o.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options;if(!(e=this.$matchIterator(e,t)))return!1;var n=null;return e.forEach((function(e,i,o,r){return n=new s(e,i,o,r),!(i==r&&t.start&&t.start.start&&0!=t.skipCurrent&&n.isEqual(t.start)&&(n=null,1))})),n},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),r=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,u=i.length-c;e:for(var d=a.offset||0;d<=u;d++){for(var h=0;h<c;h++)if(-1==i[d+h].search(a[h]))continue e;var f=i[d],p=i[d+c-1];f=f.length-f.match(a[0])[0].length,p=p.match(a[c-1])[0].length;l&&l.end.row===d&&l.end.column>f||(r.push(l=new s(d,f,d+c-1,p)),2<c&&(d=d+c-2))}}else for(var g=0;g<i.length;g++){var m=o.getMatchOffsets(i[g],a);for(h=0;h<m.length;h++){var b=m[h];r.push(new s(g,b.offset,g,b.offset+b.length))}}if(n){var v=n.start.column,y=n.start.column;for(g=0,h=r.length-1;g<h&&r[g].start.column<v&&r[g].start.row==n.start.row;)g++;for(;g<h&&r[h].end.column>y&&r[h].end.row==n.end.row;)h--;for(r=r.slice(g,h+1),g=0,h=r.length;g<h;g++)r[g].start.row+=n.start.row,r[g].end.row+=n.start.row}return r},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var s=e[r];s&&s.toLowerCase()!=s?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n,i=e.needle;if(!e.needle)return e.re=!1;function r(e){return/\w/.test(e)||n.regExp?"\\b":""}e.regExp||(i=o.escapeRegExp(i)),e.wholeWord&&(n=e,i=r((s=i)[0])+s+r(s[s.length-1]));var s=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(i),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(i,s);try{var a=new RegExp(i,s)}catch(e){a=!1}return e.re=a},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n[o],t))}catch(e){return!1}return i},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i,o,r=1==t.backwards,s=0!=t.skipCurrent,a=t.range,l=t.start,c=((l=l||(a?a[r?"end":"start"]:e.selection.getRange())).start&&(l=l[s!=r?"end":"start"]),a?a.start.row:0),u=a?a.end.row:e.getLength()-1;return o=t.$isMultiLine?(i=n.length,function(t,o,s){var a=r?t-i+1:t;if(!(a<0||a+i>e.getLength())){var l=e.getLine(a);t=l.search(n[0]);if(!(!r&&t<o||-1===t)){for(var c=1;c<i;c++)if(-1==(l=e.getLine(a+c)).search(n[c]))return;var u=l.match(n[i-1])[0].length;if(!(r&&o<u))return!!s(a,t,a+i-1,u)||void 0}}}):r?function(t,i,o){var r,s=e.getLine(t),a=[];for(n.lastIndex=0;r=n.exec(s);){var l=r[0].length,c=r.index;if(!l){if(c>=s.length)break;n.lastIndex=c+=1}if(r.index+l>i)break;a.push(r.index,l)}for(var u=a.length-1;0<=u;u-=2){var d=a[u-1];if(o(t,d,t,d+(l=a[u])))return!0}}:function(t,i,o){var r=e.getLine(t);for(n.lastIndex=i;s=n.exec(r);){var s,a=s[0].length;if(o(t,s=s.index,t,s+a))return!0;if(!a&&(n.lastIndex=s+=1,s>=r.length))return!1}},{forEach:r?function(e){var n=l.row;if(!o(n,l.column,e)){for(n--;c<=n;n--)if(o(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=u,c=l.row;c<=n;n--)if(o(n,Number.MAX_VALUE,e))return}}:function(e){var n=l.row;if(!o(n,l.column,e)){for(n+=1;n<=u;n++)if(o(n,0,e))return;if(0!=t.wrap)for(n=c,u=l.row;n<=u;n++)if(o(n,0,e))return}}}}}).call(i.prototype),t.Search=i})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/useragent"),r=i.KEY_MODS;function s(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){s.call(this,e,t),this.$singleCommand=!1}a.prototype=s.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n,i=e&&("string"==typeof e?e:e.name),o=(e=this.commands[i],t||delete this.commands[i],this.commandKeyBinding);for(n in o){var r,s=o[n];s==e?delete o[n]:Array.isArray(s)&&-1!=(r=s.indexOf(e))&&(s.splice(r,1),1==s.length&&(o[n]=s[0]))}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="",o=(-1!=e.indexOf(" ")&&(e=(o=e.split(/\s+/)).pop(),o.forEach((function(e){e=this.parseKeys(e),e=r[e.hashId]+e.key,i+=(i?" ":"")+e,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "),this.parseKeys(e));e=r[o.hashId]+o.key;this._addCommandToBinding(i+e,t,n)}),this)},this._addCommandToBinding=function(t,n,i){var o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(s=o[t].indexOf(n))&&o[t].splice(s,1):o[t]=[o[t]],"number"!=typeof i&&(i=e(n));for(var r=o[t],s=0;s<r.length&&!(i<e(r[s]));s++);r.splice(s,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"object"==typeof(n="function"==typeof n?{exec:n}:n)&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),o=i[n];if(i.FUNCTION_KEYS[o])n=i.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var r=0,s=t.length;s--;){var a=i.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;r|=a}return{key:n,hashId:r}},this.findKeyCommand=function(e,t){return e=r[e]+t,this.commandKeyBinding[e]},this.handleKeyboard=function(e,t,n,i){var o,s;if(!(i<0))return o=r[t]+n,s=this.commandKeyBinding[o],e.$keyChain&&(e.$keyChain+=" "+o,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||0<i)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:s}):(e.$keyChain=e.$keyChain||o,{command:"null"})},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(s.prototype),t.HashHandler=s,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";function i(e,t){r.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))}var o=e("../lib/oop"),r=e("../keyboard/hash_handler").MultiHashHandler,s=e("../lib/event_emitter").EventEmitter;o.inherits(i,r),function(){o.implement(this,s),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if(!(e="string"==typeof e?this.commands[e]:e))return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]?e:e[0]}))}}.call(i.prototype),t.CommandManager=i})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=e("../config"),r=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(e){for(var t=(o=e.selection.isBackwards())?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),n=o?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),o=e.session.doc.getLine(t.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,a=e.session.doc.getLine(t.row),l=t.row+1;l<=n.row+1;l++){var c=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(l)));a+=c=0!==c.length?" "+c:c}n.row+1<e.session.doc.getLength()-1&&(a+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new r(t.row,0,n.row+2,0),a),0<s?(e.selection.moveCursorTo(t.row,t.column),e.selection.selectTo(t.row,t.column+s)):(o=e.session.doc.getLine(t.row).length>o?o+1:o,e.selection.moveCursorTo(t.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var s=0;s<i.length;s++)s!=i.length-1||i[s].end.row===t&&i[s].end.column===n||o.push(new r(i[s].end.row,i[s].end.column,t,n)),0===s?0===i[s].start.row&&0===i[s].start.column||o.push(new r(0,0,i[s].start.row,i[s].start.column)):o.push(new r(i[s-1].end.row,i[s-1].end.column,i[s].start.row,i[s].start.column));for(e.exitMultiSelectMode(),e.clearSelection(),s=0;s<o.length;s++)e.selection.addRange(o[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:s("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)t.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],(function(e,t,n){"use strict";function i(e,t,n){this.$toDestroy=[];var o=e.getContainerElement();this.container=o,this.renderer=e,this.id="editor"+ ++i.$uid,this.commands=new m(a.isMac?"mac":"win",b),"object"==typeof document&&(this.textInput=new l(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new u(this)),this.keyBinding=new d(this),this.$search=(new f).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||n&&n.session||new h("")),v.resetOptions(this),n&&this.setOptions(n),v._signal("editor",this)}e("./lib/fixoldbrowsers");var o=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,d=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,f=e("./search").Search,p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,b=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,w=e("./clipboard"),x=(i.$uid=0,function(){o.implement(this,g),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if((1!=e||!this.curOp.command||"mouse"!=this.curOp.command.name)&&(this._signal("beforeEndOperation"),this.curOp)){var t=(e=this.curOp.command)&&e.scrollIntoView;if(t){switch(t){case"center-animate":t="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var n=this.selection.getRange(),i=this.renderer.layerConfig;(n.start.row>=i.lastRow||n.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}e=this.selection.toJSON(),this.curOp.selectionAfter=e,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(e),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){var t,n,i,o;this.$mergeUndoDeltas&&(t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(o=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0):i=i&&-1!==n.indexOf(e.command.name),(i=!("always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime)&&i)?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now()))},this.setKeyboardHandler=function(e,t){var n;e&&"string"==typeof e&&"ace"!=e?(this.$keybindingId=e,n=this,v.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))):(this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t())},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){var t,n;this.session!=e&&(this.curOp&&this.endOperation(),this.curOp={},(t=this.session)&&(this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),(n=this.session.getSelection()).off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)),(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart())},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){var e;this.$highlightPending||((e=this).$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t,n,i=e.session;i&&i.bgTokenizer&&(i.$bracketHighlight&&(i.$bracketHighlight.markerIds.forEach((function(e){i.removeMarker(e)})),i.$bracketHighlight=null),(t=!(t=i.getMatchingBracketRanges(e.getCursorPosition()))&&i.$mode.getMatching?i.$mode.getMatching(e.session):t)&&(n="ace_bracket",Array.isArray(t)?1==t.length&&(n="ace_error_bracket"):t=[t],2==t.length&&(0==p.comparePoints(t[0].end,t[1].start)?t=[p.fromPoints(t[0].start,t[1].end)]:0==p.comparePoints(t[0].start,t[1].end)&&(t=[p.fromPoints(t[1].start,t[0].end)])),i.$bracketHighlight={ranges:t,markerIds:t.map((function(e){return i.addMarker(e,n,"text")}))}))}),50))},this.$highlightTags=function(){var e;this.$highlightTagPending||((e=this).$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),i=new y(e.session,n.row,n.column),o=i.getCurrentToken();if(!o||!/\b(?:tag-open|tag-name)/.test(o.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1===o.type.indexOf("tag-open")||(o=i.stepForward())){var r=o.value,s=o.value,a=0,l=i.stepBackward();if("<"===l.value)for(;l=o,(o=i.stepForward())&&(-1!==o.type.indexOf("tag-name")?r===(s=o.value)&&("<"===l.value?a++:"</"===l.value&&a--):r===s&&"/>"===o.value&&a--),o&&0<=a;);else{do{if(o=l,l=i.stepBackward(),o)if(-1!==o.type.indexOf("tag-name"))r===o.value&&("<"===l.value?a++:"</"===l.value&&a--);else if("/>"===o.value){for(var c=0,u=l;u;){if(-1!==u.type.indexOf("tag-name")&&u.value===r){a--;break}if("<"===u.value)break;u=i.stepBackward(),c++}for(var d=0;d<c;d++)i.stepForward()}}while(l&&a<=0);i.stepForward()}if(!o)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);n=i.getCurrentTokenRow();var h=i.getCurrentTokenColumn();n=new p(n,h,n,h+o.value.length),h=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&null!=h&&0!==n.compareRange(h.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),t.$tagHighlight||(t.$tagHighlight=t.addMarker(n,"ace_bracket","text"))}}}),50))},this.focus=function(){var e=this;setTimeout((function(){e.isFocused()||e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){e=e.data,this.renderer.updateLines(e.first,e.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t,n=this.getSession();this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(e=!1)),n.$highlightLineMarker&&!e?(n.removeMarker(n.$highlightLineMarker.id),n.$highlightLineMarker=null):!n.$highlightLineMarker&&e?((t=new p(e.row,e.column,e.row,1/0)).id=n.addMarker(t,"ace_active-line","screenLine"),n.$highlightLineMarker=t):e&&(n.$highlightLineMarker.start.row=e.row,n.$highlightLineMarker.end.row=e.row,n.$highlightLineMarker.start.column=e.column,n._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t,n,i=((i=this.session).$selectionMarker&&i.removeMarker(i.$selectionMarker),i.$selectionMarker=null,this.selection.isEmpty()?this.$updateHighlightActiveLine():(t=this.selection.getRange(),n=this.getSelectionStyle(),i.$selectionMarker=i.addMarker(t,"ace_selection",n)),this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp());this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session;if(!(t=this.getSelectionRange()).isEmpty()&&!t.isMultiLine()){var t,n=t.start.column,i=t.end.column;if(!(5e3<(t=(e=e.getLine(t.start.row)).substring(n,i)).length)&&/[\w\d]/.test(t)&&(t=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:t}),e=e.substring(n-1,i+1),t.test(e)))return t}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i[o];o&&i[o-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal("copy",s),w.lineMode=!!n&&s.text,s.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){this.commands.exec("paste",this,{text:e,event:t})},this.$handlePaste=function(e){this._signal("paste",e="string"==typeof e?{text:e}:e);var t=e.text,n=(e=t===w.lineMode,this.session);if(!this.inMultiSelectMode||this.inVirtualSelectionMode)e?n.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(e)this.selection.rangeList.ranges.forEach((function(e){n.insert({row:e.start.row,column:0},t)}));else{var i=t.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges;e=!(2!=i.length||i[0]&&i[1]);if(i.length!=o.length||e)return this.commands.exec("insertstring",this,t);for(var r=o.length;r--;){var s=o[r];s.isEmpty()||n.remove(s),n.insert(s.start,i[r])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n,i=this.session,o=i.getMode(),r=this.getCursorPosition(),s=(!this.getBehavioursEnabled()||t||(n=o.transformAction(i.getState(r.row),"insertion",this,i,e))&&(e===n.text||this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1),e=n.text),"\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()?this.session.getOverwrite()&&-1==e.indexOf("\n")&&((s=new p.fromPoints(r,r)).end.column+=e.length,this.session.remove(s)):(s=this.getSelectionRange(),r=this.session.remove(s),this.clearSelection()),"\n"!=e&&"\r\n"!=e||(a=i.getLine(r.row),r.column>a.search(/\S|$/)&&(t=a.substr(r.column).search(/\S|$/),i.doc.removeInLine(r.row,r.column,r.column+t))),this.clearSelection(),r.column),a=(t=i.getState(r.row),i.getLine(r.row)),l=o.checkOutdent(t,a,e);i.insert(r,e),n&&n.selection&&(2==n.selection.length?this.selection.setSelectionRange(new p(r.row,s+n.selection[0],r.row,s+n.selection[1])):this.selection.setSelectionRange(new p(r.row+n.selection[0],n.selection[1],r.row+n.selection[2],n.selection[3]))),this.$enableAutoIndent&&(i.getDocument().isNewLine(e)&&(s=o.getNextLineIndent(t,a.slice(0,r.column),i.getTabString()),i.insert({row:r.row+1,column:0},s)),l&&o.autoOutdent(t,i,r.row))},this.autoIndent=function(){for(var e,t,n,i,o,r=this.session,s=r.getMode(),a=(n=this.selection.isEmpty()?(t=0,r.doc.getLength()-1):(t=(e=this.getSelectionRange()).start.row,e.end.row),""),l="",c=r.getTabString(),u=t;u<=n;u++)0<u&&(a=r.getState(u-1),i=r.getLine(u-1),l=s.getNextLineIndent(a,i,c)),i=r.getLine(u),l!==(o=s.$getIndent(i))&&(0<o.length&&(o=new p(u,0,u,o.length),r.remove(o)),0<l.length&&r.insert({row:u,column:0},l)),s.autoOutdent(a,r,u)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}}),e=this.applyComposition.bind(this,e,t),this.selection.rangeCount?this.forEachSelection(e):e(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()),!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t,n,i;e=this.getSelectionRange();this.getBehavioursEnabled()&&(n=(t=this.session).getState(e.start.row),n=t.getMode().transformAction(n,"deletion",this,t,e),0===e.end.column&&"\n"==(i=t.getTextRange(e))[i.length-1]&&(i=t.getLine(e.end.row),/^\s+$/.test(i)&&(e.end.column=i.length)),n&&(e=n)),this.session.remove(e),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){var e,t,n,i;!this.selection.isEmpty()||0!==(t=(e=this.getCursorPosition()).column)&&(i=t<(i=this.session.getLine(e.row)).length?(n=i.charAt(t)+i.charAt(t-1),new p(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),new p(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end))},this.toLowerCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(t.start.row<t.end.row)return o=this.$getSelectedRows(),void e.indentRows(o.first,o.last,"\t");if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n))return o=this.$getSelectedRows(),void e.indentRows(o.first,o.last,"\t")}var i=e.getLine(t.start.row),o=(n=t.start,e.getTabSize());e=e.documentToScreenColumn(n.row,n.column);if(this.session.getUseSoftTabs())var r=o-e%o,a=s.stringRepeat(" ",r);else{for(r=e%o;" "==i[t.start.column-1]&&r;)t.start.column--,r--;this.selection.setSelectionRange(t),a="\t"}return this.insert(a)},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var o=new p(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){for(var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g,i=(n.lastIndex=0,this.session.getLine(e));n.lastIndex<t;){var o=n.exec(i);if(o.index<=t&&o.index+o[0].length>=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},this.modifyNumber=function(e){var t,n,i,o=this.selection.getCursor().row,r=this.selection.getCursor().column,s=new p(o,r-1,o,r);s=this.session.getTextRange(s);!isNaN(parseFloat(s))&&isFinite(s)?(s=this.getNumberAt(o,r))&&(i=0<=s.value.indexOf(".")?s.start+s.value.indexOf(".")+1:s.end,t=s.start+s.value.length-i,n=parseFloat(s.value),n*=Math.pow(10,t),i!==s.end&&r<i?e*=Math.pow(10,s.end-r-1):e*=Math.pow(10,s.end-r),i=(n=(n+=e)/Math.pow(10,t)).toFixed(t),e=new p(o,s.start,o,s.end),this.session.replace(e,i),this.moveCursorTo(o,Math.max(s.start+1,r+i.length-s.value.length))):this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){for(var e,t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=(this.selection.selectWord(),this.getSelectedText()),o=this.selection.getWordRange().start.column,r=i.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),a=n-o-1,l=(a<0&&(a=0),0),c=this,u=(i.match(/[A-Za-z0-9_]+/)&&r.forEach((function(n,r){e=l+n.length,l<=a&&a<=e&&(i=n,c.selection.clearSelection(),c.moveCursorTo(t,l+o),c.selection.selectTo(t,e+o)),l=e})),this.$toggleWordPairs),d=0;d<u.length;d++)for(var h=u[d],f=0;f<=1;f++){var p=+!f,g=i.match(new RegExp("^\\s?_?("+s.escapeRegExp(h[f])+")\\s?$","i"));g&&i.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(g[1])+")($|\\s)","g"))&&(g=i.replace(new RegExp(s.escapeRegExp(h[f]),"i"),(function(e){var t=h[p];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+h[p].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(g))}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e,t=this.selection,n=this.session,i=t.getRange(),o=t.isBackwards();i.isEmpty()?(e=i.start.row,n.duplicateLines(e,e)):(e=o?i.start:i.end,n=n.insert(e,n.getTextRange(i),!1),i.start=e,i.end=n,t.setSelectionRange(i,o))},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n=this.selection;if(!n.inMultiSelectMode||this.inVirtualSelectionMode){var i=n.toOrientedRange(),o=this.$getSelectedRows(i),r=this.session.$moveLines(o.first,o.last,t?0:e);i.moveBy(r=t&&-1==e?0:r,0),n.fromOrientedRange(i)}else{for(var s=n.rangeList.ranges,a=(n.rangeList.detach(this.session),this.inVirtualSelectionMode=!0,0),l=0,c=s.length,u=0;u<c;u++){for(var d=u,h=(s[u].moveBy(a,0),(o=this.$getSelectedRows(s[u])).first),f=o.last;++u<c;){l&&s[u].moveBy(l,0);var p=this.$getSelectedRows(s[u]);if(t&&p.first!=f)break;if(!t&&p.first>f+1)break;f=p.last}for(u--,a=this.session.$moveLines(h,f,t?0:e),t&&-1==e&&(d=u+1);d<=u;)s[d].moveBy(a,0),d++;l+=a=t?a:0}n.fromOrientedRange(n.ranges[0]),n.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection()),e=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(e)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange();e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new y(this.session,n.row,n.column),o=i.getCurrentToken(),r=o||i.stepForward();if(r){var s,a,l,c=!1,u={},d=n.column-r.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(r.value.match(/[{}()\[\]]/g)){for(;d<r.value.length&&!c;d++)if(h[r.value[d]])switch(a=h[r.value[d]]+"."+r.type.replace("rparen","lparen"),isNaN(u[a])&&(u[a]=0),r.value[d]){case"(":case"[":case"{":u[a]++;break;case")":case"]":case"}":u[a]--,-1===u[a]&&(s="bracket",c=!0)}}else-1!==r.type.indexOf("tag-name")&&(isNaN(u[r.value])&&(u[r.value]=0),"<"===o.value?u[r.value]++:"</"===o.value&&u[r.value]--,-1===u[r.value]&&(s="tag",c=!0))}while(c||(o=r,r=i.stepForward(),d=0),r&&!c);if(s){if("bracket"===s)(f=this.session.getBracketRange(n))||(l=(f=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1)).start,(t||l.row===n.row&&Math.abs(l.column-n.column)<2)&&(f=this.session.getBracketRange(l)));else if("tag"===s){if(!r||-1===r.type.indexOf("tag-name"))return;var f,g=r.value;if(0===(f=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column))for(c=!1;r=o,(o=i.stepBackward())&&(-1!==o.type.indexOf("tag-close")&&f.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),r.value===g&&-1!==r.type.indexOf("tag-name")&&("<"===o.value?u[g]++:"</"===o.value&&u[g]--,0===u[g]&&(c=!0))),o&&!c;);r&&r.type.indexOf("tag-name")&&(l=f.start).row==n.row&&Math.abs(l.column-n.column)<2&&(l=f.end)}(l=f&&f.cursor||l)&&(e?f&&t?this.selection.setRange(f):f&&f.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(l.row,l.column):this.selection.moveTo(l.row,l.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){var t;if(this.selection.isMultiLine()&&!this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){var t;if(this.selection.isMultiLine()&&this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=0;return(t=this.$search.find(this.session))&&(this.$tryReplace(t,e)&&(n=1),this.selection.setSelectionRange(t),this.renderer.scrollSelectionIntoView(t.start,t.end)),n},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(n.length){t=this.getSelectionRange(),this.selection.moveTo(0,0);for(var o=n.length-1;0<=o;--o)this.$tryReplace(n[o],e)&&i++;this.selection.setSelectionRange(t)}return i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t=t||{},"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&o.mixin(t,e);var i=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i}),e=this.$search.find(this.session);return t.preventScroll?e:e?(this.revealRange(e,n),e):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){var t,n,i,o,r,s,a;e&&(i=!1,(n=this).$scrollAnchor||(this.$scrollAnchor=document.createElement("div")),(o=this.$scrollAnchor).style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild),r=this.on("changeSelection",(function(){i=!0})),s=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){var e,r,s;i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())&&(e=(r=n.renderer).$cursorLayer.$pixelPos,r=r.layerConfig,s=e.top-r.offset,null!=(i=0<=e.top&&s+t.top<0||!(e.top<r.height&&e.top+t.top+r.lineHeight>window.innerHeight)&&null)&&(o.style.top=s+"px",o.style.left=e.left+"px",o.style.height=r.lineHeight+"px",o.scrollIntoView(i)),i=t=null)})),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",r),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))})},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var i=this;v.loadModule("./ext/prompt",(function(o){o.prompt(i,e,t,n)}))}}.call(i.prototype),v.defineOptions(i.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?x.attach(this):x.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),r.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),r.addCssClass(this.container,"ace_hasPlaceholder"),(e=r.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}});t.Editor=i})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";function i(){this.$maxRev=0,this.$fromUndo=!1,this.reset()}(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var o=n[i][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,i=n.length;i--;){var o=n[i];if(o.rev<e)return t?n[i+1]:o}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r--;){var s=n[r][0];if(s.id<t&&!i&&(i=r+1),s.id<=e){o=r+1;break}}return n.slice(o,i)},this.getChangedRanges=function(e,t){null==t&&this.$rev},this.getChangedLines=function(e,t){null==t&&this.$rev},this.undo=function(e,t){this.lastDeltas=null;var n,i=this.$undoStack;if(function(e,t){for(var n=t;n--;){var i=e[n];if(i&&!i[0].ignore){for(;n<t-1;){var o=function(e,t){for(var n=e.length;n--;)for(var i=0;i<t.length;i++)if(!c(e[n],t[i])){for(;n<e.length;){for(;i--;)c(t[i],e[n]);i=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return 1}}}(i,i.length))return e=e||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0,n=null,(i=i.pop())&&(n=e.undoChanges(i,t),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,n},this.redo=function(e,t){if(this.lastDeltas=null,e=e||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){for(var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1),i=this.$redoStack,a=n,l=0;l<a.length;l++)for(var c=a[l],f=0;f<c.length;f++){p=void 0,g=void 0,m=void 0,b=void 0,v=void 0,y=void 0;var p=i,g=c[f];g=function(e){return{start:s(e.start),end:s(e.end),action:e.action,lines:e.lines.slice()}}(g);for(var m=p.length;m--;){for(var b=p[m],v=0;v<b.length;v++){var y=function(e,t){var n,i,s="insert"==e.action,a="insert"==t.action;if(s&&a)r(e.start,t.start)<0?u(t,e,1):u(e,t,1);else if(s&&!a)0<=r(e.start,t.end)?u(e,t,-1):(r(e.start,t.start)<=0||u(e,o.fromPoints(t.start,e.start),-1),u(t,e,1));else if(!s&&a)0<=r(t.start,e.end)?u(t,e,-1):(r(t.start,e.start)<=0||u(t,o.fromPoints(e.start,t.start),-1),u(e,t,1));else if(!s&&!a)if(0<=r(t.start,e.end))u(t,e,-1);else{if(!(r(t.end,e.start)<=0))return r(e.start,t.start)<0&&(e=h(n=e,t.start)),0<r(e.end,t.end)&&(i=h(e,t.end)),d(t.end,e.start,e.end,-1),i&&!n&&(e.lines=i.lines,e.start=i.start,e.end=i.end,i=e),[t,n,i].filter(Boolean);u(e,t,-1)}return[t,e]}(b[v],g);g=y[0],2!=y.length&&(y[2]?(b.splice(v+1,1,y[1],y[2]),v++):y[1]||(b.splice(v,1),v--))}b.length||p.splice(m,1)}}this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var w=null;return(n=this.$redoStack.pop())&&(w=e.redoChanges(n,t),this.$undoStack.push(n),this.$syncRev()),this.$fromUndo=!1,w},this.$syncRev=function(){var e=(e=(e=this.$undoStack)[e.length-1])&&e[0].id||0;this.$redoStackBaseRev=e,this.$rev=e},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return 0<this.$undoStack.length},this.canRedo=function(){return 0<this.$redoStack.length},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?a(e):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)}}).call(i.prototype);var o=e("./range").Range,r=o.comparePoints;function s(e){return{row:e.row,column:e.column}}function a(e){if(e=e||this,Array.isArray(e))return e.map(a).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function c(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(0<=r(t.start,e.end))u(t,e,-1);else{if(!(r(t.start,e.start)<=0))return;u(e,t,1)}else if(n&&!i)if(0<=r(t.start,e.end))u(t,e,-1);else{if(!(r(t.end,e.start)<=0))return;u(e,t,-1)}else if(!n&&i)if(0<=r(t.start,e.start))u(t,e,1);else{if(!(r(t.start,e.start)<=0))return;u(e,t,1)}else if(!n&&!i)if(0<=r(t.start,e.start))u(t,e,1);else{if(!(r(t.end,e.start)<=0))return;u(e,t,-1)}return 1}function u(e,t,n){d(e.start,t.start,t.end,n),d(e.end,t.start,t.end,n)}function d(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function h(e,t){var n=e.lines,i=e.end,o=(e.end=s(t),e.end.row-e.start.row),r=n.splice(o,n.length);o=o?t.column:t.column-e.start.column;return n.push(r[0].substring(0,o)),r[0]=r[0].substr(o),{start:s(t),end:i,lines:r,action:e.action}}o.comparePoints,t.UndoManager=i})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";function i(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}var o=e("../lib/dom");(function(){this.moveContainer=function(e){o.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight;i=Math.floor(i/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-i*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=o.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=o.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,i){var r,s=this.cellCache.pop();return s||(r=o.createElement("div"),i&&i(r),this.element.appendChild(r),s={element:r,text:"",row:e}),s.row=e,s}}).call(i.prototype),t.Lines=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(e,t,n){"use strict";function i(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new l(this.element),this.$lines.$offsetCoefficient=1}var o=e("../lib/dom"),r=e("../lib/oop"),s=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,l=e("./lines").Lines;function c(e){var t=document.createTextNode("");e.appendChild(t),t=o.createElement("span");return e.appendChild(t),e}(function(){r.implement(this,a),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,o=(o=this.$annotations[i])||(this.$annotations[i]={text:[]});i=(i=n.text)?s.escapeHTML(i):n.html||"";"error"==(i=(-1===o.text.indexOf(i)&&o.text.push(i),n.type))?o.className=" ace_error":"warning"==i&&" ace_error"!=o.className?o.className=" ace_warning":"info"!=i||o.className||(o.className=" ace_info")}},this.$updateAnnotations=function(e){var t,n;this.$annotations.length&&(t=e.start.row,0!=(n=e.end.row-t)&&("remove"==e.action?this.$annotations.splice(t,1+n,null):((e=new Array(1+n)).unshift(t,1),this.$annotations.splice.apply(this.$annotations,e))))},this.update=function(e){this.config=e;for(var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),o=(this.oldLastRow=i,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow(),t.getNextFoldLine(n)),r=o?o.start.row:1/0,s=null,a=-1,l=n;;){if(r<l&&(l=o.end.row+1,r=(o=t.getNextFoldLine(l,o))?o.start.row:1/0),i<l){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=l:(s=this.$lines.createCell(l,e,this.session,c),this.$lines.push(s)),this.$renderCell(s,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1),i=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth;(i+=(n=this.$padding||this.$computePadding()).left+n.right)===this.gutterWidth||isNaN(i)||(this.gutterWidth=i,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",i))},this.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row&&(this.$cursorRow=e.row))},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(0<n&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(n<i)for(o=this.session.getFoldedRowCount(n+1,i);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),i<n&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:1/0;s<o&&(o=r.end.row+1,s=(r=this.session.getNextFoldLine(o,r))?r.start.row:1/0),!(n<o);){var a=this.$lines.createCell(o,e,this.session,c);this.$renderCell(a,e,r,o),i.push(a),o++}return i},this.$renderCell=function(e,t,n,i){var r,s=e.element,a=this.session,l=s.childNodes[0],c=s.childNodes[1],u=a.$firstLineNumber,d=a.$breakpoints,h=a.$decorations,f=a.gutterRenderer||this.$renderer,p=this.$showFoldWidgets&&a.foldWidgets,g=n?n.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";return(h=(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&g<=i&&this.$cursorRow<=n.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),d[i]&&(m+=d[i]),h[i]&&(m+=h[i]),this.$annotations[i]&&(m+=this.$annotations[i].className),s.className!=m&&(s.className=m),!p||null==(r=p[i])&&(r=p[i]=a.getFoldWidget(i)),r?(m="ace_fold-widget ace_"+r,"start"==r&&i==g&&i<n.end.row?m+=" ace_closed":m+=" ace_open",c.className!=m&&(c.className=m),d=t.lineHeight+"px",o.setStyle(c.style,"height",d),o.setStyle(c.style,"display","inline-block")):c&&o.setStyle(c.style,"display","none"),(f?f.getText(a,i):i+u).toString()))!==l.data&&(l.data=h),o.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,a)+"px"),o.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,a)+"px"),e.text=h,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(i.prototype),t.Gutter=i})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";function i(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}var o=e("../range").Range,r=e("../lib/dom");(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t,n;for(n in this.config=e,this.i=0,this.markers){var i,o,r,s=this.markers[n];s.range?(r=s.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(r=r.toScreenRange(this.session),s.renderer?(i=this.$getTop(r.start.row,e),o=this.$padding+r.start.column*e.characterWidth,s.renderer(t,r,o,i,e)):"fullLine"==s.type?this.drawFullLineMarker(t,r,s.clazz,e):"screenLine"==s.type?this.drawScreenLineMarker(t,r,s.clazz,e):r.isMultiLine()?"text"==s.type?this.drawTextMarker(t,r,s.clazz,e):this.drawMultiLineMarker(t,r,s.clazz,e):this.drawSingleLineMarker(t,r,s.clazz+" ace_start ace_br15",e)):s.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,i,r){for(var s,a=this.session,l=t.start.row,c=t.end.row,u=l,d=0,h=a.getScreenLastRowColumn(u),f=new o(u,t.start.column,u,d);u<=c;u++)f.start.row=f.end.row=u,f.start.column=u==l?t.start.column:a.getRowWrapIndent(u),f.end.column=h,s=d,d=h,h=u+1<c?a.getScreenLastRowColumn(u+1):u==c?0:t.end.column,this.drawSingleLineMarker(e,f,n+(u==l?" ace_start":"")+" ace_br"+((u==l||u==l+1&&t.start.column?1:0)|(s<d?2:0)|(h<d?4:0)|(u==c?8:0)),i,u==c?0:1,r)},this.drawMultiLineMarker=function(e,t,n,i,o){var r,s=this.$padding,a=i.lineHeight,l=this.$getTop(t.start.row,i),c=s+t.start.column*i.characterWidth;o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row)?((r=t.clone()).end.row=r.start.row,r.end.column=this.session.getLine(r.start.row).length,this.drawBidiSingleLineMarker(e,r,n+" ace_br1 ace_start",i,null,o)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+l+"px;left:"+c+"px;"+(o||"")),this.session.$bidiHandler.isBidiRow(t.end.row)?((r=t.clone()).start.row=r.end.row,r.start.column=0,this.drawBidiSingleLineMarker(e,r,n+" ace_br12",i,null,o)):(l=this.$getTop(t.end.row,i),c=t.end.column*i.characterWidth,this.elt(n+" ace_br12","height:"+a+"px;width:"+c+"px;top:"+l+"px;left:"+s+"px;"+(o||""))),(a=(t.end.row-t.start.row-1)*i.lineHeight)<=0||(l=this.$getTop(t.start.row+1,i),e=(t.start.column?1:0)|(t.end.column?0:8),this.elt(n+(e?" ace_br"+e:""),"height:"+a+"px;right:0;top:"+l+"px;left:"+s+"px;"+(o||"")))},this.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);e=i.lineHeight,o=(t.end.column+(o||0)-t.start.column)*i.characterWidth;var s=this.$getTop(t.start.row,i);t=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+e+"px;width:"+o+"px;top:"+s+"px;left:"+t+"px;"+(r||""))},this.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var s=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+s+"px;width:"+e.width+(o||0)+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(r||""))}),this)},this.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,i,o){t=this.$getTop(t.start.row,i),i=i.lineHeight,this.elt(n,"height:"+i+"px;top:"+t+"px;left:0;right:0;"+(o||""))}}).call(i.prototype),t.Marker=i})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";function i(e){this.dom=r,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}var o=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),a=e("./lines").Lines,l=e("../lib/event_emitter").EventEmitter;(function(){o.implement(this,l),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e="\n"==(e=this.session.doc).getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){(this.session=e)&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&("string"==typeof(this.showInvisibles=e)?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){for(var e,t,n,i,o,r,a=this.session.getTabSize(),l=(this.tabSize=a,this.$tabStrings=[0]),c=1;c<a+1;c++)this.showTabs?((r=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",r.textContent=s.stringRepeat(this.TAB_CHAR,c),l.push(r)):l.push(this.dom.createTextNode(s.stringRepeat(" ",c),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,e="ace_indent-guide",t=this.showSpaces?" ace_invisible ace_invisible_space":"",n=this.showSpaces?s.stringRepeat(this.SPACE_CHAR,this.tabSize):s.stringRepeat(" ",this.tabSize),i=this.showTabs?" ace_invisible ace_invisible_tab":"",o=this.showTabs?s.stringRepeat(this.TAB_CHAR,this.tabSize):n,(r=this.dom.createElement("span")).className=e+t,r.textContent=n,this.$tabStrings[" "]=r,(r=this.dom.createElement("span")).className=e+i,r.textContent=o,this.$tabStrings["\t"]=r)},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}for(var l,c=!1,u=(a=i,(l=this.session.getNextFoldLine(a))?l.start.row:1/0);u<a&&(a=l.end.row+1,u=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(o<a);){var d,h=r[s++];h&&(this.dom.removeChildren(h),this.$renderLine(h,a,a==u&&l),c&&(h.style.top=this.$lines.computeLineTop(a,e,this.session)+"px"),d=e.lineHeight*this.session.getRowLength(a)+"px",h.style.height!=d&&(c=!0,h.style.height=d)),a++}if(c)for(;s<this.$lines.cells.length;){var f=this.$lines.cells[s++];f.element.style.top=this.$lines.computeLineTop(f.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){for(var i=[],o=t,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;a<o&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(n<o);){var l=this.$lines.createCell(o,e,this.session),c=l.element;this.dom.removeChildren(c),r.setStyle(c.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),r.setStyle(c.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(c,o,o==a&&s),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",i.push(l),o++}return i},this.update=function(e){this.$lines.moveContainer(e);for(var t=(this.config=e).firstRow,n=e.lastRow,i=this.$lines;i.getLength();)i.pop();i.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){for(var o,r,a=this,l=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,c=this.dom.createFragment(this.element),u=0;o=l.exec(i);){var d,h,f=o[1],p=o[2],g=o[3],m=o[4],b=o[5];!a.showSpaces&&p||(d=u!=o.index?i.slice(u,o.index):"",u=o.index+o[0].length,d&&c.appendChild(this.dom.createTextNode(d,this.element)),f?(d=a.session.getScreenTabSize(t+o.index),c.appendChild(a.$tabStrings[d].cloneNode(!0)),t+=d-1):p?a.showSpaces?((h=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",h.textContent=s.stringRepeat(a.SPACE_CHAR,p.length),c.appendChild(h)):c.appendChild(this.com.createTextNode(p,this.element)):g?((h=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",h.textContent=s.stringRepeat(a.SPACE_CHAR,g.length),c.appendChild(h)):m?(t+=1,(h=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",h.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",h.textContent=a.showSpaces?a.SPACE_CHAR:m,c.appendChild(h)):b&&(t+=1,(h=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",h.className="ace_cjk",h.textContent=b,c.appendChild(h)))}return c.appendChild(this.dom.createTextNode(u?i.slice(u):i,this.element)),this.$textToken[n.type]?e.appendChild(c):(r="ace_"+n.type.replace(/\./g," ace_"),h=this.dom.createElement("span"),"fold"==n.type&&(h.style.width=n.value.length*this.config.characterWidth+"px"),h.className=r,h.appendChild(c),e.appendChild(h)),t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||n<=i)return t;if(" "==t[0])for(var o=(i-=i%this.tabSize)/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));else{if("\t"!=t[0])return t;for(r=0;r<i;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0))}return t.substr(i)},this.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},this.$renderWrappedLine=function(e,t,n){var i=0,o=0,r=n[0],a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var u=t[c],d=u.value;if(0==c&&this.displayIndentGuides){if(i=d.length,!(d=this.renderIndentGuide(l,d,r)))continue;i-=d.length}if(i+d.length<r)a=this.$renderToken(l,a,u,d),i+=d.length;else{for(;i+d.length>=r;)a=this.$renderToken(l,a,u,d.substring(0,r-i)),d=d.substring(r-i),i=r,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(s.stringRepeat(" ",n.indent),this.element)),a=0,r=n[++o]||Number.MAX_VALUE;0!=d.length&&(i+=d.length,a=this.$renderToken(l,a,u,d))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],o=i.value;(o=this.displayIndentGuides?this.renderIndentGuide(e,o):o)&&(n=this.$renderToken(e,n,i,o));for(var r=1;r<t.length;r++){if(n+(o=(i=t[r]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,i,o);n=this.$renderToken(e,n,i,o)}},this.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderToken(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t)),(n=this.dom.createElement("span")).className="ace_inline_button ace_keyword ace_toggle_wrap",n.textContent=o?"<hide>":"<click to see more...>",e.appendChild(n)},this.$renderLine=function(e,t,n){var i,o,r=e;(i=(n=n||0==n?n:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,n):this.session.getTokens(t)).length?(o=this.session.getRowSplitData(t))&&o.length?(this.$renderWrappedLine(e,i,o),r=e.lastChild):(r=e,this.$useLineGroups()&&(r=this.$createLineElement(),e.appendChild(r)),this.$renderSimpleLine(r,i)):this.$useLineGroups()&&(r=this.$createLineElement(),e.appendChild(r)),this.showEOL&&r&&(n&&(t=n.end.row),(o=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",o.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,r.appendChild(o))},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[],o=n.getTokens(e);return t.walk((function(e,t,r,s,a){if(null!=e)i.push({type:"fold",value:e});else if((o=a?n.getTokens(t):o).length){for(var l,c=o,u=s,d=r,h=0,f=0;f+c[h].value.length<u;)if(f+=c[h].value.length,++h==c.length)return;for(f!=u&&((l=c[h].value.substring(u-f)).length>d-u&&(l=l.substring(0,d-u)),i.push({type:c[h].type,value:l}),f=u+l.length,h+=1);f<d&&h<c.length;)(l=c[h].value).length+f>d?i.push({type:c[h].type,value:l.substring(0,d-f)}):i.push(c[h]),f+=l.length,h+=1}}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(i.prototype),t.Text=i})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";function i(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),o.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var o=e("../lib/dom");(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)o.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&o.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,o.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,o.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=o.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){var e;if(1<this.cursors.length)return(e=this.cursors.pop()).parentNode.removeChild(e),e},this.hideCursor=function(){this.isVisible=!1,o.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,o.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e,t=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,o.removeCssClass(this.element,"ace_smooth-blinking")),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible?(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&o.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),o.HAS_CSS_ANIMATION?this.$startCssAnimation():(e=function(){this.timeoutId=setTimeout((function(){t(!1)}),.6*this.blinkInterval)}.bind(this),this.intervalId=setInterval((function(){t(!0),e()}),this.blinkInterval),e())):this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e=e||this.session.selection.getCursor();var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return 0<=e.top&&e.top<t.maxHeight},this.update=function(e){this.config=e;for(var t=this.session.$selectionMarkers,n=0,i=0,r=(n=0,(t=void 0!==t&&0!==t.length?t:[{cursor:null}]).length);n<r;n++){var s,a,l=this.getPixelPosition(t[n].cursor,!0);(l.top>e.height+e.offset||l.top<0)&&1<n||(a=(s=this.cursors[i++]||this.addCursor()).style,this.drawCursor?this.drawCursor(s,l,e,t[n],this.session):this.isCursorInView(l,e)?(o.setStyle(a,"display","block"),o.translate(s,l.left,l.top),o.setStyle(a,"width",Math.round(e.characterWidth)+"px"),o.setStyle(a,"height",e.lineHeight+"px")):o.setStyle(a,"display","none"))}for(;this.cursors.length>i;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=l,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?o.addCssClass(this.element,"ace_overwrite-cursors"):o.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";function i(e){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}function o(e,t){i.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=a.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function r(e,t){i.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var s=e("./lib/oop"),a=e("./lib/dom"),l=e("./lib/event"),c=e("./lib/event_emitter").EventEmitter;(function(){s.implement(this,c),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(i.prototype),s.inherits(o,i),function(){this.classSuffix="-v",this.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(o.prototype),s.inherits(r,i),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(r.prototype),t.ScrollBar=o,t.ScrollBarV=o,t.ScrollBarH=r,t.VScrollBar=o,t.HScrollBar=r})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";function i(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;t&&(o.blockIdle(100),n.changes=0,n.onRender(t)),n.changes?n.$recursionLimit--<0||n.schedule():n.$recursionLimit=2}}var o=e("./lib/event");(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(o.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(i.prototype),t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),s=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c="function"==typeof ResizeObserver;e=t.FontMetrics=function(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=r.stringRepeat("X",256),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){i.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=s.onIdle((function t(){e.checkForSizeChanges(),s.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){return 0===(e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256}).width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.textContent=r.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=o.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},this.transformCoordinates=function(e,t){function n(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function r(e,t){return[e*t[0],e*t[1]]}function s(e){return[(e=e.getBoundingClientRect()).left,e.top]}e=e&&r(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var a,l=s(this.els[0]),c=s(this.els[1]),u=s(this.els[2]);c=r(1+(a=n(i(a=s(this.els[3]),c),i(a,u),i(o(c,u),o(a,l))))[0],i(c,l)),u=r(1+a[1],i(u,l));if(t)return d=a[0]*t[0]/200+a[1]*t[1]/200+1,t=o(r(t[0],c),r(t[1],u)),o(r(1/d/200,t),l);var d=i(e,l);t=n(i(c,r(a[0],d)),i(u,r(a[1],d)),d);return r(200,t)}}).call(e.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,n){"use strict";function i(e,t){var n=this;this.container=e||r.createElement("div"),r.addCssClass(this.container,"ace_editor"),r.HI_DPI&&r.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==s.get("useStrictCSP")&&s.set("useStrictCSP",!1),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content),e=this.$textLayer=new c(this.content);this.canvas=e.element,this.$markerFront=new l(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._signal("renderer",this)}var o=e("./lib/oop"),r=e("./lib/dom"),s=e("./config"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,u=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',b=e("./lib/useragent"),v=b.isIE;r.importCssString(m,"ace_editor.css",!1),function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,o.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),r.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var o=this.container;o=(i=i||o.clientHeight||o.scrollHeight,n=n||o.clientWidth||o.scrollWidth,this.$updateCachedSize(e,t,n,i));if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var o=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};return i&&(e||s.height!=i)&&(s.height=i,o|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||s.width!=n)&&(o|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,r.setStyle(this.scrollBarH.element.style,"left",t+"px"),r.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),r.setStyle(this.$gutter.style,"left",this.margin.left+"px"),t=this.scrollBarV.getWidth()+"px",r.setStyle(this.scrollBarH.element.style,"right",t),r.setStyle(this.scroller.style,"right",t),r.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)),s.$dirty=!n||!i,o&&this._signal("resize",a),o},this.onGutterResize=function(e){(e=this.$showGutter?e:0)!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding;e=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){var e;(this.$showPrintMargin||this.$printMarginEl)&&(this.$printMarginEl||((e=r.createElement("div")).className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)),(e=this.$printMarginEl.style).left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",e.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit())},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){var e,t,n,i,o,s,a;this.$isMousePressed||(e=this.textarea.style,s=this.$composition,this.$keepTextAreaAtCursor||s?(n=this.$cursorLayer.$pixelPos)&&(s&&s.markerRange&&(n=this.$cursorLayer.getPixelPosition(s.markerRange.start,!0)),a=this.layerConfig,t=n.top,n=n.left,t-=a.offset,i=s&&s.useTextareaForIME?this.lineHeight:v?0:1,t<0||t>a.height-i?r.translate(this.textarea,0,0):(a=1,o=this.$size.height-i,s?s.useTextareaForIME?(s=this.textarea.value,a=this.characterWidth*this.session.$getStringScreenWidth(s)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(n-=this.scrollLeft)>this.$size.scrollerWidth-a&&(n=this.$size.scrollerWidth-a),n+=this.gutterWidth+this.margin.left,r.setStyle(e,"height",i+"px"),r.setStyle(e,"width",a+"px"),r.translate(this.textarea,Math.min(n,this.$size.scrollerWidth-a),Math.min(t,o)))):r.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n,i;t=this.layerConfig;return(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(n=this.scrollTop+(t.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=n,e=(e|=this.CHANGE_SCROLL)|this.$computeLayerConfig()|this.$loop.clear()),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),r.translate(this.content,-this.scrollLeft,-t.offset),n=t.width+2*this.$padding+"px",i=t.minHeight+"px",r.setStyle(this.content.style,"width",n),r.setStyle(this.content.style,"height",i)),e&this.CHANGE_H_SCROLL&&(r.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor(),void this._signal("afterRender",e)):(e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(t):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),void this._signal("afterRender",e))}this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),t=!((n=this.$maxPixelHeight&&n>this.$maxPixelHeight?this.$maxPixelHeight:n)<=2*this.lineHeight)&&t<e,n==this.desiredHeight&&this.$size.height==this.desiredHeight&&t==this.$vScroll||(t!=this.$vScroll&&(this.$vScroll=t,this.scrollBarV.setVisible(t)),e=this.container.clientWidth,this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,e,n),this.desiredHeight=n,this._signal("autosize"))},this.$computeLayerConfig=function(){var e,t,n=this.session,i=this.$size,o=i.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,s=this.$getLongestLine(),a=!o&&(this.$hScrollBarAlwaysVisible||i.scrollerWidth-s-2*this.$padding<0),l=this.$horizScroll!==a,c=(a=(l&&(this.$horizScroll=a,this.scrollBarH.setVisible(a)),this.$vScroll),this.$maxLines&&1<this.lineHeight&&this.$autosize(),i.scrollerHeight+this.lineHeight),u=(r+=t=!this.$maxLines&&this.$scrollPastEnd?(i.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0,this.scrollMargin),d=(u=((t=a!==(o=(this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,r-i.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,s+2*this.$padding-i.scrollerWidth+u.right))),!o&&(this.$vScrollBarAlwaysVisible||i.scrollerHeight-r+t<0||this.scrollTop>u.top))))&&(this.$vScroll=o,this.scrollBarV.setVisible(o)),this.scrollTop%this.lineHeight),a=Math.ceil(c/this.lineHeight)-1,a=(o=Math.max(0,Math.round((this.scrollTop-u)/this.lineHeight)))+a,this.lineHeight),h=(o=n.screenToDocumentRow(o,0),n.getFoldLine(o));h&&(o=h.start.row),h=n.documentToScreenRow(o,0),e=n.getRowLength(o)*d,a=Math.min(n.screenToDocumentRow(a,0),n.getLength()-1),c=i.scrollerHeight+n.getRowLength(a)*d+e,u=this.scrollTop-h*d,n=0;return this.layerConfig.width==s&&!l||(n=this.CHANGE_H_SCROLL),(l||t)&&(n|=this.$updateCachedSize(!0,this.gutterWidth,i.width,i.height),this._signal("scrollbarVisibilityChanged"),t&&(s=this.$getLongestLine())),this.layerConfig={width:s,padding:this.$padding,firstRow:o,firstRowScreen:h,lastRow:a,lineHeight:d,characterWidth:this.characterWidth,minHeight:c,maxHeight:r,offset:u,gutterOffset:d?Math.max(0,Math.ceil((u+i.height-i.scrollerHeight)/d)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(s-this.$padding),n},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,n=(this.$changedLines=null,this.layerConfig);if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){var i,o,r;0!==this.$size.scrollerHeight&&(i=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,r=n&&n.top||0,n=n&&n.bottom||0,e<(o=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+r?(t&&o+r>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):o+this.$size.scrollerHeight-n<e+this.lineHeight&&(t&&o+this.$size.scrollerHeight-n<e-this.lineHeight&&(e+=t*this.$size.scrollerHeight),this.session.setScrollTop(e+this.lineHeight+n-this.$size.scrollerHeight)),i<(r=this.scrollLeft)?(i<this.$padding+2*this.layerConfig.characterWidth&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):r+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):r<=this.$padding&&i-r<this.characterWidth&&this.session.setScrollLeft(0))},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){e=this.$cursorLayer.getPixelPosition(e="number"==typeof e?{row:e,column:0}:e);var n=this.$size.scrollerHeight-this.lineHeight;e=e.top-n*(t||0);return this.session.setScrollTop(e),e},this.STEPS=8,this.$calcSteps=function(e,t){var n,i,o=0,r=this.STEPS,s=[];for(o=0;o<r;++o)s.push((n=o/this.STEPS,(t-(i=e))*(Math.pow(n-1,3)+1)+i));return s},this.scrollToLine=function(e,t,n,i){e=this.$cursorLayer.getPixelPosition({row:e,column:0}).top,t&&(e-=this.$size.scrollerHeight/2),t=this.scrollTop,this.session.setScrollTop(e),!1!==n&&this.animateScrolling(t,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var o=this.$scrollAnimation.steps;if(o.length&&(e=o[0])==n)return}var r=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:r},clearInterval(this.$timer),i.session.setScrollTop(r.shift()),i.session.$scrollTop=n,this.$timer=setInterval((function(){if(!i.session)return clearInterval(i.$timer);r.length?(i.session.setScrollTop(r.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(e,t){this.$hasCssTransforms?(i={top:0,left:0},e=(n=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=n[0]):i=this.scroller.getBoundingClientRect();var n=e+this.scrollLeft-i.left-this.$padding,i=(e=n/this.characterWidth,t=Math.floor((t+this.scrollTop-i.top)/this.lineHeight),this.$blockCursor?Math.floor(e):Math.round(e));return{row:t,column:i,side:0<e-i?1:-1,offsetX:n}},this.screenToTextCoordinates=function(e,t){this.$hasCssTransforms?(n={top:0,left:0},e=(i=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=i[0]):n=this.scroller.getBoundingClientRect();var n,i=e+this.scrollLeft-n.left-this.$padding;e=i/this.characterWidth,e=this.$blockCursor?Math.floor(e):Math.round(e),t=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(t,Math.max(e,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect();t=this.session.documentToScreenPosition(e,t),e=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,e)?this.session.$bidiHandler.getPosLeft(t.column):Math.round(t.column*this.characterWidth)),t=t.row*this.lineHeight;return{pageX:n.left+e-this.scrollLeft,pageY:n.top+t-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){(this.$composition=e).cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){var e;this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),r.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,e=this.session.selection.cursor,this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display="")},this.addToken=function(e,t,n,i){var o=this.session,r=(o.bgTokenizer.lines[n]=null,{type:t,value:e}),s=o.getTokens(n);if(null==i)s.push(r);else for(var a=0,l=0;l<s.length;l++){var c=s[l];if(i<=(a+=c.value.length)){var u=c.value.length-(a-i),d=c.value.slice(0,u);u=c.value.slice(u);s.splice(l,1,{type:c.type,value:d},r,{type:c.type,value:u});break}}this.updateLines(n,n)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(e,t){var n,i=this;function o(n){if(i.$themeId!=e)return t&&t();if(!n||!n.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");n.$id&&(i.$themeId=n.$id),r.importCssString(n.cssText,n.cssClass,i.container),i.theme&&r.removeCssClass(i.container,i.theme.cssClass);var o="padding"in n?n.padding:"padding"in(i.theme||{})?4:i.$padding;i.$padding&&o!=i.$padding&&i.setPadding(o),i.$theme=n.cssClass,i.theme=n,r.addCssClass(i.container,n.cssClass),r.setCssClass(i.container,"ace_dark",n.isDark),i.$size&&(i.$size.width=0,i.$updateSizeAsync()),i._dispatchEvent("themeLoaded",{theme:n}),t&&t()}this.$themeId=e,i._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e?o(e):(n=e||this.$options.theme.initialValue,s.loadModule(["theme",n],o))},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){r.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){r.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){r.importCssString(m,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""}}.call(i.prototype),s.defineOptions(i.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){this.$scrollPastEnd!=(e=+e||0)&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),t.VirtualRenderer=i})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/net"),r=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e){return"undefined"==typeof Worker?{postMessage:function(){},terminate:function(){}}:s.get("loadWorkerFromBlob")?(t=function(e){e="importScripts('"+o.qualifyURL(e)+"');";try{return new Blob([e],{type:"application/javascript"})}catch(n){var t=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return t.append(e),t.getBlob("application/javascript")}}(e),t=(window.URL||window.webkitURL).createObjectURL(t),new Worker(t)):new Worker(e);var t}function l(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}(function(){i.implement(this,r),this.$createWorkerFromOldConfig=function(t,n,i,o,r){var l,c;return e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl?o=o||s.moduleUrl(n,"worker"):(l=this.$normalizePath,o=o||l(e.toUrl("ace/worker/worker.js",null,"_")),c={},t.forEach((function(t){c[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))),this.$worker=a(o),r&&this.send("importScripts",r),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:i}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return o.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){var i;n&&(i=this.callbackId++,this.callbacks[i]=n,t.push(i)),this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype),t.UIWorkerClient=function(e,t,n){var i=null,o=!1,a=Object.create(r),c=[],u=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),i&&(o?setTimeout(d):d())}}),d=(u.setEmitSync=function(e){o=e},function(){var e=c.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)});return a.postMessage=function(e){u.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){for(i=new e[n](a);c.length;)d()})),u},t.WorkerClient=l,t.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";function i(e,t,n,i,o,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n,t=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}var o=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop");(function(){s.implement(this,r),this.setup=function(){var e=this,t=this.doc,n=this.session,i=(this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column),this.pos);i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new o(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){(n=t.createAnchor(n.row,n.column)).$insertRight=!0,n.detach(),e.others.push(n)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){var e,t;this.othersActive||(e=this.session,(t=this).othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new o(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;0<=s;s--){var a={row:(l=this.others[s]).row,column:l.column+r};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;0<=s;s--){var l;a={row:(l=this.others[s]).row,column:l.column+r};this.doc.remove(new o(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new o(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(i.prototype),t.PlaceHolder=i})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/event"),o=e("../lib/useragent");function r(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&o.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===c){var u,d,h,f,p,g,m,b,v=e.editor,y=v.selection,w=v.inMultiSelectMode,x=e.getDocumentPosition(),k=y.getCursor(),_=(k=e.inSelection()||y.isEmpty()&&r(x,k),e.x),C=e.y,S=v.session,A=v.renderer.pixelToScreenCoordinates(_,C),E=A;if(v.$mouseHandler.$enableJumpToDef)a&&n||l&&n?u=s?"block":"add":n&&v.$blockSelectEnabled&&(u="block");else if(l&&!n){if(u="add",!w&&s)return}else n&&v.$blockSelectEnabled&&(u="block");if(u&&o.isMac&&t.ctrlKey&&v.$mouseHandler.cancelContextMenu(),"add"==u)!w&&k||(w||(d=y.toOrientedRange(),v.addSelectionMarker(d)),h=y.rangeList.rangeAtPoint(x),v.inVirtualSelectionMode=!0,s&&(h=null,d=y.ranges[0]||d,v.removeSelectionMarker(d)),v.once("mouseup",(function(){var e=y.toOrientedRange();h&&e.isEmpty()&&r(h.cursor,e.cursor)?y.substractPoint(e.cursor):(s?y.substractPoint(d.cursor):d&&(v.removeSelectionMarker(d),y.addRange(d)),y.addRange(e)),v.inVirtualSelectionMode=!1})));else if("block"==u)return e.stop(),v.inVirtualSelectionMode=!0,p=[],g=function(){var e=v.renderer.pixelToScreenCoordinates(_,C),t=S.screenToDocumentPosition(e.row,e.column,e.offsetX);r(E,e)&&r(t,y.lead)||(E=e,v.selection.moveToPosition(t),v.renderer.scrollCursorIntoView(),v.removeSelectionMarkers(p),p=y.rectangularRangeBlock(E,A),v.$mouseHandler.$clickSelection&&1==p.length&&p[0].isEmpty()&&(p[0]=v.$mouseHandler.$clickSelection.clone()),p.forEach(v.addSelectionMarker,v),v.updateSelectionMarkers())},w&&!l?y.toSingleRange():!w&&l&&(f=y.toOrientedRange(),v.addSelectionMarker(f)),s?A=S.documentToScreenPosition(y.lead):y.moveToPosition(x),E={row:-1,column:-1},m=g,i.capture(v.container,(function(e){_=e.clientX,C=e.clientY}),(function(e){g(),clearInterval(b),v.removeSelectionMarkers(p),p.length||(p=[y.toOrientedRange()]),f&&(v.removeSelectionMarker(f),y.toSingleRange(f));for(var t=0;t<p.length;t++)y.addRange(p[t]);v.inVirtualSelectionMode=!1,v.$mouseHandler.$clickSelection=null})),b=setInterval((function(){m()}),20),e.preventDefault()}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){1<e.multiSelect.rangeCount?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}],e=e("../keyboard/hash_handler").HashHandler,t.keyboardHandler=new e(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var i=e("./range_list").RangeList,o=e("./range").Range,r=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var u=new(e("./search").Search),d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}return e.cursor||(e.cursor=e.end),n=this.rangeList.add(e),this.$onAddRange(e),n.length&&this.$onRemoveRange(n),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){if(e=this.rangeList.substractPoint(e))return this.$onRemoveRange(e),e[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){var t;this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode&&(t=this.rangeList.ranges.pop(),e.push(t),this.rangeCount=0);for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var i=e[n],r=i.start.row,s=i.end.row;if(r===s)t.push(i.clone());else{for(t.push(new o(r,i.start.column,r,this.session.getLine(r).length));++r<s;)t.push(this.getLineRange(r,!0));t.push(new o(s,0,s,i.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}for(this.toSingleRange(),n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=(t=this.rangeList.ranges)[t.length-1],t=o.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(t,e.cursor==e.start)},this.toggleBlockSelection=function(){var e,t;1<this.rangeCount?(t=(e=this.rangeList.ranges)[e.length-1],e=o.fromPoints(e[0].start,t.end),this.toSingleRange(),this.setSelectionRange(e,t.cursor==t.start)):(e=this.session.documentToScreenPosition(this.cursor),t=this.session.documentToScreenPosition(this.anchor),this.rectangularRangeBlock(e,t).forEach(this.addRange,this))},this.rectangularRangeBlock=function(e,t,n){var i,r,s,a,l,c,u,d=[],h=e.column<t.column,f=(a=h?(i=e.column,r=t.column,s=e.offsetX,t.offsetX):(i=t.column,r=e.column,s=t.offsetX,e.offsetX),e.row<t.row);c=f?(l=e.row,t.row):(l=t.row,e.row),i<0&&(i=0),(l=l<0?0:l)==c&&(n=!0);for(var p,g,m=l;m<=c;m++){var b=o.fromPoints(this.session.screenToDocumentPosition(m,i,s),this.session.screenToDocumentPosition(m,r,a));if(b.isEmpty()){if(u&&(g=u,(p=b.end).row==g.row&&p.column==g.column))break;u=b.end}b.cursor=h?b.start:b.end,d.push(b)}if(f&&d.reverse(),!n){for(var v=d.length-1;d[v].isEmpty()&&0<v;)v--;if(0<v)for(var y=0;d[y].isEmpty();)y++;for(var w=v;y<=w;w--)d[w].isEmpty()&&d.splice(w,1)}return d}}.call(r.prototype),d=e("./editor").Editor;function h(e){var n,i;function o(e){i&&(n.renderer.setMouseCursor(""),i=!1)}e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),(n=e).textInput&&(e=n.textInput.getElement(),i=!1,a.addListener(e,"keydown",(function(e){e=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey),n.$blockSelectEnabled&&e?i||(n.renderer.setMouseCursor("crosshair"),i=!0):i&&o()}),n),a.addListener(e,"keyup",o,n),a.addListener(e,"blur",o,n)))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){e.marker&&(this.session.removeMarker(e.marker),-1!=(e=this.session.$selectionMarkers.indexOf(e))&&this.session.$selectionMarkers.splice(e,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length)},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];i.marker&&(this.session.removeMarker(i.marker),-1!=(i=t.indexOf(i))&&t.splice(i,1))}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t,n=e.command,i=e.editor;if(i.multiSelect)return n.multiSelectAction?t="forEach"==n.multiSelectAction?i.forEachSelection(n,e.args):"forEachLine"==n.multiSelectAction?i.forEachSelection(n,e.args,!0):"single"==n.multiSelectAction?(i.exitMultiSelectMode(),n.exec(i,e.args||{})):n.multiSelectAction(i,e.args||{}):(t=n.exec(i,e.args||{}),i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()),t},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,l=(n=this.selection).rangeList,c=(o?n:l).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});o=n._eventRegistry;var u=(n._eventRegistry={},new r(a));this.inVirtualSelectionMode=!0;for(var d=c.length;d--;){if(s)for(;0<d&&c[d].start.row==c[d-1].end.row;)d--;u.fromOrientedRange(c[d]),u.index=d,this.selection=a.selection=u;var h=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===h||(i=h),u.toOrientedRange(c[d])}return u.detach(),this.selection=a.selection=n,this.inVirtualSelectionMode=!1,n._eventRegistry=o,n.mergeOverlappingRanges(),n.ranges[0]&&n.fromOrientedRange(n.ranges[0]),l=this.renderer.$scrollAnimation,this.onCursorChange(),this.onSelectionChange(),l&&l.from==l.to&&this.renderer.animateScrolling(l.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var o=this.session.getDocument().getNewLineCharacter();(e=n.join(o)).length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){var n;this.inMultiSelectMode&&!this.inVirtualSelectionMode&&(n=this.multiSelect.ranges[0],this.multiSelect.isEmpty()&&t==this.multiSelect.anchor||((n=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor).row!=t.row||this.session.$clipPositionToDocument(n.row,n.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()))},this.findAll=function(e,t,n){(t=t||{}).needle=e||t.needle,null==t.needle&&(i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange(),t.needle=this.session.getTextRange(i)),this.$search.set(t);var i,o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o[0]);for(var s=o.length;s--;)r.addRange(o[s],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n,i,r,s=this.selection.toOrientedRange(),a=s.cursor==s.end,l=this.session.documentToScreenPosition(s.cursor),c=(this.selection.$desiredColumn&&(l.column=this.selection.$desiredColumn),this.session.screenToDocumentPosition(l.row+e,l.column));e=s.isEmpty()?c:(n=this.session.documentToScreenPosition(a?s.end:s.start),this.session.screenToDocumentPosition(n.row+e,n.column)),a?(i=o.fromPoints(c,e)).cursor=i.start:(i=o.fromPoints(e,c)).cursor=i.end,i.desiredColumn=l.column,this.selection.inMultiSelectMode?t&&(r=s.cursor):this.selection.addRange(s),this.selection.addRange(i),r&&this.selection.substractPoint(r)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,o=i.length;o--;)(s=i[o]).isEmpty()&&(a=t.getWordRange(s.start.row,s.start.column),s.start.row=a.start.row,s.start.column=a.start.column,s.end.row=a.end.row,s.end.column=a.end.column);n.mergeOverlappingRanges();var r=[];for(o=i.length;o--;){var s=i[o];r.unshift(t.getTextRange(s))}for(e<0?r.unshift(r.pop()):r.push(r.shift()),o=i.length;o--;){var a=(s=i[o]).clone();t.replace(s,r[o]),s.start.row=a.start.row,s.start.column=a.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var i,o=this.session,r=o.multiSelect.toOrientedRange();r.isEmpty()&&((r=o.getWordRange(r.start.row,r.start.column)).cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),n)||(n=o.getTextRange(r),o=o,n=n,i=e,u.$options.wrap=!0,u.$options.needle=n,u.$options.backwards=-1==i,(n=u.find(o))&&(n.cursor=-1==e?n.start:n.end,this.session.unfold(n),this.multiSelect.addRange(n),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor))},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,r=n.filter((function(e){if(e.cursor.row==i)return!0;i=e.cursor.row}));if(n.length&&r.length!=n.length-1){r.forEach((function(e){t.substractPoint(e.cursor)}));var s=0,a=1/0,c=n.map((function(t){t=t.cursor;var n=e.getLine(t.row).substr(t.column).search(/\S/g);return t.column>s&&(s=t.column),(n=-1==n?0:n)<a&&(a=n),n}));n.forEach((function(t,n){var i=t.cursor,r=s-i.column;(n=c[n]-a)<r?e.insert(i,l.stringRepeat(" ",r-n)):e.remove(new o(i.row,i.column,i.row,i.column-r+n)),t.start.column=t.end.column=s,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=(r=this.selection.getRange()).start.row,d=r.end.row;if(n=u==d){for(var h,f=this.session.getLength();h=this.session.getLine(d),/[=:]/.test(h)&&++d<f;);for(;h=this.session.getLine(u),/[=:]/.test(h)&&0<--u;);u<0&&(u=0),f<=d&&(d=f-1)}var p=this.session.removeFullLines(u,d);p=this.$reAlignText(p,n);this.session.insert({row:u,column:0},p.join("\n")+"\n"),n||(r.start.column=0,r.end.column=p[p.length-1].length),this.selection.setRange(r)}},this.$reAlignText=function(e,t){var n,i,o,r=!0,s=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==n?(n=t[1].length,i=t[2].length,o=t[3].length):(n+i+o!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(r=!1),n>t[1].length&&(n=t[1].length),i<t[2].length&&(i=t[2].length),o>t[3].length&&(o=t[3].length)),t):[e]})).map(t?c:r?s?function(e){return e[2]?a(n+i-e[2].length)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?a(n)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(i-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(d.prototype),t.onSessionChange=function(e){var t=e.session;(e=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,e.oldSession))&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=h,e("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(e){h(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range;e=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){return e=e.getLine(n),this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,r=(l=e.getLine(t)).search(o);if(-1!=r){n=n||l.length;for(var s,a=e.getLength(),l=t,c=t;++t<a;){var u=e.getLine(t).search(o);if(-1!=u){if(u<=r&&(!(u=e.getTokenAt(t,0))||"string"!==u.type))break;c=t}}return l<c?(s=e.getLine(c).length,new i(l,n,c,s)):void 0}},this.openingBracketBlock=function(e,t,n,o,r){if(n={row:n,column:o+1},o=e.$findClosingBracket(t,n,r))return"start"==(t=null==(t=e.foldWidgets[o.row])?e.getFoldWidget(o.row):t)&&o.row>n.row&&(o.row--,o.column=e.getLine(o.row).length),i.fromPoints(n,o)},this.closingBracketBlock=function(e,t,n,o,r){if(n={row:n,column:o},o=e.$findOpeningBracket(t,n))return o.column++,n.column--,i.fromPoints(o,n)}}).call(e.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./lib/dom");function o(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),(this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),(t=this.session.lineWidgets)&&t.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})))},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=(t=e.data).start.row,o=t.end.row,r="add"==e.action,s=i+1;s<o;s++)n[s]&&(n[s].hidden=r);n[o]&&(r?n[i]?n[o].hidden=r:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=r))}},this.updateOnChange=function(e){var t,n,i,o=this.session.lineWidgets;o&&(t=e.start.row,0!=(n=e.end.row-t)&&("remove"==e.action?(i=o.splice(t+1,n),!o[t]&&i[i.length-1]&&(o[t]=i.pop()),i.forEach((function(e){e&&this.removeLineWidget(e)}),this)):(i=new Array(n),o[t]&&null!=o[t].column&&e.start.column>o[t].column&&t++,i.unshift(t,0),o.splice.apply(o,i)),this.$updateRows()))},this.$updateRows=function(){var e,t=this.session.lineWidgets;t&&(e=!0,t.forEach((function(t,n){if(t)for(e=!1,t.row=n;t.$oldWidget;)t.$oldWidget.row=n,t=t.$oldWidget})),e&&(this.session.lineWidgets=null))},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},this.addLineWidget=function(e){var t,n,o;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),n=this.session.getFoldAt(e.row,0),(e.$fold=n)&&(o=this.session.lineWidgets,e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],i=[];n;)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=1/0,r=0;r<n.length;r++){var s=n[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<o&&(o=s.row))}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){for(var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);0<o&&!i[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=o;s<=r;s++){var a,l=i[s];l&&l.el&&(l.hidden?l.el.style.top=-100-(l.pixelHeight||0)+"px":(l._inDocument||(l._inDocument=!0,t.container.appendChild(l.el)),a=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top,l.coverLine||(a+=n.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=a-n.offset+"px",a=l.coverGutter?0:t.gutterWidth,l.fixedWidth||(a-=t.scrollLeft),l.el.style.left=a+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=n.width+2*n.padding+"px"),l.fixedWidth?l.el.style.right=t.scrollBar.getWidth()+"px":l.el.style.right=""))}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,o=e("../lib/dom"),r=e("../range").Range;function s(e,t,n){var i=e.getAnnotations().sort(r.comparePoints);if(i.length){var o=function(e,t,n){for(var i=0,o=e.length-1;i<=o;){var r=i+o>>1,s=n(t,e[r]);if(0<s)i=1+r;else{if(!(s<0))return r;o=r-1}}return-(i+1)}(i,{row:t,column:-1},r.comparePoints),s=((o=o<0?-o-1:o)>=i.length?o=0<n?0:i.length-1:0===o&&n<0&&(o=i.length-1),i[o]);if(s&&n){if(s.row===t){for(;(s=i[o+=n])&&s.row===t;);if(!s)return i.slice()}var a=[];for(t=s.row;a[n<0?"unshift":"push"](s),(s=i[o+=n])&&s.row==t;);return a.length&&a}}}t.showErrorMarker=function(e,t){var n,r=e.session,a=(r.widgetManager||(r.widgetManager=new i(r),r.widgetManager.attach(e)),e.getCursorPosition()),l=a.row;if(l=((d=r.widgetManager.getWidgetsAtRow(l).filter((function(e){return"errorMarker"==e.type}))[0])?d.destroy():l-=t,s(r,l,t)))t=l[0],a.column=(t.pos&&"number"!=typeof t.column?t.pos.sc:t.column)||0,a.row=t.row,n=e.renderer.$gutterLayer.$annotations[a.row];else{if(d)return;n={text:["Looks good!"],className:"ace_ok"}}function c(e,t,n){if(0===t&&("esc"===n||"return"===n))return u.destroy(),{command:"null"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var u={row:a.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},d=(l=u.el.appendChild(o.createElement("div")),(t=u.el.appendChild(o.createElement("div"))).className="error_widget_arrow "+n.className,e.renderer.$cursorLayer.getPixelPosition(a).left);t.style.left=d+e.renderer.gutterWidth-5+"px",u.el.className="error_widget_wrapper",l.className="error_widget "+n.className,l.innerHTML=n.text.join("<br>"),l.appendChild(o.createElement("div")),u.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(c),r.widgetManager.removeLineWidget(u),e.off("changeSelection",u.destroy),e.off("changeSession",u.destroy),e.off("mouseup",u.destroy),e.off("change",u.destroy))},e.keyBinding.addKeyboardHandler(c),e.on("changeSelection",u.destroy),e.on("changeSession",u.destroy),e.on("mouseup",u.destroy),e.on("change",u.destroy),e.session.widgetManager.addLineWidget(u),u.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:u.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,i){"use strict";e("./lib/fixoldbrowsers");var o=e("./lib/dom"),r=e("./lib/event"),s=e("./range").Range,a=e("./editor").Editor,l=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n(12),t.edit=function(e,n){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;i="";var s,l={document:i=(e&&/input|textarea/i.test(e.tagName)?(i=(s=e).value,e=o.createElement("pre"),s.parentNode.replaceChild(e,s)):e&&(i=e.textContent,e.innerHTML=""),t.createEditSession(i)),editor:e=new a(new u(e),i,n),onResize:e.resize.bind(e,null)};return s&&(l.textarea=s),r.addListener(window,"resize",l.onResize),e.on("destroy",(function(){r.removeListener(window,"resize",l.onResize),l.editor.container.env=null})),e.container.env=e.env=l,e},t.createEditSession=function(e,t){return(e=new l(e,t)).setUndoManager(new c),e},t.Range=s,t.Editor=a,t.EditSession=l,t.UndoManager=c,t.VirtualRenderer=u,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace.default=window.ace,e&&(e.exports=window.ace)}))}).call(this,n(9)(e))},function(e,t,n){"use strict";var i=n(0);function o(e,t,n,i,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}i.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=o.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(o,s),Object.defineProperty(r,"isAxiosError",{value:!0}),o.from=function(e,t,n,s,a,l){var c=Object.create(r);return i.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,n,s,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=o},function(e,t,n){"use strict";var i=n(6);function o(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}n(0).inherits(o,i,{__CANCEL__:!0}),e.exports=o},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return y}));var i=n(3),o=n.n(i),r=[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{indent:"-1"},{indent:"+1"}],[{color:[]},{background:[]}],["link","image","video"],["clean"]];i={props:{customModules:Array},methods:{registerCustomModules:function(e){void 0!==this.customModules&&this.customModules.forEach((function(t){e.register("modules/"+t.alias,t.module)}))}}};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(!t||"object"!=typeof t&&"function"!=typeof t){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}return t}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f,p=o.a.import("blots/block/embed"),g=((m=function(){var e=n,t=p;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");function n(){return a(this,n),d(this,c(n).apply(this,arguments))}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t),n}()).blotName="hr",m.tagName="hr",o.a.register("formats/horizontal",m),function(){function e(t,n){var i=this;a(this,e),this.quill=t,this.options=n,this.ignoreTags=["PRE"],this.matches=[{name:"header",pattern:/^(#){1,6}\s/g,action:function(e,t,n){var o;(n=n.exec(e))&&(o=n[0].length,setTimeout((function(){i.quill.formatLine(t.index,0,"header",o-1),i.quill.deleteText(t.index-o,o)}),0))}},{name:"blockquote",pattern:/^(>)\s/g,action:function(e,t){setTimeout((function(){i.quill.formatLine(t.index,1,"blockquote",!0),i.quill.deleteText(t.index-2,2)}),0)}},{name:"code-block",pattern:/^`{3}(?:\s|\n)/g,action:function(e,t){setTimeout((function(){i.quill.formatLine(t.index,1,"code-block",!0),i.quill.deleteText(t.index-4,4)}),0)}},{name:"bolditalic",pattern:/(?:\*|_){3}(.+?)(?:\*|_){3}/g,action:function(e,t,n,o){var r=(n=n.exec(e))[0],s=n[1],a=o+n.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(a,r.length),i.quill.insertText(a,s,{bold:!0,italic:!0}),i.quill.format("bold",!1)}),0)}},{name:"bold",pattern:/(?:\*|_){2}(.+?)(?:\*|_){2}/g,action:function(e,t,n,o){var r=(n=n.exec(e))[0],s=n[1],a=o+n.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(a,r.length),i.quill.insertText(a,s,{bold:!0}),i.quill.format("bold",!1)}),0)}},{name:"italic",pattern:/(?:\*|_){1}(.+?)(?:\*|_){1}/g,action:function(e,t,n,o){var r=(n=n.exec(e))[0],s=n[1],a=o+n.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(a,r.length),i.quill.insertText(a,s,{italic:!0}),i.quill.format("italic",!1)}),0)}},{name:"strikethrough",pattern:/(?:~~)(.+?)(?:~~)/g,action:function(e,t,n,o){var r=(n=n.exec(e))[0],s=n[1],a=o+n.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(a,r.length),i.quill.insertText(a,s,{strike:!0}),i.quill.format("strike",!1)}),0)}},{name:"code",pattern:/(?:`)(.+?)(?:`)/g,action:function(e,t,n,o){var r=(n=n.exec(e))[0],s=n[1],a=o+n.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(a,r.length),i.quill.insertText(a,s,{code:!0}),i.quill.format("code",!1),i.quill.insertText(i.quill.getSelection()," ")}),0)}},{name:"hr",pattern:/^([-*]\s?){3}/g,action:function(e,t){var n=t.index-e.length;setTimeout((function(){i.quill.deleteText(n,e.length),i.quill.insertEmbed(1+n,"hr",!0,o.a.sources.USER),i.quill.insertText(2+n,"\n",o.a.sources.SILENT),i.quill.setSelection(2+n,o.a.sources.SILENT)}),0)}},{name:"asterisk-ul",pattern:/^(\*|\+)\s$/g,action:function(e,t,n){setTimeout((function(){i.quill.formatLine(t.index,1,"list","unordered"),i.quill.deleteText(t.index-2,2)}),0)}},{name:"image",pattern:/(?:!\[(.+?)\])(?:\((.+?)\))/g,action:function(e,t,n){var o=e.search(n),r=e.match(n)[0],s=e.match(/(?:\((.*?)\))/g)[0],a=t.index-r.length-1;-1!==o&&setTimeout((function(){i.quill.deleteText(a,r.length),i.quill.insertEmbed(a,"image",s.slice(1,s.length-1))}),0)}},{name:"link",pattern:/(?:\[(.+?)\])(?:\((.+?)\))/g,action:function(e,t,n){var o=e.search(n),r=e.match(n)[0],s=e.match(/(?:\[(.*?)\])/g)[0],a=e.match(/(?:\((.*?)\))/g)[0],l=t.index-r.length-1;-1!==o&&setTimeout((function(){i.quill.deleteText(l,r.length),i.quill.insertText(l,s.slice(1,s.length-1),"link",a.slice(1,a.length-1))}),0)}}],this.quill.on("text-change",(function(e,t,n){for(var o=0;o<e.ops.length;o++)e.ops[o].hasOwnProperty("insert")&&(" "===e.ops[o].insert?i.onSpace():"\n"===e.ops[o].insert&&i.onEnter())}))}var t,n;return t=e,(n=[{key:"isValid",value:function(e,t){return void 0!==e&&e&&-1===this.ignoreTags.indexOf(t)}},{key:"onSpace",value:function(){var e=this.quill.getSelection();if(e){var t=(n=h(this.quill.getLine(e.index),2))[0],n=n[1],i=t.domNode.textContent,o=e.index-n;if(this.isValid(i,t.domNode.tagName)){var r=!0;n=!1,t=void 0;try{for(var s,a=this.matches[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var l=s.value;if(i.match(l.pattern))return console.log("matched:",l.name,i),void l.action(i,e,l.pattern,o)}}catch(e){n=!0,t=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw t}}}}}},{key:"onEnter",value:function(){var e=this.quill.getSelection();if(e){var t=(n=h(this.quill.getLine(e.index),2))[0],n=n[1],i=t.domNode.textContent+" ",o=e.index-n;if(e.length=e.index++,this.isValid(i,t.domNode.tagName)){var r=!0;n=!1,t=void 0;try{for(var s,a=this.matches[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var l=s.value;if(i.match(l.pattern))return console.log("matched",l.name,i),void l.action(i,e,l.pattern,o)}}catch(e){n=!0,t=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw t}}}}}}])&&l(t.prototype,n),e}()),m={name:"VueEditor",mixins:[i],props:{id:{type:String,default:"quill-container"},placeholder:{type:String,default:""},value:{type:String,default:""},disabled:{type:Boolean},editorToolbar:{type:Array,default:function(){return[]}},editorOptions:{type:Object,required:!1,default:function(){return{}}},useCustomImageHandler:{type:Boolean,default:!1},useMarkdownShortcuts:{type:Boolean,default:!1}},data:function(){return{quill:null}},watch:{value:function(e){e==this.quill.root.innerHTML||this.quill.hasFocus()||(this.quill.root.innerHTML=e)},disabled:function(e){this.quill.enable(!e)}},mounted:function(){this.registerCustomModules(o.a),this.registerPrototypes(),this.initializeEditor()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initializeEditor:function(){this.setupQuillEditor(),this.checkForCustomImageHandler(),this.handleInitialContent(),this.registerEditorEventListeners(),this.$emit("ready",this.quill)},setupQuillEditor:function(){var e={debug:!1,modules:this.setModules(),theme:"snow",placeholder:this.placeholder||"",readOnly:this.disabled||!1};this.prepareEditorConfig(e),this.quill=new o.a(this.$refs.quillContainer,e)},setModules:function(){var e={toolbar:this.editorToolbar.length?this.editorToolbar:r};return this.useMarkdownShortcuts&&(o.a.register("modules/markdownShortcuts",g,!0),e.markdownShortcuts={}),e},prepareEditorConfig:function(e){0<Object.keys(this.editorOptions).length&&this.editorOptions.constructor===Object&&(this.editorOptions.modules&&void 0!==this.editorOptions.modules.toolbar&&delete e.modules.toolbar,function e(t,n){function i(e){return e&&"object"===s(e)}return i(t)&&i(n)?(Object.keys(n).forEach((function(o){var r=t[o],s=n[o];Array.isArray(r)&&Array.isArray(s)?t[o]=r.concat(s):i(r)&&i(s)?t[o]=e(Object.assign({},r),s):t[o]=s})),t):n}(e,this.editorOptions))},registerPrototypes:function(){o.a.prototype.getHTML=function(){return this.container.querySelector(".ql-editor").innerHTML},o.a.prototype.getWordCount=function(){return this.container.querySelector(".ql-editor").innerText.length}},registerEditorEventListeners:function(){this.quill.on("text-change",this.handleTextChange),this.quill.on("selection-change",this.handleSelectionChange),this.listenForEditorEvent("text-change"),this.listenForEditorEvent("selection-change"),this.listenForEditorEvent("editor-change")},listenForEditorEvent:function(e){var t=this;this.quill.on(e,(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t.$emit.apply(t,[e].concat(i))}))},handleInitialContent:function(){this.value&&(this.quill.root.innerHTML=this.value)},handleSelectionChange:function(e,t){!e&&t?this.$emit("blur",this.quill):e&&!t&&this.$emit("focus",this.quill)},handleTextChange:function(e,t){var n="<p><br></p>"===this.quill.getHTML()?"":this.quill.getHTML();this.$emit("input",n),this.useCustomImageHandler&&this.handleImageRemoved(e,t)},handleImageRemoved:function(e,t){var n=this;this.quill.getContents().diff(t).ops.map((function(e){e.insert&&e.insert.hasOwnProperty("image")&&(e=e.insert.image,n.$emit("image-removed",e))}))},checkForCustomImageHandler:function(){!0===this.useCustomImageHandler&&this.setupCustomImageHandler()},setupCustomImageHandler:function(){this.quill.getModule("toolbar").addHandler("image",this.customImageHandler)},customImageHandler:function(){this.$refs.fileInput.click()},emitImageInfo:function(e){e=e.target.files[0];var t=this.quill,n=t.getSelection().index;this.$emit("image-added",e,t,n,(function(){document.getElementById("file-upload").value=""}))}}},b=(i=function(e,t,n,i,o,r,s,a,l,c){"boolean"!=typeof s&&(l=a,a=s,s=!1);var u,d,h="function"==typeof n?n.options:n;return e&&e.render&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns,h._compiled=!0,o&&(h.functional=!0)),i&&(h._scopeId=i),r?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},h._ssrRegister=u):t&&(u=s?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),u&&(h.functional?(d=h.render,h.render=function(e,t){return u.call(t),d(e,t)}):(e=h.beforeCreate,h.beforeCreate=e?[].concat(e,u):[u])),n},"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())),v={},y=i({render:function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"quillWrapper"},[e._t("toolbar"),e._v(" "),t("div",{ref:"quillContainer",attrs:{id:e.id}}),e._v(" "),e.useCustomImageHandler?t("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{id:"file-upload",type:"file",accept:"image/*"},on:{change:function(t){return e.emitImageInfo(t)}}}):e._e()],2)},staticRenderFns:[]},(function(e){e&&(e("data-v-776e788e_0",{source:"/*!\n * Quill Editor v1.3.6\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li::before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:0;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li::before{content:'\\2022'}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li::before,.ql-editor ul[data-checked=true]>li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li::before{content:'\\2611'}.ql-editor ul[data-checked=false]>li::before{content:'\\2610'}.ql-editor li::before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl)::before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl::before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) '. '}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) '. '}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) '. '}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) '. '}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) '. '}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) '. '}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) '. '}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) '. '}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) '. '}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:'';display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:0 0;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:0}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item::before,.ql-snow .ql-picker.ql-header .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item::before,.ql-snow .ql-picker.ql-font .ql-picker-label::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item::before,.ql-snow .ql-picker.ql-size .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}",map:void 0,media:void 0}),e("data-v-776e788e_1",{source:".ql-editor{min-height:200px;font-size:16px}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1px!important}.quillWrapper .ql-snow.ql-toolbar{padding-top:8px;padding-bottom:4px}.quillWrapper .ql-snow.ql-toolbar .ql-formats{margin-bottom:10px}.ql-snow .ql-toolbar button svg,.quillWrapper .ql-snow.ql-toolbar button svg{width:22px;height:22px}.quillWrapper .ql-editor ul[data-checked=false]>li::before,.quillWrapper .ql-editor ul[data-checked=true]>li::before{font-size:1.35em;vertical-align:baseline;bottom:-.065em;font-weight:900;color:#222}.quillWrapper .ql-snow .ql-stroke{stroke:rgba(63,63,63,.95);stroke-linecap:square;stroke-linejoin:initial;stroke-width:1.7px}.quillWrapper .ql-picker-label{font-size:15px}.quillWrapper .ql-snow .ql-active .ql-stroke{stroke-width:2.25px}.quillWrapper .ql-toolbar.ql-snow .ql-formats{vertical-align:top}.ql-picker:not(.ql-background){position:relative;top:2px}.ql-picker.ql-color-picker svg{width:22px!important;height:22px!important}.quillWrapper .imageResizeActive img{display:block;cursor:pointer}.quillWrapper .imageResizeActive~div svg{cursor:pointer}",map:void 0,media:void 0}))}),m,void 0,!1,void 0,(function(e){return function(e,t){var n,i=b?t.media||"default":e;(i=v[i]||(v[i]={ids:new Set,styles:[]})).ids.has(e)||(i.ids.add(e),e=t.source,t.map&&(e=(e+="\n/*# sourceURL="+t.map.sources[0]+" */")+"\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",t.media&&i.element.setAttribute("media",t.media),(f=void 0===f?document.head||document.getElementsByTagName("head")[0]:f).appendChild(i.element)),"styleSheet"in i.element?(i.styles.push(e),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n")):(t=i.ids.size-1,e=document.createTextNode(e),(n=i.element.childNodes)[t]&&i.element.removeChild(n[t]),n.length?i.element.insertBefore(e,n[t]):i.element.appendChild(e)))}}),void 0);i={install:function e(t){e.installed||(e.installed=!0,t.component("VueEditor",y))},version:"2.10.3",Quill:o.a,VueEditor:y},m=null,"undefined"!=typeof window?m=window.Vue:void 0!==e&&(m=e.Vue),m&&m.use(i)}).call(this,n(13))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";(function(t){var i=n(0),o=n(75),r=n(6),s=n(17),a=n(18),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:s,adapter:u="undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t)?n(19):u,transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),!(i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))){if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n=i.isObject(e),r=t&&t["Content-Type"];if((s=i.isFileList(e))||n&&"multipart/form-data"===r)return l=this.env&&this.env.FormData,a(s?{"files[]":e}:e,l&&new l);if(n||"application/json"===r){c(t,"application/json");var s=e,l=void 0;n=void 0;if(i.isString(s))try{return(l||JSON.parse)(s),i.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(s)}}return e}],transformResponse:[function(e){var t=(n=this.transitional||d.transitional)&&n.silentJSONParsing,n=n&&n.forcedJSONParsing;if((t=!t&&"json"===this.responseType)||n&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(t){if("SyntaxError"===e.name)throw r.from(e,r.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(83)},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){d.headers[e]=i.merge(l)})),e.exports=d}).call(this,n(74))},function(e,t,n){e.exports=n.p+"iconfont.eot?8efbc988a87d33707a688f4de3196c99"},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){
9
+ /*!
10
+ * The buffer module from node.js, for the browser.
11
+ *
12
+ * @author Feross Aboukhadijeh <http://feross.org>
13
+ * @license MIT
6
14
  */
7
- function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){o(t,e,n[e])})}return t}function l(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}function s(t,e){if(null==t)return{};var n,i,o=l(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function c(t){return u(t)||d(t)||f()}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}function h(t,e,n){t.addEventListener(e,n,!Bt&&Ht)}function m(t,e,n){t.removeEventListener(e,n,!Bt&&Ht)}function g(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function v(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function b(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&g(t,e):g(t,e))||i&&t===n)return t;if(t===n)break}while(t=v(t))}return null}function w(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(Xt," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(Xt," ")}}function y(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"==typeof n?"":"px")}}function x(t,e){var n="";if("string"==typeof t)n=t;else do{var i=y(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function k(t,e,n){if(t){var i=t.getElementsByTagName(e),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function _(){var t=document.scrollingElement;return t||document.documentElement}function E(t,e,n,i,o){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d;if(t!==window&&t!==_()?(r=t.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Bt))do{if(o&&o.getBoundingClientRect&&("none"!==y(o,"transform")||n&&"static"!==y(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(y(o,"border-top-width")),l-=f.left+parseInt(y(o,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(o=o.parentNode);if(i&&t!==window){var p=x(o||t),h=p&&p.a,m=p&&p.d;p&&(a/=m,l/=h,d/=h,u/=m,s=a+u,c=l+d)}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function S(t,e,n){for(var i=I(t,!0),o=E(t)[e];i;){var r=E(i)[n];if(!("top"===n||"left"===n?o>=r:o<=r))return i;if(i===_())break;i=I(i,!1)}return!1}function C(t,e,n){for(var i=0,o=0,r=t.children;o<r.length;){if("none"!==r[o].style.display&&r[o]!==q.ghost&&r[o]!==q.dragged&&b(r[o],n.draggable,t,!1)){if(i===e)return r[o];i++}o++}return null}function A(t,e){for(var n=t.lastElementChild;n&&(n===q.ghost||"none"===y(n,"display")||e&&!g(n,e));)n=n.previousElementSibling;return n||null}function O(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===q.clone||e&&!g(t,e)||n++;return n}function T(t){var e=0,n=0,i=_();if(t)do{var o=x(t),r=o.a,a=o.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==i&&(t=t.parentNode));return[e,n]}function D(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}function I(t,e){if(!t||!t.getBoundingClientRect)return _();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=y(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return _();if(i||e)return n;i=!0}}}while(n=n.parentNode);return _()}function M(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function R(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function P(t,e){return function(){if(!ht){var n=arguments,i=this;1===n.length?t.call(i,n[0]):t.apply(i,n),ht=setTimeout(function(){ht=void 0},e)}}}function j(){clearTimeout(ht),ht=void 0}function L(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function z(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function F(t,e){y(t,"position","absolute"),y(t,"top",e.top),y(t,"left",e.left),y(t,"width",e.width),y(t,"height",e.height)}function N(t){y(t,"position",""),y(t,"top",""),y(t,"left",""),y(t,"width",""),y(t,"height","")}function B(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){[].slice.call(this.el.children).forEach(function(t){if("none"!==y(t,"display")&&t!==q.ghost){e.push({target:t,rect:E(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=x(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(D(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var o=!1,r=0;e.forEach(function(t){var e=0,n=t.target,a=n.fromRect,l=E(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=x(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&R(s,l)&&!R(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=U(u,s,c,i.options)),R(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=i.options.animation),i.animate(n,u,l,e)),e&&(o=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),o?t=setTimeout(function(){"function"==typeof n&&n()},r):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){y(t,"transition",""),y(t,"transform","");var o=x(this.el),r=o&&o.a,a=o&&o.d,l=(e.left-n.left)/(r||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,y(t,"transform","translate3d("+l+"px,"+s+"px,0)"),V(t),y(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),y(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){y(t,"transition",""),y(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},i)}}}}function V(t){return t.offsetWidth}function U(t,e,n,i){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*i.animation}function Y(t){var e=t.sortable,n=t.rootEl,i=t.name,o=t.targetEl,r=t.cloneEl,l=t.toEl,s=t.fromEl,c=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[$t]){var g,v=e.options,b="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||Bt||Vt?(g=document.createEvent("Event"),g.initEvent(i,!0,!0)):g=new CustomEvent(i,{bubbles:!0,cancelable:!0}),g.to=l||n,g.from=s||n,g.item=o||n,g.clone=r,g.oldIndex=c,g.newIndex=u,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var w=a({},m,Qt.getEventProperties(i,e));for(var y in w)g[y]=w[y];n&&n.dispatchEvent(g),v[b]&&v[b].call(e,g)}}function W(t){Y(a({putSortable:Ot,cloneEl:xt,targetEl:mt,rootEl:bt,oldIndex:_t,oldDraggableIndex:St,newIndex:Et,newDraggableIndex:Ct},t))}function q(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=r({},e),t[$t]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return fe(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==q.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};Qt.initializePlugins(this,t,n);for(var i in n)!(i in e)&&(e[i]=n[i]);me(e);for(var o in this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&ue,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?h(t,"pointerdown",this._onTapStart):(h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),ee.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),r(this,B())}function H(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function X(t,e,n,i,o,r,a,l){var s,c,u=t[$t],d=u.options.onMove;return!window.CustomEvent||Bt||Vt?(s=document.createEvent("Event"),s.initEvent("move",!0,!0)):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=i,s.related=o||e,s.relatedRect=r||E(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function $(t){t.draggable=!1}function G(){re=!1}function J(t,e,n){var i=E(A(n.el,n.options.draggable));return e?t.clientX>i.right+10||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+10}function Q(t,e,n,i,o,r,a,l){var s=i?t.clientY:t.clientX,c=i?n.height:n.width,u=i?n.top:n.left,d=i?n.bottom:n.right,f=!1;if(!a)if(l&&Ft<c*o){if(!ne&&(1===zt?s>u+c*r/2:s<d-c*r/2)&&(ne=!0),ne)f=!0;else if(1===zt?s<u+Ft:s>d-Ft)return-zt}else if(s>u+c*(1-o)/2&&s<d-c*(1-o)/2)return K(e);return f=f||a,f&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}function K(t){return O(mt)<O(t)?1:-1}function Z(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;n--;)i+=e.charCodeAt(n);return i.toString(36)}function tt(t){ae.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var i=e[n];i.checked&&ae.push(i)}}function et(t){return setTimeout(t,0)}function nt(t){return clearTimeout(t)}function it(){function t(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):e.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),rt(),ot(),j()},nulling:function(){Ee=xe=ye=Ae=Se=ke=_e=null,Ce.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(i,o);if(Ee=t,e||Vt||Bt||Yt){Oe(t,this.options,r,e);var a=I(r,!0);!Ae||Se&&i===ke&&o===_e||(Se&&rt(),Se=setInterval(function(){var r=I(document.elementFromPoint(i,o),!0);r!==a&&(a=r,ot()),Oe(t,n.options,r,e)},10),ke=i,_e=o)}else{if(!this.options.bubbleScroll||I(r,!0)===_())return void ot();Oe(t,this.options,I(r,!1),!1)}}},r(t,{pluginName:"scroll",initializeByDefault:!0})}function ot(){Ce.forEach(function(t){clearInterval(t.pid)}),Ce=[]}function rt(){clearInterval(Se)}function at(){}function lt(){}function st(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;De=e},dragOverValid:function(t){var e=t.completed,n=t.target,i=t.onMove,o=t.activeSortable,r=t.changed,a=t.cancel;if(o.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=De;!1!==i(n)?(w(n,s.swapClass,!0),De=n):De=null,c&&c!==De&&w(c,s.swapClass,!1)}r(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,i=t.dragEl,o=n||this.sortable,r=this.options;De&&w(De,r.swapClass,!1),De&&(r.swap||n&&n.options.swap)&&i!==De&&(o.captureAnimationState(),o!==e&&e.captureAnimationState(),ct(i,De),o.animateAll(),o!==e&&e.animateAll())},nulling:function(){De=null}},r(t,{pluginName:"swap",eventProperties:function(){return{swapItem:De}}})}function ct(t,e){var n,i,o=t.parentNode,r=e.parentNode;o&&r&&!o.isEqualNode(e)&&!r.isEqualNode(t)&&(n=O(t),i=O(e),o.isEqualNode(r)&&n<i&&i++,o.insertBefore(e,o.children[n]),r.insertBefore(t,r.children[i]))}function ut(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag)),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var i="";Le.length&&Me===t?Le.forEach(function(t,e){i+=(e?", ":"")+t.textContent}):i=n.textContent,e.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Re=e},delayEnded:function(){this.isMultiDrag=~Le.indexOf(Re)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var i=0;i<Le.length;i++)ze.push(z(Le[i])),ze[i].sortableIndex=Le[i].sortableIndex,ze[i].draggable=!1,ze[i].style["will-change"]="",w(ze[i],this.options.selectedClass,!1),Le[i]===Re&&w(ze[i],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,i=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Le.length&&Me===e&&(ft(!0,n),i("clone"),o()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,i=t.cancel;this.isMultiDrag&&(ft(!1,n),ze.forEach(function(t){y(t,"display","")}),e(),je=!1,i())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),i=t.cancel;this.isMultiDrag&&(ze.forEach(function(t){y(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),je=!0,i())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&Me&&Me.multiDrag._deselectMultiDrag(),Le.forEach(function(t){t.sortableIndex=O(t)}),Le=Le.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),Be=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Le.forEach(function(t){t!==Re&&y(t,"position","absolute")});var i=E(Re,!1,!0,!0);Le.forEach(function(t){t!==Re&&F(t,i)}),Ne=!0,Fe=!0}n.animateAll(function(){Ne=!1,Fe=!1,e.options.animation&&Le.forEach(function(t){N(t)}),e.options.sort&&pt()})}},dragOver:function(t){var e=t.target,n=t.completed,i=t.cancel;Ne&&~Le.indexOf(e)&&(n(!1),i())},revert:function(t){var e=t.fromSortable,n=t.rootEl,i=t.sortable,o=t.dragRect;Le.length>1&&(Le.forEach(function(t){i.addAnimationState({target:t,rect:Ne?E(t):o}),N(t),t.fromRect=o,e.removeAnimationState(t)}),Ne=!1,dt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,i=t.insertion,o=t.activeSortable,r=t.parentEl,a=t.putSortable,l=this.options;if(i){if(n&&o._hideClone(),Fe=!1,l.animation&&Le.length>1&&(Ne||!n&&!o.options.sort&&!a)){var s=E(Re,!1,!0,!0);Le.forEach(function(t){t!==Re&&(F(t,s),r.appendChild(t))}),Ne=!0}if(!n)if(Ne||pt(),Le.length>1){var c=je;o._showClone(e),o.options.animation&&!je&&c&&ze.forEach(function(t){o.addAnimationState({target:t,rect:Pe}),t.fromRect=Pe,t.thisAnimationDuration=null})}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,i=t.activeSortable;if(Le.forEach(function(t){t.thisAnimationDuration=null}),i.options.animation&&!n&&i.multiDrag.isMultiDrag){Pe=r({},e);var o=x(Re,!0);Pe.top-=o.f,Pe.left-=o.e}},dragOverAnimationComplete:function(){Ne&&(Ne=!1,pt())},drop:function(t){var e=t.originalEvent,n=t.rootEl,i=t.parentEl,o=t.sortable,r=t.dispatchSortableEvent,a=t.oldIndex,l=t.putSortable,s=l||this.sortable;if(e){var c=this.options,u=i.children;if(!Be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),w(Re,c.selectedClass,!~Le.indexOf(Re)),~Le.indexOf(Re))Le.splice(Le.indexOf(Re),1),Ie=null,Y({sortable:o,rootEl:n,name:"deselect",targetEl:Re,originalEvt:e});else{if(Le.push(Re),Y({sortable:o,rootEl:n,name:"select",targetEl:Re,originalEvt:e}),e.shiftKey&&Ie&&o.el.contains(Ie)){var d=O(Ie),f=O(Re);if(~d&&~f&&d!==f){var p,h;for(f>d?(h=d,p=f):(h=f,p=d+1);h<p;h++)~Le.indexOf(u[h])||(w(u[h],c.selectedClass,!0),Le.push(u[h]),Y({sortable:o,rootEl:n,name:"select",targetEl:u[h],originalEvt:e}))}}else Ie=Re;Me=s}if(Be&&this.isMultiDrag){if((i[$t].options.sort||i!==n)&&Le.length>1){var m=E(Re),g=O(Re,":not(."+this.options.selectedClass+")");if(!Fe&&c.animation&&(Re.thisAnimationDuration=null),s.captureAnimationState(),!Fe&&(c.animation&&(Re.fromRect=m,Le.forEach(function(t){if(t.thisAnimationDuration=null,t!==Re){var e=Ne?E(t):m;t.fromRect=e,s.addAnimationState({target:t,rect:e})}})),pt(),Le.forEach(function(t){u[g]?i.insertBefore(t,u[g]):i.appendChild(t),g++}),a===O(Re))){var v=!1;Le.forEach(function(t){if(t.sortableIndex!==O(t))return void(v=!0)}),v&&r("update")}Le.forEach(function(t){N(t)}),s.animateAll()}Me=s}(n===i||l&&"clone"!==l.lastPutMode)&&ze.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=Be=!1,ze.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==Be&&Be||Me!==this.sortable||t&&b(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;Le.length;){var e=Le[0];w(e,this.options.selectedClass,!1),Le.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},r(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[$t];e&&e.options.multiDrag&&!~Le.indexOf(t)&&(Me&&Me!==e&&(Me.multiDrag._deselectMultiDrag(),Me=e),w(t,e.options.selectedClass,!0),Le.push(t))},deselect:function(t){var e=t.parentNode[$t],n=Le.indexOf(t);e&&e.options.multiDrag&&~n&&(w(t,e.options.selectedClass,!1),Le.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Le.forEach(function(i){e.push({multiDragElement:i,index:i.sortableIndex});var o;o=Ne&&i!==Re?-1:Ne?O(i,":not(."+t.options.selectedClass+")"):O(i),n.push({multiDragElement:i,index:o})}),{items:c(Le),clones:[].concat(ze),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function dt(t,e){Le.forEach(function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function ft(t,e){ze.forEach(function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function pt(){Le.forEach(function(t){t!==Re&&t.parentNode&&t.parentNode.removeChild(t)})}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"MultiDrag",function(){return ut}),n.d(e,"Sortable",function(){return q}),n.d(e,"Swap",function(){return st});var ht,mt,gt,vt,bt,wt,yt,xt,kt,_t,Et,St,Ct,At,Ot,Tt,Dt,It,Mt,Rt,Pt,jt,Lt,zt,Ft,Nt,Bt=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=p(/Edge/i),Ut=p(/firefox/i),Yt=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),Wt=p(/iP(ad|od|hone)/i),qt=p(/chrome/i)&&p(/android/i),Ht={capture:!1,passive:!1},Xt=/\s+/g,$t="Sortable"+(new Date).getTime(),Gt=[],Jt={initializeByDefault:!0},Qt={mount:function(t){for(var e in Jt)!Jt.hasOwnProperty(e)||e in t||(t[e]=Jt[e]);Gt.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=t+"Global";Gt.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][o]&&e[i.pluginName][o](a({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](a({sortable:e},n)))})},initializePlugins:function(t,e,n,i){Gt.forEach(function(i){var o=i.pluginName;if(t.options[o]||i.initializeByDefault){var a=new i(t,e,t.options);a.sortable=t,a.options=t.options,t[o]=a,r(n,a.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);void 0!==a&&(t.options[o]=a)}},getEventProperties:function(t,e){var n={};return Gt.forEach(function(i){"function"==typeof i.eventProperties&&r(n,i.eventProperties.call(e[i.pluginName],t))}),n},modifyOption:function(t,e,n){var i;return Gt.forEach(function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(i=o.optionListeners[e].call(t[o.pluginName],n))}),i}},Kt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,o=s(n,["evt"]);Qt.pluginEvent.bind(q)(t,e,a({dragEl:mt,parentEl:gt,ghostEl:vt,rootEl:bt,nextEl:wt,lastDownEl:yt,cloneEl:xt,cloneHidden:kt,dragStarted:jt,putSortable:Ot,activeSortable:q.active,originalEvent:i,oldIndex:_t,oldDraggableIndex:St,newIndex:Et,newDraggableIndex:Ct,hideGhostForTarget:ge,unhideGhostForTarget:ve,cloneNowHidden:function(){kt=!0},cloneNowShown:function(){kt=!1},dispatchSortableEvent:function(t){W({sortable:e,name:t,originalEvent:i})}},o))},Zt=!1,te=!1,ee=[],ne=!1,ie=!1,oe=[],re=!1,ae=[],le="undefined"!=typeof document,se=Wt,ce=Vt||Bt?"cssFloat":"float",ue=le&&!qt&&!Wt&&"draggable"in document.createElement("div"),de=function(){if(le){if(Bt)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),fe=function(t,e){var n=y(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=C(t,0,e),r=C(t,1,e),a=o&&y(o),l=r&&y(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+E(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+E(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=i&&"none"===n[ce]||r&&"none"===n[ce]&&s+c>i)?"vertical":"horizontal"},pe=function(t,e,n){var i=n?t.left:t.top,o=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return i===a||o===l||i+r/2===a+s/2},he=function(t,e){var n;return ee.some(function(i){if(!A(i)){var o=E(i),r=i[$t].options.emptyInsertThreshold,a=t>=o.left-r&&t<=o.right+r,l=e>=o.top-r&&e<=o.bottom+r;return r&&a&&l?n=i:void 0}}),n},me=function(t){function e(t,n){return function(i,o,r,a){var l=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(i,o,r,a),n)(i,o,r,a);var s=(n?i:o).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},ge=function(){!de&&vt&&y(vt,"display","none")},ve=function(){!de&&vt&&y(vt,"display","")};le&&document.addEventListener("click",function(t){if(te)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),te=!1,!1},!0);var be=function(t){if(mt){t=t.touches?t.touches[0]:t;var e=he(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[$t]._onDragOver(n)}}},we=function(t){mt&&mt.parentNode[$t]._isOutsideThisEl(t.target)};q.prototype={constructor:q,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Lt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,mt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,o=i.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(tt(n),!mt&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||i.disabled||s.isContentEditable||(l=b(l,i.draggable,n,!1))&&l.animated||yt===l)){if(_t=O(l),St=O(l,i.draggable),"function"==typeof c){if(c.call(this,t,l,this))return W({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Kt("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(i){if(i=b(s,i.trim(),n,!1))return W({sortable:e,rootEl:i,name:"filter",targetEl:l,fromEl:n,toEl:n}),Kt("filter",e,{evt:t}),!0})))return void(o&&t.cancelable&&t.preventDefault());i.handle&&!b(s,i.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var i,o=this,r=o.el,a=o.options,l=r.ownerDocument;if(n&&!mt&&n.parentNode===r){var s=E(n);if(bt=r,mt=n,gt=mt.parentNode,wt=mt.nextSibling,yt=n,At=a.group,q.dragged=mt,Tt={target:mt,clientX:(e||t).clientX,clientY:(e||t).clientY},Rt=Tt.clientX-s.left,Pt=Tt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,mt.style["will-change"]="all",i=function(){if(Kt("delayEnded",o,{evt:t}),q.eventCanceled)return void o._onDrop();o._disableDelayedDragEvents(),!Ut&&o.nativeDraggable&&(mt.draggable=!0),o._triggerDragStart(t,e),W({sortable:o,name:"choose",originalEvent:t}),w(mt,a.chosenClass,!0)},a.ignore.split(",").forEach(function(t){k(mt,t.trim(),$)}),h(l,"dragover",be),h(l,"mousemove",be),h(l,"touchmove",be),h(l,"mouseup",o._onDrop),h(l,"touchend",o._onDrop),h(l,"touchcancel",o._onDrop),Ut&&this.nativeDraggable&&(this.options.touchStartThreshold=4,mt.draggable=!0),Kt("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(Vt||Bt))i();else{if(q.eventCanceled)return void this._onDrop();h(l,"mouseup",o._disableDelayedDrag),h(l,"touchend",o._disableDelayedDrag),h(l,"touchcancel",o._disableDelayedDrag),h(l,"mousemove",o._delayedDragTouchMoveHandler),h(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&h(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){mt&&$(mt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._disableDelayedDrag),m(t,"touchend",this._disableDelayedDrag),m(t,"touchcancel",this._disableDelayedDrag),m(t,"mousemove",this._delayedDragTouchMoveHandler),m(t,"touchmove",this._delayedDragTouchMoveHandler),m(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):e?h(document,"touchmove",this._onTouchMove):h(document,"mousemove",this._onTouchMove):(h(mt,"dragend",this),h(bt,"dragstart",this._onDragStart));try{document.selection?et(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Zt=!1,bt&&mt){Kt("dragStarted",this,{evt:e}),this.nativeDraggable&&h(document,"dragover",we);var n=this.options;!t&&w(mt,n.dragClass,!1),w(mt,n.ghostClass,!0),q.active=this,t&&this._appendGhost(),W({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Dt){this._lastX=Dt.clientX,this._lastY=Dt.clientY,ge();for(var t=document.elementFromPoint(Dt.clientX,Dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Dt.clientX,Dt.clientY))!==e;)e=t;if(mt.parentNode[$t]._isOutsideThisEl(t),e)do{if(e[$t]){if(e[$t]._onDragOver({clientX:Dt.clientX,clientY:Dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);ve()}},_onTouchMove:function(t){if(Tt){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,o=t.touches?t.touches[0]:t,r=vt&&x(vt,!0),a=vt&&r&&r.a,l=vt&&r&&r.d,s=se&&Nt&&T(Nt),c=(o.clientX-Tt.clientX+i.x)/(a||1)+(s?s[0]-oe[0]:0)/(a||1),u=(o.clientY-Tt.clientY+i.y)/(l||1)+(s?s[1]-oe[1]:0)/(l||1);if(!q.active&&!Zt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(vt){r?(r.e+=c-(It||0),r.f+=u-(Mt||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");y(vt,"webkitTransform",d),y(vt,"mozTransform",d),y(vt,"msTransform",d),y(vt,"transform",d),It=c,Mt=u,Dt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!vt){var t=this.options.fallbackOnBody?document.body:bt,e=E(mt,!0,se,!0,t),n=this.options;if(se){for(Nt=t;"static"===y(Nt,"position")&&"none"===y(Nt,"transform")&&Nt!==document;)Nt=Nt.parentNode;Nt!==document.body&&Nt!==document.documentElement?(Nt===document&&(Nt=_()),e.top+=Nt.scrollTop,e.left+=Nt.scrollLeft):Nt=_(),oe=T(Nt)}vt=mt.cloneNode(!0),w(vt,n.ghostClass,!1),w(vt,n.fallbackClass,!0),w(vt,n.dragClass,!0),y(vt,"transition",""),y(vt,"transform",""),y(vt,"box-sizing","border-box"),y(vt,"margin",0),y(vt,"top",e.top),y(vt,"left",e.left),y(vt,"width",e.width),y(vt,"height",e.height),y(vt,"opacity","0.8"),y(vt,"position",se?"absolute":"fixed"),y(vt,"zIndex","100000"),y(vt,"pointerEvents","none"),q.ghost=vt,t.appendChild(vt),y(vt,"transform-origin",Rt/parseInt(vt.style.width)*100+"% "+Pt/parseInt(vt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,o=n.options;if(Kt("dragStart",this,{evt:t}),q.eventCanceled)return void this._onDrop();Kt("setupClone",this),q.eventCanceled||(xt=z(mt),xt.draggable=!1,xt.style["will-change"]="",this._hideClone(),w(xt,this.options.chosenClass,!1),q.clone=xt),n.cloneId=et(function(){Kt("clone",n),q.eventCanceled||(n.options.removeCloneOnHide||bt.insertBefore(xt,mt),n._hideClone(),W({sortable:n,name:"clone"}))}),!e&&w(mt,o.dragClass,!0),e?(te=!0,n._loopId=setInterval(n._emulateDragOver,50)):(m(document,"mouseup",n._onDrop),m(document,"touchend",n._onDrop),m(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,mt)),h(document,"drop",n),y(mt,"transform","translateZ(0)")),Zt=!0,n._dragStartId=et(n._dragStarted.bind(n,e,t)),h(document,"selectstart",n),jt=!0,Yt&&y(document.body,"user-select","none")},_onDragOver:function(t){function e(e,n){Kt(e,x,a({evt:t,isOwner:m,axis:c?"vertical":"horizontal",revert:s,dragRect:r,targetRect:l,canSort:g,fromSortable:v,target:d,completed:i,onMove:function(e,n){return X(bt,u,mt,r,e,E(e),t,n)},changed:o},n))}function n(){e("dragOverAnimationCapture"),x.captureAnimationState(),x!==v&&v.captureAnimationState()}function i(n){return e("dragOverCompleted",{insertion:n}),n&&(m?h._hideClone():h._showClone(x),x!==v&&(w(mt,Ot?Ot.options.ghostClass:h.options.ghostClass,!1),w(mt,f.ghostClass,!0)),Ot!==x&&x!==q.active?Ot=x:x===q.active&&Ot&&(Ot=null),v===x&&(x._ignoreWhileAnimating=d),x.animateAll(function(){e("dragOverAnimationComplete"),x._ignoreWhileAnimating=null}),x!==v&&(v.animateAll(),v._ignoreWhileAnimating=null)),(d===mt&&!mt.animated||d===u&&!d.animated)&&(Lt=null),f.dragoverBubble||t.rootEl||d===document||(mt.parentNode[$t]._isOutsideThisEl(t.target),!n&&be(t)),!f.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),k=!0}function o(){Et=O(mt),Ct=O(mt,f.draggable),W({sortable:x,name:"change",toEl:u,newIndex:Et,newDraggableIndex:Ct,originalEvent:t})}var r,l,s,c,u=this.el,d=t.target,f=this.options,p=f.group,h=q.active,m=At===p,g=f.sort,v=Ot||h,x=this,k=!1;if(!re){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),d=b(d,f.draggable,u,!0),e("dragOver"),q.eventCanceled)return k;if(mt.contains(t.target)||d.animated&&d.animatingX&&d.animatingY||x._ignoreWhileAnimating===d)return i(!1);if(te=!1,h&&!f.disabled&&(m?g||(s=!bt.contains(mt)):Ot===this||(this.lastPutMode=At.checkPull(this,h,mt,t))&&p.checkPut(this,h,mt,t))){if(c="vertical"===this._getDirection(t,d),r=E(mt),e("dragOverValid"),q.eventCanceled)return k;if(s)return gt=bt,n(),this._hideClone(),e("revert"),q.eventCanceled||(wt?bt.insertBefore(mt,wt):bt.appendChild(mt)),i(!0);var _=A(u,f.draggable);if(!_||J(t,c,this)&&!_.animated){if(_===mt)return i(!1);if(_&&u===t.target&&(d=_),d&&(l=E(d)),!1!==X(bt,u,mt,r,d,l,t,!!d))return n(),u.appendChild(mt),gt=u,o(),i(!0)}else if(d.parentNode===u){l=E(d);var C,T=0,D=mt.parentNode!==u,I=!pe(mt.animated&&mt.toRect||r,d.animated&&d.toRect||l,c),M=c?"top":"left",R=S(d,"top","top")||S(mt,"top","top"),P=R?R.scrollTop:void 0;Lt!==d&&(C=l[M],ne=!1,ie=!I&&f.invertSwap||D),T=Q(t,d,l,c,I?1:f.swapThreshold,null==f.invertedSwapThreshold?f.swapThreshold:f.invertedSwapThreshold,ie,Lt===d);var j;if(0!==T){var z=O(mt);do{z-=T,j=gt.children[z]}while(j&&("none"===y(j,"display")||j===vt))}if(0===T||j===d)return i(!1);Lt=d,zt=T;var F=d.nextElementSibling,N=!1;N=1===T;var B=X(bt,u,mt,r,d,l,t,N);if(!1!==B)return 1!==B&&-1!==B||(N=1===B),re=!0,setTimeout(G,30),n(),N&&!F?u.appendChild(mt):d.parentNode.insertBefore(mt,N?F:d),R&&L(R,0,P-R.scrollTop),gt=mt.parentNode,void 0===C||ie||(Ft=Math.abs(C-E(d)[M])),o(),i(!0)}if(u.contains(mt))return i(!1)}return!1}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",be),m(document,"mousemove",be),m(document,"touchmove",be)},_offUpEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._onDrop),m(t,"touchend",this._onDrop),m(t,"pointerup",this._onDrop),m(t,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(Et=O(mt),Ct=O(mt,n.draggable),Kt("drop",this,{evt:t}),gt=mt&&mt.parentNode,Et=O(mt),Ct=O(mt,n.draggable),q.eventCanceled)return void this._nulling();Zt=!1,ie=!1,ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),nt(this.cloneId),nt(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Yt&&y(document.body,"user-select",""),y(mt,"transform",""),t&&(jt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),vt&&vt.parentNode&&vt.parentNode.removeChild(vt),(bt===gt||Ot&&"clone"!==Ot.lastPutMode)&&xt&&xt.parentNode&&xt.parentNode.removeChild(xt),mt&&(this.nativeDraggable&&m(mt,"dragend",this),$(mt),mt.style["will-change"]="",jt&&!Zt&&w(mt,Ot?Ot.options.ghostClass:this.options.ghostClass,!1),w(mt,this.options.chosenClass,!1),W({sortable:this,name:"unchoose",toEl:gt,newIndex:null,newDraggableIndex:null,originalEvent:t}),bt!==gt?(Et>=0&&(W({rootEl:gt,name:"add",toEl:gt,fromEl:bt,originalEvent:t}),W({sortable:this,name:"remove",toEl:gt,originalEvent:t}),W({rootEl:gt,name:"sort",toEl:gt,fromEl:bt,originalEvent:t}),W({sortable:this,name:"sort",toEl:gt,originalEvent:t})),Ot&&Ot.save()):Et!==_t&&Et>=0&&(W({sortable:this,name:"update",toEl:gt,originalEvent:t}),W({sortable:this,name:"sort",toEl:gt,originalEvent:t})),q.active&&(null!=Et&&-1!==Et||(Et=_t,Ct=St),W({sortable:this,name:"end",toEl:gt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Kt("nulling",this),bt=mt=gt=vt=wt=xt=yt=kt=Tt=Dt=jt=Et=Ct=_t=St=Lt=zt=Ot=At=q.dragged=q.ghost=q.clone=q.active=null,ae.forEach(function(t){t.checked=!0}),ae.length=It=Mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":mt&&(this._onDragOver(t),H(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)t=n[i],b(t,r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||Z(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,i){var o=n.children[i];b(o,this.options.draggable,n,!1)&&(e[t]=o)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return b(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=Qt.modifyOption(this,t,e);n[t]=void 0!==i?i:e,"group"===t&&me(n)},destroy:function(){Kt("destroy",this);var t=this.el;t[$t]=null,m(t,"mousedown",this._onTapStart),m(t,"touchstart",this._onTapStart),m(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(t,"dragover",this),m(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ee.splice(ee.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!kt){if(Kt("hideClone",this),q.eventCanceled)return;y(xt,"display","none"),this.options.removeCloneOnHide&&xt.parentNode&&xt.parentNode.removeChild(xt),kt=!0}},_showClone:function(t){if("clone"!==t.lastPutMode)return void this._hideClone();if(kt){if(Kt("showClone",this),q.eventCanceled)return;bt.contains(mt)&&!this.options.group.revertClone?bt.insertBefore(xt,mt):wt?bt.insertBefore(xt,wt):bt.appendChild(xt),this.options.group.revertClone&&this.animate(mt,xt),y(xt,"display",""),kt=!1}}},le&&h(document,"touchmove",function(t){(q.active||Zt)&&t.cancelable&&t.preventDefault()}),q.utils={on:h,off:m,css:y,find:k,is:function(t,e){return!!b(t,e,t,!1)},extend:M,throttle:P,closest:b,toggleClass:w,clone:z,index:O,nextTick:et,cancelNextTick:nt,detectDirection:fe,getChild:C},q.get=function(t){return t[$t]},q.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(q.utils=a({},q.utils,t.utils)),Qt.mount(t)})},q.create=function(t,e){return new q(t,e)},q.version="1.10.2";var ye,xe,ke,_e,Ee,Se,Ce=[],Ae=!1,Oe=P(function(t,e,n,i){if(e.scroll){var o,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=_(),u=!1;xe!==n&&(xe=n,ot(),ye=e.scroll,o=e.scrollFn,!0===ye&&(ye=I(n,!0)));var d=0,f=ye;do{var p=f,h=E(p),m=h.top,g=h.bottom,v=h.left,b=h.right,w=h.width,x=h.height,k=void 0,S=void 0,C=p.scrollWidth,A=p.scrollHeight,O=y(p),T=p.scrollLeft,D=p.scrollTop;p===c?(k=w<C&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),S=x<A&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(k=w<C&&("auto"===O.overflowX||"scroll"===O.overflowX),S=x<A&&("auto"===O.overflowY||"scroll"===O.overflowY));var M=k&&(Math.abs(b-r)<=l&&T+w<C)-(Math.abs(v-r)<=l&&!!T),R=S&&(Math.abs(g-a)<=l&&D+x<A)-(Math.abs(m-a)<=l&&!!D);if(!Ce[d])for(var P=0;P<=d;P++)Ce[P]||(Ce[P]={});Ce[d].vx==M&&Ce[d].vy==R&&Ce[d].el===p||(Ce[d].el=p,Ce[d].vx=M,Ce[d].vy=R,clearInterval(Ce[d].pid),0==M&&0==R||(u=!0,Ce[d].pid=setInterval(function(){i&&0===this.layer&&q.active._onTouchMove(Ee);var e=Ce[this.layer].vy?Ce[this.layer].vy*s:0,n=Ce[this.layer].vx?Ce[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(q.dragged.parentNode[$t],n,e,t,Ee,Ce[this.layer].el)||L(Ce[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&f!==c&&(f=I(f,!1)));Ae=u}},30),Te=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,o=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||o;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n}))}};at.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=C(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Te},r(at,{pluginName:"revertOnSpill"}),lt.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,i=n||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:Te},r(lt,{pluginName:"removeOnSpill"});var De,Ie,Me,Re,Pe,je,Le=[],ze=[],Fe=!1,Ne=!1,Be=!1;q.mount(new it),q.mount(lt,at),e.default=q},function(t,e,n){/*!
15
+ var i=n(62),o=n(63),r=n(64);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(e=null===e?new l(t):e).length=t,e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"!=typeof e)return c(this,e,t,n);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}function c(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer){var o=e,s=t,c=n;if(s.byteLength,c<0||s.byteLength<c)throw new RangeError("'offset' is out of bounds");if(s.byteLength<c+(i||0))throw new RangeError("'length' is out of bounds");return s=void 0===c&&void 0===i?new Uint8Array(s):void 0===i?new Uint8Array(s,c):new Uint8Array(s,c,i),l.TYPED_ARRAY_SUPPORT?(o=s).__proto__=l.prototype:o=h(o,s),o}if("string"!=typeof t){if(c=e,i=t,l.isBuffer(i))return 0!==(c=a(c,s=0|f(i.length))).length&&i.copy(c,0,0,s),c;if(i){if("undefined"!=typeof ArrayBuffer&&i.buffer instanceof ArrayBuffer||"length"in i)return"number"!=typeof i.length||function(e){return e!=e}(i.length)?a(c,0):h(c,i);if("Buffer"===i.type&&r(i.data))return h(c,i.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}if(o=e,i=t,e=n,!l.isEncoding(e="string"==typeof e&&""!==e?e:"utf8"))throw new TypeError('"encoding" must be a valid string encoding');return(i=(o=a(o,t=0|p(i,e))).write(i,e))!==t?o.slice(0,i):o}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=a(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var n=(e="string"!=typeof e?""+e:e).length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(e).length;default:if(i)return L(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var o,r=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var s=t,a=n,l=this.length;(!a||a<0||l<a)&&(a=l);for(var c="",u=s=!s||s<0?0:s;u<a;++u)c+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(this[u]);return c;case"utf8":case"utf-8":return x(this,t,n);case"ascii":l=t;var d=n,h="";d=Math.min(this.length,d);for(var f=l;f<d;++f)h+=String.fromCharCode(127&this[f]);return h;case"latin1":case"binary":s=t;var p=n,g="";p=Math.min(this.length,p);for(var m=s;m<p;++m)g+=String.fromCharCode(this[m]);return g;case"base64":return b=this,o=n,0===(v=t)&&o===b.length?i.fromByteArray(b):i.fromByteArray(b.slice(v,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var b=t,v=n,y=this.slice(b,v),w="",k=0;k<y.length;k+=2)w+=String.fromCharCode(y[k]+256*y[k+1]);return w;default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,(n=(n=isNaN(n)?o?0:e.length-1:n)<0?e.length+n:n)>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,n):v(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,o){var r=1,s=e.length,a=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s/=r=2,a/=2,n/=2}function l(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(o)for(var c=-1,u=n;u<s;u++)if(l(e,u)===l(t,-1===c?0:u-c)){if(u-(c=-1===c?u:c)+1===a)return c*r}else-1!==c&&(u-=u-c),c=-1;else for(u=n=s<n+a?s-a:n;0<=u;u--){for(var d=!0,h=0;h<a;h++)if(l(e,u+h)!==l(t,h)){d=!1;break}if(d)return u}return-1}function y(e,t,n,i){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return q(function(e,t){for(var n,i,o=[],r=0;r<e.length&&!((t-=2)<0);++r)n=(i=e.charCodeAt(r))>>8,i%=256,o.push(i),o.push(n);return o}(t,e.length-n),e,n,i)}function x(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o<n;){var r,s,a,l,c=e[o],u=null,d=239<c?4:223<c?3:191<c?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(r=e[o+1]))&&127<(l=(31&c)<<6|63&r)&&(u=l);break;case 3:r=e[o+1],s=e[o+2],128==(192&r)&&128==(192&s)&&2047<(l=(15&c)<<12|(63&r)<<6|63&s)&&(l<55296||57343<l)&&(u=l);break;case 4:r=e[o+1],s=e[o+2],a=e[o+3],128==(192&r)&&128==(192&s)&&128==(192&a)&&65535<(l=(15&c)<<18|(63&r)<<12|(63&s)<<6|63&a)&&l<1114112&&(u=l)}null===u?(u=65533,d=1):65535<u&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=d}var h=i,f=h.length;if(f<=k)return String.fromCharCode.apply(String,h);for(var p="",g=0;g<f;)p+=String.fromCharCode.apply(String,h.slice(g,g+=k));return p}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return i=null,t=t,n=n,u(e=e),e<=0||void 0===t?a(i,e):"string"==typeof n?a(i,e).fill(t,n):a(i,e).fill(t);var i},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(o=t=0;o<e.length;++o)t+=e[o].length;for(var n=l.allocUnsafe(t),i=0,o=0;o<e.length;++o){var s=e[o];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?x(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(l.isBuffer(e))return this===e||0===l.compare(this,e);throw new TypeError("Argument must be a Buffer")},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),(t=void 0===t?0:t)<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(o<=i&&n<=t)return 0;if(o<=i)return-1;if(n<=t)return 1;if(this===e)return 0;for(var r=(o>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(r,s),c=this.slice(i,o),u=e.slice(t,n),d=0;d<a;++d)if(c[d]!==u[d]){r=c[d],s=u[d];break}return r<s?-1:s<r?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||o<n)&&(n=o),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var r,s,a,l=!1;;)switch(i){case"hex":var c=e,u=t,d=n,h=(u=Number(u)||0,this.length-u);if((!d||h<(d=Number(d)))&&(d=h),(h=c.length)%2!=0)throw new TypeError("Invalid hex string");h/2<d&&(d=h/2);for(var f=0;f<d;++f){var p=parseInt(c.substr(2*f,2),16);if(isNaN(p))return f;this[u+f]=p}return f;case"utf8":case"utf-8":return h=t,a=n,q(L(e,(s=this).length-h),s,h,a);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return y(this,e,t,n);case"base64":return s=this,a=t,r=n,q(R(e),s,a,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function _(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,i,o,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function S(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function A(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function E(e,t,n,i){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,i,r){return r||E(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function T(e,t,n,i,r){return r||E(e,0,n,8),o.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(o=this.subarray(e,t)).__proto__=l.prototype;else for(var i=t-e,o=new l(i,void 0),r=0;r<i;++r)o[r]=this[r+e];return o},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var i=this[e+--t],o=1;0<t&&(o*=256);)i+=this[e+--t]*o;return i},l.prototype.readUInt8=function(e,t){return t||_(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||_(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||_(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var i=t,o=1,r=this[e+--i];0<i&&(o*=256);)r+=this[e+--i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){return t||_(e,2,this.length),32768&(t=this[e]|this[e+1]<<8)?4294901760|t:t},l.prototype.readInt16BE=function(e,t){return t||_(e,2,this.length),32768&(t=this[e+1]|this[e]<<8)?4294901760|t:t},l.prototype.readInt32LE=function(e,t){return t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r<n&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[t+o]=255&e;0<=--o&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):S(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){e=+e,t|=0,i||C(this,e,t,n,(i=Math.pow(2,8*n-1))-1,-i);var o=0,r=1,s=0;for(this[t]=255&e;++o<n&&(r*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/r>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){e=+e,t|=0,i||C(this,e,t,n,(i=Math.pow(2,8*n-1))-1,-i);var o=n-1,r=1,s=0;for(this[t+o]=255&e;0<=--o&&(r*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/r>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&(e=e<0?255+e+1:e),t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):S(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return T(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return T(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n=n||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),(i=0<i&&i<n?n:i)===n)return 0;if(0===e.length||0===this.length)return 0;if((t=t||0)<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length);var o,r=(i=e.length-t<i-n?e.length-t+n:i)-n;if(this===e&&n<t&&t<i)for(o=r-1;0<=o;--o)e[o+t]=this[o+n];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){var o;if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1!==e.length||(o=e.charCodeAt(0))<256&&(e=o),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(!(n<=t))if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(a=t;a<n;++a)this[a]=e;else for(var r=l.isBuffer(e)?e:L(new l(e,i).toString()),s=r.length,a=0;a<n-t;++a)this[a+t]=r[a%s];return this};var $=/[^+\/0-9A-Za-z-_]/g;function L(e,t){t=t||1/0;for(var n,i=e.length,o=null,r=[],s=0;s<i;++s){if(55295<(n=e.charCodeAt(s))&&n<57344){if(!o){if(56319<n){-1<(t-=3)&&r.push(239,191,189);continue}if(s+1===i){-1<(t-=3)&&r.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(t-=3)&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(t-=3)&&r.push(239,191,189);if(o=null,n<128){if(--t<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function R(e){return i.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace($,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,i){for(var o=0;o<i&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(13))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},function(e,t,n){"use strict";var i=n(0);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){var r;return!t||(n=n?n(t):i.isURLSearchParams(t)?t.toString():(r=[],i.forEach(t,(function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),r.push(o(t)+"="+o(e))})))})),r.join("&")))&&(-1!==(t=e.indexOf("#"))&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n),e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var i=n(0);e.exports=function(e,n){n=n||new FormData;var o=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,s){if(i.isPlainObject(t)||i.isArray(t)){if(-1!==o.indexOf(t))throw Error("Circular reference detected in "+s);o.push(t),i.forEach(t,(function(t,o){if(!i.isUndefined(t)){var a=s?s+"."+o:o;if(t&&!s&&"object"==typeof t)if(i.endsWith(o,"{}"))t=JSON.stringify(t);else if(i.endsWith(o,"[]")&&(o=i.toArray(t)))return void o.forEach((function(e){i.isUndefined(e)||n.append(a,r(e))}));e(t,a)}})),o.pop()}else n.append(s,r(t))}(e),n}}).call(this,n(14).Buffer)},function(e,t,n){"use strict";var i=n(0),o=n(76),r=n(77),s=n(16),a=n(20),l=n(80),c=n(81),u=n(17),d=n(6),h=n(7),f=n(82);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,m=e.headers,b=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete m["Content-Type"];var y=new XMLHttpRequest,w=(e.auth&&(w=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"",m.Authorization="Basic "+btoa(w+":"+k)),a(e.baseURL,e.url));function x(){var i;y&&(i="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,i={data:b&&"text"!==b&&"json"!==b?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:i,config:e,request:y},o((function(e){t(e),v()}),(function(e){n(e),v()}),i),y=null)}y.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(x)},y.onabort=function(){y&&(n(new d("Request aborted",d.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,y)),y=null},i.isStandardBrowserEnv()&&(k=(e.withCredentials||c(w))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0)&&(m[e.xsrfHeaderName]=k),"setRequestHeader"in y&&i.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),b&&"json"!==b&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(n(!e||e.type?new h:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));g=g||null;var k=f(w);k&&-1===["http","https","file"].indexOf(k)?n(new d("Unsupported protocol "+k+":",d.ERR_BAD_REQUEST,e)):y.send(g)}))}},function(e,t,n){"use strict";var i=n(78),o=n(79);e.exports=function(e,t){return e&&!i(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var i=n(0);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function r(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function s(e){if(!i.isUndefined(t[e]))return o(void 0,t[e])}function a(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||r,o=t(e);i.isUndefined(o)&&t!==l||(n[e]=o)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){e.exports=n.p+"03250ed25fc1b305e9980cf7cf0dfb09.js"},function(e,t,n){e.exports=n.p+"c755e7fc08446566ee8dd3a8aa8fe43f.js"},function(e,t,n){
16
+ /*!
8
17
  * clipboard.js v2.0.11
9
18
  * https://clipboardjs.com/
10
19
  *
11
20
  * Licensed MIT © Zeno Rocha
12
21
  */
13
- !function(e,n){t.exports=n()}(0,function(){return function(){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{}};return e[i](o,o.exports,t),o.exports}var e={686:function(t,e,n){"use strict";function i(t){try{return document.execCommand(t)}catch(t){return!1}}function o(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=t,n}function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=m();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}n.d(e,{default:function(){return M}});var b=n(279),w=n.n(b),y=n(370),x=n.n(y),k=n(817),_=n.n(k),E=function(t){var e=_()(t);return i("cut"),e},S=E,C=function(t,e){var n=o(t);e.container.appendChild(n);var r=_()(n);return i("copy"),n.remove(),r},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=C(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=C(t.value,e):(n=_()(t),i("copy")),n},O=A,T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,i=t.container,o=t.target,a=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==r(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?O(a,{container:i}):o?"cut"===n?S(o):O(o,{container:i}):void 0},D=T,I=function(t){function e(t,i){var o;return l(this,e),o=n.call(this),o.resolveOptions(i),o.listenClick(t),o}u(e,t);var n=f(e);return c(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===a(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=x()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",i=D({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(i?"success":"error",{action:n,text:i,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return v("action",t)}},{key:"defaultTarget",value:function(t){var e=v("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return v("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return O(t,e)}},{key:"cut",value:function(t){return S(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(w()),M=I},828:function(t){function e(t,e){for(;t&&t.nodeType!==n;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=e},438:function(t,e,n){function i(t,e,n,i,o){var a=r.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}function o(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}function r(t,e,n,i){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&i.call(t,n)}}var a=n(828);t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){function i(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!l.string(e))throw new TypeError("Second argument must be a String");if(!l.fn(n))throw new TypeError("Third argument must be a Function");if(l.node(t))return o(t,e,n);if(l.nodeList(t))return r(t,e,n);if(l.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function o(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return s(document.body,t,e,n)}var l=n(879),s=n(438);t.exports=i},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(t),i.removeAllRanges(),i.addRange(o),e=i.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function i(){o.off(t,i),e.apply(n,arguments)}var o=this;return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,o=n.length;for(i;i<o;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],o=[];if(i&&e)for(var r=0,a=i.length;r<a;r++)i[r].fn!==e&&i[r].fn._!==e&&o.push(i[r]);return o.length?n[t]=o:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={};return function(){t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})}}(),function(){t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),t(686)}().default})},function(t,e,n){"use strict";var i=n(19),o=n(95),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",[n("el-form",{attrs:{"label-position":"top"}},["grid"!=t.data.type?n("el-form-item",{attrs:{label:"字段标识"}},[n("el-input",{model:{value:t.data.model,callback:function(e){t.$set(t.data,"model",e)},expression:"data.model"}})],1):t._e(),t._v(" "),"grid"!=t.data.type?n("el-form-item",{attrs:{label:"标题"}},[n("el-input",{model:{value:t.data.name,callback:function(e){t.$set(t.data,"name",e)},expression:"data.name"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("width")>=0?n("el-form-item",{attrs:{label:"宽度"}},[n("el-input",{model:{value:t.data.options.width,callback:function(e){t.$set(t.data.options,"width",e)},expression:"data.options.width"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("height")>=0?n("el-form-item",{attrs:{label:"高度"}},[n("el-input",{model:{value:t.data.options.height,callback:function(e){t.$set(t.data.options,"height",e)},expression:"data.options.height"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("size")>=0?n("el-form-item",{attrs:{label:"大小"}},[t._v("\n 宽度\n "),n("el-input",{staticStyle:{width:"90px"},attrs:{type:"number"},model:{value:t.data.options.size.width,callback:function(e){t.$set(t.data.options.size,"width",t._n(e))},expression:"data.options.size.width"}}),t._v("\n 高度\n "),n("el-input",{staticStyle:{width:"90px"},attrs:{type:"number"},model:{value:t.data.options.size.height,callback:function(e){t.$set(t.data.options.size,"height",t._n(e))},expression:"data.options.size.height"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("placeholder")>=0&&("time"!=t.data.type||"date"!=t.data.type)?n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{model:{value:t.data.options.placeholder,callback:function(e){t.$set(t.data.options,"placeholder",e)},expression:"data.options.placeholder"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("inline")>=0?n("el-form-item",{attrs:{label:"布局方式"}},[n("el-radio-group",{model:{value:t.data.options.inline,callback:function(e){t.$set(t.data.options,"inline",e)},expression:"data.options.inline"}},[n("el-radio-button",{attrs:{label:!1}},[t._v("块级")]),t._v(" "),n("el-radio-button",{attrs:{label:!0}},[t._v("inline")])],1)],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("showInput")>=0?n("el-form-item",{attrs:{label:"显示输入框"}},[n("el-switch",{model:{value:t.data.options.showInput,callback:function(e){t.$set(t.data.options,"showInput",e)},expression:"data.options.showInput"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("min")>=0?n("el-form-item",{attrs:{label:"最小值"}},[n("el-input-number",{attrs:{min:0,max:100,step:1},model:{value:t.data.options.min,callback:function(e){t.$set(t.data.options,"min",e)},expression:"data.options.min"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("max")>=0?n("el-form-item",{attrs:{label:"最大值"}},[n("el-input-number",{attrs:{min:0,max:100,step:1},model:{value:t.data.options.max,callback:function(e){t.$set(t.data.options,"max",e)},expression:"data.options.max"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("step")>=0?n("el-form-item",{attrs:{label:"步长"}},[n("el-input-number",{attrs:{min:0,max:100,step:1},model:{value:t.data.options.step,callback:function(e){t.$set(t.data.options,"step",e)},expression:"data.options.step"}})],1):t._e(),t._v(" "),"select"==t.data.type||"imgupload"==t.data.type?n("el-form-item",{attrs:{label:"是否多选"}},[n("el-switch",{on:{change:t.handleSelectMuliple},model:{value:t.data.options.multiple,callback:function(e){t.$set(t.data.options,"multiple",e)},expression:"data.options.multiple"}})],1):t._e(),t._v(" "),"select"==t.data.type?n("el-form-item",{attrs:{label:"是否可搜索"}},[n("el-switch",{model:{value:t.data.options.filterable,callback:function(e){t.$set(t.data.options,"filterable",e)},expression:"data.options.filterable"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("allowHalf")>=0?n("el-form-item",{attrs:{label:"允许半选"}},[n("el-switch",{model:{value:t.data.options.allowHalf,callback:function(e){t.$set(t.data.options,"allowHalf",e)},expression:"data.options.allowHalf"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("showAlpha")>=0?n("el-form-item",{attrs:{label:"支持透明度选择"}},[n("el-switch",{model:{value:t.data.options.showAlpha,callback:function(e){t.$set(t.data.options,"showAlpha",e)},expression:"data.options.showAlpha"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("showLabel")>=0?n("el-form-item",{attrs:{label:"是否显示标签"}},[n("el-switch",{model:{value:t.data.options.showLabel,callback:function(e){t.$set(t.data.options,"showLabel",e)},expression:"data.options.showLabel"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("options")>=0?n("el-form-item",{attrs:{label:"选项"}},[n("el-radio-group",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini"},model:{value:t.data.options.remote,callback:function(e){t.$set(t.data.options,"remote",e)},expression:"data.options.remote"}},[n("el-radio-button",{attrs:{label:!1}},[t._v("静态数据")]),t._v(" "),n("el-radio-button",{attrs:{label:!0}},[t._v("远端数据")])],1),t._v(" "),t.data.options.remote?[n("div",[n("el-input",{attrs:{size:"mini"},model:{value:t.data.options.remoteFunc,callback:function(e){t.$set(t.data.options,"remoteFunc",e)},expression:"data.options.remoteFunc"}},[n("template",{slot:"prepend"},[t._v("远端方法")])],2),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.data.options.props.value,callback:function(e){t.$set(t.data.options.props,"value",e)},expression:"data.options.props.value"}},[n("template",{slot:"prepend"},[t._v("值")])],2),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.data.options.props.label,callback:function(e){t.$set(t.data.options.props,"label",e)},expression:"data.options.props.label"}},[n("template",{slot:"prepend"},[t._v("标签")])],2)],1)]:["radio"==t.data.type||"select"==t.data.type&&!t.data.options.multiple?[n("el-radio-group",{model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}},[n("draggable",t._b({attrs:{tag:"ul",list:t.data.options.options,handle:".drag-item"}},"draggable",{group:{name:"options"},ghostClass:"ghost",handle:".drag-item"},!1),t._l(t.data.options.options,function(e,i){return n("li",{key:i},[n("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:e.value}},[n("el-input",{style:{width:t.data.options.showLabel?"90px":"180px"},attrs:{size:"mini"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"item.value"}}),t._v(" "),t.data.options.showLabel?n("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini"},model:{value:e.label,callback:function(n){t.$set(e,"label",n)},expression:"item.label"}}):t._e()],1),t._v(" "),n("i",{staticClass:"drag-item",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}},[n("i",{staticClass:"iconfont icon-icon_bars"})]),t._v(" "),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.handleOptionsRemove(i)}}})],1)}),0)],1)]:t._e(),t._v(" "),"checkbox"==t.data.type||"select"==t.data.type&&t.data.options.multiple?[n("el-checkbox-group",{model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}},[n("draggable",t._b({attrs:{tag:"ul",list:t.data.options.options,handle:".drag-item"}},"draggable",{group:{name:"options"},ghostClass:"ghost",handle:".drag-item"},!1),t._l(t.data.options.options,function(e,i){return n("li",{key:i},[n("el-checkbox",{staticStyle:{"margin-right":"5px"},attrs:{label:e.value}},[n("el-input",{style:{width:t.data.options.showLabel?"90px":"180px"},attrs:{size:"mini"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"item.value"}}),t._v(" "),t.data.options.showLabel?n("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini"},model:{value:e.label,callback:function(n){t.$set(e,"label",n)},expression:"item.label"}}):t._e()],1),t._v(" "),n("i",{staticClass:"drag-item",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}},[n("i",{staticClass:"iconfont icon-icon_bars"})]),t._v(" "),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.handleOptionsRemove(i)}}})],1)}),0)],1)]:t._e(),t._v(" "),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:t.handleAddOption}},[t._v("添加选项")])],1)]],2):t._e(),t._v(" "),"cascader"==t.data.type?n("el-form-item",{attrs:{label:"远端数据"}},[n("div",[n("el-input",{attrs:{size:"mini"},model:{value:t.data.options.remoteFunc,callback:function(e){t.$set(t.data.options,"remoteFunc",e)},expression:"data.options.remoteFunc"}},[n("template",{slot:"prepend"},[t._v("远端方法")])],2),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.data.options.props.value,callback:function(e){t.$set(t.data.options.props,"value",e)},expression:"data.options.props.value"}},[n("template",{slot:"prepend"},[t._v("值")])],2),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.data.options.props.label,callback:function(e){t.$set(t.data.options.props,"label",e)},expression:"data.options.props.label"}},[n("template",{slot:"prepend"},[t._v("标签")])],2),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.data.options.props.children,callback:function(e){t.$set(t.data.options.props,"children",e)},expression:"data.options.props.children"}},[n("template",{slot:"prepend"},[t._v("子选项")])],2)],1)]):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("defaultValue")>=0&&("textarea"==t.data.type||"input"==t.data.type||"rate"==t.data.type||"color"==t.data.type||"switch"==t.data.type||"text"==t.data.type)?n("el-form-item",{attrs:{label:"默认值"}},["textarea"==t.data.type?n("el-input",{attrs:{type:"textarea",rows:5},model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}):t._e(),t._v(" "),"input"==t.data.type?n("el-input",{model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}):t._e(),t._v(" "),"rate"==t.data.type?n("el-rate",{staticStyle:{display:"inline-block","vertical-align":"middle"},attrs:{max:t.data.options.max,"allow-half":t.data.options.allowHalf},model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}):t._e(),t._v(" "),"rate"==t.data.type?n("el-button",{staticStyle:{display:"inline-block","vertical-align":"middle","margin-left":"10px"},attrs:{type:"text"},on:{click:function(e){t.data.options.defaultValue=0}}},[t._v("清空")]):t._e(),t._v(" "),"color"==t.data.type?n("el-color-picker",{attrs:{"show-alpha":t.data.options.showAlpha},model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}):t._e(),t._v(" "),"switch"==t.data.type?n("el-switch",{model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}):t._e(),t._v(" "),"text"==t.data.type?n("el-input",{model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}):t._e()],1):t._e(),t._v(" "),"textarea"==t.data.type||"input"==t.data.type?n("el-form-item",{attrs:{label:"最大字数"}},[n("el-input-number",{attrs:{min:-1},model:{value:t.data.options.maxlength,callback:function(e){t.$set(t.data.options,"maxlength",e)},expression:"data.options.maxlength"}})],1):t._e(),t._v(" "),"textarea"==t.data.type||"input"==t.data.type?n("el-form-item",{attrs:{label:"显示字数统计"}},[n("el-switch",{model:{value:t.data.options.showWordLimit,callback:function(e){t.$set(t.data.options,"showWordLimit",e)},expression:"data.options.showWordLimit"}})],1):t._e(),t._v(" "),"time"==t.data.type||"date"==t.data.type?["date"==t.data.type?n("el-form-item",{attrs:{label:"显示类型"}},[n("el-select",{model:{value:t.data.options.type,callback:function(e){t.$set(t.data.options,"type",e)},expression:"data.options.type"}},[n("el-option",{attrs:{value:"year"}}),t._v(" "),n("el-option",{attrs:{value:"month"}}),t._v(" "),n("el-option",{attrs:{value:"date"}}),t._v(" "),n("el-option",{attrs:{value:"dates"}}),t._v(" "),n("el-option",{attrs:{value:"datetime"}}),t._v(" "),n("el-option",{attrs:{value:"datetimerange"}}),t._v(" "),n("el-option",{attrs:{value:"daterange"}})],1)],1):t._e(),t._v(" "),"time"==t.data.type?n("el-form-item",{attrs:{label:"是否为范围选择"}},[n("el-switch",{model:{value:t.data.options.isRange,callback:function(e){t.$set(t.data.options,"isRange",e)},expression:"data.options.isRange"}})],1):t._e(),t._v(" "),"date"==t.data.type?n("el-form-item",{attrs:{label:"是否获取时间戳"}},[n("el-switch",{model:{value:t.data.options.timestamp,callback:function(e){t.$set(t.data.options,"timestamp",e)},expression:"data.options.timestamp"}})],1):t._e(),t._v(" "),!t.data.options.isRange&&"time"==t.data.type||"time"!=t.data.type&&"datetimerange"!=t.data.options.type&&"daterange"!=t.data.options.type?n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{model:{value:t.data.options.placeholder,callback:function(e){t.$set(t.data.options,"placeholder",e)},expression:"data.options.placeholder"}})],1):t._e(),t._v(" "),t.data.options.isRange||"datetimerange"==t.data.options.type||"daterange"==t.data.options.type?n("el-form-item",{attrs:{label:"开始时间占位内容"}},[n("el-input",{model:{value:t.data.options.startPlaceholder,callback:function(e){t.$set(t.data.options,"startPlaceholder",e)},expression:"data.options.startPlaceholder"}})],1):t._e(),t._v(" "),t.data.options.isRange||"datetimerange"==t.data.options.type||"daterange"==t.data.options.type?n("el-form-item",{attrs:{label:"结束时间占位内容"}},[n("el-input",{model:{value:t.data.options.endPlaceholder,callback:function(e){t.$set(t.data.options,"endPlaceholder",e)},expression:"data.options.endPlaceholder"}})],1):t._e(),t._v(" "),n("el-form-item",{attrs:{label:"格式"}},[n("el-input",{model:{value:t.data.options.format,callback:function(e){t.$set(t.data.options,"format",e)},expression:"data.options.format"}})],1),t._v(" "),"time"==t.data.type&&Object.keys(t.data.options).indexOf("isRange")>=0?n("el-form-item",{attrs:{label:"默认值"}},[t.data.options.isRange?t._e():n("el-time-picker",{key:"1",staticStyle:{width:"100%"},attrs:{arrowControl:t.data.options.arrowControl,"value-format":t.data.options.format},model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}),t._v(" "),t.data.options.isRange?n("el-time-picker",{key:"2",staticStyle:{width:"100%"},attrs:{"is-range":"",arrowControl:t.data.options.arrowControl,"value-format":t.data.options.format},model:{value:t.data.options.defaultValue,callback:function(e){t.$set(t.data.options,"defaultValue",e)},expression:"data.options.defaultValue"}}):t._e()],1):t._e()]:t._e(),t._v(" "),"imgupload"==t.data.type?[n("el-form-item",{attrs:{label:"最大上传数"}},[n("el-input",{attrs:{type:"number"},model:{value:t.data.options.length,callback:function(e){t.$set(t.data.options,"length",t._n(e))},expression:"data.options.length"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"使用七牛上传"}},[n("el-switch",{model:{value:t.data.options.isQiniu,callback:function(e){t.$set(t.data.options,"isQiniu",e)},expression:"data.options.isQiniu"}})],1),t._v(" "),t.data.options.isQiniu?[n("el-form-item",{attrs:{label:"Domain",required:!0}},[n("el-input",{model:{value:t.data.options.domain,callback:function(e){t.$set(t.data.options,"domain",e)},expression:"data.options.domain"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"获取七牛Token方法",required:!0}},[n("el-input",{model:{value:t.data.options.tokenFunc,callback:function(e){t.$set(t.data.options,"tokenFunc",e)},expression:"data.options.tokenFunc"}})],1)]:[n("el-form-item",{attrs:{label:"图片上传地址",required:!0}},[n("el-input",{model:{value:t.data.options.action,callback:function(e){t.$set(t.data.options,"action",e)},expression:"data.options.action"}})],1)]]:t._e(),t._v(" "),"blank"==t.data.type?[n("el-form-item",{attrs:{label:"绑定数据类型"}},[n("el-select",{model:{value:t.data.options.defaultType,callback:function(e){t.$set(t.data.options,"defaultType",e)},expression:"data.options.defaultType"}},[n("el-option",{attrs:{value:"String",label:"字符串"}}),t._v(" "),n("el-option",{attrs:{value:"Object",label:"对象"}}),t._v(" "),n("el-option",{attrs:{value:"Array",label:"数组"}})],1)],1)]:t._e(),t._v(" "),"grid"==t.data.type?[n("el-form-item",{attrs:{label:"栅格间隔"}},[n("el-input",{attrs:{type:"number"},model:{value:t.data.options.gutter,callback:function(e){t.$set(t.data.options,"gutter",t._n(e))},expression:"data.options.gutter"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"列配置项"}},[n("draggable",t._b({attrs:{tag:"ul",list:t.data.columns,handle:".drag-item"}},"draggable",{group:{name:"options"},ghostClass:"ghost",handle:".drag-item"},!1),t._l(t.data.columns,function(e,i){return n("li",{key:i},[n("i",{staticClass:"drag-item",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}},[n("i",{staticClass:"iconfont icon-icon_bars"})]),t._v(" "),n("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:"栅格值",size:"mini",type:"number"},model:{value:e.span,callback:function(n){t.$set(e,"span",t._n(n))},expression:"item.span"}}),t._v(" "),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.handleOptionsRemove(i)}}})],1)}),0),t._v(" "),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:t.handleAddColumn}},[t._v("添加列")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"水平排列方式"}},[n("el-select",{model:{value:t.data.options.justify,callback:function(e){t.$set(t.data.options,"justify",e)},expression:"data.options.justify"}},[n("el-option",{attrs:{value:"start",label:"左对齐"}}),t._v(" "),n("el-option",{attrs:{value:"end",label:"右对齐"}}),t._v(" "),n("el-option",{attrs:{value:"center",label:"居中"}}),t._v(" "),n("el-option",{attrs:{value:"space-around",label:"两侧间隔相等"}}),t._v(" "),n("el-option",{attrs:{value:"space-between",label:"两端对齐"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"垂直排列方式"}},[n("el-select",{model:{value:t.data.options.align,callback:function(e){t.$set(t.data.options,"align",e)},expression:"data.options.align"}},[n("el-option",{attrs:{value:"top",label:"顶部对齐"}}),t._v(" "),n("el-option",{attrs:{value:"middle",label:"居中"}}),t._v(" "),n("el-option",{attrs:{value:"bottom",label:"底部对齐"}})],1)],1)]:t._e(),t._v(" "),"grid"!=t.data.type?[n("el-form-item",{attrs:{label:"操作属性"}},[Object.keys(t.data.options).indexOf("readonly")>=0?n("el-checkbox",{model:{value:t.data.options.readonly,callback:function(e){t.$set(t.data.options,"readonly",e)},expression:"data.options.readonly"}},[t._v("完全只读")]):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("disabled")>=0?n("el-checkbox",{model:{value:t.data.options.disabled,callback:function(e){t.$set(t.data.options,"disabled",e)},expression:"data.options.disabled"}},[t._v("禁用\n ")]):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("editable")>=0?n("el-checkbox",{model:{value:t.data.options.editable,callback:function(e){t.$set(t.data.options,"editable",e)},expression:"data.options.editable"}},[t._v("文本框可输入")]):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("clearable")>=0?n("el-checkbox",{model:{value:t.data.options.clearable,callback:function(e){t.$set(t.data.options,"clearable",e)},expression:"data.options.clearable"}},[t._v("显示清除按钮")]):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("arrowControl")>=0?n("el-checkbox",{model:{value:t.data.options.arrowControl,callback:function(e){t.$set(t.data.options,"arrowControl",e)},expression:"data.options.arrowControl"}},[t._v("使用箭头进行时间选择")]):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("isDelete")>=0?n("el-checkbox",{model:{value:t.data.options.isDelete,callback:function(e){t.$set(t.data.options,"isDelete",e)},expression:"data.options.isDelete"}},[t._v("删除")]):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("isEdit")>=0?n("el-checkbox",{model:{value:t.data.options.isEdit,callback:function(e){t.$set(t.data.options,"isEdit",e)},expression:"data.options.isEdit"}},[t._v("编辑")]):t._e()],1),t._v(" "),n("el-form-item",{attrs:{label:"校验"}},[Object.keys(t.data.options).indexOf("required")>=0?n("div",[n("el-checkbox",{model:{value:t.data.options.required,callback:function(e){t.$set(t.data.options,"required",e)},expression:"data.options.required"}},[t._v("必填")])],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("dataType")>=0?n("el-select",{attrs:{size:"mini"},model:{value:t.data.options.dataType,callback:function(e){t.$set(t.data.options,"dataType",e)},expression:"data.options.dataType"}},[n("el-option",{attrs:{value:"string",label:"字符串"}}),t._v(" "),n("el-option",{attrs:{value:"number",label:"数字"}}),t._v(" "),n("el-option",{attrs:{value:"boolean",label:"布尔值"}}),t._v(" "),n("el-option",{attrs:{value:"integer",label:"整数"}}),t._v(" "),n("el-option",{attrs:{value:"float",label:"浮点数"}}),t._v(" "),n("el-option",{attrs:{value:"url",label:"URL地址"}}),t._v(" "),n("el-option",{attrs:{value:"email",label:"邮箱地址"}}),t._v(" "),n("el-option",{attrs:{value:"hex",label:"十六进制"}})],1):t._e(),t._v(" "),Object.keys(t.data.options).indexOf("pattern")>=0?n("div",[n("el-input",{staticClass:"config-pattern-input",staticStyle:{width:"240px"},attrs:{size:"mini",placeholder:"填写正则表达式"},model:{value:t.data.options.pattern,callback:function(e){t.$set(t.data.options,"pattern",e)},expression:"data.options.pattern"}},[n("template",{slot:"prepend"},[t._v("/")]),t._v(" "),n("template",{slot:"append"},[t._v("/")])],2)],1):t._e()],1)]:t._e()],2)],1):t._e()},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(20),o=n(97),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-config-container"},[n("el-form",{attrs:{"label-position":"top"}},[n("el-form-item",{attrs:{label:"标签对齐方式"}},[n("el-radio-group",{model:{value:t.data.labelPosition,callback:function(e){t.$set(t.data,"labelPosition",e)},expression:"data.labelPosition"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("左对齐")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("右对齐")]),t._v(" "),n("el-radio-button",{attrs:{label:"top"}},[t._v("顶部对齐")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"表单标签宽度"}},[n("el-input-number",{attrs:{min:0,max:200,step:10},model:{value:t.data.labelWidth,callback:function(e){t.$set(t.data,"labelWidth",e)},expression:"data.labelWidth"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"组件尺寸"}},[n("el-radio-group",{model:{value:t.data.size,callback:function(e){t.$set(t.data,"size",e)},expression:"data.size"}},[n("el-radio-button",{attrs:{label:"medium"}},[t._v("medium")]),t._v(" "),n("el-radio-button",{attrs:{label:"small"}},[t._v("small")]),t._v(" "),n("el-radio-button",{attrs:{label:"mini"}},[t._v("mini")])],1)],1)],1)],1)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=n(21),o=n(107),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=n(22),o=n(106),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){var i=n(101);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("d8371244",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,'.fm-uplaod-container .is-disabled{position:relative}.fm-uplaod-container .is-disabled:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"";display:block;cursor:not-allowed}.fm-uplaod-container .upload-file{margin:0 10px 10px 0;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;box-sizing:border-box;position:relative;vertical-align:top}.fm-uplaod-container .upload-file:hover .uplaod-action{display:flex}.fm-uplaod-container .upload-file .uplaod-action{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.6);display:none;justify-content:center;align-items:center}.fm-uplaod-container .upload-file .uplaod-action i{color:#fff;cursor:pointer;margin:0 5px}.fm-uplaod-container .upload-file.is-success .item-status{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.fm-uplaod-container .upload-file.is-success .item-status>i{font-size:12px;margin-top:11px;color:#fff;transform:rotate(-45deg)}.fm-uplaod-container .upload-file.uploading:before{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.3)}.fm-uplaod-container .upload-file .upload-progress{position:absolute}.fm-uplaod-container .upload-file .upload-progress .el-progress__text{color:#fff;font-size:16px!important}.fm-uplaod-container .upload-file img{max-width:100%;max-height:100%;vertical-align:middle}.fm-uplaod-container .el-upload--picture-card{position:relative;overflow:hidden}.fm-uplaod-container .el-upload--picture-card .el-icon-plus{position:absolute;top:50%;left:50%}.fm-uplaod-container .upload-input{position:absolute;top:0;left:0;right:0;bottom:0;display:block;opacity:0;cursor:pointer}.fm-uplaod-container .drag-img-list{display:inline}.fm-uplaod-container .drag-img-list .ghost{position:relative}.fm-uplaod-container .drag-img-list .ghost:after{width:100%;height:100%;display:block;content:"";background:#fbfdff;position:absolute;top:0;bottom:0;left:0;right:0;border:1px dashed #3bb3c2}.fm-uplaod-container .drag-img-list>div{cursor:move}.viewer-container{z-index:9999!important}',""])},function(t,e,n){/*!
22
+ var i;i=function(){return t={686:function(e,t,n){"use strict";n.d(t,{default:function(){return m}});t=n(279),t=n.n(t);var i=n(370),o=n.n(i),r=(i=n(817),n.n(i));function s(e){try{document.execCommand(e)}catch(e){return}}var a=function(e){return e=r()(e),s("cut"),e};function l(e,t){e=e,i="rtl"===document.documentElement.getAttribute("dir"),(n=document.createElement("textarea")).style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[i?"right":"left"]="-9999px",i=window.pageYOffset||document.documentElement.scrollTop,n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=e;var n,i=n;t.container.appendChild(i),e=r()(i);return s("copy"),i.remove(),e}var c=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=l(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=l(e.value,t):(n=r()(e),s("copy")),n};function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var m=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e);var n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);n=t?(n=p(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),i=this;if(!n||"object"!==d(n)&&"function"!=typeof n){if(void 0!==i)return i;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return n}}(r);function r(e,t){var n;if(this instanceof r)return(n=i.call(this)).resolveOptions(t),n.listenClick(e),n;throw new TypeError("Cannot call a class as a function")}return t=r,e=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return c(e,t)}},{key:"cut",value:function(e){return a(e)}},{key:"isSupported",value:function(){var e="string"==typeof(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[e]:e,t=!!document.queryCommandSupported;return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(n=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=function(){var e=void 0===(e=(i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":e,t=i.container,n=i.target,i=i.text;if("copy"!==e&&"cut"!==e)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==n){if(!n||"object"!==u(n)||1!==n.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===e&&n.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===e&&(n.hasAttribute("readonly")||n.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?c(i,{container:t}):n?"cut"===e?a(n):c(n,{container:t}):void 0}({action:e=this.action(t)||"copy",container:this.container,target:this.target(t),text:this.text(t)});this.emit(n?"success":"error",{action:e,text:n,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){if(e=g("target",e))return document.querySelector(e)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&h(t.prototype,n),e&&h(t,e),r}(t())},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function o(e,t,n,o,r){var s=function(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,s,r),{destroy:function(){e.removeEventListener(n,s,r)}}}e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,i,r)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return c=t,u=n,(l=e).addEventListener(c,u),{destroy:function(){l.removeEventListener(c,u)}};if(i.nodeList(e))return r=e,s=t,a=n,Array.prototype.forEach.call(r,(function(e){e.addEventListener(s,a)})),{destroy:function(){Array.prototype.forEach.call(r,(function(e){e.removeEventListener(s,a)}))}};if(i.string(e))return o(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var r,s,a,l,c,u}},817:function(e){e.exports=function(e){var t,n;return"SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),t=window.getSelection(),(n=document.createRange()).selectNodeContents(e),t.removeAllRanges(),t.addRange(n),t.toString())}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,s=i.length;r<s;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(686).default;function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{}};return t[i](o,o.exports,e),o.exports}var t,n},e.exports=i()},function(e,t,n){
23
+ /*!
14
24
  * Viewer.js v1.10.5
15
25
  * https://fengyuanchen.github.io/viewerjs
16
26
  *
@@ -19,12 +29,12 @@ function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat
19
29
  *
20
30
  * Date: 2022-04-05T08:21:02.491Z
21
31
  */
22
- !function(e,n){t.exports=n()}(0,function(){"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function e(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach(function(t){a(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return"string"==typeof t}function s(t){return"number"==typeof t&&!dt(t)}function c(t){return void 0===t}function u(t){return"object"===n(t)&&null!==t}function d(t){if(!u(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&ft.call(n,"isPrototypeOf")}catch(t){return!1}}function f(t){return"function"==typeof t}function p(t,e){if(t&&f(e))if(Array.isArray(t)||s(t.length)){var n,i=t.length;for(n=0;n<i&&!1!==e.call(t,t[n],n,t);n+=1);}else u(t)&&Object.keys(t).forEach(function(n){e.call(t,t[n],n,t)});return t}function h(t,e){var n=t.style;p(e,function(t,e){ht.test(e)&&s(t)&&(t+="px"),n[e]=t})}function m(t){return l(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function g(t,e){return!(!t||!e)&&(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)}function v(t,e){if(t&&e){if(s(t.length))return void p(t,function(t){v(t,e)});if(t.classList)return void t.classList.add(e);var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function b(t,e){if(t&&e)return s(t.length)?void p(t,function(t){b(t,e)}):t.classList?void t.classList.remove(e):void(t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function w(t,e,n){if(e)return s(t.length)?void p(t,function(t){w(t,e,n)}):void(n?v(t,e):b(t,e))}function y(t){return t.replace(mt,"$1-$2").toLowerCase()}function x(t,e){return u(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(y(e)))}function k(t,e,n){u(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(y(e)),n)}function _(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(ct).forEach(function(e){if(!gt){var r=t.listeners;r&&r[e]&&r[e][n]&&(o=r[e][n],delete r[e][n],0===Object.keys(r[e]).length&&delete r[e],0===Object.keys(r).length&&delete t.listeners)}t.removeEventListener(e,o,i)})}function E(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(ct).forEach(function(e){if(i.once&&!gt){var r=t.listeners,a=void 0===r?{}:r;o=function(){delete a[e][n],t.removeEventListener(e,o,i);for(var r=arguments.length,l=new Array(r),s=0;s<r;s++)l[s]=arguments[s];n.apply(t,l)},a[e]||(a[e]={}),a[e][n]&&t.removeEventListener(e,a[e][n],i),a[e][n]=o,t.listeners=a}t.addEventListener(e,o,i)})}function S(t,n,i,o){var r;return f(Event)&&f(CustomEvent)?r=new CustomEvent(n,e({bubbles:!0,cancelable:!0,detail:i},o)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(n,!0,!0,i)),t.dispatchEvent(r)}function C(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function A(t){var e=t.rotate,n=t.scaleX,i=t.scaleY,o=t.translateX,r=t.translateY,a=[];s(o)&&0!==o&&a.push("translateX(".concat(o,"px)")),s(r)&&0!==r&&a.push("translateY(".concat(r,"px)")),s(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),s(n)&&1!==n&&a.push("scaleX(".concat(n,")")),s(i)&&1!==i&&a.push("scaleY(".concat(i,")"));var l=a.length?a.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function O(t){return l(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}function T(t,e,n){var i=document.createElement("img");if(t.naturalWidth&&!vt)return n(t.naturalWidth,t.naturalHeight),i;var o=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),vt||o.removeChild(i)},p(e.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&i.setAttribute(e,n)}),i.src=t.src,vt||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i)),i}function D(t){switch(t){case 2:return $;case 3:return X;case 4:return H;default:return""}}function I(t){var n=e({},t),i=[];return p(t,function(t,e){delete n[e],p(n,function(e){var n=Math.abs(t.startX-e.startX),o=Math.abs(t.startY-e.startY),r=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),l=Math.sqrt(n*n+o*o),s=Math.sqrt(r*r+a*a),c=(s-l)/l;i.push(c)})}),i.sort(function(t,e){return Math.abs(t)<Math.abs(e)}),i[0]}function M(t,n){var i=t.pageX,o=t.pageY,r={endX:i,endY:o};return n?r:e({timeStamp:Date.now(),startX:i,startY:o},r)}function R(t){var e=0,n=0,i=0;return p(t,function(t){var o=t.startX,r=t.startY;e+=o,n+=r,i+=1}),e/=i,n/=i,{pageX:e,pageY:n}}var P={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},j="undefined"!=typeof window&&void 0!==window.document,L=j?window:{},z=!(!j||!L.document.documentElement)&&"ontouchstart"in L.document.documentElement,F=!!j&&"PointerEvent"in L,N="".concat("viewer","-active"),B="".concat("viewer","-close"),V="".concat("viewer","-fade"),U="".concat("viewer","-fixed"),Y="".concat("viewer","-fullscreen"),W="".concat("viewer","-fullscreen-exit"),q="".concat("viewer","-hide"),H="".concat("viewer","-hide-md-down"),X="".concat("viewer","-hide-sm-down"),$="".concat("viewer","-hide-xs-down"),G="".concat("viewer","-in"),J="".concat("viewer","-invisible"),Q="".concat("viewer","-loading"),K="".concat("viewer","-move"),Z="".concat("viewer","-open"),tt="".concat("viewer","-show"),et="".concat("viewer","-transition"),nt=z?"touchend touchcancel":"mouseup",it=z?"touchmove":"mousemove",ot=z?"touchstart":"mousedown",rt=F?"pointerdown":ot,at=F?"pointermove":it,lt=F?"pointerup pointercancel":nt,st="".concat("viewer","Action"),ct=/\s\s*/,ut=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"],dt=Number.isNaN||L.isNaN,ft=Object.prototype.hasOwnProperty,pt=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return u(t)&&n.length>0&&n.forEach(function(e){u(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},ht=/^(?:width|height|left|top|marginLeft|marginTop)$/,mt=/([a-z\d])([A-Z])/g,gt=function(){var t=!1;if(j){var e=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});L.addEventListener("test",n,i),L.removeEventListener("test",n,i)}return t}(),vt=L.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(L.navigator.userAgent),bt={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,e=t.body||t.documentElement;this.body=e,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=e.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(e).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t,e=this.options,n=this.parent;e.inline&&(t={width:Math.max(n.offsetWidth,e.minWidth),height:Math.max(n.offsetHeight,e.minHeight)},this.parentData=t),!this.fulled&&t||(t=this.containerData),this.viewerData=pt({},t)},renderViewer:function(){this.options.inline&&!this.fulled&&h(this.viewer,this.viewerData)},initList:function(){var t=this,e=this.element,n=this.options,i=this.list,o=[];i.innerHTML="",p(this.images,function(e,r){var a=e.src,l=e.alt||O(a),s=t.getImageURL(e);if(a||s){var c=document.createElement("li"),u=document.createElement("img");p(n.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&u.setAttribute(t,n)}),u.src=a||s,u.alt=l,u.setAttribute("data-original-url",s||a),c.setAttribute("data-index",r),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),n.keyboard&&c.setAttribute("tabindex",0),c.appendChild(u),i.appendChild(c),o.push(c)}}),this.items=o,p(o,function(e){var i,o,r=e.firstElementChild;k(r,"filled",!0),n.loading&&v(e,Q),E(r,"load",i=function(i){_(r,"error",o),n.loading&&b(e,Q),t.loadImage(i)},{once:!0}),E(r,"error",o=function(){_(r,"load",i),n.loading&&b(e,Q)},{once:!0})}),n.transition&&E(e,"viewed",function(){v(i,et)},{once:!0})},renderList:function(){var t=this.index,e=this.items[t];if(e){var n=e.nextElementSibling,i=parseInt(window.getComputedStyle(n||e).marginLeft,10),o=e.offsetWidth,r=o+i;h(this.list,pt({width:r*this.length-i},A({translateX:(this.viewerData.width-o)/2-r*t})))}},resetList:function(){var t=this.list;t.innerHTML="",b(t,et),h(t,A({translateX:0}))},initImage:function(t){var e,n=this,i=this.options,o=this.image,r=this.viewerData,a=this.footer.offsetHeight,l=r.width,s=Math.max(r.height-a,a),c=this.imageData||{};this.imageInitializing={abort:function(){e.onload=null}},e=T(o,i,function(e,o){var r=e/o,a=l,u=s;n.imageInitializing=!1,s*r>l?u=l/r:a=s*r,a=Math.min(.9*a,e),u=Math.min(.9*u,o);var d=(l-a)/2,f=(s-u)/2,p={left:d,top:f,x:d,y:f,width:a,height:u,oldRatio:1,ratio:a/e,aspectRatio:r,naturalWidth:e,naturalHeight:o},h=pt({},p);i.rotatable&&(p.rotate=c.rotate||0,h.rotate=0),i.scalable&&(p.scaleX=c.scaleX||1,p.scaleY=c.scaleY||1,h.scaleX=1,h.scaleY=1),n.imageData=p,n.initialImageData=h,t&&t()})},renderImage:function(t){var e=this,n=this.image,i=this.imageData;if(h(n,pt({width:i.width,height:i.height,marginLeft:i.x,marginTop:i.y},A(i))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&g(n,et)){var o=function(){e.imageRendering=!1,t()};this.imageRendering={abort:function(){_(n,"transitionend",o)}},E(n,"transitionend",o,{once:!0})}else t()},resetImage:function(){if(this.viewing||this.viewed){var t=this.image;this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null}}},wt={bind:function(){var t=this.options,e=this.viewer,n=this.canvas,i=this.element.ownerDocument;E(e,"click",this.onClick=this.click.bind(this)),E(e,"dragstart",this.onDragStart=this.dragstart.bind(this)),E(n,rt,this.onPointerDown=this.pointerdown.bind(this)),E(i,at,this.onPointerMove=this.pointermove.bind(this)),E(i,lt,this.onPointerUp=this.pointerup.bind(this)),E(i,"keydown",this.onKeyDown=this.keydown.bind(this)),E(window,"resize",this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&E(e,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&E(n,"dblclick",this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,e=this.viewer,n=this.canvas,i=this.element.ownerDocument;_(e,"click",this.onClick),_(e,"dragstart",this.onDragStart),_(n,rt,this.onPointerDown),_(i,at,this.onPointerMove),_(i,lt,this.onPointerUp),_(i,"keydown",this.onKeyDown),_(window,"resize",this.onResize),t.zoomable&&t.zoomOnWheel&&_(e,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&_(n,"dblclick",this.onDblclick)}},yt={click:function(t){var e=this.options,n=this.imageData,i=t.target,o=x(i,st);switch(o||"img"!==i.localName||"li"!==i.parentElement.localName||(i=i.parentElement,o=x(i,st)),z&&t.isTrusted&&i===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():e.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(x(i,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(e.loop);break;case"play":this.play(e.fullscreen);break;case"next":this.next(e.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(z&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var e=this.element,n=this.options,i=this.image,o=this.index,r=this.viewerData;b(i,J),n.loading&&b(this.canvas,Q),i.style.cssText="height:0;"+"margin-left:".concat(r.width/2,"px;")+"margin-top:".concat(r.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){w(i,K,n.movable),w(i,et,n.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,f(n.viewed)&&E(e,"viewed",n.viewed,{once:!0}),S(e,"viewed",{originalImage:t.images[o],index:o,image:i},{cancelable:!1})})})},loadImage:function(t){var e=t.target,n=e.parentNode,i=n.offsetWidth||30,o=n.offsetHeight||50,r=!!x(e,"filled");T(e,this.options,function(t,n){var a=t/n,l=i,s=o;o*a>i?r?l=o*a:s=i/a:r?s=i/a:l=o*a,h(e,pt({width:l,height:s},A({translateX:(i-l)/2,translateY:(o-s)/2})))})},keydown:function(t){var e=this.options;if(e.keyboard){var n=t.keyCode||t.which||t.charCode;switch(n){case 13:this.viewer.contains(t.target)&&this.click(t)}if(this.fulled)switch(n){case 27:this.played?this.stop():e.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(e.loop);break;case 38:t.preventDefault(),this.zoom(e.zoomRatio,!0);break;case 39:this.next(e.loop);break;case 40:t.preventDefault(),this.zoom(-e.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle())}}},dragstart:function(t){"img"===t.target.localName&&t.preventDefault()},pointerdown:function(t){var e=this.options,n=this.pointers,i=t.buttons,o=t.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(s(i)&&1!==i||s(o)&&0!==o||t.ctrlKey))){t.preventDefault(),t.changedTouches?p(t.changedTouches,function(t){n[t.identifier]=M(t)}):n[t.pointerId||0]=M(t);var r=!!e.movable&&"move";e.zoomOnTouch&&e.zoomable&&Object.keys(n).length>1?r="zoom":e.slideOnTouch&&("touch"===t.pointerType||"touchstart"===t.type)&&this.isSwitchable()&&(r="switch"),!e.transition||"move"!==r&&"zoom"!==r||b(this.image,et),this.action=r}},pointermove:function(t){var e=this.pointers,n=this.action;this.viewed&&n&&(t.preventDefault(),t.changedTouches?p(t.changedTouches,function(t){pt(e[t.identifier]||{},M(t,!0))}):pt(e[t.pointerId||0]||{},M(t,!0)),this.change(t))},pointerup:function(t){var e,n=this,i=this.options,o=this.action,r=this.pointers;t.changedTouches?p(t.changedTouches,function(t){e=r[t.identifier],delete r[t.identifier]}):(e=r[t.pointerId||0],delete r[t.pointerId||0]),o&&(t.preventDefault(),!i.transition||"move"!==o&&"zoom"!==o||v(this.image,et),this.action=!1,z&&"zoom"!==o&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){S(n.image,"dblclick",{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,i.backdrop&&"static"!==i.backdrop&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){S(n.canvas,"click",{originalEvent:t})},50)))))},resize:function(){var t=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();p(this.player.getElementsByTagName("img"),function(e){E(e,"load",t.loadImage.bind(t),{once:!0}),S(e,"load")})}},wheel:function(t){var e=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,i=1;t.deltaY?i=t.deltaY>0?1:-1:t.wheelDelta?i=-t.wheelDelta/120:t.detail&&(i=t.detail>0?1:-1),this.zoom(-i*n,!0,t)}}},xt={show:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(f(n.show)&&E(e,"show",n.show,{once:!0}),!1===S(e,"show")||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(b(i,q),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("aria-hidden"),n.transition&&!t){var o=this.shown.bind(this);this.transitioning={abort:function(){_(i,"transitionend",o),b(i,G)}},v(i,et),i.initialOffsetWidth=i.offsetWidth,E(i,"transitionend",o,{once:!0}),v(i,G)}else v(i,G),this.shown();return this},hide:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,i=this.options;if(i.inline||this.hiding||!this.isShown&&!this.showing)return this;if(f(i.hide)&&E(n,"hide",i.hide,{once:!0}),!1===S(n,"hide"))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,r=this.image,a=function(){b(o,G),t.hidden()};if(i.transition&&!e){var l=function e(n){n&&n.target===o&&(_(o,"transitionend",e),t.hidden())},s=function(){g(o,et)?(E(o,"transitionend",l),b(o,G)):a()};this.transitioning={abort:function(){t.viewed&&g(r,et)?_(r,"transitionend",s):g(o,et)&&_(o,"transitionend",l)}},this.viewed&&g(r,et)?(E(r,"transitionend",s,{once:!0}),this.zoomTo(0,!1,null,!0)):s()}else a();return this},view:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(e=Number(e)||0,this.hiding||this.played||e<0||e>=this.length||this.viewed&&e===this.index)return this;if(!this.isShown)return this.index=e,this.show();this.viewing&&this.viewing.abort();var n=this.element,i=this.options,o=this.title,r=this.canvas,a=this.items[e],l=a.querySelector("img"),s=x(l,"originalUrl"),c=l.getAttribute("alt"),u=document.createElement("img");if(p(i.inheritedAttributes,function(t){var e=l.getAttribute(t);null!==e&&u.setAttribute(t,e)}),u.src=s,u.alt=c,f(i.view)&&E(n,"view",i.view,{once:!0}),!1===S(n,"view",{originalImage:this.images[e],index:e,image:u})||!this.isShown||this.hiding||this.played)return this;var d=this.items[this.index];d&&(b(d,N),d.removeAttribute("aria-selected")),v(a,N),a.setAttribute("aria-selected",!0),i.focus&&a.focus(),this.image=u,this.viewed=!1,this.index=e,this.imageData={},v(u,J),i.loading&&v(r,Q),r.innerHTML="",r.appendChild(u),this.renderList(),o.innerHTML="";var h,g,w=function(){var e=t.imageData,n=Array.isArray(i.title)?i.title[1]:i.title;o.innerHTML=m(f(n)?n.call(t,u,e):"".concat(c," (").concat(e.naturalWidth," × ").concat(e.naturalHeight,")"))};return E(n,"viewed",w,{once:!0}),this.viewing={abort:function(){_(n,"viewed",w),u.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(u.src="",_(u,"load",h),t.timeout&&clearTimeout(t.timeout))}},u.complete?this.load():(E(u,"load",h=function(){_(u,"error",g),t.load()},{once:!0}),E(u,"error",g=function(){_(u,"load",h),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),b(u,J),i.loading&&b(t.canvas,Q)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){b(u,J),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.index-1;return e<0&&(e=t?this.length-1:0),this.view(e),this},next:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.length-1,n=this.index+1;return n>e&&(n=t?0:e),this.view(n),this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData;return this.moveTo(c(t)?t:n.x+Number(t),c(e)?e:n.y+Number(e)),this},moveTo:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.element,r=this.options,a=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&r.movable){var l=a.x,c=a.y,u=!1;if(s(t)?u=!0:t=l,s(n)?u=!0:n=c,u){if(f(r.move)&&E(o,"move",r.move,{once:!0}),!1===S(o,"move",{x:t,y:n,oldX:l,oldY:c,originalEvent:i}))return this;a.x=t,a.y=n,a.left=t,a.top=n,this.moving=!0,this.renderImage(function(){e.moving=!1,f(r.moved)&&E(o,"moved",r.moved,{once:!0}),S(o,"moved",{x:t,y:n,oldX:l,oldY:c,originalEvent:i},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var e=this,n=this.element,i=this.options,o=this.imageData;if(t=Number(t),s(t)&&this.viewed&&!this.played&&i.rotatable){var r=o.rotate;if(f(i.rotate)&&E(n,"rotate",i.rotate,{once:!0}),!1===S(n,"rotate",{degree:t,oldDegree:r}))return this;o.rotate=t,this.rotating=!0,this.renderImage(function(){e.rotating=!1,f(i.rotated)&&E(n,"rotated",i.rotated,{once:!0}),S(n,"rotated",{degree:t,oldDegree:r},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.element,o=this.options,r=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&o.scalable){var a=r.scaleX,l=r.scaleY,c=!1;if(s(t)?c=!0:t=a,s(n)?c=!0:n=l,c){if(f(o.scale)&&E(i,"scale",o.scale,{once:!0}),!1===S(i,"scale",{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:l}))return this;r.scaleX=t,r.scaleY=n,this.scaling=!0,this.renderImage(function(){e.scaling=!1,f(o.scaled)&&E(i,"scaled",o.scaled,{once:!0}),S(i,"scaled",{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.imageData;return t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,e,n),this},zoomTo:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.element,a=this.options,l=this.pointers,c=this.imageData,u=c.x,d=c.y,p=c.width,h=c.height,m=c.naturalWidth,g=c.naturalHeight;if(t=Math.max(0,t),s(t)&&this.viewed&&!this.played&&(o||a.zoomable)){if(!o){var v=Math.max(.01,a.minZoomRatio),b=Math.min(100,a.maxZoomRatio);t=Math.min(Math.max(t,v),b)}if(i)switch(i.type){case"wheel":a.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1)}var w=m*t,y=g*t,x=w-p,k=y-h,_=c.ratio;if(f(a.zoom)&&E(r,"zoom",a.zoom,{once:!0}),!1===S(r,"zoom",{ratio:t,oldRatio:_,originalEvent:i}))return this;if(this.zooming=!0,i){var A=C(this.viewer),O=l&&Object.keys(l).length>0?R(l):{pageX:i.pageX,pageY:i.pageY};c.x-=x*((O.pageX-A.left-u)/p),c.y-=k*((O.pageY-A.top-d)/h)}else c.x-=x/2,c.y-=k/2;c.left=c.x,c.top=c.y,c.width=w,c.height=y,c.oldRatio=_,c.ratio=t,this.renderImage(function(){e.zooming=!1,f(a.zoomed)&&E(r,"zoomed",a.zoomed,{once:!0}),S(r,"zoomed",{ratio:t,oldRatio:_,originalEvent:i},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,i=this.options;if(f(i.play)&&E(n,"play",i.play,{once:!0}),!1===S(n,"play"))return this;var o=this.player,r=this.loadImage.bind(this),a=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=r,e&&this.requestFullscreen(e),v(o,tt),p(this.items,function(t,e){var n=t.querySelector("img"),s=document.createElement("img");s.src=x(n,"originalUrl"),s.alt=n.getAttribute("alt"),s.referrerPolicy=n.referrerPolicy,l+=1,v(s,V),w(s,et,i.transition),g(t,N)&&(v(s,G),c=e),a.push(s),E(s,"load",r,{once:!0}),o.appendChild(s)}),s(i.interval)&&i.interval>0){l>1&&function e(){t.playing=setTimeout(function(){b(a[c],G),c+=1,c=c<l?c:0,v(a[c],G),e()},i.interval)}()}return this},stop:function(){var t=this;if(!this.played)return this;var e=this.element,n=this.options;if(f(n.stop)&&E(e,"stop",n.stop,{once:!0}),!1===S(e,"stop"))return this;var i=this.player;return this.played=!1,clearTimeout(this.playing),p(i.getElementsByTagName("img"),function(e){_(e,"load",t.onLoadWhenPlay)}),b(i,tt),i.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,e=this.options,n=this.viewer,i=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!e.inline?this:(this.fulled=!0,this.open(),v(this.button,W),e.transition&&(b(o,et),this.viewed&&b(i,et)),v(n,U),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),h(n,{zIndex:e.zIndex}),e.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=pt({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){e.transition&&setTimeout(function(){v(i,et),v(o,et)},0)})}),this)},exit:function(){var t=this,e=this.options,n=this.viewer,i=this.image,o=this.list;return this.isShown&&!this.played&&this.fulled&&e.inline?(this.fulled=!1,this.close(),b(this.button,W),e.transition&&(b(o,et),this.viewed&&b(i,et)),e.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),b(n,U),h(n,{zIndex:e.zIndexInline}),this.viewerData=pt({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){e.transition&&setTimeout(function(){v(i,et),v(o,et)},0)})}),this):this},tooltip:function(){var t=this,e=this.options,n=this.tooltipBox,i=this.imageData;return this.viewed&&!this.played&&e.tooltip?(n.textContent="".concat(Math.round(100*i.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):e.transition?(this.fading&&S(n,"transitionend"),v(n,tt),v(n,V),v(n,et),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,v(n,G)):(v(n,tt),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){e.transition?(E(n,"transitionend",function(){b(n,tt),b(n,V),b(n,et),n.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),b(n,G),t.fading=!0):(b(n,tt),n.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this):this},toggle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,t):this.zoomTo(1,!0,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=pt({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,e=this.element,n=this.options,i=this.isImg;if(i&&!e.parentNode)return this.destroy();var o=[];if(p(i?[e]:e.querySelectorAll("img"),function(e){f(n.filter)?n.filter.call(t,e)&&o.push(e):t.getImageURL(e)&&o.push(e)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var r=[];if(p(this.items,function(t,e){var n=t.querySelector("img"),i=o[e];i&&n?i.src===n.src&&i.alt===n.alt||r.push(e):r.push(e)}),h(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=r.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var l=this.items[this.index];v(l,N),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,e=this.options;return t.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),e.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):e.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),e.inline||_(t,"click",this.onStart),t.viewer=void 0,this):this}},kt={getImageURL:function(t){var e=this.options.url;return e=l(e)?t.getAttribute(e):f(e)?e.call(this,t):""},enforceFocus:function(){var t=this;this.clearEnforceFocus(),E(document,"focusin",this.onFocusin=function(e){var n=t.viewer,i=e.target;if(i!==document&&i!==n&&!n.contains(i)){for(;i;){if(null!==i.getAttribute("tabindex")||"true"===i.getAttribute("aria-modal"))return;i=i.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(_(document,"focusin",this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;v(t,Z),t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px")},close:function(){var t=this.body;b(t,Z),t.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var t=this.element,e=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,e.focus&&(n.focus(),this.enforceFocus()),f(e.shown)&&E(t,"shown",e.shown,{once:!0}),!1!==S(t,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,e=this.options,n=this.viewer;e.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),v(n,q),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(f(e.hidden)&&E(t,"hidden",e.hidden,{once:!0}),S(t,"hidden",null,{cancelable:!1}))},requestFullscreen:function(t){var e=this.element.ownerDocument;if(this.fulled&&!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)){var n=e.documentElement;n.requestFullscreen?d(t)?n.requestFullscreen(t):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var e=this.options,n=this.pointers,i=n[Object.keys(n)[0]];if(i){var o=i.endX-i.startX,r=i.endY-i.startY;switch(this.action){case"move":this.move(o,r,t);break;case"zoom":this.zoom(I(n),!1,t);break;case"switch":this.action="switched";var a=Math.abs(o);a>1&&a>Math.abs(r)&&(this.pointers={},o>1?this.prev(e.loop):o<-1&&this.next(e.loop))}p(n,function(t){t.startX=t.endX,t.startY=t.endY})}},isSwitchable:function(){var t=this.imageData,e=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=e.width&&t.height<=e.height}},_t=L.Viewer,Et=function(t){return function(){return t+=1}}(-1),St=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),!e||1!==e.nodeType)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=pt({},P,d(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.id=Et(),this.init()}return r(t,[{key:"init",value:function(){var t=this,e=this.element,n=this.options;if(!e.viewer){e.viewer=this,n.focus&&!n.keyboard&&(n.focus=!1);var i="img"===e.localName,o=[];if(p(i?[e]:e.querySelectorAll("img"),function(e){f(n.filter)?n.filter.call(t,e)&&o.push(e):t.getImageURL(e)&&o.push(e)}),this.isImg=i,this.length=o.length,this.images=o,this.initBody(),c(document.createElement("viewer").style.transition)&&(n.transition=!1),n.inline){var r=0,a=function(){if((r+=1)===t.length){var e;t.initializing=!1,t.delaying={abort:function(){clearTimeout(e)}},e=setTimeout(function(){t.delaying=!1,t.build()},0)}};this.initializing={abort:function(){p(o,function(t){t.complete||(_(t,"load",a),_(t,"error",a))})}},p(o,function(t){if(t.complete)a();else{var e,n;E(t,"load",e=function(){_(t,"error",n),a()},{once:!0}),E(t,"error",n=function(){_(t,"load",e),a()},{once:!0})}})}else E(e,"click",this.onStart=function(e){var i=e.target;"img"!==i.localName||f(n.filter)&&!n.filter.call(t,i)||t.view(t.images.indexOf(i))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,e=this.options,n=t.parentNode,i=document.createElement("div");i.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var o=i.querySelector(".".concat("viewer","-container")),r=o.querySelector(".".concat("viewer","-title")),a=o.querySelector(".".concat("viewer","-toolbar")),u=o.querySelector(".".concat("viewer","-navbar")),m=o.querySelector(".".concat("viewer","-button")),g=o.querySelector(".".concat("viewer","-canvas"));if(this.parent=n,this.viewer=o,this.title=r,this.toolbar=a,this.navbar=u,this.button=m,this.canvas=g,this.footer=o.querySelector(".".concat("viewer","-footer")),this.tooltipBox=o.querySelector(".".concat("viewer","-tooltip")),this.player=o.querySelector(".".concat("viewer","-player")),this.list=o.querySelector(".".concat("viewer","-list")),o.id="".concat("viewer").concat(this.id),r.id="".concat("viewer","Title").concat(this.id),v(r,e.title?D(Array.isArray(e.title)?e.title[0]:e.title):q),v(u,e.navbar?D(e.navbar):q),w(m,q,!e.button),e.keyboard&&m.setAttribute("tabindex",0),e.backdrop&&(v(o,"".concat("viewer","-backdrop")),e.inline||"static"===e.backdrop||k(g,st,"hide")),l(e.className)&&e.className&&e.className.split(ct).forEach(function(t){v(o,t)}),e.toolbar){var b=document.createElement("ul"),x=d(e.toolbar),_=ut.slice(0,3),C=ut.slice(7,9),A=ut.slice(9);x||v(a,D(e.toolbar)),p(x?e.toolbar:ut,function(t,n){var i=x&&d(t),o=x?y(n):t,r=i&&!c(t.show)?t.show:t;if(r&&(e.zoomable||-1===_.indexOf(o))&&(e.rotatable||-1===C.indexOf(o))&&(e.scalable||-1===A.indexOf(o))){var a=i&&!c(t.size)?t.size:t,l=i&&!c(t.click)?t.click:t,u=document.createElement("li");e.keyboard&&u.setAttribute("tabindex",0),u.setAttribute("role","button"),v(u,"".concat("viewer","-").concat(o)),f(l)||k(u,st,o),s(r)&&v(u,D(r)),-1!==["small","large"].indexOf(a)?v(u,"".concat("viewer","-").concat(a)):"play"===o&&v(u,"".concat("viewer","-large")),f(l)&&E(u,"click",l),b.appendChild(u)}}),a.appendChild(b)}else v(a,q);if(!e.rotatable){var O=a.querySelectorAll('li[class*="rotate"]');v(O,J),p(O,function(t){a.appendChild(t)})}if(e.inline)v(m,Y),h(o,{zIndex:e.zIndexInline}),"static"===window.getComputedStyle(n).position&&h(n,{position:"relative"}),n.insertBefore(o,t.nextSibling);else{v(m,B),v(o,U),v(o,V),v(o,q),h(o,{zIndex:e.zIndex});var T=e.container;l(T)&&(T=t.ownerDocument.querySelector(T)),T||(T=this.body),T.appendChild(o)}if(e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,f(e.ready)&&E(t,"ready",e.ready,{once:!0}),!1===S(t,"ready"))return void(this.ready=!1);this.ready&&e.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=_t,t}},{key:"setDefaults",value:function(t){pt(P,d(t)&&t)}}]),t}();return pt(St.prototype,bt,wt,yt,xt,kt),St})},function(t,e,n){var i=n(104);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("adc88fd8",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,'/*!\n * Viewer.js v1.10.5\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2022-04-05T08:21:00.150Z\n */.viewer-close:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen-exit:before,.viewer-fullscreen:before,.viewer-next:before,.viewer-one-to-one:before,.viewer-play:before,.viewer-prev:before,.viewer-reset:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-zoom-in:before,.viewer-zoom-out:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container ::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container ::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:rgba(0,0,0,50%);overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;right:0;z-index:1}.viewer-player,.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:rgba(0,0,0,50%);border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:rgba(0,0,0,80%)}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:rgba(0,0,0,80%);border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:0 5% 5px;max-width:90%;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:rgba(0,0,0,50%);border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:rgba(0,0,0,80%)}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:rgba(0,0,0,50%)}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:-webkit-grab;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@-webkit-keyframes viewer-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes viewer-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.viewer-loading:after{-webkit-animation:viewer-spinner 1s linear infinite;animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,10%);border-left-color:rgba(255,255,255,50%);border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width:767px){.viewer-hide-xs-down{display:none}}@media (max-width:991px){.viewer-hide-sm-down{display:none}}@media (max-width:1199px){.viewer-hide-md-down{display:none}}',""])},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fm-uplaod-container",attrs:{id:t.uploadId}},[n("draggable",t._b({staticClass:"drag-img-list",attrs:{"no-transition-on-drag":!0},model:{value:t.fileList,callback:function(e){t.fileList=e},expression:"fileList"}},"draggable",{group:t.uploadId,ghostClass:"ghost",animation:200},!1),t._l(t.fileList,function(e){return n("div",{key:e.key,staticClass:"upload-file",class:{uploading:"uploading"==e.status,"is-success":"success"==e.status,"is-diabled":t.disabled},style:{width:t.width+"px",height:t.height+"px"},attrs:{id:e.key}},[n("img",{attrs:{src:e.url}}),t._v(" "),"uploading"==e.status?n("el-progress",{staticClass:"upload-progress",attrs:{width:.9*t.miniWidth,type:"circle",percentage:e.percent}}):t._e(),t._v(" "),"success"==e.status?n("label",{staticClass:"item-status"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})]):t._e(),t._v(" "),t.disabled?t._e():n("div",{staticClass:"uplaod-action",style:{height:t.miniWidth/4+"px"}},[n("i",{staticClass:"iconfont icon-tupianyulan",style:{"font-size":t.miniWidth/8+"px"},attrs:{title:"预览"},on:{click:function(n){return t.handlePreviewFile(e.key)}}}),t._v(" "),t.isEdit?n("i",{staticClass:"iconfont icon-sync1",style:{"font-size":t.miniWidth/8+"px"},attrs:{title:"替换"},on:{click:function(n){return t.handleEdit(e.key)}}}):t._e(),t._v(" "),t.isDelete&&t.fileList.length>t.min?n("i",{staticClass:"iconfont icon-delete",style:{"font-size":t.miniWidth/8+"px"},attrs:{title:"删除"},on:{click:function(n){return t.handleRemove(e.key)}}}):t._e()])],1)}),0),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:(!t.isQiniu||t.isQiniu&&t.token)&&t.fileList.length<t.length,expression:"(!isQiniu || (isQiniu && token)) && fileList.length < length"}],staticClass:"el-upload el-upload--picture-card",class:{"is-disabled":t.disabled},style:{width:t.width+"px",height:t.height+"px"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleAdd.apply(null,arguments)}}},[n("i",{staticClass:"el-icon-plus",style:{fontSize:t.miniWidth/4+"px",marginTop:-t.miniWidth/8+"px",marginLeft:-t.miniWidth/8+"px"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleAdd.apply(null,arguments)}}}),t._v(" "),t.multiple?n("input",{ref:"uploadInput",staticClass:"el-upload__input upload-input",style:{width:0,height:0},attrs:{accept:"image/*",multiple:"",type:"file",name:"file"},on:{change:t.handleChange}}):n("input",{ref:"uploadInput",staticClass:"el-upload__input upload-input",style:{width:0,height:0},attrs:{accept:"image/*",type:"file",name:"file"},on:{change:t.handleChange}})])],1)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.element&&t.element.key?n("el-form-item",{staticClass:"widget-view ",class:{active:t.selectWidget.key==t.element.key,is_req:t.element.options.required},attrs:{label:t.element.name},nativeOn:{click:function(e){return e.stopPropagation(),t.handleSelectWidget(t.index)}}},["input"==t.element.type?[n("el-input",{style:{width:t.element.options.width},attrs:{placeholder:t.element.options.placeholder,disabled:t.element.options.disabled,maxlength:t.element.options.maxlength,"show-word-limit":t.element.options.showWordLimit},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"textarea"==t.element.type?[n("el-input",{style:{width:t.element.options.width},attrs:{type:"textarea",rows:5,disabled:t.element.options.disabled,placeholder:t.element.options.placeholder,maxlength:t.element.options.maxlength,"show-word-limit":t.element.options.showWordLimit},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"number"==t.element.type?[n("el-input-number",{style:{width:t.element.options.width},attrs:{disabled:t.element.options.disabled,"controls-position":t.element.options.controlsPosition},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"radio"==t.element.type?[n("el-radio-group",{style:{width:t.element.options.width},attrs:{disabled:t.element.options.disabled},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}},t._l(t.element.options.options,function(e,i){return n("el-radio",{key:e.value+i,style:{display:t.element.options.inline?"inline-block":"block"},attrs:{label:e.value}},[t._v("\n "+t._s(t.element.options.showLabel?e.label:e.value)+"\n ")])}),1)]:t._e(),t._v(" "),"checkbox"==t.element.type?[n("el-checkbox-group",{style:{width:t.element.options.width},attrs:{disabled:t.element.options.disabled},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}},t._l(t.element.options.options,function(e,i){return n("el-checkbox",{key:e.value+i,style:{display:t.element.options.inline?"inline-block":"block"},attrs:{label:e.value}},[t._v("\n "+t._s(t.element.options.showLabel?e.label:e.value)+"\n ")])}),1)]:t._e(),t._v(" "),"time"==t.element.type?[n("el-time-picker",{style:{width:t.element.options.width},attrs:{"is-range":t.element.options.isRange,placeholder:t.element.options.placeholder,"start-placeholder":t.element.options.startPlaceholder,"end-placeholder":t.element.options.endPlaceholder,readonly:t.element.options.readonly,disabled:t.element.options.disabled,editable:t.element.options.editable,clearable:t.element.options.clearable,arrowControl:t.element.options.arrowControl},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"date"==t.element.type?[n("el-date-picker",{style:{width:t.element.options.width},attrs:{type:t.element.options.type,"is-range":t.element.options.isRange,placeholder:t.element.options.placeholder,"start-placeholder":t.element.options.startPlaceholder,"end-placeholder":t.element.options.endPlaceholder,readonly:t.element.options.readonly,disabled:t.element.options.disabled,editable:t.element.options.editable,clearable:t.element.options.clearable},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"rate"==t.element.type?[n("el-rate",{attrs:{max:t.element.options.max,disabled:t.element.options.disabled,"allow-half":t.element.options.allowHalf},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"color"==t.element.type?[n("el-color-picker",{attrs:{disabled:t.element.options.disabled,"show-alpha":t.element.options.showAlpha},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"select"==t.element.type?[n("el-select",{style:{width:t.element.options.width},attrs:{disabled:t.element.options.disabled,multiple:t.element.options.multiple,clearable:t.element.options.clearable,placeholder:t.element.options.placeholder},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}},t._l(t.element.options.options,function(e){return n("el-option",{key:e.value,attrs:{value:e.value,label:t.element.options.showLabel?e.label:e.value}})}),1)]:t._e(),t._v(" "),"switch"==t.element.type?[n("el-switch",{attrs:{disabled:t.element.options.disabled},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"slider"==t.element.type?[n("el-slider",{style:{width:t.element.options.width},attrs:{min:t.element.options.min,max:t.element.options.max,disabled:t.element.options.disabled,step:t.element.options.step,"show-input":t.element.options.showInput,range:t.element.options.range},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"imgupload"==t.element.type?[n("fm-upload",{style:{width:t.element.options.width},attrs:{disabled:t.element.options.disabled,width:t.element.options.size.width,height:t.element.options.size.height,token:"xxx",domain:"xxx"},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"cascader"==t.element.type?[n("el-cascader",{style:{width:t.element.options.width},attrs:{disabled:t.element.options.disabled,clearable:t.element.options.clearable,placeholder:t.element.options.placeholder,options:t.element.options.remoteOptions},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"editor"==t.element.type?[n("vue-editor",{style:{width:t.element.options.width},model:{value:t.element.options.defaultValue,callback:function(e){t.$set(t.element.options,"defaultValue",e)},expression:"element.options.defaultValue"}})]:t._e(),t._v(" "),"blank"==t.element.type?[n("div",{staticStyle:{height:"50px",color:"#999",background:"#eee","line-height":"50px","text-align":"center"}},[t._v("自定义区域")])]:t._e(),t._v(" "),"text"==t.element.type?[n("span",[t._v(t._s(t.element.options.defaultValue))])]:t._e(),t._v(" "),t.selectWidget.key==t.element.key?n("div",{staticClass:"widget-view-action"},[n("i",{staticClass:"iconfont icon-icon_clone",on:{click:function(e){return e.stopPropagation(),t.handleWidgetClone(t.index)}}}),t._v(" "),n("i",{staticClass:"iconfont icon-trash",on:{click:function(e){return e.stopPropagation(),t.handleWidgetDelete(t.index)}}})]):t._e(),t._v(" "),t.selectWidget.key==t.element.key?n("div",{staticClass:"widget-view-drag"},[n("i",{staticClass:"iconfont icon-drag drag-widget"})]):t._e()],2):t._e()},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-form-container"},[0==t.data.list.length?n("div",{staticClass:"form-empty"},[t._v("\n 从左侧拖拽来添加字段\n ")]):t._e(),t._v(" "),n("el-form",{attrs:{size:t.data.config.size,"label-suffix":":","label-position":t.data.config.labelPosition,"label-width":t.data.config.labelWidth+"px"}},[n("draggable",t._b({on:{end:t.handleMoveEnd,add:t.handleWidgetAdd},model:{value:t.data.list,callback:function(e){t.$set(t.data,"list",e)},expression:"data.list"}},"draggable",{group:"people",ghostClass:"ghost",animation:200,handle:".drag-widget"},!1),[n("transition-group",{staticClass:"widget-form-list",attrs:{name:"fade",tag:"div"}},[t._l(t.data.list,function(e,i){return["grid"==e.type?[e&&e.key?n("el-row",{key:e.key,staticClass:"widget-col widget-view",class:{active:t.selectWidget.key==e.key},attrs:{type:"flex",gutter:e.options.gutter?e.options.gutter:0,justify:e.options.justify,align:e.options.align},nativeOn:{click:function(e){return t.handleSelectWidget(i)}}},[t._l(e.columns,function(i,o){return n("el-col",{key:o,attrs:{span:i.span?i.span:0}},[n("draggable",t._b({attrs:{"no-transition-on-drag":!0},on:{end:t.handleMoveEnd,add:function(n){return t.handleWidgetColAdd(n,e,o)}},model:{value:i.list,callback:function(e){t.$set(i,"list",e)},expression:"col.list"}},"draggable",{group:"people",ghostClass:"ghost",animation:200,handle:".drag-widget"},!1),[n("transition-group",{staticClass:"widget-col-list",attrs:{name:"fade",tag:"div"}},[t._l(i.list,function(e,o){return[e.key?n("widget-form-item",{key:e.key,attrs:{element:e,select:t.selectWidget,index:o,data:i},on:{"update:select":function(e){t.selectWidget=e}}}):t._e()]})],2)],1)],1)}),t._v(" "),t.selectWidget.key==e.key?n("div",{staticClass:"widget-view-action widget-col-action"},[n("i",{staticClass:"iconfont icon-trash",on:{click:function(e){return e.stopPropagation(),t.handleWidgetDelete(i)}}})]):t._e(),t._v(" "),t.selectWidget.key==e.key?n("div",{staticClass:"widget-view-drag widget-col-drag"},[n("i",{staticClass:"iconfont icon-drag drag-widget"})]):t._e()],2):t._e()]:[e&&e.key?n("widget-form-item",{key:e.key,attrs:{element:e,select:t.selectWidget,index:i,data:t.data},on:{"update:select":function(e){t.selectWidget=e}}}):t._e()]]})],2)],1)],1)],1)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";function i(t){n(109)}var o=n(25),r=n(111),a=n(0),l=i,s=a(o.a,r.a,!1,l,null,null);e.a=s.exports},function(t,e,n){var i=n(110);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("f9704f4c",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,".cus-dialog-container .el-dialog__footer{margin:0 20px;padding:15px 0 16px;text-align:center;position:relative}.cus-dialog-container .el-dialog__footer .dialog-footer{display:block}.cus-dialog-container .el-dialog__footer .dialog-footer .circular{display:inline-block;vertical-align:middle;margin-right:5px;width:24px;height:24px}.cus-dialog-container .el-dialog__footer .dialog-footer .el-loading-text{display:inline-block;vertical-align:middle}.cus-dialog-container .el-dialog__footer .dialog-footer .el-loading-spinner{margin-top:-12px}",""])},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{ref:"elDialog",staticClass:"cus-dialog-container",attrs:{title:t.title,visible:t.dialogVisible,"close-on-click-modal":!1,"append-to-body":"",center:"",width:t.width,id:t.id},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.show?n("span",[t._t("default")],2):t._e(),t._v(" "),t.action?n("span",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialog-footer",attrs:{slot:"footer","element-loading-text":t.loadingText},slot:"footer"},[t._t("action",function(){return[n("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])]})],2):t._e()])},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){var i=n(113);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(3)("ff4a28ba",i,!0,{})},function(t,e,n){e=t.exports=n(2)(!1),e.push([t.i,"",""])},function(t,e,n){"use strict";var i=n(28),o=n(115),r=n(0),a=r(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form-item",{attrs:{label:t.widget.name,prop:t.widget.model}},["input"==t.widget.type?["number"==t.widget.options.dataType||"integer"==t.widget.options.dataType||"float"==t.widget.options.dataType?n("el-input",{style:{width:t.widget.options.width},attrs:{type:"number",placeholder:t.widget.options.placeholder,disabled:t.widget.options.disabled},model:{value:t.dataModel,callback:function(e){t.dataModel=t._n(e)},expression:"dataModel"}}):n("el-input",{style:{width:t.widget.options.width},attrs:{type:"text",disabled:t.widget.options.disabled,placeholder:t.widget.options.placeholder,maxlength:t.widget.options.maxlength,"show-word-limit":t.widget.options.showWordLimit},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"textarea"==t.widget.type?[n("el-input",{style:{width:t.widget.options.width},attrs:{type:"textarea",rows:5,disabled:t.widget.options.disabled,placeholder:t.widget.options.placeholder,maxlength:t.widget.options.maxlength,"show-word-limit":t.widget.options.showWordLimit},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"number"==t.widget.type?[n("el-input-number",{style:{width:t.widget.options.width},attrs:{step:t.widget.options.step,"controls-position":"right",disabled:t.widget.options.disabled,min:t.widget.options.min,max:t.widget.options.max},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"radio"==t.widget.type?[n("el-radio-group",{style:{width:t.widget.options.width},attrs:{disabled:t.widget.options.disabled},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}},t._l(t.widget.options.remote?t.widget.options.remoteOptions:t.widget.options.options,function(e,i){return n("el-radio",{key:i,style:{display:t.widget.options.inline?"inline-block":"block"},attrs:{label:e.value}},[t.widget.options.remote?[t._v(t._s(e.label))]:[t._v(t._s(t.widget.options.showLabel?e.label:e.value))]],2)}),1)]:t._e(),t._v(" "),"checkbox"==t.widget.type?[n("el-checkbox-group",{style:{width:t.widget.options.width},attrs:{disabled:t.widget.options.disabled},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}},t._l(t.widget.options.remote?t.widget.options.remoteOptions:t.widget.options.options,function(e,i){return n("el-checkbox",{key:i,style:{display:t.widget.options.inline?"inline-block":"block"},attrs:{label:e.value}},[t.widget.options.remote?[t._v(t._s(e.label))]:[t._v(t._s(t.widget.options.showLabel?e.label:e.value))]],2)}),1)]:t._e(),t._v(" "),"time"==t.widget.type?[n("el-time-picker",{style:{width:t.widget.options.width},attrs:{"is-range":t.widget.options.isRange,placeholder:t.widget.options.placeholder,"start-placeholder":t.widget.options.startPlaceholder,"end-placeholder":t.widget.options.endPlaceholder,readonly:t.widget.options.readonly,disabled:t.widget.options.disabled,editable:t.widget.options.editable,clearable:t.widget.options.clearable,arrowControl:t.widget.options.arrowControl,"value-format":t.widget.options.format},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"date"==t.widget.type?[n("el-date-picker",{style:{width:t.widget.options.width},attrs:{type:t.widget.options.type,placeholder:t.widget.options.placeholder,"start-placeholder":t.widget.options.startPlaceholder,"end-placeholder":t.widget.options.endPlaceholder,readonly:t.widget.options.readonly,disabled:t.widget.options.disabled,editable:t.widget.options.editable,clearable:t.widget.options.clearable,"value-format":t.widget.options.timestamp?"timestamp":t.widget.options.format,format:t.widget.options.format},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"rate"==t.widget.type?[n("el-rate",{attrs:{max:t.widget.options.max,disabled:t.widget.options.disabled,"allow-half":t.widget.options.allowHalf},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"color"==t.widget.type?[n("el-color-picker",{attrs:{disabled:t.widget.options.disabled,"show-alpha":t.widget.options.showAlpha},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"select"==t.widget.type?[n("el-select",{style:{width:t.widget.options.width},attrs:{disabled:t.widget.options.disabled,multiple:t.widget.options.multiple,clearable:t.widget.options.clearable,placeholder:t.widget.options.placeholder,filterable:t.widget.options.filterable},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}},t._l(t.widget.options.remote?t.widget.options.remoteOptions:t.widget.options.options,function(e){return n("el-option",{key:e.value,attrs:{value:e.value,label:t.widget.options.showLabel||t.widget.options.remote?e.label:e.value}})}),1)]:t._e(),t._v(" "),"switch"==t.widget.type?[n("el-switch",{attrs:{disabled:t.widget.options.disabled},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"slider"==t.widget.type?[n("el-slider",{style:{width:t.widget.options.width},attrs:{min:t.widget.options.min,max:t.widget.options.max,disabled:t.widget.options.disabled,step:t.widget.options.step,"show-input":t.widget.options.showInput,range:t.widget.options.range},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"imgupload"==t.widget.type?[n("fm-upload",{style:{width:t.widget.options.width},attrs:{disabled:t.widget.options.disabled,width:t.widget.options.size.width,height:t.widget.options.size.height,token:t.widget.options.token,domain:t.widget.options.domain,multiple:t.widget.options.multiple,length:t.widget.options.length,"is-qiniu":t.widget.options.isQiniu,"is-delete":t.widget.options.isDelete,min:t.widget.options.min,"is-edit":t.widget.options.isEdit,action:t.widget.options.action},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"editor"==t.widget.type?[n("vue-editor",{style:{width:t.widget.options.width},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"cascader"==t.widget.type?[n("el-cascader",{style:{width:t.widget.options.width},attrs:{disabled:t.widget.options.disabled,clearable:t.widget.options.clearable,placeholder:t.widget.options.placeholder,options:t.widget.options.remoteOptions},model:{value:t.dataModel,callback:function(e){t.dataModel=e},expression:"dataModel"}})]:t._e(),t._v(" "),"text"==t.widget.type?[n("span",[t._v(t._s(t.dataModel))])]:t._e()],2)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fm-style"},[n("el-form",{ref:"generateForm",attrs:{"label-suffix":":",size:t.data.config.size,model:t.models,rules:t.rules,"label-position":t.data.config.labelPosition,"label-width":t.data.config.labelWidth+"px"}},[t._l(t.data.list,function(e){return["grid"==e.type?[n("el-row",{key:e.key,attrs:{type:"flex",gutter:e.options.gutter?e.options.gutter:0,justify:e.options.justify,align:e.options.align}},t._l(e.columns,function(e,i){return n("el-col",{key:i,attrs:{span:e.span}},[t._l(e.list,function(e){return["blank"==e.type?n("el-form-item",{key:e.key,attrs:{label:e.name,prop:e.model}},[t._t(e.model,null,{model:t.models})],2):n("genetate-form-item",{key:e.key,attrs:{models:t.models,remote:t.remote,rules:t.rules,widget:e},on:{"update:models":function(e){t.models=e},"input-change":t.onInputChange}})]})],2)}),1)]:"blank"==e.type?[n("el-form-item",{key:e.key,attrs:{label:e.name,prop:e.model}},[t._t(e.model,null,{model:t.models})],2)]:[n("genetate-form-item",{key:e.key,attrs:{models:t.models,rules:t.rules,widget:e,remote:t.remote},on:{"update:models":function(e){t.models=e},"input-change":t.onInputChange}})]]})],2)],1)},o=[],r={render:i,staticRenderFns:o};e.a=r},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"c",function(){return r});var i=[{name:"单行文本",type:"input",icon:"icon-input",options:{width:"100%",defaultValue:"",required:!1,dataType:"string",pattern:"",placeholder:"",disabled:!1,maxlength:-1,showWordLimit:!1}},{name:"多行文本",type:"textarea",icon:"icon-diy-com-textarea",options:{width:"100%",defaultValue:"",required:!1,disabled:!1,pattern:"",placeholder:"",maxlength:-1,showWordLimit:!1}},{name:"计数器",type:"number",icon:"icon-number",options:{width:"",required:!1,defaultValue:0,min:"",max:"",step:1,disabled:!1,controlsPosition:""}},{name:"单选框组",type:"radio",icon:"icon-radio-active",options:{inline:!1,defaultValue:"",showLabel:!1,options:[{value:"Option 1",label:"Option 1"},{value:"Option 2",label:"Option 2"},{value:"Option 3",label:"Option 3"}],required:!1,width:"",remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1}},{name:"多选框组",type:"checkbox",icon:"icon-check-box",options:{inline:!1,defaultValue:[],showLabel:!1,options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],required:!1,width:"",remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1}},{name:"时间选择器",type:"time",icon:"icon-time",options:{defaultValue:"21:19:56",readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",isRange:!1,arrowControl:!0,format:"HH:mm:ss",required:!1,width:""}},{name:"日期选择器",type:"date",icon:"icon-date",options:{defaultValue:"",readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",type:"date",format:"yyyy-MM-dd",timestamp:!1,required:!1,width:""}},{name:"评分",type:"rate",icon:"icon-pingfen1",options:{defaultValue:null,max:5,disabled:!1,allowHalf:!1,required:!1}},{name:"颜色选择器",type:"color",icon:"icon-color",options:{defaultValue:"",disabled:!1,showAlpha:!1,required:!1}},{name:"下拉选择框",type:"select",icon:"icon-select",options:{defaultValue:"",multiple:!1,disabled:!1,clearable:!1,placeholder:"",required:!1,showLabel:!1,width:"",options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],remote:!1,filterable:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{name:"开关",type:"switch",icon:"icon-switch",options:{defaultValue:!1,required:!1,disabled:!1}},{name:"滑块",type:"slider",icon:"icon-slider",options:{defaultValue:0,disabled:!1,required:!1,min:0,max:100,step:1,showInput:!1,range:!1,width:""}},{name:"文字",type:"text",icon:"icon-wenzishezhi-",options:{defaultValue:"This is a text",customClass:""}}],o=[{name:"自定义区域",type:"blank",icon:"icon-zidingyishuju",options:{defaultType:"String"}},{name:"图片",type:"imgupload",icon:"icon-tupian",options:{defaultValue:[],size:{width:100,height:100},width:"",tokenFunc:"funcGetToken",token:"",domain:"https://tcdn.form.making.link/",disabled:!1,length:8,multiple:!1,isQiniu:!1,isDelete:!1,min:0,isEdit:!1,action:"https://tools-server.making.link/api/transfer"}},{name:"编辑器",type:"editor",icon:"icon-fuwenbenkuang",options:{defaultValue:"",width:""}},{name:"级联选择器",type:"cascader",icon:"icon-jilianxuanze",options:{defaultValue:[],width:"",placeholder:"",disabled:!1,clearable:!1,remote:!0,remoteOptions:[],props:{value:"value",label:"label",children:"children"},remoteFunc:""}}],r=[{name:"栅格布局",type:"grid",icon:"icon-grid-",columns:[{span:12,list:[]},{span:12,list:[]}],options:{gutter:0,justify:"start",align:"top"}}]},function(t,e,n){"use strict";var i=n(119),o=n.n(i),r=o.a.create({withCredentials:!1});r.interceptors.request.use(function(t){return t},function(t){return console.log("error",t),Promise.reject(new Error(t).message)}),r.interceptors.response.use(function(t){return console.log(".....",t),t.data},function(t){return console.log("error",t),Promise.reject(new Error(t).message)}),e.a=r},function(t,e,n){t.exports=n(120)},function(t,e,n){"use strict";function i(t){var e=new a(t),n=r(a.prototype.request,e);return o.extend(n,a.prototype,e),o.extend(n,e),n.create=function(e){return i(l(t,e))},n}var o=n(1),r=n(29),a=n(121),l=n(36),s=n(7),c=i(s);c.Axios=a,c.CanceledError=n(6),c.CancelToken=n(141),c.isCancel=n(35),c.VERSION=n(37).version,c.toFormData=n(32),c.AxiosError=n(4),c.Cancel=c.CanceledError,c.all=function(t){return Promise.all(t)},c.spread=n(142),c.isAxiosError=n(143),t.exports=c,t.exports.default=c},function(t,e,n){"use strict";function i(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var o=n(1),r=n(30),a=n(122),l=n(123),s=n(36),c=n(34),u=n(140),d=u.validators;i.prototype.request=function(t,e){"string"==typeof t?(e=e||{},e.url=t):e=t||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,i.unshift(t.fulfilled,t.rejected))});var r=[];this.interceptors.response.forEach(function(t){r.push(t.fulfilled,t.rejected)});var a;if(!o){var c=[l,void 0];for(Array.prototype.unshift.apply(c,i),c=c.concat(r),a=Promise.resolve(e);c.length;)a=a.then(c.shift(),c.shift());return a}for(var f=e;i.length;){var p=i.shift(),h=i.shift();try{f=p(f)}catch(t){h(t);break}}try{a=l(f)}catch(t){return Promise.reject(t)}for(;r.length;)a=a.then(r.shift(),r.shift());return a},i.prototype.getUri=function(t){t=s(this.defaults,t);var e=c(t.baseURL,t.url);return r(e,t.params,t.paramsSerializer)},o.forEach(["delete","get","head","options"],function(t){i.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}}),o.forEach(["post","put","patch"],function(t){function e(e){return function(n,i,o){return this.request(s(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}i.prototype[t]=e(),i.prototype[t+"Form"]=e(!0)}),t.exports=i},function(t,e,n){"use strict";function i(){this.handlers=[]}var o=n(1);i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";function i(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s}var o=n(1),r=n(124),a=n(35),l=n(7),s=n(6);t.exports=function(t){return i(t),t.headers=t.headers||{},t.data=r.call(t,t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||l.adapter)(t).then(function(e){return i(t),e.data=r.call(t,e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(i(t),e&&e.response&&(e.response.data=r.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var i=n(1),o=n(7);t.exports=function(t,e,n){var r=this||o;return i.forEach(n,function(n){t=n.call(r,t,e)}),t}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function r(t){if(d===clearTimeout)return clearTimeout(t);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){m&&p&&(m=!1,p.length?h=p.concat(h):g=-1,h.length&&l())}function l(){if(!m){var t=o(a);m=!0;for(var e=h.length;e;){for(p=h,h=[];++g<e;)p&&p[g].run();g=-1,e=h.length}p=null,m=!1,r(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var u,d,f=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(t){d=i}}();var p,h=[],m=!1,g=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new s(t,e)),1!==h.length||m||o(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=c,f.addListener=c,f.once=c,f.off=c,f.removeListener=c,f.removeAllListeners=c,f.emit=c,f.prependListener=c,f.prependOnceListener=c,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,n){"use strict";var i=n(1);t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},function(t,e,n){"use strict";(function(t){function i(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=r.prototype):(null===t&&(t=new r(e)),t.length=e),t}function r(t,e,n){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,n,i):"string"==typeof e?u(t,e,n):p(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function s(t,e,n,i){return l(e),e<=0?o(t,e):void 0!==n?"string"==typeof i?o(t,e).fill(n,i):o(t,e).fill(n):o(t,e)}function c(t,e){if(l(e),t=o(t,e<0?0:0|h(e)),!r.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function u(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!r.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|g(e,n);t=o(t,i);var a=t.write(e,n);return a!==i&&(t=t.slice(0,a)),t}function d(t,e){var n=e.length<0?0:0|h(e.length);t=o(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),r.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=r.prototype):t=d(t,e),t}function p(t,e){if(r.isBuffer(e)){var n=0|h(e.length);return t=o(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||G(e.length)?o(t,0):d(t,e);if("Buffer"===e.type&&K(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),r.alloc(+t)}function g(t,e){if(r.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(i)return W(t).length;e=(""+e).toLowerCase(),i=!0}}function v(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return D(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function b(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function w(t,e,n,i,o){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=r.from(e,i)),r.isBuffer(e))return 0===e.length?-1:y(t,e,n,i,o);if("number"==typeof e)return e&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,i,o){function r(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,l=t.length,s=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,l/=2,s/=2,n/=2}var c;if(o){var u=-1;for(c=n;c<l;c++)if(r(t,c)===r(e,-1===u?0:c-u)){if(-1===u&&(u=c),c-u+1===s)return u*a}else-1!==u&&(c-=c-u),u=-1}else for(n+s>l&&(n=l-s),c=n;c>=0;c--){for(var d=!0,f=0;f<s;f++)if(r(t,c+f)!==r(e,f)){d=!1;break}if(d)return c}return-1}function x(t,e,n,i){n=Number(n)||0;var o=t.length-n;i?(i=Number(i))>o&&(i=o):i=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var a=0;a<i;++a){var l=parseInt(e.substr(2*a,2),16);if(isNaN(l))return a;t[n+a]=l}return a}function k(t,e,n,i){return $(W(e,t.length-n),t,n,i)}function _(t,e,n,i){return $(q(e),t,n,i)}function E(t,e,n,i){return _(t,e,n,i)}function S(t,e,n,i){return $(X(e),t,n,i)}function C(t,e,n,i){return $(H(e,t.length-n),t,n,i)}function A(t,e,n){return 0===e&&n===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o<n;){var r=t[o],a=null,l=r>239?4:r>223?3:r>191?2:1;if(o+l<=n){var s,c,u,d;switch(l){case 1:r<128&&(a=r);break;case 2:s=t[o+1],128==(192&s)&&(d=(31&r)<<6|63&s)>127&&(a=d);break;case 3:s=t[o+1],c=t[o+2],128==(192&s)&&128==(192&c)&&(d=(15&r)<<12|(63&s)<<6|63&c)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:s=t[o+1],c=t[o+2],u=t[o+3],128==(192&s)&&128==(192&c)&&128==(192&u)&&(d=(15&r)<<18|(63&s)<<12|(63&c)<<6|63&u)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,l=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),o+=l}return T(i)}function T(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=Z));return n}function D(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(127&t[o]);return i}function I(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(t[o]);return i}function M(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=e;r<n;++r)o+=Y(t[r]);return o}function R(t,e,n){for(var i=t.slice(e,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,n,i,o,a){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function L(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o<r;++o)t[n+o]=(e&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function z(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o<r;++o)t[n+o]=e>>>8*(i?o:3-o)&255}function F(t,e,n,i,o,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,i,o){return o||F(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,n,i,23,4),n+4}function B(t,e,n,i,o){return o||F(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,n,i,52,8),n+8}function V(t){if(t=U(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,i=t.length,o=null,r=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function q(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function H(t,e){for(var n,i,o,r=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,o=n%256,r.push(o),r.push(i);return r}function X(t){return J.toByteArray(V(t))}function $(t,e,n,i){for(var o=0;o<i&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function G(t){return t!==t}/*!
23
- * The buffer module from node.js, for the browser.
24
- *
25
- * @author Feross Aboukhadijeh <http://feross.org>
26
- * @license MIT
27
- */
28
- var J=n(129),Q=n(130),K=n(131);e.Buffer=r,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=i(),r.poolSize=8192,r._augment=function(t){return t.__proto__=r.prototype,t},r.from=function(t,e,n){return a(null,t,e,n)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(t,e,n){return s(null,t,e,n)},r.allocUnsafe=function(t){return c(null,t)},r.allocUnsafeSlow=function(t){return c(null,t)},r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0},r.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(t,e){if(!K(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return r.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=r.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},r.byteLength=g,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},r.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},r.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},r.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):v.apply(this,arguments)},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===r.compare(this,t)},r.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t,e,n,i,o){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var a=o-i,l=n-e,s=Math.min(a,l),c=this.slice(i,o),u=t.slice(e,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],l=u[d];break}return a<l?-1:l<a?1:0},r.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},r.prototype.indexOf=function(t,e,n){return w(this,t,e,n,!0)},r.prototype.lastIndexOf=function(t,e,n){return w(this,t,e,n,!1)},r.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;r.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i;if(r.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=r.prototype;else{var o=e-t;i=new r(o,void 0);for(var a=0;a<o;++a)i[a]=this[a+t]}return i},r.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return i},r.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},r.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},r.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=e,o=1,r=this[t+--i];i>0&&(o*=256);)r+=this[t+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},r.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!1,52,8)},r.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){j(this,t,e,n,Math.pow(2,8*n)-1,0)}var o=1,r=0;for(this[e]=255&t;++r<n&&(o*=256);)this[e+r]=t/o&255;return e+n},r.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){j(this,t,e,n,Math.pow(2,8*n)-1,0)}var o=n-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+n},r.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},r.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):z(this,t,e,!0),e+4},r.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},r.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);j(this,t,e,n,o-1,-o)}var r=0,a=1,l=0;for(this[e]=255&t;++r<n&&(a*=256);)t<0&&0===l&&0!==this[e+r-1]&&(l=1),this[e+r]=(t/a>>0)-l&255;return e+n},r.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);j(this,t,e,n,o-1,-o)}var r=n-1,a=1,l=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===l&&0!==this[e+r+1]&&(l=1),this[e+r]=(t/a>>0)-l&255;return e+n},r.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},r.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):z(this,t,e,!0),e+4},r.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},r.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},r.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},r.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},r.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},r.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var o,a=i-n;if(this===t&&n<e&&e<i)for(o=a-1;o>=0;--o)t[o+e]=this[o+n];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},r.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!r.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var l=r.isBuffer(t)?t:W(new r(t,i).toString()),s=l.length;for(a=0;a<n-e;++a)this[a+e]=l[a%s]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(128))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function o(t){var e=i(t),n=e[0],o=e[1];return 3*(n+o)/4-o}function r(t,e,n){return 3*(e+n)/4-n}function a(t){var e,n,o=i(t),a=o[0],l=o[1],s=new f(r(t,a,l)),c=0,u=l>0?a-4:a;for(n=0;n<u;n+=4)e=d[t.charCodeAt(n)]<<18|d[t.charCodeAt(n+1)]<<12|d[t.charCodeAt(n+2)]<<6|d[t.charCodeAt(n+3)],s[c++]=e>>16&255,s[c++]=e>>8&255,s[c++]=255&e;return 2===l&&(e=d[t.charCodeAt(n)]<<2|d[t.charCodeAt(n+1)]>>4,s[c++]=255&e),1===l&&(e=d[t.charCodeAt(n)]<<10|d[t.charCodeAt(n+1)]<<4|d[t.charCodeAt(n+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e),s}function l(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function s(t,e,n){for(var i,o=[],r=e;r<n;r+=3)i=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),o.push(l(i));return o.join("")}function c(t){for(var e,n=t.length,i=n%3,o=[],r=0,a=n-i;r<a;r+=16383)o.push(s(t,r,r+16383>a?a:r+16383));return 1===i?(e=t[n-1],o.push(u[e>>2]+u[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),o.join("")}e.byteLength=o,e.toByteArray=a,e.fromByteArray=c;for(var u=[],d=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,m=p.length;h<m;++h)u[h]=p[h],d[p.charCodeAt(h)]=h;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63},function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
29
- e.read=function(t,e,n,i,o){var r,a,l=8*o-i-1,s=(1<<l)-1,c=s>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=t[e+d];for(d+=f,r=p&(1<<-u)-1,p>>=-u,u+=l;u>0;r=256*r+t[e+d],d+=f,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=i;u>0;a=256*a+t[e+d],d+=f,u-=8);if(0===r)r=1-c;else{if(r===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),r-=c}return(p?-1:1)*a*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var a,l,s,c=8*r-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,h=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+d>=1?f/s:f*Math.pow(2,1-d),e*s>=2&&(a++,s/=2),a+d>=u?(l=0,a=u):a+d>=1?(l=(e*s-1)*Math.pow(2,o),a+=d):(l=e*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;t[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,c+=o;c>0;t[n+p]=255&a,p+=h,a/=256,c-=8);t[n+p-h]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var i=n(4);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},function(t,e,n){"use strict";var i=n(1);t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,r,a){var l=[];l.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),i.isString(o)&&l.push("path="+o),i.isString(r)&&l.push("domain="+r),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var i=n(1),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,r,a={};return t?(i.forEach(t.split("\n"),function(t){if(r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),n=i.trim(t.substr(r+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},function(t,e,n){"use strict";var i=n(1);t.exports=i.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=i.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},function(t,e){t.exports=null},function(t,e,n){"use strict";function i(t,e,n){if("object"!=typeof t)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(t),o=i.length;o-- >0;){var a=i[o],l=e[a];if(l){var s=t[a],c=void 0===s||l(s,a,t);if(!0!==c)throw new r("option "+a+" must be "+c,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}}var o=n(37).version,r=n(4),a={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){a[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var l={};a.transitional=function(t,e,n){function i(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,o,a){if(!1===t)throw new r(i(o," has been removed"+(e?" in "+e:"")),r.ERR_DEPRECATED);return e&&!l[o]&&(l[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,a)}},t.exports={assertOptions:i,validators:a}},function(t,e,n){"use strict";function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;this.promise.then(function(t){if(n._listeners){var e,i=n._listeners.length;for(e=0;e<i;e++)n._listeners[e](t);n._listeners=null}}),this.promise.then=function(t){var e,i=new Promise(function(t){n.subscribe(t),e=t}).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t(function(t){n.reason||(n.reason=new o(t),e(n.reason))})}var o=n(6);i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(t){if(this.reason)return void t(this.reason);this._listeners?this._listeners.push(t):this._listeners=[t]},i.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var i=n(1);t.exports=function(t){return i.isObject(t)&&!0===t.isAxiosError}},function(t,e,n){"use strict";function i(t,e,n,o){for(var r=0;r<t.length;r++)"grid"==t[r].type?t[r].columns.forEach(function(t){i(t.list,e,n,o)}):"blank"==t[r].type?t[r].model&&o.push({name:t[r].model,label:t[r].name}):"imgupload"==t[r].type?t[r].options.tokenFunc&&n.push({func:t[r].options.tokenFunc,label:t[r].name,model:t[r].model}):t[r].options.remote&&t[r].options.remoteFunc&&e.push({func:t[r].options.remoteFunc,label:t[r].name,model:t[r].model})}e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vue",n=[],o=[],r=[];i(JSON.parse(t).list,n,o,r);for(var a="",l="",s=0;s<n.length;s++)a+="\n "+n[s].func+" (resolve) {\n // "+n[s].label+" "+n[s].model+"\n // Call callback function once get the data from remote server\n // resolve(data)\n },\n ";for(var c=0;c<o.length;c++)a+="\n "+o[c].func+" (resolve) {\n // "+o[c].label+" "+o[c].model+"\n // Call callback function once get the token\n // resolve(token)\n },\n ";for(var u=0;u<r.length;u++)l+='\n <template slot="'+r[u].name+'" slot-scope="scope">\n \x3c!-- '+r[u].label+' --\x3e\n \x3c!-- use v-model="scope.model.'+r[u].name+'" to bind data --\x3e\n </template>\n ';return"vue"==e?'<template>\n <div>\n <fm-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '+l+'\n </fm-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n</template>\n\n<script>\n export default {\n data () {\n return {\n jsonData: '+t+",\n editData: {},\n remoteFuncs: {\n "+a+"\n }\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n }\n<\/script>":'<!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">\n <link rel="stylesheet" href="https://unpkg.com/form-making/dist/FormMaking.css">\n </head>\n <body>\n <div id="app">\n <fm-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '+l+'\n </fm-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n <script src="https://unpkg.com/vue/dist/vue.js"><\/script>\n <script src="https://unpkg.com/element-ui/lib/index.js"><\/script>\n <script src="https://unpkg.com/form-making/dist/FormMaking.umd.js"><\/script>\n <script>\n new Vue({\n el: \'#app\',\n data: {\n jsonData: '+t+",\n editData: {},\n remoteFuncs: {\n "+a+"\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n })\n <\/script>\n </body>\n </html>"}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fm-style"},[n("el-container",{staticClass:"fm2-container"},[n("el-main",{staticClass:"fm2-main"},[n("el-container",[n("el-aside",{attrs:{width:"250px"}},[n("div",{staticClass:"components-list"},[t.basicFields.length?[n("div",{staticClass:"widget-cate"},[t._v("\n 基础字段\n ")]),t._v(" "),n("draggable",t._b({attrs:{tag:"ul",list:t.basicComponents,move:t.handleMove},on:{end:t.handleMoveEnd,start:t.handleMoveStart}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),[t._l(t.basicComponents,function(e,i){return[t.basicFields.indexOf(e.type)>=0?n("li",{key:i,staticClass:"form-edit-widget-label",class:{"no-put":"divider"==e.type}},[n("a",[n("i",{staticClass:"icon iconfont",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))])])]):t._e()]})],2)]:t._e(),t._v(" "),t.advanceFields.length?[n("div",{staticClass:"widget-cate"},[t._v("\n 高级字段\n ")]),t._v(" "),n("draggable",t._b({attrs:{tag:"ul",list:t.advanceComponents,move:t.handleMove},on:{end:t.handleMoveEnd,start:t.handleMoveStart}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),[t._l(t.advanceComponents,function(e,i){return[t.advanceFields.indexOf(e.type)>=0?n("li",{key:i,staticClass:"form-edit-widget-label",class:{"no-put":"table"==e.type}},[n("a",[n("i",{staticClass:"icon iconfont",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))])])]):t._e()]})],2)]:t._e(),t._v(" "),t.layoutFields.length?[n("div",{staticClass:"widget-cate"},[t._v("\n 布局字段\n ")]),t._v(" "),n("draggable",t._b({attrs:{tag:"ul",list:t.layoutComponents,move:t.handleMove},on:{end:t.handleMoveEnd,start:t.handleMoveStart}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),[t._l(t.layoutComponents,function(e,i){return[t.layoutFields.indexOf(e.type)>=0?n("li",{key:i,staticClass:"form-edit-widget-label no-put"},[n("a",[n("i",{staticClass:"icon iconfont",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))])])]):t._e()]})],2)]:t._e()],2)]),t._v(" "),n("el-container",{staticClass:"center-container",attrs:{direction:"vertical"}},[n("el-header",{staticClass:"btn-bar",staticStyle:{height:"45px"}},[t._t("action"),t._v(" "),t.upload?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-upload2"},on:{click:t.handleUpload}},[t._v("导入JSON")]):t._e(),t._v(" "),t.clearable?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:t.handleClear}},[t._v("清空")]):t._e(),t._v(" "),t.preview?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:t.handlePreview}},[t._v("预览")]):t._e(),t._v(" "),t.generateJson?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-tickets"},on:{click:t.handleGenerateJson}},[t._v("生成JSON")]):t._e(),t._v(" "),t.generateCode?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:t.handleGenerateCode}},[t._v("生成代码")]):t._e()],2),t._v(" "),n("el-main",{class:{"widget-empty":0==t.widgetForm.list.length}},[t.resetJson?t._e():n("widget-form",{ref:"widgetForm",attrs:{data:t.widgetForm,select:t.widgetFormSelect},on:{"update:select":function(e){t.widgetFormSelect=e}}})],1)],1),t._v(" "),n("el-aside",{staticClass:"widget-config-container"},[n("el-container",[n("el-header",{attrs:{height:"45px"}},[n("div",{staticClass:"config-tab",class:{active:"widget"==t.configTab},on:{click:function(e){return t.handleConfigSelect("widget")}}},[t._v("\n 字段属性\n ")]),t._v(" "),n("div",{staticClass:"config-tab",class:{active:"form"==t.configTab},on:{click:function(e){return t.handleConfigSelect("form")}}},[t._v("\n 表单属性\n ")])]),t._v(" "),n("el-main",{staticClass:"config-content"},[n("widget-config",{directives:[{name:"show",rawName:"v-show",value:"widget"==t.configTab,expression:"configTab == 'widget'"}],attrs:{data:t.widgetFormSelect}}),t._v(" "),n("form-config",{directives:[{name:"show",rawName:"v-show",value:"form"==t.configTab,expression:"configTab == 'form'"}],attrs:{data:t.widgetForm.config}})],1)],1)],1),t._v(" "),n("cus-dialog",{ref:"widgetPreview",attrs:{visible:t.previewVisible,width:"1000px",form:""},on:{"on-close":function(e){t.previewVisible=!1}}},[t.previewVisible?n("generate-form",{ref:"generateForm",attrs:{insite:"true",data:t.widgetForm,value:t.widgetModels,remote:t.remoteFuncs},on:{"on-change":t.handleDataChange},scopedSlots:t._u([{key:"blank",fn:function(e){return[t._v("\n Width\n "),n("el-input",{staticStyle:{width:"100px"},model:{value:e.model.blank.width,callback:function(n){t.$set(e.model.blank,"width",n)},expression:"scope.model.blank.width"}}),t._v("\n Height\n "),n("el-input",{staticStyle:{width:"100px"},model:{value:e.model.blank.height,callback:function(n){t.$set(e.model.blank,"height",n)},expression:"scope.model.blank.height"}})]}}],null,!1,1894405589)}):t._e(),t._v(" "),n("template",{slot:"action"},[n("el-button",{attrs:{type:"primary"},on:{click:t.handleTest}},[t._v("获取数据")]),t._v(" "),n("el-button",{on:{click:t.handleReset}},[t._v("重置")])],1)],2),t._v(" "),n("cus-dialog",{ref:"uploadJson",attrs:{visible:t.uploadVisible,width:"800px",form:""},on:{"on-close":function(e){t.uploadVisible=!1},"on-submit":t.handleUploadJson}},[n("el-alert",{attrs:{type:"info",title:"JSON格式如下,直接复制生成的json覆盖此处代码点击确定即可"}}),t._v(" "),n("div",{staticStyle:{height:"400px",width:"100%"},attrs:{id:"uploadeditor"}},[t._v("\n "+t._s(t.jsonEg)+"\n ")])],1),t._v(" "),n("cus-dialog",{ref:"jsonPreview",attrs:{visible:t.jsonVisible,width:"800px",form:""},on:{"on-close":function(e){t.jsonVisible=!1}}},[n("div",{staticStyle:{height:"400px",width:"100%"},attrs:{id:"jsoneditor"}},[t._v("\n "+t._s(t.jsonTemplate)+"\n ")]),t._v(" "),n("template",{slot:"action"},[n("el-button",{staticClass:"json-btn",attrs:{type:"primary","data-clipboard-text":t.jsonCopyValue}},[t._v("复制数据")])],1)],2),t._v(" "),n("cus-dialog",{ref:"codePreview",attrs:{visible:t.codeVisible,width:"800px",form:"",action:!1},on:{"on-close":function(e){t.codeVisible=!1}}},[n("el-tabs",{staticStyle:{"box-shadow":"none"},attrs:{type:"border-card"},model:{value:t.codeActiveName,callback:function(e){t.codeActiveName=e},expression:"codeActiveName"}},[n("el-tab-pane",{attrs:{label:"Vue Component",name:"vue"}},[n("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"vuecodeeditor"}},[t._v("\n "+t._s(t.vueTemplate)+"\n ")])]),t._v(" "),n("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[n("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"codeeditor"}},[t._v("\n "+t._s(t.htmlTemplate)+"\n ")])])],1)],1)],1)],1)],1)],1)},o=[],r={render:i,staticRenderFns:o};e.a=r}])});
30
- //# sourceMappingURL=tianheng-ui.js.map
32
+ e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},a="undefined"!=typeof window&&void 0!==window.document,l=a?window:{},c=!(!a||!l.document.documentElement)&&"ontouchstart"in l.document.documentElement,u=!!a&&"PointerEvent"in l,d="viewer",h="move",f="switch",p="zoom",g="".concat(d,"-active"),m="".concat(d,"-close"),b="".concat(d,"-fade"),v="".concat(d,"-fixed"),y="".concat(d,"-fullscreen"),w="".concat(d,"-fullscreen-exit"),x="".concat(d,"-hide"),k="".concat(d,"-hide-md-down"),_="".concat(d,"-hide-sm-down"),C="".concat(d,"-hide-xs-down"),S="".concat(d,"-in"),A="".concat(d,"-invisible"),E="".concat(d,"-loading"),O="".concat(d,"-move"),T="".concat(d,"-open"),$="".concat(d,"-show"),L="".concat(d,"-transition"),R="click",q="dblclick",M="dragstart",P="focusin",N="keydown",I="load",D="error",j=u?"pointerdown":c?"touchstart":"mousedown",F=u?"pointermove":c?"touchmove":"mousemove",B=u?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",z="transitionend",W="show",H="hide",U="view",V="viewed",K="move",G="moved",Y="rotated",X="scale",Z="scaled",J="zoom",Q="zoomed",ee="play",te="".concat(d,"Action"),ne=/\s\s*/,ie=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function oe(e){return"string"==typeof e}var re=Number.isNaN||l.isNaN;function se(e){return"number"==typeof e&&!re(e)}function ae(e){return void 0===e}function le(e){return"object"===n(e)&&null!==e}var ce=Object.prototype.hasOwnProperty;function ue(e){if(!le(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ce.call(n,"isPrototypeOf")}catch(e){return!1}}function de(e){return"function"==typeof e}function he(e,t){if(e&&de(t))if(Array.isArray(e)||se(e.length)){var n,i=e.length;for(n=0;n<i&&!1!==t.call(e,e[n],n,e);n+=1);}else le(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}));return e}var fe=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return le(e)&&n.length>0&&n.forEach((function(t){le(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},pe=/^(?:width|height|left|top|marginLeft|marginTop)$/;function ge(e,t){var n=e.style;he(t,(function(e,t){pe.test(t)&&se(e)&&(e+="px"),n[t]=e}))}function me(e){return oe(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}function be(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function ve(e,t){if(e&&t)if(se(e.length))he(e,(function(e){ve(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function ye(e,t){e&&t&&(se(e.length)?he(e,(function(e){ye(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function we(e,t,n){t&&(se(e.length)?he(e,(function(e){we(e,t,n)})):n?ve(e,t):ye(e,t))}var xe=/([a-z\d])([A-Z])/g;function ke(e){return e.replace(xe,"$1-$2").toLowerCase()}function _e(e,t){return le(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(ke(t)))}function Ce(e,t,n){le(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(ke(t)),n)}var Se=function(){var e=!1;if(a){var t=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",n,i),l.removeEventListener("test",n,i)}return e}();function Ae(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;t.trim().split(ne).forEach((function(t){if(!Se){var r=e.listeners;r&&r[t]&&r[t][n]&&(o=r[t][n],delete r[t][n],0===Object.keys(r[t]).length&&delete r[t],0===Object.keys(r).length&&delete e.listeners)}e.removeEventListener(t,o,i)}))}function Ee(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;t.trim().split(ne).forEach((function(t){if(i.once&&!Se){var r=e.listeners,s=void 0===r?{}:r;o=function(){delete s[t][n],e.removeEventListener(t,o,i);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];n.apply(e,a)},s[t]||(s[t]={}),s[t][n]&&e.removeEventListener(t,s[t][n],i),s[t][n]=o,e.listeners=s}e.addEventListener(t,o,i)}))}function Oe(e,n,i,o){var r;return de(Event)&&de(CustomEvent)?r=new CustomEvent(n,t({bubbles:!0,cancelable:!0,detail:i},o)):(r=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,i),e.dispatchEvent(r)}function Te(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function $e(e){var t=e.rotate,n=e.scaleX,i=e.scaleY,o=e.translateX,r=e.translateY,s=[];se(o)&&0!==o&&s.push("translateX(".concat(o,"px)")),se(r)&&0!==r&&s.push("translateY(".concat(r,"px)")),se(t)&&0!==t&&s.push("rotate(".concat(t,"deg)")),se(n)&&1!==n&&s.push("scaleX(".concat(n,")")),se(i)&&1!==i&&s.push("scaleY(".concat(i,")"));var a=s.length?s.join(" "):"none";return{WebkitTransform:a,msTransform:a,transform:a}}var Le=l.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(l.navigator.userAgent);function Re(e,t,n){var i=document.createElement("img");if(e.naturalWidth&&!Le)return n(e.naturalWidth,e.naturalHeight),i;var o=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),Le||o.removeChild(i)},he(t.inheritedAttributes,(function(t){var n=e.getAttribute(t);null!==n&&i.setAttribute(t,n)})),i.src=e.src,Le||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i)),i}function qe(e){switch(e){case 2:return C;case 3:return _;case 4:return k;default:return""}}function Me(e,n){var i=e.pageX,o=e.pageY,r={endX:i,endY:o};return n?r:t({timeStamp:Date.now(),startX:i,startY:o},r)}function Pe(e){var t=0,n=0,i=0;return he(e,(function(e){var o=e.startX,r=e.startY;t+=o,n+=r,i+=1})),{pageX:t/=i,pageY:n/=i}}var Ne={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=fe({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&ge(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,i=this.list,o=[];i.innerHTML="",he(this.images,(function(t,r){var s=t.src,a=t.alt||function(e){return oe(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(s),l=e.getImageURL(t);if(s||l){var c=document.createElement("li"),u=document.createElement("img");he(n.inheritedAttributes,(function(e){var n=t.getAttribute(e);null!==n&&u.setAttribute(e,n)})),u.src=s||l,u.alt=a,u.setAttribute("data-original-url",l||s),c.setAttribute("data-index",r),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),n.keyboard&&c.setAttribute("tabindex",0),c.appendChild(u),i.appendChild(c),o.push(c)}})),this.items=o,he(o,(function(t){var i,o,r=t.firstElementChild;Ce(r,"filled",!0),n.loading&&ve(t,E),Ee(r,I,i=function(i){Ae(r,D,o),n.loading&&ye(t,E),e.loadImage(i)},{once:!0}),Ee(r,D,o=function(){Ae(r,I,i),n.loading&&ye(t,E)},{once:!0})})),n.transition&&Ee(t,V,(function(){ve(i,L)}),{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,i=parseInt(window.getComputedStyle(n||t).marginLeft,10),o=t.offsetWidth,r=o+i;ge(this.list,fe({width:r*this.length-i},$e({translateX:(this.viewerData.width-o)/2-r*e})))}},resetList:function(){var e=this.list;e.innerHTML="",ye(e,L),ge(e,$e({translateX:0}))},initImage:function(e){var t,n=this,i=this.options,o=this.image,r=this.viewerData,s=this.footer.offsetHeight,a=r.width,l=Math.max(r.height-s,s),c=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Re(o,i,(function(t,o){var r=t/o,s=a,u=l;n.imageInitializing=!1,l*r>a?u=a/r:s=l*r,s=Math.min(.9*s,t),u=Math.min(.9*u,o);var d=(a-s)/2,h=(l-u)/2,f={left:d,top:h,x:d,y:h,width:s,height:u,oldRatio:1,ratio:s/t,aspectRatio:r,naturalWidth:t,naturalHeight:o},p=fe({},f);i.rotatable&&(f.rotate=c.rotate||0,p.rotate=0),i.scalable&&(f.scaleX=c.scaleX||1,f.scaleY=c.scaleY||1,p.scaleX=1,p.scaleY=1),n.imageData=f,n.initialImageData=p,e&&e()}))},renderImage:function(e){var t=this,n=this.image,i=this.imageData;if(ge(n,fe({width:i.width,height:i.height,marginLeft:i.x,marginTop:i.y},$e(i))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&be(n,L)){var o=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Ae(n,z,o)}},Ee(n,z,o,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},Ie={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;Ee(t,R,this.onClick=this.click.bind(this)),Ee(t,M,this.onDragStart=this.dragstart.bind(this)),Ee(n,j,this.onPointerDown=this.pointerdown.bind(this)),Ee(i,F,this.onPointerMove=this.pointermove.bind(this)),Ee(i,B,this.onPointerUp=this.pointerup.bind(this)),Ee(i,N,this.onKeyDown=this.keydown.bind(this)),Ee(window,"resize",this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Ee(t,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&Ee(n,q,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;Ae(t,R,this.onClick),Ae(t,M,this.onDragStart),Ae(n,j,this.onPointerDown),Ae(i,F,this.onPointerMove),Ae(i,B,this.onPointerUp),Ae(i,N,this.onKeyDown),Ae(window,"resize",this.onResize),e.zoomable&&e.zoomOnWheel&&Ae(t,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Ae(n,q,this.onDblclick)}},De={click:function(e){var t=this.options,n=this.imageData,i=e.target,o=_e(i,te);switch(o||"img"!==i.localName||"li"!==i.parentElement.localName||(o=_e(i=i.parentElement,te)),c&&e.isTrusted&&i===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(_e(i,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(c&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,i=this.image,o=this.index,r=this.viewerData;ye(i,A),n.loading&&ye(this.canvas,E),i.style.cssText="height:0;"+"margin-left:".concat(r.width/2,"px;")+"margin-top:".concat(r.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage((function(){we(i,O,n.movable),we(i,L,n.transition),e.renderImage((function(){e.viewed=!0,e.viewing=!1,de(n.viewed)&&Ee(t,V,n.viewed,{once:!0}),Oe(t,V,{originalImage:e.images[o],index:o,image:i},{cancelable:!1})}))}))},loadImage:function(e){var t=e.target,n=t.parentNode,i=n.offsetWidth||30,o=n.offsetHeight||50,r=!!_e(t,"filled");Re(t,this.options,(function(e,n){var s=e/n,a=i,l=o;o*s>i?r?a=o*s:l=i/s:r?l=i/s:a=o*s,ge(t,fe({width:a,height:l},$e({translateX:(i-a)/2,translateY:(o-l)/2})))}))},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;switch(n){case 13:this.viewer.contains(e.target)&&this.click(e)}if(this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,i=e.buttons,o=e.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(se(i)&&1!==i||se(o)&&0!==o||e.ctrlKey))){e.preventDefault(),e.changedTouches?he(e.changedTouches,(function(e){n[e.identifier]=Me(e)})):n[e.pointerId||0]=Me(e);var r=!!t.movable&&h;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?r=p:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(r=f),!t.transition||r!==h&&r!==p||ye(this.image,L),this.action=r}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?he(e.changedTouches,(function(e){fe(t[e.identifier]||{},Me(e,!0))})):fe(t[e.pointerId||0]||{},Me(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,i=this.options,o=this.action,r=this.pointers;e.changedTouches?he(e.changedTouches,(function(e){t=r[e.identifier],delete r[e.identifier]})):(t=r[e.pointerId||0],delete r[e.pointerId||0]),o&&(e.preventDefault(),!i.transition||o!==h&&o!==p||ve(this.image,L),this.action=!1,c&&o!==p&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){Oe(n.image,q,{originalEvent:e})}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){n.imageClicked=!1}),500)):(this.imageClicked=!1,i.backdrop&&"static"!==i.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){Oe(n.canvas,R,{originalEvent:e})}),50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();he(this.player.getElementsByTagName("img"),(function(t){Ee(t,I,e.loadImage.bind(e),{once:!0}),Oe(t,I)}))}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50);var n=Number(this.options.zoomRatio)||.1,i=1;e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),this.zoom(-i*n,!0,e)}}},je={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(de(n.show)&&Ee(t,W,n.show,{once:!0}),!1===Oe(t,W)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(ye(i,x),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("aria-hidden"),n.transition&&!e){var o=this.shown.bind(this);this.transitioning={abort:function(){Ae(i,z,o),ye(i,S)}},ve(i,L),i.initialOffsetWidth=i.offsetWidth,Ee(i,z,o,{once:!0}),ve(i,S)}else ve(i,S),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,i=this.options;if(i.inline||this.hiding||!this.isShown&&!this.showing)return this;if(de(i.hide)&&Ee(n,H,i.hide,{once:!0}),!1===Oe(n,H))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,r=this.image,s=function(){ye(o,S),e.hidden()};if(i.transition&&!t){var a=function t(n){n&&n.target===o&&(Ae(o,z,t),e.hidden())},l=function(){be(o,L)?(Ee(o,z,a),ye(o,S)):s()};this.transitioning={abort:function(){e.viewed&&be(r,L)?Ae(r,z,l):be(o,L)&&Ae(o,z,a)}},this.viewed&&be(r,L)?(Ee(r,z,l,{once:!0}),this.zoomTo(0,!1,null,!0)):l()}else s();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,i=this.options,o=this.title,r=this.canvas,s=this.items[t],a=s.querySelector("img"),l=_e(a,"originalUrl"),c=a.getAttribute("alt"),u=document.createElement("img");if(he(i.inheritedAttributes,(function(e){var t=a.getAttribute(e);null!==t&&u.setAttribute(e,t)})),u.src=l,u.alt=c,de(i.view)&&Ee(n,U,i.view,{once:!0}),!1===Oe(n,U,{originalImage:this.images[t],index:t,image:u})||!this.isShown||this.hiding||this.played)return this;var d=this.items[this.index];d&&(ye(d,g),d.removeAttribute("aria-selected")),ve(s,g),s.setAttribute("aria-selected",!0),i.focus&&s.focus(),this.image=u,this.viewed=!1,this.index=t,this.imageData={},ve(u,A),i.loading&&ve(r,E),r.innerHTML="",r.appendChild(u),this.renderList(),o.innerHTML="";var h,f,p=function(){var t=e.imageData,n=Array.isArray(i.title)?i.title[1]:i.title;o.innerHTML=me(de(n)?n.call(e,u,t):"".concat(c," (").concat(t.naturalWidth," × ").concat(t.naturalHeight,")"))};return Ee(n,V,p,{once:!0}),this.viewing={abort:function(){Ae(n,V,p),u.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(u.src="",Ae(u,I,h),e.timeout&&clearTimeout(e.timeout))}},u.complete?this.load():(Ee(u,I,h=function(){Ae(u,D,f),e.load()},{once:!0}),Ee(u,D,f=function(){Ae(u,I,h),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),ye(u,A),i.loading&&ye(e.canvas,E)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){ye(u,A),e.timeout=!1}),1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(ae(e)?e:n.x+Number(e),ae(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.element,r=this.options,s=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&r.movable){var a=s.x,l=s.y,c=!1;if(se(e)?c=!0:e=a,se(n)?c=!0:n=l,c){if(de(r.move)&&Ee(o,K,r.move,{once:!0}),!1===Oe(o,K,{x:e,y:n,oldX:a,oldY:l,originalEvent:i}))return this;s.x=e,s.y=n,s.left=e,s.top=n,this.moving=!0,this.renderImage((function(){t.moving=!1,de(r.moved)&&Ee(o,G,r.moved,{once:!0}),Oe(o,G,{x:e,y:n,oldX:a,oldY:l,originalEvent:i},{cancelable:!1})}))}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,i=this.options,o=this.imageData;if(se(e=Number(e))&&this.viewed&&!this.played&&i.rotatable){var r=o.rotate;if(de(i.rotate)&&Ee(n,"rotate",i.rotate,{once:!0}),!1===Oe(n,"rotate",{degree:e,oldDegree:r}))return this;o.rotate=e,this.rotating=!0,this.renderImage((function(){t.rotating=!1,de(i.rotated)&&Ee(n,Y,i.rotated,{once:!0}),Oe(n,Y,{degree:e,oldDegree:r},{cancelable:!1})}))}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.element,o=this.options,r=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.scalable){var s=r.scaleX,a=r.scaleY,l=!1;if(se(e)?l=!0:e=s,se(n)?l=!0:n=a,l){if(de(o.scale)&&Ee(i,X,o.scale,{once:!0}),!1===Oe(i,X,{scaleX:e,scaleY:n,oldScaleX:s,oldScaleY:a}))return this;r.scaleX=e,r.scaleY=n,this.scaling=!0,this.renderImage((function(){t.scaling=!1,de(o.scaled)&&Ee(i,Z,o.scaled,{once:!0}),Oe(i,Z,{scaleX:e,scaleY:n,oldScaleX:s,oldScaleY:a},{cancelable:!1})}))}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,n),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.element,s=this.options,a=this.pointers,l=this.imageData,c=l.x,u=l.y,d=l.width,h=l.height,f=l.naturalWidth,p=l.naturalHeight;if(se(e=Math.max(0,e))&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var g=Math.max(.01,s.minZoomRatio),m=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,g),m)}if(i)switch(i.type){case"wheel":s.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var b=f*e,v=p*e,y=b-d,w=v-h,x=l.ratio;if(de(s.zoom)&&Ee(r,J,s.zoom,{once:!0}),!1===Oe(r,J,{ratio:e,oldRatio:x,originalEvent:i}))return this;if(this.zooming=!0,i){var k=Te(this.viewer),_=a&&Object.keys(a).length>0?Pe(a):{pageX:i.pageX,pageY:i.pageY};l.x-=y*((_.pageX-k.left-c)/d),l.y-=w*((_.pageY-k.top-u)/h)}else l.x-=y/2,l.y-=w/2;l.left=l.x,l.top=l.y,l.width=b,l.height=v,l.oldRatio=x,l.ratio=e,this.renderImage((function(){t.zooming=!1,de(s.zoomed)&&Ee(r,Q,s.zoomed,{once:!0}),Oe(r,Q,{ratio:e,oldRatio:x,originalEvent:i},{cancelable:!1})})),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,i=this.options;if(de(i.play)&&Ee(n,ee,i.play,{once:!0}),!1===Oe(n,ee))return this;var o=this.player,r=this.loadImage.bind(this),s=[],a=0,l=0;if(this.played=!0,this.onLoadWhenPlay=r,t&&this.requestFullscreen(t),ve(o,$),he(this.items,(function(e,t){var n=e.querySelector("img"),c=document.createElement("img");c.src=_e(n,"originalUrl"),c.alt=n.getAttribute("alt"),c.referrerPolicy=n.referrerPolicy,a+=1,ve(c,b),we(c,L,i.transition),be(e,g)&&(ve(c,S),l=t),s.push(c),Ee(c,I,r,{once:!0}),o.appendChild(c)})),se(i.interval)&&i.interval>0){var c=function t(){e.playing=setTimeout((function(){ye(s[l],S),ve(s[l=(l+=1)<a?l:0],S),t()}),i.interval)};a>1&&c()}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(de(n.stop)&&Ee(t,"stop",n.stop,{once:!0}),!1===Oe(t,"stop"))return this;var i=this.player;return this.played=!1,clearTimeout(this.playing),he(i.getElementsByTagName("img"),(function(t){Ae(t,I,e.onLoadWhenPlay)})),ye(i,$),i.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,i=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),ve(this.button,w),t.transition&&(ye(o,L),this.viewed&&ye(i,L)),ve(n,v),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),ge(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=fe({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){ve(i,L),ve(o,L)}),0)}))}))),this},exit:function(){var e=this,t=this.options,n=this.viewer,i=this.image,o=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),ye(this.button,w),t.transition&&(ye(o,L),this.viewed&&ye(i,L)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),ye(n,v),ge(n,{zIndex:t.zIndexInline}),this.viewerData=fe({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){ve(i,L),ve(o,L)}),0)}))})),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,i=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*i.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&Oe(n,z),ve(n,$),ve(n,b),ve(n,L),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,ve(n,S)):(ve(n,$),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){t.transition?(Ee(n,z,(function(){ye(n,$),ye(n,b),ye(n,L),n.setAttribute("aria-hidden",!0),e.fading=!1}),{once:!0}),ye(n,S),e.fading=!0):(ye(n,$),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1}),1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,e):this.zoomTo(1,!0,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=fe({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,i=this.isImg;if(i&&!t.parentNode)return this.destroy();var o=[];if(he(i?[t]:t.querySelectorAll("img"),(function(t){de(n.filter)?n.filter.call(e,t)&&o.push(t):e.getImageURL(t)&&o.push(t)})),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var r=[];if(he(this.items,(function(e,t){var n=e.querySelector("img"),i=o[t];i&&n&&i.src===n.src&&i.alt===n.alt||r.push(t)})),ge(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=r.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var a=this.items[this.index];ve(a,g),a.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[d]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||Ae(e,R,this.onStart),e[d]=void 0,this):this}},Fe={getImageURL:function(e){var t=this.options.url;return t=oe(t)?e.getAttribute(t):de(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Ee(document,P,this.onFocusin=function(t){var n=e.viewer,i=t.target;if(i!==document&&i!==n&&!n.contains(i)){for(;i;){if(null!==i.getAttribute("tabindex")||"true"===i.getAttribute("aria-modal"))return;i=i.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Ae(document,P,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;ve(e,T),e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px")},close:function(){var e=this.body;ye(e,T),e.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),de(t.shown)&&Ee(e,"shown",t.shown,{once:!0}),!1!==Oe(e,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),ve(n,x),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(de(t.hidden)&&Ee(e,"hidden",t.hidden,{once:!0}),Oe(e,"hidden",null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?ue(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,i=this.pointers,o=i[Object.keys(i)[0]];if(o){var r=o.endX-o.startX,s=o.endY-o.startY;switch(this.action){case h:this.move(r,s,e);break;case p:this.zoom(function(e){var n=t({},e),i=[];return he(e,(function(e,t){delete n[t],he(n,(function(t){var n=Math.abs(e.startX-t.startX),o=Math.abs(e.startY-t.startY),r=Math.abs(e.endX-t.endX),s=Math.abs(e.endY-t.endY),a=Math.sqrt(n*n+o*o),l=(Math.sqrt(r*r+s*s)-a)/a;i.push(l)}))})),i.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),i[0]}(i),!1,e);break;case f:this.action="switched";var a=Math.abs(r);a>1&&a>Math.abs(s)&&(this.pointers={},r>1?this.prev(n.loop):r<-1&&this.next(n.loop))}he(i,(function(e){e.startX=e.endX,e.startY=e.endY}))}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},Be=l.Viewer,ze=function(e){return function(){return e+=1}}(-1),We=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=fe({},s,ue(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.id=ze(),this.init()}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[d]){t[d]=this,n.focus&&!n.keyboard&&(n.focus=!1);var i="img"===t.localName,o=[];if(he(i?[t]:t.querySelectorAll("img"),(function(t){de(n.filter)?n.filter.call(e,t)&&o.push(t):e.getImageURL(t)&&o.push(t)})),this.isImg=i,this.length=o.length,this.images=o,this.initBody(),ae(document.createElement(d).style.transition)&&(n.transition=!1),n.inline){var r=0,s=function(){var t;(r+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout((function(){e.delaying=!1,e.build()}),0))};this.initializing={abort:function(){he(o,(function(e){e.complete||(Ae(e,I,s),Ae(e,D,s))}))}},he(o,(function(e){var t,n;e.complete?s():(Ee(e,I,t=function(){Ae(e,D,n),s()},{once:!0}),Ee(e,D,n=function(){Ae(e,I,t),s()},{once:!0}))}))}else Ee(t,R,this.onStart=function(t){var i=t.target;"img"!==i.localName||de(n.filter)&&!n.filter.call(e,i)||e.view(e.images.indexOf(i))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var o=i.querySelector(".".concat(d,"-container")),r=o.querySelector(".".concat(d,"-title")),s=o.querySelector(".".concat(d,"-toolbar")),a=o.querySelector(".".concat(d,"-navbar")),l=o.querySelector(".".concat(d,"-button")),c=o.querySelector(".".concat(d,"-canvas"));if(this.parent=n,this.viewer=o,this.title=r,this.toolbar=s,this.navbar=a,this.button=l,this.canvas=c,this.footer=o.querySelector(".".concat(d,"-footer")),this.tooltipBox=o.querySelector(".".concat(d,"-tooltip")),this.player=o.querySelector(".".concat(d,"-player")),this.list=o.querySelector(".".concat(d,"-list")),o.id="".concat(d).concat(this.id),r.id="".concat(d,"Title").concat(this.id),ve(r,t.title?qe(Array.isArray(t.title)?t.title[0]:t.title):x),ve(a,t.navbar?qe(t.navbar):x),we(l,x,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(ve(o,"".concat(d,"-backdrop")),t.inline||"static"===t.backdrop||Ce(c,te,"hide")),oe(t.className)&&t.className&&t.className.split(ne).forEach((function(e){ve(o,e)})),t.toolbar){var u=document.createElement("ul"),h=ue(t.toolbar),f=ie.slice(0,3),p=ie.slice(7,9),g=ie.slice(9);h||ve(s,qe(t.toolbar)),he(h?t.toolbar:ie,(function(e,n){var i=h&&ue(e),o=h?ke(n):e,r=i&&!ae(e.show)?e.show:e;if(r&&(t.zoomable||-1===f.indexOf(o))&&(t.rotatable||-1===p.indexOf(o))&&(t.scalable||-1===g.indexOf(o))){var s=i&&!ae(e.size)?e.size:e,a=i&&!ae(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),ve(l,"".concat(d,"-").concat(o)),de(a)||Ce(l,te,o),se(r)&&ve(l,qe(r)),-1!==["small","large"].indexOf(s)?ve(l,"".concat(d,"-").concat(s)):"play"===o&&ve(l,"".concat(d,"-large")),de(a)&&Ee(l,R,a),u.appendChild(l)}})),s.appendChild(u)}else ve(s,x);if(!t.rotatable){var w=s.querySelectorAll('li[class*="rotate"]');ve(w,A),he(w,(function(e){s.appendChild(e)}))}if(t.inline)ve(l,y),ge(o,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&ge(n,{position:"relative"}),n.insertBefore(o,e.nextSibling);else{ve(l,m),ve(o,v),ve(o,b),ve(o,x),ge(o,{zIndex:t.zIndex});var k=t.container;oe(k)&&(k=e.ownerDocument.querySelector(k)),k||(k=this.body),k.appendChild(o)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,de(t.ready)&&Ee(e,"ready",t.ready,{once:!0}),!1!==Oe(e,"ready")?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=Be,e}},{key:"setDefaults",value:function(e){fe(s,ue(e)&&e)}}]),e}();return fe(We.prototype,Ne,Ie,De,je,Fe),We}()},function(e,t,n){e.exports=n(69)},function(e,t,n){var i=n(30);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("476027dc",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".input-prefix[data-v-75b078fd]{height:100%;width:32px;display:flex;align-items:center}.input-prefix .icon[data-v-75b078fd]{font-size:20px}.th-icons[data-v-75b078fd]{height:300px;overflow-y:scroll}.th-icons .icon[data-v-75b078fd]{padding:8px;font-size:20px;border-radius:2px}.th-icons .icon[data-v-75b078fd]:hover{cursor:pointer;background-color:#f2f2f2}",""])},function(e,t,n){var i=n(32);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("09aacafa",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".th-table[data-v-1e3490b7]{position:relative;width:100%;height:100%}.th-table .pagination[data-v-1e3490b7]{margin-top:20px}.th-table-more[data-v-1e3490b7]{position:absolute;top:13px;right:5px;cursor:pointer}",""])},function(e,t,n){var i=n(34);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("324f55d7",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"",""])},function(e,t,n){var i=n(36);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("781e9c5b",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".th-table-action{width:100%;display:flex;align-items:center;justify-content:space-around}.th-table-action .el-button+.el-button{margin-left:0}",""])},function(e,t,n){var i=n(38);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("65183b9c",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".th-table-search[data-v-6f4a7eee]{display:flex;align-items:center;margin-bottom:20px}.th-table-search-item[data-v-6f4a7eee]{display:inline-block;margin-right:15px}.th-table-search .th-table-search-item[data-v-6f4a7eee]:last-child{margin-right:20px!important}",""])},function(e,t,n){var i=n(40);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("211c7a61",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".th-tools[data-v-70577611]{margin-bottom:10px}",""])},function(e,t,n){var i=n(42);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("c8882398",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}",""])},function(e,t,n){var i=n(44);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("1c240924",i,!0,{})},function(e,t,n){var i=n(45);(e.exports=n(1)(!1)).push([e.i,"@font-face{font-family:iconfont;src:url("+i(n(11))+");src:url("+i(n(11))+'#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABlcAAsAAAAAMDwAABkOAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCJFArIVLl8ATYCJAOBMAtaAAQgBYRtB4QCG8AnVUaFjQMg2+y7Rfb/pwQ6BuxA7iBlEYIxqKczB65GG3ai5V7ElKxVhy+NIEABir8I8UH3RxYXH+mlvKSMc/6Jl82ecNJy1hzjwk52T5ybUIDThlLy8P/7fdv3yf/v24h5Yk1CJUHCM4lEJHmmZNIQGiFZ9XjG4+Q3PD+3/3N3t3GX9y4IHbExGMPaHCMHvVEiPUYtMIaIYA/tEWWiTSnvCwYqRn5pI6cigoXIsAJndQC0+f/5wCOd1m4sOZ9Z4b0gjN0TdFjd3e9KAWQ3Uiu1ZDtITwB2sj81v9lOa8PCsNiXX+pa2ljXPBkEyMHIX4hrbX4+nh7FidYoe3AH5/S3mz0AOlLmu0XhkGxnk+KBuiUZUuFuBA/47472CUMP4kxzfcdaUjsj4O+npVRyLcxm1+T62Hm4nTI8jOl9bXv6kk//+pfcdjdltVd1bqu02lDGKOnS7bn0XXel1AYdQA5lgsNQKA0KgCCQNueXY3JpQgGV2WNs/nuwauZAm7LibfaPPDIJbXN2pJtfY5IBonAzE2zxkrKzAOLpUEjmJ9XqBmefBQWqUqqyysyE+ET/+HSMzqUKyJQ5uB3VgxeKaSA4wCF3b2rneV7oTXoSm32RYwcF2RtuMb0+gC3aobzN+2EWKfYAOG9BYSpAEMlMPBNJ+QsWSiFDlhnyLVckdOBN7/l3f/i5tffDwfVzawUIApGOSxRvcuBEzWlZNsHpqrjJ5Py99UVXyYWLnhw7Mfm0pPyvecCAQV1TRsybkOvZNGdSYUtLZtiyMaUlDUO2jdqwqs+6fjM6Zi0YlzStaJu2qLJGagDYvAvZCO7fJgABBggCMEgQgS5BA6YIOjBCoMA8YQ1MEDZATtgCPYILbBI8YI4QAZOEGCiIicAWIQVahD+QEYHAMBEELBPBwBgRCpSEAlgiMoAGoQGGCK3RNpYOgFEiC9ggZgCrRD7QRywD1onlQD9RBMwQW4AOsROYJQ4CC8RRYJy4BST2WUCT/Vxghf12oM3+eWCag1BgkUMnoaIWF/qtYSLaK48BP4HOHn2f3cwU5N7jxpVSxvDDT01EvDMP4xC2JXjLCVvCY48E8FImUamEIBuaYjmiZ8FmacxzdKUol+LER6Rirj2ZAEdXlEW7gTlJSnAiIRpwVVWKUfX1eA5qa9lsaxouzyW1KXHXI8dblJZAL1V4tGrGrNnUIkEo5jQFo0tYKDcwDCrERQpwqozFIrSguomJ6QOjMWB4ipCvhtJ7aUpowi63DHAxxvJPJBwoQuFTVr1CWExySTPRVEKNW09zM4ZCyrJjPYrAggCgZHOYilJz0PqJ6g7U50ismLFQ3Y0yV+98gwqtG8GP9fNT7Z2jvNTkFJPzywmWpxtRqPrarnsY8RXTZjTQdHZIpzjxtzxEwuBO1hj2frcUj2DeDTWpTRjhjWjbQ86Vf+NeE5Z0TuHU5RhqlIXAsKIXcyQ2NRoEzJ54kIXP2++UbNpWdIVdB8CzEABAwTtdiuj/QzzB8yKFKYmXB6GT9EABSQ1PjA6nNjHbkrbVTTmljI1p4yP6qDHSHEjGeNrlidivtySKpzpmegNgPLFVNgdiRX98CxwbVVBbTbsU1KaljOVHsCtnGwAIOJBU+Nqw95SGbsi47ErVvdS8QjbndMiK12vcD++fovrdpZQskwJISYiGFxC6LWTyWbLJi1g4RcWcg3URj4gPaSXEhMSGmzXAQ0PCOboionsdFTz7Pd5+nk3c8MCHX3HhKE3jJvshtSfijP4gfNOodZ+NWgMEkUGd9diHdgUy9nzSqcT7zhOAycduFT5wF3hyz3587x63ypUQEJtPoh0C7vSxc+lduzfApoh+T8INEU8yhDMiDRBlj1uWyDqNwqlVXJCxGwgGjyzgtLQgeARrI0ojS0QRW0qhuirzUi/sJAggiSNbyrlTyu+4TeKZXeIAL8IRgfoSapndEDWETgCe7MamH0pNEpC4Jk5FGAl9VfYL0lY/xA9iV/FDHZ2nE99aXReJHzK5JQTS1gYC4wSMcEFIxCIKQGeIIS04wPa6eHvsf9puYHkdDbmsk+/6joKNKIKxFoUJglJG52ogIym24T5ekQoEm5vZgAg/vyv49U4VKSniR94AOF/4ZcbpM6qn51nDFXGf7/peGbzwm4RcLP46ezTjaGcXO9jlsZ/twCa5iL0F4C39Nuf2u/3+/UxrDpv86baOwnn0bUL85d/nT+Zc4+Isg4w05pMtbV5mUfaHYwUnVLHMrDIJJY2m73KH5i+7+/bt27yVdWc7T5ZDj9WkbJPfgvWwyjhBRCzQnGzb+s92zrtrvpcrz/uU5WFZoYeWUj7o2HN7XU/11L8Tv99b5IaI2g1O4AxPyYH+gcd+4qVbAdKUrcTAV8zzZxGll/PU55/xrDvm4T+g+oipzmzni586Xr6eKxptR0WE7ppv1flLQlD4UhbHmu6mbvdv82tld768EhTAZGPUupa+cFpYaBJ/fOLmpTUr2VKaPnfEFHIOR8Yf88WOBZLnYN51iezbqEBI2BLXlpAlF9fdFmyw8DTXgG9sMCBmjxUZ5ogdmzobCjWNdoWqNuwPMmsMLAxZNJi0ygPUju+ynVygJChtmJE0wChxJHkAjsMiOOaFe37KIIR+7EZeYJnjowWWKpDrLL/sreNy2Nel3NJdZdk11A1HrN8Xd8PDHu2b2XH9L4/azdxjrAGtExjT+6rz4H9119hZ1dPWM8YXbhcl820+4RbivXGhI2OS+APfqveE92C4QvS2kH012KgnSpT7a/SKrW95ooHTr5J32bjcnXKKEHBwg7payU0wzhILAgVC/NDAWtOleCdFpTLZGYfBU8ZyIG39/GwYR2Q+dkeP+v28UHhiTGY+BQJMzCUERMkSEaJGnYzogHIdX59UCzdHlfYe0nhsLL4/Tijif8Kg3B0A/J7WIiBQGzr/JLm82EEgzbIFFSt4EnSREc4VtkjZJFnPYskrfvUW5k9EhPwja7hDmlKf0hTLZqOu2mPflN2f3/fZTFMw3YlBlFxx2JvuH732gjSE8XtMIf7sKhyPi/ZkL2bLNrcd0no0g7aIh0UO79ek4DUAgr5IqMd3qNsa/FzGvGsQ5pu1mZ4SRuCMkIh+srcmi94bsiibl7KiTYAAE1+ZeMoBJKSgldCOfdZZqJhYLAAPGOfym3YsAyQaBaHvJXXNvXpcBf2ACr+gRpaSkIvihZ4P/TeuYRmgsjGRTa5880UAA7aT4MmiA5GhIekp6p54xLW7FLiPSuEvAILAiQIPC0ueV33GfEpWPC46AaFQz0ZRekHZPYZ3Dii2CQd2T2xg11jsgGsYWz310QSAgDBjHAiaF96PV9vPyUxqCRSoiB3sfaSTIGq2X6rE7lAUMM7DyiLVtuzjpbT44Wg46Po1PTOC0q+X9Vd4rwQ5Kto+ULy3QfaWtKtfj0XvGBNkjPhlcbY7zkZG46oA4DnhJ9V+KhzNlIQXYFVSOSH6x/YBYc2JYw/OcgxWpiuzqw+NtCt3X6NvEdwFK1STP9WUklSHx22mpFseMbqFznT6s/2ymbeF76ebU5nX+uBU7E7dJJ+wRnjfupaaaecalX4Qb2FXI3S36W0n5H7YdhxBX8/Dy3gFs86lemofJFst++M2x2aZpicbhW81sFjnws7lAKfy23PIWXgjgu9YRwyRJKTYx5GfNNB0OhWz5Jb1DdjGuhgrZiIaoGy6JCbcBEeyIQSdUyWmVb/CtmNdQWi56cz1OuB71glqv9vLVPjsL4hABjeIWMDu35fTxKf7c53IfwTPrd5O2CLkpC0jhL04IuIEFxM1SrY8aUaoPDGK/LtRtIUY/y25LCnPIYoTFwR46OdNuRrvRHI0e4dU9Sn206u4OLuQNGywRaJsicW/EseyZWnsMNZOafLf2M+f92aQ4cA0ZZ/k3UjwPSyyJ2xTBIyo2P4jsX2NdaIW8YUTFvT405zpVlXj6p9u3lFYLZCJuXrWdtaLoTOR2ys9xyouuF/7AvZe2JbpdXr5G8MjVX1tfZ3qkaGxUULiz1qgsnNf+T4VcTc56f29fJJz261hMLuuvq4uG1w+mcdfyP9NovMGoqLyJTUeDyV7pflfDfxZAJr1d8MDl40ukVER0IOok353B6KAVJddZChq/9HubpBt+Mkrru0x+AFpvH8pEpZVItqVscRqk9IwiiCXe1z7VOA9wsM9gE5nUqIKMkmBhylNclRhzv0MKdBJGX1m24tZvlmzbJm3bMFSeaktGVUOxYBZiSa3RQyBV/LykBrkFEnThU/ykWqdNARdevOQZuQkpOHWXDq0fZfb+cg+btc+BN0av1d6a/yO+LfGv53DtT3VDka25wkUAkDS9GMGXoXhu1oar1714HiIE8qA5LfHb0/GeSIaBO/zDJ3mESyRi5vxMszqWbLXhYda7wfYR6EC4cNhi53l8Acqg56nBo4ODPVhyygLZWU/w8GB0c/ftdTy/tr+A3fuDMFK5ghPCf/5TkD+a2IF67dcsmvsuF19d1sh04gJa42IWLqUYUckGhvAixfxGboMmTDMBF3Geas7oGEvhfHCPVqdCYBeLHBNTHmsS0NYAU/vrOcVVDFdHQmM19viFYCVK7k0HGpEgcyl4szc4OAGD7KO7NHQtQ4EN1C5f/MhLTbUUP3SoQQCgY6S827c2PSeFXAW02iLA2UbNsiAT49QaKlGm9Bqi9ZcjZJama0kGoOmpTPoTaRdaPQxDhmP6kkqANMRC8RRnwriKSdl59oOxilhZQqNSe+wvKj1jEjESIsfSzR8DK1e4kRqJfus5+tIbaSLovg4H0tHB+mxHM2YhDJkenp6CqOVsY7RM0ydALnGSMkIcBMkAl6WpTkzA/bsCQCTHexN4N7nLwFE4jjGEoxAZNeIM2s9e86/rDx2u+/Q6tJS/+7u1d7eVr23ev19LXHgjEd/fXhxCxbIqv/zO+x5GKBJ+kwbdqj12p4WLd3Hh3o8dWEvJRra3G63CcbPDZ9m3jHDymrWY2rQyo11PTOetb6mY5RpW9o6dXNP13Q6GPAurROUxjPotcrlSILNC5XnjFOfDzodTJhVz62v778NuLDuGp5Ox1fuWkfIOhXUc7n74OFhmNy+hpDFZdS6SUvsPu8iw448sYSfeDDnxak/B8Eo7sXpkwWJ/iSl68OG2nauVkkbcNJdFMTMdI1Zf+YeOiXTeFP/31Dr8pCuTPGfLGibrloV+ITxkXhnwkY8S0fDBKa0K40GRBL5tLLiDH6TIDlUnhTi6Z4VHBwSK7FIgx9QwTdIF6Cua4x26AmeHb5QtygmIYtYOMVbmY2FhjIZ1zQGbxqEq0Vy1MiQ8DBoIgNAXqfxX77Ap+V8+fzqyM+f8a9df/5C2STcie+7DTfAO/v6dsLoE5+ffkPfbU2hlsH2gMYr4xoCwsbFEcIi8UmQtSanzFW3BF5CJOcRw1djUj8peKIOCKis5U2QT2AevFCxiDT6Q3Y280QNixe87+GGheF6cLRxrecGmyI4gNNDIsD7xeaZ0Jq1uBzp8xYzIVfFPbMWt2IFpAk9bq7FocqcwT0gXKMOh0Kq1dCLq51vqUYNfjcRE39XEMqeF4uCmDc699d/dOGV/Fluzpv/15n/cW3rQMc4uv/TLtJZq8QHBrcRh+2t//vqeCtz2sC8gdzun/aHG6vHe70Znh8KPDceOGqMiUGikWozWtsZdRP6pySxfz/p3siFg7XscNrRUkq3p4zY3teVkDl2OQbz9PHsiLvbBL2t9y33rvS2yc7JybZhSct9699Cm3SRLeXlLZFEeFoB1LFyQt64/HHDScnJScNGLXkTVnZABXDjg/uNK9pwYmWqZIr11aa3RgdoJFrpt5iuN6vWzjfqCzJUlUcPoYv9KoNL/RaBZYg8UZ5EIsfKjsMWE1wL11gu89uVxFDepgrXS+jJwDGcIxeOZZn7S87vtOr6yoe3WK6c+KsGzbIQWaiPS7SLInUsc7KtiyTYMcS72a8V7PcP8Qv1idqqgkJPdNkMjt3C0ilpU6pa8fpy70wgOybTYGFMhBmGaYj/tXIICNF2j2AyJmfEMuXMyRCIZcgrizWMrOD5NQw5ZJUg3yaQMDrqkmIN8WjzWDzClDP0ng3ZP3eRWwpxQFjX4tfytkXWUkEqwMU09YCT03I7Axpi1L5qboqTb6BvkNFrCDwsCgJhmOg5rL/4zq5OPLwyMCAQmFSLyIPsQbJ5fXCnO/ysTOH0lhePnl0uxV3SeXTF5XPkVset5HNMQTCVwa5mm4gPC8XCQuhYLlfqks8DWh48CcDLqOuxO8Lg2PWrqPyjqf6pGe+Li588GbseypAcMxqPHVOpeABrhsC9pz7g0avHoR7oCJEttVXZ9QMRFXR4c1BE0FFQhYYEYv1Y+U5eeMJI2HlOM+ahzo7OqOnU0HuvxMGZfrqzg6QGOOo/TPOai3JkTfzrCYCvuGjh0yE63+JpTnGczePHUy3U14DqSBG7TgCjp3pEEyuI5Nq+e+8I/Ed4SCCQV16zWLKJGEujxRJ9+Ytr+MjT8vWJTRKBiaCOYgLaliiPxTXOiLNUZxfgqeEbpnAXA1O7xpAFidZYn4oh3MWkcFPnuGmio9UCzwfiM+xT+ncCk+DRksVhTYW6WyGJ05csGXS7Jng3vaxZAakzIQWOWk2vWAw2ZV4x6ADFjZir+YgTiJuFzWJPtSA62k2T46YG4fMut1W1sc+wJcQfzaniLPaozToVI3GyxEQ/iV/lZO+EBJ0K8KwIw7lBWK+A3HBTa6dF5fi/S39RvyvrZHpuGZXkhXKIgdSwfXISMA32shxvVJuh/lmxesepaw5Vxv4Fq7/+Lw8ei/CQOGLq7JObnU7r3V/UTyBYpdu2KpHDh6fQZNO9HZZwK4znrzkYb4472jyp2dWFM5nqR+xZmKsz9CGLqBIETO+2bxTbnuxdWaFr0xRZ+033stWJDquS6HoKGq/i5ZL4lHSg1V4e6ScE83sfa/gevcAcbC6g91DzcsALuGkONUzP/VCXywAv55AODPBcD1WBAcOtI6bjyspwlZsOwsWcYQcSoNxciFxCQ8jiqD+uZP3hIwbWCMuwTkDPegScM8+0t9/6D4zaVSAVS6s7nV1DQ4cepz5/BcBbLMSq8ufTthfQNq8oel4SabZJcJobTPAbKvnq02i7zb96Bgj4cHJ1UMQr3rAuc8ZtUZhoRl+Grvc1zytu9b4meYDwlVTv2JN30eHirTzHFKnbq/GrqlMLAkN43S3pQ2E3qxZud0JswdrKcxx8yjvVkZQj71LwJyaAUoEpeUqsgoF2A6I/Plc/9+zxVNsO2j4nafrln6EKvYTAm59t1SSPP5s5F5yGSUP8Q6N7KFNIV+wcFp7evALKANsSRRFXSeS3FC35YdWGKhNpA+k6WUu5YctPECjXGh+StSSTTu8G8iAvjfyIjDQq4rszkgsDnzA8IqwQhpM0rtdtN2LDbmV/st7PzsI3B5dkJU1k77f+5Jdg5b/b9J4VqGvthaejxiFmmNu4UROc33jMABzfeF4X7Fq8NWLcH3WL+UPYG6r14q4DUL9zB7b2embcS4jrggFSNxiGdUbfXfdgFm/+fZylr9p3OFs20exvHgFcCI2DhmD+0644CYthKfI3uKUDd9yC3fOgA2CvTdt9r79sCN5reArIe7gLoO5UtQN1zsOpaVEWNDbpgNX+dcdgD9xc4zmsnzjQ+GC+wALaX6erI3VgcVmcxj4H4El9u/2AE+pmPiqTqH+lYRP+92MsdP/9Cmct6p/KWUX+ReRhv2omU1Eb0z+Xi0rmtibxfx0XKTMOQP1vzrYZ1LlTHC+DXJ97vFNL12dX78pErIRXCKX/76TwZcDNz9C+34z//1g/5H8d7VFtZlLlSW20TNOslqusqMXkHa3Usas1VK5obdvuVOsY9gosFaS//NsfQUsG7GmZPl+13IBvajH5H5Vgn4LWMJByre1hYtXY2VeQ6DxMEBSdGXeGLGfvbj1nW/7CUBOIO0Mb/qEUOtu8GB79g98wo6Sxm7IOL1W98cKz+WocHabEZhGe0OoQVZePq5XnJRgszwfnYYKg6IxxZ7Ymy9nfu54HTv4vDDWBSC711PofSqFtN14YPGqo33jWutSyhMs6vKRIekMuKDwbX5HEdO9jY+FXm9DqIMbwl49W6Nq8Lh/yt+c+9jho3/aM2cGlaWvv6Oz6Y8K/RXdPb18/g8liW9vY2o0azbF3cHTi8pz5Lq4CN6H7mLHjBO1bmxDkYoM0ErDS67edw4SKjYexPvynHJ45h1ipRK77CLmx7LBVGBPeOtr1bzG+V9wqCMLVnpw27RQPr061mQrny4kSQd5WyHvsXnFPNnHGuw3mKZRKcjLYKAqeecwBt8H8hdblRbtPcGRulGY822AOa4p24WfegOuD9TMnpeXMRrTP/cjbrmxIbTxZyoCJveGW8lL1UsAR92CV1thaTixdSeRQUg09jSDlytfi5EaL53r4CxoHikdkWxUosQ1Crm+cQDgvLLVNoXOeLtd5RGl3oa5gQquXqdC+ATbDfaT+tBjyxdWvcIwYn/ATL7u27LJ90TSiWw4A") format("woff2"),url('+i(n(46))+') format("woff"),url('+i(n(47))+') format("truetype"),url('+i(n(48))+'#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-clear:before{content:"\\E6D1"}.icon-weibiaoti46:before{content:"\\E63C"}.icon-delete:before{content:"\\E616"}.icon-fabu:before{content:"\\E630"}.icon-qingkonghuishouzhan:before{content:"\\E642"}.icon-code:before{content:"\\E65B"}.icon-table:before{content:"\\E713"}.icon-diy-com-textarea:before{content:"\\E91F"}.icon-zidingyishuju:before{content:"\\E634"}.icon-json:before{content:"\\E7BD"}.icon-jilianxuanze:before{content:"\\E695"}.icon-icon_clone:before{content:"\\E606"}.icon-wenjianshangchuan:before{content:"\\E617"}.icon-fengexian:before{content:"\\E66E"}.icon-tupianyulan:before{content:"\\E67D"}.icon-time:before{content:"\\E600"}.icon-icon-test:before{content:"\\E605"}.icon-tupian:before{content:"\\E65E"}.icon-ad-icon-tooltip:before{content:"\\E63E"}.icon-check-box:before{content:"\\E60E"}.icon-switch:before{content:"\\E660"}.icon-pingfen:before{content:"\\E640"}.icon-input:before{content:"\\E6B2"}.icon-radio-active:before{content:"\\E615"}.icon-color:before{content:"\\E62F"}.icon-slider:before{content:"\\E60D"}.icon-icon_bars:before{content:"\\E7C4"}.icon-fuwenbenkuang:before{content:"\\E682"}.icon-date:before{content:"\\E69F"}.icon-ic:before{content:"\\E621"}.icon-trash:before{content:"\\E60F"}.icon-grid-:before{content:"\\E6AD"}.icon-drag:before{content:"\\E842"}.icon-shangchuan:before{content:"\\E645"}.icon-zhage:before{content:"\\E63F"}.icon-number:before{content:"\\E76B"}.icon-yulan:before{content:"\\E668"}.icon-select:before{content:"\\E920"}.icon-wenzishezhi-:before{content:"\\E67C"}.icon-pingfen1:before{content:"\\E661"}.icon-RectangleCopy:before{content:"\\E620"}.icon-sync1:before{content:"\\E631"}.icon-tabs:before{content:"\\E65F"}',""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){e.exports=n.p+"iconfont.woff?34ea347599227d36d0c388a94b11d962"},function(e,t,n){e.exports=n.p+"iconfont.ttf?4d5a9051acd69e35962cffd5ac40e192"},function(e,t,n){e.exports=n.p+"iconfont.svg?3d83d58dc522e357df2ed283e678a38f"},function(e,t,n){var i=n(50);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("38925988",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".fm-style .el-radio+.el-radio{margin-left:0!important}.fm-style .el-radio{margin-right:30px}.fm-style .el-checkbox+.el-checkbox{margin-left:0!important}.fm-style .el-checkbox{margin-right:30px}.fm-style .el-form-item--small .el-radio{line-height:32px!important}.fm-style .el-form-item--small .el-rate{margin-top:6px}.fm-style .el-form-item--mini .el-radio{line-height:28px!important}.fm-style .el-form-item--mini .el-rate{margin-top:4px}.fm-style .el-form-item--medium .el-radio{line-height:36px!important}.fm-style .el-form-item--medium .el-rate{margin-top:8px}",""])},function(e,t,n){var i=n(52);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("cad064dc",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,'.fm-style{height:100%}.fm-style *,.fm-style :after,.fm-style :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fm-style .fa-icon{width:auto;height:1em;max-width:100%;max-height:100%;vertical-align:middle}.fm-style .fm2-container{background:#fff;height:100%;border:1px solid #e0e0e0}.fm-style .fm2-container .el-container{height:100%!important}.fm-style .fm2-container>.el-container{background:#fff}.fm-style .fm2-container .fm2-main{position:relative}.fm-style .fm2-container .fm2-main>.el-container{position:absolute;top:0;bottom:0;left:0;right:0}.fm-style .fm2-container main{padding:0}.fm-style .fm2-container footer{height:30px;line-height:30px;border-top:1px solid #e0e0e0;font-size:12px;text-align:right;color:#409eff;background:#fafafa}.fm-style .fm2-container footer a{color:#409eff}.fm-style .center-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0}.fm-style .center-container .btn-bar{height:45px;line-height:45px;font-size:18px;border-bottom:2px solid #e4e7ed;text-align:right}.fm-style .center-container .el-main{padding:0;position:relative;background:#fafafa}.fm-style .components-list{padding:8px 0;width:100%;height:100%}.fm-style .components-list .widget-cate{padding:8px 12px;font-size:13px}.fm-style .components-list ul{position:relative;overflow:hidden;padding:0 10px 10px;margin:0}.fm-style .components-list .form-edit-widget-label{font-size:12px;display:block;width:48%;line-height:26px;position:relative;float:left;left:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:1%;color:#333;border:1px solid #f4f6fc}.fm-style .components-list .form-edit-widget-label:hover{color:#409eff;border:1px dashed #409eff}.fm-style .components-list .form-edit-widget-label>a{display:block;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc}.fm-style .components-list .form-edit-widget-label>a .icon{margin-right:6px;margin-left:8px;font-size:14px;display:inline-block;vertical-align:middle}.fm-style .components-list .form-edit-widget-label>a span{display:inline-block;vertical-align:middle}.fm-style .widget-form-container{position:absolute;top:0;left:0;right:0;bottom:0}.fm-style .widget-form-container .widget-form-list{background:#fff;border:1px dashed #999;min-height:600px;margin:10px}.fm-style .widget-form-container .widget-form-list .widget-col-list{min-height:50px;border:1px dashed #ccc;background:#fff}.fm-style .widget-form-container .widget-form-list .widget-view{padding-bottom:18px;position:relative;border:1px dashed hsla(0,0%,67%,.7);background-color:rgba(236,245,255,.3);margin:2px}.fm-style .widget-form-container .widget-form-list .widget-view .el-form-item__content{position:unset}.fm-style .widget-form-container .widget-form-list .widget-view.is_req .el-form-item__label:before{content:"*";color:#f56c6c;margin-right:4px}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-description{height:15px;line-height:15px;font-size:13px;margin-top:6px;color:#909399}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-action{position:absolute;right:0;bottom:0;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-action i{font-size:14px;color:#fff;margin:0 5px;cursor:pointer}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-drag{position:absolute;left:-2px;top:-2px;bottom:-18px;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-view .widget-view-drag i{font-size:14px;color:#fff;margin:0 5px;cursor:move}.fm-style .widget-form-container .widget-form-list .widget-view:after{position:absolute;left:0;right:0;top:0;bottom:0;display:block}.fm-style .widget-form-container .widget-form-list .widget-view:hover{background:#ecf5ff;outline:1px solid #409eff;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-view:hover.active{outline:2px solid #409eff;border:1px solid #409eff;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-view:hover .widget-view-drag{display:block}.fm-style .widget-form-container .widget-form-list .widget-view.active{outline:2px solid #409eff;border:1px solid #409eff}.fm-style .widget-form-container .widget-form-list .widget-view.ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .widget-form-list .widget-table{padding-bottom:0;padding:5px;background-color:hsla(35,81%,96%,.3)}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper{min-height:50px;background:#fff;display:flex;justify-content:flex-start}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-row td{border-bottom:0}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-left{width:51px;border-left:1px solid #ebeef5;border-right:1px solid #ebeef5;border-top:1px solid #ebeef5;flex:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view{border:1px solid #ebeef5;width:200px;float:left;height:100%;position:relative;display:block}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .el-table{height:100%}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.is_req .el-form-item__label:before{content:"*";color:#f56c6c;margin-right:4px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-description{height:15px;line-height:15px;font-size:13px;margin-top:6px;color:#909399}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-action{position:absolute;right:0;bottom:0;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-action i{font-size:14px;color:#fff;margin:0 5px;cursor:pointer}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-drag{position:absolute;left:-2px;top:-2px;bottom:-18px;height:28px;line-height:28px;background:#409eff;z-index:9}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view .widget-view-drag i{font-size:14px;color:#fff;margin:0 5px;cursor:move}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:after{position:absolute;left:0;right:0;top:0;bottom:0;display:block;content:""}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:before{display:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:hover{background:#ecf5ff;outline:1px solid #409eff;outline-offset:-1px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:hover.active{border:1px solid #409eff;outline:1px solid #409eff;outline-offset:-1px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view:hover .widget-view-drag{display:block}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.active{outline:1px solid #409eff;border:1px solid #409eff;outline-offset:-1px}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.ghost{background:#f56c6c;outline-width:0;width:5px!important;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0;position:relative;outline:none!important;border:0!important}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-view.ghost:after{background:#f56c6c;position:absolute;top:0;left:0;bottom:0;right:0;z-index:9999;content:"";outline:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content{width:100%;outline:1px dashed #ccc;background:#fff;flex:1;margin:0 1px;overflow:auto}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content .widget-table-col,.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content>div{height:100%}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content .widget-table-col .ghost{background:#f56c6c;position:relative;content:"";float:left;height:100%;width:5px!important;list-style:none;font-size:0;overflow:hidden;outline:none}.fm-style .widget-form-container .widget-form-list .widget-table .widget-table-wrapper .widget-table-content .widget-table-col .ghost:after{background:#f56c6c;position:absolute;top:0;left:0;bottom:0;right:0;z-index:9999;content:"";outline:none}.fm-style .widget-form-container .widget-form-list .widget-table.active{outline:2px solid #e6a23c;border:1px solid #e6a23c}.fm-style .widget-form-container .widget-form-list .widget-table:hover{background:#fdf6ec;outline:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-table:hover.active{outline:2px solid #e6a23c;border:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-table .widget-view-action.widget-col-action,.fm-style .widget-form-container .widget-form-list .widget-table .widget-view-drag.widget-col-drag{background:#e6a23c}.fm-style .widget-form-container .widget-form-list .widget-table:after{display:none}.fm-style .widget-form-container .widget-form-list .widget-table.ghost{background:#f56c6c;outline-width:0;height:5px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0;position:relative;outline:none;border:0}.fm-style .widget-form-container .widget-form-list .widget-table.ghost:after{background:#f56c6c;position:absolute;top:0;left:0;right:0;bottom:0;content:"";display:block;z-index:999}.fm-style .widget-form-container .widget-form-list .widget-col{padding-bottom:0;padding:5px;background-color:hsla(35,81%,96%,.3)}.fm-style .widget-form-container .widget-form-list .widget-col.active{outline:2px solid #e6a23c;border:1px solid #e6a23c}.fm-style .widget-form-container .widget-form-list .widget-col:hover{background:#fdf6ec;outline:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-col:hover.active{outline:2px solid #e6a23c;border:1px solid #e6a23c;outline-offset:0}.fm-style .widget-form-container .widget-form-list .widget-col .el-col{min-height:50px}.fm-style .widget-form-container .widget-form-list .widget-col.ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .widget-form-list .widget-col .widget-view-action.widget-col-action,.fm-style .widget-form-container .widget-form-list .widget-col .widget-view-drag.widget-col-drag{background:#e6a23c}.fm-style .widget-form-container .widget-form-list .widget-col:after{display:none}.fm-style .widget-form-container .widget-form-list .ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .widget-grid{background:#f4f6fc;position:relative;border-left:5px solid transparent;padding:5px;margin:0!important}.fm-style .widget-form-container .widget-grid.active{border-left:5px solid #409eff;background:#b3d8ff}.fm-style .widget-form-container .widget-grid-container.ghost{background:#f56c6c;border:2px solid #f56c6c;outline-width:0;height:3px;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0}.fm-style .widget-form-container .ghost{background:#f56c6c;border:2px solid #f56c6c;position:relative}.fm-style .widget-form-container .ghost:after{background:#f56c6c}.fm-style .widget-form-container li.ghost{height:5px;list-style:none;font-size:0;overflow:hidden}.fm-style .widget-config-container{position:relative}.fm-style .widget-config-container .el-header{border-bottom:2px solid #e4e7ed;padding:0 2px}.fm-style .widget-config-container .config-tab{height:45px;line-height:45px;display:inline-block;width:145px;text-align:center;font-size:14px;font-weight:500;position:relative;cursor:pointer}.fm-style .widget-config-container .config-tab.active{border-bottom:2px solid #409eff}.fm-style .widget-config-container .config-content{padding:10px}.fm-style .widget-config-container .config-content .el-form-item__label{padding:0;font-weight:500}.fm-style .widget-config-container .config-content .el-form-item{border-bottom:1px solid #e1e1e1;padding-bottom:10px}.fm-style .widget-config-container .config-content .config-pattern-input .el-input-group__append,.fm-style .widget-config-container .config-content .config-pattern-input .el-input-group__prepend{padding:0 8px}.fm-style .widget-config-container .ghost{background:#fff;border:1px dashed #409eff}.fm-style .widget-config-container .ghost:after{background:#fff;display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0}.fm-style .widget-config-container ul{margin:0;padding:0}.fm-style .widget-config-container li.ghost{list-style:none;font-size:0;display:block;position:relative}.fm-style .viewer-container{z-index:99999!important}.fm-style .form-empty{position:absolute;text-align:center;width:300px;font-size:20px;top:200px;left:50%;margin-left:-150px;color:#ccc}.fm-style .widget-empty{background-position:50%}',""])},function(e,t,n){(function(e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}}var o=e("../lib/oop");e=e("./text_highlight_rules").TextHighlightRules;o.inherits(i,e),t.JsonHighlightRules=i})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";function i(){}var o=e("../range").Range;(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){if(!(n=e.getLine(t).match(/^(\s*\})/)))return 0;var n=n[1].length,i=e.findMatchingBracket({row:t,column:n});if(!i||i.row==t)return 0;i=this.$getIndent(e.getLine(i.row)),e.replace(new o(t,0,t,n-1),i)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range;e=e("./fold_mode").FoldMode,t=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(t,e),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return!this.singleLineBlockCommentRe.test(i)||this.startRegionRe.test(i)||this.tripleStarBlockCommentRe.test(i)?!(e=this._getFoldWidgetBase(e,t,n))&&this.startRegionRe.test(i)?"start":e:""},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(r=o.match(this.foldingStopMarker))?(s=r.index+r[0].length,r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=(l=e.getLine(t)).search(/\S/),i=t,r=l.length,s=t+=1,a=e.getLength();++t<a;){var l,c=(l=e.getLine(t)).search(/\S/);if(-1!==c){if(c<n)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=i)break;if(u.isMultiLine())t=u.end.row;else if(n==c)break}s=t}}return new o(i,r,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(s<n)return new o(s,i,n,t.length)}}.call(t.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){"use strict";function i(){this.HighlightRules=s,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new c}var o=e("../lib/oop"),r=e("./text").Mode,s=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,u=e("../worker/worker_client").WorkerClient;o.inherits(i,r),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t);return"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new u(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(i.prototype),t.Mode=i})),ace.require(["ace/mode/json"],(function(t){e&&(e.exports=t)}))}).call(this,n(9)(e))},function(e,t,n){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},i.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}}var o=e("../lib/oop");e=e("./text_highlight_rules").TextHighlightRules;o.inherits(i,e),i.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},i.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},i.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=i})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}function o(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),i("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),i("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||function(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"},n=(this.$rules.start.unshift(t),{regex:"{",token:"paren.quasi.start",push:"start"});this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,i("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()}var r=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,a=(e=e("./text_highlight_rules").TextHighlightRules,"[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*");r.inherits(o,e),t.JavaScriptHighlightRules=o})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";function i(){}var o=e("../range").Range;(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){if(!(n=e.getLine(t).match(/^(\s*\})/)))return 0;var n=n[1].length,i=e.findMatchingBracket({row:t,column:n});if(!i||i.row==t)return 0;i=this.$getIndent(e.getLine(i.row)),e.replace(new o(t,0,t,n-1),i)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range;e=e("./fold_mode").FoldMode,t=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(t,e),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return!this.singleLineBlockCommentRe.test(i)||this.startRegionRe.test(i)||this.tripleStarBlockCommentRe.test(i)?!(e=this._getFoldWidgetBase(e,t,n))&&this.startRegionRe.test(i)?"start":e:""},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(r=o.match(this.foldingStopMarker))?(s=r.index+r[0].length,r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=(l=e.getLine(t)).search(/\S/),i=t,r=l.length,s=t+=1,a=e.getLength();++t<a;){var l,c=(l=e.getLine(t)).search(/\S/);if(-1!==c){if(c<n)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=i)break;if(u.isMultiLine())t=u.end.row;else if(n==c)break}s=t}}return new o(i,r,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(s<n)return new o(s,i,n,t.length)}}.call(t.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";function i(){this.HighlightRules=s,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new u}var o=e("../lib/oop"),r=e("./text").Mode,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("../worker/worker_client").WorkerClient,c=e("./behaviour/cstyle").CstyleBehaviour,u=e("./folding/cstyle").FoldMode;o.inherits(i,r),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i,o=this.$getIndent(t),r=(s=this.getTokenizer().getLineTokens(t,e)).tokens,s=s.state;if(!r.length||"comment"!=r[r.length-1].type)if("start"==e||"no_regex"==e)(i=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(o+=n);else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";(i=t.match(/^\s*(\/?)\*/))&&(i[1]&&(o+=" "),o+="* ")}return o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(i.prototype),t.Mode=i})),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){var e=this.createKeywordMapper({"support.function":"rgb|rgba|url|attr|counter|counters","support.constant":"absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom","support.type":"align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index","support.constant.color":"aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen","support.constant.fonts":"arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace"},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:r},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+r+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:r},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:"(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b"},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:"(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b"},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()}var o=e("../lib/oop"),r=(e=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",t.supportFunction="rgb|rgba|url|attr|counter|counters",t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))");t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",o.inherits(i,e),t.CssHighlightRules=i})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";function i(){}var o={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e,t,n=document.createElement("c").style;for(e in n)"string"==typeof n[e]&&(t=e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),o.hasOwnProperty(t)||(o[t]=1))}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){var o;return this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id?(o=t.getLine(n.row).substr(0,n.column),/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i)):[]},this.getPropertyCompletions=function(e,t,n,i){return Object.keys(o).map((function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,i){return t=t.getLine(n.row).substr(0,n.column),(n=(/([\w\-]+):[^:]*$/.exec(t)||{})[1])?(t=[],(t=n in o&&"object"==typeof o[n]?Object.keys(o[n]):t).map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))):[]}}).call(i.prototype),t.CssCompletions=i})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";function i(){this.inherit(r),this.add("colon","insertion",(function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){o=n.getCursorPosition();var r=(n=new s(i,o.row,o.column)).getCurrentToken();if((r=r&&r.value.match(/\s+/)?n.stepBackward():r)&&"support.type"===r.type)return":"===(n=i.doc.getLine(o.row)).substring(o.column,o.column+1)?{text:"",selection:[1,1]}:/^(\s+[^;]|\s*$)/.test(n.substring(o.column))?{text:":;",selection:[1,1]}:void 0}})),this.add("colon","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===r&&(r=n.getCursorPosition(),(r=(r=(n=new s(i,r.row,r.column)).getCurrentToken())&&r.value.match(/\s+/)?n.stepBackward():r)&&"support.type"===r.type&&";"===i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1)))return o.end.column++,o})),this.add("semicolon","insertion",(function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()&&(o=n.getCursorPosition(),";"===i.doc.getLine(o.row).substring(o.column,o.column+1)))return{text:"",selection:[1,1]}})),this.add("!important","insertion",(function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()&&(o=n.getCursorPosition(),n=i.doc.getLine(o.row),/^\s*(;|}|$)/.test(n.substring(o.column))))return{text:"!important",selection:[10,10]}}))}var o=e("../../lib/oop"),r=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),s=e("../../token_iterator").TokenIterator;o.inherits(i,r),t.CssBehaviour=i})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";function i(){this.HighlightRules=s,this.$outdent=new a,this.$behaviour=new u,this.$completer=new c,this.foldingRules=new d}var o=e("../lib/oop"),r=e("./text").Mode,s=e("./css_highlight_rules").CssHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("../worker/worker_client").WorkerClient,c=e("./css_completions").CssCompletions,u=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode;o.inherits(i,r),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t);return(e=this.getTokenizer().getLineTokens(t,e).tokens).length&&"comment"==e[e.length-1].type||t.match(/^.*\{\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(i.prototype),t.Mode=i})),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(e){var t="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+t+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:t},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+t+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+t+":)?"+t+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:t},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===i&&this.normalizeRules()}var o=e("../lib/oop");e=e("./text_highlight_rules").TextHighlightRules;(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(e.prototype),o.inherits(i,e),t.XmlHighlightRules=i})),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],(function(e,t,n){"use strict";function i(){l.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+((t=c[t])?"."+t:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(s,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===i&&this.normalizeRules()}var o=e("../lib/oop"),r=e("../lib/lang"),s=e("./css_highlight_rules").CssHighlightRules,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,l=e("./xml_highlight_rules").XmlHighlightRules,c=r.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"});o.inherits(i,l),t.HtmlHighlightRules=i})),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";function i(e,t){return e&&-1<e.type.lastIndexOf(t+".xml")}function o(){this.add("string_dquotes","insertion",(function(e,t,n,o,r){if('"'==r||"'"==r){if(""!==(s=o.doc.getTextRange(n.getSelectionRange()))&&"'"!==s&&'"'!=s&&n.getWrapBehavioursEnabled())return{text:r+s+r,selection:!1};var s=n.getCursorPosition(),l=(n=o.doc.getLine(s.row).substring(s.column,s.column+1),new a(o,s.row,s.column)),c=l.getCurrentToken();if(n==r&&(i(c,"attribute-value")||i(c,"string")))return{text:"",selection:[1,1]};if(c=c||l.stepBackward()){for(;i(c,"tag-whitespace")||i(c,"whitespace");)c=l.stepBackward();return o=!n||n.match(/\s/),i(c,"attribute-equals")&&(o||">"==n)||i(c,"decl-attribute-equals")&&(o||"?"==n)?{text:r+r,selection:[1,1]}:void 0}}})),this.add("string_dquotes","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&('"'==r||"'"==r)&&i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==r)return o.end.column++,o})),this.add("autoclosing","insertion",(function(e,t,n,o,r){if(">"==r){r=n.getSelectionRange().start;var s=new a(o,r.row,r.column),l=s.getCurrentToken()||s.stepBackward();if(l&&(i(l,"tag-name")||i(l,"tag-whitespace")||i(l,"attribute-name")||i(l,"attribute-equals")||i(l,"attribute-value"))&&!i(l,"reference.attribute-value")){if(i(l,"attribute-value")){if(n=s.getCurrentTokenColumn()+l.value.length,r.column<n)return;if(r.column==n){if((n=s.stepForward())&&i(n,"attribute-value"))return;s.stepBackward()}}if(!/^\s*>/.test(o.getLine(r.row).slice(r.column))){for(;!i(l,"tag-name");)if("<"==(l=s.stepBackward()).value){l=s.stepForward();break}if(n=s.getCurrentTokenRow(),o=s.getCurrentTokenColumn(),!i(s.stepBackward(),"end-tag-open")){var c=l.value;if(n==r.row&&(c=c.substring(0,r.column-o)),!this.voidElements.hasOwnProperty(c.toLowerCase()))return{text:"></"+c+">",selection:[1,1]}}}}}})),this.add("autoindent","insertion",(function(e,t,n,i,o){if("\n"==o){o=n.getCursorPosition(),n=i.getLine(o.row);var r=new a(i,o.row,o.column),s=r.getCurrentToken();if(s&&-1!==s.type.indexOf("tag-close")&&"/>"!=s.value){for(;s&&-1===s.type.indexOf("tag-name");)s=r.stepBackward();if(s){var l=s.value,c=r.getCurrentTokenRow();if((s=r.stepBackward())&&-1===s.type.indexOf("end-tag"))return this.voidElements&&!this.voidElements[l]?(l=i.getTokenAt(o.row,o.column+1),n=i.getLine(c),c=(o=this.$getIndent(n))+i.getTabString(),l&&"</"===l.value?{text:"\n"+c+"\n"+o,selection:[1,c.length,1,c.length]}:{text:"\n"+c}):void 0}}}}))}var r=e("../../lib/oop"),s=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator;e("../../lib/lang"),r.inherits(o,s),t.XmlBehaviour=o})),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop");e=e("./fold_mode").FoldMode,t=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};i.inherits(t,e),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,i){return(e=this.$getMode(e))?e.getFoldWidget(t,n,i):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var i=this.$getMode(e.getState(n-1));return(i=(i=i&&i.getFoldWidget(e,t,n)?i:this.$getMode(e.getState(n)))&&i.getFoldWidget(e,t,n)?i:this.defaultMode).getFoldWidgetRange(e,t,n)}}.call(t.prototype)})),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],(function(e,t,n){"use strict";function i(e,t){return-1<e.type.lastIndexOf(t+".xml")}function o(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}}var r=e("../../lib/oop"),s=(e("../../lib/lang"),e("../../range").Range),a=e("./fold_mode").FoldMode,l=e("../../token_iterator").TokenIterator;e=t.FoldMode=function(e,t){a.call(this),this.voidElements=e||{},this.optionalEndTags=r.mixin({},this.voidElements),t&&r.mixin(this.optionalEndTags,t)};r.inherits(e,a),function(){this.getFoldWidget=function(e,t,n){var i=this._getFirstTagInLine(e,n);return i?i.closing||!i.tagName&&i.selfClosing?"markbeginend"==t?"end":"":!i.tagName||i.selfClosing||this.voidElements.hasOwnProperty(i.tagName.toLowerCase())||this._findEndTagInLine(e,n,i.tagName,i.end.column)?"":"start":this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),r=new o,s=0;s<n.length;s++){var a=n[s];if(i(a,"tag-open")){if(r.end.column=r.start.column+a.value.length,r.closing=i(a,"end-tag-open"),!(a=n[++s]))return null;for(r.tagName=a.value,r.end.column+=a.value.length,s++;s<n.length;s++)if(a=n[s],r.end.column+=a.value.length,i(a,"tag-close")){r.selfClosing="/>"==a.value;break}return r}if(i(a,"tag-close"))return r.selfClosing="/>"==a.value,r;r.start.column+=a.value.length}return null},this._findEndTagInLine=function(e,t,n,o){for(var r=e.getTokens(t),s=0,a=0;a<r.length;a++){var l=r[a];if(!((s+=l.value.length)<o)&&i(l,"end-tag-open")&&(l=r[a+1])&&l.value==n)return!0}return!1},this._readTagForward=function(e){var t=e.getCurrentToken();if(t){var n=new o;do{if(i(t,"tag-open"))n.closing=i(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn();else if(i(t,"tag-name"))n.tagName=t.value;else if(i(t,"tag-close"))return n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length,e.stepForward(),n}while(t=e.stepForward())}return null},this._readTagBackward=function(e){var t=e.getCurrentToken();if(t){var n=new o;do{if(i(t,"tag-open"))return n.closing=i(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn(),e.stepBackward(),n}while(i(t,"tag-name")?n.tagName=t.value:i(t,"tag-close")&&(n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length),t=e.stepBackward())}return null},this._pop=function(e,t){for(;e.length;){var n=e[e.length-1];if(!t||n.tagName==t.tagName)return e.pop();if(!this.optionalEndTags.hasOwnProperty(n.tagName))return null;e.pop()}},this.getFoldWidgetRange=function(e,t,n){var i=this._getFirstTagInLine(e,n);if(!i)return this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length);var o,r=[];if(i.closing||i.selfClosing)for(var a=new l(e,n,i.end.column),c={row:n,column:i.start.column};o=this._readTagBackward(a);){if(o.selfClosing){if(r.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,s.fromPoints(o.start,o.end)}if(o.closing)r.push(o);else if(this._pop(r,o),0==r.length)return o.start.column+=o.tagName.length+2,o.start.row==o.end.row&&o.start.column<o.end.column&&(o.start.column=o.end.column),s.fromPoints(o.start,c)}else{a=new l(e,n,i.start.column);var u={row:n,column:i.start.column+i.tagName.length+2};for(i.start.row==i.end.row&&(u.column=i.end.column);o=this._readTagForward(a);){if(o.selfClosing){if(r.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,s.fromPoints(o.start,o.end)}if(o.closing){if(this._pop(r,o),0==r.length)return s.fromPoints(u,o.start)}else r.push(o)}}}}.call(e.prototype)})),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("./mixed").FoldMode,r=e("./xml").FoldMode,s=e("./cstyle").FoldMode;e=t.FoldMode=function(e,t){o.call(this,new r(e,t),{"js-":new s,"css-":new s})};i.inherits(e,o)})),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],(function(e,t,n){"use strict";function i(e,t){return-1<e.type.lastIndexOf(t+".xml")}function o(e,t){for(var n=new s(e,t.row,t.column),o=n.getCurrentToken();o&&!i(o,"tag-name");)o=n.stepBackward();if(o)return o.value}function r(){}var s=e("../token_iterator").TokenIterator,a=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"].concat(["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"]),l={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},c=Object.keys(l);(function(){this.getCompletions=function(e,t,n,o){var r=t.getTokenAt(n.row,n.column);return r?i(r,"tag-name")||i(r,"tag-open")||i(r,"end-tag-open")?this.getTagCompletions(e,t,n,o):i(r,"tag-whitespace")||i(r,"attribute-name")?this.getAttributeCompletions(e,t,n,o):i(r,"attribute-value")?this.getAttributeValueCompletions(e,t,n,o):(r=t.getLine(n.row).substr(0,n.column),/&[a-z]*$/i.test(r)?this.getHTMLEntityCompletions(e,t,n,o):[]):[]},this.getTagCompletions=function(e,t,n,i){return c.map((function(e){return{value:e,meta:"tag",score:1e6}}))},this.getAttributeCompletions=function(e,t,n,i){return(t=o(t,n))?(n=a,(n=t in l?a.concat(Object.keys(l[t])):n).map((function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:1e6}}))):[]},this.getAttributeValueCompletions=function(e,t,n,r){var a=o(t,n);t=function(e,t){for(var n=new s(e,t.row,t.column),o=n.getCurrentToken();o&&!i(o,"attribute-name");)o=n.stepBackward();if(o)return o.value}(t,n);return a?(n=[],(n=a in l&&t in l[a]&&"object"==typeof l[a][t]?Object.keys(l[a][t]):n).map((function(e){return{caption:e,snippet:e,meta:"attribute value",score:1e6}}))):[]},this.getHTMLEntityCompletions=function(e,t,n,i){return["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"].map((function(e){return{caption:e,snippet:e,meta:"html entity",score:1e6}}))}}).call(r.prototype),t.HtmlCompletions=r})),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],(function(e,t,n){"use strict";function i(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=c,this.$behaviour=new u,this.$completer=new h,this.createModeDelegates({"js-":a,"css-":l}),this.foldingRules=new d(this.voidElements,r.arrayToMap(g))}var o=e("../lib/oop"),r=e("../lib/lang"),s=e("./text").Mode,a=e("./javascript").Mode,l=e("./css").Mode,c=e("./html_highlight_rules").HtmlHighlightRules,u=e("./behaviour/xml").XmlBehaviour,d=e("./folding/html").FoldMode,h=e("./html_completions").HtmlCompletions,f=e("../worker/worker_client").WorkerClient,p=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"];o.inherits(i,s),function(){this.blockComment={start:"\x3c!--",end:"--\x3e"},this.voidElements=r.arrayToMap(p),this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t;if(this.constructor==i)return(t=new f(["ace"],"ace/mode/html_worker","Worker")).attachToDocument(e.getDocument()),this.fragmentContext&&t.call("setOptions",[{context:this.fragmentContext}]),t.on("error",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}.call(i.prototype),t.Mode=i})),ace.require(["ace/mode/html"],(function(t){e&&(e.exports=t)}))}).call(this,n(9)(e))},function(e,t,n){"use strict";
33
+ /**!
34
+ * Sortable 1.10.2
35
+ * @author RubaXa <trash@rubaxa.org>
36
+ * @author owenm <owen23355@gmail.com>
37
+ * @license MIT
38
+ */function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);(i="function"==typeof Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))):i).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o}))}return e}function s(e,t){if(null==e)return{};var n,i=function(e,t){if(null==e)return{};for(var n,i={},o=Object.keys(e),r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,"MultiDrag",(function(){return pt})),n.d(t,"Sortable",(function(){return Ne})),n.d(t,"Swap",(function(){return it}));var c=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=l(/Edge/i),d=l(/firefox/i),h=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),f=(n=l(/iP(ad|od|hone)/i),l(/chrome/i)&&l(/android/i)),p={capture:!1,passive:!1};function g(e,t,n){e.addEventListener(t,n,!c&&p)}function m(e,t,n){e.removeEventListener(t,n,!c&&p)}function b(e,t){if(t&&(">"===t[0]&&(t=t.substring(1)),e))try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return}}function v(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"!==t[0]||e.parentNode===n)&&b(e,t)||i&&e===n)return e}while(e!==n&&(e=(o=e).host&&o!==document&&o.host.nodeType?o.host:o.parentNode))}var o;return null}var y,w=/\s+/g;function x(e,t,n){var i;e&&t&&(e.classList?e.classList[n?"add":"remove"](t):(i=(" "+e.className+" ").replace(w," ").replace(" "+t+" "," "),e.className=(i+(n?" "+t:"")).replace(w," ")))}function k(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];i[t=t in i||-1!==t.indexOf("webkit")?t:"-webkit-"+t]=n+("string"==typeof n?"":"px")}}function _(e,t){var n="";if("string"==typeof e)n=e;else do{var i=k(e,"transform")}while(i&&"none"!==i&&(n=i+" "+n),!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function C(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function S(){return document.scrollingElement||document.documentElement}function A(e,t,n,i,o){if(e.getBoundingClientRect||e===window){var r,s,a,l,u,d,h=e!==window&&e!==S()?(s=(r=e.getBoundingClientRect()).top,a=r.left,l=r.bottom,u=r.right,d=r.height,r.width):(a=s=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,window.innerWidth);if((t||n)&&e!==window&&(o=o||e.parentNode,!c))do{if(o&&o.getBoundingClientRect&&("none"!==k(o,"transform")||n&&"static"!==k(o,"position"))){var f=o.getBoundingClientRect();s-=f.top+parseInt(k(o,"border-top-width")),a-=f.left+parseInt(k(o,"border-left-width")),l=s+r.height,u=a+r.width;break}}while(o=o.parentNode);return i&&e!==window&&(i=(t=_(o||e))&&t.a,e=t&&t.d,t&&(l=(s/=e)+(d/=e),u=(a/=i)+(h/=i))),{top:s,left:a,bottom:l,right:u,width:h,height:d}}}function E(e,t,n){for(var i=R(e,!0),o=A(e)[t];i;){var r=A(i)[n];if(!("top"===n||"left"===n?r<=o:o<=r))return i;if(i===S())break;i=R(i,!1)}return!1}function O(e,t,n){for(var i=0,o=0,r=e.children;o<r.length;){if("none"!==r[o].style.display&&r[o]!==Ne.ghost&&r[o]!==Ne.dragged&&v(r[o],n.draggable,e,!1)){if(i===t)return r[o];i++}o++}return null}function T(e,t){for(var n=e.lastElementChild;n&&(n===Ne.ghost||"none"===k(n,"display")||t&&!b(n,t));)n=n.previousElementSibling;return n||null}function $(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ne.clone||t&&!b(e,t)||n++;return n}function L(e){var t=0,n=0,i=S();if(e)do{var o=(r=_(e)).a,r=r.d}while(t+=e.scrollLeft*o,n+=e.scrollTop*r,e!==i&&(e=e.parentNode));return[t,n]}function R(e,t){if(e&&e.getBoundingClientRect){var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return S();if(i||t)return n;i=!0}}}while(n=n.parentNode)}return S()}function q(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function M(e,t){return function(){var n;y||(1===(n=arguments).length?e.call(this,n[0]):e.apply(this,n),y=setTimeout((function(){y=void 0}),t))}}function P(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function N(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function I(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function D(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}var j="Sortable"+(new Date).getTime();var F=[],B={initializeByDefault:!0},z={mount:function(e){for(var t in B)!B.hasOwnProperty(t)||t in e||(e[t]=B[t]);F.push(e)},pluginEvent:function(e,t,n){var i=this,o=(this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0},e+"Global");F.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][o]&&t[i.pluginName][o](r({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](r({sortable:t},n)))}))},initializePlugins:function(e,t,n,i){for(var r in F.forEach((function(i){var r=i.pluginName;(e.options[r]||i.initializeByDefault)&&((i=new i(e,t,e.options)).sortable=e,i.options=e.options,e[r]=i,o(n,i.defaults))})),e.options){var s;e.options.hasOwnProperty(r)&&void 0!==(s=this.modifyOption(e,r,e.options[r]))&&(e.options[r]=s)}},getEventProperties:function(e,t){var n={};return F.forEach((function(i){"function"==typeof i.eventProperties&&o(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return F.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(i=o.optionListeners[t].call(e[o.pluginName],n))})),i}};function W(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,s=e.cloneEl,a=e.toEl,l=e.fromEl,d=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,p=e.newDraggableIndex,g=e.originalEvent,m=e.putSortable;e=e.extraEventProperties;if(t=t||n&&n[j]){var b,v,y=t.options,w="on"+i.charAt(0).toUpperCase()+i.substr(1),x=(!window.CustomEvent||c||u?(b=document.createEvent("Event")).initEvent(i,!0,!0):b=new CustomEvent(i,{bubbles:!0,cancelable:!0}),b.to=a||n,b.from=l||n,b.item=o||n,b.clone=s,b.oldIndex=d,b.newIndex=h,b.oldDraggableIndex=f,b.newDraggableIndex=p,b.originalEvent=g,b.pullMode=m?m.lastPutMode:void 0,r({},e,z.getEventProperties(i,t)));for(v in x)b[v]=x[v];n&&n.dispatchEvent(b),y[w]&&y[w].call(t,b)}}function H(e,t){var n=(i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).evt,i=s(i,["evt"]);z.pluginEvent.bind(Ne)(e,t,r({dragEl:X,parentEl:Z,ghostEl:J,rootEl:Q,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:ie,dragStarted:me,putSortable:ce,activeSortable:Ne.active,originalEvent:n,oldIndex:oe,oldDraggableIndex:se,newIndex:re,newDraggableIndex:ae,hideGhostForTarget:V,unhideGhostForTarget:K,cloneNowHidden:function(){ie=!0},cloneNowShown:function(){ie=!1},dispatchSortableEvent:function(e){U({sortable:t,name:e,originalEvent:n})}},i))}function U(e){W(r({putSortable:ce,cloneEl:ne,targetEl:X,rootEl:Q,oldIndex:oe,oldDraggableIndex:se,newIndex:re,newDraggableIndex:ae},e))}function V(){!qe&&J&&k(J,"display","none")}function K(){!qe&&J&&k(J,"display","")}function G(e){if(X){e=e.touches?e.touches[0]:e,o=e.clientX,r=e.clientY,_e.some((function(e){var t,n,i;if(!T(e))return i=A(e),t=e[j].options.emptyInsertThreshold,n=o>=i.left-t&&o<=i.right+t,i=r>=i.top-t&&r<=i.bottom+t,t&&n&&i?s=e:void 0}));var t=s;if(t){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[j]._onDragOver(i)}}var o,r,s}function Y(e){X&&X.parentNode[j]._isOutsideThisEl(e.target)}var X,Z,J,Q,ee,te,ne,ie,oe,re,se,ae,le,ce,ue,de,he,fe,pe,ge,me,be,ve,ye,we,xe=!1,ke=!1,_e=[],Ce=!1,Se=!1,Ae=[],Ee=!1,Oe=[],Te="undefined"!=typeof document,$e=n,Le=u||c?"cssFloat":"float",Re=Te&&!f&&!n&&"draggable"in document.createElement("div"),qe=function(){if(Te){if(c)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Me=function(e,t){var n,i=k(e),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=O(e,0,t),s=(e=O(e,1,t),t=r&&k(r),e&&k(e)),a=t&&parseInt(t.marginLeft)+parseInt(t.marginRight)+A(r).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(e).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&t.float&&"none"!==t.float?(n="left"===t.float?"left":"right",!e||"both"!==s.clear&&s.clear!==n?"horizontal":"vertical"):r&&("block"===t.display||"flex"===t.display||"table"===t.display||"grid"===t.display||o<=a&&"none"===i[Le]||e&&"none"===i[Le]&&o<a+l)?"vertical":"horizontal"},Pe=function(e){function t(e,n){return function(i,o,r,s){var a=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;return!(null!=e||!n&&!a)||null!=e&&!1!==e&&(n&&"clone"===e?e:"function"==typeof e?t(e(i,o,r,s),n)(i,o,r,s):(a=(n?i:o).options.group.name,!0===e||"string"==typeof e&&e===a||e.join&&-1<e.indexOf(a)))}}var n={},o=e.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n};function Ne(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[j]=this;var n,i,s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Me(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ne.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(n in z.initializePlugins(this,e,s),s)n in t||(t[n]=s[n]);for(i in Pe(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Re,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?g(e,"pointerdown",this._onTapStart):(g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),_e.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,function(){var e,t=[];return{captureAnimationState:function(){t=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){var n,i;"none"!==k(e,"display")&&e!==Ne.ghost&&(t.push({target:e,rect:A(e)}),n=r({},t[t.length-1].rect),e.thisAnimationDuration&&(i=_(e,!0))&&(n.top-=i.f,n.left-=i.e),e.fromRect=n)}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,r=0;t.forEach((function(e){var t,n=0,s=e.target,a=s.fromRect,l=A(s),c=s.prevFromRect,u=s.prevToRect,d=(e=e.rect,_(s,!0));d&&(l.top-=d.f,l.left-=d.e),s.toRect=l,s.thisAnimationDuration&&q(c,l)&&!q(a,l)&&(e.top-l.top)/(e.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(d=e,c=c,u=u,t=i.options,n=Math.sqrt(Math.pow(c.top-d.top,2)+Math.pow(c.left-d.left,2))/Math.sqrt(Math.pow(c.top-u.top,2)+Math.pow(c.left-u.left,2))*t.animation),q(l,a)||(s.prevFromRect=a,s.prevToRect=l,n=n||i.options.animation,i.animate(s,e,l,n)),n&&(o=!0,r=Math.max(r,n),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout((function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null}),n),s.thisAnimationDuration=n)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),r):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,i){var o,r;i&&(k(e,"transition",""),k(e,"transform",""),r=(o=_(this.el))&&o.a,o=o&&o.d,r=(t.left-n.left)/(r||1),t=(t.top-n.top)/(o||1),e.animatingX=!!r,e.animatingY=!!t,k(e,"transform","translate3d("+r+"px,"+t+"px,0)"),e.offsetWidth,k(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i))}}}())}function Ie(e,t,n,i,o,r,s,a){var l,d,h=e[j],f=h.options.onMove;return!window.CustomEvent||c||u?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||A(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),f?f.call(h,l,s):d}function De(e){e.draggable=!1}function je(){Ee=!1}function Fe(e){return setTimeout(e,0)}function Be(e){return clearTimeout(e)}Te&&document.addEventListener("click",(function(e){if(ke)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ke=!1}),!0),Ne.prototype={constructor:Ne,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(be=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,X):this.options.direction},_onTapStart:function(e){if(e.cancelable){for(var t=this,n=this.el,i=this.options,o=i.preventOnFilter,r=e.type,s=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(s||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,c=i.filter,u=n,d=(Oe.length=0,u.getElementsByTagName("input")),h=d.length;h--;){var f=d[h];f.checked&&Oe.push(f)}if(!X&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled||l.isContentEditable||(a=v(a,i.draggable,n,!1))&&a.animated||te===a)){if(oe=$(a),se=$(a,i.draggable),"function"==typeof c){if(c.call(this,e,a,this))return U({sortable:t,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),H("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c=c&&c.split(",").some((function(i){if(i=v(l,i.trim(),n,!1))return U({sortable:t,rootEl:i,name:"filter",targetEl:a,fromEl:n,toEl:n}),H("filter",t,{evt:e}),!0})))return void(o&&e.cancelable&&e.preventDefault());i.handle&&!v(l,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,s=o.options,a=r.ownerDocument;n&&!X&&n.parentNode===r&&(i=A(n),Q=r,Z=(X=n).parentNode,ee=X.nextSibling,te=n,le=s.group,ue={target:Ne.dragged=X,clientX:(t||e).clientX,clientY:(t||e).clientY},pe=ue.clientX-i.left,ge=ue.clientY-i.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,X.style["will-change"]="all",r=function(){H("delayEnded",o,{evt:e}),Ne.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!d&&o.nativeDraggable&&(X.draggable=!0),o._triggerDragStart(e,t),U({sortable:o,name:"choose",originalEvent:e}),x(X,s.chosenClass,!0))},s.ignore.split(",").forEach((function(e){C(X,e.trim(),De)})),g(a,"dragover",G),g(a,"mousemove",G),g(a,"touchmove",G),g(a,"mouseup",o._onDrop),g(a,"touchend",o._onDrop),g(a,"touchcancel",o._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),H("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(u||c)?r():Ne.eventCanceled?this._onDrop():(g(a,"mouseup",o._disableDelayedDrag),g(a,"touchend",o._disableDelayedDrag),g(a,"touchcancel",o._disableDelayedDrag),g(a,"mousemove",o._delayedDragTouchMoveHandler),g(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&g(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,s.delay)))},_delayedDragTouchMoveHandler:function(e){e=e.touches?e.touches[0]:e,Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&De(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._disableDelayedDrag),m(e,"touchend",this._disableDelayedDrag),m(e,"touchcancel",this._disableDelayedDrag),m(e,"mousemove",this._delayedDragTouchMoveHandler),m(e,"touchmove",this._delayedDragTouchMoveHandler),m(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,t?"touchmove":"mousemove",this._onTouchMove):(g(X,"dragend",this),g(Q,"dragstart",this._onDragStart));try{document.selection?Fe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){var n;xe=!1,Q&&X?(H("dragStarted",this,{evt:t}),this.nativeDraggable&&g(document,"dragover",Y),n=this.options,e||x(X,n.dragClass,!1),x(X,n.ghostClass,!0),Ne.active=this,e&&this._appendGhost(),U({sortable:this,name:"start",originalEvent:t})):this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,V();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(X.parentNode[j]._isOutsideThisEl(e),t)do{if(t[j]&&t[j]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}while(t=(e=t).parentNode);K()}},_onTouchMove:function(e){if(ue){var t=(n=this.options).fallbackTolerance,n=n.fallbackOffset,i=e.touches?e.touches[0]:e,o=J&&_(J,!0),r=J&&o&&o.a,s=J&&o&&o.d,a=$e&&we&&L(we);r=(i.clientX-ue.clientX+n.x)/(r||1)+(a?a[0]-Ae[0]:0)/(r||1),n=(i.clientY-ue.clientY+n.y)/(s||1)+(a?a[1]-Ae[1]:0)/(s||1);if(!Ne.active&&!xe){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}J&&(o?(o.e+=r-(he||0),o.f+=n-(fe||0)):o={a:1,b:0,c:0,d:1,e:r,f:n},a="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")"),k(J,"webkitTransform",a),k(J,"mozTransform",a),k(J,"msTransform",a),k(J,"transform",a),he=r,fe=n,de=i),e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){var e=this.options.fallbackOnBody?document.body:Q,t=A(X,!0,$e,!0,e),n=this.options;if($e){for(we=e;"static"===k(we,"position")&&"none"===k(we,"transform")&&we!==document;)we=we.parentNode;we!==document.body&&we!==document.documentElement?(we===document&&(we=S()),t.top+=we.scrollTop,t.left+=we.scrollLeft):we=S(),Ae=L(we)}x(J=X.cloneNode(!0),n.ghostClass,!1),x(J,n.fallbackClass,!0),x(J,n.dragClass,!0),k(J,"transition",""),k(J,"transform",""),k(J,"box-sizing","border-box"),k(J,"margin",0),k(J,"top",t.top),k(J,"left",t.left),k(J,"width",t.width),k(J,"height",t.height),k(J,"opacity","0.8"),k(J,"position",$e?"absolute":"fixed"),k(J,"zIndex","100000"),k(J,"pointerEvents","none"),Ne.ghost=J,e.appendChild(J),k(J,"transform-origin",pe/parseInt(J.style.width)*100+"% "+ge/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,o=n.options;H("dragStart",this,{evt:e}),Ne.eventCanceled?this._onDrop():(H("setupClone",this),Ne.eventCanceled||((ne=N(X)).draggable=!1,ne.style["will-change"]="",this._hideClone(),x(ne,this.options.chosenClass,!1),Ne.clone=ne),n.cloneId=Fe((function(){H("clone",n),Ne.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(ne,X),n._hideClone(),U({sortable:n,name:"clone"}))})),t||x(X,o.dragClass,!0),t?(ke=!0,n._loopId=setInterval(n._emulateDragOver,50)):(m(document,"mouseup",n._onDrop),m(document,"touchend",n._onDrop),m(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,X)),g(document,"drop",n),k(X,"transform","translateZ(0)")),xe=!0,n._dragStartId=Fe(n._dragStarted.bind(n,t,e)),g(document,"selectstart",n),me=!0,h&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,o=this.el,s=e.target,a=this.options,l=a.group,c=Ne.active,u=le===l,d=a.sort,h=ce||c,f=this,p=!1;if(!Ee){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=v(s,a.draggable,o,!0),M("dragOver"),Ne.eventCanceled)return p;if(X.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return I(!1);if(ke=!1,c&&!a.disabled&&(u?d||(n=!Q.contains(X)):ce===this||(this.lastPutMode=le.checkPull(this,c,X,e))&&l.checkPut(this,c,X,e))){if(i="vertical"===this._getDirection(e,s),t=A(X),M("dragOverValid"),Ne.eventCanceled)return p;if(n)return Z=Q,N(),this._hideClone(),M("revert"),Ne.eventCanceled||(ee?Q.insertBefore(X,ee):Q.appendChild(X)),I(!0);if(!(l=T(o,a.draggable))||function(e,t,n){return n=A(T(n.el,n.options.draggable)),t?e.clientX>n.right+10||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+10}(e,i,this)&&!l.animated){if(l===X)return I(!1);if((s=l&&o===e.target?l:s)&&(y=A(s)),!1!==Ie(Q,o,X,t,s,y,e,!!s))return N(),o.appendChild(X),Z=o,D(),I(!0)}else if(s.parentNode===o){var g,m,b,y=A(s),w=(l=X.parentNode!==o,L=X.animated&&X.toRect||t,w=s.animated&&s.toRect||y,S=(q=i)?L.left:L.top,_=q?L.right:L.bottom,L=q?L.width:L.height,R=q?w.left:w.top,C=q?w.right:w.bottom,q=q?w.width:w.height,!(S===R||_===C||S+L/2===R+q/2)),_=i?"top":"left",C=E(s,"top","top")||E(X,"top","top"),S=C?C.scrollTop:void 0;if(be!==s&&(m=y[_],Ce=!1,Se=!w&&a.invertSwap||l),0!==(g=function(e,t,n,i,o,r,s,a){e=i?e.clientY:e.clientX;var l=i?n.height:n.width,c=i?n.top:n.left;i=i?n.bottom:n.right,n=!1;if(!s)if(a&&ye<l*o){if(Ce=!Ce&&(1===ve?c+l*r/2<e:e<i-l*r/2)||Ce)n=!0;else if(1===ve?e<c+ye:i-ye<e)return-ve}else if(c+l*(1-o)/2<e&&e<i-l*(1-o)/2)return function(e){return $(X)<$(e)?1:-1}(t);return(n=n||s)&&(e<c+l*r/2||i-l*r/2<e)?c+l/2<e?1:-1:0}(e,s,y,i,w?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,Se,be===s)))for(var O=$(X);(b=Z.children[O-=g])&&("none"===k(b,"display")||b===J););if(0===g||b===s)return I(!1);ve=g;var L=(be=s).nextElementSibling,R=!1,q=Ie(Q,o,X,t,s,y,e,R=1===g);if(!1!==q)return 1!==q&&-1!==q||(R=1===q),Ee=!0,setTimeout(je,30),N(),R&&!L?o.appendChild(X):s.parentNode.insertBefore(X,R?L:s),C&&P(C,0,S-C.scrollTop),Z=X.parentNode,void 0===m||Se||(ye=Math.abs(m-A(s)[_])),D(),I(!0)}if(o.contains(X))return I(!1)}return!1}function M(a,l){H(a,f,r({evt:e,isOwner:u,axis:i?"vertical":"horizontal",revert:n,dragRect:t,targetRect:y,canSort:d,fromSortable:h,target:s,completed:I,onMove:function(n,i){return Ie(Q,o,X,t,n,A(n),e,i)},changed:D},l))}function N(){M("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function I(t){return M("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(f),f!==h&&(x(X,(ce||c).options.ghostClass,!1),x(X,a.ghostClass,!0)),ce!==f&&f!==Ne.active?ce=f:f===Ne.active&&ce&&(ce=null),h===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){M("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===X&&!X.animated||s===o&&!s.animated)&&(be=null),a.dragoverBubble||e.rootEl||s===document||(X.parentNode[j]._isOutsideThisEl(e.target),t||G(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function D(){re=$(X),ae=$(X,a.draggable),U({sortable:f,name:"change",toEl:o,newIndex:re,newDraggableIndex:ae,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",G),m(document,"mousemove",G),m(document,"touchmove",G)},_offUpEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._onDrop),m(e,"touchend",this._onDrop),m(e,"pointerup",this._onDrop),m(e,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;re=$(X),ae=$(X,n.draggable),H("drop",this,{evt:e}),Z=X&&X.parentNode,re=$(X),ae=$(X,n.draggable),Ne.eventCanceled||(Ce=Se=xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Be(this.cloneId),Be(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&k(document.body,"user-select",""),k(X,"transform",""),e&&(me&&(e.cancelable&&e.preventDefault(),n.dropBubble||e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===Z||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),X&&(this.nativeDraggable&&m(X,"dragend",this),De(X),X.style["will-change"]="",me&&!xe&&x(X,(ce||this).options.ghostClass,!1),x(X,this.options.chosenClass,!1),U({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),Q!==Z?(0<=re&&(U({rootEl:Z,name:"add",toEl:Z,fromEl:Q,originalEvent:e}),U({sortable:this,name:"remove",toEl:Z,originalEvent:e}),U({rootEl:Z,name:"sort",toEl:Z,fromEl:Q,originalEvent:e}),U({sortable:this,name:"sort",toEl:Z,originalEvent:e})),ce&&ce.save()):re!==oe&&0<=re&&(U({sortable:this,name:"update",toEl:Z,originalEvent:e}),U({sortable:this,name:"sort",toEl:Z,originalEvent:e})),Ne.active&&(null!=re&&-1!==re||(re=oe,ae=se),U({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){H("nulling",this),Q=X=Z=J=ee=ne=te=ie=ue=de=me=re=ae=oe=se=be=ve=ce=le=Ne.dragged=Ne.ghost=Ne.clone=Ne.active=null,Oe.forEach((function(e){e.checked=!0})),Oe.length=he=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":var t;X&&(this._onDragOver(e),(t=e).dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault());break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)v(e=n[i],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||function(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,i){v(i=n.children[i],this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return v(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=z.modifyOption(this,e,t);n[e]=void 0!==i?i:t,"group"===e&&Pe(n)},destroy:function(){H("destroy",this);var e=this.el;e[j]=null,m(e,"mousedown",this._onTapStart),m(e,"touchstart",this._onTapStart),m(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(e,"dragover",this),m(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),_e.splice(_e.indexOf(this.el),1),this.el=e=null},_hideClone:function(){ie||(H("hideClone",this),Ne.eventCanceled||(k(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),ie=!0))},_showClone:function(e){"clone"!==e.lastPutMode?this._hideClone():ie&&(H("showClone",this),Ne.eventCanceled||(Q.contains(X)&&!this.options.group.revertClone?Q.insertBefore(ne,X):ee?Q.insertBefore(ne,ee):Q.appendChild(ne),this.options.group.revertClone&&this.animate(X,ne),k(ne,"display",""),ie=!1))}},Te&&g(document,"touchmove",(function(e){(Ne.active||xe)&&e.cancelable&&e.preventDefault()})),Ne.utils={on:g,off:m,css:k,find:C,is:function(e,t){return!!v(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:M,closest:v,toggleClass:x,clone:N,index:$,nextTick:Fe,cancelNextTick:Be,detectDirection:Me,getChild:O},Ne.get=function(e){return e[j]},Ne.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(t=t[0].constructor===Array?t[0]:t).forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ne.utils=r({},Ne.utils,e.utils)),z.mount(e)}))},Ne.create=function(e,t){return new Ne(e,t)};var ze,We,He,Ue,Ve,Ke,Ge=[],Ye=!(Ne.version="1.10.2");function Xe(){Ge.forEach((function(e){clearInterval(e.pid)})),Ge=[]}function Ze(){clearInterval(Ke)}function Je(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,s=e.hideGhostForTarget;e=e.unhideGhostForTarget;t&&(o=n||o,s(),s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t=document.elementFromPoint(s.clientX,s.clientY),e(),o&&!o.el.contains(t)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n})))}var Qe,et=M((function(e,t,n,i){if(t.scroll){var o,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,c=S(),u=!1,d=(We!==n&&(We=n,Xe(),ze=t.scroll,o=t.scrollFn,!0===ze&&(ze=R(n,!0))),0),h=ze;do{var f=h,p=(y=A(f)).top,g=y.bottom,m=y.left,b=y.right,v=y.width,y=y.height,w=void 0,x=f.scrollWidth,_=f.scrollHeight,C=k(f),E=f.scrollLeft,O=f.scrollTop,T=f===c?(w=v<x&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),y<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=v<x&&("auto"===C.overflowX||"scroll"===C.overflowX),y<_&&("auto"===C.overflowY||"scroll"===C.overflowY));C=w&&(Math.abs(b-r)<=a&&E+v<x)-(Math.abs(m-r)<=a&&!!E),w=T&&(Math.abs(g-s)<=a&&O+y<_)-(Math.abs(p-s)<=a&&!!O);if(!Ge[d])for(var $=0;$<=d;$++)Ge[$]||(Ge[$]={});Ge[d].vx==C&&Ge[d].vy==w&&Ge[d].el===f||(Ge[d].el=f,Ge[d].vx=C,Ge[d].vy=w,clearInterval(Ge[d].pid),0==C&&0==w||(u=!0,Ge[d].pid=setInterval(function(){i&&0===this.layer&&Ne.active._onTouchMove(Ve);var t=Ge[this.layer].vy?Ge[this.layer].vy*l:0,n=Ge[this.layer].vx?Ge[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(Ne.dragged.parentNode[j],n,t,e,Ve,Ge[this.layer].el)||P(Ge[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=R(h,!1)));Ye=u}}),30);function tt(){}function nt(){}function it(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){e=e.dragEl,Qe=e},dragOverValid:function(e){var t,n=e.completed,i=e.target,o=e.onMove,r=e.activeSortable,s=e.changed;e=e.cancel;r.options.swap&&(r=this.sortable.el,t=this.options,i&&i!==r&&(r=Qe,Qe=!1!==o(i)?(x(i,t.swapClass,!0),i):null,r&&r!==Qe&&x(r,t.swapClass,!1)),s(),n(!0),e())},drop:function(e){var t,n,i,o=e.activeSortable,r=e.putSortable,s=(e=e.dragEl,r||this.sortable),a=this.options;Qe&&x(Qe,a.swapClass,!1),Qe&&(a.swap||r&&r.options.swap)&&e!==Qe&&(s.captureAnimationState(),s!==o&&o.captureAnimationState(),a=Qe,e=(r=e).parentNode,i=a.parentNode,e&&i&&!e.isEqualNode(a)&&!i.isEqualNode(r)&&(t=$(r),n=$(a),e.isEqualNode(i)&&t<n&&n++,e.insertBefore(a,e.children[t]),i.insertBefore(r,i.children[n])),s.animateAll(),s!==o&&o.animateAll())},nulling:function(){Qe=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Qe}}})}tt.prototype={startIndex:null,dragStart:function(e){e=e.oldDraggableIndex,this.startIndex=e},onSpill:function(e){var t=e.dragEl,n=(e=e.putSortable,this.sortable.captureAnimationState(),e&&e.captureAnimationState(),O(this.sortable.el,this.startIndex,this.options));n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),e&&e.animateAll()},drop:Je},o(tt,{pluginName:"revertOnSpill"}),nt.prototype={onSpill:function(e){var t=e.dragEl;(e=e.putSortable||this.sortable).captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),e.animateAll()},drop:Je},o(nt,{pluginName:"removeOnSpill"});var ot,rt,st,at,lt,ct=[],ut=[],dt=!1,ht=!1,ft=!1;function pt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var i="";ct.length&&rt===e?ct.forEach((function(e,t){i+=(t?", ":"")+e.textContent})):i=n.textContent,t.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){e=e.dragEl,st=e},delayEnded:function(){this.isMultiDrag=~ct.indexOf(st)},setupClone:function(e){var t=e.sortable;e=e.cancel;if(this.isMultiDrag){for(var n=0;n<ct.length;n++)ut.push(N(ct[n])),ut[n].sortableIndex=ct[n].sortableIndex,ut[n].draggable=!1,ut[n].style["will-change"]="",x(ut[n],this.options.selectedClass,!1),ct[n]===st&&x(ut[n],this.options.chosenClass,!1);t._hideClone(),e()}},clone:function(e){var t=e.sortable,n=e.rootEl,i=e.dispatchSortableEvent;e=e.cancel;this.isMultiDrag&&!this.options.removeCloneOnHide&&ct.length&&rt===t&&(gt(!0,n),i("clone"),e())},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl;e=e.cancel;this.isMultiDrag&&(gt(!1,n),ut.forEach((function(e){k(e,"display","")})),t(),lt=!1,e())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden);e=e.cancel;this.isMultiDrag&&(ut.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),lt=!0,e())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&rt&&rt.multiDrag._deselectMultiDrag(),ct.forEach((function(e){e.sortableIndex=$(e)})),ct=ct.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),ft=!0},dragStarted:function(e){var t,n=this;e=e.sortable;this.isMultiDrag&&(this.options.sort&&(e.captureAnimationState(),this.options.animation&&(ct.forEach((function(e){e!==st&&k(e,"position","absolute")})),t=A(st,!1,!0,!0),ct.forEach((function(e){e!==st&&I(e,t)})),dt=ht=!0)),e.animateAll((function(){dt=ht=!1,n.options.animation&&ct.forEach((function(e){D(e)})),n.options.sort&&mt()})))},dragOver:function(e){var t=e.target,n=e.completed;e=e.cancel;ht&&~ct.indexOf(t)&&(n(!1),e())},revert:function(e){var t,n,i=e.fromSortable,o=e.rootEl,r=e.sortable,s=e.dragRect;1<ct.length&&(ct.forEach((function(e){r.addAnimationState({target:e,rect:ht?A(e):s}),D(e),e.fromRect=s,i.removeAnimationState(e)})),ht=!1,t=!this.options.removeCloneOnHide,n=o,ct.forEach((function(e,i){(i=n.children[e.sortableIndex+(t?Number(i):0)])?n.insertBefore(e,i):n.appendChild(e)})))},dragOverCompleted:function(e){var t,n=e.sortable,i=e.isOwner,o=e.insertion,r=e.activeSortable,s=e.parentEl,a=(e=e.putSortable,this.options);o&&(i&&r._hideClone(),dt=!1,a.animation&&1<ct.length&&(ht||!i&&!r.options.sort&&!e)&&(t=A(st,!1,!0,!0),ct.forEach((function(e){e!==st&&(I(e,t),s.appendChild(e))})),ht=!0),i||(ht||mt(),1<ct.length?(o=lt,r._showClone(n),r.options.animation&&!lt&&o&&ut.forEach((function(e){r.addAnimationState({target:e,rect:at}),e.fromRect=at,e.thisAnimationDuration=null}))):r._showClone(n)))},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner;e=e.activeSortable;ct.forEach((function(e){e.thisAnimationDuration=null})),e.options.animation&&!n&&e.multiDrag.isMultiDrag&&(at=o({},t),n=_(st,!0),at.top-=n.f,at.left-=n.e)},dragOverAnimationComplete:function(){ht&&(ht=!1,mt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,o=e.sortable,r=e.dispatchSortableEvent,s=e.oldIndex,a=(e=e.putSortable)||this.sortable;if(t){var l,c,u,d=this.options,h=i.children;if(!ft)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(st,d.selectedClass,!~ct.indexOf(st)),~ct.indexOf(st))ct.splice(ct.indexOf(st),1),ot=null,W({sortable:o,rootEl:n,name:"deselect",targetEl:st,originalEvt:t});else{if(ct.push(st),W({sortable:o,rootEl:n,name:"select",targetEl:st,originalEvt:t}),t.shiftKey&&ot&&o.el.contains(ot)){var f=$(ot),p=$(st);if(~f&&~p&&f!==p)for(var g,m=f<p?(g=f,p):(g=p,f+1);g<m;g++)~ct.indexOf(h[g])||(x(h[g],d.selectedClass,!0),ct.push(h[g]),W({sortable:o,rootEl:n,name:"select",targetEl:h[g],originalEvt:t}))}else ot=st;rt=a}ft&&this.isMultiDrag&&((i[j].options.sort||i!==n)&&1<ct.length&&(l=A(st),c=$(st,":not(."+this.options.selectedClass+")"),!dt&&d.animation&&(st.thisAnimationDuration=null),a.captureAnimationState(),dt||(d.animation&&(st.fromRect=l,ct.forEach((function(e){var t;e.thisAnimationDuration=null,e!==st&&(t=ht?A(e):l,e.fromRect=t,a.addAnimationState({target:e,rect:t}))}))),mt(),ct.forEach((function(e){h[c]?i.insertBefore(e,h[c]):i.appendChild(e),c++})),s===$(st)&&(u=!1,ct.forEach((function(e){e.sortableIndex!==$(e)&&(u=!0)})),u&&r("update"))),ct.forEach((function(e){D(e)})),a.animateAll()),rt=a),(n===i||e&&"clone"!==e.lastPutMode)&&ut.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=ft=!1,ut.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==ft&&ft||rt!==this.sortable||e&&v(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ct.length;){var t=ct[0];x(t,this.options.selectedClass,!1),ct.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[j];t&&t.options.multiDrag&&!~ct.indexOf(e)&&(rt&&rt!==t&&(rt.multiDrag._deselectMultiDrag(),rt=t),x(e,t.options.selectedClass,!0),ct.push(e))},deselect:function(e){var t=e.parentNode[j],n=ct.indexOf(e);t&&t.options.multiDrag&&~n&&(x(e,t.options.selectedClass,!1),ct.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return ct.forEach((function(i){var o;t.push({multiDragElement:i,index:i.sortableIndex}),o=ht&&i!==st?-1:ht?$(i,":not(."+e.options.selectedClass+")"):$(i),n.push({multiDragElement:i,index:o})})),{items:a(ct),clones:[].concat(ut),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":1<e.length&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function gt(e,t){ut.forEach((function(n,i){(i=t.children[n.sortableIndex+(e?Number(i):0)])?t.insertBefore(n,i):t.appendChild(n)}))}function mt(){ct.forEach((function(e){e!==st&&e.parentNode&&e.parentNode.removeChild(e)}))}Ne.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){e=e.originalEvent,this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){e=e.originalEvent,this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),Ze(),Xe(),clearTimeout(y),y=void 0},nulling:function(){Ve=We=ze=Ye=Ke=He=Ue=null,Ge.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n,i=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(o,r);Ve=e,t||u||c||h?(et(e,this.options,s,t),n=R(s,!0),!Ye||Ke&&o===He&&r===Ue||(Ke&&Ze(),Ke=setInterval((function(){var s=R(document.elementFromPoint(o,r),!0);s!==n&&(n=s,Xe()),et(e,i.options,s,t)}),10),He=o,Ue=r)):this.options.bubbleScroll&&R(s,!0)!==S()?et(e,this.options,R(s,!1),!1):Xe()}},o(e,{pluginName:"scroll",initializeByDefault:!0})}),Ne.mount(nt,tt),t.default=Ne},function(e,t,n){var i=n(57);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("4aebfd3a",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".remoteApis[data-v-bb17fa64]{width:100%;margin-bottom:6px}.remoteApis/deep/.el-input--prefix .el-input__inner[data-v-bb17fa64]{padding-left:85px}.remoteApis/deep/.el-input__prefix[data-v-bb17fa64]{left:0;width:75px;color:#999}",""])},function(e,t,n){var i=n(59);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("d933e2b8",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,'.fm-uplaod-container .is-disabled{position:relative}.fm-uplaod-container .is-disabled:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"";display:block;cursor:not-allowed}.fm-uplaod-container .upload-file{margin:0 10px 10px 0;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;box-sizing:border-box;position:relative;vertical-align:top}.fm-uplaod-container .upload-file:hover .uplaod-action{display:flex}.fm-uplaod-container .upload-file .uplaod-action{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.6);display:none;justify-content:center;align-items:center}.fm-uplaod-container .upload-file .uplaod-action i{color:#fff;cursor:pointer;margin:0 5px}.fm-uplaod-container .upload-file.is-success .item-status{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.fm-uplaod-container .upload-file.is-success .item-status>i{font-size:12px;margin-top:11px;color:#fff;transform:rotate(-45deg)}.fm-uplaod-container .upload-file.uploading:before{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.3)}.fm-uplaod-container .upload-file .upload-progress{position:absolute}.fm-uplaod-container .upload-file .upload-progress .el-progress__text{color:#fff;font-size:16px!important}.fm-uplaod-container .upload-file img{max-width:100%;max-height:100%;vertical-align:middle}.fm-uplaod-container .el-upload--picture-card{position:relative;overflow:hidden}.fm-uplaod-container .el-upload--picture-card .el-icon-plus{position:absolute;top:50%;left:50%}.fm-uplaod-container .upload-input{position:absolute;top:0;left:0;right:0;bottom:0;display:block;opacity:0;cursor:pointer}.fm-uplaod-container .drag-img-list{display:inline}.fm-uplaod-container .drag-img-list .ghost{position:relative}.fm-uplaod-container .drag-img-list .ghost:after{width:100%;height:100%;display:block;content:"";background:#fbfdff;position:absolute;top:0;bottom:0;left:0;right:0;border:1px dashed #3bb3c2}.fm-uplaod-container .drag-img-list>div{cursor:move}.viewer-container{z-index:9999!important}',""])},function(e,t,n){var i=n(61);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("cc727a72",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,'/*!\n * Viewer.js v1.10.5\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2022-04-05T08:21:00.150Z\n */.viewer-close:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen-exit:before,.viewer-fullscreen:before,.viewer-next:before,.viewer-one-to-one:before,.viewer-play:before,.viewer-prev:before,.viewer-reset:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-zoom-in:before,.viewer-zoom-out:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container ::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container ::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:rgba(0,0,0,50%);overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;right:0;z-index:1}.viewer-player,.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:rgba(0,0,0,50%);border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:rgba(0,0,0,80%)}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:rgba(0,0,0,80%);border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:0 5% 5px;max-width:90%;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:rgba(0,0,0,50%);border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:rgba(0,0,0,80%)}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:rgba(0,0,0,50%)}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:-webkit-grab;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@-webkit-keyframes viewer-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes viewer-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.viewer-loading:after{-webkit-animation:viewer-spinner 1s linear infinite;animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,10%);border-left-color:rgba(255,255,255,50%);border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width:767px){.viewer-hide-xs-down{display:none}}@media (max-width:991px){.viewer-hide-sm-down{display:none}}@media (max-width:1199px){.viewer-hide-md-down{display:none}}',""])},function(e,t,n){"use strict";t.byteLength=function(e){return 3*((e=c(e))[0]+(e=e[1]))/4-e},t.toByteArray=function(e){var t,n,i=(s=c(e))[0],s=s[1],a=new r(function(e,t){return 3*(e+t)/4-t}(i,s)),l=0,u=0<s?i-4:i;for(n=0;n<u;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,a[l++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,a[l++]=t>>8&255,a[l++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r=[],s=0,a=n-o;s<a;s+=16383)r.push(function(e,t,n){for(var o,r=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),r.push(function(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}(o));return r.join("")}(e,s,a<s+16383?a:s+16383));return 1==o?(t=e[n-1],r.push(i[t>>2]+i[t<<4&63]+"==")):2==o&&(t=(e[n-2]<<8)+e[n-1],r.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return t=(e=-1===(e=e.indexOf("="))?t:e)===t?0:4-e%4,[e,t]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
39
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
40
+ t.read=function(e,t,n,i,o){var r,s,a=8*o-i-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?o-1:0,h=n?-1:1;o=e[t+d];for(d+=h,r=o&(1<<-u)-1,o>>=-u,u+=a;0<u;r=256*r+e[t+d],d+=h,u-=8);for(s=r&(1<<-u)-1,r>>=-u,u+=i;0<u;s=256*s+e[t+d],d+=h,u-=8);if(0===r)r=1-c;else{if(r===l)return s?NaN:1/0*(o?-1:1);s+=Math.pow(2,i),r-=c}return(o?-1:1)*s*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var s,a,l=8*r-o-1,c=(1<<l)-1,u=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:r-1,f=i?1:-1;r=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-s))<1&&(s--,i*=2),2<=(t+=1<=s+u?d/i:d*Math.pow(2,1-u))*i&&(s++,i/=2),c<=s+u?(a=0,s=c):1<=s+u?(a=(t*i-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));8<=o;e[n+h]=255&a,h+=f,a/=256,o-=8);for(s=s<<o|a,l+=o;0<l;e[n+h]=255&s,h+=f,s/=256,l-=8);e[n+h-f]|=128*r}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var i=n(66);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("1bc70e30",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".cus-dialog-container .el-dialog__footer{margin:0 20px;padding:15px 0 16px;text-align:center;position:relative}.cus-dialog-container .el-dialog__footer .dialog-footer{display:block}.cus-dialog-container .el-dialog__footer .dialog-footer .circular{display:inline-block;vertical-align:middle;margin-right:5px;width:24px;height:24px}.cus-dialog-container .el-dialog__footer .dialog-footer .el-loading-text{display:inline-block;vertical-align:middle}.cus-dialog-container .el-dialog__footer .dialog-footer .el-loading-spinner{margin-top:-12px}",""])},function(e,t,n){var i=n(68);(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i).locals&&(e.exports=i.locals),(0,n(2).default)("9f8e12e4",i,!0,{})},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"",""])},function(e,t,n){"use strict";var i=n(0),o=n(15),r=n(70),s=n(22),a=function e(t){var n=new r(t),a=o(r.prototype.request,n);return i.extend(a,r.prototype,n),i.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(10));a.Axios=r,a.CanceledError=n(7),a.CancelToken=n(85),a.isCancel=n(21),a.VERSION=n(23).version,a.toFormData=n(18),a.AxiosError=n(6),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(86),a.isAxiosError=n(87),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";var i=n(0),o=n(16),r=n(71),s=n(72),a=n(22),l=n(20),c=n(84),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n,i=(void 0!==(e=t.transitional)&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1),[]),o=!0,r=(this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))})),[]);if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),o){for(var l=t;i.length;){var d=i.shift(),h=i.shift();try{l=d(l)}catch(e){h(e);break}}try{n=s(l)}catch(e){return Promise.reject(e)}for(;r.length;)n=n.then(r.shift(),r.shift())}else{var f=[s,void 0];for(Array.prototype.unshift.apply(f,i),f=f.concat(r),n=Promise.resolve(t);f.length;)n=n.then(f.shift(),f.shift())}return n},d.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},function(e,t,n){"use strict";var i=n(0);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var i=n(0),o=n(73),r=n(21),s=n(10),a=n(7);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var i=n(0),o=n(10);e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},function(e,t){var n,i;e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(e){i=r}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return(n=setTimeout)(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&h())}function h(){if(!c){for(var e=s(d),t=(c=!0,l.length);t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===r||!i)&&clearTimeout)return(i=clearTimeout)(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.prependListener=p,e.prependOnceListener=p,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},function(e,t,n){"use strict";var i=n(0);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},function(e,t,n){"use strict";var i=n(6);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var i=n(0);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){return(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var i=n(0),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,r={};return e&&i.forEach(e.split("\n"),(function(e){n=e.indexOf(":"),t=i.trim(e.substr(0,n)).toLowerCase(),n=i.trim(e.substr(n+1)),!t||r[t]&&0<=o.indexOf(t)||(r[t]="set-cookie"===t?(r[t]||[]).concat([n]):r[t]?r[t]+", "+n:n)})),r}},function(e,t,n){"use strict";var i,o,r,s=n(0);function a(e){return o&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}e.exports=s.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i=a(window.location.href),function(e){return(e=s.isString(e)?a(e):e).protocol===i.protocol&&e.host===i.host}):function(){return!0}},function(e,t,n){"use strict";e.exports=function(e){return(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var i=n(23).version,o=n(6),r={},s=(["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}})),{});r.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new o(r(i," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[i]&&(s[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;0<r--;){var s=i[r];if(a=t[s]){var a,l=e[s];if(!0!==(a=void 0===l||a(l,s,e)))throw new o("option "+s+" must be "+a,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:r}},function(e,t,n){"use strict";var i=n(7);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");this.promise=new Promise((function(e){t=e}));var t,n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length,i=0;i<t;i++)n._listeners[i](e);n._listeners=null}})),this.promise.then=function(e){var t;return(e=new Promise((function(e){n.subscribe(e),t=e})).then(e)).cancel=function(){n.unsubscribe(t)},e},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){!this._listeners||-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var i=n(0);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){"use strict";function i(e,t,n,i,o,r,s,a){var l,c,u=typeof(e=e||{}).default;u="function"==typeof(e="object"!=u&&"function"!=u?e:e.default)?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId=r),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l&&(u.functional?(u._injectStyles=l,c=u.render,u.render=function(e,t){return l.call(t),c(e,t)}):(t=u.beforeCreate,u.beforeCreate=t?[].concat(t,l):[l])),{exports:e,options:u}}n.r(t);var o=i({name:"ThCell",props:{title:Number|String,value:Number|String,label:String,icon:String,customStyle:String|Object,titleStyle:String|Object,customClass:String|Object,titleClass:String|Object,labelClass:String|Object,valueClass:String|Object,cellActiveClass:String|Object,titleActiveClass:String|Object,labelActiveClass:String|Object,valueActiveClass:String|Object,cellHoverClass:String|Object,titleHoverClass:String|Object,labelHoverClass:String|Object,valueHoverClass:String|Object,center:Boolean,hover:Boolean,active:Boolean},computed:{cellActive:function(){return this.cellActiveClass||"is-active"},titleActive:function(){return this.titleActiveClass||"is-active"},labelActive:function(){return this.labelActiveClass||"is-active"},valueActive:function(){return this.valueActiveClass||"is-active"},cellHover:function(){return this.cellHoverClass||"is-hover"},titleHover:function(){return this.titleHoverClass||"is-hover"},labelHover:function(){return this.labelHoverClass||"is-hover"},valueHover:function(){return this.valueHoverClass||"is-hover"}},methods:{handleClick:function(e){this.$emit("click",e)}}},(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"th-cell",class:[e.customClass,e.center?"is-center":"",e.active?e.cellActive:"",e.hover?e.cellHover:""],style:e.customStyle,on:{click:e.handleClick}},[e.icon?t("i",{staticClass:"th-cell-icon",class:e.icon}):e._t("icon"),e._v(" "),t("div",{staticClass:"th-cell-content"},[e.title?t("div",{staticClass:"th-cell-title",class:[e.titleClass,e.active?e.titleActive:"",e.hover?e.titleHover:""],style:e.titleStyle},[e._v("\n "+e._s(e.title)+"\n ")]):e._t("title"),e._v(" "),e.label?t("div",{staticClass:"th-cell-label",class:[e.labelClass,e.active?e.labelActive:"",e.hover?e.labelHover:""]},[e._v("\n "+e._s(e.label)+"\n ")]):e._t("label")],2),e._v(" "),e.value?t("div",{staticClass:"th-cell-value",class:[e.valueClass,e.active?e.valueActive:"",e.hover?e.valueHover:""]},[e._v("\n "+e._s(e.value)+"\n ")]):e._t("default")],2)}),[],!1,null,null,null).exports,r=(o.install=function(e){e.component(o.name,o)},o),s=i({name:"ThIcons",props:["value","width"],data:function(){return{icons:["el-icon-platform-eleme","el-icon-eleme","el-icon-delete-solid","el-icon-delete","el-icon-s-tools","el-icon-setting","el-icon-user-solid","el-icon-user","el-icon-phone","el-icon-phone-outline","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-s-goods","el-icon-goods","el-icon-warning","el-icon-warning-outline","el-icon-question","el-icon-info","el-icon-remove","el-icon-circle-plus","el-icon-success","el-icon-error","el-icon-zoom-in","el-icon-zoom-out","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-circle-check","el-icon-circle-close","el-icon-s-help","el-icon-help","el-icon-minus","el-icon-plus","el-icon-check","el-icon-close","el-icon-picture","el-icon-picture-outline","el-icon-picture-outline-round","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-camera-solid","el-icon-camera","el-icon-video-camera-solid","el-icon-video-camera","el-icon-message-solid","el-icon-bell","el-icon-s-cooperation","el-icon-s-order","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-operation","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-video-pause","el-icon-video-play","el-icon-refresh","el-icon-refresh-right","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-loading","el-icon-view","el-icon-c-scale-to-original","el-icon-date","el-icon-edit","el-icon-edit-outline","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-tickets","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-document","el-icon-document-add","el-icon-printer","el-icon-paperclip","el-icon-takeaway-box","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors","el-icon-umbrella","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-data-line","el-icon-data-board","el-icon-pie-chart","el-icon-data-analysis","el-icon-collection-tag","el-icon-film","el-icon-suitcase","el-icon-suitcase-1","el-icon-receiving","el-icon-collection","el-icon-files","el-icon-notebook-1","el-icon-notebook-2","el-icon-toilet-paper","el-icon-office-building","el-icon-school","el-icon-table-lamp","el-icon-house","el-icon-no-smoking","el-icon-smoking","el-icon-shopping-cart-full","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-sold-out","el-icon-sell","el-icon-present","el-icon-box","el-icon-bank-card","el-icon-money","el-icon-coin","el-icon-wallet","el-icon-discount","el-icon-price-tag","el-icon-news","el-icon-guide","el-icon-male","el-icon-female","el-icon-thumb","el-icon-cpu","el-icon-link","el-icon-connection","el-icon-open","el-icon-turn-off","el-icon-set-up","el-icon-chat-round","el-icon-chat-line-round","el-icon-chat-square","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-square","el-icon-message","el-icon-postcard","el-icon-position","el-icon-turn-off-microphone","el-icon-microphone","el-icon-close-notification","el-icon-bangzhu","el-icon-time","el-icon-odometer","el-icon-crop","el-icon-aim","el-icon-switch-button","el-icon-full-screen","el-icon-copy-document","el-icon-mic","el-icon-stopwatch","el-icon-medal-1","el-icon-medal","el-icon-trophy","el-icon-trophy-1","el-icon-first-aid-kit","el-icon-discover","el-icon-place","el-icon-location","el-icon-location-outline","el-icon-location-information","el-icon-add-location","el-icon-delete-location","el-icon-map-location","el-icon-alarm-clock","el-icon-timer","el-icon-watch-1","el-icon-watch","el-icon-lock","el-icon-unlock","el-icon-key","el-icon-service","el-icon-mobile-phone","el-icon-bicycle","el-icon-truck","el-icon-ship","el-icon-basketball","el-icon-football","el-icon-soccer","el-icon-baseball","el-icon-wind-power","el-icon-light-rain","el-icon-lightning","el-icon-heavy-rain","el-icon-sunrise","el-icon-sunrise-1","el-icon-sunset","el-icon-sunny","el-icon-cloudy","el-icon-partly-cloudy","el-icon-cloudy-and-sunny","el-icon-moon","el-icon-moon-night","el-icon-dish","el-icon-dish-1","el-icon-food","el-icon-chicken","el-icon-fork-spoon","el-icon-knife-fork","el-icon-burger","el-icon-tableware","el-icon-sugar","el-icon-dessert","el-icon-ice-cream","el-icon-hot-water","el-icon-water-cup","el-icon-coffee-cup","el-icon-cold-drink","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-refrigerator","el-icon-grape","el-icon-watermelon","el-icon-cherry","el-icon-apple","el-icon-pear","el-icon-orange","el-icon-coffee","el-icon-ice-tea","el-icon-ice-drink","el-icon-milk-tea","el-icon-potato-strips","el-icon-lollipop","el-icon-ice-cream-square","el-icon-ice-cream-round"]}},created:function(){},methods:{handleIconClick:function(e){this.$emit("input",e)},handleInputClear:function(){this.$emit("input","")}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-popover",{attrs:{placement:"bottom-start",title:"Element图标库",width:e.width||400,trigger:"click"}},[n("el-input",{attrs:{slot:"reference",value:e.value,placeholder:"请选择图标",clearable:""},on:{clear:e.handleInputClear},slot:"reference"},[e.value?n("div",{staticClass:"input-prefix",attrs:{slot:"prefix"},slot:"prefix"},[n("i",{staticClass:"icon",class:e.value})]):e._e()]),e._v(" "),n("div",{staticClass:"th-icons"},e._l(e.icons,(function(t,i){return n("i",{key:i,staticClass:"icon",class:t,on:{click:function(n){return e.handleIconClick(t)}}})})),0)],1)],1)}),[],!1,(function(e){n(29)}),"data-v-75b078fd",null).exports,a=(s.install=function(e){e.component(s.name,s)},s),l=i({name:"TableColumn",props:{options:{type:Array,default:function(){return[]}}},created:function(){console.log(this.options)}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.options,(function(t,i){return[t.hide?e._e():[t.type?n("el-table-column",{key:i,attrs:{type:t.type,label:t.label,width:"50"}}):t.children?n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align,fixed:t.fixed,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":""}},[n("TableColumn",{key:i,attrs:{options:t.children}})],1):n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align,fixed:t.fixed,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(i){return[t.slot?e._t("slot",null,{scope:i,option:t}):n("span",[e._v(e._s(i.row[t.prop]))])]}}],null,!0)})]]}))],2)}),[],!1,(function(e){n(33)}),null,null);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=i({name:"ThTable",components:{TableColumn:l.exports},props:{data:{type:Array,default:function(){return[]}},options:{type:Array,default:function(){return[]}},selectType:{type:String,default:function(){return""}},dblclick:{type:Function,default:function(){return null}},stripe:{type:Boolean,default:function(){return!1}},treeProps:{type:Object,default:function(){return{}}},pageInfo:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:function(){return!1}},height:String|Number,rowKey:{type:String,default:function(){return""}},showPage:{type:Boolean,default:function(){return!0}},emptyText:{type:String,default:function(){return"暂无数据"}},loadingText:{type:String,default:function(){return"加载中"}},border:{type:Boolean,default:function(){return!1}}},data:function(){return{}},methods:{handleSelectionChange:function(e){e&&this.$emit("selection-change",e)},handleSingleSelect:function(e,t){e&&this.$emit("select-row-change",e)},handleSizeChange:function(e){this.pageInfo.pageSize=e,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handleCurrentChange:function(e){this.pageInfo.currentPage=e,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize)},handlePrevClick:function(){1!==this.pageInfo.currentPage&&(--this.pageInfo.currentPage,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},handleNextClick:function(){this.pageInfo.currentPage!==this.pageInfo.pageCount&&(this.pageInfo.currentPage+=1,this.$emit("page-number-change",this.pageInfo.currentPage,this.pageInfo.pageSize))},getTable:function(){return this.$refs.th_table},handleFormatTime:function(e,t){if(0===arguments.length)return null;if(t=t||"yyyy-MM-dd HH:mm:ss",null==e||"null"===e)return"";var n={yyyy:(e="object"===c(e)?e:("number"==typeof(e="string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e):e)&&10===e.toString().length&&(e*=1e3),new Date(e))).getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),a:e.getDay()};return t.replace(/(yyyy|MM|dd|HH|mm|ss|a)/g,(function(e,t){var i=n[t];return"a"===t?["日","一","二","三","四","五","六"][i]:(i=0<e.length&&i<10?"0"+i:i)||0}))},objectSpanMethod:function(e){this.$emit("span-method",e)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"th_table",attrs:{height:e.height,data:e.data,"row-key":e.rowKey,stripe:e.stripe,border:e.border,"highlight-current-row":"single"===e.selectType,"tree-props":e.treeProps,"span-method":e.objectSpanMethod},on:{"current-change":e.handleSingleSelect,"row-dblclick":e.dblclick,"selection-change":e.handleSelectionChange},scopedSlots:e._u([{key:"empty",fn:function(){return[n("div",[e._v("\n "+e._s(e.loading?e.loadingText||"加载中":e.emptyText||"暂无数据")+"\n ")])]},proxy:!0}])},[e._l(e.options,(function(t,i){return[t.hide?e._e():[t.type?n("el-table-column",{key:i,attrs:{type:t.type,label:t.label,width:"50"}}):t.children?n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align||"left",fixed:t.fixed||null,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":""}},[n("table-column",{attrs:{options:t.children}})],1):n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,width:t.width,align:t.align||"left",fixed:t.fixed||null,sortable:t.sortable,"sort-method":t.sortMethod,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(i){return[t.slot?e._t(t.slot,null,{scope:i,option:t}):t.format?n("span",[e._v("\n "+e._s(e.handleFormatTime(i.row[t.alias||t.prop],t.format))+"\n ")]):t.alias?n("span",[e._v(e._s(i.row[t.alias]))]):n("span",[e._v(e._s(i.row[t.prop]))])]}}],null,!0)})]]}))],2),e._v(" "),0<Object.keys(e.pageInfo).length&&e.showPage?n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{"current-page":e.pageInfo.currentPage,"page-sizes":e.pageInfo.sizes,"page-size":e.pageInfo.pageSize,layout:"total, prev, pager, next, sizes",total:e.pageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"prev-click":e.handlePrevClick,"next-click":e.handleNextClick}})],1):e._e()],1)}),[],!1,(function(e){n(31)}),"data-v-1e3490b7",null).exports,d=(l=(u.install=function(e){e.component(u.name,u)},u),i({name:"ThTableAction",props:{actions:{type:Array,default:function(){return[]}},scope:{type:Object|String},permission:{type:Object,required:!1},msg:{type:String,default:"确定删除本条数据吗?"}},data:function(){return{pop:!1,loadingDel:!1}},computed:{btnDisabled:function(){var e=this;return function(t){return t.disabled instanceof Boolean?t.disabled:t.disabled instanceof Function?t.disabled(e.scope):void 0}}},methods:{handleCancel:function(){this.loadingDel=!1,this.pop=!1},handleClick:function(e,t){this.$emit("on-click",e,t)},handleDelete:function(e){var t=this;this.loadingDel=!0,this.handleClick(e,(function(e){e?t.handleCancel():t.loadingDel=!1}))},handleMore:function(e,t,n){for(var i=0;i<n.children.length;i++){var o=n.children[i];if(o.act===e){this.handleClick(o);break}}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table-action",on:{click:function(e){e.stopPropagation()}}},[e._l(e.actions,(function(t,i){return["delete"===t.act?n("el-popover",{key:i,attrs:{placement:"top",width:"180",trigger:"manual"},model:{value:e.pop,callback:function(t){e.pop=t},expression:"pop"}},[n("p",[e._v(e._s(t.delmsg||e.msg))]),e._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",disabled:e.loadingDel},on:{click:e.handleCancel}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"text",loading:e.loadingDel},on:{click:function(n){return e.handleDelete(t)}}},[e._v("确定")])],1),e._v(" "),n("el-button",{style:t.style,attrs:{slot:"reference",disabled:e.loadingDel||e.btnDisabled(t),type:t.type,icon:t.icon},on:{click:function(t){e.pop=!0}},slot:"reference"},[e._v(e._s(t.name))])],1):"more"===t.act?n("el-dropdown",{key:i,attrs:{trigger:t.trigger||"click",placement:t.placement||"bottom-end",disabled:e.btnDisabled(t)},on:{command:function(n){e.handleMore(n,i,t)}}},[n("el-button",{style:t.style,attrs:{disabled:e.loadingDel||e.btnDisabled(t),type:t.type,icon:t.icon}},[e._v(e._s(t.name))]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(t.children,(function(t,i){return n("el-dropdown-item",{key:i,style:t.style,attrs:{command:t.act,icon:t.icon,disabled:t.disabled}},[e._v(e._s(t.name))])})),1)],1):n("el-button",{key:i,style:t.style,attrs:{type:t.type,icon:t.icon,disabled:e.btnDisabled(t)},on:{click:function(n){return e.handleClick(t)}}},[e._v(e._s(t.name))])]}))],2)}),[],!1,(function(e){n(35)}),null,null).exports),h=(d.install=function(e){e.component(d.name,d)},d),f=i({name:"ThTableSearch",props:{options:{type:Array,default:function(){return[]}},params:{type:Object,default:function(){return{}}}},data:function(){return{datePickerTypes:["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"]}},methods:{doSearch:function(){this.$emit("on-search",this.params)},doReset:function(){this.$emit("on-reset",this.params)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-table-search"},[e._l(e.options,(function(t,i){return["input"===t.type?n("div",{key:i,staticClass:"th-table-search-item"},[n("span",{staticClass:"th-table-search-item-title"},[e._v(e._s(t.props.label)+":")]),e._v(" "),n("el-input",{style:{width:t.width+"px"},attrs:{placeholder:t.placeholder||"请输入",size:t.size,clearable:""},model:{value:e.params[t.props.prop],callback:function(n){e.$set(e.params,t.props.prop,n)},expression:"params[item.props.prop]"}})],1):e._e(),e._v(" "),"date"===t.type?n("div",{key:i,staticClass:"th-table-search-item"},[n("span",{staticClass:"th-table-search-item-title"},[e._v(e._s(t.props.label)+":")]),e._v(" "),n("el-date-picker",{style:{width:t.width+"px"},attrs:{type:t.dateType||"date",format:t.format,"value-format":t.valueFormat,size:t.size,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.params[t.props.prop],callback:function(n){e.$set(e.params,t.props.prop,n)},expression:"params[item.props.prop]"}})],1):e._e()]})),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-search",plain:""},on:{click:e.doSearch}},[e._v("查询")]),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right",plain:""},on:{click:e.doReset}},[e._v("重置")])],2)}),[],!1,(function(e){n(37)}),"data-v-6f4a7eee",null).exports,p=(f.install=function(e){e.component(f.name,f)},f),g=i({name:"ThTableTools",props:{options:{type:Array,default:function(){return[]}},disabled:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{handleClick:function(e){this.$emit("on-click",e)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"th-tools"},e._l(e.options,(function(t,i){return n("el-button",{key:i,style:t.style,attrs:{type:t.type,icon:t.icon,disabled:t.disabled||e.disabled[t.act],loading:t.loading},on:{click:function(n){return e.handleClick(t)}}},[e._v(e._s(t.name))])})),1)}),[],!1,(function(e){n(39)}),"data-v-70577611",null).exports,m=(g.install=function(e){e.component(g.name,g)},g),b=i({name:"ThEmpty",props:{image:String,imageSize:Number,description:{type:String,default:"暂无数据"}},computed:{imageStyle:function(){return{width:this.imageSize?"".concat(this.imageSize,"px"):""}}}},(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"th-empty"},[t("div",{staticClass:"th-empty-img",style:e.imageStyle},[e.image?t("img",{attrs:{src:e.image,alt:""}}):e._t("image")],2),e._v(" "),t("div",{staticClass:"th-empty-description"},[e.$slots.description?e._t("description"):t("p",[e._v(e._s(e.description))])],2),e._v(" "),e.$slots.default?t("div",{staticClass:"th-empty-bottom"},[e._t("default")],2):e._e()])}),[],!1,null,null,null).exports,v=(b.install=function(e){e.component(b.name,b)},b),y=i({name:"ThDialog",props:{visible:Boolean,loading:Boolean,title:{type:String,default:"温馨提示"},showAffirm:{type:Boolean,default:!0},affirmText:{type:String,default:"确 认"},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取 消"},showClose:{type:Boolean,default:!0},closeIcon:{type:String,default:"el-icon-close"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!0},fullscreenIcon:{type:String,default:"el-icon-full-screen"}},data:function(){return{formRules:{},dialogFullscreen:this.fullscreen}},watch:{fullscreen:function(e){this.dialogFullscreen=e}},methods:{handleClose:function(){this.$emit("on-close")},handleAffirm:function(){this.$emit("on-affirm")},handleFullscreenChange:function(){this.dialogFullscreen=!this.dialogFullscreen,this.$emit("fullscreen-change")}}},(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("el-dialog",{staticClass:"th-dialog",attrs:{visible:e.visible,fullscreen:e.dialogFullscreen,"close-on-click-modal":!1,"show-close":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.visible=t}}},[t("div",{staticStyle:{"font-size":"14px"},attrs:{slot:"title"},slot:"title"},[t("div",{staticClass:"th-dialog__header",attrs:{slot:"title"},slot:"title"},[t("div",{staticClass:"th-dialog__title"},[e._v(e._s(e.title))]),e._v(" "),t("div",{staticClass:"th-dialog__action"},[e.showFullscreen?t("i",{staticClass:"th-dialog__action_item",class:e.fullscreenIcon,on:{click:e.handleFullscreenChange}}):e._e(),e._v(" "),e.showClose?t("i",{staticClass:"th-dialog__action_item ",class:e.closeIcon,on:{click:e.handleClose}}):e._e()])])]),e._v(" "),e._t("default"),e._v(" "),t("span",{attrs:{slot:"footer"},slot:"footer"},[e.showAffirm?t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleAffirm}},[e._v(e._s(e.affirmText))]):e._e(),e._v(" "),e.showCancel?t("el-button",{on:{click:e.handleClose}},[e._v(e._s(e.cancelText))]):e._e()],1)],2)}),[],!1,null,null,null).exports,w=(y.install=function(e){e.component(y.name,y)},y),x=(n(41),n(43),n(49),n(51),n(5)),k=n.n(x),_=(x=(n(53),n(54),n(24)),x=n.n(x),n(25)),C=(_=n.n(_),n(4)),S=(C=n.n(C),n(26)),A=n.n(S),E=(S=i({components:{Draggable:C.a},props:["data","remoteApis"],data:function(){return{validator:{type:null,required:null,pattern:null,range:null,length:null}}},computed:{show:function(){return!!(this.data&&0<Object.keys(this.data).length)}},methods:{handleOptionsRemove:function(e){("grid"===this.data.type?this.data.columns:"rate"===this.data.type?this.data.options.auxiliaryValue:this.data.options.options).splice(e,1)},handleAddOption:function(){"rate"===this.data.type?this.data.options.auxiliaryValue.push("新选项"):this.data.options.showLabel?this.data.options.options.push({value:"新选项",label:"新选项"}):this.data.options.options.push({value:"新选项"})},handleAddColumn:function(){this.data.columns.push({span:"",list:[]})},generateRule:function(){var e=this;this.data.rules=[],Object.keys(this.validator).forEach((function(t){e.validator[t]&&e.data.rules.push(e.validator[t])}))},handleSelectMuliple:function(e){e?this.data.options.defaultValue?this.data.options.defaultValue=[this.data.options.defaultValue]:this.data.options.defaultValue=[]:0<this.data.options.defaultValue.length?this.data.options.defaultValue=this.data.options.defaultValue[0]:this.data.options.defaultValue=""},validateRequired:function(e){var t=this;this.validator.required=e?{required:!0,message:"".concat(this.data.name,"必须填写")}:null,this.$nextTick((function(){t.generateRule()}))},validateDataType:function(e){if(!this.show)return!1;this.validator.type=e?{type:e,message:this.data.name+"格式不正确"}:null,this.generateRule()},valiatePattern:function(e){if(!this.show)return!1;this.validator.pattern=e?{pattern:e,message:this.data.name+"格式不匹配"}:null,this.generateRule()},handleInputNumberChange:function(){this.data.options.minRows>this.data.options.maxRows&&(this.data.options.maxRows=this.data.options.minRows)},handleImguploadType:function(e){"picture-card"==e&&(this.data.options.drag=!1)},handleImguploadDrag:function(e){e&&(this.data.options.listType="default")}},watch:{"data.options.isRange":function(e){void 0!==e&&(e?this.data.options.defaultValue=null:0<=Object.keys(this.data.options).indexOf("defaultValue")&&(this.data.options.defaultValue=""))},"data.options.required":function(e){this.validateRequired(e)},"data.options.dataType":function(e){this.validateDataType(e)},"data.options.pattern":function(e){this.valiatePattern(e)},"data.name":function(e){this.data.options&&(this.validateRequired(this.data.options.required),this.validateDataType(this.data.options.dataType),this.valiatePattern(this.data.options.pattern))}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",[n("el-form",{attrs:{"label-position":"top"}},["grid"!=e.data.type?n("el-form-item",{attrs:{label:"字段标识"}},[n("el-input",{model:{value:e.data.model,callback:function(t){e.$set(e.data,"model",t)},expression:"data.model"}})],1):e._e(),e._v(" "),"grid"!=e.data.type?n("el-form-item",{attrs:{label:"标题"}},[n("el-input",{model:{value:e.data.name,callback:function(t){e.$set(e.data,"name",t)},expression:"data.name"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("width")?n("el-form-item",{attrs:{label:"宽度"}},[n("el-input",{model:{value:e.data.options.width,callback:function(t){e.$set(e.data.options,"width",t)},expression:"data.options.width"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("height")?n("el-form-item",{attrs:{label:"高度"}},[n("el-input",{model:{value:e.data.options.height,callback:function(t){e.$set(e.data.options,"height",t)},expression:"data.options.height"}})],1):e._e(),e._v(" "),"slider"===e.data.type&&0<=Object.keys(e.data.options).indexOf("formatTooltip")?n("el-form-item",{attrs:{label:"格式化"}},[n("el-input-number",{attrs:{min:.1},model:{value:e.data.options.formatTooltip,callback:function(t){e.$set(e.data.options,"formatTooltip",t)},expression:"data.options.formatTooltip"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("size")?n("el-form-item",{attrs:{label:"大小"}},[e._v("\n 宽度\n "),n("el-input",{staticStyle:{width:"90px"},attrs:{type:"number"},model:{value:e.data.options.size.width,callback:function(t){e.$set(e.data.options.size,"width",e._n(t))},expression:"data.options.size.width"}}),e._v("\n 高度\n "),n("el-input",{staticStyle:{width:"90px"},attrs:{type:"number"},model:{value:e.data.options.size.height,callback:function(t){e.$set(e.data.options.size,"height",e._n(t))},expression:"data.options.size.height"}})],1):e._e(),e._v(" "),"imgupload"==e.data.type?n("el-form-item",{attrs:{label:"文件列表样式"}},[n("el-select",{on:{change:e.handleImguploadType},model:{value:e.data.options.listType,callback:function(t){e.$set(e.data.options,"listType",t)},expression:"data.options.listType"}},[n("el-option",{attrs:{value:"default",label:"文件列表"}}),e._v(" "),n("el-option",{attrs:{value:"picture-card",label:"照片墙"}}),e._v(" "),n("el-option",{attrs:{value:"picture",label:"图片列表缩略图"}})],1)],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("placeholder")&&("time"!=e.data.type||"date"!=e.data.type)?n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{model:{value:e.data.options.placeholder,callback:function(t){e.$set(e.data.options,"placeholder",t)},expression:"data.options.placeholder"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("inline")?n("el-form-item",{attrs:{label:"布局方式"}},[n("el-radio-group",{model:{value:e.data.options.inline,callback:function(t){e.$set(e.data.options,"inline",t)},expression:"data.options.inline"}},[n("el-radio-button",{attrs:{label:!1}},[e._v("块级")]),e._v(" "),n("el-radio-button",{attrs:{label:!0}},[e._v("inline")])],1)],1):e._e(),e._v(" "),["number","checkbox","slider"].includes(e.data.type)?[n("el-form-item",{attrs:{label:""}},[0<=Object.keys(e.data.options).indexOf("min")?n("div",[n("div",{staticClass:"el-form-item__label"},[e._v("\n 最小"+e._s(["checkbox"].includes(e.data.type)?"勾选":"值")+":\n ")]),e._v(" "),n("br"),e._v(" "),n("el-input-number",{attrs:{min:0},model:{value:e.data.options.min,callback:function(t){e.$set(e.data.options,"min",t)},expression:"data.options.min"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("max")?n("div",[n("div",{staticClass:"el-form-item__label"},[e._v("\n 最大"+e._s(["checkbox"].includes(e.data.type)?"勾选":"值")+":\n ")]),e._v(" "),n("br"),e._v(" "),n("el-input-number",{attrs:{min:e.data.options.min||1},model:{value:e.data.options.max,callback:function(t){e.$set(e.data.options,"max",t)},expression:"data.options.max"}})],1):e._e()])]:e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("step")?n("el-form-item",{attrs:{label:"步长"}},[n("el-input-number",{attrs:{min:0,max:100,step:1},model:{value:e.data.options.step,callback:function(t){e.$set(e.data.options,"step",t)},expression:"data.options.step"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("showInput")?n("el-form-item",{attrs:{label:"显示输入框"}},[n("el-switch",{model:{value:e.data.options.showInput,callback:function(t){e.$set(e.data.options,"showInput",t)},expression:"data.options.showInput"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("showStops")?n("el-form-item",{attrs:{label:"显示间断点"}},[n("el-switch",{model:{value:e.data.options.showStops,callback:function(t){e.$set(e.data.options,"showStops",t)},expression:"data.options.showStops"}})],1):e._e(),e._v(" "),"slider"===e.data.type&&0<=Object.keys(e.data.options).indexOf("range")?n("el-form-item",{attrs:{label:"开启范围选择"}},[n("el-switch",{model:{value:e.data.options.range,callback:function(t){e.$set(e.data.options,"range",t)},expression:"data.options.range"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("precision")?n("el-form-item",{attrs:{label:"精度"}},[n("el-input-number",{attrs:{min:0,max:100,step:1},model:{value:e.data.options.precision,callback:function(t){e.$set(e.data.options,"precision",t)},expression:"data.options.precision"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("controlsPosition")?n("el-form-item",{attrs:{label:"按钮位置"}},[n("el-radio-group",{model:{value:e.data.options.controlsPosition,callback:function(t){e.$set(e.data.options,"controlsPosition",t)},expression:"data.options.controlsPosition"}},[n("el-radio-button",{attrs:{label:!1}},[e._v("两边")]),e._v(" "),n("el-radio-button",{attrs:{label:!0}},[e._v("right")])],1)],1):e._e(),e._v(" "),"select"==e.data.type||"imgupload"==e.data.type?n("el-form-item",{attrs:{label:"是否多选"}},[n("el-switch",{on:{change:e.handleSelectMuliple},model:{value:e.data.options.multiple,callback:function(t){e.$set(e.data.options,"multiple",t)},expression:"data.options.multiple"}})],1):e._e(),e._v(" "),"imgupload"==e.data.type?n("el-form-item",{attrs:{label:"是否可以拖拽"}},[n("el-switch",{on:{change:e.handleImguploadDrag},model:{value:e.data.options.drag,callback:function(t){e.$set(e.data.options,"drag",t)},expression:"data.options.drag"}})],1):e._e(),e._v(" "),"select"===e.data.type||"cascader"===e.data.type?n("el-form-item",{attrs:{label:"是否可搜索"}},[n("el-switch",{model:{value:e.data.options.filterable,callback:function(t){e.$set(e.data.options,"filterable",t)},expression:"data.options.filterable"}})],1):e._e(),e._v(" "),"select"==e.data.type&&e.data.options.multiple?n("el-form-item",{attrs:{label:"是否可创建条目"}},[n("el-switch",{model:{value:e.data.options.allowCreate,callback:function(t){e.$set(e.data.options,"allowCreate",t)},expression:"data.options.allowCreate"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("allowHalf")?n("el-form-item",{attrs:{label:"允许半选"}},[n("el-switch",{model:{value:e.data.options.allowHalf,callback:function(t){e.$set(e.data.options,"allowHalf",t)},expression:"data.options.allowHalf"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("showText")?n("el-form-item",{attrs:{label:"加入辅助文字"}},[n("el-switch",{model:{value:e.data.options.showText,callback:function(t){e.$set(e.data.options,"showText",t)},expression:"data.options.showText"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("showAlpha")?n("el-form-item",{attrs:{label:"支持透明度选择"}},[n("el-switch",{model:{value:e.data.options.showAlpha,callback:function(t){e.$set(e.data.options,"showAlpha",t)},expression:"data.options.showAlpha"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("showLabel")?n("el-form-item",{attrs:{label:"是否显示标签"}},[n("el-switch",{model:{value:e.data.options.showLabel,callback:function(t){e.$set(e.data.options,"showLabel",t)},expression:"data.options.showLabel"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("options")?n("el-form-item",{attrs:{label:"选项"}},[n("el-radio-group",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini"},model:{value:e.data.options.remote,callback:function(t){e.$set(e.data.options,"remote",t)},expression:"data.options.remote"}},[n("el-radio-button",{attrs:{label:!1}},[e._v("静态数据")]),e._v(" "),n("el-radio-button",{attrs:{label:!0}},[e._v("远端数据")])],1),e._v(" "),e.data.options.remote?[n("div",[n("el-select",{staticClass:"remoteApis",attrs:{size:"mini",placeholder:"请选择远端方法"},model:{value:e.data.options.remoteFunc,callback:function(t){e.$set(e.data.options,"remoteFunc",t)},expression:"data.options.remoteFunc"}},[n("template",{slot:"prefix"},[n("div",{staticStyle:{width:"70px"}},[e._v("接口名")])]),e._v(" "),e._l(e.remoteApis,(function(t){return n("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)}))],2),e._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:e.data.options.props.value,callback:function(t){e.$set(e.data.options.props,"value",t)},expression:"data.options.props.value"}},[n("template",{slot:"prepend"},[n("div",{staticStyle:{width:"30px"}},[e._v("值")])])],2),e._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:e.data.options.props.label,callback:function(t){e.$set(e.data.options.props,"label",t)},expression:"data.options.props.label"}},[n("template",{slot:"prepend"},[n("div",{staticStyle:{width:"30px"}},[e._v("标签")])])],2)],1)]:["radio"==e.data.type||"select"==e.data.type&&!e.data.options.multiple?[n("el-radio-group",{model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.data.options.options,handle:".drag-item"}},"draggable",{group:{name:"options"},ghostClass:"ghost",handle:".drag-item"},!1),e._l(e.data.options.options,(function(t,i){return n("li",{key:i},[n("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:t.value}},[n("el-input",{style:{width:e.data.options.showLabel?"90px":"180px"},attrs:{size:"mini"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}}),e._v(" "),e.data.options.showLabel?n("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"item.label"}}):e._e()],1),e._v(" "),n("i",{staticClass:"drag-item",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}},[n("i",{staticClass:"iconfont icon-icon_bars"})]),e._v(" "),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleOptionsRemove(i)}}})],1)})),0)],1)]:e._e(),e._v(" "),"checkbox"==e.data.type||"select"==e.data.type&&e.data.options.multiple?[n("el-checkbox-group",{model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.data.options.options,handle:".drag-item"}},"draggable",{group:{name:"options"},ghostClass:"ghost",handle:".drag-item"},!1),e._l(e.data.options.options,(function(t,i){return n("li",{key:i},[n("el-checkbox",{staticStyle:{"margin-right":"5px"},attrs:{label:t.value}},[n("el-input",{style:{width:e.data.options.showLabel?"90px":"180px"},attrs:{size:"mini"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}}),e._v(" "),e.data.options.showLabel?n("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"item.label"}}):e._e()],1),e._v(" "),n("i",{staticClass:"drag-item",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}},[n("i",{staticClass:"iconfont icon-icon_bars"})]),e._v(" "),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleOptionsRemove(i)}}})],1)})),0)],1)]:e._e(),e._v(" "),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddOption}},[e._v("添加选项")])],1)]],2):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("showText")&&e.data.options.showText?n("el-form-item",{attrs:{label:"辅助文字"}},["rate"==e.data.type&&e.data.options.showText?[n("el-radio-group",{model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.data.options.auxiliaryValue,handle:".drag-item"}},"draggable",{group:{name:"options"},ghostClass:"ghost",handle:".drag-item"},!1),e._l(e.data.options.auxiliaryValue,(function(t,i){return n("li",{key:i},[n("span",{staticStyle:{"margin-right":"5px"}},[n("el-input",{style:{width:e.data.options.showLabel?"90px":"180px"},attrs:{size:"mini"},model:{value:e.data.options.auxiliaryValue[i],callback:function(t){e.$set(e.data.options.auxiliaryValue,i,t)},expression:"data.options.auxiliaryValue[index]"}})],1),e._v(" "),n("i",{staticClass:"drag-item",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}},[n("i",{staticClass:"iconfont icon-icon_bars"})]),e._v(" "),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleOptionsRemove(i)}}})],1)})),0)],1)]:e._e(),e._v(" "),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddOption}},[e._v("添加选项")])],1)],2):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("defaultValue")&&("textarea"==e.data.type||"input"==e.data.type||"rate"==e.data.type||"color"==e.data.type||"switch"==e.data.type||"text"==e.data.type)?n("el-form-item",{attrs:{label:"默认值"}},["textarea"==e.data.type?n("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}):e._e(),e._v(" "),"input"==e.data.type?n("el-input",{model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}):e._e(),e._v(" "),"rate"==e.data.type?n("el-rate",{staticStyle:{display:"inline-block","vertical-align":"middle"},attrs:{max:e.data.options.max,"allow-half":e.data.options.allowHalf},model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}):e._e(),e._v(" "),"rate"==e.data.type?n("el-button",{staticStyle:{display:"inline-block","vertical-align":"middle","margin-left":"10px"},attrs:{type:"text"},on:{click:function(t){e.data.options.defaultValue=0}}},[e._v("清空")]):e._e(),e._v(" "),"color"==e.data.type?n("el-color-picker",{attrs:{"show-alpha":e.data.options.showAlpha},model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}):e._e(),e._v(" "),"switch"==e.data.type?n("el-switch",{model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}):e._e(),e._v(" "),"text"==e.data.type?n("el-input",{model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}):e._e()],1):e._e(),e._v(" "),"textarea"==e.data.type||"input"==e.data.type?n("el-form-item",{attrs:{label:"最大字数"}},[n("el-input-number",{attrs:{min:-1},model:{value:e.data.options.maxlength,callback:function(t){e.$set(e.data.options,"maxlength",t)},expression:"data.options.maxlength"}})],1):e._e(),e._v(" "),"textarea"==e.data.type?[n("el-form-item",{attrs:{label:"设置行高",inline:!0}},[[n("span",{staticClass:"el-form-item__label"},[e._v("最小值:")]),e._v(" "),0<=Object.keys(e.data.options).indexOf("minRows")?n("el-input-number",{attrs:{min:1},on:{change:e.handleInputNumberChange},model:{value:e.data.options.minRows,callback:function(t){e.$set(e.data.options,"minRows",t)},expression:"data.options.minRows"}}):e._e()],e._v(" "),n("br"),e._v(" "),[n("span",{staticClass:"el-form-item__label"},[e._v("最大值:")]),e._v(" "),0<=Object.keys(e.data.options).indexOf("maxRows")?n("el-input-number",{attrs:{min:e.data.options.minRows||1},model:{value:e.data.options.maxRows,callback:function(t){e.$set(e.data.options,"maxRows",t)},expression:"data.options.maxRows"}}):e._e()]],2)]:e._e(),e._v(" "),"textarea"==e.data.type||"input"==e.data.type?n("el-form-item",{attrs:{label:"显示字数统计"}},[n("el-switch",{model:{value:e.data.options.showWordLimit,callback:function(t){e.$set(e.data.options,"showWordLimit",t)},expression:"data.options.showWordLimit"}})],1):e._e(),e._v(" "),"time"==e.data.type||"date"==e.data.type?["date"==e.data.type?n("el-form-item",{attrs:{label:"显示类型"}},[n("el-select",{model:{value:e.data.options.type,callback:function(t){e.$set(e.data.options,"type",t)},expression:"data.options.type"}},[n("el-option",{attrs:{value:"year"}}),e._v(" "),n("el-option",{attrs:{value:"month"}}),e._v(" "),n("el-option",{attrs:{value:"date"}}),e._v(" "),n("el-option",{attrs:{value:"dates"}}),e._v(" "),n("el-option",{attrs:{value:"datetime"}}),e._v(" "),n("el-option",{attrs:{value:"monthrange"}}),e._v(" "),n("el-option",{attrs:{value:"datetimerange"}}),e._v(" "),n("el-option",{attrs:{value:"daterange"}})],1)],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("timeType")?n("el-form-item",{attrs:{label:"选择方式"}},[n("el-radio-group",{model:{value:e.data.options.timeType,callback:function(t){e.$set(e.data.options,"timeType",t)},expression:"data.options.timeType"}},[n("el-radio-button",{attrs:{label:!0}},[e._v("任意时间点")]),e._v(" "),n("el-radio-button",{attrs:{label:!1}},[e._v("固定时间点")])],1)],1):e._e(),e._v(" "),"time"!=e.data.type||e.data.options.timeType?e._e():n("el-form-item",{attrs:{label:"是否为范围选择"}},[n("el-switch",{model:{value:e.data.options.selectRange,callback:function(t){e.$set(e.data.options,"selectRange",t)},expression:"data.options.selectRange"}})],1),e._v(" "),"time"==e.data.type&&e.data.options.timeType?n("el-form-item",{attrs:{label:"是否为范围选择"}},[n("el-switch",{model:{value:e.data.options.isRange,callback:function(t){e.$set(e.data.options,"isRange",t)},expression:"data.options.isRange"}})],1):e._e(),e._v(" "),"date"==e.data.type&&e.data.options.timeType?n("el-form-item",{attrs:{label:"是否获取时间戳"}},[n("el-switch",{model:{value:e.data.options.timestamp,callback:function(t){e.$set(e.data.options,"timestamp",t)},expression:"data.options.timestamp"}})],1):e._e(),e._v(" "),!e.data.options.isRange&&"time"==e.data.type&&e.data.options.timeType||"time"!=e.data.type&&"datetimerange"!=e.data.options.type&&"daterange"!=e.data.options.type&&e.data.options.timeType?n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{model:{value:e.data.options.placeholder,callback:function(t){e.$set(e.data.options,"placeholder",t)},expression:"data.options.placeholder"}})],1):e._e(),e._v(" "),"time"==e.data.type&&e.data.options.timeType||["datetimerange","daterange","date"].includes(e.data.options.type)?n("el-form-item",{attrs:{label:"格式"}},[n("el-input",{model:{value:e.data.options.format,callback:function(t){e.$set(e.data.options,"format",t)},expression:"data.options.format"}})],1):e._e(),e._v(" "),"time"==e.data.type&&0<=Object.keys(e.data.options).indexOf("isRange")&&e.data.options.timeType?n("el-form-item",{attrs:{label:"默认值"}},[e.data.options.isRange?e._e():n("el-time-picker",{key:"1",staticStyle:{width:"100%"},attrs:{arrowControl:e.data.options.arrowControl,"value-format":e.data.options.format},model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}),e._v(" "),e.data.options.isRange?n("el-time-picker",{key:"2",staticStyle:{width:"100%"},attrs:{"is-range":"",arrowControl:e.data.options.arrowControl,"value-format":e.data.options.format},model:{value:e.data.options.defaultValue,callback:function(t){e.$set(e.data.options,"defaultValue",t)},expression:"data.options.defaultValue"}}):e._e()],1):e._e(),e._v(" "),["time"==e.data.type&&0<=Object.keys(e.data.options).indexOf("stretTimePickerOptions")&&!e.data.options.timeType?n("el-form-item",{attrs:{label:e.data.options.selectRange?"开始时间范围值":"时间范围值"}},[e.data.options.stretTimePickerOptions.start?n("el-time-picker",{key:"1",staticStyle:{width:"100%"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.data.options.stretTimePickerOptions.start,callback:function(t){e.$set(e.data.options.stretTimePickerOptions,"start",t)},expression:"data.options.stretTimePickerOptions.start"}}):e._e(),e._v(" "),e.data.options.stretTimePickerOptions.end?n("el-time-picker",{key:"2",staticStyle:{width:"100%"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.data.options.stretTimePickerOptions.end,callback:function(t){e.$set(e.data.options.stretTimePickerOptions,"end",t)},expression:"data.options.stretTimePickerOptions.end"}}):e._e()],1):e._e(),e._v(" "),"time"==e.data.type&&0<=Object.keys(e.data.options).indexOf("stretTimePickerOptions")&&!e.data.options.timeType?n("el-form-item",{attrs:{label:e.data.options.selectRange?"开始时间步长":"时间步长"}},[e.data.options.stretTimePickerOptions.step?n("el-time-picker",{key:"1",staticStyle:{width:"100%"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.data.options.stretTimePickerOptions.step,callback:function(t){e.$set(e.data.options.stretTimePickerOptions,"step",t)},expression:"data.options.stretTimePickerOptions.step"}}):e._e()],1):e._e()],e._v(" "),e.data.options.isRange||"datetimerange"==e.data.options.type||"daterange"==e.data.options.type||!e.data.options.timeType&&e.data.options.selectRange?n("el-form-item",{attrs:{label:"开始时间占位内容"}},[n("el-input",{model:{value:e.data.options.startPlaceholder,callback:function(t){e.$set(e.data.options,"startPlaceholder",t)},expression:"data.options.startPlaceholder"}})],1):e._e(),e._v(" "),e.data.options.selectRange?["time"==e.data.type&&0<=Object.keys(e.data.options).indexOf("endTimePickerOptions")&&!e.data.options.timeType?n("el-form-item",{attrs:{label:"结束时间范围值"}},[e.data.options.endTimePickerOptions.start?n("el-time-picker",{key:"1",staticStyle:{width:"100%"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.data.options.endTimePickerOptions.start,callback:function(t){e.$set(e.data.options.endTimePickerOptions,"start",t)},expression:"data.options.endTimePickerOptions.start"}}):e._e(),e._v(" "),e.data.options.endTimePickerOptions.end?n("el-time-picker",{key:"2",staticStyle:{width:"100%"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.data.options.endTimePickerOptions.end,callback:function(t){e.$set(e.data.options.endTimePickerOptions,"end",t)},expression:"data.options.endTimePickerOptions.end"}}):e._e()],1):e._e(),e._v(" "),"time"==e.data.type&&0<=Object.keys(e.data.options).indexOf("endTimePickerOptions")&&!e.data.options.timeType?n("el-form-item",{attrs:{label:"结束时间步长"}},[e.data.options.endTimePickerOptions.step?n("el-time-picker",{key:"1",staticStyle:{width:"100%"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.data.options.endTimePickerOptions.step,callback:function(t){e.$set(e.data.options.endTimePickerOptions,"step",t)},expression:"data.options.endTimePickerOptions.step"}}):e._e()],1):e._e()]:e._e(),e._v(" "),e.data.options.isRange||"datetimerange"==e.data.options.type||"daterange"==e.data.options.type||!e.data.options.timeType&&e.data.options.selectRange?n("el-form-item",{attrs:{label:"结束时间占位内容"}},[n("el-input",{model:{value:e.data.options.endPlaceholder,callback:function(t){e.$set(e.data.options,"endPlaceholder",t)},expression:"data.options.endPlaceholder"}})],1):e._e()]:e._e(),e._v(" "),"imgupload"==e.data.type?[n("el-form-item",{attrs:{label:"最大上传数"}},[n("el-input",{attrs:{type:"number"},model:{value:e.data.options.length,callback:function(t){e.$set(e.data.options,"length",e._n(t))},expression:"data.options.length"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"文字提示"}},[n("el-input",{attrs:{placeholder:"请输入文字提示或HTML"},model:{value:e.data.options.elUploadTip,callback:function(t){e.$set(e.data.options,"elUploadTip",e._n(t))},expression:"data.options.elUploadTip"}})],1),e._v(" "),e.data.options.isQiniu?[n("el-form-item",{attrs:{label:"Domain",required:!0}},[n("el-input",{model:{value:e.data.options.domain,callback:function(t){e.$set(e.data.options,"domain",t)},expression:"data.options.domain"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"获取七牛Token方法",required:!0}},[n("el-input",{model:{value:e.data.options.tokenFunc,callback:function(t){e.$set(e.data.options,"tokenFunc",t)},expression:"data.options.tokenFunc"}})],1)]:[n("el-form-item",{attrs:{label:"图片上传",required:!0}},[n("el-select",{staticClass:"remoteApis",attrs:{placeholder:"请选择远端方法"},model:{value:e.data.options.remoteFunc,callback:function(t){e.$set(e.data.options,"remoteFunc",t)},expression:"data.options.remoteFunc"}},[n("template",{slot:"prefix"},[n("div",{staticStyle:{width:"70px"}},[e._v("接口名")])]),e._v(" "),e._l(e.remoteApis,(function(t){return n("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)}))],2)],1)]]:e._e(),e._v(" "),"blank"==e.data.type?[n("el-form-item",{attrs:{label:"绑定数据类型"}},[n("el-select",{model:{value:e.data.options.defaultType,callback:function(t){e.$set(e.data.options,"defaultType",t)},expression:"data.options.defaultType"}},[n("el-option",{attrs:{value:"String",label:"字符串"}}),e._v(" "),n("el-option",{attrs:{value:"Object",label:"对象"}}),e._v(" "),n("el-option",{attrs:{value:"Array",label:"数组"}})],1)],1)]:e._e(),e._v(" "),"grid"==e.data.type?[n("el-form-item",{attrs:{label:"栅格间隔"}},[n("el-input",{attrs:{type:"number"},model:{value:e.data.options.gutter,callback:function(t){e.$set(e.data.options,"gutter",e._n(t))},expression:"data.options.gutter"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"列配置项"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.data.columns,handle:".drag-item"}},"draggable",{group:{name:"options"},ghostClass:"ghost",handle:".drag-item"},!1),e._l(e.data.columns,(function(t,i){return n("li",{key:i},[n("i",{staticClass:"drag-item",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}},[n("i",{staticClass:"iconfont icon-icon_bars"})]),e._v(" "),n("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:"栅格值",size:"mini",type:"number"},model:{value:t.span,callback:function(n){e.$set(t,"span",e._n(n))},expression:"item.span"}}),e._v(" "),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleOptionsRemove(i)}}})],1)})),0),e._v(" "),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddColumn}},[e._v("添加列")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"水平排列方式"}},[n("el-select",{model:{value:e.data.options.justify,callback:function(t){e.$set(e.data.options,"justify",t)},expression:"data.options.justify"}},[n("el-option",{attrs:{value:"start",label:"左对齐"}}),e._v(" "),n("el-option",{attrs:{value:"end",label:"右对齐"}}),e._v(" "),n("el-option",{attrs:{value:"center",label:"居中"}}),e._v(" "),n("el-option",{attrs:{value:"space-around",label:"两侧间隔相等"}}),e._v(" "),n("el-option",{attrs:{value:"space-between",label:"两端对齐"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"垂直排列方式"}},[n("el-select",{model:{value:e.data.options.align,callback:function(t){e.$set(e.data.options,"align",t)},expression:"data.options.align"}},[n("el-option",{attrs:{value:"top",label:"顶部对齐"}}),e._v(" "),n("el-option",{attrs:{value:"middle",label:"居中"}}),e._v(" "),n("el-option",{attrs:{value:"bottom",label:"底部对齐"}})],1)],1)]:e._e(),e._v(" "),"grid"!=e.data.type?["input"==e.data.type?n("el-form-item",{attrs:{label:"带入icon"}},[0<=Object.keys(e.data.options).indexOf("prefixIcon")?n("el-input",{attrs:{placeholder:"请输入icon类名"},model:{value:e.data.options.prefixIcon,callback:function(t){e.$set(e.data.options,"prefixIcon",t)},expression:"data.options.prefixIcon"}},[n("template",{slot:"prepend"},[n("div",{staticStyle:{width:"50px"}},[e._v("prefixIcon")])])],2):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("suffixIcon")?n("el-input",{attrs:{placeholder:"请输入icon类名"},model:{value:e.data.options.suffixIcon,callback:function(t){e.$set(e.data.options,"suffixIcon",t)},expression:"data.options.suffixIcon"}},[n("template",{slot:"prepend"},[n("div",{staticStyle:{width:"50px"}},[e._v("suffixIcon")])])],2):e._e()],1):e._e(),e._v(" "),"input"===e.data.type||"cascader"===e.data.type?n("el-form-item",{attrs:{label:"组件插槽"}},[0<=Object.keys(e.data.options).indexOf("prepend")?n("el-input",{attrs:{placeholder:"请输入内容或HTML"},model:{value:e.data.options.prepend,callback:function(t){e.$set(e.data.options,"prepend",t)},expression:"data.options.prepend"}},[n("template",{slot:"prepend"},[n("div",{staticStyle:{width:"50px"}},[e._v("prepend")])])],2):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("append")?n("el-input",{attrs:{placeholder:"请输入内容或HTML"},model:{value:e.data.options.append,callback:function(t){e.$set(e.data.options,"append",t)},expression:"data.options.append"}},[n("template",{slot:"prepend"},[n("div",{staticStyle:{width:"50px"}},[e._v("append")])])],2):e._e()],1):e._e(),e._v(" "),"cascader"==e.data.type?n("el-form-item",{attrs:{label:"远端数据"}},[n("div",[n("el-select",{staticClass:"remoteApis",attrs:{size:"mini",placeholder:"请选择远端方法"},model:{value:e.data.options.remoteFunc,callback:function(t){e.$set(e.data.options,"remoteFunc",t)},expression:"data.options.remoteFunc"}},[n("template",{slot:"prefix"},[n("div",{staticStyle:{width:"70px"}},[e._v("接口名")])]),e._v(" "),e._l(e.remoteApis,(function(t){return n("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)}))],2),e._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:e.data.options.props.value,callback:function(t){e.$set(e.data.options.props,"value",t)},expression:"data.options.props.value"}},[n("template",{slot:"prepend"},[e._v("值")])],2),e._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:e.data.options.props.label,callback:function(t){e.$set(e.data.options.props,"label",t)},expression:"data.options.props.label"}},[n("template",{slot:"prepend"},[e._v("标签")])],2),e._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:e.data.options.props.children,callback:function(t){e.$set(e.data.options.props,"children",t)},expression:"data.options.props.children"}},[n("template",{slot:"prepend"},[e._v("子选项")])],2)],1)]):e._e(),e._v(" "),"switch"===e.data.type?n("el-form-item",{attrs:{label:"文字描述",inline:!0}},[0<=Object.keys(e.data.options).indexOf("switchInactiveText")?n("div",[n("span",{staticClass:"el-form-item__label"},[e._v("inactiveText:")]),e._v(" "),n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.data.options.switchInactiveText,callback:function(t){e.$set(e.data.options,"switchInactiveText",t)},expression:"data.options.switchInactiveText"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("switchActiveText")?n("div",[n("span",{staticClass:"el-form-item__label"},[e._v("activeText:")]),e._v(" "),n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.data.options.switchActiveText,callback:function(t){e.$set(e.data.options,"switchActiveText",t)},expression:"data.options.switchActiveText"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("switchInactiveColor")?n("div",[n("span",{staticClass:"el-form-item__label"},[e._v("inactiveColor:")]),e._v(" "),n("el-input",{attrs:{placeholder:"请输入色值,例如#ff4949"},model:{value:e.data.options.switchInactiveColor,callback:function(t){e.$set(e.data.options,"switchInactiveColor",t)},expression:"data.options.switchInactiveColor"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("switchActiveColor")?n("div",[n("span",{staticClass:"el-form-item__label"},[e._v("activeColor:")]),e._v(" "),n("el-input",{attrs:{placeholder:"请输入色值,例如#ff4949"},model:{value:e.data.options.switchActiveColor,callback:function(t){e.$set(e.data.options,"switchActiveColor",t)},expression:"data.options.switchActiveColor"}})],1):e._e()]):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"操作属性"}},[0<=Object.keys(e.data.options).indexOf("readonly")?n("el-checkbox",{model:{value:e.data.options.readonly,callback:function(t){e.$set(e.data.options,"readonly",t)},expression:"data.options.readonly"}},[e._v("完全只读")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("disabled")?n("el-checkbox",{model:{value:e.data.options.disabled,callback:function(t){e.$set(e.data.options,"disabled",t)},expression:"data.options.disabled"}},[e._v("禁用\n ")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("editable")?n("el-checkbox",{model:{value:e.data.options.editable,callback:function(t){e.$set(e.data.options,"editable",t)},expression:"data.options.editable"}},[e._v("文本框可输入")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("showPassword")?n("el-checkbox",{model:{value:e.data.options.showPassword,callback:function(t){e.$set(e.data.options,"showPassword",t)},expression:"data.options.showPassword"}},[e._v("显示切换密码图标")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("arrowControl")?n("el-checkbox",{model:{value:e.data.options.arrowControl,callback:function(t){e.$set(e.data.options,"arrowControl",t)},expression:"data.options.arrowControl"}},[e._v("使用箭头进行时间选择")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("isDelete")?n("el-checkbox",{model:{value:e.data.options.isDelete,callback:function(t){e.$set(e.data.options,"isDelete",t)},expression:"data.options.isDelete"}},[e._v("删除")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("isEdit")?n("el-checkbox",{model:{value:e.data.options.isEdit,callback:function(t){e.$set(e.data.options,"isEdit",t)},expression:"data.options.isEdit"}},[e._v("编辑")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("border")?n("el-checkbox",{model:{value:e.data.options.border,callback:function(t){e.$set(e.data.options,"border",t)},expression:"data.options.border"}},[e._v("显示边框")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("buttonType")?n("el-checkbox",{model:{value:e.data.options.buttonType,callback:function(t){e.$set(e.data.options,"buttonType",t)},expression:"data.options.buttonType"}},[e._v("按钮样式")]):e._e(),e._v(" "),"slider"===e.data.type&&0<=Object.keys(e.data.options).indexOf("showTooltip")?n("el-checkbox",{model:{value:e.data.options.showTooltip,callback:function(t){e.$set(e.data.options,"showTooltip",t)},expression:"data.options.showTooltip"}},[e._v("显示showTooltip")]):e._e(),e._v(" "),"slider"===e.data.type&&0<=Object.keys(e.data.options).indexOf("vertical")?n("el-checkbox",{model:{value:e.data.options.vertical,callback:function(t){e.$set(e.data.options,"vertical",t)},expression:"data.options.vertical"}},[e._v("竖向模式")]):e._e(),e._v(" "),"cascader"===e.data.type&&0<=Object.keys(e.data.options).indexOf("showAllLevels")?n("el-checkbox",{model:{value:e.data.options.showAllLevels,callback:function(t){e.$set(e.data.options,"showAllLevels",t)},expression:"data.options.showAllLevels"}},[e._v("仅显示最后一级")]):e._e(),e._v(" "),"cascader"===e.data.type?n("el-checkbox",{model:{value:e.data.options.props.multiple,callback:function(t){e.$set(e.data.options.props,"multiple",t)},expression:"data.options.props.multiple"}},[e._v("是否多选")]):e._e(),e._v(" "),["cascader"].includes(e.data.type)?n("el-checkbox",{model:{value:e.data.options.props.checkStrictly,callback:function(t){e.$set(e.data.options.props,"checkStrictly",t)},expression:"data.options.props.checkStrictly"}},[e._v("选择任意一级选项")]):e._e(),e._v(" "),["select","cascader"].includes(e.data.type)?n("el-checkbox",{model:{value:e.data.options.collapseTags,callback:function(t){e.$set(e.data.options,"collapseTags",t)},expression:"data.options.collapseTags"}},[e._v("是否折叠展示Tag")]):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("clearable")?n("el-checkbox",{model:{value:e.data.options.clearable,callback:function(t){e.$set(e.data.options,"clearable",t)},expression:"data.options.clearable"}},[e._v("显示清除按钮")]):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"校验"}},[0<=Object.keys(e.data.options).indexOf("required")?n("div",[n("el-checkbox",{model:{value:e.data.options.required,callback:function(t){e.$set(e.data.options,"required",t)},expression:"data.options.required"}},[e._v("必填")])],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("dataType")?n("el-select",{attrs:{size:"mini"},model:{value:e.data.options.dataType,callback:function(t){e.$set(e.data.options,"dataType",t)},expression:"data.options.dataType"}},[n("el-option",{attrs:{value:"string",label:"字符串"}}),e._v(" "),n("el-option",{attrs:{value:"number",label:"数字"}}),e._v(" "),n("el-option",{attrs:{value:"boolean",label:"布尔值"}}),e._v(" "),n("el-option",{attrs:{value:"integer",label:"整数"}}),e._v(" "),n("el-option",{attrs:{value:"float",label:"浮点数"}}),e._v(" "),n("el-option",{attrs:{value:"url",label:"URL地址"}}),e._v(" "),n("el-option",{attrs:{value:"email",label:"邮箱地址"}}),e._v(" "),n("el-option",{attrs:{value:"hex",label:"十六进制"}})],1):e._e(),e._v(" "),0<=Object.keys(e.data.options).indexOf("pattern")?n("div",[n("el-input",{staticClass:"config-pattern-input",staticStyle:{width:"240px"},attrs:{size:"mini",placeholder:"填写正则表达式"},model:{value:e.data.options.pattern,callback:function(t){e.$set(e.data.options,"pattern",t)},expression:"data.options.pattern"}},[n("template",{slot:"prepend"},[e._v("/")]),e._v(" "),n("template",{slot:"append"},[e._v("/")])],2)],1):e._e()],1)]:e._e()],2)],1):e._e()}),[],!1,(function(e){n(56)}),"data-v-bb17fa64",null).exports,i({props:["data"]},(function(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"form-config-container"},[t("el-form",{attrs:{"label-position":"top"}},[t("el-form-item",{attrs:{label:"表单标题"}},[t("el-input",{model:{value:e.data.title,callback:function(t){e.$set(e.data,"title",t)},expression:"data.title"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"标签对齐方式"}},[t("el-radio-group",{model:{value:e.data.labelPosition,callback:function(t){e.$set(e.data,"labelPosition",t)},expression:"data.labelPosition"}},[t("el-radio-button",{attrs:{label:"left"}},[e._v("左对齐")]),e._v(" "),t("el-radio-button",{attrs:{label:"right"}},[e._v("右对齐")]),e._v(" "),t("el-radio-button",{attrs:{label:"top"}},[e._v("顶部对齐")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"表单标签宽度"}},[t("el-input-number",{attrs:{min:0,max:200,step:10},model:{value:e.data.labelWidth,callback:function(t){e.$set(e.data,"labelWidth",t)},expression:"data.labelWidth"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"组件尺寸"}},[t("el-radio-group",{model:{value:e.data.size,callback:function(t){e.$set(e.data,"size",t)},expression:"data.size"}},[t("el-radio-button",{attrs:{label:"medium"}},[e._v("medium")]),e._v(" "),t("el-radio-button",{attrs:{label:"small"}},[e._v("small")]),e._v(" "),t("el-radio-button",{attrs:{label:"mini"}},[e._v("mini")])],1)],1)],1)],1)}),[],!1,null,null,null).exports),O=n(27),T=n.n(O);function $(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(60);O=i({components:{Draggable:C.a},props:{value:{type:Array,default:function(){return[]}},width:{type:Number,default:100},height:{type:Number,default:100},token:{type:String,default:""},domain:{type:String,default:""},multiple:{type:Boolean,default:!1},length:{type:Number,default:9},isQiniu:{type:Boolean,default:!1},isDelete:{type:Boolean,default:!1},min:{type:Number,default:0},meitu:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},action:{type:String,default:""},disabled:{type:Boolean,default:!1}},data:function(){return{fileList:this.value.map((function(e){return{key:e.key||(new Date).getTime()+"_"+Math.ceil(99999*Math.random()),url:e.url,percent:e.percent||100,status:e.status||"success"}})),viewer:null,uploadId:"upload_"+(new Date).getTime(),editIndex:-1,meituIndex:-1}},computed:{miniWidth:function(){return this.width>this.height?this.height:this.width}},mounted:function(){this.$emit("input",this.fileList)},methods:{handleChange:function(){for(var e=this,t=(console.log(this.$refs.uploadInput.files),this.$refs.uploadInput.files),n=0;n<t.length;n++)!function(n){var i=t[n],o=new FileReader,r=(new Date).getTime()+"_"+Math.ceil(99999*Math.random());o.readAsDataURL(i),o.onload=function(){0<=e.editIndex?(e.$set(e.fileList,e.editIndex,{key:r,url:o.result,percent:0,status:"uploading"}),e.editIndex=-1):e.fileList.push({key:r,url:o.result,percent:0,status:"uploading"}),e.$nextTick((function(){e.isQiniu?e.uplaodAction2(o.result,i,r):e.uplaodAction(o.result,i,r)}))}}(n);this.$refs.uploadInput.value=[]},uplaodAction:function(e,t,n){var i=this,o=(this.fileList.findIndex((function(e){return e.key===n})),console.log(this.fileList.findIndex((function(e){return e.key===n}))),new XMLHttpRequest),r=this.action;(r=(o.open("POST",r,!0),new FormData)).append("file",t),o.onreadystatechange=function(){var e;console.log(o),4===o.readyState&&((e=JSON.parse(o.response))&&e.url?(i.$set(i.fileList,i.fileList.findIndex((function(e){return e.key===n})),L(L({},i.fileList[i.fileList.findIndex((function(e){return e.key===n}))]),{},{url:e.url,percent:100})),setTimeout((function(){i.$set(i.fileList,i.fileList.findIndex((function(e){return e.key===n})),L(L({},i.fileList[i.fileList.findIndex((function(e){return e.key===n}))]),{},{status:"success"})),i.$emit("input",i.fileList)}),200)):(i.$set(i.fileList,i.fileList.findIndex((function(e){return e.key===n})),L(L({},i.fileList[i.fileList.findIndex((function(e){return e.key===n}))]),{},{status:"error"})),i.fileList.splice(i.fileList.findIndex((function(e){return e.key===n})),1)))},o.upload.onprogress=function(e){console.log("progress",e),e.total&&e.loaded&&i.$set(i.fileList[i.fileList.findIndex((function(e){return e.key===n}))],"percent",e.loaded/e.total*100)},o.send(r)},uplaodAction2:function(e,t,n){var i=this;qiniu.upload(t,n,this.token,{fname:n,mimeType:[]},{useCdnDomain:!0}).subscribe({next:function(e){i.$set(i.fileList[i.fileList.findIndex((function(e){return e.key===n}))],"percent",parseInt(e.total.percent))},error:function(e){i.$set(i.fileList,i.fileList.findIndex((function(e){return e.key===n})),L(L({},i.fileList[i.fileList.findIndex((function(e){return e.key===n}))]),{},{status:"error"})),i.fileList.splice(i.fileList.findIndex((function(e){return e.key===n})),1)},complete:function(e){i.$set(i.fileList,i.fileList.findIndex((function(e){return e.key===n})),L(L({},i.fileList[i.fileList.findIndex((function(e){return e.key===n}))]),{},{url:i.domain+e.key,percent:100})),setTimeout((function(){i.$set(i.fileList,i.fileList.findIndex((function(e){return e.key===n})),L(L({},i.fileList[i.fileList.findIndex((function(e){return e.key===n}))]),{},{status:"success"})),i.$emit("input",i.fileList)}),200)}})},handleRemove:function(e){this.fileList.splice(this.fileList.findIndex((function(t){return t.key===e})),1)},handleEdit:function(e){this.editIndex=this.fileList.findIndex((function(t){return t.key===e})),this.$refs.uploadInput.click()},handleMeitu:function(e){this.$emit("on-meitu",this.fileList.findIndex((function(t){return t.key===e})))},handleAdd:function(){this.disabled||(this.editIndex=-1,this.$refs.uploadInput.click())},handlePreviewFile:function(e){var t=this;this.viewer&&this.viewer.destroy(),this.uploadId="upload_"+(new Date).getTime(),console.log(this.viewer),this.$nextTick((function(){t.viewer=new T.a(document.getElementById(t.uploadId)),t.viewer.view(t.fileList.findIndex((function(t){return t.key===e})))}))}},watch:{fileList:{deep:!0,handler:function(e){}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fm-uplaod-container",attrs:{id:e.uploadId}},[n("draggable",e._b({staticClass:"drag-img-list",attrs:{"no-transition-on-drag":!0},model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}},"draggable",{group:e.uploadId,ghostClass:"ghost",animation:200},!1),e._l(e.fileList,(function(t){return n("div",{key:t.key,staticClass:"upload-file",class:{uploading:"uploading"==t.status,"is-success":"success"==t.status,"is-diabled":e.disabled},style:{width:e.width+"px",height:e.height+"px"},attrs:{id:t.key}},[n("img",{attrs:{src:t.url}}),e._v(" "),"uploading"==t.status?n("el-progress",{staticClass:"upload-progress",attrs:{width:.9*e.miniWidth,type:"circle",percentage:t.percent}}):e._e(),e._v(" "),"success"==t.status?n("label",{staticClass:"item-status"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})]):e._e(),e._v(" "),e.disabled?e._e():n("div",{staticClass:"uplaod-action",style:{height:e.miniWidth/4+"px"}},[n("i",{staticClass:"iconfont icon-tupianyulan",style:{"font-size":e.miniWidth/8+"px"},attrs:{title:"预览"},on:{click:function(n){return e.handlePreviewFile(t.key)}}}),e._v(" "),e.isEdit?n("i",{staticClass:"iconfont icon-sync1",style:{"font-size":e.miniWidth/8+"px"},attrs:{title:"替换"},on:{click:function(n){return e.handleEdit(t.key)}}}):e._e(),e._v(" "),e.isDelete&&e.fileList.length>e.min?n("i",{staticClass:"iconfont icon-delete",style:{"font-size":e.miniWidth/8+"px"},attrs:{title:"删除"},on:{click:function(n){return e.handleRemove(t.key)}}}):e._e()])],1)})),0),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:(!e.isQiniu||e.isQiniu&&e.token)&&e.fileList.length<e.length,expression:"(!isQiniu || (isQiniu && token)) && fileList.length < length"}],staticClass:"el-upload el-upload--picture-card",class:{"is-disabled":e.disabled},style:{width:e.width+"px",height:e.height+"px"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleAdd.apply(null,arguments)}}},[n("i",{staticClass:"el-icon-plus",style:{fontSize:e.miniWidth/4+"px",marginTop:-e.miniWidth/8+"px",marginLeft:-e.miniWidth/8+"px"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleAdd.apply(null,arguments)}}}),e._v(" "),e.multiple?n("input",{ref:"uploadInput",staticClass:"el-upload__input upload-input",style:{width:0,height:0},attrs:{accept:"image/*",multiple:"",type:"file",name:"file"},on:{change:e.handleChange}}):n("input",{ref:"uploadInput",staticClass:"el-upload__input upload-input",style:{width:0,height:0},attrs:{accept:"image/*",type:"file",name:"file"},on:{change:e.handleChange}})])],1)}),[],!1,(function(e){n(58)}),null,null).exports;function R(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M=i({props:["element","select","index","data"],components:{FmUpload:O,VueEditor:(X=n(8)).a},data:function(){return{selectWidget:this.select,dialogVisible:!1,dialogImageUrl:""}},mounted:function(){},methods:{handleSelectWidget:function(e){this.selectWidget=this.data.list[e]},handleWidgetDelete:function(e){var t=this;this.data.list.length-1===e?this.selectWidget=0===e?{}:this.data.list[e-1]:this.selectWidget=this.data.list[e+1],this.$nextTick((function(){t.data.list.splice(e,1)}))},formatTooltip:function(e,t){return e/t},handleWidgetClone:function(e){var t=this,n=Date.parse((new Date).toString())+"_"+Math.ceil(99999*Math.random());n=q(q({},this.data.list[e]),{},{options:q(q({},this.data.list[e].options),{},{remoteFunc:"func_"+n}),key:n,model:this.data.list[e].type+"_"+n,rules:this.data.list[e].rules||[]});"radio"!==this.data.list[e].type&&"checkbox"!==this.data.list[e].type&&"select"!==this.data.list[e].type||(n=q(q({},n),{},{options:q(q({},n.options),{},{options:n.options.options.map((function(e){return q({},e)}))})})),this.data.list.splice(e,0,n),this.$nextTick((function(){t.selectWidget=t.data.list[e+1]}))},handlePictureCardPreview:function(e,t){"picture-card"===t&&(this.dialogImageUrl=e.url,this.dialogVisible=!0)},handleRemove:function(e,t){this.data.options.defaultValue=t},handleAvatar:function(e,t){this.data.options.defaultValue=t},handleAvatarError:function(){console.log("上传失败!")}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.element&&e.element.key?n("el-form-item",{staticClass:"widget-view ",class:{active:e.selectWidget.key==e.element.key,is_req:e.element.options.required},attrs:{label:e.element.name},nativeOn:{click:function(t){return t.stopPropagation(),e.handleSelectWidget(e.index)}}},["input"==e.element.type?[n("el-input",{style:{width:e.element.options.width},attrs:{placeholder:e.element.options.placeholder,disabled:e.element.options.disabled,maxlength:e.element.options.maxlength,"show-word-limit":e.element.options.showWordLimit,"show-password":e.element.options.showPassword,clearable:e.element.options.clearable,"suffix-icon":e.element.options.suffixIcon,"prefix-icon":e.element.options.prefixIcon},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}},[e.element.options.prepend?n("template",{slot:"prepend"},[n("span",{domProps:{innerHTML:e._s(e.element.options.prepend)}})]):e._e(),e._v(" "),e.element.options.append?n("template",{slot:"append"},[n("span",{domProps:{innerHTML:e._s(e.element.options.append)}})]):e._e()],2)]:e._e(),e._v(" "),"textarea"==e.element.type?[n("el-input",{style:{width:e.element.options.width},attrs:{type:"textarea",disabled:e.element.options.disabled,placeholder:e.element.options.placeholder,maxlength:e.element.options.maxlength,"show-word-limit":e.element.options.showWordLimit,clearable:e.element.options.clearable,autosize:{minRows:e.element.options.minRows,maxRows:e.element.options.maxRows}},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"number"==e.element.type?[n("el-input-number",{style:{width:e.element.options.width},attrs:{disabled:e.element.options.disabled,"controls-position":e.element.options.controlsPosition?"right":"",min:e.element.options.min,max:e.element.options.max,step:e.element.options.step,precision:e.element.options.precision},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"radio"==e.element.type?[n("el-radio-group",{style:{width:e.element.options.width},attrs:{disabled:e.element.options.disabled},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}},[e.element.options.buttonType?e._l(e.element.options.options,(function(t,i){return n("el-radio-button",{key:t.value+i,style:{display:e.element.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.element.options.border}},[e._v("\n "+e._s(e.element.options.showLabel?t.label:t.value)+"\n ")])})):e._l(e.element.options.options,(function(t,i){return n("el-radio",{key:t.value+i,style:{display:e.element.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.element.options.border}},[e._v("\n "+e._s(e.element.options.showLabel?t.label:t.value)+"\n ")])}))],2)]:e._e(),e._v(" "),"checkbox"==e.element.type?[n("el-checkbox-group",{style:{width:e.element.options.width},attrs:{disabled:e.element.options.disabled,min:e.element.options.min,max:e.element.options.max},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}},[e.element.options.buttonType?e._l(e.element.options.options,(function(t,i){return n("el-checkbox-button",{key:t.value+i,style:{display:e.element.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.element.options.border}},[e._v("\n "+e._s(e.element.options.showLabel?t.label:t.value)+"\n ")])})):e._l(e.element.options.options,(function(t,i){return n("el-checkbox",{key:t.value+i,style:{display:e.element.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.element.options.border}},[e._v("\n "+e._s(e.element.options.showLabel?t.label:t.value)+"\n ")])}))],2)]:e._e(),e._v(" "),"time"==e.element.type?[e.element.options.timeType?n("el-time-picker",{style:{width:e.element.options.width},attrs:{"is-range":e.element.options.isRange,placeholder:e.element.options.placeholder,"start-placeholder":e.element.options.startPlaceholder,"end-placeholder":e.element.options.endPlaceholder,readonly:e.element.options.readonly,disabled:e.element.options.disabled,editable:e.element.options.editable,clearable:e.element.options.clearable,arrowControl:e.element.options.arrowControl},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}}):[n("el-time-select",{style:{width:e.element.options.width},attrs:{"is-range":e.element.options.isRange,placeholder:e.element.options.selectRange?e.element.options.startPlaceholder:e.element.options.placeholder,readonly:e.element.options.readonly,disabled:e.element.options.disabled,editable:e.element.options.editable,clearable:e.element.options.clearable,arrowControl:e.element.options.arrowControl,"picker-options":e.element.options.stretTimePickerOptions},model:{value:e.element.options.selectStartTime,callback:function(t){e.$set(e.element.options,"selectStartTime",t)},expression:"element.options.selectStartTime"}}),e._v(" "),e.element.options.selectRange?n("el-time-select",{style:{width:e.element.options.width},attrs:{"is-range":e.element.options.isRange,placeholder:e.element.options.endPlaceholder,readonly:e.element.options.readonly,disabled:e.element.options.disabled,editable:e.element.options.editable,clearable:e.element.options.clearable,arrowControl:e.element.options.arrowControl,"picker-options":e.element.options.endTimePickerOptions},model:{value:e.element.options.selectEndTime,callback:function(t){e.$set(e.element.options,"selectEndTime",t)},expression:"element.options.selectEndTime"}}):e._e()]]:e._e(),e._v(" "),"date"==e.element.type?[n("el-date-picker",{style:{width:e.element.options.width},attrs:{type:e.element.options.type,"is-range":e.element.options.isRange,placeholder:e.element.options.placeholder,"start-placeholder":e.element.options.startPlaceholder,"end-placeholder":e.element.options.endPlaceholder,readonly:e.element.options.readonly,disabled:e.element.options.disabled,editable:e.element.options.editable,clearable:e.element.options.clearable},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"rate"==e.element.type?[n("el-rate",{attrs:{max:e.element.options.max,disabled:e.element.options.disabled,"allow-half":e.element.options.allowHalf,"show-text":e.element.options.showText,texts:e.element.options.auxiliaryValue},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"color"==e.element.type?[n("el-color-picker",{attrs:{disabled:e.element.options.disabled,"show-alpha":e.element.options.showAlpha},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"select"==e.element.type?[n("el-select",{style:{width:e.element.options.width},attrs:{disabled:e.element.options.disabled,multiple:e.element.options.multiple,collapseTags:e.element.options.collapseTags,allowCreate:e.element.options.allowCreate,clearable:e.element.options.clearable,placeholder:e.element.options.placeholder,filterable:!!e.element.options.allowCreate||e.element.options.filterable},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}},e._l(e.element.options.options,(function(t){return n("el-option",{key:t.value,attrs:{value:t.value,label:e.element.options.showLabel?t.label:t.value}})})),1)]:e._e(),e._v(" "),"switch"==e.element.type?[n("el-switch",{attrs:{disabled:e.element.options.disabled,"inactive-text":e.element.options.switchInactiveText,"active-text":e.element.options.switchActiveText,"inactive-color":e.element.options.switchInactiveColor,"active-color":e.element.options.switchActiveColor},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"slider"==e.element.type?[n("el-slider",{style:{width:e.element.options.width,height:e.element.options.height},attrs:{min:e.element.options.min,max:e.element.options.max,disabled:e.element.options.disabled,step:e.element.options.step,"show-input":e.element.options.showInput,range:e.element.options.range,"show-tooltip":e.element.options.showTooltip,"format-tooltip":function(t){return e.formatTooltip(t,e.element.options.formatTooltip)},"show-stops":e.element.options.showStops,vertical:e.element.options.vertical},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"imgupload"==e.element.type?[n("el-upload",{staticClass:"upload-demo",attrs:{action:e.element.options.remoteFunc,"on-preview":function(t){return e.handlePictureCardPreview(t,e.element.options.listType)},"on-remove":e.handleRemove,multiple:e.element.options.multiple,limit:e.element.options.length,width:e.element.options.size.width,height:e.element.options.size.height,"list-type":e.element.options.listType,"file-list":e.element.options.defaultValue,drag:e.element.options.drag,"on-change":e.handleAvatar,"on-error":e.handleAvatarError,disabled:e.element.options.disabled}},[["default","picture"].includes(e.element.options.listType)&&!e.element.options.drag?n("el-button",{attrs:{size:"small",type:"primary",disabled:e.element.options.disabled}},[e._v("点击上传")]):e._e(),e._v(" "),"picture-card"!==e.element.options.listType||e.element.options.drag?e._e():n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),e._v(" "),e.element.options.drag?n("i",{staticClass:"el-icon-upload"}):e._e(),e._v(" "),e.element.options.drag?n("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),n("em",[e._v("点击上传")])]):e._e(),e._v(" "),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},domProps:{innerHTML:e._s(e.element.options.elUploadTip)},slot:"tip"})],1)]:e._e(),e._v(" "),"cascader"==e.element.type?[n("el-cascader",{style:{width:e.element.options.width},attrs:{disabled:e.element.options.disabled,clearable:e.element.options.clearable,placeholder:e.element.options.placeholder,options:e.element.options.remoteOptions,props:e.element.options.props,"show-all-levels":!e.element.options.showAllLevels,"collapse-tags":e.element.options.collapseTags},scopedSlots:e._u([{key:"default",fn:function(t){return t=t.data,[n("span",{domProps:{innerHTML:e._s(e.element.options.prepend)}}),e._v(" "),n("span",[e._v(e._s(t.label))]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.element.options.append)}})]}}],null,!1,991418356),model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"editor"==e.element.type?[n("vue-editor",{style:{width:e.element.options.width,height:e.element.options.height},attrs:{disabled:e.element.options.disabled},model:{value:e.element.options.defaultValue,callback:function(t){e.$set(e.element.options,"defaultValue",t)},expression:"element.options.defaultValue"}})]:e._e(),e._v(" "),"blank"==e.element.type?[n("div",{staticStyle:{height:"50px",color:"#999",background:"#eee","line-height":"50px","text-align":"center"}},[e._v("\n 自定义区域\n ")])]:e._e(),e._v(" "),"text"==e.element.type?[n("span",[e._v(e._s(e.element.options.defaultValue))])]:e._e(),e._v(" "),e.selectWidget.key==e.element.key?n("div",{staticClass:"widget-view-action"},[n("i",{staticClass:"iconfont icon-icon_clone",on:{click:function(t){return t.stopPropagation(),e.handleWidgetClone(e.index)}}}),e._v(" "),n("i",{staticClass:"iconfont icon-trash",on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(e.index)}}})]):e._e(),e._v(" "),e.selectWidget.key==e.element.key?n("div",{staticClass:"widget-view-drag"},[n("i",{staticClass:"iconfont icon-drag drag-widget"})]):e._e(),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],2):e._e()}),[],!1,null,null,null).exports;function P(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}M=i({components:{Draggable:C.a,WidgetFormItem:M},props:["data","select"],data:function(){return{selectWidget:this.select}},mounted:function(){document.body.ondrop=function(e){-1<navigator.userAgent.toLowerCase().indexOf("firefox")&&(e.preventDefault(),e.stopPropagation())}},methods:{handleMoveEnd:function(e){e.newIndex,e.oldIndex},handleSelectWidget:function(e){this.selectWidget=this.data.list[e]},handleWidgetAdd:function(e){var t=e.newIndex;e.to,e=Date.parse(new Date)+"_"+Math.ceil(99999*Math.random());this.$set(this.data.list,t,N(N({},this.data.list[t]),{},{options:N({},this.data.list[t].options),key:e,model:this.data.list[t].type+"_"+e,rules:[]})),"radio"!==this.data.list[t].type&&"checkbox"!==this.data.list[t].type&&"select"!==this.data.list[t].type||this.$set(this.data.list,t,N(N({},this.data.list[t]),{},{options:N(N({},this.data.list[t].options),{},{options:this.data.list[t].options.options.map((function(e){return N({},e)}))})})),"grid"===this.data.list[t].type&&this.$set(this.data.list,t,N(N({},this.data.list[t]),{},{columns:this.data.list[t].columns.map((function(e){return N({},e)}))})),this.selectWidget=this.data.list[t]},handleWidgetColAdd:function(e,t,n){console.log("coladd",e,t,n);var i=e.newIndex,o=e.oldIndex;if(0<=(e=e.item).className.indexOf("data-grid"))return"DIV"===e.tagName&&this.data.list.splice(o,0,t.columns[n].list[i]),t.columns[n].list.splice(i,1),!1;console.log("from",e),o=Date.parse(new Date)+"_"+Math.ceil(99999*Math.random()),this.$set(t.columns[n].list,i,N(N({},t.columns[n].list[i]),{},{options:N({},t.columns[n].list[i].options),key:o,model:t.columns[n].list[i].type+"_"+o,rules:[]})),"radio"!==t.columns[n].list[i].type&&"checkbox"!==t.columns[n].list[i].type&&"select"!==t.columns[n].list[i].type||this.$set(t.columns[n].list,i,N(N({},t.columns[n].list[i]),{},{options:N(N({},t.columns[n].list[i].options),{},{options:t.columns[n].list[i].options.options.map((function(e){return N({},e)}))})})),this.selectWidget=t.columns[n].list[i]},handleWidgetDelete:function(e){var t=this;this.data.list.length-1===e?this.selectWidget=0===e?{}:this.data.list[e-1]:this.selectWidget=this.data.list[e+1],this.$nextTick((function(){t.data.list.splice(e,1)}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widget-form-container"},[0==e.data.list.length?n("div",{staticClass:"form-empty"},[e._v("\n 从左侧拖拽来添加字段\n ")]):e._e(),e._v(" "),n("el-form",{attrs:{size:e.data.config.size,"label-suffix":":","label-position":e.data.config.labelPosition,"label-width":e.data.config.labelWidth+"px"}},[n("draggable",e._b({on:{end:e.handleMoveEnd,add:e.handleWidgetAdd},model:{value:e.data.list,callback:function(t){e.$set(e.data,"list",t)},expression:"data.list"}},"draggable",{group:"people",ghostClass:"ghost",animation:200,handle:".drag-widget"},!1),[n("transition-group",{staticClass:"widget-form-list",attrs:{name:"fade",tag:"div"}},[e._l(e.data.list,(function(t,i){return["grid"==t.type?[t&&t.key?n("el-row",{key:t.key,staticClass:"widget-col widget-view",class:{active:e.selectWidget.key==t.key},attrs:{type:"flex",gutter:t.options.gutter||0,justify:t.options.justify,align:t.options.align},nativeOn:{click:function(t){return e.handleSelectWidget(i)}}},[e._l(t.columns,(function(i,o){return n("el-col",{key:o,attrs:{span:i.span||0}},[n("draggable",e._b({attrs:{"no-transition-on-drag":!0},on:{end:e.handleMoveEnd,add:function(n){return e.handleWidgetColAdd(n,t,o)}},model:{value:i.list,callback:function(t){e.$set(i,"list",t)},expression:"col.list"}},"draggable",{group:"people",ghostClass:"ghost",animation:200,handle:".drag-widget"},!1),[n("transition-group",{staticClass:"widget-col-list",attrs:{name:"fade",tag:"div"}},[e._l(i.list,(function(t,o){return[t.key?n("widget-form-item",{key:t.key,attrs:{element:t,select:e.selectWidget,index:o,data:i},on:{"update:select":function(t){e.selectWidget=t}}}):e._e()]}))],2)],1)],1)})),e._v(" "),e.selectWidget.key==t.key?n("div",{staticClass:"widget-view-action widget-col-action"},[n("i",{staticClass:"iconfont icon-trash",on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(i)}}})]):e._e(),e._v(" "),e.selectWidget.key==t.key?n("div",{staticClass:"widget-view-drag widget-col-drag"},[n("i",{staticClass:"iconfont icon-drag drag-widget"})]):e._e()],2):e._e()]:[t&&t.key?n("widget-form-item",{key:t.key,attrs:{element:t,select:e.selectWidget,index:i,data:e.data},on:{"update:select":function(t){e.selectWidget=t}}}):e._e()]]}))],2)],1)],1)],1)}),[],!1,null,null,null).exports;var I=i({props:{visible:Boolean,loadingText:{type:String,default:""},title:{type:String,default:""},width:{type:String,default:"600px"},form:{type:Boolean,default:!0},action:{type:Boolean,default:!0}},computed:{show:function(){return!this.form||this.showForm}},data:function(){return{loading:!1,dialogVisible:this.visible,id:"dialog_"+(new Date).getTime(),showForm:!1}},methods:{close:function(){this.dialogVisible=!1},submit:function(){this.loading=!0,this.$emit("on-submit")},end:function(){this.loading=!1}},mounted:function(){},watch:{dialogVisible:function(e){var t=this;e?this.showForm=!0:(this.loading=!1,this.$emit("on-close"),setTimeout((function(){t.showForm=!1}),300))},visible:function(e){this.dialogVisible=e}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{ref:"elDialog",staticClass:"cus-dialog-container",attrs:{title:e.title,visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":"",center:"",width:e.width,id:e.id},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.show?n("span",[e._t("default")],2):e._e(),e._v(" "),e.action?n("span",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"dialog-footer",attrs:{slot:"footer","element-loading-text":e.loadingText},slot:"footer"},[e._t("action",(function(){return[n("el-button",{on:{click:e.close}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])]}))],2):e._e()])}),[],!1,(function(e){n(65)}),null,null).exports;function D(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}O=i({props:["widget","models","rules","remote"],components:{FmUpload:O,VueEditor:X.a},data:function(){return{dataModel:this.models[this.widget.model],dialogVisible:!1,dialogImageUrl:""}},created:function(){var e=this;this.widget.options.remote&&this.remote[this.widget.options.remoteFunc]&&this.remote[this.widget.options.remoteFunc]((function(t){e.widget.options.remoteOptions=t.map((function(t){return{value:t[e.widget.options.props.value],label:t[e.widget.options.props.label],children:t[e.widget.options.props.children]}}))})),"imgupload"===this.widget.type&&this.remote[this.widget.options.remoteFunc]&&this.remote[this.widget.options.remoteFunc]((function(t){e.widget.options.remoteApi=t})),"time"!==this.widget.type||this.widget.options.timeType||(this.dataModel=[])},methods:{handleTimePicker:function(e){this.dataModel=[],this.dataModel[0]=e,this.widget.options.endTimePickerOptions.minTime=e},formatTooltip:function(e,t){return e/t},handlePictureCardPreview:function(e,t){"picture-card"===t&&(this.dialogImageUrl=e.url,this.dialogVisible=!0)},handleRemove:function(e,t){this.dataModel={data:t,remoteApi:this.widget.options.remoteApi}},handleAvatar:function(e,t){this.dataModel={data:t,remoteApi:this.widget.options.remoteApi}},handleAvatarError:function(){console.log("上传失败!")}},watch:{dataModel:{deep:!0,handler:function(e){this.models[this.widget.model]=e,this.$emit("update:models",j(j({},this.models),{},F({},this.widget.model,e))),this.$emit("input-change",e,this.widget.model)}},models:{deep:!0,handler:function(e){this.dataModel=e[this.widget.model]}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.widget.name,prop:e.widget.model}},["input"==e.widget.type?["number"==e.widget.options.dataType||"integer"==e.widget.options.dataType||"float"==e.widget.options.dataType?n("el-input",{style:{width:e.widget.options.width},attrs:{type:"number",placeholder:e.widget.options.placeholder,disabled:e.widget.options.disabled,readonly:e.widget.options.readonly,clearable:e.widget.options.clearable,maxlength:e.widget.options.maxlength,"show-word-limit":e.widget.options.showWordLimit,"show-password":e.widget.options.showPassword},model:{value:e.dataModel,callback:function(t){e.dataModel=e._n(t)},expression:"dataModel"}}):n("el-input",{style:{width:e.widget.options.width},attrs:{type:"text",placeholder:e.widget.options.placeholder,disabled:e.widget.options.disabled,readonly:e.widget.options.readonly,clearable:e.widget.options.clearable,maxlength:e.widget.options.maxlength,"show-word-limit":e.widget.options.showWordLimit,"show-password":e.widget.options.showPassword,"suffix-icon":e.widget.options.suffixIcon,"prefix-icon":e.widget.options.prefixIcon},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.prepend?n("template",{slot:"prepend"},[e._v(e._s(e.widget.options.prepend))]):e._e(),e._v(" "),e.widget.options.append?n("template",{slot:"append"},[e._v(e._s(e.widget.options.append))]):e._e()],2)]:e._e(),e._v(" "),"textarea"==e.widget.type?[n("el-input",{style:{width:e.widget.options.width},attrs:{type:"textarea",disabled:e.widget.options.disabled,placeholder:e.widget.options.placeholder,maxlength:e.widget.options.maxlength,clearable:e.widget.options.clearable,"show-word-limit":e.widget.options.showWordLimit,autosize:{minRows:e.widget.options.minRows,maxRows:e.widget.options.maxRows}},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"number"==e.widget.type?[n("el-input-number",{style:{width:e.widget.options.width},attrs:{step:e.widget.options.step,"controls-position":e.widget.options.controlsPosition?"right":"",disabled:e.widget.options.disabled,min:e.widget.options.min,max:e.widget.options.max,precision:e.widget.options.precision},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"radio"==e.widget.type?[n("el-radio-group",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.buttonType?e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-radio-button",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)})):e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-radio",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)}))],2)]:e._e(),e._v(" "),"checkbox"==e.widget.type?[n("el-checkbox-group",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled,min:e.widget.options.min,max:e.widget.options.max},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},[e.widget.options.buttonType?e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-checkbox-button",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)})):e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t,i){return n("el-checkbox",{key:i,style:{display:e.widget.options.inline?"inline-block":"block"},attrs:{label:t.value,border:e.widget.options.border}},[e.widget.options.remote?[e._v(e._s(t.label))]:[e._v(e._s(e.widget.options.showLabel?t.label:t.value))]],2)}))],2)]:e._e(),e._v(" "),"time"==e.widget.type?[e.widget.options.timeType?n("el-time-picker",{style:{width:e.widget.options.width},attrs:{"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,"start-placeholder":e.widget.options.startPlaceholder,"end-placeholder":e.widget.options.endPlaceholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable,arrowControl:e.widget.options.arrowControl,"value-format":e.widget.options.format},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}):[n("el-time-select",{style:{width:e.widget.options.width},attrs:{placeholder:e.widget.options.selectRange?e.widget.options.startPlaceholder:e.widget.options.placeholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable,arrowControl:e.widget.options.arrowControl,"picker-options":e.widget.options.stretTimePickerOptions},on:{change:function(t){return e.handleTimePicker(t)}},model:{value:e.dataModel[0],callback:function(t){e.$set(e.dataModel,0,t)},expression:"dataModel[0]"}}),e._v(" "),e.widget.options.selectRange?n("el-time-select",{style:{width:e.widget.options.width},attrs:{placeholder:e.widget.options.endPlaceholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable,arrowControl:e.widget.options.arrowControl,"picker-options":e.widget.options.endTimePickerOptions},model:{value:e.dataModel[1],callback:function(t){e.$set(e.dataModel,1,t)},expression:"dataModel[1]"}}):e._e()]]:e._e(),e._v(" "),"date"==e.widget.type?[n("el-date-picker",{style:{width:e.widget.options.width},attrs:{type:e.widget.options.type,"is-range":e.widget.options.isRange,placeholder:e.widget.options.placeholder,"start-placeholder":e.widget.options.startPlaceholder,"end-placeholder":e.widget.options.endPlaceholder,readonly:e.widget.options.readonly,disabled:e.widget.options.disabled,editable:e.widget.options.editable,clearable:e.widget.options.clearable},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"rate"==e.widget.type?[n("el-rate",{attrs:{max:e.widget.options.max,disabled:e.widget.options.disabled,"allow-half":e.widget.options.allowHalf,"show-text":e.widget.options.showText,texts:e.widget.options.auxiliaryValue},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"color"==e.widget.type?[n("el-color-picker",{attrs:{disabled:e.widget.options.disabled,"show-alpha":e.widget.options.showAlpha},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"select"==e.widget.type?[n("el-select",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled,multiple:e.widget.options.multiple,clearable:e.widget.options.clearable,placeholder:e.widget.options.placeholder,collapseTags:e.widget.options.collapseTags,allowCreate:e.widget.options.allowCreate,filterable:!!e.widget.options.allowCreate||e.widget.options.filterable},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.widget.options.remote?e.widget.options.remoteOptions:e.widget.options.options,(function(t){return n("el-option",{key:t.value,attrs:{value:t.value,label:e.widget.options.showLabel||e.widget.options.remote?t.label:t.value}})})),1)]:e._e(),e._v(" "),"switch"==e.widget.type?[n("el-switch",{attrs:{disabled:e.widget.options.disabled,"inactive-text":e.widget.options.switchInactiveText,"active-text":e.widget.options.switchActiveText,"inactive-color":e.widget.options.switchInactiveColor,"active-color":e.widget.options.switchActiveColor},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"slider"==e.widget.type?[n("el-slider",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{min:e.widget.options.min,max:e.widget.options.max,disabled:e.widget.options.disabled,step:e.widget.options.step,"show-input":e.widget.options.showInput,range:e.widget.options.range,"show-tooltip":e.widget.options.showTooltip,"format-tooltip":function(t){return e.formatTooltip(t,e.widget.options.formatTooltip)},"show-stops":e.widget.options.showStops,vertical:e.widget.options.vertical},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"imgupload"==e.widget.type?[n("el-upload",{staticClass:"upload-demo",attrs:{action:e.widget.options.remoteFunc,"on-preview":function(t){return e.handlePictureCardPreview(t,e.widget.options.listType)},"on-remove":e.handleRemove,multiple:e.widget.options.multiple,limit:e.widget.options.length,width:e.widget.options.size.width,height:e.widget.options.size.height,"list-type":e.widget.options.listType,"on-change":e.handleAvatar,"on-error":e.handleAvatarError,drag:e.widget.options.drag,disabled:e.widget.options.disabled,"auto-upload":!1}},[["default","picture"].includes(e.widget.options.listType)&&!e.widget.options.drag?n("el-button",{attrs:{size:"small",type:"primary",disabled:e.widget.options.disabled}},[e._v("点击上传")]):e._e(),e._v(" "),"picture-card"!==e.widget.options.listType||e.widget.options.drag?e._e():n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),e._v(" "),e.widget.options.drag?n("i",{staticClass:"el-icon-upload"}):e._e(),e._v(" "),e.widget.options.drag?n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或"),n("em",[e._v("点击上传")])]):e._e(),e._v(" "),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},domProps:{innerHTML:e._s(e.widget.options.elUploadTip)},slot:"tip"})],1)]:e._e(),e._v(" "),"editor"==e.widget.type?[n("vue-editor",{style:{width:e.widget.options.width},attrs:{disabled:e.widget.options.disabled},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"cascader"==e.widget.type?[n("el-cascader",{style:{width:e.widget.options.width,height:e.widget.options.height},attrs:{disabled:e.widget.options.disabled,clearable:e.widget.options.clearable,placeholder:e.widget.options.placeholder,options:e.widget.options.remoteOptions,props:e.widget.options.props,"show-all-levels":!e.widget.options.showAllLevels,"collapse-tags":e.widget.options.collapseTags,filterable:e.widget.options.filterable},scopedSlots:e._u([{key:"default",fn:function(t){return t=t.data,[n("span",{domProps:{innerHTML:e._s(e.widget.options.prepend)}}),e._v(" "),n("span",[e._v(e._s(t.label))]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.widget.options.append)}})]}}],null,!1,1426148692),model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]:e._e(),e._v(" "),"text"==e.widget.type?[n("span",[e._v(e._s(e.dataModel))])]:e._e(),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],2)}),[],!1,null,null,null);var U=i({name:"fm-generate-form",components:{GenetateFormItem:O.exports},props:["data","remote","value","insite"],data:function(){return{models:{},rules:{}}},created:function(){this.generateModle(this.data.list)},mounted:function(){},methods:{generateModle:function(e){for(var t=this,n=0;n<e.length;n++)"grid"===e[n].type?e[n].columns.forEach((function(e){t.generateModle(e.list)})):(this.value&&0<=Object.keys(this.value).indexOf(e[n].model)?this.models[e[n].model]=this.value[e[n].model]:"blank"===e[n].type?this.$set(this.models,e[n].model,"String"===e[n].options.defaultType?"":"Object"===e[n].options.defaultType?{}:[]):this.models[e[n].model]=e[n].options.defaultValue,this.rules[e[n].model]?this.rules[e[n].model]=[].concat(W(this.rules[e[n].model]),W(e[n].rules.map((function(e){return e.pattern?z(z({},e),{},{pattern:new RegExp(e.pattern)}):z({},e)})))):this.rules[e[n].model]=W(e[n].rules.map((function(e){return e.pattern?z(z({},e),{},{pattern:new RegExp(e.pattern)}):z({},e)}))))},getData:function(){var e=this;return new Promise((function(t,n){e.$refs.generateForm.validate((function(i){i?t(e.models):n(new Error("表单数据校验失败").message)}))}))},reset:function(){this.$refs.generateForm.resetFields()},onInputChange:function(e,t){this.$emit("on-change",t,e,this.models)},refresh:function(){}},watch:{data:{deep:!0,handler:function(e){this.generateModle(e.list)}},value:{deep:!0,handler:function(e){console.log(JSON.stringify(e)),this.models=z(z({},this.models),e)}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fm-style"},[n("el-form",{ref:"generateForm",attrs:{"label-suffix":":",size:e.data.config.size,model:e.models,rules:e.rules,"label-position":e.data.config.labelPosition,"label-width":e.data.config.labelWidth+"px"}},[e._l(e.data.list,(function(t){return["grid"==t.type?[n("el-row",{key:t.key,attrs:{type:"flex",gutter:t.options.gutter||0,justify:t.options.justify,align:t.options.align}},e._l(t.columns,(function(t,i){return n("el-col",{key:i,attrs:{span:t.span}},[e._l(t.list,(function(t){return["blank"==t.type?n("el-form-item",{key:t.key,attrs:{label:t.name,prop:t.model}},[e._t(t.model,null,{model:e.models})],2):n("genetate-form-item",{key:t.key,attrs:{models:e.models,remote:e.remote,rules:e.rules,widget:t},on:{"update:models":function(t){e.models=t},"input-change":e.onInputChange}})]}))],2)})),1)]:"blank"==t.type?[n("el-form-item",{key:t.key,attrs:{label:t.name,prop:t.model}},[e._t(t.model,null,{model:e.models})],2)]:[n("genetate-form-item",{key:t.key,attrs:{models:e.models,rules:e.rules,widget:t,remote:e.remote},on:{"update:models":function(t){e.models=t},"input-change":e.onInputChange}})]]}))],2)],1)}),[],!1,(function(e){n(67)}),null,null).exports;function V(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var K=[{name:"单行文本",type:"input",icon:"icon-input",options:{width:"100%",defaultValue:"",dataType:"string",pattern:"",placeholder:"",maxlength:-1,required:!1,disabled:!1,readonly:!1,clearable:!1,showWordLimit:!1,showPassword:!1,prefixIcon:"",suffixIcon:"",prepend:"",append:""}},{name:"多行文本",type:"textarea",icon:"icon-diy-com-textarea",options:{width:"100%",defaultValue:"",pattern:"",placeholder:"",maxlength:-1,rows:2,required:!1,disabled:!1,readonly:!1,clearable:!1,showWordLimit:!1,prefixIcon:"",suffixIcon:"",minRows:2,maxRows:5}},{name:"计数器",type:"number",icon:"icon-number",options:(V(X={width:"40%",required:!1,defaultValue:0,min:1,max:2,step:1,disabled:!1,controlsPosition:!1},"step",1),V(X,"precision",1),X)},{name:"单选框组",type:"radio",icon:"icon-radio-active",options:{inline:!1,defaultValue:"",showLabel:!1,options:[{value:"Option 1",label:"Option 1"},{value:"Option 2",label:"Option 2"},{value:"Option 3",label:"Option 3"}],required:!1,width:"",remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1,border:!1,buttonType:!1}},{name:"多选框组",type:"checkbox",icon:"icon-check-box",options:{inline:!1,defaultValue:[],showLabel:!1,options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],required:!1,width:"",remote:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:"",disabled:!1,border:!1,buttonType:!1,min:0,max:0}},{name:"时间选择器",type:"time",icon:"icon-time",options:{defaultValue:"21:19:56",readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",isRange:!1,arrowControl:!0,format:"HH:mm:ss",required:!1,width:"",timeType:!0,selectRange:!1,selectStartTime:"",selectEndTime:"",stretTimePickerOptions:{start:"08:30",step:"00:15",end:"18:30"},endTimePickerOptions:{start:"08:30",step:"00:15",end:"18:30",minTime:"08:30"}}},{name:"日期选择器",type:"date",icon:"icon-date",options:{defaultValue:"",readonly:!1,disabled:!1,editable:!0,clearable:!0,placeholder:"",startPlaceholder:"",endPlaceholder:"",type:"date",format:"yyyy-MM-dd",timestamp:!1,required:!1,width:""}},{name:"评分",type:"rate",icon:"icon-pingfen1",options:{defaultValue:null,max:5,disabled:!1,allowHalf:!1,required:!1,showText:!1,auxiliaryValue:["极差","失望","一般","满意","惊喜"]}},{name:"颜色选择器",type:"color",icon:"icon-color",options:{defaultValue:"",disabled:!1,showAlpha:!1,required:!1}},{name:"下拉选择框",type:"select",icon:"icon-select",options:{defaultValue:"",multiple:!1,disabled:!1,clearable:!1,placeholder:"",required:!1,showLabel:!1,collapseTags:!1,allowCreate:!1,width:"",options:[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"}],remote:!1,filterable:!1,remoteOptions:[],props:{value:"value",label:"label"},remoteFunc:""}},{name:"开关",type:"switch",icon:"icon-switch",options:{defaultValue:!1,required:!1,disabled:!1,switchInactiveText:"",switchActiveText:"",switchInactiveColor:"",switchActiveColor:""}},{name:"滑块",type:"slider",icon:"icon-slider",options:{defaultValue:0,disabled:!1,required:!1,min:0,max:100,step:1,showInput:!1,range:!1,vertical:!1,width:"",height:"",showTooltip:!0,formatTooltip:1,showStops:!1}},{name:"文字",type:"text",icon:"icon-wenzishezhi-",options:{defaultValue:"This is a text",customClass:""}}],G=[{name:"自定义区域",type:"blank",icon:"icon-zidingyishuju",options:{defaultType:"String"}},{name:"图片",type:"imgupload",icon:"icon-tupian",options:(V(O={defaultValue:[],size:{width:100,height:100},width:"",tokenFunc:"funcGetToken",token:"",domain:"https://tcdn.form.making.link/",disabled:!1,length:8,multiple:!1,autoUpload:!1,isQiniu:!1,min:0,remoteFunc:"https://jsonplaceholder.typicode.com/posts/",remoteApi:{}},"disabled",!1),V(O,"required",!1),V(O,"multiple",!1),V(O,"elUploadTip",""),V(O,"listType","default"),V(O,"drag",!1),O)},{name:"编辑器",type:"editor",icon:"icon-fuwenbenkuang",options:{defaultValue:"",width:"",height:"",disabled:!1,required:!1}},{name:"级联选择器",type:"cascader",icon:"icon-jilianxuanze",options:{defaultValue:[],width:"",placeholder:"",disabled:!1,clearable:!1,required:!1,remote:!0,showAllLevels:!1,collapseTags:!1,filterable:!1,prepend:"",append:"",remoteOptions:[],props:{value:"value",label:"label",children:"children",multiple:!1,expandTrigger:"hover",checkStrictly:!1},remoteFunc:""}}],Y=[{name:"栅格布局",type:"grid",icon:"icon-grid-",columns:[{span:12,list:[]},{span:12,list:[]}],options:{gutter:0,justify:"start",align:"top"}}],X=n(28),Z=((O=n.n(X).a.create({withCredentials:!1})).interceptors.request.use((function(e){return e}),(function(e){return console.log("error",e),Promise.reject(new Error(e).message)})),O.interceptors.response.use((function(e){return console.log(".....",e),e.data}),(function(e){return console.log("error",e),Promise.reject(new Error(e).message)})),O);function J(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"vue",n=[],i=[],o=[],r=(function e(t,n,i,o){for(var r=0;r<t.length;r++)"grid"==t[r].type?t[r].columns.forEach((function(t){e(t.list,n,i,o)})):"blank"==t[r].type?t[r].model&&o.push({name:t[r].model,label:t[r].name}):"imgupload"==t[r].type?t[r].options.tokenFunc&&i.push({func:t[r].options.tokenFunc,label:t[r].name,model:t[r].model}):t[r].options.remote&&t[r].options.remoteFunc&&n.push({func:t[r].options.remoteFunc,label:t[r].name,model:t[r].model})}(JSON.parse(e).list,n,i,o),""),s="",a=0;a<n.length;a++)r+="\n ".concat(n[a].func," (resolve) {\n // ").concat(n[a].label," ").concat(n[a].model,"\n // Call callback function once get the data from remote server\n // resolve(data)\n },\n ");for(var l=0;l<i.length;l++)r+="\n ".concat(i[l].func," (resolve) {\n // ").concat(i[l].label," ").concat(i[l].model,"\n // Call callback function once get the token\n // resolve(token)\n },\n ");for(var c=0;c<o.length;c++)s+='\n <template slot="'.concat(o[c].name,'" slot-scope="scope">\n \x3c!-- ').concat(o[c].label,' --\x3e\n \x3c!-- use v-model="scope.model.').concat(o[c].name,'" to bind data --\x3e\n </template>\n ');return"vue"==t?'<template>\n <div>\n <fm-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '.concat(s,'\n </fm-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n</template>\n\n<script>\n export default {\n data () {\n return {\n jsonData: ').concat(e,",\n editData: {},\n remoteFuncs: {\n ").concat(r,"\n }\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n }\n<\/script>"):'<!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">\n <link rel="stylesheet" href="https://unpkg.com/form-making/dist/FormMaking.css">\n </head>\n <body>\n <div id="app">\n <fm-generate-form :data="jsonData" :remote="remoteFuncs" :value="editData" ref="generateForm">\n '.concat(s,'\n </fm-generate-form>\n <el-button type="primary" @click="handleSubmit">提交</el-button>\n </div>\n <script src="https://unpkg.com/vue/dist/vue.js"><\/script>\n <script src="https://unpkg.com/element-ui/lib/index.js"><\/script>\n <script src="https://unpkg.com/form-making/dist/FormMaking.umd.js"><\/script>\n <script>\n new Vue({\n el: \'#app\',\n data: {\n jsonData: ').concat(e,",\n editData: {},\n remoteFuncs: {\n ").concat(r,"\n }\n },\n methods: {\n handleSubmit () {\n this.$refs.generateForm.getData().then(data => {\n // data check success\n // data - form data\n }).catch(e => {\n // data check failed\n })\n }\n }\n })\n <\/script>\n </body>\n </html>")}k.a.config.setModuleUrl("ace/mode/html_worker",x.a),k.a.config.setModuleUrl("ace/mode/json_worker",_.a);var Q=i({name:"fm-making-form",components:{Draggable:C.a,WidgetConfig:S,FormConfig:E,WidgetForm:M,CusDialog:I,GenerateForm:U},props:{preview:{type:Boolean,default:!1},generateCode:{type:Boolean,default:!1},generateJson:{type:Boolean,default:!1},upload:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},basicFields:{type:Array,default:function(){return["input","textarea","number","radio","checkbox","time","date","rate","color","select","switch","slider","text"]}},advanceFields:{type:Array,default:function(){return["blank","imgupload","editor","cascader"]}},layoutFields:{type:Array,default:function(){return["grid"]}},remoteApis:{type:Array,default:function(){return[]}}},data:function(){return{basicComponents:K,layoutComponents:Y,advanceComponents:G,resetJson:!1,widgetForm:{list:[],config:{labelWidth:100,labelPosition:"right",size:"small"}},configTab:"widget",widgetFormSelect:null,previewVisible:!1,jsonVisible:!1,codeVisible:!1,uploadVisible:!1,remoteFuncs:{func_test:function(e){setTimeout((function(){e([{id:"1",name:"1111"},{id:"2",name:"2222"},{id:"3",name:"3333"}])}),2e3)},funcGetToken:function(e){Z.get("http://tools-server.making.link/api/uptoken").then((function(t){e(t.uptoken)}))},upload_callback:function(e,t,n){console.log("callback",e,t,n)}},widgetModels:{},blank:"",htmlTemplate:"",vueTemplate:"",jsonTemplate:"",uploadEditor:null,jsonCopyValue:"",jsonClipboard:null,jsonEg:'\n{\n "list": [],\n "config": {\n "labelWidth": 100,\n "labelPosition": "top",\n "size": "small"\n }\n}',codeActiveName:"vue"}},mounted:function(){},methods:{handleGoGithub:function(){window.location.href="https://github.com/GavinZhuLei/vue-form-making"},handleConfigSelect:function(e){this.configTab=e},handleMoveEnd:function(e){},handleMoveStart:function(e){e.oldIndex},handleMove:function(){return!0},handlePreview:function(){this.previewVisible=!0},handleTest:function(){var e=this;this.$refs.generateForm.getData().then((function(t){e.$alert(t,"").catch((function(e){})),e.$refs.widgetPreview.end()})).catch((function(t){e.$refs.widgetPreview.end()}))},handleReset:function(){this.$refs.generateForm.reset()},handleGenerateJson:function(){var e=this;this.jsonVisible=!0,this.jsonTemplate=this.widgetForm,this.$nextTick((function(){k.a.edit("jsoneditor").session.setMode("ace/mode/json"),e.jsonClipboard||(e.jsonClipboard=new A.a(".json-btn"),e.jsonClipboard.on("success",(function(t){e.$message.success("复制成功")}))),e.jsonCopyValue=JSON.stringify(e.widgetForm)}))},handleGenerateCode:function(){this.codeVisible=!0,this.htmlTemplate=J(JSON.stringify(this.widgetForm),"html"),this.vueTemplate=J(JSON.stringify(this.widgetForm),"vue"),this.$nextTick((function(){k.a.edit("codeeditor").session.setMode("ace/mode/html"),k.a.edit("vuecodeeditor").session.setMode("ace/mode/html")}))},handleUpload:function(){var e=this;this.uploadVisible=!0,this.$nextTick((function(){e.uploadEditor=k.a.edit("uploadeditor"),e.uploadEditor.session.setMode("ace/mode/json")}))},handleUploadJson:function(){try{this.setJSON(JSON.parse(this.uploadEditor.getValue())),this.uploadVisible=!1}catch(e){this.$message.error(e.message),this.$refs.uploadJson.end()}},handleClear:function(){this.widgetForm={list:[],config:{labelWidth:100,labelPosition:"right",size:"small",customClass:""}},this.widgetFormSelect={}},clear:function(){this.handleClear()},getJSON:function(){return this.widgetForm},getHtml:function(){return J(JSON.stringify(this.widgetForm))},setJSON:function(e){0<(this.widgetForm=e).list.length&&(this.widgetFormSelect=e.list[0])},handleInput:function(e){this.blank=e},handleDataChange:function(e,t,n){}},watch:{widgetForm:{deep:!0,handler:function(e){}},$lang:function(e){this._loadComponents()}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fm-style"},[n("el-container",{staticClass:"fm2-container"},[n("el-main",{staticClass:"fm2-main"},[n("el-container",[n("el-aside",{attrs:{width:"250px"}},[n("div",{staticClass:"components-list"},[e.basicFields.length?[n("div",{staticClass:"widget-cate"},[e._v("\n 基础字段\n ")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.basicComponents,move:e.handleMove},on:{end:e.handleMoveEnd,start:e.handleMoveStart}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),[e._l(e.basicComponents,(function(t,i){return[0<=e.basicFields.indexOf(t.type)?n("li",{key:i,staticClass:"form-edit-widget-label",class:{"no-put":"divider"==t.type}},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])]):e._e()]}))],2)]:e._e(),e._v(" "),e.advanceFields.length?[n("div",{staticClass:"widget-cate"},[e._v("\n 高级字段\n ")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.advanceComponents,move:e.handleMove},on:{end:e.handleMoveEnd,start:e.handleMoveStart}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),[e._l(e.advanceComponents,(function(t,i){return[0<=e.advanceFields.indexOf(t.type)?n("li",{key:i,staticClass:"form-edit-widget-label",class:{"no-put":"table"==t.type}},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])]):e._e()]}))],2)]:e._e(),e._v(" "),e.layoutFields.length?[n("div",{staticClass:"widget-cate"},[e._v("\n 布局字段\n ")]),e._v(" "),n("draggable",e._b({attrs:{tag:"ul",list:e.layoutComponents,move:e.handleMove},on:{end:e.handleMoveEnd,start:e.handleMoveStart}},"draggable",{group:{name:"people",pull:"clone",put:!1},sort:!1,ghostClass:"ghost"},!1),[e._l(e.layoutComponents,(function(t,i){return[0<=e.layoutFields.indexOf(t.type)?n("li",{key:i,staticClass:"form-edit-widget-label no-put"},[n("a",[n("i",{staticClass:"icon iconfont",class:t.icon}),e._v(" "),n("span",[e._v(e._s(t.name))])])]):e._e()]}))],2)]:e._e()],2)]),e._v(" "),n("el-container",{staticClass:"center-container",attrs:{direction:"vertical"}},[n("el-header",{staticClass:"btn-bar",staticStyle:{height:"45px"}},[e._t("action"),e._v(" "),e.upload?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-upload2"},on:{click:e.handleUpload}},[e._v("导入JSON")]):e._e(),e._v(" "),e.clearable?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:e.handleClear}},[e._v("清空")]):e._e(),e._v(" "),e.preview?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:e.handlePreview}},[e._v("预览")]):e._e(),e._v(" "),e.generateJson?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-tickets"},on:{click:e.handleGenerateJson}},[e._v("生成JSON")]):e._e(),e._v(" "),e.generateCode?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:e.handleGenerateCode}},[e._v("生成代码")]):e._e()],2),e._v(" "),n("el-main",{class:{"widget-empty":0==e.widgetForm.list.length}},[e.resetJson?e._e():n("widget-form",{ref:"widgetForm",attrs:{data:e.widgetForm,select:e.widgetFormSelect},on:{"update:select":function(t){e.widgetFormSelect=t}}})],1)],1),e._v(" "),n("el-aside",{staticClass:"widget-config-container"},[n("el-container",[n("el-header",{attrs:{height:"45px"}},[n("div",{staticClass:"config-tab",class:{active:"widget"==e.configTab},on:{click:function(t){return e.handleConfigSelect("widget")}}},[e._v("\n 字段属性\n ")]),e._v(" "),n("div",{staticClass:"config-tab",class:{active:"form"==e.configTab},on:{click:function(t){return e.handleConfigSelect("form")}}},[e._v("\n 表单属性\n ")])]),e._v(" "),n("el-main",{staticClass:"config-content"},[n("widget-config",{directives:[{name:"show",rawName:"v-show",value:"widget"==e.configTab,expression:"configTab == 'widget'"}],attrs:{data:e.widgetFormSelect,remoteApis:e.remoteApis}}),e._v(" "),n("form-config",{directives:[{name:"show",rawName:"v-show",value:"form"==e.configTab,expression:"configTab == 'form'"}],attrs:{data:e.widgetForm.config}})],1)],1)],1),e._v(" "),n("cus-dialog",{ref:"widgetPreview",attrs:{visible:e.previewVisible,width:"1000px",form:""},on:{"on-close":function(t){e.previewVisible=!1}}},[e.previewVisible?n("generate-form",{ref:"generateForm",attrs:{insite:"true",data:e.widgetForm,value:e.widgetModels,remote:e.remoteFuncs},on:{"on-change":e.handleDataChange},scopedSlots:e._u([{key:"blank",fn:function(t){return[e._v("\n Width\n "),n("el-input",{staticStyle:{width:"100px"},model:{value:t.model.blank.width,callback:function(n){e.$set(t.model.blank,"width",n)},expression:"scope.model.blank.width"}}),e._v("\n Height\n "),n("el-input",{staticStyle:{width:"100px"},model:{value:t.model.blank.height,callback:function(n){e.$set(t.model.blank,"height",n)},expression:"scope.model.blank.height"}})]}}],null,!1,1894405589)}):e._e(),e._v(" "),n("template",{slot:"action"},[n("el-button",{attrs:{type:"primary"},on:{click:e.handleTest}},[e._v("获取数据")]),e._v(" "),n("el-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],2),e._v(" "),n("cus-dialog",{ref:"uploadJson",attrs:{visible:e.uploadVisible,width:"800px",form:""},on:{"on-close":function(t){e.uploadVisible=!1},"on-submit":e.handleUploadJson}},[n("el-alert",{attrs:{type:"info",title:"JSON格式如下,直接复制生成的json覆盖此处代码点击确定即可"}}),e._v(" "),n("div",{staticStyle:{height:"400px",width:"100%"},attrs:{id:"uploadeditor"}},[e._v("\n "+e._s(e.jsonEg)+"\n ")])],1),e._v(" "),n("cus-dialog",{ref:"jsonPreview",attrs:{visible:e.jsonVisible,width:"800px",form:""},on:{"on-close":function(t){e.jsonVisible=!1}}},[n("div",{staticStyle:{height:"400px",width:"100%"},attrs:{id:"jsoneditor"}},[e._v("\n "+e._s(e.jsonTemplate)+"\n ")]),e._v(" "),n("template",{slot:"action"},[n("el-button",{staticClass:"json-btn",attrs:{type:"primary","data-clipboard-text":e.jsonCopyValue}},[e._v("复制数据")])],1)],2),e._v(" "),n("cus-dialog",{ref:"codePreview",attrs:{visible:e.codeVisible,width:"800px",form:"",action:!1},on:{"on-close":function(t){e.codeVisible=!1}}},[n("el-tabs",{staticStyle:{"box-shadow":"none"},attrs:{type:"border-card"},model:{value:e.codeActiveName,callback:function(t){e.codeActiveName=t},expression:"codeActiveName"}},[n("el-tab-pane",{attrs:{label:"Vue Component",name:"vue"}},[n("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"vuecodeeditor"}},[e._v("\n "+e._s(e.vueTemplate)+"\n ")])]),e._v(" "),n("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[n("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"codeeditor"}},[e._v("\n "+e._s(e.htmlTemplate)+"\n ")])])],1)],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports,ee=(Q.install=function(e){e.component(Q.name,Q)},U.install=function(e){e.component(U.name,U)},[Q,U]);function te(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function ne(e){ie.forEach((function(t){e.component(t.name,t)}))}"undefined"!=typeof window&&window.Vue&&function(e){ee.forEach((function(t){e.component(t.name,t)}))}(window.Vue);var ie=[r,a,l,h,p,m,v,w,Q,U];"undefined"!=typeof window&&window.Vue&&ne(window.Vue),t.default=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){var i,o;i=e,o=n[t=t],t in i?Object.defineProperty(i,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({version:"0.0.47",install:ne},ie)}],n={},e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(i,o,function(e){return t[e]}.bind(null,o));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/lib/",e(e.s=88);function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n}));