vue-frappe-formbuilder-health
Version:
Vue Form Builder PRO MAX built from top of Vue. Super dynamic and flexible including Drag and Drop feature.
36 lines • 735 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["v-form-builder"]=e():t["v-form-builder"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({0:function(t,e){},"00ce":function(t,e,n){"use strict";var o,r=SyntaxError,i=Function,a=TypeError,l=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(q){s=null}var c=function(){throw new a},u=s?function(){try{return c}catch(t){try{return s(arguments,"callee").get}catch(e){return c}}}():c,f=n("5156")(),d=Object.getPrototypeOf||function(t){return t.__proto__},p={},h="undefined"===typeof Uint8Array?o:d(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?o:Atomics,"%BigInt%":"undefined"===typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):o,"%JSON%":"object"===typeof JSON?JSON:o,"%Map%":"undefined"===typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?o:Promise,"%Proxy%":"undefined"===typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?d((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):o,"%Symbol%":f?Symbol:o,"%SyntaxError%":r,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?o:WeakSet},v=function t(e){var n;if("%AsyncFunction%"===e)n=l("async function () {}");else if("%GeneratorFunction%"===e)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=l("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&(n=d(r.prototype))}return m[e]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n("0f7c"),b=n("a0d3"),_=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),O=g.call(Function.call,String.prototype.replace),x=g.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,C=function(t){var e=x(t,0,1),n=x(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return O(t,E,(function(t,e,n,r){o[o.length]=n?O(r,k,"$1"):e||t})),o},S=function(t,e){var n,o=t;if(b(y,o)&&(n=y[o],o="%"+n[0]+"%"),b(m,o)){var i=m[o];if(i===p&&(i=v(o)),"undefined"===typeof i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');var n=C(t),o=n.length>0?n[0]:"",i=S("%"+o+"%",e),l=i.name,c=i.value,u=!1,f=i.alias;f&&(o=f[0],w(n,_([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=x(h,0,1),y=x(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new r("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),o+="."+h,l="%"+o+"%",b(m,l))c=m[l];else if(null!=c){if(!(h in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var g=s(c,h);p=!!g,c=p&&"get"in g&&!("originalValue"in g.get)?g.get:c[h]}else p=b(c,h),c=c[h];p&&!u&&(m[l]=c)}}return c}},"014b":function(t,e,n){"use strict";var o=n("e53d"),r=n("07e3"),i=n("8e60"),a=n("63b6"),l=n("9138"),s=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),f=n("45f2"),d=n("62a0"),p=n("5168"),h=n("ccb9"),m=n("6718"),v=n("47ee"),y=n("9003"),g=n("e4ae"),b=n("f772"),_=n("241e"),w=n("36c3"),O=n("1bc3"),x=n("aebd"),E=n("a159"),k=n("0395"),C=n("bf0b"),S=n("9aa9"),q=n("d9f6"),D=n("c3a1"),T=C.f,R=q.f,A=k.f,M=o.Symbol,P=o.JSON,N=P&&P.stringify,j="prototype",L=p("_hidden"),I=p("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),U=u("symbols"),$=u("op-symbols"),V=Object[j],H="function"==typeof M&&!!S.f,W=o.QObject,z=!W||!W[j]||!W[j].findChild,Y=i&&c((function(){return 7!=E(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(t,e,n){var o=T(V,e);o&&delete V[e],R(t,e,n),o&&t!==V&&R(V,e,o)}:R,G=function(t){var e=U[t]=E(M[j]);return e._k=t,e},K=H&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},J=function(t,e,n){return t===V&&J($,e,n),g(t),e=O(e,!0),g(n),r(U,e)?(n.enumerable?(r(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:x(0,!1)})):(r(t,L)||R(t,L,x(1,{})),t[L][e]=!0),Y(t,e,n)):R(t,e,n)},X=function(t,e){g(t);var n,o=v(e=w(e)),r=0,i=o.length;while(i>r)J(t,n=o[r++],e[n]);return t},Z=function(t,e){return void 0===e?E(t):X(E(t),e)},Q=function(t){var e=F.call(this,t=O(t,!0));return!(this===V&&r(U,t)&&!r($,t))&&(!(e||!r(this,t)||!r(U,t)||r(this,L)&&this[L][t])||e)},tt=function(t,e){if(t=w(t),e=O(e,!0),t!==V||!r(U,e)||r($,e)){var n=T(t,e);return!n||!r(U,e)||r(t,L)&&t[L][e]||(n.enumerable=!0),n}},et=function(t){var e,n=A(w(t)),o=[],i=0;while(n.length>i)r(U,e=n[i++])||e==L||e==s||o.push(e);return o},nt=function(t){var e,n=t===V,o=A(n?$:w(t)),i=[],a=0;while(o.length>a)!r(U,e=o[a++])||n&&!r(V,e)||i.push(U[e]);return i};H||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call($,n),r(this,L)&&r(this[L],t)&&(this[L][t]=!1),Y(this,t,x(1,n))};return i&&z&&Y(V,t,{configurable:!0,set:e}),G(t)},l(M[j],"toString",(function(){return this._k})),C.f=tt,q.f=J,n("6abf").f=k.f=et,n("355d").f=Q,S.f=nt,i&&!n("b8e3")&&l(V,"propertyIsEnumerable",Q,!0),h.f=function(t){return G(p(t))}),a(a.G+a.W+a.F*!H,{Symbol:M});for(var ot="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;ot.length>rt;)p(ot[rt++]);for(var it=D(p.store),at=0;it.length>at;)m(it[at++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return r(B,t+="")?B[t]:B[t]=M(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!H,"Object",{create:Z,defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var lt=c((function(){S.f(1)}));a(a.S+a.F*lt,"Object",{getOwnPropertySymbols:function(t){return S.f(_(t))}}),P&&a(a.S+a.F*(!H||c((function(){var t=M();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){var e,n,o=[t],r=1;while(arguments.length>r)o.push(arguments[r++]);if(n=e=o[1],(b(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),o[1]=e,N.apply(P,o)}}),M[j][I]||n("35e8")(M[j],I,M[j].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},"01f9":function(t,e,n){"use strict";var o=n("2d00"),r=n("5ca1"),i=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",v=function(){return this};t.exports=function(t,e,n,y,g,b,_){s(n,e,y);var w,O,x,E=function(t){if(!d&&t in q)return q[t];switch(t){case h:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",C=g==m,S=!1,q=t.prototype,D=q[f]||q[p]||g&&q[g],T=D||E(g),R=g?C?E("entries"):T:void 0,A="Array"==e&&q.entries||D;if(A&&(x=u(A.call(new t)),x!==Object.prototype&&x.next&&(c(x,k,!0),o||"function"==typeof x[f]||a(x,f,v))),C&&D&&D.name!==m&&(S=!0,T=function(){return D.call(this)}),o&&!_||!d&&!S&&q[f]||a(q,f,T),l[e]=T,l[k]=v,g)if(w={values:C?T:E(m),keys:b?T:E(h),entries:R},_)for(O in w)O in q||i(q,O,w[O]);else r(r.P+r.F*(d||S),e,w);return w}},"02f4":function(t,e,n){var o=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var i,a,l=String(r(e)),s=o(n),c=l.length;return s<0||s>=c?t?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):i:t?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var o=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},"0395":function(t,e,n){var o=n("36c3"),r=n("6abf").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?l(t):r(o(t))}},"07a4":function(t,e,n){"use strict";var o=n("1696");t.exports=function(){return o()&&!!Symbol.toStringTag}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"099a":function(t,e,n){"use strict";var o=Number.prototype.toString,r=function(t){try{return o.call(t),!0}catch(e){return!1}},i=Object.prototype.toString,a="[object Number]",l=n("07a4")();t.exports=function(t){return"number"===typeof t||"object"===typeof t&&(l?r(t):i.call(t)===a)}},"09fa":function(t,e,n){var o=n("4588"),r=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=o(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"0a49":function(t,e,n){var o=n("9b43"),r=n("626a"),i=n("4bf8"),a=n("9def"),l=n("cd1c");t.exports=function(t,e){var n=1==t,s=2==t,c=3==t,u=4==t,f=6==t,d=5==t||f,p=e||l;return function(e,l,h){for(var m,v,y=i(e),g=r(y),b=o(l,h,3),_=a(g.length),w=0,O=n?p(e,_):s?p(e,0):void 0;_>w;w++)if((d||w in g)&&(m=g[w],v=b(m,w,y),t))if(n)O[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:O.push(m)}else if(u)return!1;return f?-1:c||u?u:O}}},"0bfb":function(t,e,n){"use strict";var o=n("cb7c");t.exports=function(){var t=o(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 o=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return o(t,r)}},"0e65":function(t,e,n){"use strict";var o=Date.prototype.getDay,r=function(t){try{return o.call(t),!0}catch(e){return!1}},i=Object.prototype.toString,a="[object Date]",l=n("07a4")();t.exports=function(t){return"object"===typeof t&&null!==t&&(l?r(t):i.call(t)===a)}},"0f7c":function(t,e,n){"use strict";var o=n("688e");t.exports=Function.prototype.bind||o},"0f88":function(t,e,n){var o,r=n("7726"),i=n("32e9"),a=n("ca5a"),l=a("typed_array"),s=a("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,f=0,d=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(f<d)(o=r[p[f++]])?(i(o.prototype,l,!0),i(o.prototype,s,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:l,VIEW:s}},"0fc9":function(t,e,n){var o=n("3a38"),r=Math.max,i=Math.min;t.exports=function(t,e){return t=o(t),t<0?r(t+e,0):i(t,e)}},1169:function(t,e,n){var o=n("2d95");t.exports=Array.isArray||function(t){return"Array"==o(t)}},"11e9":function(t,e,n){var o=n("52a7"),r=n("4630"),i=n("6821"),a=n("6a99"),l=n("69a8"),s=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(n){}if(l(t,e))return r(!o.f.call(t,e),t[e])}},1495:function(t,e,n){var o=n("86cc"),r=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,a=i(e),l=a.length,s=0;while(l>s)o.f(t,n=a[s++],e[n]);return t}},1654:function(t,e,n){"use strict";var o=n("71c1")(!0);n("30f1")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=o(e,n),this._i+=t.length,{value:t,done:!1})}))},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1696:function(t,e,n){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var o=42;for(e in t[e]=o,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(i.value!==o||!0!==i.enumerable)return!1}return!0}},"16e7":function(t,e,n){"use strict";var o=n("d6c7"),r=function(t){return"undefined"!==typeof t&&null!==t},i=n("1696")(),a=n("545e"),l=Object,s=a("Array.prototype.push"),c=a("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(!r(t))throw new TypeError("target must be an object");var n,a,f,d,p,h,m,v=l(t);for(n=1;n<arguments.length;++n){a=l(arguments[n]),d=o(a);var y=i&&(Object.getOwnPropertySymbols||u);if(y)for(p=y(a),f=0;f<p.length;++f)m=p[f],c(a,m)&&s(d,m);for(f=0;f<d.length;++f)m=d[f],h=a[m],c(a,m)&&(v[m]=h)}return v}},"198e":function(t,e,n){"use strict";n("ee8f")},1991:function(t,e,n){var o,r,i,a=n("9b43"),l=n("31f4"),s=n("fab2"),c=n("230e"),u=n("7726"),f=u.process,d=u.setImmediate,p=u.clearImmediate,h=u.MessageChannel,m=u.Dispatch,v=0,y={},g="onreadystatechange",b=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},_=function(t){b.call(t.data)};d&&p||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return y[++v]=function(){l("function"==typeof t?t:Function(t),e)},o(v),v},p=function(t){delete y[t]},"process"==n("2d95")(f)?o=function(t){f.nextTick(a(b,t,1))}:m&&m.now?o=function(t){m.now(a(b,t,1))}:h?(r=new h,i=r.port2,r.port1.onmessage=_,o=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(o=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):o=g in c("script")?function(t){s.appendChild(c("script"))[g]=function(){s.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:d,clear:p}},"1af6":function(t,e,n){var o=n("63b6");o(o.S,"Array",{isArray:n("9003")})},"1bc3":function(t,e,n){var o=n("f772");t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1c4c":function(t,e,n){"use strict";var o=n("9b43"),r=n("5ca1"),i=n("4bf8"),a=n("1fa8"),l=n("33a4"),s=n("9def"),c=n("f1ae"),u=n("27ee");r(r.S+r.F*!n("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,f,d=i(t),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,y=0,g=u(d);if(v&&(m=o(m,h>2?arguments[2]:void 0,2)),void 0==g||p==Array&&l(g))for(e=s(d.length),n=new p(e);e>y;y++)c(n,y,v?m(d[y],y):d[y]);else for(f=g.call(d),n=new p;!(r=f.next()).done;y++)c(n,y,v?a(f,m,[r.value,y],!0):r.value);return n.length=y,n}})},"1c7e":function(t,e,n){"use strict";var o=n("f367").supportsDescriptors,r=n("57ec"),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,l=TypeError,s=Object.getPrototypeOf,c=/a/;t.exports=function(){if(!o||!s)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=r(),e=s(c),n=i(e,"flags");return n&&n.get===t||a(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},"1d2b":function(t,e,n){"use strict";function o(t,e){return function(){return t.apply(e,arguments)}}n.d(e,"a",(function(){return o}))},"1dd1":function(t,e,n){"use strict";var o=n("00ce"),r=o("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}t.exports=r},"1ec8":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n("b0b4"),r=n("d225"),i=n("bd86"),a=Object(o["a"])((function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(r["a"])(this,t),Object(i["a"])(this,"runnerId",""),Object(i["a"])(this,"component",null),Object(i["a"])(this,"data",{}),this.runnerId=e,this.component=n,this.data=o}))},"1ec9":function(t,e,n){var o=n("f772"),r=n("e53d").document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"1fa8":function(t,e,n){var o=n("cb7c");t.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(a){var i=t["return"];throw void 0!==i&&o(i.call(t)),a}}},"1fb5":function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=d,e.fromByteArray=m;for(var o=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l<s;++l)o[l]=a[l],r[a.charCodeAt(l)]=l;function c(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("=");-1===n&&(n=e);var o=n===e?0:4-n%4;return[n,o]}function u(t){var e=c(t),n=e[0],o=e[1];return 3*(n+o)/4-o}function f(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,o=c(t),a=o[0],l=o[1],s=new i(f(t,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===l&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,s[u++]=255&e),1===l&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s}function p(t){return o[t>>18&63]+o[t>>12&63]+o[t>>6&63]+o[63&t]}function h(t,e,n){for(var o,r=[],i=e;i<n;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),r.push(p(o));return r.join("")}function m(t){for(var e,n=t.length,r=n%3,i=[],a=16383,l=0,s=n-r;l<s;l+=a)i.push(h(t,l,l+a>s?s:l+a));return 1===r?(e=t[n-1],i.push(o[e>>2]+o[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(o[e>>10]+o[e>>4&63]+o[e<<2&63]+"=")),i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"20d6":function(t,e,n){"use strict";var o=n("5ca1"),r=n("0a49")(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),o(o.P+o.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},"20fd":function(t,e,n){"use strict";var o=n("d9f6"),r=n("aebd");t.exports=function(t,e,n){e in t?o.f(t,e,r(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var o=n("2aba"),r=n("32e9"),i=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=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 d=l(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=p?!i((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[d](""),!e})):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!f){var m=/./[d],v=n(a,d,""[t],(function(t,e,n,o,r){return e.exec===s?p&&!r?{done:!0,value:m.call(e,n,o)}:{done:!0,value:t.call(n,e,o)}:{done:!1}})),y=v[0],g=v[1];o(String.prototype,t,y),r(RegExp.prototype,d,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},"22a0":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={headline:"",subHeadline:"",isShowHeadline:!1,formula:[],renderFormTag:!1,formActionURL:"",formMethod:"POST",mappedDoctype:""}},"230e":function(t,e,n){var o=n("d3f4"),r=n("7726").document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"23c6":function(t,e,n){var o=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==o(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:i?o(e):"Object"==(l=o(e))&&"function"==typeof e.callee?"Arguments":l}},"241e":function(t,e,n){var o=n("25eb");t.exports=function(t){return Object(o(t))}},"242e":function(t,e,n){"use strict";var o=n("2834")();if(o){var r=BigInt.prototype.valueOf,i=function(t){try{return r.call(t),!0}catch(e){}return!1};t.exports=function(t){return null!==t&&"undefined"!==typeof t&&"boolean"!==typeof t&&"string"!==typeof t&&"number"!==typeof t&&"symbol"!==typeof t&&"function"!==typeof t&&("bigint"===typeof t||i(t))}}else t.exports=function(t){return!1}},2560:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));n("ac6a"),n("cadf"),n("456d"),n("f751"),n("a481");var o='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n <polygon points="9 3.828 2.929 9.899 1.515 8.485 10 0 10.707 .707 18.485 8.485 17.071 9.899 11 3.828 11 20 9 20 9 3.828"/>\n</svg>\n',r='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n <polygon points="9 16.172 2.929 10.101 1.515 11.515 10 20 10.707 19.293 18.485 11.515 17.071 10.101 11 16.172 11 0 9 0"/>\n</svg>\n',i='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n <path d="M12.3 3.7l4 4L4 20H0v-4L12.3 3.7zm1.4-1.4L16 0l4 4-2.3 2.3-4-4z"/>\n</svg>\n',a='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n <path d="M3.94 6.5L2.22 3.64l1.42-1.42L6.5 3.94c.52-.3 1.1-.54 1.7-.7L9 0h2l.8 3.24c.6.16 1.18.4 1.7.7l2.86-1.72 1.42 1.42-1.72 2.86c.3.52.54 1.1.7 1.7L20 9v2l-3.24.8c-.16.6-.4 1.18-.7 1.7l1.72 2.86-1.42 1.42-2.86-1.72c-.52.3-1.1.54-1.7.7L11 20H9l-.8-3.24c-.6-.16-1.18-.4-1.7-.7l-2.86 1.72-1.42-1.42 1.72-2.86c-.3-.52-.54-1.1-.7-1.7L0 11V9l3.24-.8c.16-.6.4-1.18.7-1.7zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>\n</svg>\n',l='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n<path d="M11 9h4v2h-4v4H9v-4H5V9h4V5h2v4zm-1 11a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z"/>\n</svg>\n',s='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n<path d="M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"/>\n</svg>\n',c='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n <path d="M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"/>\n</svg>\n',u='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n<path d="M10.707 7.05L10 6.343 4.343 12l1.414 1.414L10 9.172l4.243 4.242L15.657 12z"/>\n</svg>\n',f='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n<path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/>\n</svg>\n',d='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n<path d="M4 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm6 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm6 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"/>\n</svg>\n',p='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="{0}" height="{1}" fill="{2}">\n <path d="M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"/>\n</svg>\n',h={addOutline:l,arrowUp:o,arrowDown:r,editPencil:i,cog:a,close:s,trash:c,chevronUp:u,chevronDown:f,navigationMore:d,informationOutline:p},m={getSVG:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"16px",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"16px",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff";if(!h[t])throw new TypeError("Icon Name '".concat(t,"' doesn't exists in Vue-Form-Builder."));var r=h[t].replace("{0}",e).replace("{1}",n).replace("{2}",o);return r}},v=n("6a29"),y=n("fbdb"),g=n("8dbe"),b=n("d60e"),_=n("a786"),w=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{globalInjection:!0,validationErrorShowAlert:!0,validationErrorAlertText:"Your form got error(s), please fix it and submit again"};if(!t.installed){var o={getIcon:m.getSVG};n.hasOwnProperty("controls")&&O(n.controls),n.hasOwnProperty("styles")&&Object.assign(b["a"],n.styles),n.hasOwnProperty("validations")&&x(n.validations),n.hasOwnProperty("validationClosures")&&(o.validationClosures=n.validationClosures),o.validationErrorShowAlert=n.validationErrorShowAlert||!0,o.validationErrorAlertText=n.validationErrorAlertText,e.prototype.$formEvent=new e,e.prototype.$form=o,n.hasOwnProperty("globalInjection")&&!n.globalInjection||(e.component("FormBuilder",v["a"]),e.component("FormRenderer",y["a"])),t.installed=!0}},O=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++){var o=e[n];if(g["a"].hasOwnProperty(o))throw new TypeError("Extend-Control-Error: Your '".concat(o,"' control is duplicated with our build-in Controls. Please change to another key name instead."))}Object.assign(g["a"],t)},x=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++){var o=e[n];if(_["a"].hasOwnProperty(o))throw new TypeError("Extend-Validation-Error: Your '".concat(o,"' validation is duplicated with our build-in Validation. Please change to another key name instead."))}Object.assign(_["a"],t)}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},2714:function(t,e,n){var o="function"===typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&r&&"function"===typeof r.get?r.get:null,a=o&&Map.prototype.forEach,l="function"===typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&s&&"function"===typeof s.get?s.get:null,u=l&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,d=f?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,h=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,v=m?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,b=Function.prototype.toString,_=String.prototype.match,w=String.prototype.slice,O=String.prototype.replace,x=String.prototype.toUpperCase,E=String.prototype.toLowerCase,k=RegExp.prototype.test,C=Array.prototype.concat,S=Array.prototype.join,q=Array.prototype.slice,D=Math.floor,T="function"===typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,A="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"===typeof Symbol&&"object"===typeof Symbol.iterator,P="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,j=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function L(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||k.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var o=t<0?-D(-t):D(t);if(o!==t){var r=String(o),i=w.call(e,r.length+1);return O.call(r,n,"$&_")+"."+O.call(O.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(e,n,"$&_")}var I=n(0).custom,F=I&&K(I)?I:null;function B(t,e,n){var o="double"===(n.quoteStyle||e)?'"':"'";return o+t+o}function U(t){return O.call(String(t),/"/g,""")}function $(t){return"[object Array]"===Q(t)&&(!P||!("object"===typeof t&&P in t))}function V(t){return"[object Date]"===Q(t)&&(!P||!("object"===typeof t&&P in t))}function H(t){return"[object RegExp]"===Q(t)&&(!P||!("object"===typeof t&&P in t))}function W(t){return"[object Error]"===Q(t)&&(!P||!("object"===typeof t&&P in t))}function z(t){return"[object String]"===Q(t)&&(!P||!("object"===typeof t&&P in t))}function Y(t){return"[object Number]"===Q(t)&&(!P||!("object"===typeof t&&P in t))}function G(t){return"[object Boolean]"===Q(t)&&(!P||!("object"===typeof t&&P in t))}function K(t){if(M)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!A)return!1;try{return A.call(t),!0}catch(e){}return!1}function J(t){if(!t||"object"!==typeof t||!T)return!1;try{return T.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,o,r){var l=n||{};if(Z(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!Z(l,"customInspect")||l.customInspect;if("boolean"!==typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=l.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return st(e,l);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var d=String(e);return f?L(e,d):d}if("bigint"===typeof e){var p=String(e)+"n";return f?L(e,p):p}var h="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=h&&h>0&&"object"===typeof e)return $(e)?"[Array]":"[Object]";var m=ht(l,o);if("undefined"===typeof r)r=[];else if(et(r,e)>=0)return"[Circular]";function v(e,n,i){if(n&&(r=q.call(r),r.push(n)),i){var a={depth:l.depth};return Z(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),t(e,a,o+1,r)}return t(e,l,o+1,r)}if("function"===typeof e){var g=tt(e),b=vt(e,v);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(b.length>0?" { "+S.call(b,", ")+" }":"")}if(K(e)){var _=M?O.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(e);return"object"!==typeof e||M?_:ut(_)}if(lt(e)){for(var x="<"+E.call(String(e.nodeName)),k=e.attributes||[],D=0;D<k.length;D++)x+=" "+k[D].name+"="+B(U(k[D].value),"double",l);return x+=">",e.childNodes&&e.childNodes.length&&(x+="..."),x+="</"+E.call(String(e.nodeName))+">",x}if($(e)){if(0===e.length)return"[]";var R=vt(e,v);return m&&!pt(R)?"["+mt(R,m)+"]":"[ "+S.call(R,", ")+" ]"}if(W(e)){var I=vt(e,v);return"cause"in e&&!N.call(e,"cause")?"{ ["+String(e)+"] "+S.call(C.call("[cause]: "+v(e.cause),I),", ")+" }":0===I.length?"["+String(e)+"]":"{ ["+String(e)+"] "+S.call(I,", ")+" }"}if("object"===typeof e&&s){if(F&&"function"===typeof e[F])return e[F]();if("symbol"!==s&&"function"===typeof e.inspect)return e.inspect()}if(nt(e)){var X=[];return a.call(e,(function(t,n){X.push(v(n,e,!0)+" => "+v(t,e))})),dt("Map",i.call(e),X,m)}if(it(e)){var ct=[];return u.call(e,(function(t){ct.push(v(t,e))})),dt("Set",c.call(e),ct,m)}if(ot(e))return ft("WeakMap");if(at(e))return ft("WeakSet");if(rt(e))return ft("WeakRef");if(Y(e))return ut(v(Number(e)));if(J(e))return ut(v(T.call(e)));if(G(e))return ut(y.call(e));if(z(e))return ut(v(String(e)));if(!V(e)&&!H(e)){var yt=vt(e,v),gt=j?j(e)===Object.prototype:e instanceof Object||e.constructor===Object,bt=e instanceof Object?"":"null prototype",_t=!gt&&P&&Object(e)===e&&P in e?w.call(Q(e),8,-1):bt?"Object":"",wt=gt||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",Ot=wt+(_t||bt?"["+S.call(C.call([],_t||[],bt||[]),": ")+"] ":"");return 0===yt.length?Ot+"{}":m?Ot+"{"+mt(yt,m)+"}":Ot+"{ "+S.call(yt,", ")+" }"}return String(e)};var X=Object.prototype.hasOwnProperty||function(t){return t in this};function Z(t,e){return X.call(t,e)}function Q(t){return g.call(t)}function tt(t){if(t.name)return t.name;var e=_.call(b.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function et(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1}function nt(t){if(!i||!t||"object"!==typeof t)return!1;try{i.call(t);try{c.call(t)}catch(e){return!0}return t instanceof Map}catch(n){}return!1}function ot(t){if(!d||!t||"object"!==typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(e){return!0}return t instanceof WeakMap}catch(n){}return!1}function rt(t){if(!v||!t||"object"!==typeof t)return!1;try{return v.call(t),!0}catch(e){}return!1}function it(t){if(!c||!t||"object"!==typeof t)return!1;try{c.call(t);try{i.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}function at(t){if(!h||!t||"object"!==typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(e){return!0}return t instanceof WeakSet}catch(n){}return!1}function lt(t){return!(!t||"object"!==typeof t)&&("undefined"!==typeof HTMLElement&&t instanceof HTMLElement||"string"===typeof t.nodeName&&"function"===typeof t.getAttribute)}function st(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return st(w.call(t,0,e.maxStringLength),e)+o}var r=O.call(O.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ct);return B(r,"single",e)}function ct(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+x.call(e.toString(16))}function ut(t){return"Object("+t+")"}function ft(t){return t+" { ? }"}function dt(t,e,n,o){var r=o?mt(n,o):S.call(n,", ");return t+" ("+e+") {"+r+"}"}function pt(t){for(var e=0;e<t.length;e++)if(et(t[e],"\n")>=0)return!1;return!0}function ht(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=S.call(Array(t.indent+1)," ")}return{base:n,prev:S.call(Array(e+1),n)}}function mt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+S.call(t,","+n)+"\n"+e.prev}function vt(t,e){var n=$(t),o=[];if(n){o.length=t.length;for(var r=0;r<t.length;r++)o[r]=Z(t,r)?e(t[r],t):""}var i,a="function"===typeof R?R(t):[];if(M){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var s in t)Z(t,s)&&(n&&String(Number(s))===s&&s<t.length||M&&i["$"+s]instanceof Symbol||(k.call(/[^\w$]/,s)?o.push(e(s,t)+": "+e(t[s],t)):o.push(s+": "+e(t[s],t))));if("function"===typeof R)for(var c=0;c<a.length;c++)N.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}},"27ee":function(t,e,n){var o=n("23c6"),r=n("2b4c")("iterator"),i=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||i[o(t)]}},2834:function(t,e,n){"use strict";(function(e){var n=e.BigInt;t.exports=function(){return"function"===typeof n&&"function"===typeof BigInt&&"bigint"===typeof n(42)&&"bigint"===typeof BigInt(42)}}).call(this,n("c8ba"))},2877:function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,l){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(s=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):r&&(s=l?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),s)if(c.functional){c._injectStyles=s;var u=c.render;c.render=function(t,e){return s.call(e),u(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},"28a5":function(t,e,n){"use strict";var o=n("aae3"),r=n("cb7c"),i=n("ebd6"),a=n("0390"),l=n("9def"),s=n("5f1b"),c=n("520a"),u=n("79e5"),f=Math.min,d=[].push,p="split",h="length",m="lastIndex",v=4294967295,y=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(t,e,n,u){var g;return g="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||"."[p](/()()/)[h]>1||""[p](/.?/)[h]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!o(t))return n.call(r,t,e);var i,a,l,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=void 0===e?v:e>>>0,y=new RegExp(t.source,u+"g");while(i=c.call(y,r)){if(a=y[m],a>f&&(s.push(r.slice(f,i.index)),i[h]>1&&i.index<r[h]&&d.apply(s,i.slice(1)),l=i[0][h],f=a,s[h]>=p))break;y[m]===i.index&&y[m]++}return f===r[h]?!l&&y.test("")||s.push(""):s.push(r.slice(f)),s[h]>p?s.slice(0,p):s}:"0"[p](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,o){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r,o):g.call(String(r),n,o)},function(t,e){var o=u(g,t,this,e,g!==n);if(o.done)return o.value;var c=r(t),d=String(this),p=i(c,RegExp),h=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(y?"y":"g"),b=new p(y?c:"^(?:"+c.source+")",m),_=void 0===e?v:e>>>0;if(0===_)return[];if(0===d.length)return null===s(b,d)?[d]:[];var w=0,O=0,x=[];while(O<d.length){b.lastIndex=y?O:0;var E,k=s(b,y?d:d.slice(O));if(null===k||(E=f(l(b.lastIndex+(y?0:O)),d.length))===w)O=a(d,O,h);else{if(x.push(d.slice(w,O)),x.length===_)return x;for(var C=1;C<=k.length-1;C++)if(x.push(k[C]),x.length===_)return x;O=w=E}}return x.push(d.slice(w)),x}]}))},"28fe":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n("d60e"),r={computed:{styles:function(){return o["a"]}}}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2a8a":function(t,e,n){"use strict";var o=n("f367"),r=n("3eb1"),i=n("16e7"),a=n("c8ba6"),l=n("f11f"),s=r.apply(a()),c=function(t,e){return s(Object,arguments)};o(c,{getPolyfill:a,implementation:i,shim:l}),t.exports=c},"2aba":function(t,e,n){var o=n("7726"),r=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s="toString",c=(""+l).split(s);n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var s="function"==typeof n;s&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===o?t[e]=n:l?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||l.call(this)}))},"2aeb":function(t,e,n){var o=n("cb7c"),r=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s="prototype",c=function(){var t,e=n("230e")("iframe"),o=i.length,r="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),c=t.F;while(o--)delete c[s][i[o]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(l[s]=o(t),n=new l,l[s]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var o=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i,l=t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))};l.store=o},"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)}},"2f21":function(t,e,n){"use strict";var o=n("79e5");t.exports=function(t,e){return!!t&&o((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"2fb9":function(t,e,n){"use strict";var o=n("55b2"),r=n("099a"),i=n("353a"),a=n("fec5"),l=n("242e");t.exports=function(t){return null==t||"object"!==typeof t&&"function"!==typeof t?null:o(t)?"String":r(t)?"Number":i(t)?"Boolean":a(t)?"Symbol":l(t)?"BigInt":void 0}},"2fdb":function(t,e,n){"use strict";var o=n("5ca1"),r=n("d2c8"),i="includes";o(o.P+o.F*n("5147")(i),"String",{includes:function(t){return!!~r(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(t,e,n){"use strict";var o=n("b8e3"),r=n("63b6"),i=n("9138"),a=n("35e8"),l=n("481b"),s=n("8f60"),c=n("45f2"),u=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",v=function(){return this};t.exports=function(t,e,n,y,g,b,_){s(n,e,y);var w,O,x,E=function(t){if(!d&&t in q)return q[t];switch(t){case h:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",C=g==m,S=!1,q=t.prototype,D=q[f]||q[p]||g&&q[g],T=D||E(g),R=g?C?E("entries"):T:void 0,A="Array"==e&&q.entries||D;if(A&&(x=u(A.call(new t)),x!==Object.prototype&&x.next&&(c(x,k,!0),o||"function"==typeof x[f]||a(x,f,v))),C&&D&&D.name!==m&&(S=!0,T=function(){return D.call(this)}),o&&!_||!d&&!S&&q[f]||a(q,f,T),l[e]=T,l[k]=v,g)if(w={values:C?T:E(m),keys:b?T:E(h),entries:R},_)for(O in w)O in q||i(q,O,w[O]);else r(r.P+r.F*(d||S),e,w);return w}},"31f4":function(t,e){t.exports=function(t,e,n){var o=void 0===n;switch(e.length){case 0:return o?t():t.call(n);case 1:return o?t(e[0]):t.call(n,e[0]);case 2:return o?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return o?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return o?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32e9":function(t,e,n){var o=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var o=n("e53d").document;t.exports=o&&o.documentElement},"335c":function(t,e,n){var o=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},"33a4":function(t,e,n){var o=n("84f2"),r=n("2b4c")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[r]===t)}},"34ef":function(t,e,n){n("ec30")("Uint8",1,(function(t){return function(e,n,o){return t(this,e,n,o)}}))},"353a":function(t,e,n){"use strict";var o=n("545e"),r=o("Boolean.prototype.toString"),i=o("Object.prototype.toString"),a=function(t){try{return r(t),!0}catch(e){return!1}},l="[object Boolean]",s=n("07a4")();t.exports=function(t){return"boolean"===typeof t||null!==t&&"object"===typeof t&&(s&&Symbol.toStringTag in t?a(t):i(t)===l)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var o=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"36bd":function(t,e,n){"use strict";var o=n("4bf8"),r=n("77f1"),i=n("9def");t.exports=function(t){var e=o(this),n=i(e.length),a=arguments.length,l=r(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:r(s,n);while(c>l)e[l++]=t;return e}},"36c3":function(t,e,n){var o=n("335c"),r=n("25eb");t.exports=function(t){return o(r(t))}},3702:function(t,e,n){var o=n("481b"),r=n("5168")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[r]===t)}},"37c8":function(t,e,n){e.f=n("2b4c")},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(t,e,n){var o=n("69a8"),r=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"3a38":function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},"3a72":function(t,e,n){var o=n("7726"),r=n("8378"),i=n("2d00"),a=n("37c8"),l=n("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:a.f(t)})}},"3eb1":function(t,e,n){"use strict";var o=n("0f7c"),r=n("00ce"),i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||o.call(a,i),s=r("%Object.getOwnPropertyDescriptor%",!0),c=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}t.exports=function(t){var e=l(o,a,arguments);if(s&&c){var n=s(e,"length");n.configurable&&c(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var f=function(){return l(o,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},"40c3":function(t,e,n){var o=n("6b4c"),r=n("5168")("toStringTag"),i="Arguments"==o(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:i?o(e):"Object"==(l=o(e))&&"function"==typeof e.callee?"Arguments":l}},"41a0":function(t,e,n){"use strict";var o=n("2aeb"),r=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=o(a,{next:r(1,n)}),i(t,e+" Iterator")}},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,o="/";e.cwd=function(){return o},e.chdir=function(e){t||(t=n("df7c")),o=t.resolve(e,o)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43b3":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("20d6"),n("ac6a"),n("cadf"),n("456d"),n("7514"),n("34ef"),n("6b54"),n("a481");var o={cloneDeep:function(t){return JSON.parse(JSON.stringify(t))},getUUIDv4:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))},find:function(t,e,n){if(t.length)return t.find((function(t){return t[e]==n}));for(var o=Object.keys(t),r=0,i=o;r<i.length;r++){var a=i[r],l=t[a];if(l&&l[e]==n)return l}},findIndex:function(t,e,n){return t.findIndex((function(t){return e?t[e]==n:t==n}))}}},"454f":function(t,e,n){n("46a7");var o=n("584a").Object;t.exports=function(t,e,n){return o.defineProperty(t,e,n)}},"456d":function(t,e,n){var o=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(o(t))}}))},4581:function(t,e,n){"use strict";e["a"]=null},4588:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},"45f2":function(t,e,n){var o=n("d9f6").f,r=n("07e3"),i=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},"45ff":function(t,e,n){"use strict";n("f21c")},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"46a7":function(t,e,n){var o=n("63b6");o(o.S+o.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(t,e,n){var o=n("c3a1"),r=n("9aa9"),i=n("355d");t.exports=function(t){var e=o(t),n=r.f;if(n){var a,l=n(t),s=i.f,c=0;while(l.length>c)s.call(t,a=l[c++])&&e.push(a)}return e}},"481b":function(t,e){t.exports={}},4917:function(t,e,n){"use strict";var o=n("cb7c"),r=n("9def"),i=n("0390"),a=n("5f1b");n("214f")("match",1,(function(t,e,n,l){return[function(n){var o=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,o):new RegExp(n)[e](String(o))},function(t){var e=l(n,t,this);if(e.done)return e.value;var s=o(t),c=String(this);if(!s.global)return a(s,c);var u=s.unicode;s.lastIndex=0;var f,d=[],p=0;while(null!==(f=a(s,c))){var h=String(f[0]);d[p]=h,""===h&&(s.lastIndex=i(c,r(s.lastIndex),u)),p++}return 0===p?null:d}]}))},"4a59":function(t,e,n){var o=n("9b43"),r=n("1fa8"),i=n("33a4"),a=n("cb7c"),l=n("9def"),s=n("27ee"),c={},u={};e=t.exports=function(t,e,n,f,d){var p,h,m,v,y=d?function(){return t}:s(t),g=o(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(p=l(t.length);p>b;b++)if(v=e?g(a(h=t[b])[0],h[1]):g(t[b]),v===c||v===u)return v}else for(m=y.call(t);!(h=m.next()).done;)if(v=r(m,g,h.value,e),v===c||v===u)return v};e.BREAK=c,e.RETURN=u},"4bf8":function(t,e,n){var o=n("be13");t.exports=function(t){return Object(o(t))}},"4ee1":function(t,e,n){var o=n("5168")("iterator"),r=!1;try{var i=[7][o]();i["return"]=function(){r=!0},Array.from(i,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i=[7],l=i[o]();l.next=function(){return{done:n=!0}},i[o]=function(){return l},t(i)}catch(a){}return n}},"504c":function(t,e,n){var o=n("9e1e"),r=n("0d58"),i=n("6821"),a=n("52a7").f;t.exports=function(t){return function(e){var n,l=i(e),s=r(l),c=s.length,u=0,f=[];while(c>u)n=s[u++],o&&!a.call(l,n)||f.push(t?[n,l[n]]:l[n]);return f}}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var o=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,!"/./"[t](e)}catch(r){}}return!0}},5156:function(t,e,n){"use strict";var o="undefined"!==typeof Symbol&&Symbol,r=n("1696");t.exports=function(){return"function"===typeof o&&("function"===typeof Symbol&&("symbol"===typeof o("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},5168:function(t,e,n){var o=n("dbdb")("wks"),r=n("62a0"),i=n("e53d").Symbol,a="function"==typeof i,l=t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))};l.store=o},"520a":function(t,e,n){"use strict";var o=n("0bfb"),r=RegExp.prototype.exec,i=String.prototype.replace,a=r,l="lastIndex",s=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[l]||0!==e[l]}(),c=void 0!==/()??/.exec("")[1],u=s||c;u&&(a=function(t){var e,n,a,u,f=this;return c&&(n=new RegExp("^"+f.source+"$(?!\\s)",o.call(f))),s&&(e=f[l]),a=r.call(f,t),s&&a&&(f[l]=f.global?a.index+a[0].length:e),c&&a&&a.length>1&&i.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"52d0":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MODEL}));var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("a481"),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("4917"),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("6762"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("2fdb"),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("cadf"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("f751"),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_8__),_Users_philipademba_Documents_erpnext_bench_forms_node_modules_babel_runtime_corejs2_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("7618"),_configs_controls__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("8dbe"),EMIT_EVENT="change",MODEL={props:{value:Object},model:{event:EMIT_EVENT,props:"value"},data:function(){return{valueContainer:null}},watch:{value:{deep:!0,handler:function(t){if("object"===Object(_Users_philipademba_Documents_erpnext_bench_forms_node_modules_babel_runtime_corejs2_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_9__["a"])(t)){var e=this.executeAll(t);this.men(e),this.controlDepends(e),Object.assign(this.valueContainer,e)}}},valueContainer:{deep:!0,handler:function(t){t&&this.$emit(EMIT_EVENT,this.valueContainer)}}},methods:{executeAll:function(t){var e=this;return this.formData.formConfig.formula.length?(this.formData.formConfig.formula.forEach((function(n){t=e.executeFormalar(t,n.formula,n.output)})),t):t},men:function(t){var e=this,n=Object.keys(this.formData.sections);n.forEach((function(n){var o=e.formData.sections[n];if(o.condition.length){var r=e.executeDependency(t,o.condition);r?o.controls.forEach((function(t){if(e.formData.controls[t].evaluatedVisibility){var n=e.formData.controls[t];n.additionalContainerClass.includes("hide-me")||(n.additionalContainerClass=n.additionalContainerClass+" hide-me",console.log(n),e.$set(e.formData.controls,t,n))}})):o.controls.forEach((function(t){if(e.formData.controls[t].evaluatedVisibility){var n=e.formData.controls[t];n.additionalContainerClass=n.additionalContainerClass.replaceAll(" hide-me",""),console.log(n),e.$set(e.formData.controls,t,n)}}))}}))},controlDepends:function(t){var e=this,n=Object.keys(this.formData.controls);n.forEach((function(n){var o=e.formData.controls[n];if(o.hideCondition&&o.hideCondition.length){var r=e.executeDependency(t,o.hideCondition);if(r){var i=e.formData.controls[n];i.additionalContainerClass.includes("hide-me")||(i.additionalContainerClass=i.additionalContainerClass+" hide-me",console.log(i),e.$set(e.formData.controls,n,i))}else{var a=e.formData.controls[n];a.additionalContainerClass=a.additionalContainerClass.replaceAll(" hide-me",""),console.log(a),e.$set(e.formData.controls,n,a)}}}))},createValueContainer:function(){var t=this,e={},n=Object.keys(this.formData.controls);n.forEach((function(n){var o=t.formData.controls[n];if("boolean"!==typeof _configs_controls__WEBPACK_IMPORTED_MODULE_10__["a"][o.type].disableValue||!_configs_controls__WEBPACK_IMPORTED_MODULE_10__["a"][o.type].disableValue){var r=o.name;r||(r=n),e[r]="","function"===typeof _configs_controls__WEBPACK_IMPORTED_MODULE_10__["a"][o.type].rendererDefaultData&&(e[r]=_configs_controls__WEBPACK_IMPORTED_MODULE_10__["a"][o.type].rendererDefaultData(o))}})),this.value&&this.$emit(EMIT_EVENT,e),this.valueContainer=e},executeDependency:function executeDependency(input,str){var shouldBeHidden=!1,matches=str.match(/\[[^\]]*]/g);console.log("MATCHES",matches);var hasFailed=!1;return matches.forEach((function(t){var e=t.replace("[","").replace("]",""),n=input["".concat(e)];n||(hasFailed=!0),str=isNaN(n)?str.replace(t,"input['".concat(e,"']")):str.replace(t,n)})),hasFailed||(console.log(str),shouldBeHidden=eval(str)),console.log(str),shouldBeHidden},executeFormalar:function executeFormalar(input,str,output){if(!str)return input;var shouldBeHidden=!1,matches=str.match(/\[[^\]]*]/g);console.log("MATCHES",matches);var hasFailed=!1;return matches.forEach((function(t){var e=t.replace("[","").replace("]",""),n=input["".concat(e)];n||(hasFailed=!0),str=isNaN(n)?str.replace(t,"input['".concat(e,"']")):str.replace(t,n)})),hasFailed||(console.log(str),input[output]=eval(str)),input}},created:function(){this.createValueContainer()}}},5360:function(t,e,n){
/*!
*
* Litepicker v1.5.7 (https://github.com/wakirin/Litepicker)
* Package: litepicker (https://www.npmjs.com/package/litepicker)
* License: MIT (https://github.com/wakirin/Litepicker/blob/master/LICENCE.md)
* Copyright 2019-2020 Rinat G.
*
* Hash: 85b7ce11883a11b98abb
* Generated on: 1592979305748
*
*/
!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(e,n,o){void 0===e&&(e=null),void 0===n&&(n=null),void 0===o&&(o="en-US"),this.dateInstance=n?t.parseDateTime(e,n,o):e?t.parseDateTime(e):t.parseDateTime(new Date),this.lang=o}return t.parseDateTime=function(e,n,o){if(void 0===n&&(n="YYYY-MM-DD"),void 0===o&&(o="en-US"),!e)return new Date(NaN);if(e instanceof Date)return new Date(e);if(e instanceof t)return e.clone().getDateInstance();if(/^-?\d{10,}$/.test(e))return t.getDateZeroTime(new Date(Number(e)));if("string"==typeof e){for(var r=[],i=null;null!=(i=t.regex.exec(n));)"\\"!==i[1]&&r.push(i);if(r.length){var a={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};r[0].index>0&&(a.value+=".*?");for(var l=0,s=Object.entries(r);l<s.length;l++){var c=s[l],u=c[0],f=c[1],d=Number(u),p=t.formatPatterns(f[0],o),h=p.group,m=p.pattern;a[h]=d+1,a.value+=m,a.value+=".*?"}var v=new RegExp("^"+a.value+"$");if(v.test(e)){var y=v.exec(e),g=Number(y[a.year]),b=null;a.month?b=Number(y[a.month])-1:a.shortMonth?b=t.shortMonths(o).indexOf(y[a.shortMonth]):a.longMonth&&(b=t.longMonths(o).indexOf(y[a.longMonth]));var _=Number(y[a.day])||1;return new Date(g,b,_,0,0,0,0)}}}return t.getDateZeroTime(new Date(e))},t.convertArray=function(e,n){return e.map((function(e){return e instanceof Array?e.map((function(e){return new t(e,n)})):new t(e,n)}))},t.getDateZeroTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},t.shortMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"short"})}))},t.longMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"long"})}))},t.formatPatterns=function(e,n){switch(e){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+e.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+t.shortMonths(n).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+t.longMonths(n).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},t.prototype.getDateInstance=function(){return this.dateInstance},t.prototype.toLocaleString=function(t,e){return this.dateInstance.toLocaleString(t,e)},t.prototype.toDateString=function(){return this.dateInstance.toDateString()},t.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},t.prototype.getDay=function(){return this.dateInstance.getDay()},t.prototype.getTime=function(){return this.dateInstance.getTime()},t.prototype.getDate=function(){return this.dateInstance.getDate()},t.prototype.getMonth=function(){return this.dateInstance.getMonth()},t.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},t.prototype.setMonth=function(t){return this.dateInstance.setMonth(t)},t.prototype.setHours=function(t,e,n,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===o&&(o=0),this.dateInstance.setHours(t,e,n,o)},t.prototype.setSeconds=function(t){return this.dateInstance.setSeconds(t)},t.prototype.setDate=function(t){return this.dateInstance.setDate(t)},t.prototype.setFullYear=function(t){return this.dateInstance.setFullYear(t)},t.prototype.getWeek=function(t){var e=new Date(this.timestamp()),n=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-n);var o=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((o-e.getTime())/6048e5)},t.prototype.clone=function(){return new t(this.getDateInstance())},t.prototype.isBetween=function(t,e,n){switch(void 0===n&&(n="()"),n){default:case"()":return this.timestamp()>t.getTime()&&this.timestamp()<e.getTime();case"[)":return this.timestamp()>=t.getTime()&&this.timestamp()<e.getTime();case"(]":return this.timestamp()>t.getTime()&&this.timestamp()<=e.getTime();case"[]":return this.timestamp()>=t.getTime()&&this.timestamp()<=e.getTime()}},t.prototype.isBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},t.prototype.isSameOrBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>=this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},t.prototype.isAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw new Error("isAfter: Invalid unit!")},t.prototype.isSameOrAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>=t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},t.prototype.isSame=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()===t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},t.prototype.add=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()+t);break;case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this},t.prototype.subtract=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()-t);break;case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this},t.prototype.diff=function(t,e){switch(void 0===e&&(e="seconds"),e){default:case"second":case"seconds":return this.getTime()-t.getTime();case"day":case"days":return Math.round((this.timestamp()-t.getTime())/864e5);case"month":case"months":}},t.prototype.format=function(e,n){void 0===n&&(n="en-US");for(var o="",r=[],i=null;null!=(i=t.regex.exec(e));)"\\"!==i[1]&&r.push(i);if(r.length){r[0].index>0&&(o+=e.substring(0,r[0].index));for(var a=0,l=Object.entries(r);a<l.length;a++){var s=l[a],c=s[0],u=s[1],f=Number(c);o+=this.formatTokens(u[0],n),r[f+1]&&(o+=e.substring(u.index+u[0].length,r[f+1].index)),f===r.length-1&&(o+=e.substring(u.index+u[0].length))}}return o.replace(/\\/g,"")},t.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},t.prototype.formatTokens=function(e,n){switch(e){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return t.shortMonths(n)[this.getMonth()];case"MMMM":return t.longMonths(n)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},t.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,t.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],t}();e.DateTime=o},function(t,e,n){var o=n(6);"string"==typeof o&&(o=[[t.i,o,""]]);var r={insert:function(t){var e=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;window.disableLitepickerStyles||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild),window._lastElementInsertedByStyleLoader=t)},singleton:!1};n(8)(o,r),o.locals&&(t.exports=o.locals)},function(t,e,n){"use strict";function o(){return window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape"}Object.defineProperty(e,"__esModule",{value:!0}),e.isMobile=function(){var t="portrait"===o();return window.matchMedia("(max-device-"+(t?"width":"height")+": 480px)").matches},e.getOrientation=o,e.findNestedMonthItem=function(t){for(var e=t.parentNode.childNodes,n=0;n<e.length;n+=1)if(e.item(n)===t)return n;return 0}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var l=n(5),s=n(0),c=a(n(1)),u=n(2),f=function(t){function e(e){var n=t.call(this)||this;n.options=i(i({},n.options),e.element.dataset),Object.keys(n.options).forEach((function(t){"true"!==n.options[t]&&"false"!==n.options[t]||(n.options[t]="true"===n.options[t])}));var o=i(i({},n.options.dropdowns),e.dropdowns),r=i(i({},n.options.buttonText),e.buttonText),a=i(i({},n.options.tooltipText),e.tooltipText);n.options=i(i({},n.options),e),n.options.dropdowns=i({},o),n.options.buttonText=i({},r),n.options.tooltipText=i({},a),n.options.elementEnd||(n.options.allowRepick=!1),n.options.lockDays.length&&(n.options.lockDays=s.DateTime.convertArray(n.options.lockDays,n.options.lockDaysFormat)),n.options.bookedDays.length&&(n.options.bookedDays=s.DateTime.convertArray(n.options.bookedDays,n.options.bookedDaysFormat)),n.options.highlightedDays.length&&(n.options.highlightedDays=s.DateTime.convertArray(n.options.highlightedDays,n.options.highlightedDaysFormat)),!n.options.hotelMode||"bookedDaysInclusivity"in e||(n.options.bookedDaysInclusivity="[)"),!n.options.hotelMode||"disallowBookedDaysInRange"in e||(n.options.disallowBookedDaysInRange=!0),!n.options.hotelMode||"selectForward"in e||(n.options.selectForward=!0);var l=n.parseInput(),c=l[0],u=l[1];n.options.startDate&&(n.options.singleMode||n.options.endDate)&&(c=new s.DateTime(n.options.startDate,n.options.format,n.options.lang)),c&&n.options.endDate&&(u=new s.DateTime(n.options.endDate,n.options.format,n.options.lang)),c instanceof s.DateTime&&!isNaN(c.getTime())&&(n.options.startDate=c),n.options.startDate&&u instanceof s.DateTime&&!isNaN(u.getTime())&&(n.options.endDate=u),!n.options.singleMode||n.options.startDate instanceof s.DateTime||(n.options.startDate=null),n.options.singleMode||n.options.startDate instanceof s.DateTime&&n.options.endDate instanceof s.DateTime||(n.options.startDate=null,n.options.endDate=null);for(var f=0;f<n.options.numberOfMonths;f+=1){var d=n.options.startDate instanceof s.DateTime?n.options.startDate.clone():new s.DateTime;d.setDate(1),d.setMonth(d.getMonth()+f),n.calendars[f]=d}if(n.options.showTooltip)if(n.options.tooltipPluralSelector)n.pluralSelector=n.options.tooltipPluralSelector;else try{var p=new Intl.PluralRules(n.options.lang);n.pluralSelector=p.select.bind(p)}catch(t){n.pluralSelector=function(t){return 0===Math.abs(t)?"one":"other"}}return n.loadPolyfillsForIE11(),n.onInit(),n}return r(e,t),e.prototype.onInit=function(){var t=this;if(document.addEventListener("click",(function(e){return t.onClick(e)}),!0),this.picker=document.createElement("div"),this.picker.className=c.litepicker,this.picker.style.display="none",this.picker.addEventListener("mouseenter",(function(e){return t.onMouseEnter(e)}),!0),this.picker.addEventListener("mouseleave",(function(e){return t.onMouseLeave(e)}),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",(function(e){return t.onInput(e)}),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",(function(e){return t.onInput(e)}),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",(function(e){return t.onInput(e)}),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",(function(e){return t.onInput(e)}),!0)),this.options.moduleNavKeyboard){if("function"!=typeof this.enableModuleNavKeyboard)throw new Error("moduleNavKeyboard is on but library does not included. See https://github.com/wakirin/litepicker-module-navkeyboard.");this.enableModuleNavKeyboard.call(this,this)}this.render(),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.picker):document.querySelector(this.options.parentEl).appendChild(this.picker):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.picker):this.options.element.appendChild(this.picker):document.body.appendChild(this.picker),this.options.mobileFriendly&&(this.backdrop=document.createElement("div"),this.backdrop.className=c.litepickerBackdrop,this.backdrop.addEventListener("click",this.hide()),this.options.element&&this.options.element.parentNode&&this.options.element.parentNode.appendChild(this.backdrop),window.addEventListener("orientationchange",(function(e){var n=function(){if(u.isMobile()&&t.isShowning()){switch(u.getOrientation()){case"landscape":t.options.numberOfMonths=2,t.options.numberOfColumns=2;break;default:t.options.numberOfMonths=1,t.options.numberOfColumns=1}if(t.render(),!t.options.inlineMode){var e=t.picker.getBoundingClientRect();t.picker.style.top="calc(50% - "+e.height/2+"px)",t.picker.style.left="calc(50% - "+e.width/2+"px)"}}window.removeEventListener("resize",n)};window.addEventListener("resize",n)}))),this.options.inlineMode&&(this.show(),this.options.mobileFriendly&&u.isMobile()&&(window.dispatchEvent(new Event("orientationchange")),window.dispatchEvent(new Event("resize")))),this.updateInput()},e.prototype.parseInput=function(){var t=this.options.delimiter,e=new RegExp(""+t),n=this.options.element instanceof HTMLInputElement?this.options.element.value.split(t):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new s.DateTime(this.options.element.value,this.options.format),new s.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new s.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&e.test(this.options.element.value)&&n.length&&n.length%2==0){var o=n.slice(0,n.length/2).join(t),r=n.slice(n.length/2).join(t);return[new s.DateTime(o,this.options.format),new s.DateTime(r,this.options.format)]}return[]},e.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){if(this.options.singleMode&&this.options.startDate)this.options.element.value=this.options.startDate.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&this.options.startDate&&this.options.endDate){var t=this.options.startDate.format(this.options.format,this.options.lang),e=this.options.endDate.format(this.options.format,this.options.lang);this.options.elementEnd?(this.options.element.value=t,this.options.elementEnd.value=e):this.options.element.value=""+t+this.options.delimiter+e}this.options.startDate||this.options.endDate||(this.options.element.value="",this.options.elementEnd&&(this.options.elementEnd.value=""))}},e.prototype.isSamePicker=function(t){return t.closest("."+c.litepicker)===this.picker},e.prototype.shouldShown=function(t){return t===this.options.element||this.options.elementEnd&&t===this.options.elementEnd},e.prototype.shouldResetDatePicked=function(){return this.options.singleMode||2===this.datePicked.length},e.prototype.shouldSwapDatePicked=function(){return 2===this.datePicked.length&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},e.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&this.options.lockDays.length&&2===this.datePicked.length},e.prototype.shouldCheckBookedDays=function(){return this.options.disallowBookedDaysInRange&&this.options.bookedDays.length&&2===this.datePicked.length},e.prototype.onClick=function(t){var e=this,n=t.target;if(n&&this.picker)if(this.shouldShown(n))this.show(n);else if(n.closest("."+c.litepicker)){if(n.classList.contains(c.dayItem)){if(t.preventDefault(),!this.isSamePicker(n))return;if(n.classList.contains(c.isLocked))return;if(n.classList.contains(c.isBooked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new s.DateTime(n.dataset.time),this.shouldSwapDatePicked()){var o=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=o.clone()}if(this.shouldCheckLockDays()){var r=this.options.lockDaysInclusivity;this.options.lockDays.filter((function(t){return t instanceof Array?t[0].isBetween(e.datePicked[0],e.datePicked[1],r)||t[1].isBetween(e.datePicked[0],e.datePicked[1],r):t.isBetween(e.datePicked[0],e.datePicked[1],r)})).length&&(this.datePicked.length=0,"function"==typeof this.options.onError&&this.options.onError.call(this,"INVALID_RANGE"))}if(this.shouldCheckBookedDays()){var i=this.options.bookedDaysInclusivity;this.options.hotelMode&&2===this.datePicked.length&&(i="()");var a=this.options.bookedDays.filter((function(t){return t instanceof Array?t[0].isBetween(e.datePicked[0],e.datePicked[1],i)||t[1].isBetween(e.datePicked[0],e.datePicked[1],i):t.isBetween(e.datePicked[0],e.datePicked[1])})).length,l=this.options.anyBookedDaysAsCheckout&&1===this.datePicked.length;a&&!l&&(this.datePicked.length=0,"function"==typeof this.options.onError&&this.options.onError.call(this,"INVALID_RANGE"))}return this.render(),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||2!==this.datePicked.length||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(n.classList.contains(c.buttonPreviousMonth)){if(t.preventDefault(),!this.isSamePicker(n))return;var f=0,d=this.options.moveByOneMonth?1:this.options.numberOfMonths;if(this.options.splitView){var p=n.closest("."+c.monthItem);f=u.findNestedMonthItem(p),d=1}return this.calendars[f].setMonth(this.calendars[f].getMonth()-d),this.gotoDate(this.calendars[f],f),void("function"==typeof this.options.onChangeMonth&&this.options.onChangeMonth.call(this,this.calendars[f],f))}if(n.classList.contains(c.buttonNextMonth)){if(t.preventDefault(),!this.isSamePicker(n))return;return f=0,d=this.options.moveByOneMonth?1:this.options.numberOfMonths,this.options.splitView&&(p=n.closest("."+c.monthItem),f=u.findNestedMonthItem(p),d=1),this.calendars[f].setMonth(this.calendars[f].getMonth()+d),this.gotoDate(this.calendars[f],f),void("function"==typeof this.options.onChangeMonth&&this.options.onChangeMonth.call(this,this.calendars[f],f))}if(n.classList.contains(c.buttonCancel)){if(t.preventDefault(),!this.isSamePicker(n))return;this.hide()}if(n.classList.contains(c.buttonApply)){if(t.preventDefault(),!this.isSamePicker(n))return;this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||2!==this.datePicked.length||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide()}}else this.hide()},e.prototype.showTooltip=function(t,e){var n=this.picker.querySelector("."+c.containerTooltip);n.style.visibility="visible",n.innerHTML=e;var o=this.picker.getBoundingClientRect(),r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top,l=i.left;if(this.options.inlineMode&&this.options.parentEl){var s=this.picker.parentNode.getBoundingClientRect();a-=s.top,l-=s.left}else a-=o.top,l-=o.left;a-=r.height,l-=r.width/2,l+=i.width/2,n.style.top=a+"px",n.style.left=l+"px","function"==typeof this.options.onShowTooltip&&this.options.onShowTooltip.call(this,n,t)},e.prototype.hideTooltip=function(){this.picker.querySelector("."+c.containerTooltip).style.visibility="hidden"},e.prototype.shouldAllowMouseEnter=function(t){return!this.options.singleMode&&!t.classList.contains(c.isLocked)&&!t.classList.contains(c.isBooked)},e.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},e.prototype.isDayItem=function(t){return t.classList.contains(c.dayItem)},e.prototype.onMouseEnter=function(t){var e=this,n=t.target;if(this.isDayItem(n)&&("function"==typeof this.options.onDayHover&&this.options.onDayHover.call(this,s.DateTime.parseDateTime(n.dataset.time),n.classList.toString().split(/\s/),n),this.shouldAllowMouseEnter(n))){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),1!==this.datePicked.length)return;var o=this.picker.querySelector("."+c.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),r=this.datePicked[0].clone(),i=new s.DateTime(n.dataset.time),a=!1;if(r.getTime()>i.getTime()){var l=r.clone();r=i.clone(),i=l.clone(),a=!0}if(Array.prototype.slice.call(this.picker.querySelectorAll("."+c.dayItem)).forEach((function(t){var n=new s.DateTime(t.dataset.time),o=e.renderDay(n);n.isBetween(r,i)&&o.classList.add(c.isInRange),t.className=o.className})),n.classList.add(c.isEndDate),a?(o&&o.classList.add(c.isFlipped),n.classList.add(c.isFlipped)):(o&&o.classList.remove(c.isFlipped),n.classList.remove(c.isFlipped)),this.options.showTooltip){var u=i.diff(r,"day");if(this.options.hotelMode||(u+=1),u>0){var f=this.pluralSelector(u),d=u+" "+(this.options.tooltipText[f]?this.options.tooltipText[f]:"["+f+"]");this.showTooltip(n,d)}else this.hideTooltip()}}},e.prototype.onMouseLeave=function(t){t.target,this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},e.prototype.onInput=function(t){var e=this.parseInput(),n=e[0],o=e[1],r=this.options.format;if(this.options.elementEnd?n instanceof s.DateTime&&o instanceof s.DateTime&&n.format(r)===this.options.element.value&&o.format(r)===this.options.elementEnd.value:this.options.singleMode?n instanceof s.DateTime&&n.format(r)===this.options.element.value:n instanceof s.DateTime&&o instanceof s.DateTime&&""+n.format(r)+this.options.delimiter+o.format(r)===this.options.element.value){if(o&&n.getTime()>o.getTime()){var i=n.clone();n=o.clone(),o=i.clone()}this.options.startDate=new s.DateTime(n,this.options.format,this.options.lang),o&&(this.options.endDate=new s.DateTime(o,this.options.format,this.options.lang)),this.updateInput(),this.render();var a=n.clone(),l=0;(this.options.elementEnd?n.format(r)===t.target.value:t.target.value.startsWith(n.format(r)))||(a=o.clone(),l=this.options.numberOfMonths-1),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.getStartDate(),this.getEndDate()),this.gotoDate(a,l)}},e.prototype.isShowning=function(){return this.picker&&"none"!==this.picker.style.display},e.prototype.loadPolyfillsForIE11=function(){Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,o=new Array(n);n;)o[n-=1]=[e[n],t[e[n]]];return o}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})},e}(l.Calendar);e.Litepicker=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(3);e.Litepicker=o.Litepicker,n(9),n(10),window.Litepicker=o.Litepicker,e.default=o.Litepicker},function(t,e,n){"use strict";var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=o(n(1)),a=n(2),l=function(){function t(){this.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,minDate:null,maxDate:null,minDays:null,maxDays:null,selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,hotelMode:!1,disableWeekends:!1,scrollToDate:!0,mobileFriendly:!0,useResetBtn:!1,autoRefresh:!1,moveByOneMonth:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",bookedDaysFormat:"YYYY-MM-DD",bookedDays:[],disallowBookedDaysInRange:!1,bookedDaysInclusivity:"[]",anyBookedDaysAsCheckout:!1,highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n </svg>'},tooltipText:{one:"day",other:"days"},tooltipPluralSelector:null,onShow:null,onHide:null,onSelect:null,onError:null,onRender:null,onRenderDay:null,onChangeMonth:null,onChangeYear:null,onDayHover:null,onShowTooltip:null,resetBtnCallback:null,moduleRanges:null,moduleNavKeyboard:null},this.calendars=[],this.datePicked=[]}return t.prototype.render=function(){var t=this,e=document.createElement("div");e.className=i.containerMain;var n=document.createElement("div");n.className=i.containerMonths,i["columns"+this.options.numberOfColumns]&&(n.classList.remove(i.columns2,i.columns3,i.columns4),n.classList.add(i["columns"+this.options.numberOfColumns])),this.options.splitView&&n.classList.add(i.splitView),this.options.showWeekNumbers&&n.classList.add(i.showWeekNumbers);for(var o=this.calendars[0].clone(),r=o.getMonth(),a=o.getMonth()+this.options.numberOfMonths,l=0,s=r;s<a;s+=1){var c=o.clone();c.setDate(1),this.options.splitView?c=this.calendars[l].clone():c.setMonth(s),n.appendChild(this.renderMonth(c)),l+=1}if(this.picker.innerHTML="",e.appendChild(n),this.options.useResetBtn){var u=document.createElement("a");u.href="#",u.className=i.resetButton,u.innerHTML=this.options.buttonText.reset,u.addEventListener("click",(function(e){e.preventDefault(),t.clearSelection(),"function"==typeof t.options.resetBtnCallback&&t.options.resetBtnCallback.call(t)})),e.querySelector("."+i.monthItem+":last-child").querySelector("."+i.monthItemHeader).appendChild(u)}if(this.picker.appendChild(e),this.options.autoApply&&!this.options.footerHTML||this.picker.appendChild(this.renderFooter()),this.options.showTooltip&&this.picker.appendChild(this.renderTooltip()),this.options.moduleRanges){if("function"!=typeof this.enableModuleRanges)throw new Error("moduleRanges is on but library does not included. See https://github.com/wakirin/litepicker-module-ranges.");this.enableModuleRanges.call(this,this)}"function"==typeof this.options.onRender&&this.options.onRender.call(this,this.picker)},t.prototype.renderMonth=function(t){var e=this,n=t.clone(),o=32-new Date(n.getFullYear(),n.getMonth(),32).getDate(),l=document.createElement("div");l.className=i.monthItem;var s=document.createElement("div");s.className=i.monthItemHeader;var c=document.createElement("div");if(this.options.dropdowns.months){var u=document.createElement("select");u.className=i.monthItemName;for(var f=0;f<12;f+=1){var d=document.createElement("option"),p=new r.DateTime(new Date(t.getFullYear(),f,1,0,0,0));d.value=String(f),d.text=p.toLocaleString(this.options.lang,{month:"long"}),d.disabled=this.options.minDate&&p.isBefore(new r.DateTime(this.options.minDate),"month")||this.options.maxDate&&p.isAfter(new r.DateTime(this.options.maxDate),"month"),d.selected=p.getMonth()===t.getMonth(),u.appendChild(d)}u.addEventListener("change",(function(t){var n=t.target,o=0;if(e.options.splitView){var r=n.closest("."+i.monthItem);o=a.findNestedMonthItem(r)}e.calendars[o].setMonth(Number(n.value)),e.render(),"function"==typeof e.options.onChangeMonth&&e.options.onChangeMonth.call(e,e.calendars[o],o)})),c.appendChild(u)}else{var h=document.createElement("strong");h.className=i.monthItemName,h.innerHTML=t.toLocaleString(this.options.lang,{month:"long"}),c.appendChild(h)}if(this.options.dropdowns.years){var m=document.createElement("select");m.className=i.monthItemYear;var v=this.options.dropdowns.minYear,y=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:(new Date).getFullYear();for(t.getFullYear()>y&&((d=document.createElement("option")).value=String(t.getFullYear()),d.text=String(t.getFullYear()),d.selected=!0,d.disabled=!0,m.appendChild(d)),f=y;f>=v;f-=1){d=document.createElement("option");var g=new r.DateTime(new Date(f,0,1,0,0,0));d.value=f,d.text=f,d.disabled=this.options.minDate&&g.isBefore(new r.DateTime(this.options.minDate),"year")||this.options.maxDate&&g.isAfter(new r.DateTime(this.options.maxDate),"year"),d.selected=t.getFullYear()===f,m.appendChild(d)}if(t.getFullYear()<v&&((d=document.createElement("option")).value=String(t.getFullYear()),d.text=String(t.getFullYear()),d.selected=!0,d.disabled=!0,m.appendChild(d)),"asc"===this.options.dropdowns.years){var b=Array.prototype.slice.call(m.childNodes).reverse();m.innerHTML="",b.forEach((function(t){t.innerHTML=t.value,m.appendChild(t)}))}m.addEventListener("change",(function(t){var n=t.target,o=0;if(e.options.splitView){var r=n.closest("."+i.monthItem);o=a.findNestedMonthItem(r)}e.calendars[o].setFullYear(Number(n.value)),e.render(),"function"==typeof e.options.onChangeYear&&e.options.onChangeYear.call(e,e.calendars[o],o)})),c.appendChild(m)}else{var _=document.createElement("span");_.className=i.monthItemYear,_.innerHTML=String(t.getFullYear()),c.appendChild(_)}var w=document.createElement("a");w.href="#",w.className=i.buttonPreviousMonth,w.innerHTML=this.options.buttonText.previousMonth;var O=document.createElement("a");O.href="#",O.className=i.buttonNextMonth,O.innerHTML=this.options.buttonText.nextMonth,s.appendChild(w),s.appendChild(c),s.appendChild(O),this.options.minDate&&n.isSameOrBefore(new r.DateTime(this.options.minDate),"month")&&l.classList.add(i.noPreviousMonth),this.options.maxDate&&n.isSameOrAfter(new r.DateTime(this.options.maxDate),"month")&&l.classList.add(i.noNextMonth);var x=document.createElement("div");x.className=i.monthItemWeekdaysRow,this.options.showWeekNumbers&&(x.innerHTML="<div>W</div>");for(var E=1;E<=7;E+=1){var k=3+this.options.firstDay+E,C=document.createElement("div");C.innerHTML=this.weekdayName(k),C.title=this.weekdayName(k,"long"),x.appendChild(C)}var S=document.createElement("div");S.className=i.containerDays;var q=this.calcSkipDays(n);this.options.showWeekNumbers&&q&&S.appendChild(this.renderWeekNumber(n));for(var D=0;D<q;D+=1){var T=document.createElement("div");S.appendChild(T)}for(D=1;D<=o;D+=1)n.setDate(D),this.options.showWeekNumbers&&n.getDay()===this.options.firstDay&&S.appendChild(this.renderWeekNumber(n)),S.appendChild(this.renderDay(n));return l.appendChild(s),l.appendChild(x),l.appendChild(S),l},t.prototype.renderDay=function(t){var e=this;t.setHours();var n=document.createElement("a");if(n.href="#",n.className=i.dayItem,n.innerHTML=String(t.getDate()),n.dataset.time=String(t.getTime()),t.toDateString()===(new Date).toDateString()&&n.classList.add(i.isToday),this.datePicked.length?(this.datePicked[0].toDateString()===t.toDateString()&&(n.classList.add(i.isStartDate),this.options.singleMode&&n.classList.add(i.isEndDate)),2===this.datePicked.length&&this.datePicked[1].toDateString()===t.toDateString()&&n.classList.add(i.isEndDate),2===this.datePicked.length&&t.isBetween(this.datePicked[0],this.datePicked[1])&&n.classList.add(i.isInRange)):this.options.startDate&&(this.options.startDate.toDateString()===t.toDateString()&&(n.classList.add(i.isStartDate),this.options.singleMode&&n.classList.add(i.isEndDate)),this.options.endDate&&this.options.endDate.toDateString()===t.toDateString()&&n.classList.add(i.isEndDate),this.options.startDate&&this.options.endDate&&t.isBetween(this.options.startDate,this.options.endDate)&&n.classList.add(i.isInRange)),this.options.minDate&&t.isBefore(new r.DateTime(this.options.minDate))&&n.classList.add(i.isLocked),this.options.maxDate&&t.isAfter(new r.DateTime(this.options.maxDate))&&n.classList.add(i.isLocked),this.options.minDays&&1===this.datePicked.length){var o=Number(!this.options.hotelMode),a=this.datePicked[0].clone().subtract(this.options.minDays-o,"day"),l=this.datePicked[0].clone().add(this.options.minDays-o,"day");t.isBetween(a,this.datePicked[0],"(]")&&n.classList.add(i.isLocked),t.isBetween(this.datePicked[0],l,"[)")&&n.classList.add(i.isLocked)}if(this.options.maxDays&&1===this.datePicked.length&&(o=Number(this.options.hotelMode),a=this.datePicked[0].clone().subtract(this.options.maxDays+o,"day"),l=this.datePicked[0].clone().add(this.options.maxDays+o,"day"),t.isSameOrBefore(a)&&n.classList.add(i.isLocked),t.isSameOrAfter(l)&&n.classList.add(i.isLocked)),this.options.selectForward&&1===this.datePicked.length&&t.isBefore(this.datePicked[0])&&n.classList.add(i.isLocked),this.options.selectBackward&&1===this.datePicked.length&&t.isAfter(this.datePicked[0])&&n.classList.add(i.isLocked),this.options.lockDays.length&&this.options.lockDays.filter((function(n){return n instanceof Array?t.isBetween(n[0],n[1],e.options.lockDaysInclusivity):n.isSame(t,"day")})).length&&n.classList.add(i.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter((function(e){return e instanceof Array?t.isBetween(e[0],e[1],"[]"):e.isSame(t,"day")})).length&&n.classList.add(i.isHighlighted),this.datePicked.length<=1&&this.options.bookedDays.length){var s=this.options.bookedDaysInclusivity;this.options.hotelMode&&1===this.datePicked.length&&(s="()");var c=t.clone();c.subtract(1,"day"),t.clone().add(1,"day");var u=this.dateIsBooked(t,s),f=this.dateIsBooked(c,"[]"),d=this.dateIsBooked(t,"(]"),p=0===this.datePicked.length&&u||1===this.datePicked.length&&f&&u||1===this.datePicked.length&&f&&d,h=this.options.anyBookedDaysAsCheckout&&1===this.datePicked.length;p&&!h&&n.classList.add(i.isBooked)}return!this.options.disableWeekends||6!==t.getDay()&&0!==t.getDay()||n.classList.add(i.isLocked),"function"==typeof this.options.onRenderDay&&this.options.onRenderDay.call(this,n),n},t.prototype.renderFooter=function(){var t=document.createElement("div");if(t.className=i.containerFooter,this.options.footerHTML?t.innerHTML=this.options.footerHTML:t.innerHTML='\n <span class="'+i.previewDateRange+'"></span>\n <button type="button" class="'+i.buttonCancel+'">'+this.options.buttonText.cancel+'</button>\n <button type="button" class="'+i.buttonApply+'">'+this.options.buttonText.apply+"</button>\n ",this.options.singleMode){if(1===this.datePicked.length){var e=this.datePicked[0].format(this.options.format,this.options.lang);t.querySelector("."+i.previewDateRange).innerHTML=e}}else if(1===this.datePicked.length&&t.querySelector("."+i.buttonApply).setAttribute("disabled",""),2===this.datePicked.length){e=this.datePicked[0].format(this.options.format,this.options.lang);var n=this.datePicked[1].format(this.options.format,this.options.lang);t.querySelector("."+i.previewDateRange).innerHTML=""+e+this.options.delimiter+n}return t},t.prototype.renderWeekNumber=function(t){var e=document.createElement("div"),n=t.getWeek(this.options.firstDay);return e.className=i.weekNumber,e.innerHTML=53===n&&0===t.getMonth()?"53 / 1":n,e},t.prototype.renderTooltip=function(){var t=document.createElement("div");return t.className=i.containerTooltip,t},t.prototype.dateIsBooked=function(t,e){return this.options.bookedDays.filter((function(n){return n instanceof Array?t.isBetween(n[0],n[1],e):n.isSame(t,"day")})).length},t.prototype.weekdayName=function(t,e){return void 0===e&&(e="short"),new Date(1970,0,t,12,0,0,0).toLocaleString(this.options.lang,{weekday:e})},t.prototype.calcSkipDays=function(t){var e=t.getDay()-this.options.firstDay;return e<0&&(e+=7),e},t}();e.Calendar=l},function(t,e,n){(e=t.exports=n(7)(!1)).push([t.i,':root{--litepickerBgColor: #fff;--litepickerMonthHeaderTextColor: #333;--litepickerMonthButton: #9e9e9e;--litepickerMonthButtonHover: #2196f3;--litepickerMonthWidth: calc(var(--litepickerDayWidth) * 7);--litepickerMonthWeekdayColor: #9e9e9e;--litepickerDayColor: #333;--litepickerDayColorHover: #2196f3;--litepickerDayIsTodayColor: #f44336;--litepickerDayIsInRange: #bbdefb;--litepickerDayIsLockedColor: #9e9e9e;--litepickerDayIsBookedColor: #9e9e9e;--litepickerDayIsStartColor: #fff;--litepickerDayIsStartBg: #2196f3;--litepickerDayIsEndColor: #fff;--litepickerDayIsEndBg: #2196f3;--litepickerDayWidth: 38px;--litepickerButtonCancelColor: #fff;--litepickerButtonCancelBg: #9e9e9e;--litepickerButtonApplyColor: #fff;--litepickerButtonApplyBg: #2196f3;--litepickerButtonResetBtn: #909090;--litepickerButtonResetBtnHover: #2196f3;--litepickerHighlightedDayColor: #333;--litepickerHighlightedDayBg: #ffeb3b}.show-week-numbers{--litepickerMonthWidth: calc(var(--litepickerDayWidth) * 8)}.litepicker{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:0.8em;display:none}.litepicker .container__main{display:-webkit-box;display:-ms-flexbox;display:flex}.litepicker .container__months{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:var(--litepickerBgColor);border-radius:5px;-webkit-box-shadow:0 0 5px #ddd;box-shadow:0 0 5px #ddd;width:calc(var(--litepickerMonthWidth) + 10px);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months.columns-2{width:calc((var(--litepickerMonthWidth) * 2) + 20px)}.litepicker .container__months.columns-3{width:calc((var(--litepickerMonthWidth) * 3) + 30px)}.litepicker .container__months.columns-4{width:calc((var(--litepickerMonthWidth) * 4) + 40px)}.litepicker .container__months.split-view .month-item-header .button-previous-month,.litepicker .container__months.split-view .month-item-header .button-next-month{visibility:visible}.litepicker .container__months .month-item{padding:5px;width:var(--litepickerMonthWidth);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months .month-item-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:500;padding:10px 5px;text-align:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--litepickerMonthHeaderTextColor)}.litepicker .container__months .month-item-header div{-webkit-box-flex:1;-ms-flex:1;flex:1}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header div>.month-item-year{padding:0}.litepicker .container__months .month-item-header .reset-button{color:var(--litepickerButtonResetBtn)}.litepicker .container__months .month-item-header .reset-button>svg,.litepicker .container__months .month-item-header .reset-button>img{fill:var(--litepickerButtonResetBtn);pointer-events:none}.litepicker .container__months .month-item-header .reset-button:hover{color:var(--litepickerButtonResetBtnHover)}.litepicker .container__months .month-item-header .reset-button:hover>svg{fill:var(--litepickerButtonResetBtnHover)}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;color:var(--litepickerMonthButton);padding:3px 5px;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img,.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{fill:var(--litepickerMonthButton);pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month:hover,.litepicker .container__months .month-item-header .button-next-month:hover{color:var(--litepickerMonthButtonHover)}.litepicker .container__months .month-item-header .button-previous-month:hover>svg,.litepicker .container__months .month-item-header .button-next-month:hover>svg{fill:var(--litepickerMonthButtonHover)}.litepicker .container__months .month-item-weekdays-row{display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;color:var(--litepickerMonthWeekdayColor)}.litepicker .container__months .month-item-weekdays-row>div{padding:5px 0;font-size:85%;-webkit-box-flex:1;-ms-flex:1;flex:1;width:var(--litepickerDayWidth);text-align:center}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visibility:hidden}.litepicker .container__months .month-item.no-next-month .button-next-month{visibility:hidden}.litepicker .container__days{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:center;-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__days>div,.litepicker .container__days>a{padding:5px 0;width:var(--litepickerDayWidth)}.litepicker .container__days .day-item{color:var(--litepickerDayColor);text-align:center;text-decoration:none;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__days .day-item:hover{color:var(--litepickerDayColorHover);-webkit-box-shadow:inset 0 0 0 1px var(--litepickerDayColorHover);box-shadow:inset 0 0 0 1px var(--litepickerDayColorHover)}.litepicker .container__days .day-item.is-today{color:var(--litepickerDayIsTodayColor)}.litepicker .container__days .day-item.is-locked{color:var(--litepickerDayIsLockedColor)}.litepicker .container__days .day-item.is-locked:hover{color:var(--litepickerDayIsLockedColor);-webkit-box-shadow:none;box-shadow:none;cursor:default}.litepicker .container__days .day-item.is-booked{color:var(--litepickerDayIsBookedColor)}.litepicker .container__days .day-item.is-booked:hover{color:var(--litepickerDayIsBookedColor);-webkit-box-shadow:none;box-shadow:none;cursor:default}.litepicker .container__days .day-item.is-in-range{background-color:var(--litepickerDayIsInRange);border-radius:0}.litepicker .container__days .day-item.is-start-date{color:var(--litepickerDayIsStartColor);background-color:var(--litepickerDayIsStartBg);border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-flipped{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date{color:var(--litepickerDayIsEndColor);background-color:var(--litepickerDayIsEndBg);border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date.is-flipped{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-end-date{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-highlighted{color:var(--litepickerHighlightedDayColor);background-color:var(--litepickerHighlightedDayBg)}.litepicker .container__days .week-number{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:#9e9e9e;font-size:85%}.litepicker .container__footer{text-align:right;padding:10px 5px;margin:0 5px;background-color:#fafafa;-webkit-box-shadow:inset 0px 3px 3px 0px #ddd;box-shadow:inset 0px 3px 3px 0px #ddd;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.litepicker .container__footer .preview-date-range{margin-right:10px;font-size:90%}.litepicker .container__footer .button-cancel{background-color:var(--litepickerButtonCancelBg);color:var(--litepickerButtonCancelColor);border:0;padding:3px 7px 4px;border-radius:3px}.litepicker .container__footer .button-cancel>svg,.litepicker .container__footer .button-cancel>img{pointer-events:none}.litepicker .container__footer .button-apply{background-color:var(--litepickerButtonApplyBg);color:var(--litepickerButtonApplyColor);border:0;padding:3px 7px 4px;border-radius:3px;margin-left:10px;margin-right:10px}.litepicker .container__footer .button-apply:disabled{opacity:0.7}.litepicker .container__footer .button-apply>svg,.litepicker .container__footer .button-apply>img{pointer-events:none}.litepicker .container__tooltip{position:absolute;margin-top:-4px;padding:4px 8px;border-radius:4px;background-color:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25);white-space:nowrap;font-size:11px;pointer-events:none;visibility:hidden}.litepicker .container__tooltip:before{position:absolute;bottom:-5px;left:calc(50% - 5px);border-top:5px solid rgba(0,0,0,0.12);border-right:5px solid transparent;border-left:5px solid transparent;content:""}.litepicker .container__tooltip:after{position:absolute;bottom:-4px;left:calc(50% - 4px);border-top:4px solid #fff;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.litepicker-open{overflow:hidden}.litepicker-backdrop{display:none;background-color:#000;opacity:0.3;position:fixed;top:0;right:0;bottom:0;left:0}\n',""]),e.locals={showWeekNumbers:"show-week-numbers",litepicker:"litepicker",containerMain:"container__main",containerMonths:"container__months",columns2:"columns-2",columns3:"columns-3",columns4:"columns-4",splitView:"split-view",monthItemHeader:"month-item-header",buttonPreviousMonth:"button-previous-month",buttonNextMonth:"button-next-month",monthItem:"month-item",monthItemName:"month-item-name",monthItemYear:"month-item-year",resetButton:"reset-button",monthItemWeekdaysRow:"month-item-weekdays-row",noPreviousMonth:"no-previous-month",noNextMonth:"no-next-month",containerDays:"container__days",dayItem:"day-item",isToday:"is-today",isLocked:"is-locked",isBooked:"is-booked",isInRange:"is-in-range",isStartDate:"is-start-date",isFlipped:"is-flipped",isEndDate:"is-end-date",isHighlighted:"is-highlighted",weekNumber:"week-number",containerFooter:"container__footer",previewDateRange:"preview-date-range",buttonCancel:"button-cancel",buttonApply:"button-apply",containerTooltip:"container__tooltip",litepickerOpen:"litepicker-open",litepickerBackdrop:"litepicker-backdrop"}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,o,r,i=t[1]||"",a=t[3];if(!a)return i;if(e&&"function"==typeof btoa){var l=(n=a,o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(r," */")),s=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot).concat(t," */")}));return[i].concat(s).concat([l]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(n,"}"):n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];null!=i&&(o[i]=!0)}for(var a=0;a<t.length;a++){var l=t[a];null!=l[0]&&o[l[0]]||(n&&!l[2]?l[2]=n:n&&(l[2]="(".concat(l[2],") and (").concat(n,")")),e.push(l))}},e}},function(t,e,n){"use strict";var o,r={},i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}();function l(t,e){for(var n=[],o={},r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(l):n.push(o[a]={id:a,parts:[l]})}return n}function s(t,e){for(var n=0;n<t.length;n++){var o=t[n],i=r[o.id],a=0;if(i){for(i.refs++;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(v(o.parts[a],e))}else{for(var l=[];a<o.parts.length;a++)l.push(v(o.parts[a],e));r[o.id]={id:o.id,refs:1,parts:l}}}}function c(t){var e=document.createElement("style");if(void 0===t.attributes.nonce){var o=n.nc;o&&(t.attributes.nonce=o)}if(Object.keys(t.attributes).forEach((function(n){e.setAttribute(n,t.attributes[n])})),"function"==typeof t.insert)t.insert(e);else{var r=a(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}return e}var u,f=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=f(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function p(t,e,n){var o=n.css,r=n.media,i=n.sourceMap;if(r&&t.setAttribute("media",r),i&&btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var h=null,m=0;function v(t,e){var n,o,r;if(e.singleton){var i=m++;n=h||(h=c(e)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=c(e),o=p.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).attributes="object"==typeof e.attributes?e.attributes:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=l(t,e);return s(n,e),function(t){for(var o=[],i=0;i<n.length;i++){var a=n[i],c=r[a.id];c&&(c.refs--,o.push(c))}t&&s(l(t,e),e);for(var u=0;u<o.length;u++){var f=o[u];if(0===f.refs){for(var d=0;d<f.parts.length;d++)f.parts[d]();delete r[f.id]}}}}},function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(3),l=r(n(1)),s=n(2);a.Litepicker.prototype.show=function(t){void 0===t&&(t=null);var e=t||this.options.element;if(this.triggerElement=e,this.options.inlineMode)return this.picker.style.position="static",this.picker.style.display="inline-block",this.picker.style.top=null,this.picker.style.left=null,this.picker.style.bottom=null,void(this.picker.style.right=null);if(this.options.scrollToDate)if(!this.options.startDate||t&&t!==this.options.element){if(t&&this.options.endDate&&t===this.options.elementEnd){var n=this.options.endDate.clone();n.setDate(1),this.options.numberOfMonths>1&&n.setMonth(n.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=n.clone()}}else{var o=this.options.startDate.clone();o.setDate(1),this.calendars[0]=o.clone()}if(this.options.mobileFriendly&&s.isMobile()){this.picker.style.position="fixed",this.picker.style.display="block","portrait"===s.getOrientation()?(this.options.numberOfMonths=1,this.options.numberOfColumns=1):(this.options.numberOfMonths=2,this.options.numberOfColumns=2),this.render();var r=this.picker.getBoundingClientRect();return this.picker.style.top="calc(50% - "+r.height/2+"px)",this.picker.style.left="calc(50% - "+r.width/2+"px)",this.picker.style.right=null,this.picker.style.bottom=null,this.picker.style.zIndex=this.options.zIndex,this.backdrop.style.display="block",this.backdrop.style.zIndex=this.options.zIndex-1,document.body.classList.add(l.litepickerOpen),"function"==typeof this.options.onShow&&this.options.onShow.call(this),void(t?t.blur():this.options.element.blur())}this.render(),this.picker.style.position="absolute",this.picker.style.display="block",this.picker.style.zIndex=this.options.zIndex;var i=e.getBoundingClientRect(),a=this.picker.getBoundingClientRect(),c=i.bottom,u=i.left,f=0,d=0,p=0,h=0;if(this.options.parentEl){var m=this.picker.parentNode.getBoundingClientRect();c-=m.bottom,(c+=i.height)+a.height>window.innerHeight&&i.top-m.top-i.height>0&&(p=i.top-m.top-i.height),(u-=m.left)+a.width>window.innerWidth&&i.right-m.right-a.width>0&&(h=i.right-m.right-a.width)}else f=window.scrollX||window.pageXOffset,d=window.scrollY||window.pageYOffset,c+a.height>window.innerHeight&&i.top-a.height>0&&(p=i.top-a.height),u+a.width>window.innerWidth&&i.right-a.width>0&&(h=i.right-a.width);this.picker.style.top=(p||c)+d+"px",this.picker.style.left=(h||u)+f+"px",this.picker.style.right=null,this.picker.style.bottom=null,"function"==typeof this.options.onShow&&this.options.onShow.call(this)},a.Litepicker.prototype.hide=function(){this.isShowning()&&(this.datePicked.length=0,this.updateInput(),this.options.inlineMode?this.render():(this.picker.style.display="none","function"==typeof this.options.onHide&&this.options.onHide.call(this),this.options.mobileFriendly&&(document.body.classList.remove(l.litepickerOpen),this.backdrop.style.display="none")))},a.Litepicker.prototype.getDate=function(){return this.getStartDate()},a.Litepicker.prototype.getStartDate=function(){return this.options.startDate?this.options.startDate.clone().getDateInstance():null},a.Litepicker.prototype.getEndDate=function(){return this.options.endDate?this.options.endDate.clone().getDateInstance():null},a.Litepicker.prototype.setDate=function(t){this.setStartDate(t),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.getDate())},a.Litepicker.prototype.setStartDate=function(t){t&&(this.options.startDate=new i.DateTime(t,this.options.format,this.options.lang),this.updateInput())},a.Litepicker.prototype.setEndDate=function(t){t&&(this.options.endDate=new i.DateTime(t,this.options.format,this.options.lang),this.options.startDate.getTime()>this.options.endDate.getTime()&&(this.options.endDate=this.options.startDate.clone(),this.options.startDate=new i.DateTime(t,this.options.format,this.options.lang)),this.updateInput())},a.Litepicker.prototype.setDateRange=function(t,e){this.triggerElement=void 0,this.setStartDate(t),this.setEndDate(e),this.updateInput(),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.getStartDate(),this.getEndDate())},a.Litepicker.prototype.gotoDate=function(t,e){void 0===e&&(e=0);var n=new i.DateTime(t);n.setDate(1),this.calendars[e]=n.clone(),this.render()},a.Litepicker.prototype.setLockDays=function(t){this.options.lockDays=i.DateTime.convertArray(t,this.options.lockDaysFormat),this.render()},a.Litepicker.prototype.setBookedDays=function(t){this.options.bookedDays=i.DateTime.convertArray(t,this.options.bookedDaysFormat),this.render()},a.Litepicker.prototype.setHighlightedDays=function(t){this.options.highlightedDays=i.DateTime.convertArray(t,this.options.highlightedDaysFormat),this.render()},a.Litepicker.prototype.setOptions=function(t){delete t.element,delete t.elementEnd,delete t.parentEl,t.startDate&&(t.startDate=new i.DateTime(t.startDate,this.options.format,this.options.lang)),t.endDate&&(t.endDate=new i.DateTime(t.endDate,this.options.format,this.options.lang));var e=o(o({},this.options.dropdowns),t.dropdowns),n=o(o({},this.options.buttonText),t.buttonText),r=o(o({},this.options.tooltipText),t.tooltipText);this.options=o(o({},this.options),t),this.options.dropdowns=o({},e),this.options.buttonText=o({},n),this.options.tooltipText=o({},r),!this.options.singleMode||this.options.startDate instanceof i.DateTime||(this.options.startDate=null,this.options.endDate=null),this.options.singleMode||this.options.startDate instanceof i.DateTime&&this.options.endDate instanceof i.DateTime||(this.options.startDate=null,this.options.endDate=null);for(var a=0;a<this.options.numberOfMonths;a+=1){var l=this.options.startDate?this.options.startDate.clone():new i.DateTime;l.setDate(1),l.setMonth(l.getMonth()+a),this.calendars[a]=l}this.options.lockDays.length&&(this.options.lockDays=i.DateTime.convertArray(this.options.lockDays,this.options.lockDaysFormat)),this.options.bookedDays.length&&(this.options.bookedDays=i.DateTime.convertArray(this.options.bookedDays,this.options.bookedDaysFormat)),this.options.highlightedDays.length&&(this.options.highlightedDays=i.DateTime.convertArray(this.options.highlightedDays,this.options.highlightedDaysFormat)),this.render(),this.options.inlineMode&&this.show(),this.updateInput()},a.Litepicker.prototype.clearSelection=function(){this.options.startDate=null,this.options.endDate=null,this.datePicked.length=0,this.updateInput(),this.isShowning()&&this.render()},a.Litepicker.prototype.destroy=function(){this.picker&&this.picker.parentNode&&(this.picker.parentNode.removeChild(this.picker),this.picker=null),this.backdrop&&this.backdrop.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}]).Litepicker}))},"53e2":function(t,e,n){var o=n("07e3"),r=n("241e"),i=n("5559")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},5402:function(t,e,n){"use strict";var o=n("00ce"),r=n("545e"),i=n("2714"),a=o("%TypeError%"),l=o("%WeakMap%",!0),s=o("%Map%",!0),c=r("WeakMap.prototype.get",!0),u=r("WeakMap.prototype.set",!0),f=r("WeakMap.prototype.has",!0),d=r("Map.prototype.get",!0),p=r("Map.prototype.set",!0),h=r("Map.prototype.has",!0),m=function(t,e){for(var n,o=t;null!==(n=o.next);o=n)if(n.key===e)return o.next=n.next,n.next=t.next,t.next=n,n},v=function(t,e){var n=m(t,e);return n&&n.value},y=function(t,e,n){var o=m(t,e);o?o.value=n:t.next={key:e,next:t.next,value:n}},g=function(t,e){return!!m(t,e)};t.exports=function(){var t,e,n,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+i(t))},get:function(o){if(l&&o&&("object"===typeof o||"function"===typeof o)){if(t)return c(t,o)}else if(s){if(e)return d(e,o)}else if(n)return v(n,o)},has:function(o){if(l&&o&&("object"===typeof o||"function"===typeof o)){if(t)return f(t,o)}else if(s){if(e)return h(e,o)}else if(n)return g(n,o);return!1},set:function(o,r){l&&o&&("object"===typeof o||"function"===typeof o)?(t||(t=new l),u(t,o,r)):s?(e||(e=new s),p(e,o,r)):(n||(n={key:{},next:null}),y(n,o,r))}};return o}},"545e":function(t,e,n){"use strict";var o=n("00ce"),r=n("3eb1"),i=r(o("String.prototype.indexOf"));t.exports=function(t,e){var n=o(t,!!e);return"function"===typeof n&&i(t,".prototype.")>-1?r(n):n}},"549b":function(t,e,n){"use strict";var o=n("d864"),r=n("63b6"),i=n("241e"),a=n("b0dc"),l=n("3702"),s=n("b447"),c=n("20fd"),u=n("7cd6");r(r.S+r.F*!n("4ee1")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,f,d=i(t),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,y=0,g=u(d);if(v&&(m=o(m,h>2?arguments[2]:void 0,2)),void 0==g||p==Array&&l(g))for(e=s(d.length),n=new p(e);e>y;y++)c(n,y,v?m(d[y],y):d[y]);else for(f=g.call(d),n=new p;!(r=f.next()).done;y++)c(n,y,v?a(f,m,[r.value,y],!0):r.value);return n.length=y,n}})},"551c":function(t,e,n){"use strict";var o,r,i,a,l=n("2d00"),s=n("7726"),c=n("9b43"),u=n("23c6"),f=n("5ca1"),d=n("d3f4"),p=n("d8e8"),h=n("f605"),m=n("4a59"),v=n("ebd6"),y=n("1991").set,g=n("8079")(),b=n("a5b8"),_=n("9c80"),w=n("a25f"),O=n("bcaa"),x="Promise",E=s.TypeError,k=s.process,C=k&&k.versions,S=C&&C.v8||"",q=s[x],D="process"==u(k),T=function(){},R=r=b.f,A=!!function(){try{var t=q.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(T,T)};return(D||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==S.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(o){}}(),M=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){var o=t._v,r=1==t._s,i=0,a=function(e){var n,i,a,l=r?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{l?(r||(2==t._h&&L(t),t._h=1),!0===l?n=o:(u&&u.enter(),n=l(o),u&&(u.exit(),a=!0)),n===e.promise?c(E("Promise-chain cycle")):(i=M(n))?i.call(n,s,c):s(n)):c(o)}catch(f){u&&!a&&u.exit(),c(f)}};while(n.length>i)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)}))}},N=function(t){y.call(s,(function(){var e,n,o,r=t._v,i=j(t);if(i&&(e=_((function(){D?k.emit("unhandledRejection",r,t):(n=s.onunhandledrejection)?n({promise:t,reason:r}):(o=s.console)&&o.error&&o.error("Unhandled promise rejection",r)})),t._h=D||j(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){y.call(s,(function(){var e;D?k.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})}))},I=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=M(t))?g((function(){var o={_w:n,_d:!1};try{e.call(t,c(F,o,1),c(I,o,1))}catch(r){I.call(o,r)}})):(n._v=t,n._s=1,P(n,!1))}catch(o){I.call({_w:n,_d:!1},o)}}};A||(q=function(t){h(this,q,x,"_h"),p(t),o.call(this);try{t(c(F,this,1),c(I,this,1))}catch(e){I.call(this,e)}},o=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=n("dcbc")(q.prototype,{then:function(t,e){var n=R(v(this,q));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=D?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new o;this.promise=t,this.resolve=c(F,t,1),this.reject=c(I,t,1)},b.f=R=function(t){return t===q||t===a?new i(t):r(t)}),f(f.G+f.W+f.F*!A,{Promise:q}),n("7f20")(q,x),n("7a56")(x),a=n("8378")[x],f(f.S+f.F*!A,x,{reject:function(t){var e=R(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(l||!A),x,{resolve:function(t){return O(l&&this===a?q:this,t)}}),f(f.S+f.F*!(A&&n("5cc5")((function(t){q.all(t)["catch"](T)}))),x,{all:function(t){var e=this,n=R(e),o=n.resolve,r=n.reject,i=_((function(){var n=[],i=0,a=1;m(t,!1,(function(t){var l=i++,s=!1;n.push(void 0),a++,e.resolve(t).then((function(t){s||(s=!0,n[l]=t,--a||o(n))}),r)})),--a||o(n)}));return i.e&&r(i.v),n.promise},race:function(t){var e=this,n=R(e),o=n.reject,r=_((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,o)}))}));return r.e&&o(r.v),n.promise}})},5537:function(t,e,n){var o=n("8378"),r=n("7726"),i="__core-js_shared__",a=r[i]||(r[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var o=n("dbdb")("keys"),r=n("62a0");t.exports=function(t){return o[t]||(o[t]=r(t))}},"55b2":function(t,e,n){"use strict";var o=String.prototype.valueOf,r=function(t){try{return o.call(t),!0}catch(e){return!1}},i=Object.prototype.toString,a="[object String]",l=n("07a4")();t.exports=function(t){return"string"===typeof t||"object"===typeof t&&(l?r(t):i.call(t)===a)}},"55dd":function(t,e,n){"use strict";var o=n("5ca1"),r=n("d8e8"),i=n("4bf8"),a=n("79e5"),l=[].sort,s=[1,2,3];o(o.P+o.F*(a((function(){s.sort(void 0)}))||!a((function(){s.sort(null)}))||!n("2f21")(l)),"Array",{sort:function(t){return void 0===t?l.call(i(this)):l.call(i(this),r(t))}})},5708:function(t,e,n){"use strict";var o=Object,r=TypeError;t.exports=function(){if(null!=this&&this!==o(this))throw new r("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t}},"57ec":function(t,e,n){"use strict";var o=n("5708"),r=n("f367").supportsDescriptors,i=Object.getOwnPropertyDescriptor;t.exports=function(){if(r&&"gim"===/a/gim.flags){var t=i(RegExp.prototype,"flags");if(t&&"function"===typeof t.get&&"boolean"===typeof/a/.dotAll)return t.get}return o}},5834:function(t,e,n){"use strict";var o=n("d6ef");t.exports=function(){return"function"===typeof Object.is?Object.is:o}},"584a":function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5873:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return B}));var o=n("9339"),r=n.n(o),i=[[{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"]],a={props:{customModules:Array},methods:{registerCustomModules:function(t){void 0!==this.customModules&&this.customModules.forEach((function(e){t.register("modules/"+e.alias,e.module)}))}}};function l(t){return l="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},l(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(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&&p(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(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(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?h(t):e}function v(t,e){return y(t)||g(t,e)||b()}function y(t){if(Array.isArray(t))return t}function g(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{o||null==l["return"]||l["return"]()}finally{if(r)throw i}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _(t,e){var n=function(t){return t&&"object"===l(t)};return n(t)&&n(e)?(Object.keys(e).forEach((function(o){var r=t[o],i=e[o];Array.isArray(r)&&Array.isArray(i)?t[o]=r.concat(i):n(r)&&n(i)?t[o]=_(Object.assign({},r),i):t[o]=i})),t):e}var w=r.a.import("blots/block/embed"),O=function(t){function e(){return s(this,e),m(this,d(e).apply(this,arguments))}return f(e,t),e}(w);O.blotName="hr",O.tagName="hr",r.a.register("formats/horizontal",O);var x=function(){function t(e,n){var o=this;s(this,t),this.quill=e,this.options=n,this.ignoreTags=["PRE"],this.matches=[{name:"header",pattern:/^(#){1,6}\s/g,action:function(t,e,n){var r=n.exec(t);if(r){var i=r[0].length;setTimeout((function(){o.quill.formatLine(e.index,0,"header",i-1),o.quill.deleteText(e.index-i,i)}),0)}}},{name:"blockquote",pattern:/^(>)\s/g,action:function(t,e){setTimeout((function(){o.quill.formatLine(e.index,1,"blockquote",!0),o.quill.deleteText(e.index-2,2)}),0)}},{name:"code-block",pattern:/^`{3}(?:\s|\n)/g,action:function(t,e){setTimeout((function(){o.quill.formatLine(e.index,1,"code-block",!0),o.quill.deleteText(e.index-4,4)}),0)}},{name:"bolditalic",pattern:/(?:\*|_){3}(.+?)(?:\*|_){3}/g,action:function(t,e,n,r){var i=n.exec(t),a=i[0],l=i[1],s=r+i.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){o.quill.deleteText(s,a.length),o.quill.insertText(s,l,{bold:!0,italic:!0}),o.quill.format("bold",!1)}),0)}},{name:"bold",pattern:/(?:\*|_){2}(.+?)(?:\*|_){2}/g,action:function(t,e,n,r){var i=n.exec(t),a=i[0],l=i[1],s=r+i.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){o.quill.deleteText(s,a.length),o.quill.insertText(s,l,{bold:!0}),o.quill.format("bold",!1)}),0)}},{name:"italic",pattern:/(?:\*|_){1}(.+?)(?:\*|_){1}/g,action:function(t,e,n,r){var i=n.exec(t),a=i[0],l=i[1],s=r+i.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){o.quill.deleteText(s,a.length),o.quill.insertText(s,l,{italic:!0}),o.quill.format("italic",!1)}),0)}},{name:"strikethrough",pattern:/(?:~~)(.+?)(?:~~)/g,action:function(t,e,n,r){var i=n.exec(t),a=i[0],l=i[1],s=r+i.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){o.quill.deleteText(s,a.length),o.quill.insertText(s,l,{strike:!0}),o.quill.format("strike",!1)}),0)}},{name:"code",pattern:/(?:`)(.+?)(?:`)/g,action:function(t,e,n,r){var i=n.exec(t),a=i[0],l=i[1],s=r+i.index;t.match(/^([*_ \n]+)$/g)||setTimeout((function(){o.quill.deleteText(s,a.length),o.quill.insertText(s,l,{code:!0}),o.quill.format("code",!1),o.quill.insertText(o.quill.getSelection()," ")}),0)}},{name:"hr",pattern:/^([-*]\s?){3}/g,action:function(t,e){var n=e.index-t.length;setTimeout((function(){o.quill.deleteText(n,t.length),o.quill.insertEmbed(n+1,"hr",!0,r.a.sources.USER),o.quill.insertText(n+2,"\n",r.a.sources.SILENT),o.quill.setSelection(n+2,r.a.sources.SILENT)}),0)}},{name:"asterisk-ul",pattern:/^(\*|\+)\s$/g,action:function(t,e,n){setTimeout((function(){o.quill.formatLine(e.index,1,"list","unordered"),o.quill.deleteText(e.index-2,2)}),0)}},{name:"image",pattern:/(?:!\[(.+?)\])(?:\((.+?)\))/g,action:function(t,e,n){var r=t.search(n),i=t.match(n)[0],a=t.match(/(?:\((.*?)\))/g)[0],l=e.index-i.length-1;-1!==r&&setTimeout((function(){o.quill.deleteText(l,i.length),o.quill.insertEmbed(l,"image",a.slice(1,a.length-1))}),0)}},{name:"link",pattern:/(?:\[(.+?)\])(?:\((.+?)\))/g,action:function(t,e,n){var r=t.search(n),i=t.match(n)[0],a=t.match(/(?:\[(.*?)\])/g)[0],l=t.match(/(?:\((.*?)\))/g)[0],s=e.index-i.length-1;-1!==r&&setTimeout((function(){o.quill.deleteText(s,i.length),o.quill.insertText(s,a.slice(1,a.length-1),"link",l.slice(1,l.length-1))}),0)}}],this.quill.on("text-change",(function(t,e,n){for(var r=0;r<t.ops.length;r++)t.ops[r].hasOwnProperty("insert")&&(" "===t.ops[r].insert?o.onSpace():"\n"===t.ops[r].insert&&o.onEnter())}))}return u(t,[{key:"isValid",value:function(t,e){return"undefined"!==typeof t&&t&&-1===this.ignoreTags.indexOf(e)}},{key:"onSpace",value:function(){var t=this.quill.getSelection();if(t){var e=this.quill.getLine(t.index),n=v(e,2),o=n[0],r=n[1],i=o.domNode.textContent,a=t.index-r;if(this.isValid(i,o.domNode.tagName)){var l=!0,s=!1,c=void 0;try{for(var u,f=this.matches[Symbol.iterator]();!(l=(u=f.next()).done);l=!0){var d=u.value,p=i.match(d.pattern);if(p)return console.log("matched:",d.name,i),void d.action(i,t,d.pattern,a)}}catch(h){s=!0,c=h}finally{try{l||null==f.return||f.return()}finally{if(s)throw c}}}}}},{key:"onEnter",value:function(){var t=this.quill.getSelection();if(t){var e=this.quill.getLine(t.index),n=v(e,2),o=n[0],r=n[1],i=o.domNode.textContent+" ",a=t.index-r;if(t.length=t.index++,this.isValid(i,o.domNode.tagName)){var l=!0,s=!1,c=void 0;try{for(var u,f=this.matches[Symbol.iterator]();!(l=(u=f.next()).done);l=!0){var d=u.value,p=i.match(d.pattern);if(p)return console.log("matched",d.name,i),void d.action(i,t,d.pattern,a)}}catch(h){s=!0,c=h}finally{try{l||null==f.return||f.return()}finally{if(s)throw c}}}}}}]),t}(),E={name:"VueEditor",mixins:[a],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(t){t==this.quill.root.innerHTML||this.quill.hasFocus()||(this.quill.root.innerHTML=t)},disabled:function(t){this.quill.enable(!t)}},mounted:function(){this.registerCustomModules(r.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 t={debug:!1,modules:this.setModules(),theme:"snow",placeholder:this.placeholder?this.placeholder:"",readOnly:!!this.disabled&&this.disabled};this.prepareEditorConfig(t),this.quill=new r.a(this.$refs.quillContainer,t)},setModules:function(){var t={toolbar:this.editorToolbar.length?this.editorToolbar:i};return this.useMarkdownShortcuts&&(r.a.register("modules/markdownShortcuts",x,!0),t["markdownShortcuts"]={}),t},prepareEditorConfig:function(t){Object.keys(this.editorOptions).length>0&&this.editorOptions.constructor===Object&&(this.editorOptions.modules&&"undefined"!==typeof this.editorOptions.modules.toolbar&&delete t.modules.toolbar,_(t,this.editorOptions))},registerPrototypes:function(){r.a.prototype.getHTML=function(){return this.container.querySelector(".ql-editor").innerHTML},r.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(t){var e=this;this.quill.on(t,(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];e.$emit.apply(e,[t].concat(o))}))},handleInitialContent:function(){this.value&&(this.quill.root.innerHTML=this.value)},handleSelectionChange:function(t,e){!t&&e?this.$emit("blur",this.quill):t&&!e&&this.$emit("focus",this.quill)},handleTextChange:function(t,e){var n="<p><br></p>"===this.quill.getHTML()?"":this.quill.getHTML();this.$emit("input",n),this.useCustomImageHandler&&this.handleImageRemoved(t,e)},handleImageRemoved:function(t,e){var n=this,o=this.quill.getContents(),r=o.diff(e),i=r.ops;i.map((function(t){if(t.insert&&t.insert.hasOwnProperty("image")){var e=t.insert.image;n.$emit("image-removed",e)}}))},checkForCustomImageHandler:function(){!0===this.useCustomImageHandler&&this.setupCustomImageHandler()},setupCustomImageHandler:function(){var t=this.quill.getModule("toolbar");t.addHandler("image",this.customImageHandler)},customImageHandler:function(){this.$refs.fileInput.click()},emitImageInfo:function(t){var e=function(){var t=document.getElementById("file-upload");t.value=""},n=t.target.files[0],o=this.quill,r=o.getSelection(),i=r.index;this.$emit("image-added",n,o,i,e)}}};function k(t,e,n,o,r,i,a,l,s,c){"boolean"!==typeof a&&(s=l,l=a,a=!1);var u,f="function"===typeof n?n.options:n;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,r&&(f.functional=!0)),o&&(f._scopeId=o),i?(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__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=u):e&&(u=a?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),u)if(f.functional){var d=f.render;f.render=function(t,e){return u.call(e),d(t,e)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,u):[u]}return n}var C,S=k,q="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function D(t){return function(t,e){return R(t,e)}}var T={};function R(t,e){var n=q?e.media||"default":t,o=T[n]||(T[n]={ids:new Set,styles:[]});if(!o.ids.has(t)){o.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",e.media&&o.element.setAttribute("media",e.media),void 0===C&&(C=document.head||document.getElementsByTagName("head")[0]),C.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(r),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{var i=o.ids.size-1,a=document.createTextNode(r),l=o.element.childNodes;l[i]&&o.element.removeChild(l[i]),l.length?o.element.insertBefore(a,l[i]):o.element.appendChild(a)}}}var A=D;const M=E;var P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quillWrapper"},[t._t("toolbar"),t._v(" "),n("div",{ref:"quillContainer",attrs:{id:t.id}}),t._v(" "),t.useCustomImageHandler?n("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{id:"file-upload",type:"file",accept:"image/*"},on:{change:function(e){return t.emitImageInfo(e)}}}):t._e()],2)},N=[];const j=function(t){t&&(t("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}),t("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}))},L=void 0,I=void 0,F=!1;var B=S({render:P,staticRenderFns:N},j,M,L,F,I,A,void 0),U="2.10.3";function $(t){$.installed||($.installed=!0,t.component("VueEditor",B))}var V={install:$,version:U,Quill:r.a,VueEditor:B},H=null;"undefined"!==typeof window?H=window.Vue:"undefined"!==typeof t&&(H=t.Vue),H&&H.use(V)}).call(this,n("c8ba"))},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",f="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,n){var o=String(t);return!o||o.length>=e?t:""+Array(e+1-o.length).join(n)+t},g={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),o=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+y(o,2,"0")+":"+y(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var o=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(o,c),i=n-r<0,a=e.clone().add(o+(i?-1:1),c);return+(-(o+(n-r)/(i?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:f,w:s,d:l,D:d,h:a,m:i,s:r,ms:o,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",_={};_[b]=v;var w=function(t){return t instanceof k},O=function(t,e,n){var o;if(!t)return b;if("string"==typeof t)_[t]&&(o=t),e&&(_[t]=e,o=t);else{var r=t.name;_[r]=t,o=r}return!n&&o&&(b=o),o||!n&&b},x=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},E=g;E.l=O,E.i=w,E.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function v(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=v.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var o=e.match(h);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var n=x(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return x(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<x(t)},y.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,o=!!E.u(e)||e,u=E.p(t),p=function(t,e){var r=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return o?r:r.endOf(l)},h=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,v=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(u){case f:return o?p(1,0):p(31,11);case c:return o?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(o?y-_:y+(6-_),v);case l:case d:return h(g+"Hours",0);case a:return h(g+"Minutes",1);case i:return h(g+"Seconds",2);case r:return h(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,s=E.p(t),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[d]=u+"Date",n[c]=u+"Month",n[f]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[r]=u+"Seconds",n[o]=u+"Milliseconds",n)[s],h=s===l?this.$D+(e-this.$W):e;if(s===c||s===f){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[E.p(t)]()},y.add=function(o,u){var d,p=this;o=Number(o);var h=E.p(u),m=function(t){var e=x(p);return E.w(e.date(e.date()+Math.round(t*o)),p)};if(h===c)return this.set(c,this.$M+o);if(h===f)return this.set(f,this.$y+o);if(h===l)return m(1);if(h===s)return m(7);var v=(d={},d[i]=e,d[a]=n,d[r]=t,d)[h]||1,y=this.$d.getTime()+o*v;return E.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var o=t||"YYYY-MM-DDTHH:mm:ssZ",r=E.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,c=n.months,u=function(t,n,r,i){return t&&(t[n]||t(e,o))||r[n].substr(0,i)},f=function(t){return E.s(i%12||12,t,"0")},d=n.meridiem||function(t,e,n){var o=t<12?"AM":"PM";return n?o.toLowerCase():o},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:E.s(l+1,2,"0"),MMM:u(n.monthsShort,l,c,3),MMMM:u(c,l),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,s,2),ddd:u(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:E.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:E.s(a,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:r};return o.replace(m,(function(t,e){return e||h[t]||r.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(o,d,p){var h,m=E.p(d),v=x(o),y=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=E.m(this,v);return b=(h={},h[f]=b/12,h[c]=b,h[u]=b/3,h[s]=(g-y)/6048e5,h[l]=(g-y)/864e5,h[a]=g/n,h[i]=g/e,h[r]=g/t,h)[m]||g,p?b:E.a(b)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return _[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),o=O(t,e,!0);return o&&(n.$L=o),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),C=k.prototype;return x.prototype=C,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",l],["$M",c],["$y",f],["$D",d]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,k,x),t.$i=!0),x},x.locale=O,x.isDayjs=w,x.unix=function(t){return x(1e3*t)},x.en=_[b],x.Ls=_,x.p={},x}))},"5b4e":function(t,e,n){var o=n("36c3"),r=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,a){var l,s=o(e),c=r(s.length),u=i(a,c);if(t&&n!=n){while(c>u)if(l=s[u++],l!=l)return!0}else for(;c>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var o=n("7726"),r=n("8378"),i=n("32e9"),a=n("2aba"),l=n("9b43"),s="prototype",c=function(t,e,n){var u,f,d,p,h=t&c.F,m=t&c.G,v=t&c.S,y=t&c.P,g=t&c.B,b=m?o:v?o[e]||(o[e]={}):(o[e]||{})[s],_=m?r:r[e]||(r[e]={}),w=_[s]||(_[s]={});for(u in m&&(n=e),n)f=!h&&b&&void 0!==b[u],d=(f?b:n)[u],p=g&&f?l(d,o):y&&"function"==typeof d?l(Function.call,d):d,b&&a(b,u,d,t&c.U),_[u]!=d&&i(_,u,p),y&&w[u]!=d&&(w[u]=d)};o.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var o=n("2b4c")("iterator"),r=!1;try{var i=[7][o]();i["return"]=function(){r=!0},Array.from(i,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i=[7],l=i[o]();l.next=function(){return{done:n=!0}},i[o]=function(){return l},t(i)}catch(a){}return n}},"5d58":function(t,e,n){t.exports=n("d8d6")},"5df3":function(t,e,n){"use strict";var o=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=o(e,n),this._i+=t.length,{value:t,done:!1})}))},"5eda":function(t,e,n){var o=n("5ca1"),r=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),o(o.S+o.F*i((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){"use strict";var o=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var i=n.call(t,e);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var o=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return o[t]||(o[t]=r(t))}},"626a":function(t,e,n){var o=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},"63b6":function(t,e,n){var o=n("e53d"),r=n("584a"),i=n("d864"),a=n("35e8"),l=n("07e3"),s="prototype",c=function(t,e,n){var u,f,d,p=t&c.F,h=t&c.G,m=t&c.S,v=t&c.P,y=t&c.B,g=t&c.W,b=h?r:r[e]||(r[e]={}),_=b[s],w=h?o:m?o[e]:(o[e]||{})[s];for(u in h&&(n=e),n)f=!p&&w&&void 0!==w[u],f&&l(b,u)||(d=f?w[u]:n[u],b[u]=h&&"function"!=typeof w[u]?n[u]:y&&f?i(d,o):g&&w[u]==d?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e[s]=t[s],e}(d):v&&"function"==typeof d?i(Function.call,d):d,v&&((b.virtual||(b.virtual={}))[u]=d,t&c.R&&_&&!_[u]&&a(_,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"653e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("7f7f");var o=n("28fe"),r="change",i={mixins:[o["a"]],props:{control:{type:Object,required:!0},valueContainer:{type:Object,defaultValue:null},value:null,readonly:{type:Boolean,default:!1}},data:function(){return{stopDefaultValueAssign:!1}},model:{event:r,props:"value"},watch:{value:function(t){this.setValue(t)}},methods:{updateValue:function(t){this.$emit(r,t)},setValue:function(t){return t}},computed:{controlFieldClass:function(){return[this.styles.FORM.FORM_CONTROL,this.control.additionalFieldClass]},controlName:function(){return this.control.name||this.control.uniqueId}},mounted:function(){!1===this.stopDefaultValueAssign&&!this.value&&this.control.defaultValue&&this.updateValue(this.control.defaultValue)}}},6718:function(t,e,n){var o=n("e53d"),r=n("584a"),i=n("b8e3"),a=n("ccb9"),l=n("d9f6").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:a.f(t)})}},6762:function(t,e,n){"use strict";var o=n("5ca1"),r=n("c366")(!0);o(o.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(t,e,n){var o=n("ca5a")("meta"),r=n("d3f4"),i=n("69a8"),a=n("86cc").f,l=0,s=Object.isExtensible||function(){return!0},c=!n("79e5")((function(){return s(Object.preventExtensions({}))})),u=function(t){a(t,o,{value:{i:"O"+ ++l,w:{}}})},f=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,o)){if(!s(t))return"F";if(!e)return"E";u(t)}return t[o].i},d=function(t,e){if(!i(t,o)){if(!s(t))return!0;if(!e)return!1;u(t)}return t[o].w},p=function(t){return c&&h.NEED&&s(t)&&!i(t,o)&&u(t),t},h=t.exports={KEY:o,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},"67bb":function(t,e,n){t.exports=n("f921")},6821:function(t,e,n){var o=n("626a"),r=n("be13");t.exports=function(t){return o(r(t))}},"688e":function(t,e,n){"use strict";var o="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,i=Object.prototype.toString,a="[object Function]";t.exports=function(t){var e=this;if("function"!==typeof e||i.call(e)!==a)throw new TypeError(o+e);for(var n,l=r.call(arguments,1),s=function(){if(this instanceof n){var o=e.apply(this,l.concat(r.call(arguments)));return Object(o)===o?o:this}return e.apply(t,l.concat(r.call(arguments)))},c=Math.max(0,e.length-l.length),u=[],f=0;f<c;f++)u.push("$"+f);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var d=function(){};d.prototype=e.prototype,n.prototype=new d,d.prototype=null}return n}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6a29":function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:[t.styles.CONTAINER.FLUID,"form-padding","vue-form-builder"]},[n("FormConfiguration",{model:{value:t.formData.formConfig,callback:function(e){t.$set(t.formData,"formConfig",e)},expression:"formData.formConfig"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.formData.formConfig.isShowHeadline,expression:"formData.formConfig.isShowHeadline"}],staticClass:"form-headline-container"},[n("h1",{domProps:{textContent:t._s(t.formData.formConfig.headline)}}),n("p",{domProps:{textContent:t._s(t.formData.formConfig.subHeadline)}})]),t._l(t.sortedSections,(function(e){return n("SectionContainer",{key:e.uniqueId,attrs:{section:e,rows:t.formData.rows,controls:t.formData.controls}})})),n("AddSectionControl",{on:{addSectionNotify:t.addSection}}),n("add-formula",{on:{addFormula:t.addFormula}}),n("GlobalSidebar",{attrs:{formData:t.formData}}),n("hr"),n("p",{staticClass:"copyright-text",domProps:{textContent:t._s(t.copyrightText)}})],2)},r=[],i=n("7618"),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add-section-container",class:t.styles.COLUMNS.COL12,on:{click:t.showOption}},[n("p",[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("addOutline","32px","32px","#000"))}}),n("span",[t._v("Add Section")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],class:[t.styles.LIST_GROUP.CONTAINER,"add-container-list"]},t._l(t.sectionTypes,(function(e,o){return n("a",{class:t.styles.LIST_GROUP.SINGLE_ITEM,attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.addNew(o)}}},[n("p",{staticClass:"type-headline",domProps:{textContent:t._s(e.name)}}),n("p",{staticClass:"type-desc",domProps:{textContent:t._s(e.description)}})])})),0)])},l=[],s=(n("d60e"),n("dd3c")),c=n("28fe"),u={name:"AddSectionControl",mixins:[c["a"]],data:function(){return{show:!1,sectionTypes:s["b"]}},methods:{showOption:function(){this.show=!this.show},addNew:function(t){this.$emit("addSectionNotify",t)}}},f=u,d=n("2877"),p=Object(d["a"])(f,a,l,!1,null,null,null),h=p.exports,m={COPYRIGHT:"FORMS V2.0.0"},v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section-container",class:{active:t.isDoingConfiguration}},[n("SectionNavigationBar",{attrs:{section:t.section},on:{active:t.setActive}}),n(t.sectionViewComponent,{key:t.section.uniqueId,tag:"component",attrs:{section:t.section,rows:t.rows,controls:t.controls}})],1)},y=[],g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section-config"},[n("div",{staticClass:"buttons"},[n("button",{class:t.styles.BUTTON.PRIMARY,attrs:{title:"Push Up"},domProps:{innerHTML:t._s(t.$form.getIcon("arrowUp"))},on:{click:t.pushUp}}),n("button",{class:t.styles.BUTTON.SECONDARY,attrs:{title:"Push Down"},domProps:{innerHTML:t._s(t.$form.getIcon("arrowDown"))},on:{click:t.pushDown}}),n("button",{class:t.styles.BUTTON.INFO,on:{click:t.openConfiguration}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("cog"))}}),n("span",[t._v("Configuration")])]),n("button",{class:t.styles.BUTTON.DANGER,on:{click:t.deleteSection}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("trash"))}}),n("span",[t._v("Delete")])])])])},b=[],_=(n("f751"),n("fbe6")),w={methods:{pushUp:function(){this.$formEvent.$emit(_["a"].BUILDER.SECTION.PUSH,this.section,0)},pushDown:function(){this.$formEvent.$emit(_["a"].BUILDER.SECTION.PUSH,this.section,1)}}},O=n("1ec8"),x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-form-configuration"},[n("h5",[t._v("Section Configuration")]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Headline")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.headline,expression:"sectionConfiguration.headline"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.sectionConfiguration.headline},on:{input:function(e){e.target.composing||t.$set(t.sectionConfiguration,"headline",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Headline Additional Class (CSS)")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.headlineAdditionalClass,expression:"sectionConfiguration.headlineAdditionalClass"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.sectionConfiguration.headlineAdditionalClass},on:{input:function(e){e.target.composing||t.$set(t.sectionConfiguration,"headlineAdditionalClass",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Sub-Headline")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.subHeadline,expression:"sectionConfiguration.subHeadline"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.sectionConfiguration.subHeadline},on:{input:function(e){e.target.composing||t.$set(t.sectionConfiguration,"subHeadline",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Sub-Headline Additional Class (CSS)")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.subHeadlineAdditionalClass,expression:"sectionConfiguration.subHeadlineAdditionalClass"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.sectionConfiguration.subHeadlineAdditionalClass},on:{input:function(e){e.target.composing||t.$set(t.sectionConfiguration,"subHeadlineAdditionalClass",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Show Section Headline? "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.isShowHeadline,expression:"sectionConfiguration.isShowHeadline"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.sectionConfiguration.isShowHeadline)?t._i(t.sectionConfiguration.isShowHeadline,null)>-1:t.sectionConfiguration.isShowHeadline},on:{change:function(e){var n=t.sectionConfiguration.isShowHeadline,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.sectionConfiguration,"isShowHeadline",n.concat([i])):a>-1&&t.$set(t.sectionConfiguration,"isShowHeadline",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.sectionConfiguration,"isShowHeadline",r)}}})])]),n("hr"),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Show Graph "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.showGraph,expression:"sectionConfiguration.showGraph"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.sectionConfiguration.showGraph)?t._i(t.sectionConfiguration.showGraph,null)>-1:t.sectionConfiguration.showGraph},on:{change:function(e){var n=t.sectionConfiguration.showGraph,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.sectionConfiguration,"showGraph",n.concat([i])):a>-1&&t.$set(t.sectionConfiguration,"showGraph",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.sectionConfiguration,"showGraph",r)}}})])]),t.sectionConfiguration.showGraph?n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" X - Axis")]),n("b-form-select",{class:t.controlFieldClass,model:{value:t.formData.xAxisField,callback:function(e){t.$set(t.formData,"xAxisField",e)},expression:"formData.xAxisField"}},t._l(t.sectionConfiguration.controls,(function(e){return n("b-form-select-option",{key:e,attrs:{value:e,selected:t.value===e},domProps:{textContent:t._s(e)}})})),1)],1):t._e(),t.sectionConfiguration.showGraph?n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Select y axis Fields For Graph ")]),n("select",{class:t.controlFieldClass,on:{input:function(e){return t.updateValue2(e.target.value)}}},t._l(t.sectionConfiguration.controls,(function(e){return n("option",{key:e,domProps:{value:e,selected:t.value===e,textContent:t._s(e)}})})),0)]):t._e(),t.sectionConfiguration.showGraph?n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Field To plotted on Graph")]),n("textarea",{class:t.styles.FORM.FORM_CONTROL,attrs:{placeholder:"Add you Graph Fields",rows:"6"},domProps:{value:t.sectionConfiguration.graphFields}})]):t._e(),n("hr"),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Reference Table")]),n("div",{ref:"doctype",staticClass:"ref-field-input"})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Select Formula Controls ")]),n("select",{class:t.controlFieldClass,on:{input:function(e){return t.updateValue(e.target.value)}}},t._l(t.sectionConfiguration.controls,(function(e){return n("option",{key:e,domProps:{value:e,selected:t.value===e,textContent:t._s(e)}})})),0)]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Child Table Reference")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.tableReference,expression:"sectionConfiguration.tableReference"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Write child references"},domProps:{value:t.sectionConfiguration.tableReference},on:{input:function(e){e.target.composing||t.$set(t.sectionConfiguration,"tableReference",e.target.value)}}})]),n("hr"),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Evaluation visibility")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.condition,expression:"sectionConfiguration.condition"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Write your formula here",rows:"6"},domProps:{value:t.sectionConfiguration.condition},on:{input:function(e){e.target.composing||t.$set(t.sectionConfiguration,"condition",e.target.value)}}})]),n("hr"),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Calculated Fields")]),n("div",{ref:"doctypex",staticClass:"ref-field-input"}),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.sectionConfiguration.calculatedFields,expression:"sectionConfiguration.calculatedFields"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Calculated Fields",rows:"6"},domProps:{value:t.sectionConfiguration.calculatedFields},on:{input:function(e){e.target.composing||t.$set(t.sectionConfiguration,"calculatedFields",e.target.value)}}})]),n("hr"),t._v(" "+t._s(t.sectionConfiguration.sectionFormula)+" "),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",{staticStyle:{"margin-right":"15px"}},[t._v("Table Formula")]),n("button",{class:t.styles.BUTTON.PRIMARY,on:{click:function(e){return t.addTableFormula()}}},[t._v("Add Formula")])]),t.currentFormula.length?n("div",t._l(t.currentFormula,(function(e,o){return n("div",{key:o,class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Output Field Name "+t._s(o+1))]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentFormula[o].outputField,expression:"currentFormula[index].outputField"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Output Field label"},domProps:{value:t.currentFormula[o].outputField},on:{input:function(e){e.target.composing||t.$set(t.currentFormula[o],"outputField",e.target.value)}}}),n("label",[t._v("Formula "+t._s(o+1))]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentFormula[o].formula,expression:"currentFormula[index].formula"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Write your formula here",rows:"6"},domProps:{value:t.currentFormula[o].formula},on:{input:function(e){e.target.composing||t.$set(t.currentFormula[o],"formula",e.target.value)}}}),t._v(" "),n("br"),n("button",{staticClass:"padding-top: 15px;",class:t.styles.BUTTON.PRIMARY,on:{click:function(e){return t.saveFormula(o,t.currentFormula[o])}}},[t._v("Save")]),n("hr")])})),0):t._e(),n("div",{staticClass:"buttons"},[n("button",{class:t.styles.BUTTON.PRIMARY,on:{click:function(e){return t.save(!1)}}},[t._v(" Save ")]),n("button",{class:t.styles.BUTTON.INFO,on:{click:function(e){return t.save(!0)}}},[t._v(" Save & Close ")])])])},E=[],k=(n("7514"),n("cbce")),C={name:"SidebarSectionConfiguration",mixins:[c["a"],k["a"]],data:function(){return{dataKey:"sectionConfiguration",sectionConfiguration:Object.assign({},s["a"]),currentFormula:[]}},created:function(){this.sectionConfiguration=Object.assign({},this.sectionConfiguration,this.dataPackage),this.sectionConfiguration.sectionFormula&&(this.currentFormula=this.sectionConfiguration.sectionFormula)},mounted:function(){window.frappe&&(this.makeSelectDoctypeControl(),this.makeSelectDoctypeControl2())},methods:{updateValue2:function(t){var e=this.sectionConfiguration.graphFields||"";e+=e.length?",".concat(t):"".concat(t),this.$set(this.sectionConfiguration,"graphFields",e),this.$set(this.formData,"graphFields",e)},updateValue:function(t){var e=this.sectionConfiguration.condition+" "+"[".concat(t,"] ");this.$set(this.sectionConfiguration,"condition",e)},makeSelectDoctypeControl:function(){var t=this,e=frappe.ui.form.make_control({df:{label:__("Reference"),fieldtype:"Link",fieldname:"reference",options:"Form Design",placeholder:"Options",onchange:function(){this.value&&(t.sectionConfiguration.referenceTable=this.value)}},parent:this.$refs["doctype"],render_input:!0});e.toggle_label(!1),e.$input.val(t.sectionConfiguration.referenceTable),$("#modal-body").find(".input-max-width").removeClass("input-max-width")},makeSelectDoctypeControl2:function(){var t=this,e=frappe.ui.form.make_control({df:{label:__("Reference"),fieldtype:"Link",fieldname:"reference",options:"Dictionary Concept",placeholder:"Options",onchange:function(){if(this.value)if(t.sectionConfiguration.calculatedFields){var e="".concat(t.sectionConfiguration.calculatedFields,",").concat(this.value);t.$set(t.sectionConfiguration,"calculatedFields",e)}else t.$set(t.sectionConfiguration,"calculatedFields",value)}},parent:this.$refs["doctypex"],render_input:!0});e.toggle_label(!1),$("#modal-body").find(".input-max-width").removeClass("input-max-width")},addTableFormula:function(){this.currentFormula.push({outputField:"",formula:""})},saveFormula:function(t,e){this.sectionConfiguration.sectionFormula?(this.sectionConfiguration.sectionFormula.push({}),this.$set(this.sectionConfiguration,"sectionFormula",this.sectionConfiguration.sectionFormula),this.sectionConfiguration.sectionFormula.push({})):this.$set(this.sectionConfiguration,"sectionFormula",[{}]),this.sectionConfiguration.sectionFormula[t]=e,this.$set(this.sectionConfiguration,"sectionFormula",this.sectionConfiguration.sectionFormula)}}},S=C,q=Object(d["a"])(S,x,E,!1,null,null,null),D=q.exports,T={name:"SectionNavigationBar",mixins:[w,c["a"]],props:{section:{type:Object,required:!0}},methods:{deleteSection:function(){this.section.rows.length>0&&!confirm("This section contains row(s). Are you sure? Everything is gone and can't be recovered after deleted.")||this.$formEvent.$emit(_["a"].BUILDER.SECTION.DELETE,this.section.uniqueId)},openConfiguration:function(){this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.OPEN,this.section.uniqueId)},configurationOpened:function(t){this.section.uniqueId===t&&(this.renderSidebar(),this.$emit("active",!0))},renderSidebar:function(){this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.INJECT,new O["a"](this.section.uniqueId,D,this.section))},saveConfiguration:function(t,e){if(t===this.section.uniqueId){var n=Object.assign({},this.section,e);this.$formEvent.$emit(_["a"].BUILDER.SECTION.UPDATE,n)}},saveAndClose:function(t,e){t===this.section.uniqueId&&this.saveConfiguration(t,e)},removeActive:function(){this.$emit("active",!1)}},created:function(){this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.SAVE,this.saveConfiguration),this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.SAVE_AND_CLOSE,this.saveAndClose),this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.AFTER_CLOSED,this.removeActive),this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.OPENED,this.configurationOpened)}},R=T,A=Object(d["a"])(R,g,b,!1,null,null,null),M=A.exports,P={name:"SectionContainer",components:{SectionNavigationBar:M},props:{section:Object,rows:Object,controls:Object,reference:Object},data:function(){return{isDoingConfiguration:!1}},methods:{setActive:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isDoingConfiguration=t}},computed:{sectionViewComponent:function(){return s["b"][this.section.type].builderView}}},N=P,j=Object(d["a"])(N,v,y,!1,null,"59957aae",null),L=j.exports,I=(n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("7f7f"),n("6b54"),n("20d6"),n("ac6a"),n("43b3"));function F(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=B(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function B(t,e){if(t){if("string"===typeof t)return U(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)?U(t,e):void 0}}function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var V,H={methods:{sectionAndRowMapping:function(t,e){this.formData.sections[t].rows.push(e)},sectionPushedUp:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(t.sortOrder<=1&&0===e||t.sortOrder===this.sortedSections.length&&1===e)){var n=t.sortOrder,o=0===e?n-1:n+1,r=I["a"].find(this.formData.sections,"sortOrder",o);this.$set(this.formData.sections[t.uniqueId],"sortOrder",o),this.$set(this.formData.sections[r.uniqueId],"sortOrder",n),this.doSortSection()}},sectionDelete:function(t){var e=this;if(this.formData.sections[t]){var n=this.formData.sections[t];n.rows.forEach((function(t){var n=e.formData.rows[t];n.controls.forEach((function(t){e.$delete(e.formData.controls,t)})),e.$delete(e.formData.rows,n.uniqueId)})),this.$delete(this.formData.sections,t),this.doSortSection();var o,r=1,i=F(this.sortedSections);try{for(i.s();!(o=i.n()).done;){var a=o.value;a.sortOrder=r++}}catch(l){i.e(l)}finally{i.f()}}},sectionUpdate:function(t){var e=t.uniqueId;this.formData.sections.hasOwnProperty(e)&&(this.formData.sections[e]=Object.assign(this.formData.sections[e],t))},rowNewAdded:function(t){this.formData.rows[t.uniqueId]=t},controlNewAdded:function(t,e){this.$set(this.formData.controls,e.uniqueId,e),-1===this.formData.sections[t].controls.indexOf(e.uniqueId)&&this.formData.sections[t].controls.push(e.uniqueId)},controlDeletion:function(t,e){var n=this.formData.sections.hasOwnProperty(t)?"section":"row";if("section"===n){var o=I["a"].findIndex(this.formData.sections[t].controls,void 0,e);this.formData.sections[t].controls.splice(o,1)}else{var r=I["a"].findIndex(this.formData.rows[t].controls,void 0,e);this.formData.rows[t].controls.splice(r,1)}this.$delete(this.formData.controls,e),this.$formEvent.$emit(_["a"].BUILDER.CONTROL.DELETED,t,e)},controlUpdated:function(t,e){this.formData.controls.hasOwnProperty(t)&&(this.formData.controls[t]=Object.assign(this.formData.controls[t],e))}},created:function(){this.$formEvent.$on(_["a"].BUILDER.SECTION.ADDED_ROW,this.sectionAndRowMapping),this.$formEvent.$on(_["a"].BUILDER.SECTION.PUSH,this.sectionPushedUp),this.$formEvent.$on(_["a"].BUILDER.SECTION.DELETE,this.sectionDelete),this.$formEvent.$on(_["a"].BUILDER.SECTION.UPDATE,this.sectionUpdate),this.$formEvent.$on(_["a"].BUILDER.ROW.CREATE,this.rowNewAdded),this.$formEvent.$on(_["a"].BUILDER.CONTROL.CREATE,this.controlNewAdded),this.$formEvent.$on(_["a"].BUILDER.FORMULA.ADD,this.addFormula),this.$formEvent.$on(_["a"].BUILDER.CONTROL.DELETE,this.controlDeletion),this.$formEvent.$on(_["a"].BUILDER.CONTROL.UPDATE,this.controlUpdated)}},W=n("bcc7"),z=(n("cadf"),n("456d"),"change"),Y=n("7fae"),G={props:{value:Object},model:{event:z,props:"value"},watch:{formData:{deep:!0,handler:function(t){this.$emit(z,t)}},value:{deep:!0,handler:function(t,e){if("undefined"!==typeof e){if(!t||!Object.keys(t).length)return this.mapping();if(!Y(t,e))return this.mapping(t)}}}}},K=[H,W["a"],G,c["a"]],J=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-configuration-block pbottom-10"},[n("button",{class:t.styles.BUTTON.PRIMARY,on:{click:t.open}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("cog"))}}),n("span",[t._v("Form Configurations")])])])},X=[],Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-form-configuration"},[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Form Config "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.frmConfig,expression:"frmConfig"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.frmConfig)?t._i(t.frmConfig,null)>-1:t.frmConfig},on:{change:function(e){var n=t.frmConfig,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&(t.frmConfig=n.concat([i])):a>-1&&(t.frmConfig=n.slice(0,a).concat(n.slice(a+1)))}else t.frmConfig=r}}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.frmConfig,expression:"frmConfig"}]},[n("h5",[t._v("Main Form Configuration")]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Form Headline")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.formConfiguration.headline,expression:"formConfiguration.headline"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.formConfiguration.headline},on:{input:function(e){e.target.composing||t.$set(t.formConfiguration,"headline",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Form Sub-Headline")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.formConfiguration.subHeadline,expression:"formConfiguration.subHeadline"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.formConfiguration.subHeadline},on:{input:function(e){e.target.composing||t.$set(t.formConfiguration,"subHeadline",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Mapped Doctype")]),n("div",{ref:"doctype",staticClass:"ref-field-input"})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Show Form Headline? "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.formConfiguration.isShowHeadline,expression:"formConfiguration.isShowHeadline"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.formConfiguration.isShowHeadline)?t._i(t.formConfiguration.isShowHeadline,null)>-1:t.formConfiguration.isShowHeadline},on:{change:function(e){var n=t.formConfiguration.isShowHeadline,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.formConfiguration,"isShowHeadline",n.concat([i])):a>-1&&t.$set(t.formConfiguration,"isShowHeadline",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.formConfiguration,"isShowHeadline",r)}}})])])]),n("hr"),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Add Formula "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.frm,expression:"frm"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.frm)?t._i(t.frm,null)>-1:t.frm},on:{change:function(e){var n=t.frm,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&(t.frm=n.concat([i])):a>-1&&(t.frm=n.slice(0,a).concat(n.slice(a+1)))}else t.frm=r}}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.frm,expression:"frm"}]},[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tempFormula.name,expression:"tempFormula.name"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.tempFormula.name},on:{input:function(e){e.target.composing||t.$set(t.tempFormula,"name",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Formula")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.tempFormula.formula,expression:"tempFormula.formula"}],class:t.styles.FORM.FORM_CONTROL,attrs:{rows:"6",type:"text"},domProps:{value:t.tempFormula.formula},on:{input:function(e){e.target.composing||t.$set(t.tempFormula,"formula",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Output Field")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tempFormula.output,expression:"tempFormula.output"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.tempFormula.output},on:{input:function(e){e.target.composing||t.$set(t.tempFormula,"output",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("button",{class:t.styles.FORM.FORM_CONTROL,on:{click:t.addFormula}},[t._v(" Add Formula ")])])]),t._l(t.formConfiguration.formula,(function(e){return n("div",{key:e,class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(t._s(e.name)+" "),n("span",{staticClass:"pointer",attrs:{title:"Click this to remove this rule"},domProps:{innerHTML:t._s(t.$form.getIcon("close","16px","16px","red"))},on:{click:function(n){return t.removeFormula(e)}}})]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.formula,expression:"formula.formula"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",rows:"6",readonly:""},domProps:{value:e.formula},on:{input:function(n){n.target.composing||t.$set(e,"formula",n.target.value)}}})])})),n("hr"),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Wrapper <form> outside of the Form? "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.formConfiguration.renderFormTag,expression:"formConfiguration.renderFormTag"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.formConfiguration.renderFormTag)?t._i(t.formConfiguration.renderFormTag,null)>-1:t.formConfiguration.renderFormTag},on:{change:function(e){var n=t.formConfiguration.renderFormTag,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.formConfiguration,"renderFormTag",n.concat([i])):a>-1&&t.$set(t.formConfiguration,"renderFormTag",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.formConfiguration,"renderFormTag",r)}}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.formConfiguration.renderFormTag,expression:"formConfiguration.renderFormTag"}]},[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Form-TAG Action URL")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.formConfiguration.formActionURL,expression:"formConfiguration.formActionURL"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.formConfiguration.formActionURL},on:{input:function(e){e.target.composing||t.$set(t.formConfiguration,"formActionURL",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Form-TAG Method")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.formConfiguration.formMethod,expression:"formConfiguration.formMethod"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.formConfiguration.formMethod},on:{input:function(e){e.target.composing||t.$set(t.formConfiguration,"formMethod",e.target.value)}}})])]),n("div",{staticClass:"buttons"},[n("button",{class:t.styles.BUTTON.PRIMARY,on:{click:function(e){return t.save(!1)}}},[t._v(" Save ")]),n("button",{class:t.styles.BUTTON.INFO,on:{click:function(e){return t.save(!0)}}},[t._v(" Save & Close ")])])],2)},Q=[],tt=n("22a0"),et={name:"SidebarFormConfiguration",mixins:[c["a"],k["a"]],data:function(){return{dataKey:"formConfiguration",formConfiguration:Object.assign({},tt["a"]),tempFormula:{},frm:!1,frmConfig:!1}},mounted:function(){this.makeSelectDoctypeControl()},methods:{addFormula:function(){this.formConfiguration.formula.push(this.tempFormula),this.tempFormula={}},removeFormula:function(t){var e=this.formConfiguration.formula.filter((function(e){return e.name!=t.name}));this.formConfiguration.formula=e},makeSelectDoctypeControl:function(){var t=this,e=frappe.ui.form.make_control({df:{label:__("Reference"),fieldtype:"Link",fieldname:"reference",options:"DocType",placeholder:"Select doctype",onchange:function(){this.value&&(t.formConfiguration.mappedDoctype=this.value)}},parent:this.$refs["doctype"],render_input:!0});e.toggle_label(!1),e.$input.val(t.formConfiguration.mappedDoctype),$("#modal-body").find(".input-max-width").removeClass("input-max-width")}},created:function(){this.formConfiguration=Object.assign({},this.formConfiguration,this.dataPackage)}},nt=et,ot=Object(d["a"])(nt,Z,Q,!1,null,"bdcd0d34",null),rt=ot.exports,it="FormConfiguration",at={name:"FormConfiguration",components:{SidebarFormConfiguration:rt},mixins:[c["a"]],props:{value:Object},model:{event:"change",props:"value"},methods:{open:function(){this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.OPEN,it)},renderSidebar:function(){this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.INJECT,new O["a"](it,rt,this.value))},saveConfiguration:function(t,e){if(t===it){var n=Object.assign({},this.value,e);this.$emit("change",n)}},afterOpenedSidebar:function(t){t===it&&this.renderSidebar()}},created:function(){this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.SAVE,this.saveConfiguration),this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.SAVE_AND_CLOSE,this.saveConfiguration),this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.OPENED,this.renderSidebar)}},lt=at,st=Object(d["a"])(lt,J,X,!1,null,null,null),ct=st.exports,ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar"},[n("span",{staticClass:"close",domProps:{innerHTML:t._s(t.$form.getIcon("close","24px","24px","#000"))},on:{click:t.close}}),t.component?n(t.component,{tag:"component",attrs:{dataPackage:t.dynamicData,formData:t.formData},on:{save:t.save,saveAndClose:t.saveAndClose,close:t.close}}):t._e()],1)},ft=[],dt=n("caca"),pt="300px",ht={name:"GlobalSidebar",props:{formData:{type:Object,default:function(){return{}}}},data:function(){return{component:null,dynamicData:{},runnerId:null,isOpen:!1}},methods:{open:function(t){this.isOpen?dt["a"].show("Please close the current active sidebar before open another"):(this.$el.style.width=pt,document.getElementsByTagName("body")[0].style.marginRight=pt,this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.OPENED,t),this.isOpen=!0)},save:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.SAVE,this.runnerId,Object.assign({},t))},saveAndClose:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.SAVE_AND_CLOSE,this.runnerId,Object.assign({},t)),this.close()},close:function(){this.$el.style.width=0,document.getElementsByTagName("body")[0].style.marginRight=0,this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.AFTER_CLOSED,this.runnerId,null),this.component=null,this.dynamicData={},this.runnerId=null,this.isOpen=!1},updateBody:function(t){this.isOpen||(this.dynamicData=Object.assign({},t.data),this.component=t.component,this.runnerId=t.runnerId)}},created:function(){this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.INJECT,this.updateBody),this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.OPEN,this.open)}},mt=ht,vt=Object(d["a"])(mt,ut,ft,!1,null,null,null),yt=vt.exports,gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add-control-outer",class:t.styles.COLUMNS.COL12},[n("div",{staticClass:"add-control-container",on:{click:t.openAddControl}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("addOutline","32px","32px","#000"))}}),n("span",[t._v("Add Formula")])])])},bt=[],_t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-form-configuration"},[n("h5",[t._v("Select Formula")]),n("div",[n("div",{staticStyle:{"margin-bottom":"8px"}},[n("div",{},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"form-control md-field",attrs:{type:"text",placeholder:"Search...."},domProps:{value:t.searchQuery},on:{input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}})])])]),n("div",{class:[t.styles.LIST_GROUP.CONTAINER]},t._l(t.controlList,(function(e){return n("a",{key:e.name,class:t.styles.LIST_GROUP.SINGLE_ITEM,attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.selectedControl(e)}}},[n("p",{staticClass:"type-headline",domProps:{textContent:t._s(e.name)}}),n("p",{staticClass:"type-desc",domProps:{textContent:t._s(e.description)}})])})),0)])},wt=[],Ot=n("bd86"),xt=n("8dbe"),Et=(V={name:"SidebarControlSelectList",mixins:[c["a"],k["a"]],computed:{controlTypes:function(){return xt["a"]}},data:function(){return{dataKey:"newControlData",newControlData:null,searchQuery:null,apiList:[]}}},Object(Ot["a"])(V,"computed",{controlList:function(){return this.apiList.map((function(t){return{name:t[0],description:t[1],formula:t[2],output:t[3]}}))}}),Object(Ot["a"])(V,"watch",{searchQuery:function(t){this.fetchConcepts(t)}}),Object(Ot["a"])(V,"methods",{selectedControl:function(t){this.close(),this.$formEvent.$emit(_["a"].BUILDER.FORMULA.ADD,t)},fetchConcepts:function(t){var e=this,n=this;this.api({method:"clinical.api.forms.form_builder.concept_formula_query",args:{txt:t},callback:function(t){var e=t.message;n.apiList=e}}).then((function(t){var n=t.message;e.apiList=n}))}}),V),kt=Et,Ct=Object(d["a"])(kt,_t,wt,!1,null,"412bc282",null),St=Ct.exports,qt={name:"AddFormula",mixins:[c["a"]],props:{section:{type:Object,required:!1}},data:function(){return{show:!1}},methods:{openAddControl:function(){this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.OPEN,this.runnerId)},afterOpenedSidebar:function(t){t===this.runnerId&&this.renderSidebar()},renderSidebar:function(){this.$formEvent.$emit(_["a"].BUILDER.SIDEBAR.INJECT,new O["a"](this.runnerId,St,this.section))},createNewFormFormula:function(t,e){this.runnerId}},computed:{runnerId:function(){return"add-control-FORMULAR}"}},created:function(){this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.OPENED,this.afterOpenedSidebar),this.$formEvent.$on(_["a"].BUILDER.SIDEBAR.CLOSE,this.createNewFormFormula)}},Dt=qt,Tt=Object(d["a"])(Dt,gt,bt,!1,null,null,null),Rt=Tt.exports,At={name:"FormBuilder",components:{GlobalSidebar:yt,FormConfiguration:ct,SectionContainer:L,AddSectionControl:h,AddFormula:Rt},mixins:K,data:function(){return{formData:{formConfig:{},sections:{},rows:{},controls:{}}}},created:function(){this.value&&"object"===Object(i["a"])(this.value)?this.mapping(this.value):this.createDefaultData()},computed:{copyrightText:function(){return m.COPYRIGHT}}},Mt=At,Pt=Object(d["a"])(Mt,o,r,!1,null,null,null);e["a"]=Pt.exports},"6a99":function(t,e,n){var o=n("d3f4");t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,n){var o=n("e6f3"),r=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b54":function(t,e,n){"use strict";n("3846");var o=n("cb7c"),r=n("0bfb"),i=n("9e1e"),a="toString",l=/./[a],s=function(t){n("2aba")(RegExp.prototype,a,t,!0)};n("79e5")((function(){return"/a/b"!=l.call({source:"a",flags:"b"})}))?s((function(){var t=o(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?r.call(t):void 0)})):l.name!=a&&s((function(){return l.call(this)}))},"6c1c":function(t,e,n){n("c367");for(var o=n("e53d"),r=n("35e8"),i=n("481b"),a=n("5168")("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<l.length;s++){var c=l[s],u=o[c],f=u&&u.prototype;f&&!f[a]&&r(f,a,c),i[c]=i.Array}},"6db7":function(t,e,n){"use strict";var o=n("f367"),r=n("3eb1"),i=n("d6ef"),a=n("5834"),l=n("c15a"),s=r(a(),Object);o(s,{getPolyfill:a,implementation:i,shim:l}),t.exports=s},"71c1":function(t,e,n){var o=n("3a38"),r=n("25eb");t.exports=function(t){return function(e,n){var i,a,l=String(r(e)),s=o(n),c=l.length;return s<0||s>=c?t?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):i:t?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},7226:function(t,e,n){"use strict";(function(e){var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"===typeof globalThis?e:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"===typeof o[n[e]]&&(t[t.length]=n[e]);return t}}).call(this,n("c8ba"))},7333:function(t,e,n){"use strict";var o=n("9e1e"),r=n("0d58"),i=n("2621"),a=n("52a7"),l=n("4bf8"),s=n("626a"),c=Object.assign;t.exports=!c||n("79e5")((function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=o}))?function(t,e){var n=l(t),c=arguments.length,u=1,f=i.f,d=a.f;while(c>u){var p,h=s(arguments[u++]),m=f?r(h).concat(f(h)):r(h),v=m.length,y=0;while(v>y)p=m[y++],o&&!d.call(h,p)||(n[p]=h[p])}return n}:c},7514:function(t,e,n){"use strict";var o=n("5ca1"),r=n("0a49")(5),i="find",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),o(o.P+o.F*a,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},7618:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var o=n("67bb"),r=n.n(o),i=n("5d58"),a=n.n(i);function l(t){return l="function"==typeof r.a&&"symbol"==typeof a.a?function(t){return typeof t}:function(t){return t&&"function"==typeof r.a&&t.constructor===r.a&&t!==r.a.prototype?"symbol":typeof t},l(t)}},"765d":function(t,e,n){n("6718")("observable")},"768b":function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var o=n("a745"),r=n.n(o);function i(t){if(r()(t))return t}var a=n("67bb"),l=n.n(a),s=n("5d58"),c=n.n(s);function u(t,e){var n=null==t?null:"undefined"!==typeof l.a&&t[c.a]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(o=n.next()).done);a=!0)if(i.push(o.value),e&&i.length===e)break}catch(u){s=!0,r=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw r}}return i}}var f=n("e630");function d(){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 p(t,e){return i(t)||u(t,e)||Object(f["a"])(t,e)||d()}},"768d":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},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)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var o=n("4588"),r=Math.max,i=Math.min;t.exports=function(t,e){return t=o(t),t<0?r(t+e,0):i(t,e)}},7917:function(t,e,n){"use strict";var o=n("c532");function r(t,e,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}o["a"].inherits(r,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:o["a"].toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const i=r.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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{a[t]={value:t}}),Object.defineProperties(r,a),Object.defineProperty(i,"isAxiosError",{value:!0}),r.from=(t,e,n,a,l,s)=>{const c=Object.create(i);return o["a"].toFlatObject(t,c,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),r.call(c,t.message,e,n,a,l),c.cause=t,c.name=t.name,s&&Object.assign(c,s),c},e["a"]=r},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var o=n("7726"),r=n("86cc"),i=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=o[t];i&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},"7bbc":function(t,e,n){var o=n("6821"),r=n("9093").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?l(t):r(o(t))}},"7cd6":function(t,e,n){var o=n("40c3"),r=n("5168")("iterator"),i=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||i[o(t)]}},"7d7e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a}));var o=n("43b3"),r={normal:"normal",tableRow:"tableRow"},i={uniqueId:"",additionalClass:"",type:r.normal,sortOrder:0,controls:[]};function a(t){if(!r[t])throw new TypeError("Row Type: ".concat(t," doesn't exists in Vue-Form-Builder"));var e=o["a"].cloneDeep(i);return e.type=t,e.uniqueId="row-"+o["a"].getUUIDv4(),e}},"7e90":function(t,e,n){var o=n("d9f6"),r=n("e4ae"),i=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){r(t);var n,a=i(e),l=a.length,s=0;while(l>s)o.f(t,n=a[s++],e[n]);return t}},"7f20":function(t,e,n){var o=n("86cc").f,r=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var o=n("86cc").f,r=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in r||n("9e1e")&&o(r,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},"7fae":function(t,e,n){"use strict";var o=n("d6c7"),r=n("e39c"),i=n("6db7"),a=n("d8d8"),l=n("e710"),s=n("768d"),c=n("0e65"),u=n("2fb9"),f=n("00ce"),d=n("545e"),p=n("bd25"),h=n("b2b8"),m=n("5402"),v=n("edc4"),y=n("2a8a"),g=d("Date.prototype.getTime"),b=Object.getPrototypeOf,_=d("Object.prototype.toString"),w=f("%Set%",!0),O=d("Map.prototype.has",!0),x=d("Map.prototype.get",!0),E=d("Map.prototype.size",!0),k=d("Set.prototype.add",!0),C=d("Set.prototype.delete",!0),S=d("Set.prototype.has",!0),q=d("Set.prototype.size",!0);function D(t,e,n,o){var r,i=h(t);while((r=i.next())&&!r.done)if(P(e,r.value,n,o))return C(t,r.value),!0;return!1}function T(t){return"undefined"===typeof t?null:"object"!==typeof t?"symbol"!==typeof t&&("string"!==typeof t&&"number"!==typeof t||+t===+t):void 0}function R(t,e,n,o,r,i){var a=T(n);if(null!=a)return a;var l=x(e,a),s=y({},r,{strict:!1});return!("undefined"===typeof l&&!O(e,a)||!P(o,l,s,i))&&(!O(t,a)&&P(o,l,s,i))}function A(t,e,n){var o=T(n);return null!=o?o:S(e,o)&&!S(t,o)}function M(t,e,n,o,r,i){var a,l,s=h(t);while((a=s.next())&&!a.done)if(l=a.value,P(n,l,r,i)&&P(o,x(e,l),r,i))return C(t,l),!0;return!1}function P(t,e,n,o){var r=n||{};if(r.strict?i(t,e):t===e)return!0;var a=u(t),l=u(e);if(a!==l)return!1;if(!t||!e||"object"!==typeof t&&"object"!==typeof e)return r.strict?i(t,e):t==e;var s,c=o.has(t),f=o.has(e);if(c&&f){if(o.get(t)===o.get(e))return!0}else s={};return c||o.set(t,s),f||o.set(e,s),I(t,e,r,o)}function N(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&(!(t.length>0&&"number"!==typeof t[0])&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))))}function j(t,e,n,o){if(q(t)!==q(e))return!1;var r,i,a,l=h(t),s=h(e);while((r=l.next())&&!r.done)if(r.value&&"object"===typeof r.value)a||(a=new w),k(a,r.value);else if(!S(e,r.value)){if(n.strict)return!1;if(!A(t,e,r.value))return!1;a||(a=new w),k(a,r.value)}if(a){while((i=s.next())&&!i.done)if(i.value&&"object"===typeof i.value){if(!D(a,i.value,n.strict,o))return!1}else if(!n.strict&&!S(t,i.value)&&!D(a,i.value,n.strict,o))return!1;return 0===q(a)}return!0}function L(t,e,n,o){if(E(t)!==E(e))return!1;var r,i,a,l,s,c,u=h(t),f=h(e);while((r=u.next())&&!r.done)if(l=r.value[0],s=r.value[1],l&&"object"===typeof l)a||(a=new w),k(a,l);else if(c=x(e,l),"undefined"===typeof c&&!O(e,l)||!P(s,c,n,o)){if(n.strict)return!1;if(!R(t,e,l,s,n,o))return!1;a||(a=new w),k(a,l)}if(a){while((i=f.next())&&!i.done)if(l=i.value[0],c=i.value[1],l&&"object"===typeof l){if(!M(a,t,l,c,n,o))return!1}else if(!n.strict&&(!t.has(l)||!P(x(t,l),c,n,o))&&!M(a,t,l,c,y({},n,{strict:!1}),o))return!1;return 0===q(a)}return!0}function I(t,e,n,i){var u,f;if(typeof t!==typeof e)return!1;if(null==t||null==e)return!1;if(_(t)!==_(e))return!1;if(r(t)!==r(e))return!1;var d=s(t),h=s(e);if(d!==h)return!1;var m=t instanceof Error,y=e instanceof Error;if(m!==y)return!1;if((m||y)&&(t.name!==e.name||t.message!==e.message))return!1;var w=a(t),O=a(e);if(w!==O)return!1;if((w||O)&&(t.source!==e.source||l(t)!==l(e)))return!1;var x=c(t),E=c(e);if(x!==E)return!1;if((x||E)&&g(t)!==g(e))return!1;if(n.strict&&b&&b(t)!==b(e))return!1;if(v(t)!==v(e))return!1;var k=N(t),C=N(e);if(k!==C)return!1;if(k||C){if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}if(typeof t!==typeof e)return!1;var S=o(t),q=o(e);if(S.length!==q.length)return!1;for(S.sort(),q.sort(),u=S.length-1;u>=0;u--)if(S[u]!=q[u])return!1;for(u=S.length-1;u>=0;u--)if(f=S[u],!P(t[f],e[f],n,i))return!1;var D=p(t),T=p(e);return D===T&&("Set"===D||"Set"===T?j(t,e,n,i):"Map"!==D||L(t,e,n,i))}t.exports=function(t,e,n){return P(t,e,n,m())}},8079:function(t,e,n){var o=n("7726"),r=n("1991").set,i=o.MutationObserver||o.WebKitMutationObserver,a=o.process,l=o.Promise,s="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var o,r;s&&(o=a.domain)&&o.exit();while(t){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,o&&o.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||o.navigator&&o.navigator.standalone)if(l&&l.resolve){var u=l.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(o,c)};else{var f=!0,d=document.createTextNode("");new i(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(o){var r={fn:o,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var o=n("cb7c"),r=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(l){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},8875:function(t,e,n){var o,r,i;(function(n,a){r=[],o=a,i="function"===typeof o?o.apply(e,r):o,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,o,r,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,l=i.exec(p.stack)||a.exec(p.stack),s=l&&l[1]||!1,c=l&&l[2]||!1,u=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");s===u&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(o,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===s)return f[d];if(s===u&&f[d].innerHTML&&f[d].innerHTML.trim()===r)return f[d]}return null}}return t}))},"8a81":function(t,e,n){"use strict";var o=n("7726"),r=n("69a8"),i=n("9e1e"),a=n("5ca1"),l=n("2aba"),s=n("67ab").KEY,c=n("79e5"),u=n("5537"),f=n("7f20"),d=n("ca5a"),p=n("2b4c"),h=n("37c8"),m=n("3a72"),v=n("d4c0"),y=n("1169"),g=n("cb7c"),b=n("d3f4"),_=n("4bf8"),w=n("6821"),O=n("6a99"),x=n("4630"),E=n("2aeb"),k=n("7bbc"),C=n("11e9"),S=n("2621"),q=n("86cc"),D=n("0d58"),T=C.f,R=q.f,A=k.f,M=o.Symbol,P=o.JSON,N=P&&P.stringify,j="prototype",L=p("_hidden"),I=p("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),U=u("symbols"),$=u("op-symbols"),V=Object[j],H="function"==typeof M&&!!S.f,W=o.QObject,z=!W||!W[j]||!W[j].findChild,Y=i&&c((function(){return 7!=E(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(t,e,n){var o=T(V,e);o&&delete V[e],R(t,e,n),o&&t!==V&&R(V,e,o)}:R,G=function(t){var e=U[t]=E(M[j]);return e._k=t,e},K=H&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},J=function(t,e,n){return t===V&&J($,e,n),g(t),e=O(e,!0),g(n),r(U,e)?(n.enumerable?(r(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:x(0,!1)})):(r(t,L)||R(t,L,x(1,{})),t[L][e]=!0),Y(t,e,n)):R(t,e,n)},X=function(t,e){g(t);var n,o=v(e=w(e)),r=0,i=o.length;while(i>r)J(t,n=o[r++],e[n]);return t},Z=function(t,e){return void 0===e?E(t):X(E(t),e)},Q=function(t){var e=F.call(this,t=O(t,!0));return!(this===V&&r(U,t)&&!r($,t))&&(!(e||!r(this,t)||!r(U,t)||r(this,L)&&this[L][t])||e)},tt=function(t,e){if(t=w(t),e=O(e,!0),t!==V||!r(U,e)||r($,e)){var n=T(t,e);return!n||!r(U,e)||r(t,L)&&t[L][e]||(n.enumerable=!0),n}},et=function(t){var e,n=A(w(t)),o=[],i=0;while(n.length>i)r(U,e=n[i++])||e==L||e==s||o.push(e);return o},nt=function(t){var e,n=t===V,o=A(n?$:w(t)),i=[],a=0;while(o.length>a)!r(U,e=o[a++])||n&&!r(V,e)||i.push(U[e]);return i};H||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call($,n),r(this,L)&&r(this[L],t)&&(this[L][t]=!1),Y(this,t,x(1,n))};return i&&z&&Y(V,t,{configurable:!0,set:e}),G(t)},l(M[j],"toString",(function(){return this._k})),C.f=tt,q.f=J,n("9093").f=k.f=et,n("52a7").f=Q,S.f=nt,i&&!n("2d00")&&l(V,"propertyIsEnumerable",Q,!0),h.f=function(t){return G(p(t))}),a(a.G+a.W+a.F*!H,{Symbol:M});for(var ot="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;ot.length>rt;)p(ot[rt++]);for(var it=D(p.store),at=0;it.length>at;)m(it[at++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return r(B,t+="")?B[t]:B[t]=M(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!H,"Object",{create:Z,defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var lt=c((function(){S.f(1)}));a(a.S+a.F*lt,"Object",{getOwnPropertySymbols:function(t){return S.f(_(t))}}),P&&a(a.S+a.F*(!H||c((function(){var t=M();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){var e,n,o=[t],r=1;while(arguments.length>r)o.push(arguments[r++]);if(n=e=o[1],(b(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),o[1]=e,N.apply(P,o)}}),M[j][I]||n("32e9")(M[j],I,M[j].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},"8ae1":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var o=n("28fe"),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"v-tooltip"},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon(t.icon,t.iconSize,t.iconSize,t.iconColor))}}),n("span",{staticClass:"tooltiptext",domProps:{innerHTML:t._s(t.text)}})])},i=[],a={name:"IconTooltip",props:{text:String,icon:String,iconSize:{type:String,default:"16px"},iconColor:{type:String,default:"#000"}}},l=a,s=n("2877"),c=Object(s["a"])(l,r,i,!1,null,"02fef337",null),u=c.exports,f={components:{IconTooltip:u},mixins:[o["a"]],props:{control:{type:Object,required:!0},formData:{type:Object,required:!0}}}},"8dbe":function(t,e,n){"use strict";n.d(e,"a",(function(){return io})),n.d(e,"b",(function(){return ao})),n.d(e,"c",(function(){return lo}));n("7f7f"),n("f751");var o=n("d60e"),r=(n("43b3"),{line:{val:"line",description:"Line by Line"},next:{val:"next",description:"Next to each others"},bothSide:{val:"bothSide",description:"Stay on each sides in a row (Left - Right)"}}),i={left:{val:"left",description:"Left"},center:{val:"center",description:"Center"},right:{val:"right",description:"Right"}},a={format:{val:"format",description:"Date String from Date Format"},object:{val:"object",description:"JS-Date Object"}},l={monday:{val:1,description:"Monday"},tuesday:{val:2,description:"Tuesday"},wednesday:{val:3,description:"Wednesday"},thursday:{val:4,description:"Thursday"},friday:{val:5,description:"Friday"},saturday:{val:6,description:"Saturday"},sunday:{val:0,description:"Sunday"}},s={list:{val:"list",description:"Normal - Pre-Config List Items"},api:{val:"api",description:"API - List Items from your own API"}},c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{class:t.controlFieldClass,attrs:{id:t.control.uniqueId,type:"text",name:t.control.name||t.control.uniqueId,placeholder:t.control.placeholderText},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)}}})},u=[],f=n("653e"),d={name:"InputControl",mixins:[f["a"]]},p=d,h=n("2877"),m=Object(h["a"])(p,c,u,!1,null,"43a854f8",null),v=m.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("textarea",{class:t.controlFieldClass,attrs:{id:t.control.uniqueId,type:"text",rows:t.control.rows,name:t.control.name,placeholder:t.control.placeholderText},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)}}})},g=[],b={name:"TextControl",mixins:[f["a"]]},_=b,w=Object(h["a"])(_,y,g,!1,null,null,null),O=w.exports,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{class:t.buttonClasses,attrs:{id:t.control.uniqueId,name:t.control.name,type:t.control.buttonType||"button"},domProps:{textContent:t._s(t.control.label)},on:{click:t.clickedHandle}})},E=[],k=n("fbe6"),C=n("b1f2"),S={name:"ButtonControl",mixins:[f["a"]],methods:{clickedHandle:function(){this.control.isRunValidation?this.$formEvent.$emit(k["a"].RENDERER.RUN_VALIDATION,!0):this.submit()},continueProcessAfterValidationOk:function(){this.submit()},submit:function(){if(this.control.emitEventCode&&this.control.emitEventData)this.$formEvent.$emit(this.control.emitEventCode,this.control.emitEventData);else{var t=document.getElementById(C["a"].rendererFormId);t&&"submit"===this.$el.type&&t.submit()}}},computed:{buttonClasses:function(){return[this.control.buttonClass,this.control.additionalFieldClass]}},created:function(){this.$formEvent.$on(k["a"].RENDERER.VALIDATION_OK,this.continueProcessAfterValidationOk)}},q=S,D=Object(h["a"])(q,x,E,!1,null,null,null),T=D.exports,R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},A=[],M={name:"EmptyBlockControl"},P=M,N=Object(h["a"])(P,R,A,!1,null,null,null),j=N.exports,L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.control.additionalFieldClass,domProps:{textContent:t._s(t.control.text)}})])},I=[],F={name:"TextBlockControl",mixins:[f["a"]]},B=F,U=Object(h["a"])(B,L,I,!1,null,null,null),$=U.exports,V=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{class:t.control.additionalLabelClass,attrs:{id:t.control.uniqueId,for:t.control.forAttribute},domProps:{innerHTML:t._s(t.control.label)}})},H=[],W={name:"LabelControl",mixins:[f["a"]]},z=W,Y=Object(h["a"])(z,V,H,!1,null,null,null),G=Y.exports,K=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:t.control.uniqueId}},[t.isSameBlock?n("div",{staticClass:"radio-checkbox",class:t.lineNextClasses},t._l(t.control.items,(function(e){return n("label",{key:e.value,class:t.positionClasses},["checkbox"===t.control.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueContainer[t.controlName],expression:"valueContainer[controlName]"}],class:t.control.additionalFieldClass,attrs:{name:t.inputName,type:"checkbox"},domProps:{value:e.value,checked:Array.isArray(t.valueContainer[t.controlName])?t._i(t.valueContainer[t.controlName],e.value)>-1:t.valueContainer[t.controlName]},on:{change:function(n){var o=t.valueContainer[t.controlName],r=n.target,i=!!r.checked;if(Array.isArray(o)){var a=e.value,l=t._i(o,a);r.checked?l<0&&t.$set(t.valueContainer,t.controlName,o.concat([a])):l>-1&&t.$set(t.valueContainer,t.controlName,o.slice(0,l).concat(o.slice(l+1)))}else t.$set(t.valueContainer,t.controlName,i)}}}):"radio"===t.control.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueContainer[t.controlName],expression:"valueContainer[controlName]"}],class:t.control.additionalFieldClass,attrs:{name:t.inputName,type:"radio"},domProps:{value:e.value,checked:t._q(t.valueContainer[t.controlName],e.value)},on:{change:function(n){return t.$set(t.valueContainer,t.controlName,e.value)}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueContainer[t.controlName],expression:"valueContainer[controlName]"}],class:t.control.additionalFieldClass,attrs:{name:t.inputName,type:t.control.type},domProps:{value:e.value,value:t.valueContainer[t.controlName]},on:{input:function(e){e.target.composing||t.$set(t.valueContainer,t.controlName,e.target.value)}}}),t._v(" "+t._s(e.text)+" "),"line"===t.displayMode?n("br"):t._e()])})),0):n("div",[n("div",{staticClass:"radio-checkbox",class:t.styles.ROW},t._l(t.control.items,(function(e){return n("div",{key:e.value,class:[t.styles.COLUMNS.COL6,t.positionClasses]},[n("label",["checkbox"===t.control.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueContainer[t.controlName],expression:"valueContainer[controlName]"}],class:t.control.additionalFieldClass,attrs:{name:t.inputName,type:"checkbox"},domProps:{value:e.value,checked:Array.isArray(t.valueContainer[t.controlName])?t._i(t.valueContainer[t.controlName],e.value)>-1:t.valueContainer[t.controlName]},on:{change:function(n){var o=t.valueContainer[t.controlName],r=n.target,i=!!r.checked;if(Array.isArray(o)){var a=e.value,l=t._i(o,a);r.checked?l<0&&t.$set(t.valueContainer,t.controlName,o.concat([a])):l>-1&&t.$set(t.valueContainer,t.controlName,o.slice(0,l).concat(o.slice(l+1)))}else t.$set(t.valueContainer,t.controlName,i)}}}):"radio"===t.control.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueContainer[t.controlName],expression:"valueContainer[controlName]"}],class:t.control.additionalFieldClass,attrs:{name:t.inputName,type:"radio"},domProps:{value:e.value,checked:t._q(t.valueContainer[t.controlName],e.value)},on:{change:function(n){return t.$set(t.valueContainer,t.controlName,e.value)}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueContainer[t.controlName],expression:"valueContainer[controlName]"}],class:t.control.additionalFieldClass,attrs:{name:t.inputName,type:t.control.type},domProps:{value:e.value,value:t.valueContainer[t.controlName]},on:{input:function(e){e.target.composing||t.$set(t.valueContainer,t.controlName,e.target.value)}}}),t._v(" "+t._s(e.text)+" ")])])})),0)])])},J=[],X={name:"RadioCheckboxControl",mixins:[f["a"]],props:{valueContainer:{type:Object,default:function(){return{}}}},data:function(){return{stopDefaultValueAssign:!0,defaultBucket:""}},created:function(){this.valueContainer[this.controlName]||(this.valueContainer[this.controlName]="")},mounted:function(){this.control.defaultValue&&(this.isRadio?this.updateValue(this.control.defaultValue):this.updateValue([this.control.defaultValue]))},computed:{isRadio:function(){return"radio"===this.control.type},displayMode:function(){return this.control.displayMode},isSameBlock:function(){return this.displayMode===r.line.val||this.displayMode===r.next.val},lineNextClasses:function(){return{line:"line"===this.displayMode,next:"next"===this.displayMode}},positionClasses:function(){return{"text-center":this.control.position===i.center.val,"text-right":this.control.position===i.right.val,"text-left":this.control.position===i.left.val}},inputName:function(){return this.isRadio?this.controlName:this.controlName+"[]"}}},Z=X,Q=Object(h["a"])(Z,K,J,!1,null,null,null),tt=Q.exports,et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.control.singleMode?[n("input",{class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",id:t.control.uniqueId,name:t.control.name||t.control.uniqueId,placeholder:t.control.placeholderText,autocomplete:"off"}})]:[n("input",{class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",id:t.control.uniqueId,placeholder:t.control.placeholderText,autocomplete:"off"}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.value.startDate,expression:"value.startDate"}],attrs:{type:"hidden",name:t.startDateFieldName},domProps:{value:t.value.startDate},on:{input:function(e){e.target.composing||t.$set(t.value,"startDate",e.target.value)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.value.endDate,expression:"value.endDate"}],attrs:{type:"hidden",name:t.endDateFieldName},domProps:{value:t.value.endDate},on:{input:function(e){e.target.composing||t.$set(t.value,"endDate",e.target.value)}}})]],2)},nt=[],ot=(n("8e6e"),n("bd86")),rt=n("7618"),it=(n("ac6a"),n("cadf"),n("456d"),n("5360")),at=n.n(it),lt=n("5a0c"),st=n.n(lt);function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){Object(ot["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ft={name:"DatePickerControl",mixins:[f["a"]],data:function(){return{datepicker:null,currentValue:null}},model:{event:"change",prop:"value"},watch:{control:{deep:!0,handler:function(t){this.setOption(t)}},value:function(t){this.setValue(t)}},methods:{setOption:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).length&&this.datepicker.setOptions(t)},setValue:function(t){if(null!==t&&void 0!==t&&""!==t){if("object"===Object(rt["a"])(t)&&t.startDate&&t.endDate){if(this.currentValue&&this.currentValue.startDate===t.startDate&&this.currentValue.endDate===t.endDate)return;this.datepicker.setDateRange(t.startDate,t.endDate)}else if("string"===typeof t||t instanceof Date){if(this.val===this.currentValue)return;this.datepicker.setDate(t)}}else this.datepicker.setDate(null)},getValue:function(t,e){if(null==t)return this.updateValue(null);if(this.control.singleMode){var n=t;return this.control.returnType===a.format.val&&(n=st()(t).format(this.control.format)),this.updateValue(n),void(this.currentValue=n)}var o={startDate:t,endDate:e};this.control.returnType===a.format.val&&(o.startDate=st()(t).format(this.control.format),o.endDate=st()(e).format(this.control.format)),this.updateValue(o),this.currentValue=o}},mounted:function(){var t=this;this.datepicker=new at.a(ut(ut({element:document.getElementById(this.control.uniqueId)},this.control),{},{onRender:function(){t.control.defaultValue&&t.setValue(t.control.defaultValue)},onSelect:this.getValue}))},beforeDestroy:function(){this.datepicker.destroy()},computed:{startDateFieldName:function(){return(this.control.name||this.control.uniqueId)+"[startDate]"},endDateFieldName:function(){return(this.control.name||this.control.uniqueId)+"[endDate]"}}},dt=ft,pt=Object(h["a"])(dt,et,nt,!1,null,"f1dd2036",null),ht=pt.exports,mt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("b-form-datepicker",{attrs:{id:t.control.uniqueId,value:t.value,"show-decade-nav":!0,"today-button":"","reset-button":"","close-button":"",locale:"en"},on:{input:t.dataChanged}})],1)},vt=[],yt={name:"DateControl",mixins:[f["a"]],methods:{dataChanged:function(t){this.updateValue(t)}}},gt=yt,bt=Object(h["a"])(gt,mt,vt,!1,null,"953c4b9a",null),_t=bt.exports,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{class:t.controlFieldClass,attrs:{id:t.control.uniqueId,type:"number",name:t.control.name,placeholder:t.control.placeholderText},domProps:{value:t.number},on:{input:function(e){return t.convertToNumber(e.target.value)}}})},Ot=[],xt={name:"NumberControl",mixins:[f["a"]],data:function(){return{number:0,stopDefaultValueAssign:!0,previewMode:"0"}},methods:{convertToNumber:function(t){var e=this.isRealNumber?parseFloat(t):parseInt(t,10);this.updateValue(e),this.number=e},updatedPreview:function(){},setValue:function(t){this.convertToNumber(t)}},computed:{isRealNumber:function(){return this.control.isReal}},created:function(){this.control.defaultValue&&this.convertToNumber(this.control.defaultValue)}},Et=xt,kt=Object(h["a"])(Et,wt,Ot,!1,null,"7f8d83f0",null),Ct=kt.exports,St=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("select",{class:t.controlFieldClass,attrs:{id:t.control.uniqueId,name:t.control.name||t.control.uniqueId,multiple:this.control.multiple},on:{input:function(e){return t.updateValue(e.target.value)}}},[t.control.placeholderText?n("option",{attrs:{disabled:"",selected:""},domProps:{textContent:t._s(t.control.placeholderText)}}):t._e(),t._l(t.listOptions,(function(e){return n("option",{key:e.value,domProps:{value:e.value,selected:t.value===e.value,textContent:t._s(e.text)}})}))],2)},qt=[],Dt=n("b0b4"),Tt=n("d225"),Rt=Object(Dt["a"])((function t(e,n){Object(Tt["a"])(this,t),Object(ot["a"])(this,"value",""),Object(ot["a"])(this,"text",""),this.value=e,this.text=n})),At={name:"DropdownControl",mixins:[f["a"]],data:function(){return{listOptions:[],dataMode:"",apiURL:""}},watch:{control:{deep:!0,handler:function(t){if(t.dataMode!==this.dataMode||t.apiURL!==this.apiURL||t.dataMode===s.list.val&&t.items.length!==this.listOptions.length)return this.retrieveOptionLists()}}},methods:{retrieveOptionLists:function(){if(this.dataMode=this.control.dataMode,this.apiURL=this.control.apiURL,this.control.dataMode!==s.list.val){if(!this.control.apiURL)throw new TypeError("[Dropdown] In order to use REST-API for Dropdown. You must set your Rest-API Endpoint.");if(this.control.apiURL.indexOf("http://")<0&&this.control.apiURL.indexOf("https://")<0)throw new TypeError("[Dropdown] Rest-API Endpoint must be valid http/https URL.");fetch(this.control.apiURL,{method:"GET"}).then((function(t){return t.json()})).then(this.afterRestAPICallDataSuccessfully).catch(this.restAPICallErrorHandling)}else this.listOptions=this.control.items},afterRestAPICallDataSuccessfully:function(t){var e=this;if(!Array.isArray(t))throw new TypeError("[DROPDOWN-".concat(this.control.name,"] Wrong API-data format."));this.listOptions=[],t.forEach((function(t){e.listOptions.push(new Rt(t[e.valueKey],t[e.textKey]))}))},restAPICallErrorHandling:function(t){console.error("[DROPDOWN-Control-".concat(this.control.uniqueId,"] Request API to get data failed."),t)}},computed:{textKey:function(){return this.control.apiTextKey||"text"},valueKey:function(){return this.control.apiValueKey||"value"}},created:function(){this.retrieveOptionLists()}},Mt=At,Pt=Object(h["a"])(Mt,St,qt,!1,null,"5cc6b373",null),Nt=Pt.exports,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"parent-"+t.control.uniqueId}},[n("div",[n("v-select",{attrs:{options:t.searchResults,label:"name",filterable:!1,placeholder:"Search"},on:{search:t.onSearch},scopedSlots:t._u([{key:"selected-option",fn:function(e){return[n("div",{staticClass:"selected d-center"},[t._v(" "+t._s(e.value)+" ")])]}},{key:"option",fn:function(e){return[n("div",{staticClass:"d-center"},[t._v(" "+t._s(e.value)+" ")])]}}]),model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},Lt=[],It=(n("7514"),n("ee28")),Ft={name:"LinkControl",mixins:[f["a"]],data:function(){return Object(ot["a"])({searchValue:{value:this.value},linkControl:null,linkFilters:{},parentData:null,searchTerm:"",selectedItem:null,searchResults:[]},"parentData","")},mounted:function(){this.preload()},watch:{searchValue:function(t,e){this.updateValue(t.value)},valueContainer:{handler:function(t,e){null!=this.control.parentData&&null!=t[this.control.parentData]&&(this.parentData=t[this.control.parentData])},deep:!0},value:function(t){t&&t.length&&(this.searchValue={value:t,description:""})}},methods:{openConfig:function(){console.log(this.formData)},preload:function(){var t=this,e=t.control.searchFilters,n=t.control.parentData,o=t.control.parentConcept;if(null!=o&&o.length>0&&(this.linkFilters={parent_residence:o}),null!=n&&n.length>0){var r="parent_".concat(this.control.searchDocument.toLowerCase());this.linkFilters[r]=this.valueContainer[n]}null!=e&&e.length>0&&(this.linkFilters=JSON.parse(e))},fetchData:function(t,e,n){var o=this;Object(It["a"])({method:"frappe.desk.search.search_link",args:{txt:e,doctype:n.control.searchDocument,reference_doctype:"",filters:n.linkFilters}}).then((function(e){t(!1),o.$set(o,"searchResults",e.results)}))},handleSelect:function(t){this.selectedItem=this.searchResults.find((function(e){return e.id===t}))},onSearch:function(t,e){var n=this,o=n.control.searchFilters,r=n.control.parentData,i=n.control.parentConcept;null!=i&&i.length>0&&(this.linkFilters={parent_residence:i}),null!=r&&r.length>0&&(this.linkFilters={parent_residence:this.valueContainer[r]}),null!=o&&o.length>0&&(this.linkFilters=JSON.parse(o)),t.length&&(e(!0),this.fetchData(e,t,this))}}},Bt=Ft,Ut=Object(h["a"])(Bt,jt,Lt,!1,null,"58715031",null),$t=Ut.exports,Vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("b-row",[n("div",{ref:"doctype",staticClass:"ref-field-input",attrs:{id:"div-"+t.control.uniqueId}},[n("img",{style:[t.imageStyle],attrs:{src:t.control.imageUrl}})])]),n("b-row",{staticClass:"mt-3"},[n("input",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],class:t.controlFieldClass,attrs:{id:t.control.uniqueId,type:"text",name:t.control.name||t.control.uniqueId,placeholder:t.control.placeholderText},domProps:{value:t.value}})])],1)},Ht=[],Wt={name:"ImageSelectControl",mixins:[f["a"]],data:function(){return{searchValue:"",linkControl:null,imageStyle:{width:"".concat(this.control.width,"px"),height:"".concat(this.control.height,"px")}}},mounted:function(){},watch:{value:function(t){t&&t.length?this.linkControl.$input.val(t):this.linkControl.$input.val(" ")}},methods:{}},zt=Wt,Yt=Object(h["a"])(zt,Vt,Ht,!1,null,"32845e5a",null),Gt=Yt.exports,Kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.value?n("label",[t._v(t._s(t.value.split("/")))]):t._e(),t.url?n("label",[t._v(t._s(t.url))]):t._e(),n("b-button",{class:t.buttonClasses,attrs:{id:t.control.uniqueId,name:t.control.name},domProps:{textContent:t._s(t.url?"Show image":t.control.label)},on:{click:t.clickedHandle}})],1)},Jt=[],Xt=(n("28a5"),{name:"AttachmentControl",mixins:[f["a"]],data:function(){return{url:null}},computed:{urlVal:function(){if(this.value){var t=this.value.split("/");return t.length?t[t.length-1]:""}}},methods:{clickedHandle:function(){var t=this;new frappe.ui.FileUploaderCustom({doctype:t.control.document,docname:t.documentName,on_success:function(e){var n=e.file_url;e.filename;t.updateValue(n),t.url=n}})}}}),Zt=Xt,Qt=Object(h["a"])(Zt,Kt,Jt,!1,null,"11885ae4",null),te=Qt.exports,ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.readonly?t._e():n("div",{style:{"min-height":(t.control.height+130||330)+"px"}},[n("vue-editor",{style:{"min-height":(t.control.height||200)+"px","max-height":(3*t.control.height||600)+"px"},attrs:{value:t.value,id:t.control.uniqueId,type:"text",name:t.control.name||t.control.uniqueId,placeholder:t.control.placeholderText,"editor-toolbar":t.customToolbar},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),t.readonly?n("div",{domProps:{innerHTML:t._s(t.value)}}):t._e()])},ne=[],oe=n("5873"),re={name:"HtlmTextControl",mixins:[f["a"]],data:function(){return{customToolbar:[["bold","underline"],[{list:"ordered"}],[]]}},components:{VueEditor:oe["a"]},watch:{value:function(t){this.updateValue(t)}}},ie=re,ae=Object(h["a"])(ie,ee,ne,!1,null,"26d1daaa",null),le=ae.exports,se=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("b-time",{attrs:{id:t.control.uniqueId,value:t.value,"show-seconds":"",hour12:!1,locale:"en"},on:{input:t.dataChanged}},[n("div",{staticClass:"d-flex",attrs:{dir:"ltr"}},[t.value?n("b-button",{attrs:{size:"sm",variant:"outline-danger"},on:{click:t.clearTime}},[t._v(" Clear time ")]):t._e(),n("b-button",{staticClass:"ml-auto",attrs:{size:"sm",variant:"outline-primary"},on:{click:t.setNow}},[t._v(" Set Now ")])],1)])],1)},ce=[],ue={name:"TimeControl",mixins:[f["a"]],data:function(){return{searchValue:""}},methods:{setNow:function(){var t=new Date;this.value=t.toTimeString().slice(0,8)},clearTime:function(){this.value=""},dataChanged:function(t){this.updateValue(t)}}},fe=ue,de=Object(h["a"])(fe,se,ce,!1,null,"47516cd1",null),pe=de.exports,he=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"parent-"+t.control.uniqueId}},[n("div",[n("v-select",{attrs:{options:t.searchResults,label:"name",filterable:!1,placeholder:"Search"},on:{search:t.onSearch},scopedSlots:t._u([{key:"selected-option",fn:function(e){return[n("div",{staticClass:"selected d-center",domProps:{innerHTML:t._s(e.name)}})]}},{key:"option",fn:function(e){return[n("div",{staticClass:"d-center",domProps:{innerHTML:t._s(e.name)}})]}}]),model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},me=[],ve=(n("a481"),{name:"Icd11Control",mixins:[f["a"]],data:function(){return Object(ot["a"])({searchValue:null,linkControl:null,linkFilters:{},parentData:null,searchTerm:"",selectedItem:null,searchResults:[]},"parentData","")},mounted:function(){this.preload()},watch:{searchValue:function(t,e){null!=t&&t.length>0&&this.updateValue(t.replace(/<\/?[^>]+(>|$)/g,""))},valueContainer:{handler:function(t,e){null!=this.control.parentData&&null!=t[this.control.parentData]&&(this.parentData=t[this.control.parentData])},deep:!0},value:function(t){t&&t.length&&null==this.searchValue&&(this.searchValue=t)}},methods:{fetchData:function(t,e,n){var o=this;Object(It["a"])({method:"clinical.api.icd.auth.access_icd",args:{q:e}}).then((function(e){t(!1);var n=e.message.destinationEntities.map((function(t){return"".concat(t.theCode,"-").concat(t.title)}));o.$set(o,"searchResults",n)}))},handleSelect:function(t){this.selectedItem=this.searchResults.find((function(e){return e.id===t}))},onSearch:function(t,e){t.length&&(e(!0),this.fetchData(e,t,this))}}}),ye=ve,ge=Object(h["a"])(ye,he,me,!1,null,"43aeb4b4",null),be=ge.exports,_e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"parent-"+t.control.uniqueId}},[n("div",[n("v-select",{attrs:{options:t.searchResults,label:"name",filterable:!1,placeholder:"Search"},on:{search:t.onSearch},scopedSlots:t._u([{key:"selected-option",fn:function(e){return[n("div",{staticClass:"selected d-center"},[t._v(" "+t._s(e.id+" - "+e.display_name)+" ")])]}},{key:"option",fn:function(e){return[n("div",{staticClass:"d-center"},[t._v(" "+t._s(e.id)+" - "+t._s(e.display_name)+" ")])]}}]),model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},we=[],Oe={name:"NhddControl",mixins:[f["a"]],data:function(){return Object(ot["a"])({searchValue:null,linkControl:null,linkFilters:{},parentData:null,searchTerm:"",selectedItem:null,searchResults:[]},"parentData","")},watch:{searchValue:function(t,e){if(null!=t){var n="".concat(t.id," - ").concat(t.display_name);this.updateValue(n)}},valueContainer:{handler:function(t,e){null!=this.control.parentData&&null!=t[this.control.parentData]&&(this.parentData=t[this.control.parentData])},deep:!0},value:function(t){if(t&&t.length){if(null==this.searchValue){var e=t.split("-");this.searchValue={id:e[0],display_name:titles[1]}}}else;}},methods:{fetchData:function(t,e,n){var o=this;Object(It["a"])({method:"clinical.hie.api.search_terminology",args:{searchkey:e}}).then((function(e){t(!1);var n=e.message;o.$set(o,"searchResults",n)}))},handleSelect:function(t){this.selectedItem=this.searchResults.find((function(e){return e.id===t}))},onSearch:function(t,e){t.length&&(e(!0),this.fetchData(e,t,this))}}},xe=Oe,Ee=Object(h["a"])(xe,_e,we,!1,null,"e16eb290",null),ke=Ee.exports,Ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("b-form-input",{attrs:{id:t.control.uniqueId,value:t.value,type:"datetime-local"},on:{input:t.dataChanged}})],1)},Se=[],qe={name:"DateTimeControl",mixins:[f["a"]],data:function(){return{searchValue:""}},methods:{dataChanged:function(t){this.updateValue(t)}}},De=qe,Te=Object(h["a"])(De,Ce,Se,!1,null,"6eca649b",null),Re=Te.exports,Ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Text for Text-Block")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.control.text,expression:"control.text"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",rows:"6"},domProps:{value:t.control.text},on:{input:function(e){e.target.composing||t.$set(t.control,"text",e.target.value)}}})])])},Me=[],Pe=n("8ae1"),Ne={name:"TextBlockConfigView",mixins:[Pe["a"]]},je=Ne,Le=Object(h["a"])(je,Ae,Me,!1,null,null,null),Ie=Le.exports,Fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Button Type (Type Attribute)")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.buttonType,expression:"control.buttonType"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"buttonType",e.target.multiple?n:n[0])}}},t._l(t.buttonTypeList,(function(e){return n("option",{key:e,domProps:{value:e,textContent:t._s(e)}})})),0)]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Button Class (Type Attribute)")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.buttonClass,expression:"control.buttonClass"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"buttonClass",e.target.multiple?n:n[0])}}},t._l(t.buttonClasses,(function(e,o){return n("option",{key:e,domProps:{value:e}},[t._v(" "+t._s(o)+" ("+t._s(e)+") ")])})),0)]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Run validation before emitting? "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.isRunValidation,expression:"control.isRunValidation"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.control.isRunValidation)?t._i(t.control.isRunValidation,null)>-1:t.control.isRunValidation},on:{change:function(e){var n=t.control.isRunValidation,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"isRunValidation",n.concat([i])):a>-1&&t.$set(t.control,"isRunValidation",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"isRunValidation",r)}}})])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Emitting Code "),n("IconTooltip",{attrs:{icon:"informationOutline",text:"V-Form will $emit an Event with <strong>YOUR CODE</strong>"}})],1),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.emitEventCode,expression:"control.emitEventCode"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.emitEventCode},on:{input:function(e){e.target.composing||t.$set(t.control,"emitEventCode",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Emitting Value "),n("IconTooltip",{attrs:{icon:"informationOutline",text:"Specific Data-String when V-Form performs invoke $emit"}})],1),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.emitEventData,expression:"control.emitEventData"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.emitEventData},on:{input:function(e){e.target.composing||t.$set(t.control,"emitEventData",e.target.value)}}})])])},Be=[],Ue={name:"ButtonConfigView",mixins:[Pe["a"]],computed:{buttonTypeList:function(){return["button","submit","clear"]},buttonClasses:function(){return this.styles.BUTTON}}},$e=Ue,Ve=Object(h["a"])($e,Fe,Be,!1,null,null,null),He=Ve.exports,We=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("For-Attribute to Control?")]),n("select",{class:t.styles.FORM.FORM_CONTROL,on:{input:t.selectedFor}},[n("option",[t._v("None")]),t._l(t.listControlData,(function(e){return n("option",{key:e.value,domProps:{value:e.value,textContent:t._s(e.text)}})}))],2)])])},ze=[],Ye="label-selected",Ge={name:"LabelConfigView",mixins:[Pe["a"]],data:function(){return{listControlData:[]}},methods:{selectedFor:function(t){this.clearAllMapped(),this.control.forAttribute=t.target.value,this.control.forAttribute&&this.labelMappedAssign(this.control.forAttribute)},labelMappedAssign:function(t){var e=document.getElementById(t);e&&e.parentNode&&e.parentNode.classList.add(Ye)},clearAllMapped:function(){this.listControlData.forEach((function(t){var e=document.getElementById(t.value);e&&e.parentNode&&e.parentNode.classList.remove(Ye)}))}},created:function(){for(var t=Object.keys(this.formData.controls),e=0,n=t;e<n.length;e++){var o=n[e];if(o!==this.control.uniqueId&&"label"!==this.formData.controls[o].type){var r=this.formData.controls[o],i="".concat(r.label," - #").concat(r.uniqueId);r.name&&(i="".concat(r.label," - ").concat(r.name)),this.listControlData.push(new Rt(o,i))}}this.control.forAttribute&&this.labelMappedAssign(this.control.forAttribute)},beforeDestroy:function(){this.clearAllMapped()}},Ke=Ge,Je=Object(h["a"])(Ke,We,ze,!1,null,null,null),Xe=Je.exports,Ze=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Display Mode")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.displayMode,expression:"control.displayMode"}],class:t.styles.FORM.FORM_CONTROL,on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"displayMode",e.target.multiple?n:n[0])}}},t._l(t.listDisplayModes,(function(e){return n("option",{key:e.val,domProps:{value:e.val,textContent:t._s(e.description)}})})),0)]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Display Position")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.position,expression:"control.position"}],class:t.styles.FORM.FORM_CONTROL,on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"position",e.target.multiple?n:n[0])}}},t._l(t.listPositions,(function(e){return n("option",{key:e.val,domProps:{value:e.val,textContent:t._s(e.description)}})})),0)]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" List Selections "),n("span",{staticClass:"pointer",domProps:{innerHTML:t._s(t.$form.getIcon("addOutline","16px","16px","green"))},on:{click:t.addListItem}})]),t._l(t.control.items,(function(e,o){return n("div",{key:o,class:["list-selection"]},[n("div",{staticClass:"tool-block"},[n("span",{staticClass:"pointer",domProps:{innerHTML:t._s(t.$form.getIcon("close","16px","16px","red"))},on:{click:function(e){return t.removeListItem(o)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Item Value")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"listItem.value"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Radio/Checkbox-Value"},domProps:{value:e.value},on:{input:function(n){n.target.composing||t.$set(e,"value",n.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Label Text")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"listItem.text"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Label text"},domProps:{value:e.text},on:{input:function(n){n.target.composing||t.$set(e,"text",n.target.value)}}})])])}))],2)])},Qe=[],tn={name:"RadioCheckboxConfigView",mixins:[Pe["a"]],methods:{addListItem:function(){this.control.items.push(new Rt("",""))},removeListItem:function(t){this.control.items.splice(t,1)}},computed:{listDisplayModes:function(){return r},listPositions:function(){return i}}},en=tn,nn=Object(h["a"])(en,Ze,Qe,!1,null,null,null),on=nn.exports,rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Is Real Number (Float/Double) "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.isReal,expression:"control.isReal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.control.isReal)?t._i(t.control.isReal,null)>-1:t.control.isReal},on:{change:function(e){var n=t.control.isReal,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"isReal",n.concat([i])):a>-1&&t.$set(t.control,"isReal",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"isReal",r)}}})])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Read Only (Float/Double) "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.isReadOnly,expression:"control.isReadOnly"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.control.isReadOnly)?t._i(t.control.isReadOnly,null)>-1:t.control.isReadOnly},on:{change:function(e){var n=t.control.isReadOnly,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"isReadOnly",n.concat([i])):a>-1&&t.$set(t.control,"isReadOnly",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"isReadOnly",r)}}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.control.isReal,expression:"control.isReal"}],class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Decimal Places")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.decimalPlace,expression:"control.decimalPlace",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number",step:"1",min:"0",max:"10"},domProps:{value:t.control.decimalPlace},on:{input:function(e){e.target.composing||t.$set(t.control,"decimalPlace",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])},an=[],ln={name:"NumberConfigView",mixins:[Pe["a"]]},sn=ln,cn=Object(h["a"])(sn,rn,an,!1,null,null,null),un=cn.exports,fn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Data Return Type")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.returnType,expression:"control.returnType"}],class:t.styles.FORM.FORM_CONTROL,on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"returnType",e.target.multiple?n:n[0])}}},t._l(t.listReturnTypes,(function(e){return n("option",{key:e.val,domProps:{value:e.val,textContent:t._s(e.description)}})})),0)]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.control.returnType===t.listReturnTypes.format.val,expression:"control.returnType === listReturnTypes.format.val"}],class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Date Format")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.format,expression:"control.format"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.format},on:{input:function(e){e.target.composing||t.$set(t.control,"format",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Start Date of the Week")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.firstDay,expression:"control.firstDay"}],class:t.styles.FORM.FORM_CONTROL,on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"firstDay",e.target.multiple?n:n[0])}}},t._l(t.listStartDates,(function(e){return n("option",{key:e.val,domProps:{value:e.val,textContent:t._s(e.description)}})})),0)]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Minimum Date "),n("IconTooltip",{attrs:{icon:"informationOutline",text:"Follow this format: YYYY-MM-DD. Empty for none."}})],1),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.minDate,expression:"control.minDate"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.minDate},on:{input:function(e){e.target.composing||t.$set(t.control,"minDate",e.target.value)}}}),n("small",[t._v("Minimum Date can be selected in the Calendar")])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Maximum Date "),n("IconTooltip",{attrs:{icon:"informationOutline",text:"Follow this format: YYYY-MM-DD. Empty for none."}})],1),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.maxDate,expression:"control.maxDate"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.maxDate},on:{input:function(e){e.target.composing||t.$set(t.control,"maxDate",e.target.value)}}}),n("small",[t._v("Maximum Date can be selected in the Calendar")])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Enable Date-Range? "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.singleMode,expression:"control.singleMode"}],attrs:{type:"checkbox",name:"enableDateRange","true-value":!1,"false-value":!0},domProps:{checked:Array.isArray(t.control.singleMode)?t._i(t.control.singleMode,null)>-1:t._q(t.control.singleMode,!1)},on:{change:function(e){var n=t.control.singleMode,o=e.target,r=!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"singleMode",n.concat([i])):a>-1&&t.$set(t.control,"singleMode",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"singleMode",r)}}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.control.singleMode,expression:"!control.singleMode"}],class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Minimum Day in Range (0 for none)")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.minDays,expression:"control.minDays",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number",step:"1"},domProps:{value:t.control.minDays},on:{input:function(e){e.target.composing||t.$set(t.control,"minDays",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.control.singleMode,expression:"!control.singleMode"}],class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Maximum Day in Range (0 for none)")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.maxDays,expression:"control.maxDays",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number",step:"1"},domProps:{value:t.control.maxDays},on:{input:function(e){e.target.composing||t.$set(t.control,"maxDays",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Number of Months")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.numberOfMonths,expression:"control.numberOfMonths",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number",step:"1"},domProps:{value:t.control.numberOfMonths},on:{input:function(e){e.target.composing||t.$set(t.control,"numberOfMonths",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),n("small",[t._v("Number of Months will be shown up")])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Number of Columns")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.numberOfColumns,expression:"control.numberOfColumns",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number",step:"1"},domProps:{value:t.control.numberOfColumns},on:{input:function(e){e.target.composing||t.$set(t.control,"numberOfColumns",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),n("small",[t._v("Number of Columns will be shown up")])])])},dn=[],pn={name:"DatePickerConfigView",mixins:[Pe["a"]],computed:{listReturnTypes:function(){return a},listStartDates:function(){return l}}},hn=pn,mn=Object(h["a"])(hn,fn,dn,!1,null,null,null),vn=mn.exports,yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Number of Rows")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.rows,expression:"control.rows",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number",step:"1"},domProps:{value:t.control.rows},on:{input:function(e){e.target.composing||t.$set(t.control,"rows",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),n("small",[t._v("`row` HTML Attribute Configuration")])])])},gn=[],bn={name:"TextConfigView",mixins:[Pe["a"]]},_n=bn,wn=Object(h["a"])(_n,yn,gn,!1,null,null,null),On=wn.exports,xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Multiple Selection? "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.multiple,expression:"control.multiple"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.control.multiple)?t._i(t.control.multiple,null)>-1:t.control.multiple},on:{change:function(e){var n=t.control.multiple,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"multiple",n.concat([i])):a>-1&&t.$set(t.control,"multiple",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"multiple",r)}}})])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Option-Data-List Mode")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.dataMode,expression:"control.dataMode"}],class:t.styles.FORM.FORM_CONTROL,on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"dataMode",e.target.multiple?n:n[0])}}},t._l(t.listDataModes,(function(e){return n("option",{key:e.val,domProps:{value:e.val,textContent:t._s(e.description)}})})),0)]),n("div",{directives:[{name:"show",rawName:"v-show",value:this.control.dataMode===t.listDataModes.api.val,expression:"this.control.dataMode === listDataModes.api.val"}]},[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Rest-API URL "),n("icon-tooltip",{attrs:{icon:"informationOutline",text:"Your API-Endpoint URL - GET Method. It must return an Array. Read more on Documentation"}})],1),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.apiURL,expression:"control.apiURL"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"https://your-domain/rest-api/get-list/..."},domProps:{value:t.control.apiURL},on:{input:function(e){e.target.composing||t.$set(t.control,"apiURL",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Value Key of your Object "),n("icon-tooltip",{attrs:{icon:"informationOutline",text:"[{'value': '',...}] => value"}})],1),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.apiValueKey,expression:"control.apiValueKey"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.apiValueKey},on:{input:function(e){e.target.composing||t.$set(t.control,"apiValueKey",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Text Key of your Object "),n("icon-tooltip",{attrs:{icon:"informationOutline",text:"[{'text': '',...}] => text"}})],1),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.apiTextKey,expression:"control.apiTextKey"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.apiTextKey},on:{input:function(e){e.target.composing||t.$set(t.control,"apiTextKey",e.target.value)}}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:this.control.dataMode===t.listDataModes.list.val,expression:"this.control.dataMode === listDataModes.list.val"}],class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" List Options "),n("span",{staticClass:"pointer",domProps:{innerHTML:t._s(t.$form.getIcon("addOutline","16px","16px","green"))},on:{click:t.addListItem}})]),t._l(t.control.items,(function(e,o){return n("div",{key:o,class:["list-selection"]},[n("div",{staticClass:"tool-block"},[n("span",{staticClass:"pointer",domProps:{innerHTML:t._s(t.$form.getIcon("close","16px","16px","red"))},on:{click:function(e){return t.removeListItem(o)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Item Value")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"listItem.value"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Radio-Value"},domProps:{value:e.value},on:{input:function(n){n.target.composing||t.$set(e,"value",n.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Label Text")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"listItem.text"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:"Label text"},domProps:{value:e.text},on:{input:function(n){n.target.composing||t.$set(e,"text",n.target.value)}}})])])}))],2)])},En=[],kn={name:"DropdownConfigView",mixins:[Pe["a"]],methods:{addListItem:function(){this.control.items.push(new Rt("",""))},removeListItem:function(t){this.control.items.splice(t,1)}},computed:{listDataModes:function(){return s}}},Cn=kn,Sn=Object(h["a"])(Cn,xn,En,!1,null,null,null),qn=Sn.exports,Dn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Search Document")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.searchDocument,expression:"control.searchDocument"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.searchDocument},on:{input:function(e){e.target.composing||t.$set(t.control,"searchDocument",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Search document field")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.searchDocumentField,expression:"control.searchDocumentField"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.searchDocumentField},on:{input:function(e){e.target.composing||t.$set(t.control,"searchDocumentField",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Parent")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.parentData,expression:"control.parentData"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.parentData},on:{input:function(e){e.target.composing||t.$set(t.control,"parentData",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Static parent (If tree)")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.parentConcept,expression:"control.parentConcept"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.parentConcept},on:{input:function(e){e.target.composing||t.$set(t.control,"parentConcept",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Search Filters")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.control.searchFilters,expression:"control.searchFilters"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",rows:"6"},domProps:{value:t.control.searchFilters},on:{input:function(e){e.target.composing||t.$set(t.control,"searchFilters",e.target.value)}}})])])},Tn=[],Rn={name:"LinkConfigView",mixins:[Pe["a"]]},An=Rn,Mn=Object(h["a"])(An,Dn,Tn,!1,null,null,null),Pn=Mn.exports,Nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Document")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.document,expression:"control.document"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.document},on:{input:function(e){e.target.composing||t.$set(t.control,"document",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Document name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.documentName,expression:"control.documentName"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.documentName},on:{input:function(e){e.target.composing||t.$set(t.control,"documentName",e.target.value)}}})])])},jn=[],Ln={name:"AttachmentConfigView",mixins:[Pe["a"]]},In=Ln,Fn=Object(h["a"])(In,Nn,jn,!1,null,null,null),Bn=Fn.exports,Un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Hide header")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.hideHeader,expression:"control.hideHeader",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.control.hideHeader)?t._i(t.control.hideHeader,null)>-1:t.control.hideHeader},on:{change:function(e){var n=t.control.hideHeader,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=t._n(null),a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"hideHeader",n.concat([i])):a>-1&&t.$set(t.control,"hideHeader",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"hideHeader",r)}}})])])},$n=[],Vn={name:"TimeConfigView",mixins:[Pe["a"]]},Hn=Vn,Wn=Object(h["a"])(Hn,Un,$n,!1,null,null,null),zn=Wn.exports,Yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Height ")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.control.height,expression:"control.height",modifiers:{number:!0}}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number",step:"1"},domProps:{value:t.control.height},on:{input:function(e){e.target.composing||t.$set(t.control,"height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),n("small",[t._v("`row` Height of the editor")])])])},Gn=[],Kn={name:"TextConfigView",mixins:[Pe["a"]]},Jn=Kn,Xn=Object(h["a"])(Jn,Yn,Gn,!1,null,null,null),Zn=Xn.exports,Qn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("ImageUrl: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.imageUrl,expression:"control.imageUrl"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.imageUrl},on:{input:function(e){e.target.composing||t.$set(t.control,"imageUrl",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Height: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.height,expression:"control.height"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number"},domProps:{value:t.control.height},on:{input:function(e){e.target.composing||t.$set(t.control,"height",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Width: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.width,expression:"control.width"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"number"},domProps:{value:t.control.width},on:{input:function(e){e.target.composing||t.$set(t.control,"width",e.target.value)}}})])])},to=[],eo={name:"ImageSelectConfigView",mixins:[Pe["a"]]},no=eo,oo=Object(h["a"])(no,Qn,to,!1,null,null,null),ro=oo.exports,io={input:{name:"Input Field",description:"Input text single line",icon:"editPencil",fieldComponent:v},icd11:{name:"Icd11",description:"Icd 11 tool",icon:"editPencil",fieldComponent:be},nhdd:{name:"nhdd",description:"nhdd",icon:"editPencil",fieldComponent:ke},link:{name:"Link Field",description:"Add searchable items",icon:"editPencil",fieldComponent:$t,configComponent:Pn},imageSelect:{name:"ImageSelect Field",description:"Select Image",icon:"editPencil",fieldComponent:Gt,configComponent:ro},attachment:{name:"Attachment Field",description:"Add attachment",icon:"editPencil",fieldComponent:te,configComponent:Bn},time:{name:"Time Field",description:"Add time selection",icon:"editPencil",fieldComponent:pe,configComponent:zn},datetime:{name:"Date Time Field",description:"Date Time",icon:"editPencil",fieldComponent:Re,configComponent:zn},htmlText:{name:"Formatted Text Field",description:"For fomated long text",icon:"editPencil",fieldComponent:le,configComponent:Zn},number:{name:"Number Input Field",description:"Input text single line - Number Only",configData:{isReal:!1,decimalPlace:1},fieldComponent:Ct,configComponent:un,rendererDefaultData:function(){return 0}},text:{name:"Text Field",description:"Multiple line text field",configData:{rows:3},fieldComponent:O,configComponent:On},date:{name:"Date Picker",description:"Simple date picker field",fieldComponent:_t,configComponent:zn},datex:{name:"Date Picker",description:"Simple date picker field",configData:{format:"YYYY-MM-DD",firstDay:l.monday.val,numberOfMonths:1,numberOfColumns:1,minDate:null,maxDate:null,singleMode:!0,minDays:0,maxDays:0,returnType:a.format.val},fieldComponent:ht,configComponent:vn},dropDown:{name:"Dropdown",description:"Dropdown select from a list",configData:{dataMode:s.list.val,multiple:!1,items:[],apiURL:"",apiTextKey:"text",apiValueKey:"value"},fieldComponent:Nt,configComponent:qn},checkbox:{name:"Checkbox List",description:"Checkbox list items (Multiple Select)",configData:{displayMode:r.line.val,position:i.left.val,items:[]},fieldComponent:tt,configComponent:on,rendererDefaultData:function(){return[]}},radio:{name:"Radio List",description:"Radio-Button list items (Single Select)",configData:{displayMode:r.line.val,position:i.left.val,items:[]},fieldComponent:tt,configComponent:on},label:{name:"Label",description:"Simple label text show up in your Form",disableValue:!0,configData:{forAttribute:null,isShowLabel:!1},disableValidation:!0,fieldComponent:G,configComponent:Xe},button:{name:"Button",description:"Simple button for your own purpose",disableValidation:!0,disableValue:!0,configData:{buttonClass:o["a"].BUTTON.PRIMARY,buttonType:"button",emitEventCode:"",emitEventData:"",isRunValidation:!1,isShowLabel:!1},fieldComponent:T,configComponent:He},emptyBlock:{name:"Empty Block",description:"Empty block to design your section/row.",disableValidation:!0,disableValue:!0,fieldComponent:j,configData:{isShowLabel:!1}},textBlock:{name:"Text Block",description:"Block with text only (without any controls)",disableValidation:!0,disableValue:!0,fieldComponent:$,configComponent:Ie,configData:{text:""}}},ao={uniqueId:"",type:"",name:"",label:"",subLabel:"",isShowLabel:!0,placeholderText:"",containerClass:o["a"].COLUMNS.COL6,additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[],hideCondition:"",mappedField:""},lo=[{uniqueId:"control-7be0c01a-9b18-411f-9c9a-07eb5efec813",type:"emptyBlock",name:"",label:"Empty Block",description:"Horizontal Block for form spacing and detached titles ",subLabel:"",isShowLabel:!1,placeholderText:"",containerClass:"col-md-12",additionalContainerClass:"mt-2 mb-2",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[]},{uniqueId:"control-57f2738e-6f19-4721-b2a7-c973c41232fd",type:"textBlock",name:"",label:"Text Block",description:"Used to add additional information to the form",subLabel:"",isShowLabel:!0,placeholderText:"",containerClass:"col-md-12",additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[],text:""}]},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(t,e,n){var o=n("5ca1"),r=n("990b"),i=n("6821"),a=n("11e9"),l=n("f1ae");o(o.S,"Object",{getOwnPropertyDescriptors:function(t){var e,n,o=i(t),s=a.f,c=r(o),u={},f=0;while(c.length>f)n=s(o,e=c[f++]),void 0!==n&&l(u,e,n);return u}})},"8f60":function(t,e,n){"use strict";var o=n("a159"),r=n("aebd"),i=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=o(a,{next:r(1,n)}),i(t,e+" Iterator")}},9003:function(t,e,n){var o=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==o(t)}},9093:function(t,e,n){var o=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},9138:function(t,e,n){t.exports=n("35e8")},9152:function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,n,o,r){var i,a,l=8*r-o-1,s=(1<<l)-1,c=s>>1,u=-7,f=n?r-1:0,d=n?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+t[e+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+t[e+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=c}return(p?-1:1)*a*Math.pow(2,i-o)},e.write=function(t,e,n,o,r,i){var a,l,s,c=8*i-r-1,u=(1<<c)-1,f=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:i-1,h=o?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+f>=1?d/s:d*Math.pow(2,1-f),e*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(e*s-1)*Math.pow(2,r),a+=f):(l=e*Math.pow(2,f-1)*Math.pow(2,r),a=0));r>=8;t[n+p]=255&l,p+=h,l/=256,r-=8);for(a=a<<r|l,c+=r;c>0;t[n+p]=255&a,p+=h,a/=256,c-=8);t[n+p-h]|=128*m}},9339:function(t,e,n){(function(e){
/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),a=n(45),l=n(46),s=n(47),c=n(48),u=n(49),f=n(12),d=n(32),p=n(33),h=n(31),m=n(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:c.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:u.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=v},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return o(e,t),e}(Error);e.ParchmentError=r;var i,a={},l={},s={},c={};function u(t,e){var n=d(t);if(null==n)throw new r("Unable to create "+t+" blot");var o=n,i=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:o.create(e);return new o(i,e)}function f(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?f(t.parentNode,n):null}function d(t,e){var n;if(void 0===e&&(e=i.ANY),"string"===typeof t)n=c[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=c["text"];else if("number"===typeof t)t&i.LEVEL&i.BLOCK?n=c["block"]:t&i.LEVEL&i.INLINE&&(n=c["inline"]);else if(t instanceof HTMLElement){var o=(t.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=l[o[r]],n)break;n=n||s[t.tagName]}return null==n?null:e&i.LEVEL&n.scope&&e&i.TYPE&n.scope?n:null}function p(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return p(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");if(c[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var o=Array.isArray(n.tagName)?n.tagName:[n.tagName];o.forEach((function(t){null!=s[t]&&null!=n.className||(s[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(i=e.Scope||(e.Scope={})),e.create=u,e.find=f,e.query=d,e.register=p},function(t,e,n){var o=n(51),r=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(r(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(o){var r=t(o)?e:n;r.push(o)})),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},s.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},s.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],o=a.iterator(this.ops),r=0;while(r<e&&o.hasNext()){var i;r<t?i=o.next(t-r):(i=o.next(e-r),n.push(i)),r+=a.length(i)}return new s(n)},s.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),o=[],i=n.peek();if(null!=i&&"number"===typeof i.retain&&null==i.attributes){var l=i.retain;while("insert"===e.peekType()&&e.peekLength()<=l)l-=e.peekLength(),o.push(e.next());i.retain-l>0&&n.next(i.retain-l)}var c=new s(o);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())c.push(n.next());else if("delete"===e.peekType())c.push(e.next());else{var u=Math.min(e.peekLength(),n.peekLength()),f=e.next(u),d=n.next(u);if("number"===typeof d.retain){var p={};"number"===typeof f.retain?p.retain=u:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"===typeof f.retain);if(h&&(p.attributes=h),c.push(p),!n.hasNext()&&r(c.ops[c.ops.length-1],p)){var m=new s(e.rest());return c.concat(m).chop()}}else"number"===typeof d["delete"]&&"number"===typeof f.retain&&c.push(d)}return c.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:l;var o=e===t?"on":"with";throw new Error("diff() called "+o+" non-document")})).join("")})),i=new s,c=o(n[0],n[1],e),u=a.iterator(this.ops),f=a.iterator(t.ops);return c.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case o.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case o.DELETE:n=Math.min(e,u.peekLength()),u.next(n),i["delete"](n);break;case o.EQUAL:n=Math.min(u.peekLength(),f.peekLength(),e);var l=u.next(n),s=f.next(n);r(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s)["delete"](n);break}e-=n}})),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),o=new s,r=0;while(n.hasNext()){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),c="string"===typeof i.insert?i.insert.indexOf(e,l)-l:-1;if(c<0)o.push(n.next());else if(c>0)o.push(n.next(c));else{if(!1===t(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&t(o,{},r)},s.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),o=a.iterator(t.ops),r=new s;while(n.hasNext()||o.hasNext())if("insert"!==n.peekType()||!e&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),l=n.next(i),c=o.next(i);if(l["delete"])continue;c["delete"]?r.push(c):r.retain(i,a.attributes.transform(l.attributes,c.attributes,e))}else r.retain(a.length(n.next()));return r.chop()},s.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),o=0;while(n.hasNext()&&o<=t){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<t||!e)&&(t+=r),o+=r):t-=Math.min(r,t-o)}return t},t.exports=s},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)},l=function(t){if(!t||"[object Object]"!==o.call(t))return!1;var e,r=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)},s=function(t,e){r&&"__proto__"===e.name?r(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},c=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,o,r,i,u,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<p;++d)if(e=arguments[d],null!=e)for(n in e)o=c(f,n),r=c(e,n),f!==r&&(h&&r&&(l(r)||(i=a(r)))?(i?(i=!1,u=o&&a(o)?o:[]):u=o&&l(o)?o:{},s(f,{name:n,newValue:t(h,u,r)})):"undefined"!==typeof r&&s(f,{name:n,newValue:r}));return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(3),a=y(i),l=n(2),s=y(l),c=n(0),u=y(c),f=n(16),d=y(f),p=n(6),h=y(p),m=n(7),v=y(m);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var w=1,O=function(t){function e(){return g(this,e),b(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _(e,t),o(e,[{key:"attach",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new u.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=u.default.query(t,u.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,o){this.format(n,o)}},{key:"insertAt",value:function(t,n,o){if("string"===typeof n&&n.endsWith("\n")){var i=u.default.create(x.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,o)}}]),e}(u.default.Embed);O.scope=u.default.Scope.BLOCK_BLOT;var x=function(t){function e(t){g(this,e);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return _(e,t),o(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(u.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),E(e))}),new s.default).insert("\n",E(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,o,i){n<=0||(u.default.query(o,u.default.Scope.BLOCK)?t+n===this.length()&&this.format(o,i):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),o,i),this.cache={})}},{key:"insertAt",value:function(t,n,o){if(null!=o)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,o);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(t,e){return l=l.split(t,!0),l.insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var o=this.children.head;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),o instanceof d.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-w)){var o=this.clone();return 0===t?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(u.default.Block);function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:E(t.parent,e))}x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[h.default,u.default.Embed,v.default],e.bubbleFormats=E,e.BlockEmbed=O,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var 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},r=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();n(50);var a=n(2),l=E(a),s=n(14),c=E(s),u=n(8),f=E(u),d=n(9),p=E(d),h=n(0),m=E(h),v=n(15),y=E(v),g=n(3),b=E(g),_=n(10),w=E(_),O=n(34),x=E(O);function E(t){return t&&t.__esModule?t:{default:t}}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var S=(0,w.default)("quill"),q=function(){function t(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(C(this,t),this.options=D(e,o),this.container=this.options.container,null==this.container)return S.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,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 f.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new y.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(f.default.events.EDITOR_CHANGE,(function(t){t===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(t,e){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;T.call(n,(function(){return n.editor.update(null,e,r)}),t)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),w.default.level(t)}},{key:"find",value:function(t){return t.__quill||m.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&S.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var r=t.attrName||t.blotName;"string"===typeof r?this.register("formats/"+r,t,e):Object.keys(t).forEach((function(o){n.register(o,t[o],e)}))}else null==this.imports[t]||o||S.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?m.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var o=this,i=R(t,e,n),a=r(i,4);return t=a[0],e=a[1],n=a[3],T.call(this,(function(){return o.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return T.call(this,(function(){var o=n.getSelection(!0),r=new l.default;if(null==o)return r;if(m.default.query(t,m.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,k({},t,e));else{if(0===o.length)return n.selection.format(t,e),r;r=n.editor.formatText(o.index,o.length,k({},t,e))}return n.setSelection(o,f.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(t,e,n,o,i){var a=this,l=void 0,s=R(t,e,n,o,i),c=r(s,4);return t=c[0],e=c[1],l=c[2],i=c[3],T.call(this,(function(){return a.editor.formatLine(t,e,l)}),i,t,0)}},{key:"formatText",value:function(t,e,n,o,i){var a=this,l=void 0,s=R(t,e,n,o,i),c=r(s,4);return t=c[0],e=c[1],l=c[2],i=c[3],T.call(this,(function(){return a.editor.formatText(t,e,l)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=R(t,e),o=r(n,2);return t=o[0],e=o[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=R(t,e),o=r(n,2);return t=o[0],e=o[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return T.call(this,(function(){return r.editor.insertEmbed(e,n,o)}),i,e)}},{key:"insertText",value:function(t,e,n,o,i){var a=this,l=void 0,s=R(t,0,n,o,i),c=r(s,4);return t=c[0],l=c[2],i=c[3],T.call(this,(function(){return a.editor.insertText(t,e,l)}),i,t,e.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(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var o=this,i=R(t,e,n),a=r(i,4);return t=a[0],e=a[1],n=a[3],T.call(this,(function(){return o.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return T.call(this,(function(){t=new l.default(t);var n=e.getLength(),o=e.editor.deleteText(0,n),r=e.editor.applyDelta(t),i=r.ops[r.ops.length-1];null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),r.delete(1));var a=o.compose(r);return a}),n)}},{key:"setSelection",value:function(e,n,o){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=R(e,n,o),a=r(i,4);e=a[0],n=a[1],o=a[3],this.selection.setRange(new v.Range(e,n),o),o!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,n=(new l.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return T.call(this,(function(){return t=new l.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function D(t,e){if(e=(0,b.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==q.DEFAULTS.theme){if(e.theme=q.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=x.default;var n=(0,b.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(e.modules)),r=o.reduce((function(t,e){var n=q.import("modules/"+e);return null==n?S.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,b.default)(!0,{},q.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function T(t,e,n,o){if(this.options.strict&&!this.isEnabled()&&e===f.default.sources.USER)return new l.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=r&&(!0===n&&(n=r.index),null==o?r=A(r,a,e):0!==o&&(r=A(r,n,o,e)),this.setSelection(r,f.default.sources.SILENT)),a.length()>0){var s,c,u=[f.default.events.TEXT_CHANGE,a,i,e];if((s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(u)),e!==f.default.sources.SILENT)(c=this.emitter).emit.apply(c,u)}return a}function R(t,e,n,r,i){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(i=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(i=r,r=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":o(n))?(a=n,i=r):"string"===typeof n&&(null!=r?a[n]=r:i=n),i=i||f.default.sources.API,[t,e,a,i]}function A(t,e,n,o){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof l.default){var s=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,o!==f.default.sources.USER)})),c=r(s,2);i=c[0],a=c[1]}else{var u=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&o===f.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),d=r(u,2);i=d[0],a=d[1]}return new v.Range(i,a-i)}q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=f.default.events,q.sources=f.default.sources,q.version="1.3.7",q.imports={delta:l.default,parchment:m.default,"core/module":p.default,"core/theme":x.default},e.expandConfig=D,e.overload=R,e.default=q},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(7),a=c(i),l=n(0),s=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var p=function(t){function e(){return u(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),o(e,[{key:"formatAt",value:function(t,n,o,i){if(e.compare(this.statics.blotName,o)<0&&s.default.query(o,s.default.Scope.BLOT)){var a=this.isolate(t,n);i&&a.wrap(o,i)}else r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,o,i)}},{key:"optimize",value:function(t){if(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var o=e.order.indexOf(t),r=e.order.indexOf(n);return o>=0||r>=0?o-r:t===n?0:t<n?-1:1}}]),e}(s.default.Inline);p.allowedChildren=[p,s.default.Embed,a.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var c=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(r.default.Text);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(54),a=c(i),l=n(10),s=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var p=(0,s.default)("quill:events"),h=["selectionchange","mousedown","mouseup","click"];h.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var m=function(t){function e(){u(this,e);var t=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",p.error),t}return d(e,t),o(e,[{key:"emit",value:function(){p.log.apply(p,arguments),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];(this.listeners[t.type]||[]).forEach((function(e){var o=e.node,r=e.handler;(t.target===o||o.contains(t.target))&&r.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(a.default);m.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"},m.sources={API:"api",SILENT:"silent",USER:"user"},e.default=m},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(t){if(o.indexOf(t)<=o.indexOf(r)){for(var e,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(e=console)[t].apply(e,i)}}function a(t){return o.reduce((function(e,n){return e[n]=i.bind(console,n,t),e}),{})}i.level=a.level=function(t){r=t},e.default=a},function(t,e,n){var o=Array.prototype.slice,r=n(52),i=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:c(t,e,n))};function l(t){return null===t||void 0===t}function s(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function c(t,e,n){var c,u;if(l(t)||l(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=o.call(t),e=o.call(e),a(t,e,n));if(s(t)){if(!s(e))return!1;if(t.length!==e.length)return!1;for(c=0;c<t.length;c++)if(t[c]!==e[c])return!1;return!0}try{var f=r(t),d=r(e)}catch(p){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),c=f.length-1;c>=0;c--)if(f[c]!=d[c])return!1;for(c=f.length-1;c>=0;c--)if(u=f[c],!a(t[u],e[u],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=o.query(t,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var o=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(2),l=v(a),s=n(0),c=v(s),u=n(4),f=v(u),d=n(6),p=v(d),h=n(7),m=v(h);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var _=function(t){function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),e}(p.default);_.blotName="code",_.tagName="CODE";var w=function(t){function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),r(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new l.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(m.default,this.length()-1),a=o(r,1),l=a[0];null!=l&&l.deleteAt(l.length()-1,1),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,o,r){if(0!==n&&null!=c.default.query(o,c.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var a=this.newlineIndex(t,!0)+1,l=i-a+1,s=this.isolate(a,l),u=s.next;s.format(o,r),u instanceof e&&u.formatAt(0,t-a+n-l,o,r)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(m.default,t),i=o(r,2),a=i[0],l=i[1];a.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(c.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=c.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof c.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(f.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",e.Code=_,e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var 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},r=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=n(2),l=C(a),s=n(20),c=C(s),u=n(0),f=C(u),d=n(13),p=C(d),h=n(24),m=C(h),v=n(4),y=C(v),g=n(16),b=C(g),_=n(21),w=C(_),O=n(11),x=C(O),E=n(3),k=C(E);function C(t){return t&&t.__esModule?t:{default:t}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,T=function(){function t(e){q(this,t),this.scroll=e,this.delta=this.getDelta()}return i(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),t=A(t),t.reduce((function(t,a){var l=a.retain||a.delete||a.insert.length||1,s=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var u=a.insert;u.endsWith("\n")&&n&&(n=!1,u=u.slice(0,-1)),t>=i&&!u.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,u);var d=e.scroll.line(t),p=r(d,2),h=p[0],m=p[1],g=(0,k.default)({},(0,v.bubbleFormats)(h));if(h instanceof y.default){var b=h.descendant(f.default.Leaf,m),_=r(b,1),w=_[0];g=(0,k.default)(g,(0,v.bubbleFormats)(w))}s=c.default.attributes.diff(g,s)||{}}else if("object"===o(a.insert)){var O=Object.keys(a.insert)[0];if(null==O)return t;e.scroll.insertAt(t,O,a.insert[O])}i+=l}return Object.keys(s).forEach((function(n){e.scroll.formatAt(t,l,n,s[n])})),t+l}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new l.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(t,Math.max(e,1)),a=e;i.forEach((function(e){var i=e.length();if(e instanceof p.default){var l=t-e.offset(n.scroll),s=e.newlineIndex(l+a)-l+1;e.formatAt(l,s,r,o[r])}else e.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(t).retain(e,(0,w.default)(o)))}},{key:"formatText",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(t,e,r,o[r])})),this.update((new l.default).retain(t).retain(e,(0,w.default)(o)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new l.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===e?this.scroll.path(t).forEach((function(t){var e=r(t,1),i=e[0];i instanceof y.default?n.push(i):i instanceof f.default.Leaf&&o.push(i)})):(n=this.scroll.lines(t,e),o=this.scroll.descendants(f.default.Leaf,t,e));var i=[n,o].map((function(t){if(0===t.length)return{};var e=(0,v.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=R((0,v.bubbleFormats)(n),e)}return e}));return k.default.apply(k.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new l.default).retain(t).insert(S({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(o).forEach((function(r){n.scroll.formatAt(t,e.length,r,o[r])})),this.update((new l.default).retain(t).insert(e,(0,w.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===y.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof b.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),o=this.scroll.line(t+e),i=r(o,2),a=i[0],s=i[1],c=0,u=new l.default;null!=a&&(c=a instanceof p.default?a.newlineIndex(s)-s+1:a.length()-s,u=a.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(t,e+c),d=f.diff((new l.default).insert(n).concat(u)),h=(new l.default).retain(t).concat(d);return this.applyDelta(h)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(D)&&f.default.find(e[0].target)){var r=f.default.find(e[0].target),i=(0,v.bubbleFormats)(r),a=r.offset(this.scroll),s=e[0].oldValue.replace(m.default.CONTENTS,""),c=(new l.default).insert(s),u=(new l.default).insert(r.value()),d=(new l.default).retain(a).concat(c.diff(u,n));t=d.reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new l.default),this.delta=o.compose(t)}else this.delta=this.getDelta(),t&&(0,x.default)(o.compose(t),this.delta)||(t=o.diff(this.delta,n));return t}}]),t}();function R(t,e){return Object.keys(e).reduce((function(n,o){return null==t[o]||(e[o]===t[o]?n[o]=e[o]:Array.isArray(e[o])?e[o].indexOf(t[o])<0&&(n[o]=e[o].concat([t[o]])):n[o]=[e[o],t[o]]),n}),{})}function A(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,w.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,w.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var o=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(o,e.attributes)}return t.push(e)}),new l.default)}e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var o=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(0),a=m(i),l=n(21),s=m(l),c=n(11),u=m(c),f=n(8),d=m(f),p=n(10),h=m(p);function m(t){return t&&t.__esModule?t:{default:t}}function v(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)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g=(0,h.default)("quill:selection"),b=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,t),this.index=e,this.length=n},_=function(){function t(e,n){var o=this;y(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(t,e){t===d.default.events.TEXT_CHANGE&&e.length()>0&&o.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var t=o.getNativeRange();null!=t&&t.start.node!==o.cursor.textNode&&o.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,r=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;o.setNativeRange(r,i,a,l)}})),this.update(d.default.sources.SILENT)}return r(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=a.default.find(n.start.node,!1);if(null==o)return;if(o instanceof a.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,i=this.scroll.leaf(t),a=o(i,2),l=a[0],s=a[1];if(null==l)return null;var c=l.position(s,!0),u=o(c,2);r=u[0],s=u[1];var f=document.createRange();if(e>0){f.setStart(r,s);var d=this.scroll.leaf(t+e),p=o(d,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),m=o(h,2);return r=m[0],s=m[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",y=void 0;return r instanceof Text?(s<r.data.length?(f.setStart(r,s),f.setEnd(r,s+1)):(f.setStart(r,s-1),f.setEnd(r,s),v="right"),y=f.getBoundingClientRect()):(y=l.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return g.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map((function(t){var n=o(t,2),r=n[0],i=n[1],l=a.default.find(r,!0),s=l.offset(e.scroll);return 0===i?s:l instanceof a.default.Container?s+l.length():s+l.index(r,i)})),i=Math.min(Math.max.apply(Math,v(r)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(v(r)));return new b(l,i-l)}},{key:"normalizeNative",value:function(t){if(!w(this.root,t.startContainer)||!t.collapsed&&!w(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],i=this.scroll.length();return n.forEach((function(t,n){t=Math.min(i-1,t);var a=void 0,l=e.scroll.leaf(t),s=o(l,2),c=s[0],u=s[1],f=c.position(u,0!==n),d=o(f,2);a=d[0],u=d[1],r.push(a,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,r)),a=o(i,1),l=a[0],s=l;if(e.length>0){var c=this.scroll.line(Math.min(e.index+e.length,r)),u=o(c,1);s=u[0]}if(null!=l&&null!=s){var f=t.getBoundingClientRect();n.top<f.top?t.scrollTop-=f.top-n.top:n.bottom>f.bottom&&(t.scrollTop+=n.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(g.info("setNativeRange",t,e,n,o),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(t,e),l.setEnd(n,o),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof e&&(n=e,e=!1),g.info("setRange",t),null!=t){var o=this.rangeToNative(t);this.setNativeRange.apply(this,v(o).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,e=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],a=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(e,this.lastRange)){var l;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var c,f=[d.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(e),t];if((l=this.emitter).emit.apply(l,[d.default.events.EDITOR_CHANGE].concat(f)),t!==d.default.sources.SILENT)(c=this.emitter).emit.apply(c,f)}}}]),t}();function w(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),o(e,[{key:"insertInto",value:function(t,n){0===t.children.length?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(a.default.Embed);f.blotName="break",f.tagName="BR",e.default=f},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(44),i=n(30),a=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=s(e);t.insertBefore(n,t.children.head||void 0)}catch(o){if(o instanceof a.ParchmentError)return;throw o}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var o=this.children.find(n),r=o[0],i=o[1];return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,i]:r instanceof e?r.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&r.push(n),n instanceof e&&(r=r.concat(n.descendants(t,o,i))),i-=a})),r},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,o){this.children.forEachAt(t,e,(function(t,e,r){t.formatAt(e,r,n,o)}))},e.prototype.insertAt=function(t,e,n){var o=this.children.find(t),r=o[0],i=o[1];if(r)r.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var o=this.children.find(t,n),r=o[0],i=o[1],a=[[this,t]];return r instanceof e?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,o,r){t=t.split(o,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],r=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),r.push.apply(r,t.removedNodes))})),r.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),o.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var o=s(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e||void 0))}))},e}(i.default);function s(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=l},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(31),a=n(17),l=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return o(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=l.query(t);n instanceof r.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var o=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(o),o},e.prototype.update=function(e,n){var o=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===o.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,o){var r=t.prototype.wrap.call(this,n,o);return r instanceof e&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},e}(a.default);e.default=s},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(30),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,n){var o=n(11),r=n(3),i={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var o=r(!0,{},e);for(var i in n||(o=Object.keys(o).reduce((function(t,e){return null!=o[e]&&(t[e]=o[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(o[i]=t[i]);return Object.keys(o).length>0?o:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var o=Object.keys(e).reduce((function(n,o){return void 0===t[o]&&(n[o]=e[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,o=i.length(e);if(t>=o-n?(t=o-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var r={};return e.attributes&&(r.attributes=e.attributes),"number"===typeof e.retain?r.retain=t:"string"===typeof e.insert?r.insert=e.insert.substr(n,t):r.insert=e.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.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"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(o)}return[]},t.exports=i},function(t,n){var o=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,o,r;try{n=Map}catch(f){n=function(){}}try{o=Set}catch(f){o=function(){}}try{r=Promise}catch(f){r=function(){}}function i(a,l,s,c,f){"object"===typeof l&&(s=l.depth,c=l.prototype,f=l.includeNonEnumerable,l=l.circular);var d=[],p=[],h="undefined"!=typeof e;function m(a,s){if(null===a)return null;if(0===s)return a;var v,y;if("object"!=typeof a)return a;if(t(a,n))v=new n;else if(t(a,o))v=new o;else if(t(a,r))v=new r((function(t,e){a.then((function(e){t(m(e,s-1))}),(function(t){e(m(t,s-1))}))}));else if(i.__isArray(a))v=[];else if(i.__isRegExp(a))v=new RegExp(a.source,u(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(i.__isDate(a))v=new Date(a.getTime());else{if(h&&e.isBuffer(a))return v=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(v),v;t(a,Error)?v=Object.create(a):"undefined"==typeof c?(y=Object.getPrototypeOf(a),v=Object.create(y)):(v=Object.create(c),y=c)}if(l){var g=d.indexOf(a);if(-1!=g)return p[g];d.push(a),p.push(v)}for(var b in t(a,n)&&a.forEach((function(t,e){var n=m(e,s-1),o=m(t,s-1);v.set(n,o)})),t(a,o)&&a.forEach((function(t){var e=m(t,s-1);v.add(e)})),a){var _;y&&(_=Object.getOwnPropertyDescriptor(y,b)),_&&null==_.set||(v[b]=m(a[b],s-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(a);for(b=0;b<w.length;b++){var O=w[b],x=Object.getOwnPropertyDescriptor(a,O);(!x||x.enumerable||f)&&(v[O]=m(a[O],s-1),x.enumerable||Object.defineProperty(v,O,{enumerable:!1}))}}if(f){var E=Object.getOwnPropertyNames(a);for(b=0;b<E.length;b++){var k=E[b];x=Object.getOwnPropertyDescriptor(a,k);x&&x.enumerable||(v[k]=m(a[k],s-1),Object.defineProperty(v,k,{enumerable:!1}))}}return v}return"undefined"==typeof l&&(l=!0),"undefined"==typeof s&&(s=1/0),m(a,s)}function a(t){return Object.prototype.toString.call(t)}function l(t){return"object"===typeof t&&"[object Date]"===a(t)}function s(t){return"object"===typeof t&&"[object Array]"===a(t)}function c(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function u(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return i.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},i.__objToStr=a,i.__isDate=l,i.__isArray=s,i.__isRegExp=c,i.__getRegExpFlags=u,i}();"object"===typeof t&&t.exports&&(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0),l=g(a),s=n(8),c=g(s),u=n(4),f=g(u),d=n(16),p=g(d),h=n(13),m=g(h),v=n(25),y=g(v);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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 O(t){return t instanceof f.default||t instanceof u.BlockEmbed}var x=function(t){function e(t,n){b(this,e);var o=_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return w(e,t),r(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),a=o(r,2),l=a[0],s=a[1],c=this.line(t+n),f=o(c,1),d=f[0];if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=d&&l!==d&&s>0){if(l instanceof u.BlockEmbed||d instanceof u.BlockEmbed)return void this.optimize();if(l instanceof m.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1),l===d))return void this.optimize()}else if(d instanceof m.default){var v=d.newlineIndex(0);v>-1&&d.split(v+1)}var y=d.children.head instanceof p.default?null:d.children.head;l.moveChildren(d,y),l.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,o,r){(null==this.whitelist||this.whitelist[o])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,o,r),this.optimize())}},{key:"insertAt",value:function(t,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==o||null==l.default.query(n,l.default.Scope.BLOCK)){var r=l.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var a=l.default.create(n,o);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,o);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===l.default.Scope.INLINE_BLOT){var o=l.default.create(this.statics.defaultChild);o.appendChild(t),t=o}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(O,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,o){var r=[],i=o;return e.children.forEachAt(n,o,(function(e,n,o){O(e)?r.push(e):e instanceof l.default.Container&&(r=r.concat(t(e,n,i))),i-=o})),r};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=c.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,n,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,n,t)}}}]),e}(l.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[f.default,u.BlockEmbed,y.default],e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var 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},r=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=n(21),l=E(a),s=n(11),c=E(s),u=n(3),f=E(u),d=n(2),p=E(d),h=n(20),m=E(h),v=n(0),y=E(v),g=n(5),b=E(g),_=n(10),w=E(_),O=n(9),x=E(O);function E(t){return t&&t.__esModule?t:{default:t}}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function q(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var D=(0,w.default)("quill:keyboard"),T=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",R=function(t){function e(t,n){C(this,e);var o=S(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&o.options.bindings[e]&&o.addBinding(o.options.bindings[e])})),o.addBinding({key:e.keys.ENTER,shiftKey:null},j),o.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},M),o.addBinding({key:e.keys.DELETE},{collapsed:!0},P)):(o.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},M),o.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},P)),o.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},N),o.addBinding({key:e.keys.DELETE},{collapsed:!1},N),o.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},M),o.listen(),o}return q(e,t),i(e,null,[{key:"match",value:function(t,e){return e=F(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),i(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=F(t);if(null==o||null==o.key)return D.warn("Attempted to add invalid keyboard binding",o);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),o=(0,f.default)(o,e,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(t.bindings[i]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var s=t.quill.getLine(l.index),u=r(s,2),f=u[0],d=u[1],p=t.quill.getLeaf(l.index),h=r(p,2),m=h[0],v=h[1],g=0===l.length?[m,v]:t.quill.getLeaf(l.index+l.length),b=r(g,2),_=b[0],w=b[1],O=m instanceof y.default.Text?m.value().slice(0,v):"",x=_ instanceof y.default.Text?_.value().slice(w):"",E={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:t.quill.getFormat(l),offset:d,prefix:O,suffix:x},k=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==E.collapsed)return!1;if(null!=e.empty&&e.empty!==E.empty)return!1;if(null!=e.offset&&e.offset!==E.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==E.format[t]})))return!1}else if("object"===o(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=E.format[t]:!1===e.format[t]?null==E.format[t]:(0,c.default)(e.format[t],E.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(E.prefix))&&(!(null!=e.suffix&&!e.suffix.test(E.suffix))&&!0!==e.handler.call(t,l,E))}));k&&n.preventDefault()}}}}))}}]),e}(x.default);function A(t,e){var n,o=t===R.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},k(n,o,/^$/),k(n,"handler",(function(n){var o=n.index;t===R.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o),a=r(i,1),l=a[0];return!(l instanceof y.default.Embed)||(t===R.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function M(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),o=r(n,1),i=o[0],a={};if(0===e.offset){var l=this.quill.getLine(t.index-1),s=r(l,1),c=s[0];if(null!=c&&c.length()>1){var u=i.formats(),f=this.quill.getFormat(t.index-1,1);a=m.default.attributes.diff(u,f)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-d,d,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-d,d,a,b.default.sources.USER),this.quill.focus()}}function P(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(t.index),l=r(a,1),s=l[0];if(e.offset>=s.length()-1){var c=this.quill.getLine(t.index+1),u=r(c,1),f=u[0];if(f){var d=s.formats(),p=this.quill.getFormat(t.index,1);o=m.default.attributes.diff(d,p)||{},i=f.length()}}this.quill.deleteText(t.index,n,b.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index+i-1,n,o,b.default.sources.USER)}}function N(t){var e=this.quill.getLines(t),n={};if(e.length>1){var o=e[0].formats(),r=e[e.length-1].formats();n=m.default.attributes.diff(r,o)||{}}this.quill.deleteText(t,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,b.default.sources.USER),this.quill.setSelection(t.index,b.default.sources.SILENT),this.quill.focus()}function j(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var o=Object.keys(e.format).reduce((function(t,n){return y.default.query(n,y.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",o,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==o[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],b.default.sources.USER))}))}function L(t){return{key:R.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=y.default.query("code-block"),o=e.index,i=e.length,a=this.quill.scroll.descendant(n,o),l=r(a,2),s=l[0],c=l[1];if(null!=s){var u=this.quill.getIndex(s),f=s.newlineIndex(c,!0)+1,d=s.newlineIndex(u+c+i),p=s.domNode.textContent.slice(f,d).split("\n");c=0,p.forEach((function(e,r){t?(s.insertAt(f+c,n.TAB),c+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(s.deleteAt(f+c,n.TAB.length),c-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),c+=e.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(o,i,b.default.sources.SILENT)}}}}function I(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],b.default.sources.USER)}}}function F(t){if("string"===typeof t||"number"===typeof t)return F({key:t});if("object"===("undefined"===typeof t?"undefined":o(t))&&(t=(0,l.default)(t,!1)),"string"===typeof t.key)if(null!=R.keys[t.key.toUpperCase()])t.key=R.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[T]=t.shortKey,delete t.shortKey),t}R.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},R.DEFAULTS={bindings:{bold:I("bold"),italic:I("italic"),underline:I("underline"),indent:{key:R.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:R.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:R.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:R.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,b.default.sources.USER)}},tab:{key:R.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new p.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,b.default.sources.SILENT)}},"list empty enter":{key:R.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,b.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:R.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=r(e,2),o=n[0],i=n[1],a=(0,f.default)({},o.formats(),{list:"checked"}),l=(new p.default).retain(t.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:R.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),o=r(n,2),i=o[0],a=o[1],l=(new p.default).retain(t.index).insert("\n",e.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,o=this.quill.getLine(t.index),i=r(o,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",b.default.sources.USER),this.quill.history.cutoff();var c=(new p.default).retain(t.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,b.default.sources.SILENT)}},"code exit":{key:R.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=r(e,2),o=n[0],i=n[1],a=(new p.default).retain(t.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":A(R.keys.LEFT,!1),"embed left shift":A(R.keys.LEFT,!0),"embed right":A(R.keys.RIGHT,!1),"embed right shift":A(R.keys.RIGHT,!0)}},e.default=R,e.SHORTKEY=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=n(0),l=u(a),s=n(7),c=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var h=function(t){function e(t,n){f(this,e);var o=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.selection=n,o.textNode=document.createTextNode(e.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return p(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);var o=this,i=0;while(null!=o&&o.statics.scope!==l.default.Scope.BLOCK_BLOT)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=e.CONTENTS.length,o.optimize(),o.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,a=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var s=[t,n.start.offset,n.end.offset];r=s[0],i=s[1],a=s[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof c.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,a].map((function(t){return Math.max(0,Math.min(r.data.length,t-1))})),d=o(f,2);return i=d[0],a=d[1],{startNode:r,startOffset:i,endNode:r,endOffset:a}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var o=this.restore();o&&(e.range=o)}}},{key:"value",value:function(){return""}}]),e}(l.default.Embed);h.blotName="cursor",h.className="ql-cursor",h.tagName="span",h.CONTENTS="\ufeff",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=l(o),i=n(4),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),e}(r.default.Container);f.allowedChildren=[a.default,i.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),o(e,[{key:"value",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),p=new f("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=f,e.ColorClass=d,e.ColorStyle=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(6),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),o(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return d(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(a.default);function d(t,e){var n=document.createElement("a");n.href=t;var o=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(o)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var 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},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(23),a=c(i),l=n(107),s=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=0;function d(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var p=function(){function t(e){var n=this;u(this,t),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(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return r(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),d(this.label,"aria-expanded"),d(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var o=t.buildItem(n);e.appendChild(o),!0===n.selected&&t.selectItem(o)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.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(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=D(o),i=n(5),a=D(i),l=n(4),s=D(l),c=n(16),u=D(c),f=n(25),d=D(f),p=n(24),h=D(p),m=n(35),v=D(m),y=n(6),g=D(y),b=n(22),_=D(b),w=n(7),O=D(w),x=n(55),E=D(x),k=n(42),C=D(k),S=n(23),q=D(S);function D(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":s.default,"blots/block/embed":l.BlockEmbed,"blots/break":u.default,"blots/container":d.default,"blots/cursor":h.default,"blots/embed":v.default,"blots/inline":g.default,"blots/scroll":_.default,"blots/text":O.default,"modules/clipboard":E.default,"modules/history":C.default,"modules/keyboard":q.default}),r.default.register(s.default,u.default,h.default,g.default,_.default,O.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=function(){function t(t){this.domNode=t,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return o.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,r){var i=this.isolate(t,e);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},t.prototype.insertAt=function(t,e,n){var r=null==n?o.create("text",e):o.create(e,n),i=this.split(t);this.parent.insertBefore(r,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?o.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?o.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),a=n(1),l=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=o.default.keys(this.domNode),n=r.default.keys(this.domNode),l=i.default.keys(this.domNode);e.concat(n).concat(l).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof o.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var o=e.attributes[n].value(e.domNode);t.format(n,o)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=l},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);function i(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=i(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=i(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(r.default);e.default=a},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return o(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=c(i),l=n(7),s=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var p="\ufeff",h=function(t){function e(t){u(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(p),n.rightGuard=document.createTextNode(p),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return d(e,t),o(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,o=t.data.split(p).join("");if(t===this.leftGuard)if(this.prev instanceof s.default){var r=this.prev.length();this.prev.insertAt(r,o),e={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(a.default.create(n),this),e={startNode:n,startOffset:o.length};else t===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,o),e={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(a.default.create(n),this.next),e={startNode:n,startOffset:o.length}));return t.data=p,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var o=n.restore(t.target);o&&(e.range=o)}}))}}]),e}(a.default.Embed);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var o=n(0),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new r.default.Attributor.Attribute("align","align",a),s=new r.default.Attributor.Class("align","ql-align",a),c=new r.default.Attributor.Style("align","text-align",a);e.AlignAttribute=l,e.AlignClass=s,e.AlignStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var o=n(0),r=a(o),i=n(26);function a(t){return t&&t.__esModule?t:{default:t}}var l=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),s=new i.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});e.BackgroundClass=l,e.BackgroundStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var o=n(0),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},l=new r.default.Attributor.Attribute("direction","dir",a),s=new r.default.Attributor.Class("direction","ql-direction",a),c=new r.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=l,e.DirectionClass=s,e.DirectionStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",f),p=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),o(e,[{key:"value",value:function(t){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),h=new p("font","font-family",f);e.FontStyle=h,e.FontClass=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var o=n(0),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}var a=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=l},function(t,e,n){"use strict";t.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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=n(0),i=u(r),a=n(5),l=u(a),s=n(9),c=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var h=function(t){function e(t,n){f(this,e);var o=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,r){t!==l.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==l.default.sources.USER?o.transform(e):o.record(e,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return p(e,t),o(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],l.default.sources.USER),this.ignoreChange=!1;var o=v(n[t]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),t=r.redo.compose(t)}else this.lastRecorded=o;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(c.default);function m(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}function v(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return m(t)&&(n-=1),n}h.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=h,e.getLastChangeIndex=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(3),a=x(i),l=n(2),s=x(l),c=n(8),u=x(c),f=n(23),d=x(f),p=n(34),h=x(p),m=n(59),v=x(m),y=n(60),g=x(y),b=n(28),_=x(b),w=n(61),O=x(w);function x(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function C(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var S=[!1,"center","right","justify"],q=["#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"],D=[!1,"serif","monospace"],T=["1","2","3",!1],R=["small",!1,"large","huge"],A=function(t){function e(t,n){E(this,e);var o=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),r=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==o.tooltip||o.tooltip.root.contains(n.target)||document.activeElement===o.tooltip.textbox||o.quill.hasFocus()||o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,r),o}return C(e,t),o(e,[{key:"addModule",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var n=t.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n]["rtl"];else if("string"===typeof e[n])t.innerHTML=e[n];else{var o=t.value||"";null!=o&&e[n][o]&&(t.innerHTML=e[n][o])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&N(t,S),new g.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&N(t,q,"background"===n?"#ffffff":"#000000"),new v.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?N(t,D):t.classList.contains("ql-header")?N(t,T):t.classList.contains("ql-size")&&N(t,R)),new _.default(t)}));var o=function(){n.pickers.forEach((function(t){t.update()}))};this.quill.on(u.default.events.EDITOR_CHANGE,o)}}]),e}(h.default);A.DEFAULTS=(0,a.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var o=t.quill.getSelection(!0);t.quill.updateContents((new s.default).retain(o.index).delete(o.length).insert({image:n.target.result}),u.default.sources.USER),t.quill.setSelection(o.index+1,u.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(t){function e(t,n){E(this,e);var o=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return C(e,t),o(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){d.default.match(e,"enter")?(t.save(),e.preventDefault()):d.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==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-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,u.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=P(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),t,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",u.default.sources.USER),this.quill.setSelection(o+2,u.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(O.default);function P(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function N(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var o=document.createElement("option");e===n?o.setAttribute("selected","selected"):o.setAttribute("value",e),t.appendChild(o)}))}e.BaseTooltip=M,e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,o=this.iterator();while(n=o()){var r=n.length();if(t<r||e&&t===r&&(null==n.next||0!==n.next.length()))return[n,t];t-=r}return[null,0]},t.prototype.forEach=function(t){var e,n=this.iterator();while(e=n())t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0)){var o,r=this.find(t),i=r[0],a=r[1],l=t-a,s=this.iterator(i);while((o=s())&&l<t+e){var c=o.length();t>l?n(o,t-l,Math.min(e,l+c-t)):n(o,0,Math.min(c,t+e-l)),l+=c}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,o=this.iterator();while(n=o())e=t(e,n);return e},t}();e.default=o},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=100,s=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return o(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,o,r){this.update(),t.prototype.formatAt.call(this,e,n,o,r)},e.prototype.insertAt=function(e,n,o){this.update(),t.prototype.insertAt.call(this,e,n,o)},e.prototype.optimize=function(e,n){var o=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==o&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&s(t.parent))},c=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof r.default&&t.children.forEach(c),t.optimize(n))},u=e,f=0;u.length>0;f+=1){if(f>=l)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=i.find(t,!1);s(e,!1),e instanceof r.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(c),u=[].slice.call(this.observer.takeRecords()),a=u.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var o=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==o&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)})),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(r.default);e.default=s},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),i=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,o){var i=this;n!==this.statics.blotName||o?t.prototype.format.call(this,n,o):(this.children.forEach((function(t){t instanceof r.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,o,r){if(null!=this.formats()[o]||i.query(o,i.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(o,r)}else t.prototype.formatAt.call(this,e,n,o,r)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof e&&r.prev===this&&a(o,r.formats())&&(r.moveChildren(this),r.remove())},e.blotName="inline",e.scope=i.Scope.INLINE_BLOT,e.tagName="SPAN",e}(r.default);e.default=l},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){var o=i.query(e.blotName).tagName;if(n.tagName!==o)return t.formats.call(this,n)},e.prototype.format=function(n,o){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||o?t.prototype.format.call(this,n,o):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,o,r){null!=i.query(o,i.Scope.BLOCK)?this.format(o,r):t.prototype.formatAt.call(this,e,n,o,r)},e.prototype.insertAt=function(e,n,o){if(null==o||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,o);else{var r=this.split(e),a=i.create(n,o);r.parent.insertBefore(a,r)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(r.default);e.default=a},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,o,r){0===e&&n===this.length()?this.format(o,r):t.prototype.formatAt.call(this,e,n,o,r)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(r.default);e.default=i},function(t,e,n){"use strict";var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),i=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return o(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,o){null==o?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,o)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,n){"use strict";var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:r.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var o=n.indexOf(t,e);return-1!==o&&o===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(e=n[i],t.call(r,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,o=1,r=0;function i(t,e,n){if(t==e)return t?[[r,t]]:[];(n<0||t.length<n)&&(n=null);var o=c(t,e),i=t.substring(0,o);t=t.substring(o),e=e.substring(o),o=u(t,e);var l=t.substring(t.length-o);t=t.substring(0,t.length-o),e=e.substring(0,e.length-o);var s=a(t,e);return i&&s.unshift([r,i]),l&&s.push([r,l]),d(s),null!=n&&(s=m(s,n)),s=v(s),s}function a(t,e){var a;if(!t)return[[o,e]];if(!e)return[[n,t]];var s=t.length>e.length?t:e,c=t.length>e.length?e:t,u=s.indexOf(c);if(-1!=u)return a=[[o,s.substring(0,u)],[r,c],[o,s.substring(u+c.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,t],[o,e]];var d=f(t,e);if(d){var p=d[0],h=d[1],m=d[2],v=d[3],y=d[4],g=i(p,m),b=i(h,v);return g.concat([[r,y]],b)}return l(t,e)}function l(t,e){for(var r=t.length,i=e.length,a=Math.ceil((r+i)/2),l=a,c=2*a,u=new Array(c),f=new Array(c),d=0;d<c;d++)u[d]=-1,f[d]=-1;u[l+1]=0,f[l+1]=0;for(var p=r-i,h=p%2!=0,m=0,v=0,y=0,g=0,b=0;b<a;b++){for(var _=-b+m;_<=b-v;_+=2){var w=l+_;S=_==-b||_!=b&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1;var O=S-_;while(S<r&&O<i&&t.charAt(S)==e.charAt(O))S++,O++;if(u[w]=S,S>r)v+=2;else if(O>i)m+=2;else if(h){var x=l+p-_;if(x>=0&&x<c&&-1!=f[x]){var E=r-f[x];if(S>=E)return s(t,e,S,O)}}}for(var k=-b+y;k<=b-g;k+=2){x=l+k;E=k==-b||k!=b&&f[x-1]<f[x+1]?f[x+1]:f[x-1]+1;var C=E-k;while(E<r&&C<i&&t.charAt(r-E-1)==e.charAt(i-C-1))E++,C++;if(f[x]=E,E>r)g+=2;else if(C>i)y+=2;else if(!h){w=l+p-k;if(w>=0&&w<c&&-1!=u[w]){var S=u[w];O=l+S-w;if(E=r-E,S>=E)return s(t,e,S,O)}}}}return[[n,t],[o,e]]}function s(t,e,n,o){var r=t.substring(0,n),a=e.substring(0,o),l=t.substring(n),s=e.substring(o),c=i(r,a),u=i(l,s);return c.concat(u)}function c(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,o=Math.min(t.length,e.length),r=o,i=0;while(n<r)t.substring(i,r)==e.substring(i,r)?(n=r,i=n):o=r,r=Math.floor((o-n)/2+n);return r}function u(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var n=0,o=Math.min(t.length,e.length),r=o,i=0;while(n<r)t.substring(t.length-r,t.length-i)==e.substring(e.length-r,e.length-i)?(n=r,i=n):o=r,r=Math.floor((o-n)/2+n);return r}function f(t,e){var n=t.length>e.length?t:e,o=t.length>e.length?e:t;if(n.length<4||2*o.length<n.length)return null;function r(t,e,n){var o,r,i,a,l=t.substring(n,n+Math.floor(t.length/4)),s=-1,f="";while(-1!=(s=e.indexOf(l,s+1))){var d=c(t.substring(n),e.substring(s)),p=u(t.substring(0,n),e.substring(0,s));f.length<p+d&&(f=e.substring(s-p,s)+e.substring(s,s+d),o=t.substring(0,n-p),r=t.substring(n+d),i=e.substring(0,s-p),a=e.substring(s+d))}return 2*f.length>=t.length?[o,r,i,a,f]:null}var i,a,l,s,f,d=r(n,o,Math.ceil(n.length/4)),p=r(n,o,Math.ceil(n.length/2));if(!d&&!p)return null;i=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(a=i[0],l=i[1],s=i[2],f=i[3]):(s=i[0],f=i[1],a=i[2],l=i[3]);var h=i[4];return[a,l,s,f,h]}function d(t){t.push([r,""]);var e,i=0,a=0,l=0,s="",f="";while(i<t.length)switch(t[i][0]){case o:l++,f+=t[i][1],i++;break;case n:a++,s+=t[i][1],i++;break;case r:a+l>1?(0!==a&&0!==l&&(e=c(f,s),0!==e&&(i-a-l>0&&t[i-a-l-1][0]==r?t[i-a-l-1][1]+=f.substring(0,e):(t.splice(0,0,[r,f.substring(0,e)]),i++),f=f.substring(e),s=s.substring(e)),e=u(f,s),0!==e&&(t[i][1]=f.substring(f.length-e)+t[i][1],f=f.substring(0,f.length-e),s=s.substring(0,s.length-e))),0===a?t.splice(i-l,a+l,[o,f]):0===l?t.splice(i-a,a+l,[n,s]):t.splice(i-a-l,a+l,[n,s],[o,f]),i=i-a-l+(a?1:0)+(l?1:0)+1):0!==i&&t[i-1][0]==r?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,l=0,a=0,s="",f="";break}""===t[t.length-1][1]&&t.pop();var p=!1;i=1;while(i<t.length-1)t[i-1][0]==r&&t[i+1][0]==r&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),p=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),p=!0)),i++;p&&d(t)}var p=i;function h(t,e){if(0===e)return[r,t];for(var o=0,i=0;i<t.length;i++){var a=t[i];if(a[0]===n||a[0]===r){var l=o+a[1].length;if(e===l)return[i+1,t];if(e<l){t=t.slice();var s=e-o,c=[a[0],a[1].slice(0,s)],u=[a[0],a[1].slice(s)];return t.splice(i,1,c,u),[i+1,t]}o=l}}throw new Error("cursor_pos is out of bounds!")}function m(t,e){var n=h(t,e),o=n[1],i=n[0],a=o[i],l=o[i+1];if(null==a)return t;if(a[0]!==r)return t;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),y(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var s=l[1].slice(a[1].length);return s.length>0&&o.splice(i+2,0,[l[0],s]),y(o,i,3)}return t}function v(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},l=2;l<t.length;l+=1)t[l-2][0]===r&&a(t[l-2][1])&&t[l-1][0]===n&&i(t[l-1][1])&&t[l][0]===o&&i(t[l][1])&&(e=!0,t[l-1][1]=t[l-2][1].slice(-1)+t[l-1][1],t[l][1]=t[l-2][1].slice(-1)+t[l][1],t[l-2][1]=t[l-2][1].slice(0,-1));if(!e)return t;var s=[];for(l=0;l<t.length;l+=1)t[l][1].length>0&&s.push(t[l]);return s}function y(t,e,n){for(var o=e+n-1;o>=0&&o>=e-1;o--)if(o+1<t.length){var r=t[o],i=t[o+1];r[0]===i[1]&&t.splice(o,2,[r[0],r[1]+i[1]])}return t}p.INSERT=o,p.DELETE=n,p.EQUAL=r,t.exports=p},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"===typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=n?o:r,e.supported=o,e.unsupported=r},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),a.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t,e){var n=o?o+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,l=new Array(a);i<a;i++)l[i]=r[i].fn;return l},a.prototype.emit=function(t,e,n,r,i,a){var l=o?o+t:t;if(!this._events[l])return!1;var s,c,u=this._events[l],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,n),!0;case 4:return u.fn.call(u.context,e,n,r),!0;case 5:return u.fn.call(u.context,e,n,r,i),!0;case 6:return u.fn.call(u.context,e,n,r,i,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var d,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,n);break;case 4:u[c].fn.call(u[c].context,e,n,r);break;default:if(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];u[c].fn.apply(u[c].context,s)}}return!0},a.prototype.on=function(t,e,n){var r=new i(e,n||this),a=o?o+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(t,e,n){var r=new i(e,n||this,!0),a=o?o+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,i){var a=o?o+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new r:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==e||i&&!l.once||n&&l.context!==n||(0===--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var s=0,c=[],u=l.length;s<u;s++)(l[s].fn!==e||i&&!l[s].once||n&&l[s].context!==n)&&c.push(l[s]);c.length?this._events[a]=1===c.length?c[0]:c:0===--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=o?o+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new r:delete this._events[e])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var 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},r=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=n(3),l=C(a),s=n(2),c=C(s),u=n(0),f=C(u),d=n(5),p=C(d),h=n(10),m=C(h),v=n(9),y=C(v),g=n(36),b=n(37),_=n(13),w=C(_),O=n(26),x=n(38),E=n(39),k=n(40);function C(t){return t&&t.__esModule?t:{default:t}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function T(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var R=(0,m.default)("quill:clipboard"),A="__ql-matcher",M=[[Node.TEXT_NODE,X],[Node.TEXT_NODE,G],["br",W],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,J],["li",Y],["b",$.bind($,"bold")],["i",$.bind($,"italic")],["style",z]],P=[g.AlignAttribute,x.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),N=[g.AlignStyle,b.BackgroundStyle,O.ColorStyle,x.DirectionStyle,E.FontStyle,k.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),j=function(t){function e(t,n){q(this,e);var o=D(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],M.concat(o.options.matchers).forEach((function(t){var e=r(t,2),i=e[0],a=e[1];(n.matchVisual||a!==K)&&o.addMatcher(i,a)})),o}return T(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[w.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new c.default).insert(n,S({},w.default.blotName,e[w.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],l=i[1],s=U(this.container,a,l);return F(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new c.default).retain(s.length()-1).delete(1))),R.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,p.default.sources.SILENT);else{var o=this.convert(e);this.quill.updateContents((new c.default).retain(t).concat(o),n),this.quill.setSelection(t+o.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new c.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout((function(){o=o.concat(e.convert()).delete(n.length),e.quill.updateContents(o,p.default.sources.USER),e.quill.setSelection(o.length()-n.length,p.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=r,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[A]=t[A]||[],t[A].push(l)}));break}})),[e,n]}}]),e}(y.default);function L(t,e,n){return"object"===("undefined"===typeof e?"undefined":o(e))?Object.keys(e).reduce((function(t,n){return L(t,n,e[n])}),t):t.reduce((function(t,o){return o.attributes&&o.attributes[e]?t.push(o):t.insert(o.insert,(0,l.default)({},S({},e,n),o.attributes))}),new c.default)}function I(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function F(t,e){for(var n="",o=t.ops.length-1;o>=0&&n.length<e.length;--o){var r=t.ops[o];if("string"!==typeof r.insert)break;n=r.insert+n}return n.slice(-1*e.length)===e}function B(t){if(0===t.childNodes.length)return!1;var e=I(t);return["block","list-item"].indexOf(e.display)>-1}function U(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new c.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(o,r){var i=U(r,e,n);return r.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(r,t)}),i),i=(r[A]||[]).reduce((function(t,e){return e(r,t)}),i)),o.concat(i)}),new c.default):new c.default}function $(t,e,n){return L(n,t,!0)}function V(t,e){var n=f.default.Attributor.Attribute.keys(t),o=f.default.Attributor.Class.keys(t),r=f.default.Attributor.Style.keys(t),i={};return n.concat(o).concat(r).forEach((function(e){var n=f.default.query(e,f.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=P[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),n=N[e],null==n||n.attrName!==e&&n.keyName!==e||(n=N[e],i[n.attrName]=n.value(t)||void 0))})),Object.keys(i).length>0&&(e=L(e,i)),e}function H(t,e){var n=f.default.query(t);if(null==n)return e;if(n.prototype instanceof f.default.Embed){var o={},r=n.value(t);null!=r&&(o[n.blotName]=r,e=(new c.default).insert(o,n.formats(t)))}else"function"===typeof n.formats&&(e=L(e,n.blotName,n.formats(t)));return e}function W(t,e){return F(e,"\n")||e.insert("\n"),e}function z(){return new c.default}function Y(t,e){var n=f.default.query(t);if(null==n||"list-item"!==n.blotName||!F(e,"\n"))return e;var o=-1,r=t.parentNode;while(!r.classList.contains("ql-clipboard"))"list"===(f.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?e:e.compose((new c.default).retain(e.length()-1).retain(1,{indent:o}))}function G(t,e){return F(e,"\n")||(B(t)||e.length()>0&&t.nextSibling&&B(t.nextSibling))&&e.insert("\n"),e}function K(t,e){if(B(t)&&null!=t.nextElementSibling&&!F(e,"\n\n")){var n=t.offsetHeight+parseFloat(I(t).marginTop)+parseFloat(I(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function J(t,e){var n={},o=t.style||{};return o.fontStyle&&"italic"===I(t).fontStyle&&(n.italic=!0),o.fontWeight&&(I(t).fontWeight.startsWith("bold")||parseInt(I(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=L(e,n)),parseFloat(o.textIndent||0)>0&&(e=(new c.default).insert("\t").concat(e)),e}function X(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!I(t.parentNode).whiteSpace.startsWith("pre")){var o=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,o.bind(o,!0)),(null==t.previousSibling&&B(t.parentNode)||null!=t.previousSibling&&B(t.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==t.nextSibling&&B(t.parentNode)||null!=t.nextSibling&&B(t.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return e.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},e.default=j,e.matchAttributor=V,e.matchBlot=H,e.matchNewline=G,e.matchSpacing=K,e.matchText=X},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(6),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),o(e,[{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var o=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(2),a=m(i),l=n(0),s=m(l),c=n(5),u=m(c),f=n(10),d=m(f),p=n(9),h=m(p);function m(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var _=(0,d.default)("quill:toolbar"),w=function(t){function e(t,n){y(this,e);var r,i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");x(a,i.options.container),t.container.parentNode.insertBefore(a,t.container),i.container=a}else"string"===typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(t){i.addHandler(t,i.options.handlers[t])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(t){i.attach(t)})),i.quill.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.SELECTION_CHANGE&&i.update(e)})),i.quill.on(u.default.events.SCROLL_OPTIMIZE,(function(){var t=i.quill.selection.getRange(),e=o(t,1),n=e[0];i.update(n)})),i):(r=_.error("Container required for toolbar",i.options),g(i,r))}return b(e,t),r(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void _.warn("ignoring attaching to disabled format",n,t);if(null==s.default.query(n))return void _.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,(function(r){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];i=!l.hasAttribute("selected")&&(l.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),f=o(c,1),d=f[0];if(null!=e.handlers[n])e.handlers[n].call(e,i);else if(s.default.query(n).prototype instanceof s.default.Embed){if(i=prompt("Enter "+n),!i)return;e.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(v({},n,i)),u.default.sources.USER)}else e.quill.format(n,i,u.default.sources.USER);e.update(d)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var r=o(n,2),i=r[0],a=r[1];if("SELECT"===a.tagName){var l=void 0;if(null==t)l=null;else if(null==e[i])l=a.querySelector("option[selected]");else if(!Array.isArray(e[i])){var s=e[i];"string"===typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var c=e[i]===a.getAttribute("value")||null!=e[i]&&e[i].toString()===a.getAttribute("value")||null==e[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",c)}else a.classList.toggle("ql-active",null!=e[i])}))}}]),e}(h.default);function O(t,e,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+e),null!=n&&(o.value=n),t.appendChild(o)}function x(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)O(n,t);else{var e=Object.keys(t)[0],o=t[e];Array.isArray(o)?E(n,e,o):O(n,e,o)}})),t.appendChild(n)}))}function E(t,e,n){var o=document.createElement("select");o.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),o.appendChild(e)})),t.appendChild(o)}w.DEFAULTS={},w.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=s.default.query(e,s.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,u.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",u.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",t,u.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),o=parseInt(n.indent||0);if("+1"===t||"-1"===t){var r="+1"===t?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,u.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,u.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",t,u.default.sources.USER)}}},e.default=w,e.addControls=x},function(t,e){t.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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(28),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(t,n){s(this,e);var o=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),o}return u(e,t),o(e,[{key:"buildItem",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var o=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(28),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(t,n){s(this,e);var o=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return u(e,t),o(e,[{key:"selectItem",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,n){var o=this;r(this,t),this.quill=e,this.boundsContainer=n||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(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=e+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=e+i+"px"),r.bottom>o.bottom){var a=r.bottom-r.top,l=t.bottom-t.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{!o&&l["return"]&&l["return"]()}finally{if(r)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=n(3),l=y(a),s=n(8),c=y(s),u=n(43),f=y(u),d=n(27),p=y(d),h=n(15),m=n(41),v=y(m);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(t){function e(t,n){g(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var o=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.quill.container.classList.add("ql-snow"),o}return _(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default),this.tooltip=new x(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers["link"].call(t,!n.format.link)}))}}]),e}(f.default);O.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var o=this.quill.theme.tooltip;o.edit("link",n)}else this.quill.format("link",!1)}}}}});var x=function(t){function e(t,n){g(this,e);var o=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return _(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,c.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(c.default.events.SELECTION_CHANGE,(function(e,n,r){if(null!=e){if(0===e.length&&r===c.default.sources.USER){var i=t.quill.scroll.descendant(p.default,e.index),a=o(i,2),l=a[0],s=a[1];if(null!=l){t.linkRange=new h.Range(e.index-s,l.length());var u=p.default.formats(l.domNode);return t.preview.textContent=u,t.preview.setAttribute("href",u),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(u.BaseTooltip);x.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(""),e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(29),r=nt(o),i=n(36),a=n(38),l=n(64),s=n(65),c=nt(s),u=n(66),f=nt(u),d=n(67),p=nt(d),h=n(37),m=n(26),v=n(39),y=n(40),g=n(56),b=nt(g),_=n(68),w=nt(_),O=n(27),x=nt(O),E=n(69),k=nt(E),C=n(70),S=nt(C),q=n(71),D=nt(q),T=n(72),R=nt(T),A=n(73),M=nt(A),P=n(13),N=nt(P),j=n(74),L=nt(j),I=n(75),F=nt(I),B=n(57),U=nt(B),$=n(41),V=nt($),H=n(28),W=nt(H),z=n(59),Y=nt(z),G=n(60),K=nt(G),J=n(61),X=nt(J),Z=n(108),Q=nt(Z),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":y.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":l.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":v.FontClass,"formats/size":y.SizeClass,"formats/blockquote":c.default,"formats/code-block":N.default,"formats/header":f.default,"formats/list":p.default,"formats/bold":b.default,"formats/code":P.Code,"formats/italic":w.default,"formats/link":x.default,"formats/script":k.default,"formats/strike":S.default,"formats/underline":D.default,"formats/image":R.default,"formats/video":M.default,"formats/list/item":d.ListItem,"modules/formula":L.default,"modules/syntax":F.default,"modules/toolbar":U.default,"themes/bubble":Q.default,"themes/snow":et.default,"ui/icons":V.default,"ui/picker":W.default,"ui/icon-picker":K.default,"ui/color-picker":Y.default,"ui/tooltip":X.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),o(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var o=this.value(t)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(t),!0):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),d=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var c=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(r.default);c.blotName="blockquote",c.tagName="blockquote",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=n(4),i=a(r);function a(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var u=function(t){function e(){return l(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),o(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(i.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=f(i),l=n(4),s=f(l),c=n(25),u=f(c);function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var v=function(t){function e(){return p(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return m(e,t),o(e,[{key:"format",value:function(t,n){t!==y.blotName||n?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:r(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(s.default);v.blotName="list-item",v.tagName="LI";var y=function(t){function e(t){p(this,e);var n=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),o=function(e){if(e.target.parentNode===t){var o=n.statics.formats(t),r=a.default.find(e.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return t.addEventListener("touchstart",o),t.addEventListener("mousedown",o),n}return m(e,t),o(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",o=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||o.setAttribute("data-checked","checked"===t),o}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(u.default);y.blotName="list",y.scope=a.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[v],e.ListItem=v,e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(56),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var c=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(r.default);c.blotName="italic",c.tagName=["EM","I"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(6),a=l(i);function l(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var f=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),o(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var c=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(r.default);c.blotName="strike",c.tagName="S",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var c=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(r.default);c.blotName="underline",c.tagName="U",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=s(i),l=n(27);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var d=["alt","height","width"],p=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),o(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);p.blotName="image",p.tagName="IMG",e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(4),a=n(27),l=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var d=["height","width"],p=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),o(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(i.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(35),a=f(i),l=n(5),s=f(l),c=n(9),u=f(c);function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var m=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),o(e,null,[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(a.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var v=function(t){function e(){d(this,e);var t=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return h(e,t),o(e,null,[{key:"register",value:function(){s.default.register(m,!0)}}]),e}(u.default);e.FormulaBlot=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=n(0),a=p(i),l=n(5),s=p(l),c=n(9),u=p(c),f=n(13),d=p(f);function p(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var y=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),o(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(d.default);y.className="ql-syntax";var g=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(t){function e(t,n){h(this,e);var o=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return v(e,t),o(e,null,[{key:"register",value:function(){s.default.register(g,!0),s.default.register(y,!0)}}]),o(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(y).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)}}}]),e}(u.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=y,e.CodeToken=g,e.default=b},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var o=function t(e,n,o){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(3),a=h(i),l=n(8),s=h(l),c=n(43),u=h(c),f=n(15),d=n(41),p=h(d);function h(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,n){m(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.quill.container.classList.add("ql-bubble"),o}return y(e,t),r(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),p.default)}}]),e}(u.default);b.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){m(this,e);var o=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,n,r){if(t===s.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&r===s.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(e.index,e.length);if(1===i.length)o.position(o.quill.getBounds(e));else{var a=i[i.length-1],l=o.quill.getIndex(a),c=Math.min(a.length()-1,e.index+e.length-l),u=o.quill.getBounds(new f.Range(l,c));o.position(u)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return y(e,t),r(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(c.BaseTooltip);_.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(""),e.BubbleTooltip=_,e.default=b},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},9665:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"990b":function(t,e,n){var o=n("9093"),r=n("2621"),i=n("cb7c"),a=n("7726").Reflect;t.exports=a&&a.ownKeys||function(t){var e=o.f(i(t)),n=r.f;return n?e.concat(n(t)):e}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var o=n("d8e8");t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var o=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[o]&&n("32e9")(r,o,{}),t.exports=function(t){r[o][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9def":function(t,e,n){var o=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a0d3:function(t,e,n){"use strict";var o=n("0f7c");t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},a101:function(t,e,n){"use strict";var o=n("00ce"),r=n("545e"),i=o("%WeakSet%",!0),a=r("WeakSet.prototype.has",!0);if(a){var l=r("WeakMap.prototype.has",!0);t.exports=function(t){if(!t||"object"!==typeof t)return!1;try{if(a(t,a),l)try{l(t,l)}catch(e){return!0}return t instanceof i}catch(e){}return!1}}else t.exports=function(t){return!1}},a159:function(t,e,n){var o=n("e4ae"),r=n("7e90"),i=n("1691"),a=n("5559")("IE_PROTO"),l=function(){},s="prototype",c=function(){var t,e=n("1ec9")("iframe"),o=i.length,r="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),c=t.F;while(o--)delete c[s][i[o]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(l[s]=o(t),n=new l,l[s]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},a25f:function(t,e,n){var o=n("7726"),r=o.navigator;t.exports=r&&r.userAgent||""},a481:function(t,e,n){"use strict";var o=n("cb7c"),r=n("4bf8"),i=n("9def"),a=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\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){return[function(o,r){var i=t(this),a=void 0==o?void 0:o[e];return void 0!==a?a.call(o,i,r):n.call(String(i),o,r)},function(t,e){var r=m(n,t,this,e);if(r.done)return r.value;var f=o(t),d=String(this),p="function"===typeof e;p||(e=String(e));var y=f.global;if(y){var g=f.unicode;f.lastIndex=0}var b=[];while(1){var _=s(f,d);if(null===_)break;if(b.push(_),!y)break;var w=String(_[0]);""===w&&(f.lastIndex=l(d,i(f.lastIndex),g))}for(var O="",x=0,E=0;E<b.length;E++){_=b[E];for(var k=String(_[0]),C=c(u(a(_.index),d.length),0),S=[],q=1;q<_.length;q++)S.push(h(_[q]));var D=_.groups;if(p){var T=[k].concat(S,C,d);void 0!==D&&T.push(D);var R=String(e.apply(void 0,T))}else R=v(k,d,C,S,D,e);C>=x&&(O+=d.slice(x,C)+R,x=C+k.length)}return O+d.slice(x)}];function v(t,e,o,i,a,l){var s=o+t.length,c=i.length,u=p;return void 0!==a&&(a=r(a),u=d),n.call(l,u,(function(n,r){var l;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,o);case"'":return e.slice(s);case"<":l=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=f(u/10);return 0===d?n:d<=c?void 0===i[d-1]?r.charAt(1):i[d-1]+r.charAt(1):n}l=i[u-1]}return void 0===l?"":l}))}}))},a5b8:function(t,e,n){"use strict";var o=n("d8e8");function r(t){var e,n;this.promise=new t((function(t,o){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=o})),this.resolve=o(e),this.reject=o(n)}t.exports.f=function(t){return new r(t)}},a745:function(t,e,n){t.exports=n("f410")},a786:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return l}));var o=n("b0b4"),r=n("d225"),i=n("bd86"),a={required:{desc:"Field must have value (at least length must be 1)",needValue:!1,errorMessage:"This field is required"},min:{desc:"Minimum length of the value. For number field, it will be the value (not length)",needValue:!0,valueInfo:"Number",errorMessage:"Minimum value for this field is :min"},max:{desc:"Maximum length of the value. For number field, it will be the value (not length)",needValue:!0,valueInfo:"Number",errorMessage:"Maximum value for this field is :max"},isEmail:{desc:"Validate email address",needValue:!1,errorMessage:"Wrong email address format"},regex:{desc:"Validation the field by using your own Regex Rule",needValue:!0,valueInfo:"Your Regex Rule here - JavaScript",errorMessage:"This field value doesn't match with the rule"},sameAs:{desc:"Check if the field has same value with another field",needValue:!0,valueInfo:"The field name you want to check with",errorMessage:"This field value doesn't as same as :sameAs"},customClosure:{desc:"Invoke your own method to check your field",needValue:!0,valueInfo:"Your method name",errorMessage:"Custom validation failed."}},l=Object(o["a"])((function t(e,n){Object(r["a"])(this,t),Object(i["a"])(this,"ruleType",""),Object(i["a"])(this,"errorMessage",""),Object(i["a"])(this,"additionalValue",""),this.ruleType=e,e&&(this.errorMessage=n||a[e].errorMessage||"")}))},aa47:function(t,e,n){"use strict";
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function o(t){return 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},o(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}function l(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}function s(t,e){if(null==t)return{};var n,o,r=l(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function c(t){return u(t)||f(t)||d()}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 f(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(e),n.d(e,"MultiDrag",(function(){return Ie})),n.d(e,"Sortable",(function(){return Zt})),n.d(e,"Swap",(function(){return Ce}));var p="1.10.2";function h(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var m=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=h(/Edge/i),y=h(/firefox/i),g=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),b=h(/iP(ad|od|hone)/i),_=h(/chrome/i)&&h(/android/i),w={capture:!1,passive:!1};function O(t,e,n){t.addEventListener(e,n,!m&&w)}function x(t,e,n){t.removeEventListener(e,n,!m&&w)}function E(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(n){return!1}return!1}}function k(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function C(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&E(t,e):E(t,e))||o&&t===n)return t;if(t===n)break}while(t=k(t))}return null}var S,q=/\s+/g;function D(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(q," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(q," ")}}function T(t,e,n){var o=t&&t.style;if(o){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 o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"===typeof n?"":"px")}}function R(t,e){var n="";if("string"===typeof t)n=t;else do{var o=T(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function A(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function M(){var t=document.scrollingElement;return t||document.documentElement}function P(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,f;if(t!==window&&t!==M()?(i=t.getBoundingClientRect(),a=i.top,l=i.left,s=i.bottom,c=i.right,u=i.height,f=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!m))do{if(r&&r.getBoundingClientRect&&("none"!==T(r,"transform")||n&&"static"!==T(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(T(r,"border-top-width")),l-=d.left+parseInt(T(r,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=R(r||t),h=p&&p.a,v=p&&p.d;p&&(a/=v,l/=h,f/=h,u/=v,s=a+u,c=l+f)}return{top:a,left:l,bottom:s,right:c,width:f,height:u}}}function N(t,e,n){var o=U(t,!0),r=P(t)[e];while(o){var i=P(o)[n],a=void 0;if(a="top"===n||"left"===n?r>=i:r<=i,!a)return o;if(o===M())break;o=U(o,!1)}return!1}function j(t,e,n){var o=0,r=0,i=t.children;while(r<i.length){if("none"!==i[r].style.display&&i[r]!==Zt.ghost&&i[r]!==Zt.dragged&&C(i[r],n.draggable,t,!1)){if(o===e)return i[r];o++}r++}return null}function L(t,e){var n=t.lastElementChild;while(n&&(n===Zt.ghost||"none"===T(n,"display")||e&&!E(n,e)))n=n.previousElementSibling;return n||null}function I(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Zt.clone||e&&!E(t,e)||n++;return n}function F(t){var e=0,n=0,o=M();if(t)do{var r=R(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function B(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}function U(t,e){if(!t||!t.getBoundingClientRect)return M();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=T(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(o||e)return n;o=!0}}}while(n=n.parentNode);return M()}function $(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function V(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 H(t,e){return function(){if(!S){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),S=setTimeout((function(){S=void 0}),e)}}}function W(){clearTimeout(S),S=void 0}function z(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Y(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 G(t,e){T(t,"position","absolute"),T(t,"top",e.top),T(t,"left",e.left),T(t,"width",e.width),T(t,"height",e.height)}function K(t){T(t,"position",""),T(t,"top",""),T(t,"left",""),T(t,"width",""),T(t,"height","")}var J="Sortable"+(new Date).getTime();function X(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==T(t,"display")&&t!==Zt.ghost){e.push({target:t,rect:P(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=R(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(B(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var r=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=P(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,f=R(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&V(s,l)&&!V(a,l)&&(u.top-l.top)/(u.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(e=Q(u,s,c,o.options)),V(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,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),r?t=setTimeout((function(){"function"===typeof n&&n()}),i):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){T(t,"transition",""),T(t,"transform","");var r=R(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,T(t,"transform","translate3d("+l+"px,"+s+"px,0)"),Z(t),T(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),T(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){T(t,"transition",""),T(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}function Z(t){return t.offsetWidth}function Q(t,e,n,o){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))*o.animation}var tt=[],et={initializeByDefault:!0},nt={mount:function(t){for(var e in et)et.hasOwnProperty(e)&&!(e in t)&&(t[e]=et[e]);tt.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";tt.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](a({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var r in tt.forEach((function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var a=new o(t,e,t.options);a.sortable=t,a.options=t.options,t[r]=a,i(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);"undefined"!==typeof a&&(t.options[r]=a)}},getEventProperties:function(t,e){var n={};return tt.forEach((function(o){"function"===typeof o.eventProperties&&i(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return tt.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))})),o}};function ot(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,l=t.toEl,s=t.fromEl,c=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,y=t.extraEventProperties;if(e=e||n&&n[J],e){var g,b=e.options,_="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||m||v?(g=document.createEvent("Event"),g.initEvent(o,!0,!0)):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=l||n,g.from=s||n,g.item=r||n,g.clone=i,g.oldIndex=c,g.newIndex=u,g.oldDraggableIndex=f,g.newDraggableIndex=d,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var w=a({},y,nt.getEventProperties(o,e));for(var O in w)g[O]=w[O];n&&n.dispatchEvent(g),b[_]&&b[_].call(e,g)}}var rt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=s(n,["evt"]);nt.pluginEvent.bind(Zt)(t,e,a({dragEl:at,parentEl:lt,ghostEl:st,rootEl:ct,nextEl:ut,lastDownEl:ft,cloneEl:dt,cloneHidden:pt,dragStarted:Ct,putSortable:bt,activeSortable:Zt.active,originalEvent:o,oldIndex:ht,oldDraggableIndex:vt,newIndex:mt,newDraggableIndex:yt,hideGhostForTarget:Gt,unhideGhostForTarget:Kt,cloneNowHidden:function(){pt=!0},cloneNowShown:function(){pt=!1},dispatchSortableEvent:function(t){it({sortable:e,name:t,originalEvent:o})}},r))};function it(t){ot(a({putSortable:bt,cloneEl:dt,targetEl:at,rootEl:ct,oldIndex:ht,oldDraggableIndex:vt,newIndex:mt,newDraggableIndex:yt},t))}var at,lt,st,ct,ut,ft,dt,pt,ht,mt,vt,yt,gt,bt,_t,wt,Ot,xt,Et,kt,Ct,St,qt,Dt,Tt,Rt=!1,At=!1,Mt=[],Pt=!1,Nt=!1,jt=[],Lt=!1,It=[],Ft="undefined"!==typeof document,Bt=b,Ut=v||m?"cssFloat":"float",$t=Ft&&!_&&!b&&"draggable"in document.createElement("div"),Vt=function(){if(Ft){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ht=function(t,e){var n=T(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=j(t,0,e),i=j(t,1,e),a=r&&T(r),l=i&&T(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(i).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(r&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Ut]||i&&"none"===n[Ut]&&s+c>o)?"vertical":"horizontal"},Wt=function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||r===l||o+i/2===a+s/2},zt=function(t,e){var n;return Mt.some((function(o){if(!L(o)){var r=P(o),i=o[J].options.emptyInsertThreshold,a=t>=r.left-i&&t<=r.right+i,l=e>=r.top-i&&e<=r.bottom+i;return i&&a&&l?n=o:void 0}})),n},Yt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.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(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===t||"string"===typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},r=t.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},Gt=function(){!Vt&&st&&T(st,"display","none")},Kt=function(){!Vt&&st&&T(st,"display","")};Ft&&document.addEventListener("click",(function(t){if(At)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),At=!1,!1}),!0);var Jt=function(t){if(at){t=t.touches?t.touches[0]:t;var e=zt(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[J]._onDragOver(n)}}},Xt=function(t){at&&at.parentNode[J]._isOutsideThisEl(t.target)};function Zt(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=i({},e),t[J]=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 Ht(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!==Zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in nt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in Yt(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&$t,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?O(t,"pointerdown",this._onTapStart):(O(t,"mousedown",this._onTapStart),O(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(O(t,"dragover",this),O(t,"dragenter",this)),Mt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),i(this,X())}function Qt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,n,o,r,i,a,l){var s,c,u=t[J],f=u.options.onMove;return!window.CustomEvent||m||v?(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=o,s.related=r||e,s.relatedRect=i||P(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function ee(t){t.draggable=!1}function ne(){Lt=!1}function oe(t,e,n){var o=P(L(n.el,n.options.draggable)),r=10;return e?t.clientX>o.right+r||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+r}function re(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,f=o?n.bottom:n.right,d=!1;if(!a)if(l&&Dt<c*r){if(!Pt&&(1===qt?s>u+c*i/2:s<f-c*i/2)&&(Pt=!0),Pt)d=!0;else if(1===qt?s<u+Dt:s>f-Dt)return-qt}else if(s>u+c*(1-r)/2&&s<f-c*(1-r)/2)return ie(e);return d=d||a,d&&(s<u+c*i/2||s>f-c*i/2)?s>u+c/2?1:-1:0}function ie(t){return I(at)<I(t)?1:-1}function ae(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;while(n--)o+=e.charCodeAt(n);return o.toString(36)}function le(t){It.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var o=e[n];o.checked&&It.push(o)}}function se(t){return setTimeout(t,0)}function ce(t){return clearTimeout(t)}Zt.prototype={constructor:Zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(St=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,at):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=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=o.filter;if(le(n),!at&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(l=C(l,o.draggable,n,!1),(!l||!l.animated)&&ft!==l)){if(ht=I(l),vt=I(l,o.draggable),"function"===typeof c){if(c.call(this,t,l,this))return it({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),rt("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=C(s,o.trim(),n,!1),o)return it({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),rt("filter",e,{evt:t}),!0})),c))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!C(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!at&&n.parentNode===i){var s=P(n);if(ct=i,at=n,lt=at.parentNode,ut=at.nextSibling,ft=n,gt=a.group,Zt.dragged=at,_t={target:at,clientX:(e||t).clientX,clientY:(e||t).clientY},Et=_t.clientX-s.left,kt=_t.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,at.style["will-change"]="all",o=function(){rt("delayEnded",r,{evt:t}),Zt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!y&&r.nativeDraggable&&(at.draggable=!0),r._triggerDragStart(t,e),it({sortable:r,name:"choose",originalEvent:t}),D(at,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){A(at,t.trim(),ee)})),O(l,"dragover",Jt),O(l,"mousemove",Jt),O(l,"touchmove",Jt),O(l,"mouseup",r._onDrop),O(l,"touchend",r._onDrop),O(l,"touchcancel",r._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,at.draggable=!0),rt("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(v||m))o();else{if(Zt.eventCanceled)return void this._onDrop();O(l,"mouseup",r._disableDelayedDrag),O(l,"touchend",r._disableDelayedDrag),O(l,"touchcancel",r._disableDelayedDrag),O(l,"mousemove",r._delayedDragTouchMoveHandler),O(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&O(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,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(){at&&ee(at),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;x(t,"mouseup",this._disableDelayedDrag),x(t,"touchend",this._disableDelayedDrag),x(t,"touchcancel",this._disableDelayedDrag),x(t,"mousemove",this._delayedDragTouchMoveHandler),x(t,"touchmove",this._delayedDragTouchMoveHandler),x(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?O(document,"pointermove",this._onTouchMove):O(document,e?"touchmove":"mousemove",this._onTouchMove):(O(at,"dragend",this),O(ct,"dragstart",this._onDragStart));try{document.selection?se((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Rt=!1,ct&&at){rt("dragStarted",this,{evt:e}),this.nativeDraggable&&O(document,"dragover",Xt);var n=this.options;!t&&D(at,n.dragClass,!1),D(at,n.ghostClass,!0),Zt.active=this,t&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(wt){this._lastX=wt.clientX,this._lastY=wt.clientY,Gt();var t=document.elementFromPoint(wt.clientX,wt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(wt.clientX,wt.clientY),t===e)break;e=t}if(at.parentNode[J]._isOutsideThisEl(t),e)do{if(e[J]){var n=void 0;if(n=e[J]._onDragOver({clientX:wt.clientX,clientY:wt.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Kt()}},_onTouchMove:function(t){if(_t){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=st&&R(st,!0),a=st&&i&&i.a,l=st&&i&&i.d,s=Bt&&Tt&&F(Tt),c=(r.clientX-_t.clientX+o.x)/(a||1)+(s?s[0]-jt[0]:0)/(a||1),u=(r.clientY-_t.clientY+o.y)/(l||1)+(s?s[1]-jt[1]:0)/(l||1);if(!Zt.active&&!Rt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(st){i?(i.e+=c-(Ot||0),i.f+=u-(xt||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");T(st,"webkitTransform",f),T(st,"mozTransform",f),T(st,"msTransform",f),T(st,"transform",f),Ot=c,xt=u,wt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!st){var t=this.options.fallbackOnBody?document.body:ct,e=P(at,!0,Bt,!0,t),n=this.options;if(Bt){Tt=t;while("static"===T(Tt,"position")&&"none"===T(Tt,"transform")&&Tt!==document)Tt=Tt.parentNode;Tt!==document.body&&Tt!==document.documentElement?(Tt===document&&(Tt=M()),e.top+=Tt.scrollTop,e.left+=Tt.scrollLeft):Tt=M(),jt=F(Tt)}st=at.cloneNode(!0),D(st,n.ghostClass,!1),D(st,n.fallbackClass,!0),D(st,n.dragClass,!0),T(st,"transition",""),T(st,"transform",""),T(st,"box-sizing","border-box"),T(st,"margin",0),T(st,"top",e.top),T(st,"left",e.left),T(st,"width",e.width),T(st,"height",e.height),T(st,"opacity","0.8"),T(st,"position",Bt?"absolute":"fixed"),T(st,"zIndex","100000"),T(st,"pointerEvents","none"),Zt.ghost=st,t.appendChild(st),T(st,"transform-origin",Et/parseInt(st.style.width)*100+"% "+kt/parseInt(st.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;rt("dragStart",this,{evt:t}),Zt.eventCanceled?this._onDrop():(rt("setupClone",this),Zt.eventCanceled||(dt=Y(at),dt.draggable=!1,dt.style["will-change"]="",this._hideClone(),D(dt,this.options.chosenClass,!1),Zt.clone=dt),n.cloneId=se((function(){rt("clone",n),Zt.eventCanceled||(n.options.removeCloneOnHide||ct.insertBefore(dt,at),n._hideClone(),it({sortable:n,name:"clone"}))})),!e&&D(at,r.dragClass,!0),e?(At=!0,n._loopId=setInterval(n._emulateDragOver,50)):(x(document,"mouseup",n._onDrop),x(document,"touchend",n._onDrop),x(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,at)),O(document,"drop",n),T(at,"transform","translateZ(0)")),Rt=!0,n._dragStartId=se(n._dragStarted.bind(n,e,t)),O(document,"selectstart",n),Ct=!0,g&&T(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,l=t.target,s=this.options,c=s.group,u=Zt.active,f=gt===c,d=s.sort,p=bt||u,h=this,m=!1;if(!Lt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=C(l,s.draggable,i,!0),A("dragOver"),Zt.eventCanceled)return m;if(at.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||h._ignoreWhileAnimating===l)return j(!1);if(At=!1,u&&!s.disabled&&(f?d||(o=!ct.contains(at)):bt===this||(this.lastPutMode=gt.checkPull(this,u,at,t))&&c.checkPut(this,u,at,t))){if(r="vertical"===this._getDirection(t,l),e=P(at),A("dragOverValid"),Zt.eventCanceled)return m;if(o)return lt=ct,M(),this._hideClone(),A("revert"),Zt.eventCanceled||(ut?ct.insertBefore(at,ut):ct.appendChild(at)),j(!0);var v=L(i,s.draggable);if(!v||oe(t,r,this)&&!v.animated){if(v===at)return j(!1);if(v&&i===t.target&&(l=v),l&&(n=P(l)),!1!==te(ct,i,at,e,l,n,t,!!l))return M(),i.appendChild(at),lt=i,F(),j(!0)}else if(l.parentNode===i){n=P(l);var y,g,b=0,_=at.parentNode!==i,w=!Wt(at.animated&&at.toRect||e,l.animated&&l.toRect||n,r),O=r?"top":"left",x=N(l,"top","top")||N(at,"top","top"),E=x?x.scrollTop:void 0;if(St!==l&&(y=n[O],Pt=!1,Nt=!w&&s.invertSwap||_),b=re(t,l,n,r,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Nt,St===l),0!==b){var k=I(at);do{k-=b,g=lt.children[k]}while(g&&("none"===T(g,"display")||g===st))}if(0===b||g===l)return j(!1);St=l,qt=b;var S=l.nextElementSibling,q=!1;q=1===b;var R=te(ct,i,at,e,l,n,t,q);if(!1!==R)return 1!==R&&-1!==R||(q=1===R),Lt=!0,setTimeout(ne,30),M(),q&&!S?i.appendChild(at):l.parentNode.insertBefore(at,q?S:l),x&&z(x,0,E-x.scrollTop),lt=at.parentNode,void 0===y||Nt||(Dt=Math.abs(y-P(l)[O])),F(),j(!0)}if(i.contains(at))return j(!1)}return!1}function A(s,c){rt(s,h,a({evt:t,isOwner:f,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:d,fromSortable:p,target:l,completed:j,onMove:function(n,o){return te(ct,i,at,e,n,P(n),t,o)},changed:F},c))}function M(){A("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function j(e){return A("dragOverCompleted",{insertion:e}),e&&(f?u._hideClone():u._showClone(h),h!==p&&(D(at,bt?bt.options.ghostClass:u.options.ghostClass,!1),D(at,s.ghostClass,!0)),bt!==h&&h!==Zt.active?bt=h:h===Zt.active&&bt&&(bt=null),p===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){A("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===at&&!at.animated||l===i&&!l.animated)&&(St=null),s.dragoverBubble||t.rootEl||l===document||(at.parentNode[J]._isOutsideThisEl(t.target),!e&&Jt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function F(){mt=I(at),yt=I(at,s.draggable),it({sortable:h,name:"change",toEl:i,newIndex:mt,newDraggableIndex:yt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){x(document,"mousemove",this._onTouchMove),x(document,"touchmove",this._onTouchMove),x(document,"pointermove",this._onTouchMove),x(document,"dragover",Jt),x(document,"mousemove",Jt),x(document,"touchmove",Jt)},_offUpEvents:function(){var t=this.el.ownerDocument;x(t,"mouseup",this._onDrop),x(t,"touchend",this._onDrop),x(t,"pointerup",this._onDrop),x(t,"touchcancel",this._onDrop),x(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;mt=I(at),yt=I(at,n.draggable),rt("drop",this,{evt:t}),lt=at&&at.parentNode,mt=I(at),yt=I(at,n.draggable),Zt.eventCanceled||(Rt=!1,Nt=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ce(this.cloneId),ce(this._dragStartId),this.nativeDraggable&&(x(document,"drop",this),x(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),g&&T(document.body,"user-select",""),T(at,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),st&&st.parentNode&&st.parentNode.removeChild(st),(ct===lt||bt&&"clone"!==bt.lastPutMode)&&dt&&dt.parentNode&&dt.parentNode.removeChild(dt),at&&(this.nativeDraggable&&x(at,"dragend",this),ee(at),at.style["will-change"]="",Ct&&!Rt&&D(at,bt?bt.options.ghostClass:this.options.ghostClass,!1),D(at,this.options.chosenClass,!1),it({sortable:this,name:"unchoose",toEl:lt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ct!==lt?(mt>=0&&(it({rootEl:lt,name:"add",toEl:lt,fromEl:ct,originalEvent:t}),it({sortable:this,name:"remove",toEl:lt,originalEvent:t}),it({rootEl:lt,name:"sort",toEl:lt,fromEl:ct,originalEvent:t}),it({sortable:this,name:"sort",toEl:lt,originalEvent:t})),bt&&bt.save()):mt!==ht&&mt>=0&&(it({sortable:this,name:"update",toEl:lt,originalEvent:t}),it({sortable:this,name:"sort",toEl:lt,originalEvent:t})),Zt.active&&(null!=mt&&-1!==mt||(mt=ht,yt=vt),it({sortable:this,name:"end",toEl:lt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){rt("nulling",this),ct=at=lt=st=ut=dt=ft=pt=_t=wt=Ct=mt=yt=ht=vt=St=qt=bt=gt=Zt.dragged=Zt.ghost=Zt.clone=Zt.active=null,It.forEach((function(t){t.checked=!0})),It.length=Ot=xt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":at&&(this._onDragOver(t),Qt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)t=n[o],C(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||ae(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var r=n.children[o];C(r,this.options.draggable,n,!1)&&(e[t]=r)}),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 C(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=nt.modifyOption(this,t,e);n[t]="undefined"!==typeof o?o:e,"group"===t&&Yt(n)},destroy:function(){rt("destroy",this);var t=this.el;t[J]=null,x(t,"mousedown",this._onTapStart),x(t,"touchstart",this._onTapStart),x(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(x(t,"dragover",this),x(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!pt){if(rt("hideClone",this),Zt.eventCanceled)return;T(dt,"display","none"),this.options.removeCloneOnHide&&dt.parentNode&&dt.parentNode.removeChild(dt),pt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(pt){if(rt("showClone",this),Zt.eventCanceled)return;ct.contains(at)&&!this.options.group.revertClone?ct.insertBefore(dt,at):ut?ct.insertBefore(dt,ut):ct.appendChild(dt),this.options.group.revertClone&&this.animate(at,dt),T(dt,"display",""),pt=!1}}else this._hideClone()}},Ft&&O(document,"touchmove",(function(t){(Zt.active||Rt)&&t.cancelable&&t.preventDefault()})),Zt.utils={on:O,off:x,css:T,find:A,is:function(t,e){return!!C(t,e,t,!1)},extend:$,throttle:H,closest:C,toggleClass:D,clone:Y,index:I,nextTick:se,cancelNextTick:ce,detectDirection:Ht,getChild:j},Zt.get=function(t){return t[J]},Zt.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&&(Zt.utils=a({},Zt.utils,t.utils)),nt.mount(t)}))},Zt.create=function(t,e){return new Zt(t,e)},Zt.version=p;var ue,fe,de,pe,he,me,ve=[],ye=!1;function ge(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},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?O(document,"dragover",this._handleAutoScroll):this.options.supportPointer?O(document,"pointermove",this._handleFallbackAutoScroll):e.touches?O(document,"touchmove",this._handleFallbackAutoScroll):O(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):(x(document,"pointermove",this._handleFallbackAutoScroll),x(document,"touchmove",this._handleFallbackAutoScroll),x(document,"mousemove",this._handleFallbackAutoScroll)),_e(),be(),W()},nulling:function(){he=fe=ue=ye=me=de=pe=null,ve.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(he=t,e||v||m||g){Oe(t,this.options,i,e);var a=U(i,!0);!ye||me&&o===de&&r===pe||(me&&_e(),me=setInterval((function(){var i=U(document.elementFromPoint(o,r),!0);i!==a&&(a=i,be()),Oe(t,n.options,i,e)}),10),de=o,pe=r)}else{if(!this.options.bubbleScroll||U(i,!0)===M())return void be();Oe(t,this.options,U(i,!1),!1)}}},i(t,{pluginName:"scroll",initializeByDefault:!0})}function be(){ve.forEach((function(t){clearInterval(t.pid)})),ve=[]}function _e(){clearInterval(me)}var we,Oe=H((function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=M(),u=!1;fe!==n&&(fe=n,be(),ue=e.scroll,r=e.scrollFn,!0===ue&&(ue=U(n,!0)));var f=0,d=ue;do{var p=d,h=P(p),m=h.top,v=h.bottom,y=h.left,g=h.right,b=h.width,_=h.height,w=void 0,O=void 0,x=p.scrollWidth,E=p.scrollHeight,k=T(p),C=p.scrollLeft,S=p.scrollTop;p===c?(w=b<x&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),O=_<E&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(w=b<x&&("auto"===k.overflowX||"scroll"===k.overflowX),O=_<E&&("auto"===k.overflowY||"scroll"===k.overflowY));var q=w&&(Math.abs(g-i)<=l&&C+b<x)-(Math.abs(y-i)<=l&&!!C),D=O&&(Math.abs(v-a)<=l&&S+_<E)-(Math.abs(m-a)<=l&&!!S);if(!ve[f])for(var R=0;R<=f;R++)ve[R]||(ve[R]={});ve[f].vx==q&&ve[f].vy==D&&ve[f].el===p||(ve[f].el=p,ve[f].vx=q,ve[f].vy=D,clearInterval(ve[f].pid),0==q&&0==D||(u=!0,ve[f].pid=setInterval(function(){o&&0===this.layer&&Zt.active._onTouchMove(he);var e=ve[this.layer].vy?ve[this.layer].vy*s:0,n=ve[this.layer].vx?ve[this.layer].vx*s:0;"function"===typeof r&&"continue"!==r.call(Zt.dragged.parentNode[J],n,e,t,he,ve[this.layer].el)||z(ve[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==c&&(d=U(d,!1)));ye=u}}),30),xe=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||r;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)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function Ee(){}function ke(){}function Ce(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;we=e},dragOverValid:function(t){var e=t.completed,n=t.target,o=t.onMove,r=t.activeSortable,i=t.changed,a=t.cancel;if(r.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=we;!1!==o(n)?(D(n,s.swapClass,!0),we=n):we=null,c&&c!==we&&D(c,s.swapClass,!1)}i(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,o=t.dragEl,r=n||this.sortable,i=this.options;we&&D(we,i.swapClass,!1),we&&(i.swap||n&&n.options.swap)&&o!==we&&(r.captureAnimationState(),r!==e&&e.captureAnimationState(),Se(o,we),r.animateAll(),r!==e&&e.animateAll())},nulling:function(){we=null}},i(t,{pluginName:"swap",eventProperties:function(){return{swapItem:we}}})}function Se(t,e){var n,o,r=t.parentNode,i=e.parentNode;r&&i&&!r.isEqualNode(e)&&!i.isEqualNode(t)&&(n=I(t),o=I(e),r.isEqualNode(i)&&n<o&&o++,r.insertBefore(e,r.children[n]),i.insertBefore(t,i.children[o]))}Ee.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 o=j(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:xe},i(Ee,{pluginName:"revertOnSpill"}),ke.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:xe},i(ke,{pluginName:"removeOnSpill"});var qe,De,Te,Re,Ae,Me=[],Pe=[],Ne=!1,je=!1,Le=!1;function Ie(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?O(document,"pointerup",this._deselectMultiDrag):(O(document,"mouseup",this._deselectMultiDrag),O(document,"touchend",this._deselectMultiDrag)),O(document,"keydown",this._checkKeyDown),O(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var o="";Me.length&&De===t?Me.forEach((function(t,e){o+=(e?", ":"")+t.textContent})):o=n.textContent,e.setData("Text",o)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Te=e},delayEnded:function(){this.isMultiDrag=~Me.indexOf(Te)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var o=0;o<Me.length;o++)Pe.push(Y(Me[o])),Pe[o].sortableIndex=Me[o].sortableIndex,Pe[o].draggable=!1,Pe[o].style["will-change"]="",D(Pe[o],this.options.selectedClass,!1),Me[o]===Te&&D(Pe[o],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,o=t.dispatchSortableEvent,r=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Me.length&&De===e&&(Be(!0,n),o("clone"),r()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,o=t.cancel;this.isMultiDrag&&(Be(!1,n),Pe.forEach((function(t){T(t,"display","")})),e(),Ae=!1,o())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),o=t.cancel;this.isMultiDrag&&(Pe.forEach((function(t){T(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),Ae=!0,o())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&De&&De.multiDrag._deselectMultiDrag(),Me.forEach((function(t){t.sortableIndex=I(t)})),Me=Me.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Le=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Me.forEach((function(t){t!==Te&&T(t,"position","absolute")}));var o=P(Te,!1,!0,!0);Me.forEach((function(t){t!==Te&&G(t,o)})),je=!0,Ne=!0}n.animateAll((function(){je=!1,Ne=!1,e.options.animation&&Me.forEach((function(t){K(t)})),e.options.sort&&Ue()}))}},dragOver:function(t){var e=t.target,n=t.completed,o=t.cancel;je&&~Me.indexOf(e)&&(n(!1),o())},revert:function(t){var e=t.fromSortable,n=t.rootEl,o=t.sortable,r=t.dragRect;Me.length>1&&(Me.forEach((function(t){o.addAnimationState({target:t,rect:je?P(t):r}),K(t),t.fromRect=r,e.removeAnimationState(t)})),je=!1,Fe(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,o=t.insertion,r=t.activeSortable,i=t.parentEl,a=t.putSortable,l=this.options;if(o){if(n&&r._hideClone(),Ne=!1,l.animation&&Me.length>1&&(je||!n&&!r.options.sort&&!a)){var s=P(Te,!1,!0,!0);Me.forEach((function(t){t!==Te&&(G(t,s),i.appendChild(t))})),je=!0}if(!n)if(je||Ue(),Me.length>1){var c=Ae;r._showClone(e),r.options.animation&&!Ae&&c&&Pe.forEach((function(t){r.addAnimationState({target:t,rect:Re}),t.fromRect=Re,t.thisAnimationDuration=null}))}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,o=t.activeSortable;if(Me.forEach((function(t){t.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){Re=i({},e);var r=R(Te,!0);Re.top-=r.f,Re.left-=r.e}},dragOverAnimationComplete:function(){je&&(je=!1,Ue())},drop:function(t){var e=t.originalEvent,n=t.rootEl,o=t.parentEl,r=t.sortable,i=t.dispatchSortableEvent,a=t.oldIndex,l=t.putSortable,s=l||this.sortable;if(e){var c=this.options,u=o.children;if(!Le)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(Te,c.selectedClass,!~Me.indexOf(Te)),~Me.indexOf(Te))Me.splice(Me.indexOf(Te),1),qe=null,ot({sortable:r,rootEl:n,name:"deselect",targetEl:Te,originalEvt:e});else{if(Me.push(Te),ot({sortable:r,rootEl:n,name:"select",targetEl:Te,originalEvt:e}),e.shiftKey&&qe&&r.el.contains(qe)){var f,d,p=I(qe),h=I(Te);if(~p&&~h&&p!==h)for(h>p?(d=p,f=h):(d=h,f=p+1);d<f;d++)~Me.indexOf(u[d])||(D(u[d],c.selectedClass,!0),Me.push(u[d]),ot({sortable:r,rootEl:n,name:"select",targetEl:u[d],originalEvt:e}))}else qe=Te;De=s}if(Le&&this.isMultiDrag){if((o[J].options.sort||o!==n)&&Me.length>1){var m=P(Te),v=I(Te,":not(."+this.options.selectedClass+")");if(!Ne&&c.animation&&(Te.thisAnimationDuration=null),s.captureAnimationState(),!Ne&&(c.animation&&(Te.fromRect=m,Me.forEach((function(t){if(t.thisAnimationDuration=null,t!==Te){var e=je?P(t):m;t.fromRect=e,s.addAnimationState({target:t,rect:e})}}))),Ue(),Me.forEach((function(t){u[v]?o.insertBefore(t,u[v]):o.appendChild(t),v++})),a===I(Te))){var y=!1;Me.forEach((function(t){t.sortableIndex===I(t)||(y=!0)})),y&&i("update")}Me.forEach((function(t){K(t)})),s.animateAll()}De=s}(n===o||l&&"clone"!==l.lastPutMode)&&Pe.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Le=!1,Pe.length=0},destroyGlobal:function(){this._deselectMultiDrag(),x(document,"pointerup",this._deselectMultiDrag),x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Le||!Le)&&De===this.sortable&&(!t||!C(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Me.length){var e=Me[0];D(e,this.options.selectedClass,!1),Me.shift(),ot({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)}},i(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[J];e&&e.options.multiDrag&&!~Me.indexOf(t)&&(De&&De!==e&&(De.multiDrag._deselectMultiDrag(),De=e),D(t,e.options.selectedClass,!0),Me.push(t))},deselect:function(t){var e=t.parentNode[J],n=Me.indexOf(t);e&&e.options.multiDrag&&~n&&(D(t,e.options.selectedClass,!1),Me.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Me.forEach((function(o){var r;e.push({multiDragElement:o,index:o.sortableIndex}),r=je&&o!==Te?-1:je?I(o,":not(."+t.options.selectedClass+")"):I(o),n.push({multiDragElement:o,index:r})})),{items:c(Me),clones:[].concat(Pe),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 Fe(t,e){Me.forEach((function(n,o){var r=e.children[n.sortableIndex+(t?Number(o):0)];r?e.insertBefore(n,r):e.appendChild(n)}))}function Be(t,e){Pe.forEach((function(n,o){var r=e.children[n.sortableIndex+(t?Number(o):0)];r?e.insertBefore(n,r):e.appendChild(n)}))}function Ue(){Me.forEach((function(t){t!==Te&&t.parentNode&&t.parentNode.removeChild(t)}))}Zt.mount(new ge),Zt.mount(ke,Ee),e["default"]=Zt},aae3:function(t,e,n){var o=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},ac4d:function(t,e,n){n("3a72")("asyncIterator")},ac6a:function(t,e,n){for(var o=n("cadf"),r=n("0d58"),i=n("2aba"),a=n("7726"),l=n("32e9"),s=n("84f2"),c=n("2b4c"),u=c("iterator"),f=c("toStringTag"),d=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=r(p),m=0;m<h.length;m++){var v,y=h[m],g=p[y],b=a[y],_=b&&b.prototype;if(_&&(_[u]||l(_,u,d),_[f]||l(_,f,y),s[y]=d,g))for(v in o)_[v]||i(_,v,o[v],!0)}},acbf:function(t,e,n){},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0b4:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n("85f2"),r=n.n(o);function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r()(t,o.key,o)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),r()(t,"prototype",{writable:!1}),t}},b0c5:function(t,e,n){"use strict";var o=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},b0dc:function(t,e,n){var o=n("e4ae");t.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(a){var i=t["return"];throw void 0!==i&&o(i.call(t)),a}}},b189:function(t,e,n){"use strict";var o;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n("d4ab"),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),c=l.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"===typeof window[t])try{f(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(t){if("undefined"===typeof window||!p)return f(t);try{return f(t)}catch(e){return!1}};o=function(t){var e=null!==t&&"object"===typeof t,n="[object Function]"===i.call(t),o=a(t),l=e&&"[object String]"===i.call(t),f=[];if(!e&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(l&&t.length>0&&!r.call(t,0))for(var p=0;p<t.length;++p)f.push(String(p));if(o&&t.length>0)for(var m=0;m<t.length;++m)f.push(String(m));else for(var v in t)d&&"prototype"===v||!r.call(t,v)||f.push(String(v));if(s)for(var y=h(t),g=0;g<u.length;++g)y&&"constructor"===u[g]||!r.call(t,u[g])||f.push(u[g]);return f}}t.exports=o},b1f2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={rendererFormId:"vue-form-render-pro-max"}},b2b8:function(t,e,n){"use strict";(function(e){var o=n("e39c");if(n("5156")()||n("1696")()){var r=Symbol.iterator;t.exports=function(t){return null!=t&&"undefined"!==typeof t[r]?t[r]():o(t)?Array.prototype[r].call(t):void 0}}else{var i=n("9665"),a=n("55b2"),l=n("00ce"),s=l("%Map%",!0),c=l("%Set%",!0),u=n("545e"),f=u("Array.prototype.push"),d=u("String.prototype.charCodeAt"),p=u("String.prototype.slice"),h=function(t,e){var n=t.length;if(e+1>=n)return e+1;var o=d(t,e);if(o<55296||o>56319)return e+1;var r=d(t,e+1);return r<56320||r>57343?e+1:e+2},m=function(t){var e=0;return{next:function(){var n,o=e>=t.length;return o||(n=t[e],e+=1),{done:o,value:n}}}},v=function(t,e){if(i(t)||o(t))return m(t);if(a(t)){var n=0;return{next:function(){var e=h(t,n),o=p(t,n,e);return n=e,{done:e>t.length,value:o}}}}return e&&"undefined"!==typeof t["_es6-shim iterator_"]?t["_es6-shim iterator_"]():void 0};if(s||c){var y=n("fd13"),g=n("be03"),b=u("Map.prototype.forEach",!0),_=u("Set.prototype.forEach",!0);if("undefined"===typeof e||!e.versions||!e.versions.node)var w=u("Map.prototype.iterator",!0),O=u("Set.prototype.iterator",!0),x=function(t){var e=!1;return{next:function(){try{return{done:e,value:e?void 0:t.next()}}catch(n){return e=!0,{done:!0,value:void 0}}}}};var E=u("Map.prototype.@@iterator",!0)||u("Map.prototype._es6-shim iterator_",!0),k=u("Set.prototype.@@iterator",!0)||u("Set.prototype._es6-shim iterator_",!0),C=function(t){if(y(t)){if(w)return x(w(t));if(E)return E(t);if(b){var e=[];return b(t,(function(t,n){f(e,[n,t])})),m(e)}}if(g(t)){if(O)return x(O(t));if(k)return k(t);if(_){var n=[];return _(t,(function(t){f(n,t)})),m(n)}}};t.exports=function(t){return C(t)||v(t)}}else t.exports=function(t){if(null!=t)return v(t,!0)}}}).call(this,n("4362"))},b447:function(t,e,n){var o=n("3a38"),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},b635:function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return s}));var o=n("2560"),r=n("6a29");n.d(e,"c",(function(){return r["a"]}));var i=n("fbdb");n.d(e,"d",(function(){return i["a"]}));var a=n("c72d");n.d(e,"b",(function(){return a["a"]}));var l=n("da2a");n.d(e,"a",(function(){return l["a"]}));n("c992");var s={install:o["a"]};"undefined"!==typeof window?window.VueFormBuilderPlugin=s:"undefined"!==typeof t&&(t.VueFormBuilderPlugin=s)}).call(this,n("c8ba"))},b639:function(t,e,n){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var o=n("1fb5"),r=n("9152"),i=n("e3db");function a(){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(e){return!1}}function l(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(l()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(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 p(this,t)}return u(this,t,e,n)}function u(t,e,n,o){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,n,o):"string"===typeof e?h(t,e,n):y(t,e)}function f(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 d(t,e,n,o){return f(e),e<=0?s(t,e):void 0!==n?"string"===typeof o?s(t,e).fill(n,o):s(t,e).fill(n):s(t,e)}function p(t,e){if(f(e),t=s(t,e<0?0:0|g(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|_(e,n);t=s(t,o);var r=t.write(e,n);return r!==o&&(t=t.slice(0,r)),t}function m(t,e){var n=e.length<0?0:0|g(e.length);t=s(t,n);for(var o=0;o<n;o+=1)t[o]=255&e[o];return t}function v(t,e,n,o){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,n):new Uint8Array(e,n,o),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=m(t,e),t}function y(t,e){if(c.isBuffer(e)){var n=0|g(e.length);return t=s(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||et(e.length)?s(t,0):m(t,e);if("Buffer"===e.type&&i(e.data))return m(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),c.alloc(+t)}function _(t,e){if(c.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 o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(o)return J(t).length;e=(""+e).toLowerCase(),o=!0}}function w(t,e,n){var o=!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"";t||(t="utf8");while(1)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function O(t,e,n){var o=t[e];t[e]=t[n],t[n]=o}function x(t,e,n,o,r){if(0===t.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=c.from(e,o)),c.isBuffer(e))return 0===e.length?-1:E(t,e,n,o,r);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,o,r);throw new TypeError("val must be string, number or Buffer")}function E(t,e,n,o,r){var i,a=1,l=t.length,s=e.length;if(void 0!==o&&(o=String(o).toLowerCase(),"ucs2"===o||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(t.length<2||e.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var u=-1;for(i=n;i<l;i++)if(c(t,i)===c(e,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===s)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+s>l&&(n=l-s),i=n;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(c(t,i+d)!==c(e,d)){f=!1;break}if(f)return i}return-1}function k(t,e,n,o){n=Number(n)||0;var r=t.length-n;o?(o=Number(o),o>r&&(o=r)):o=r;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var l=parseInt(e.substr(2*a,2),16);if(isNaN(l))return a;t[n+a]=l}return a}function C(t,e,n,o){return tt(J(e,t.length-n),t,n,o)}function S(t,e,n,o){return tt(X(e),t,n,o)}function q(t,e,n,o){return S(t,e,n,o)}function D(t,e,n,o){return tt(Q(e),t,n,o)}function T(t,e,n,o){return tt(Z(e,t.length-n),t,n,o)}function R(t,e,n){return 0===e&&n===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);var o=[],r=e;while(r<n){var i,a,l,s,c=t[r],u=null,f=c>239?4:c>223?3:c>191?2:1;if(r+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:i=t[r+1],128===(192&i)&&(s=(31&c)<<6|63&i,s>127&&(u=s));break;case 3:i=t[r+1],a=t[r+2],128===(192&i)&&128===(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a,s>2047&&(s<55296||s>57343)&&(u=s));break;case 4:i=t[r+1],a=t[r+2],l=t[r+3],128===(192&i)&&128===(192&a)&&128===(192&l)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l,s>65535&&s<1114112&&(u=s))}null===u?(u=65533,f=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),r+=f}return P(o)}e.Buffer=c,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=l(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return d(null,t,e,n)},c.allocUnsafe=function(t){return p(null,t)},c.allocUnsafeSlow=function(t){return p(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,o=e.length,r=0,i=Math.min(n,o);r<i;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0},c.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}},c.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var o=c.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,r),r+=a.length}return o},c.byteLength=_,c.prototype._isBuffer=!0,c.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)O(this,e,e+1);return this},c.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)O(this,e,e+3),O(this,e+1,e+2);return this},c.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)O(this,e,e+7),O(this,e+1,e+6),O(this,e+2,e+5),O(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):w.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.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+">"},c.prototype.compare=function(t,e,n,o,r){if(!c.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===o&&(o=0),void 0===r&&(r=this.length),e<0||n>t.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&e>=n)return 0;if(o>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,o>>>=0,r>>>=0,this===t)return 0;for(var i=r-o,a=n-e,l=Math.min(i,a),s=this.slice(o,r),u=t.slice(e,n),f=0;f<l;++f)if(s[f]!==u[f]){i=s[f],a=u[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return x(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return x(this,t,e,n,!1)},c.prototype.write=function(t,e,n,o){if(void 0===e)o="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)o=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===o&&(o="utf8")):(o=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return k(this,t,e,n);case"utf8":case"utf-8":return C(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return q(this,t,e,n);case"base64":return D(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function P(t){var e=t.length;if(e<=M)return String.fromCharCode.apply(String,t);var n="",o=0;while(o<e)n+=String.fromCharCode.apply(String,t.slice(o,o+=M));return n}function N(t,e,n){var o="";n=Math.min(t.length,n);for(var r=e;r<n;++r)o+=String.fromCharCode(127&t[r]);return o}function j(t,e,n){var o="";n=Math.min(t.length,n);for(var r=e;r<n;++r)o+=String.fromCharCode(t[r]);return o}function L(t,e,n){var o=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>o)&&(n=o);for(var r="",i=e;i<n;++i)r+=K(t[i]);return r}function I(t,e,n){for(var o=t.slice(e,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function F(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 B(t,e,n,o,r,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<i)throw new RangeError('"value" argument is out of bounds');if(n+o>t.length)throw new RangeError("Index out of range")}function U(t,e,n,o){e<0&&(e=65535+e+1);for(var r=0,i=Math.min(t.length-n,2);r<i;++r)t[n+r]=(e&255<<8*(o?r:1-r))>>>8*(o?r:1-r)}function $(t,e,n,o){e<0&&(e=4294967295+e+1);for(var r=0,i=Math.min(t.length-n,4);r<i;++r)t[n+r]=e>>>8*(o?r:3-r)&255}function V(t,e,n,o,r,i){if(n+o>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,o,i){return i||V(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,o,23,4),n+4}function W(t,e,n,o,i){return i||V(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,o,52,8),n+8}c.prototype.slice=function(t,e){var n,o=this.length;if(t=~~t,e=void 0===e?o:~~e,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=c.prototype;else{var r=e-t;n=new c(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var o=this[t],r=1,i=0;while(++i<e&&(r*=256))o+=this[t+i]*r;return o},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var o=this[t+--e],r=1;while(e>0&&(r*=256))o+=this[t+--e]*r;return o},c.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var o=this[t],r=1,i=0;while(++i<e&&(r*=256))o+=this[t+i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var o=e,r=1,i=this[t+--o];while(o>0&&(r*=256))i+=this[t+--o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,o){if(t=+t,e|=0,n|=0,!o){var r=Math.pow(2,8*n)-1;B(this,t,e,n,r,0)}var i=1,a=0;this[e]=255&t;while(++a<n&&(i*=256))this[e+a]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,o){if(t=+t,e|=0,n|=0,!o){var r=Math.pow(2,8*n)-1;B(this,t,e,n,r,0)}var i=n-1,a=1;this[e+i]=255&t;while(--i>=0&&(a*=256))this[e+i]=t/a&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):$(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e|=0,!o){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var i=0,a=1,l=0;this[e]=255&t;while(++i<n&&(a*=256))t<0&&0===l&&0!==this[e+i-1]&&(l=1),this[e+i]=(t/a>>0)-l&255;return e+n},c.prototype.writeIntBE=function(t,e,n,o){if(t=+t,e|=0,!o){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var i=n-1,a=1,l=0;this[e+i]=255&t;while(--i>=0&&(a*=256))t<0&&0===l&&0!==this[e+i+1]&&(l=1),this[e+i]=(t/a>>0)-l&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):$(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,o){if(n||(n=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<n&&(o=n),o===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(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-n&&(o=t.length-e+n);var r,i=o-n;if(this===t&&n<e&&e<o)for(r=i-1;r>=0;--r)t[r+e]=this[r+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},c.prototype.fill=function(t,e,n,o){if("string"===typeof t){if("string"===typeof e?(o=e,e=0,n=this.length):"string"===typeof n&&(o=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==o&&"string"!==typeof o)throw new TypeError("encoding must be a string");if("string"===typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}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;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=c.isBuffer(t)?t:J(new c(t,o).toString()),l=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%l]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function Y(t){if(t=G(t).replace(z,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function J(t,e){var n;e=e||1/0;for(var o=t.length,r=null,i=[],a=0;a<o;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(e-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Z(t,e){for(var n,o,r,i=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),o=n>>8,r=n%256,i.push(r),i.push(o)}return i}function Q(t){return o.toByteArray(Y(t))}function tt(t,e,n,o){for(var r=0;r<o;++r){if(r+n>=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b76a:function(t,e,n){(function(e,o){t.exports=o(n("aa47"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var o=n("2d00"),r=n("5ca1"),i=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",v=function(){return this};t.exports=function(t,e,n,y,g,b,_){s(n,e,y);var w,O,x,E=function(t){if(!d&&t in q)return q[t];switch(t){case h:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",C=g==m,S=!1,q=t.prototype,D=q[f]||q[p]||g&&q[g],T=D||E(g),R=g?C?E("entries"):T:void 0,A="Array"==e&&q.entries||D;if(A&&(x=u(A.call(new t)),x!==Object.prototype&&x.next&&(c(x,k,!0),o||"function"==typeof x[f]||a(x,f,v))),C&&D&&D.name!==m&&(S=!0,T=function(){return D.call(this)}),o&&!_||!d&&!S&&q[f]||a(q,f,T),l[e]=T,l[k]=v,g)if(w={values:C?T:E(m),keys:b?T:E(h),entries:R},_)for(O in w)O in q||i(q,O,w[O]);else r(r.P+r.F*(d||S),e,w);return w}},"02f4":function(t,e,n){var o=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var i,a,l=String(r(e)),s=o(n),c=l.length;return s<0||s>=c?t?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):i:t?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var o=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var o=n("cb7c");t.exports=function(){var t=o(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 o=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return o(t,r)}},1495:function(t,e,n){var o=n("86cc"),r=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,a=i(e),l=a.length,s=0;while(l>s)o.f(t,n=a[s++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var o=n("2aba"),r=n("32e9"),i=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=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 d=l(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=p?!i((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[d](""),!e})):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!f){var m=/./[d],v=n(a,d,""[t],(function(t,e,n,o,r){return e.exec===s?p&&!r?{done:!0,value:m.call(e,n,o)}:{done:!0,value:t.call(n,e,o)}:{done:!1}})),y=v[0],g=v[1];o(String.prototype,t,y),r(RegExp.prototype,d,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},"230e":function(t,e,n){var o=n("d3f4"),r=n("7726").document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"23c6":function(t,e,n){var o=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==o(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:i?o(e):"Object"==(l=o(e))&&"function"==typeof e.callee?"Arguments":l}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var o=n("7726"),r=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s="toString",c=(""+l).split(s);n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var s="function"==typeof n;s&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===o?t[e]=n:l?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||l.call(this)}))},"2aeb":function(t,e,n){var o=n("cb7c"),r=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s="prototype",c=function(){var t,e=n("230e")("iframe"),o=i.length,r="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),c=t.F;while(o--)delete c[s][i[o]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(l[s]=o(t),n=new l,l[s]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var o=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i,l=t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))};l.store=o},"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 o=n("5ca1"),r=n("d2c8"),i="includes";o(o.P+o.F*n("5147")(i),"String",{includes:function(t){return!!~r(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var o=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var o=n("69a8"),r=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var o=n("2aeb"),r=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=o(a,{next:r(1,n)}),i(t,e+" Iterator")}},"456d":function(t,e,n){var o=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(o(t))}}))},4588:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o: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 o=n("be13");t.exports=function(t){return Object(o(t))}},5147:function(t,e,n){var o=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,!"/./"[t](e)}catch(r){}}return!0}},"520a":function(t,e,n){"use strict";var o=n("0bfb"),r=RegExp.prototype.exec,i=String.prototype.replace,a=r,l="lastIndex",s=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[l]||0!==e[l]}(),c=void 0!==/()??/.exec("")[1],u=s||c;u&&(a=function(t){var e,n,a,u,f=this;return c&&(n=new RegExp("^"+f.source+"$(?!\\s)",o.call(f))),s&&(e=f[l]),a=r.call(f,t),s&&a&&(f[l]=f.global?a.index+a[0].length:e),c&&a&&a.length>1&&i.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var o=n("8378"),r=n("7726"),i="__core-js_shared__",a=r[i]||(r[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var o=n("7726"),r=n("8378"),i=n("32e9"),a=n("2aba"),l=n("9b43"),s="prototype",c=function(t,e,n){var u,f,d,p,h=t&c.F,m=t&c.G,v=t&c.S,y=t&c.P,g=t&c.B,b=m?o:v?o[e]||(o[e]={}):(o[e]||{})[s],_=m?r:r[e]||(r[e]={}),w=_[s]||(_[s]={});for(u in m&&(n=e),n)f=!h&&b&&void 0!==b[u],d=(f?b:n)[u],p=g&&f?l(d,o):y&&"function"==typeof d?l(Function.call,d):d,b&&a(b,u,d,t&c.U),_[u]!=d&&i(_,u,p),y&&w[u]!=d&&(w[u]=d)};o.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5eda":function(t,e,n){var o=n("5ca1"),r=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),o(o.S+o.F*i((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){"use strict";var o=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var i=n.call(t,e);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var o=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return o[t]||(o[t]=r(t))}},"626a":function(t,e,n){var o=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},6762:function(t,e,n){"use strict";var o=n("5ca1"),r=n("c366")(!0);o(o.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var o=n("626a"),r=n("be13");t.exports=function(t){return o(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var o=n("d3f4");t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var o=n("0d58"),r=n("2621"),i=n("52a7"),a=n("4bf8"),l=n("626a"),s=Object.assign;t.exports=!s||n("79e5")((function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=o}))?function(t,e){var n=a(t),s=arguments.length,c=1,u=r.f,f=i.f;while(s>c){var d,p=l(arguments[c++]),h=u?o(p).concat(u(p)):o(p),m=h.length,v=0;while(m>v)f.call(p,d=h[v++])&&(n[d]=p[d])}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 o=n("4588"),r=Math.max,i=Math.min;t.exports=function(t,e){return t=o(t),t<0?r(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,n){var o=n("86cc").f,r=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{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 o=n("cb7c"),r=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(l){}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 o=n("d8e8");t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var o=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[o]&&n("32e9")(r,o,{}),t.exports=function(t){r[o][t]=!0}},"9def":function(t,e,n){var o=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(o(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 o=n("cb7c"),r=n("4bf8"),i=n("9def"),a=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\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){return[function(o,r){var i=t(this),a=void 0==o?void 0:o[e];return void 0!==a?a.call(o,i,r):n.call(String(i),o,r)},function(t,e){var r=m(n,t,this,e);if(r.done)return r.value;var f=o(t),d=String(this),p="function"===typeof e;p||(e=String(e));var y=f.global;if(y){var g=f.unicode;f.lastIndex=0}var b=[];while(1){var _=s(f,d);if(null===_)break;if(b.push(_),!y)break;var w=String(_[0]);""===w&&(f.lastIndex=l(d,i(f.lastIndex),g))}for(var O="",x=0,E=0;E<b.length;E++){_=b[E];for(var k=String(_[0]),C=c(u(a(_.index),d.length),0),S=[],q=1;q<_.length;q++)S.push(h(_[q]));var D=_.groups;if(p){var T=[k].concat(S,C,d);void 0!==D&&T.push(D);var R=String(e.apply(void 0,T))}else R=v(k,d,C,S,D,e);C>=x&&(O+=d.slice(x,C)+R,x=C+k.length)}return O+d.slice(x)}];function v(t,e,o,i,a,l){var s=o+t.length,c=i.length,u=p;return void 0!==a&&(a=r(a),u=d),n.call(l,u,(function(n,r){var l;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,o);case"'":return e.slice(s);case"<":l=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=f(u/10);return 0===d?n:d<=c?void 0===i[d-1]?r.charAt(1):i[d-1]+r.charAt(1):n}l=i[u-1]}return void 0===l?"":l}))}}))},aae3:function(t,e,n){var o=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,n){for(var o=n("cadf"),r=n("0d58"),i=n("2aba"),a=n("7726"),l=n("32e9"),s=n("84f2"),c=n("2b4c"),u=c("iterator"),f=c("toStringTag"),d=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=r(p),m=0;m<h.length;m++){var v,y=h[m],g=p[y],b=a[y],_=b&&b.prototype;if(_&&(_[u]||l(_,u,d),_[f]||l(_,f,y),s[y]=d,g))for(v in o)_[v]||i(_,v,o[v],!0)}},b0c5:function(t,e,n){"use strict";var o=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},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 o=n("6821"),r=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var l,s=o(e),c=r(s.length),u=i(a,c);if(t&&n!=n){while(c>u)if(l=s[u++],l!=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){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return s}));n("a481");function o(){return"undefined"!==typeof window?window.console:t.console}var r=o();function i(t){var e=Object.create(null);return function(n){var o=e[n];return o||(e[n]=t(n))}}var a=/-(\w)/g,l=i((function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))}));function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var o=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}}).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(o){"object"===typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},cadf:function(t,e,n){"use strict";var o=n("9c6c"),r=n("d53b"),i=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,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},cb7c:function(t,e,n){var o=n("d3f4");t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var o=n("69a8"),r=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,l=r(t),s=0,c=[];for(n in l)n!=a&&o(l,n)&&c.push(n);while(e.length>s)o(l,n=e[s++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var o=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(o(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(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 o=n("5ca1"),r=n("9def"),i=n("d2c8"),a="startsWith",l=""[a];o(o.P+o.F*n("5147")(a),"String",{startsWith:function(t){var e=i(this,t,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),o=String(t);return l?l.call(e,o,n):e.slice(n,n+o.length)===o}})},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(o){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f751:function(t,e,n){var o=n("5ca1");o(o.S+o.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 o=n("7726").document;t.exports=o&&o.documentElement},fb15:function(t,e,n){"use strict";var o;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function r(t){if(Array.isArray(t))return t}function i(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){r=!0,i=s}finally{try{o||null==l["return"]||l["return"]()}finally{if(r)throw i}}return n}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function l(t,e){if(t){if("string"===typeof t)return a(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)?a(t,e):void 0}}function s(){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 c(t,e){return r(t)||i(t,e)||l(t,e)||s()}n("6762"),n("2fdb");function u(t){if(Array.isArray(t))return a(t)}function f(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 p(t){return u(t)||f(t)||l(t)||d()}var h=n("a352"),m=n.n(h),v=n("c649");function y(t,e,n){return void 0===n||(t=t||{},t[e]=n),t}function g(t,e){return t.map((function(t){return t.elm})).indexOf(e)}function b(t,e,n,o){if(!t)return[];var r=t.map((function(t){return t.elm})),i=e.length-o,a=p(e).map((function(t,e){return e>=i?r.length:r.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}function _(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function w(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),_.call(e,t,n)}}function O(t){return["transition-group","TransitionGroup"].includes(t)}function x(t){if(!t||1!==t.length)return!1;var e=c(t,1),n=e[0].componentOptions;return!!n&&O(n.tag)}function E(t,e,n){return t[n]||(e[n]?e[n]():void 0)}function k(t,e,n){var o=0,r=0,i=E(e,n,"header");i&&(o=i.length,t=t?[].concat(p(i),p(t)):p(i));var a=E(e,n,"footer");return a&&(r=a.length,t=t?[].concat(p(t),p(a)):p(a)),{children:t,headerOffset:o,footerOffset:r}}function C(t,e){var n=null,o=function(t,e){n=y(n,t,e)},r=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{});if(o("attrs",r),!e)return n;var i=e.on,a=e.props,l=e.attrs;return o("on",i),o("props",a),Object.assign(n.attrs,l),n}var S=["Start","Add","Remove","Update","End"],q=["Choose","Unchoose","Sort","Filter","Clone"],D=["Move"].concat(S,q).map((function(t){return"on"+t})),T=null,R={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}},A={name:"draggable",inheritAttrs:!1,props:R,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=x(e);var n=k(e,this.$slots,this.$scopedSlots),o=n.children,r=n.headerOffset,i=n.footerOffset;this.headerOffset=r,this.footerOffset=i;var a=C(this.$attrs,this.componentData);return t(this.getTag(),a,o)},created:function(){null!==this.list&&null!==this.value&&v["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&v["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&&v["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={};S.forEach((function(n){e["on"+n]=w.call(t,n)})),q.forEach((function(n){e["on"+n]=_.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(v["a"])(n)]=t.$attrs[n],e}),{}),o=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in o)&&(o.draggable=">*"),this._sortable=new m.a(this.rootContainer,o),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(v["a"])(e);-1===D.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=b(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=g(this.getChildrenNodes()||[],t);if(-1===e)return null;var n=this.realList[e];return{index:e,element:n}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&O(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)t(this.list);else{var e=p(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,p(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,o=this.getUnderlyingPotencialDraggableComponent(e);if(!o)return{component:o};var r=o.realList,i={list:r,component:o};if(e!==n&&r&&o.getUnderlyingVm){var a=o.getUnderlyingVm(n);if(a)return Object.assign(a,i)}return i},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){var e=this.getChildrenNodes();e[t].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),T=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(v["d"])(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var o={element:e,newIndex:n};this.emitChanges({added:o})}},onDragRemove:function(t){if(Object(v["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(v["d"])(t.clone)},onDragUpdate:function(t){Object(v["d"])(t.item),Object(v["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=p(e.to.children).filter((function(t){return"none"!==t.style["display"]})),o=n.indexOf(e.related),r=t.component.getVmIndex(o),i=-1!==n.indexOf(T);return i||!e.willInsertAfter?r:r+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var o=this.getRelatedContextFromMoveEvent(t),r=this.context,i=this.computeFutureIndex(o,t);Object.assign(r,{futureIndex:i});var a=Object.assign({},t,{relatedContext:o,draggedContext:r});return n(a,e)},onDragEnd:function(){this.computeIndexes(),T=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",A);var M=A;e["default"]=M}})["default"]}))},b8e3:function(t,e){t.exports=!0},ba92:function(t,e,n){"use strict";var o=n("4bf8"),r=n("77f1"),i=n("9def");t.exports=[].copyWithin||function(t,e){var n=o(this),a=i(n.length),l=r(t,a),s=r(e,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-s,a-l),f=1;s<l&&l<s+u&&(f=-1,s+=u-1,l+=u-1);while(u-- >0)s in n?n[l]=n[s]:delete n[l],l+=f,s+=f;return n}},bcaa:function(t,e,n){var o=n("cb7c"),r=n("d3f4"),i=n("a5b8");t.exports=function(t,e){if(o(t),r(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},bcc7:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));n("55dd");var o=n("768b"),r=(n("ffc1"),n("ac6a"),n("cadf"),n("456d"),n("f751"),n("dd3c")),i=n("8dbe"),a=n("22a0"),l=n("43b3"),s=n("7d7e"),c=function(t){var e={formConfig:{},sections:{},rows:{},controls:{}};if(!t)return e.formConfig=l["a"].cloneDeep(a["a"]),e;e.formConfig=Object.assign({},a["a"],t.formConfig);for(var n=0,c=Object.entries(t.sections);n<c.length;n++){var f=Object(o["a"])(c[n],2),d=f[0],p=f[1];e.sections[d]=u(r["a"],p)}for(var h=0,m=Object.entries(t.rows);h<m.length;h++){var v=Object(o["a"])(m[h],2),y=v[0],g=v[1];e.rows[y]=u(s["a"],g)}for(var b=0,_=Object.entries(t.controls);b<_.length;b++){var w=Object(o["a"])(_[b],2),O=w[0],x=w[1],E=x.type,k=i["a"][E].configData,C=u(i["b"],k);e.controls[O]=Object.assign(C,x)}return e};function u(t,e){var n=l["a"].cloneDeep(t);return Object.assign(n,e)}var f={data:function(){return{sortedSections:[]}},methods:{mapping:function(t){this.formData=Object.assign({},this.formData,c(t)),this.doSortSection()},createDefaultData:function(){this.formData=Object.assign({},c(this.formData))},addSection:function(t){var e=Object.keys(this.formData.sections).length+1,n=Object(r["c"])(t,e);this.$set(this.formData.sections,n.uniqueId,n),this.doSortSection()},addFormula:function(t){t&&(this.formData.formConfig.formula.push(t),this.$set(this.formData.formConfig,"formula",this.formData.formConfig.formula))},doSortSection:function(){this.sortedSections=[];for(var t=0,e=Object.entries(this.formData.sections);t<e.length;t++){var n=Object(o["a"])(e[t],2),r=(n[0],n[1]);this.sortedSections.push(r)}this.sortedSections.sort((function(t,e){return t.sortOrder-e.sortOrder}))}}}},bd25:function(t,e,n){"use strict";var o=n("fd13"),r=n("be03"),i=n("e3e3"),a=n("a101");t.exports=function(t){if(t&&"object"===typeof t){if(o(t))return"Map";if(r(t))return"Set";if(i(t))return"WeakMap";if(a(t))return"WeakSet"}return!1}},bd86:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n("85f2"),r=n.n(o);function i(t,e,n){return e in t?r()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},be03:function(t,e,n){"use strict";var o,r="function"===typeof Map&&Map.prototype?Map:null,i="function"===typeof Set&&Set.prototype?Set:null;i||(o=function(t){return!1});var a=r?Map.prototype.has:null,l=i?Set.prototype.has:null;o||l||(o=function(t){return!1}),t.exports=o||function(t){if(!t||"object"!==typeof t)return!1;try{if(l.call(t),a)try{a.call(t)}catch(e){return!0}return t instanceof i}catch(e){}return!1}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bf0b:function(t,e,n){var o=n("355d"),r=n("aebd"),i=n("36c3"),a=n("1bc3"),l=n("07e3"),s=n("794b"),c=Object.getOwnPropertyDescriptor;e.f=n("8e60")?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(n){}if(l(t,e))return r(!o.f.call(t,e),t[e])}},bfad:function(t,e){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;t.exports=function(t,e,r){if("[object Function]"!==o.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)e.call(r,t[a],a,t);else for(var l in t)n.call(t,l)&&e.call(r,t[l],l,t)}},c15a:function(t,e,n){"use strict";var o=n("5834"),r=n("f367");t.exports=function(){var t=o();return r(Object,{is:t},{is:function(){return Object.is!==t}}),t}},c207:function(t,e){},c366:function(t,e,n){var o=n("6821"),r=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var l,s=o(e),c=r(s.length),u=i(a,c);if(t&&n!=n){while(c>u)if(l=s[u++],l!=l)return!0}else for(;c>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var o=n("8436"),r=n("50ed"),i=n("481b"),a=n("36c3");t.exports=n("30f1")(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,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},c3a1:function(t,e,n){var o=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return o(t,r)}},c532:function(t,e,n){"use strict";(function(t){var o=n("1d2b");const{toString:r}=Object.prototype,{getPrototypeOf:i}=Object,a=(t=>e=>{const n=r.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l=t=>(t=t.toLowerCase(),e=>a(e)===t),s=t=>e=>typeof e===t,{isArray:c}=Array,u=s("undefined");function f(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&m(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const d=l("ArrayBuffer");function p(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e}const h=s("string"),m=s("function"),v=s("number"),y=t=>null!==t&&"object"===typeof t,g=t=>!0===t||!1===t,b=t=>{if("object"!==a(t))return!1;const e=i(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},_=l("Date"),w=l("File"),O=l("Blob"),x=l("FileList"),E=t=>y(t)&&m(t.pipe),k=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||m(t.append)&&("formdata"===(e=a(t))||"object"===e&&m(t.toString)&&"[object FormData]"===t.toString()))},C=l("URLSearchParams"),S=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(t,e,{allOwnKeys:n=!1}={}){if(null===t||"undefined"===typeof t)return;let o,r;if("object"!==typeof t&&(t=[t]),c(t))for(o=0,r=t.length;o<r;o++)e.call(null,t[o],o,t);else{const r=n?Object.getOwnPropertyNames(t):Object.keys(t),i=r.length;let a;for(o=0;o<i;o++)a=r[o],e.call(null,t[a],a,t)}}function D(t,e){e=e.toLowerCase();const n=Object.keys(t);let o,r=n.length;while(r-- >0)if(o=n[r],e===o.toLowerCase())return o;return null}const T=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:t)(),R=t=>!u(t)&&t!==T;function A(){const{caseless:t}=R(this)&&this||{},e={},n=(n,o)=>{const r=t&&D(e,o)||o;b(e[r])&&b(n)?e[r]=A(e[r],n):b(n)?e[r]=A({},n):c(n)?e[r]=n.slice():e[r]=n};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&q(arguments[o],n);return e}const M=(t,e,n,{allOwnKeys:r}={})=>(q(e,(e,r)=>{n&&m(e)?t[r]=Object(o["a"])(e,n):t[r]=e},{allOwnKeys:r}),t),P=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),N=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},j=(t,e,n,o)=>{let r,a,l;const s={};if(e=e||{},null==t)return e;do{r=Object.getOwnPropertyNames(t),a=r.length;while(a-- >0)l=r[a],o&&!o(l,t,e)||s[l]||(e[l]=t[l],s[l]=!0);t=!1!==n&&i(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},L=(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return-1!==o&&o===n},I=t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!v(e))return null;const n=new Array(e);while(e-- >0)n[e]=t[e];return n},F=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&i(Uint8Array)),B=(t,e)=>{const n=t&&t[Symbol.iterator],o=n.call(t);let r;while((r=o.next())&&!r.done){const n=r.value;e.call(t,n[0],n[1])}},U=(t,e)=>{let n;const o=[];while(null!==(n=t.exec(e)))o.push(n);return o},$=l("HTMLFormElement"),V=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),H=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),W=l("RegExp"),z=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};q(n,(n,r)=>{let i;!1!==(i=e(n,r,t))&&(o[r]=i||n)}),Object.defineProperties(t,o)},Y=t=>{z(t,(e,n)=>{if(m(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=t[n];m(o)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},G=(t,e)=>{const n={},o=t=>{t.forEach(t=>{n[t]=!0})};return c(t)?o(t):o(String(t).split(e)),n},K=()=>{},J=(t,e)=>(t=+t,Number.isFinite(t)?t:e),X="abcdefghijklmnopqrstuvwxyz",Z="0123456789",Q={DIGIT:Z,ALPHA:X,ALPHA_DIGIT:X+X.toUpperCase()+Z},tt=(t=16,e=Q.ALPHA_DIGIT)=>{let n="";const{length:o}=e;while(t--)n+=e[Math.random()*o|0];return n};function et(t){return!!(t&&m(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const nt=t=>{const e=new Array(10),n=(t,o)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[o]=t;const r=c(t)?[]:{};return q(t,(t,e)=>{const i=n(t,o+1);!u(i)&&(r[e]=i)}),e[o]=void 0,r}}return t};return n(t,0)},ot=l("AsyncFunction"),rt=t=>t&&(y(t)||m(t))&&m(t.then)&&m(t.catch);e["a"]={isArray:c,isArrayBuffer:d,isBuffer:f,isFormData:k,isArrayBufferView:p,isString:h,isNumber:v,isBoolean:g,isObject:y,isPlainObject:b,isUndefined:u,isDate:_,isFile:w,isBlob:O,isRegExp:W,isFunction:m,isStream:E,isURLSearchParams:C,isTypedArray:F,isFileList:x,forEach:q,merge:A,extend:M,trim:S,stripBOM:P,inherits:N,toFlatObject:j,kindOf:a,kindOfTest:l,endsWith:L,toArray:I,forEachEntry:B,matchAll:U,isHTMLForm:$,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:z,freezeMethods:Y,toObjectSet:G,toCamelCase:V,noop:K,toFiniteNumber:J,findKey:D,global:T,isContextDefined:R,ALPHABET:Q,generateString:tt,isSpecCompliantForm:et,toJSONObject:nt,isAsyncFn:ot,isThenable:rt}}).call(this,n("c8ba"))},c5e1:function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{width:"100% !important"}},[n("h4",[t._v(t._s(t.title))]),n("div",{staticStyle:{width:"100% !important"},attrs:{id:"chart123"}})])},r=[],i={props:{title:String,dataset:{type:Array,default:[],required:!0},labels:{type:Array,default:[],required:!0}},watch:{dataset:function(t){this.createChart()}},data:function(){return{currentChart:null}},mounted:function(){this.createChart()},methods:{createChart:function(){var t={labels:this.labels,datasets:this.dataset};this.labels.length&&(this.currentChart=new frappe.Chart("#chart123",{title:"",data:t,type:"axis-mixed",height:300,width:700,colors:["#7cd6fd","#743ee2"],axisOptions:{xIsSeries:!0}}))},getFakeDataSet:function(){return[{name:"Test Graph",type:"line",values:[1,2,3,4]}]},getFakeLabeSet:function(){return["monday","tuesday","wednesday","Thursday"]}}},a=i,l=(n("45ff"),n("2877")),s=Object(l["a"])(a,o,r,!1,null,null,null);e["a"]=s.exports},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}))},c72d:function(t,e,n){"use strict";var o=n("653e");e["a"]={name:"BaseControlSkeleton",mixins:[o["a"]]}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}t.exports=n},c8ba6:function(t,e,n){"use strict";var o=n("16e7"),r=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var r=Object.assign({},n),i="";for(var a in r)i+=a;return t!==i},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1};t.exports=function(){return Object.assign?r()||i()?o:Object.assign:o}},c992:function(t,e,n){},ca0c:function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add-control-outer",class:t.styles.COLUMNS.COL12},[n("div",{staticClass:"add-control-container",on:{click:t.openAddControl}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("addOutline","32px","32px","#000"))}}),n("span",[t._v("Add Control")])])])},r=[],i=n("28fe"),a=n("fbe6"),l=n("1ec8"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-form-configuration"},[n("h5",[t._v("Select Concept")]),n("div",[n("div",{staticStyle:{"margin-bottom":"8px"}},[n("div",{},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"form-control md-field",attrs:{type:"text",placeholder:"Search...."},domProps:{value:t.searchQuery},on:{input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}})])])]),n("div",{class:[t.styles.LIST_GROUP.CONTAINER]},t._l(t.controlList,(function(e){return n("a",{key:e.name,class:t.styles.LIST_GROUP.SINGLE_ITEM,attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.selectedControl(e)}}},[n("p",{staticClass:"type-headline",domProps:{textContent:t._s(e.name||e.type)}}),n("p",{staticClass:"type-desc",domProps:{textContent:t._s(e.description)}})])})),0)])},c=[],u=n("bd86"),f=(n("7f7f"),n("a745")),d=n.n(f),p=n("db2a");function h(t){if(d()(t))return Object(p["a"])(t)}var m=n("67bb"),v=n.n(m),y=n("5d58"),g=n.n(y),b=n("774e"),_=n.n(b);function w(t){if("undefined"!==typeof v.a&&null!=t[g.a]||null!=t["@@iterator"])return _()(t)}var O=n("e630");function x(){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 E(t){return h(t)||w(t)||Object(O["a"])(t)||x()}var k,C=n("8dbe"),S=n("cbce"),q=n("43b3"),D=n("ee28"),T=(k={name:"SidebarControlSelectList",mixins:[i["a"],S["a"]],computed:{controlTypes:function(){return C["a"]}},data:function(){return{dataKey:"newControlData",newControlData:null,searchQuery:null,apiList:[]}}},Object(u["a"])(k,"computed",{controlList:function(){var t=this.apiList.map((function(t){return{name:t[0],description:t[1],config:t[2]}}));return[].concat(E(t),E(C["c"]))}}),Object(u["a"])(k,"watch",{searchQuery:function(t){this.fetchConcepts(t)}}),Object(u["a"])(k,"methods",{selectedControl:function(t){if(t.config){var e=JSON.parse(t.config);e.uniqueId=t.name,this.newControlData=e,this.save(!0)}else t.uniqueId="control-"+q["a"].getUUIDv4(),this.newControlData=t,this.save(!0)},fetchConcepts:function(t){var e=this;Object(D["a"])({method:"clinical.api.forms.form_builder.concept_query",args:{txt:t}}).then((function(t){var n=t.message;e.apiList=n}))}}),k),R=T,A=n("2877"),M=Object(A["a"])(R,s,c,!1,null,"5d7bdd48",null),P=M.exports,N={name:"AddControlControl",mixins:[i["a"]],props:{section:{type:Object,required:!0}},data:function(){return{show:!1}},methods:{openAddControl:function(){this.$formEvent.$emit(a["a"].BUILDER.SIDEBAR.OPEN,this.runnerId)},afterOpenedSidebar:function(t){t===this.runnerId&&this.renderSidebar()},renderSidebar:function(){this.$formEvent.$emit(a["a"].BUILDER.SIDEBAR.INJECT,new l["a"](this.runnerId,P,this.section))},createNewControlForSection:function(t,e){this.runnerId===t&&this.$formEvent.$emit(a["a"].BUILDER.CONTROL.CREATE,this.section.uniqueId,e)}},computed:{runnerId:function(){return"add-control-".concat(this.section.uniqueId)}},created:function(){this.$formEvent.$on(a["a"].BUILDER.SIDEBAR.OPENED,this.afterOpenedSidebar),this.$formEvent.$on(a["a"].BUILDER.SIDEBAR.SAVE_AND_CLOSE,this.createNewControlForSection)}},j=N,L=Object(A["a"])(j,o,r,!1,null,null,null);e["a"]=L.exports},ca5a:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},cab0:function(t,e,n){"use strict";n("acbf")},caca:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={show:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,n=document.createElement("div");n.className="v-form-alert",n.innerText=t,document.getElementsByTagName("body")[0].append(n),setTimeout((function(){n.remove()}),e||3e3)}}},cadf:function(t,e,n){"use strict";var o=n("9c6c"),r=n("d53b"),i=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,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},cb7c:function(t,e,n){var o=n("d3f4");t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},cbce:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={props:{dataPackage:Object,formData:Object},data:function(){return{dataKey:""}},methods:{close:function(){this.$emit(this.emitCloseKey,!1)},save:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this[this.dataKey];t?this.$emit(this.emitSaveAndCloseKey,e):this.$emit(this.emitSaveKey,e)}},computed:{emitCloseKey:function(){return"close"},emitSaveKey:function(){return"save"},emitSaveAndCloseKey:function(){return"saveAndClose"}}}},ccb9:function(t,e,n){e.f=n("5168")},cd1c:function(t,e,n){var o=n("e853");t.exports=function(t,e){return new(o(t))(e)}},ce10:function(t,e,n){var o=n("69a8"),r=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,l=r(t),s=0,c=[];for(n in l)n!=a&&o(l,n)&&c.push(n);while(e.length>s)o(l,n=e[s++])&&(~i(c,n)||c.push(n));return c}},cf35:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n("28fe"),r={mixins:[o["a"]],props:{section:{type:Object,required:!0},readOnly:{type:Boolean,required:!1,default:!0},reference:Object}}},d225:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return o}))},d2c8:function(t,e,n){var o=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(o(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d4ab:function(t,e,n){"use strict";var o=Object.prototype.toString;t.exports=function(t){var e=o.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Function]"===o.call(t.callee)),n}},d4c0:function(t,e,n){var o=n("0d58"),r=n("2621"),i=n("52a7");t.exports=function(t){var e=o(t),n=r.f;if(n){var a,l=n(t),s=i.f,c=0;while(l.length>c)s.call(t,a=l[c++])&&e.push(a)}return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d60e:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={CONTAINER:{FLUID:"container-fluid md-layout",NORMAL:"container"},ROW:"row md-layout",COLUMNS:{COL1:"col-md-1 md-layout-item md-size-5",COL2:"col-md-2 md-layout-item md-size-10",COL3:"col-md-3 md-layout-item md-size-25",COL4:"col-md-4 md-layout-item md-size-33",COL5:"col-md-5 md-layout-item md-size-40",COL6:"col-md-6 md-layout-item md-size-50",COL7:"col-md-7 md-layout-item md-size-60",COL8:"col-md-8 md-layout-item md-size-66",COL9:"col-md-9 md-layout-item md-size-75",COL10:"col-md-10 md-layout-item md-size-90",COL11:"col-md-11 md-layout-item md-size-95",COL12:"col-md-12 md-layout-item md-size-100"},LIST_GROUP:{CONTAINER:"list-group md-list",SINGLE_ITEM:"list-group-item list-group-item-action md-list-item md-list-item-action"},BUTTON:{PRIMARY:"btn btn-primary md-button md-raised md-primary md-theme-default",SECONDARY:"btn btn-secondary md-button md-raised md-secondary md-theme-default",DEFAULT:"btn btn-default md-button md-raised md-default md-theme-default",SUCCESS:"btn btn-success md-button md-raised md-success md-theme-default",DANGER:"btn btn-danger md-button md-raised md-accent md-theme-default",WARNING:"btn btn-warning md-button md-raised md-warning md-theme-default",INFO:"btn btn-info md-button md-raised md-info md-theme-default"},FORM:{FORM_GROUP:"form-group",INPUT_GROUP:"input-group",FORM_CONTROL:"form-control md-field",ERROR_OUTLINE:"is-invalid md-error",ERROR_MESSAGE:"invalid-feedback"},TABLE:{TABLE_CLASS:"table md-table",TR_CLASS:"md-table-row",TD_CLASS:"md-table-cell"}}},d6c7:function(t,e,n){"use strict";var o=Array.prototype.slice,r=n("d4ab"),i=Object.keys,a=i?function(t){return i(t)}:n("b189"),l=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return r(t)?l(o.call(t)):l(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},d6ef:function(t,e,n){"use strict";var o=function(t){return t!==t};t.exports=function(t,e){return 0===t&&0===e?1/t===1/e:t===e||!(!o(t)||!o(e))}},d864:function(t,e,n){var o=n("79aa");t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,n){n("1654"),n("6c1c"),t.exports=n("ccb9").f("iterator")},d8d8:function(t,e,n){"use strict";var o,r,i,a,l=n("545e"),s=n("07a4")();if(s){o=l("Object.prototype.hasOwnProperty"),r=l("RegExp.prototype.exec"),i={};var c=function(){throw i};a={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var u=l("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor,d="[object RegExp]";t.exports=s?function(t){if(!t||"object"!==typeof t)return!1;var e=f(t,"lastIndex"),n=e&&o(e,"value");if(!n)return!1;try{r(t,a)}catch(l){return l===i}}:function(t){return!(!t||"object"!==typeof t&&"function"!==typeof t)&&u(t)===d}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var o=n("e4ae"),r=n("794b"),i=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(l){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},da2a:function(t,e,n){"use strict";var o=n("8ae1");e["a"]={name:"BaseControlConfigSkeleton",mixins:[o["a"]]}},db2a:function(t,e,n){"use strict";function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}n.d(e,"a",(function(){return o}))},dbdb:function(t,e,n){var o=n("584a"),r=n("e53d"),i="__core-js_shared__",a=r[i]||(r[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dcbc:function(t,e,n){var o=n("2aba");t.exports=function(t,e,n){for(var r in e)o(t,r,e[r],n);return t}},dd3c:function(t,e,n){"use strict";n.d(e,"b",(function(){return _e})),n.d(e,"a",(function(){return we})),n.d(e,"c",(function(){return Oe}));var o=n("43b3"),r=n("7d7e"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-section"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],staticClass:"headline-block p5"},[n("h2",{class:t.section.headlineAdditionalClass,domProps:{textContent:t._s(t.section.headline)}}),n("p",{class:t.section.subHeadlineAdditionalClass,domProps:{textContent:t._s(t.section.subHeadline)}})]),n("draggable",{class:t.draggableClasses,attrs:{"ghost-class":"ghost",handle:t.dragControlHandle,list:t.section.controls,group:t.dragGroup}},[t._l(t.section.controls,(function(e){return n("ControlView",{key:e,attrs:{control:t.controls[e],"parent-id":t.section.uniqueId}})})),t.hasControl?t._e():n("p",[t._v(" Droppable Zone / Controls will be showed here... ")])],2),n("AddControlControl",{attrs:{section:t.section}})],1)},a=[],l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add-row-outer"},[n("div",{staticClass:"add-row-container",class:t.styles.COLUMNS.COL12,on:{click:t.addNew}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("addOutline","32px","32px","#000"))}}),n("span",[t._v("Add Row")])])])},s=[],c=(n("d60e"),n("28fe")),u={name:"AddRowControl",mixins:[c["a"]],data:function(){return{show:!1}},methods:{addNew:function(){this.$emit("addRowNotify",!0)}}},f=u,d=n("2877"),p=Object(d["a"])(f,l,s,!1,null,"12c0063a",null),h=p.exports,m=n("fbe6"),v=n("b76a"),y=n.n(v),g=n("ca0c"),b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:[t.control.containerClass,"control-view-wrapper",t.control.additionalContainerClass]},[n("div",{staticClass:"control-view",class:{active:t.isActive}},[n("ControlLabel",{directives:[{name:"show",rawName:"v-show",value:t.control.isShowLabel,expression:"control.isShowLabel"}],attrs:{control:t.control}}),n(t.controlComponent,{tag:"component",attrs:{control:t.control}})],1),n("ControlOption",{on:{delete:t.deleteControl,config:t.openConfiguration}})],1)},_=[],w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control-label-container"},[n("label",{class:t.control.additionalLabelClass,attrs:{for:t.control.uniqueId},domProps:{textContent:t._s(t.control.label)}}),t.control.subLabel?n("br"):t._e(),t.control.subLabel?n("small",{domProps:{textContent:t._s(t.control.subLabel)}}):t._e()])},O=[],x={name:"ControlLabel",props:{control:{type:Object,required:!0}}},E=x,k=Object(d["a"])(E,w,O,!1,null,"0b3fa3a0",null),C=k.exports,S=n("8dbe"),q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control-option-container"},[n("div",{staticClass:"option-control drag-item",attrs:{title:"Re-position / Drag"}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("navigationMore","24px","24px","#f1c40f"))}})]),n("div",{staticClass:"option-control",attrs:{title:"Control Configuration"},on:{click:t.clickedConfiguration}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("cog","24px","24px","#3498db"))}})]),n("div",{staticClass:"option-control",attrs:{title:"Delete Control"},on:{click:t.clickedDelete}},[n("span",{domProps:{innerHTML:t._s(t.$form.getIcon("trash","24px","24px","#e74c3c"))}})])])},D=[],T={name:"ControlOption",methods:{clickedDelete:function(){this.$emit("delete",!0)},clickedConfiguration:function(){this.$emit("config",!0)}}},R=T,A=Object(d["a"])(R,q,D,!1,null,null,null),M=A.exports,P=n("1ec8"),N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-form-configuration"},[n("h5",[t._v("Control Configuration")]),n("ControlBasicInformation",{attrs:{control:t.control,formData:t.formData}}),n("ControlStylingInformation",{attrs:{control:t.control}}),t.specificConfigurationView?n("SidebarToggleableContainer",{attrs:{headline:"Control Specific Configuration"}},[n(t.specificConfigurationView,{tag:"component",attrs:{formData:t.formData,control:t.control}})],1):t._e(),n("ControlValidationInformation",{attrs:{control:t.control}}),n("div",{staticClass:"buttons"},[n("button",{class:t.styles.BUTTON.PRIMARY,on:{click:function(e){return t.save(!1)}}},[t._v(" Save ")]),n("button",{class:t.styles.BUTTON.INFO,on:{click:function(e){return t.save(!0)}}},[t._v(" Save & Close ")])])],1)},j=[],L=n("cbce"),I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toggleable-section"},[n("div",{staticClass:"headline-block"},[n("h5",[n("span",{staticClass:"toggle-item",domProps:{innerHTML:t._s(t.isVisible?t.iconClose:t.iconOpen)},on:{click:function(e){t.isVisible=!t.isVisible}}}),n("span",{domProps:{textContent:t._s(t.headline)}}),n("small",{staticClass:"toggleable-sub-headline",domProps:{textContent:t._s(t.subHeadline)}})])]),n("transition",{attrs:{name:"slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}]},[t._t("default")],2)])],1)},F=[],B={data:function(){return{isVisible:!0}},computed:{iconColor:function(){return"#000"},iconSize:function(){return"32px"},iconClose:function(){return this.$form.getIcon("chevronUp",this.iconSize,this.iconSize,this.iconColor)},iconOpen:function(){return this.$form.getIcon("chevronDown",this.iconSize,this.iconSize,this.iconColor)}}},U={name:"SidebarToggleableContainer",mixins:[B],props:{headline:{type:String},subHeadline:{type:String},initialOpen:{type:Boolean,default:!0}},created:function(){this.initialOpen||(this.isVisible=!1)}},$=U,V=Object(d["a"])($,I,F,!1,null,null,null),H=V.exports,W=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("SidebarToggleableContainer",{attrs:{headline:"Basic Detail"}},[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Unique ID")]),n("input",{class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",readonly:""},domProps:{value:t.control.uniqueId}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Name (Must be unique)")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.name,expression:"control.name"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",readonly:""},domProps:{value:t.control.name},on:{input:function(e){e.target.composing||t.$set(t.control,"name",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Label")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.label,expression:"control.label"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.label},on:{input:function(e){e.target.composing||t.$set(t.control,"label",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Sub-label")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.subLabel,expression:"control.subLabel"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.subLabel},on:{input:function(e){e.target.composing||t.$set(t.control,"subLabel",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Mapped Field")]),n("div",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.mappedField,expression:"control.mappedField"}],class:t.styles.FORM.FORM_CONTROL,on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"mappedField",e.target.multiple?n:n[0])}}},[n("option",{attrs:{disabled:"",value:""}},[t._v("Please select field")]),t._l(t.doctypeFields,(function(e){return n("option",{key:e},[t._v(t._s(e)+" ")])}))],2)])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Show Label? "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.isShowLabel,expression:"control.isShowLabel"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.control.isShowLabel)?t._i(t.control.isShowLabel,null)>-1:t.control.isShowLabel},on:{change:function(e){var n=t.control.isShowLabel,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"isShowLabel",n.concat([i])):a>-1&&t.$set(t.control,"isShowLabel",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"isShowLabel",r)}}})])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v(" Evaluated Visibility "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.evaluatedVisibility,expression:"control.evaluatedVisibility"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.control.evaluatedVisibility)?t._i(t.control.evaluatedVisibility,null)>-1:t.control.evaluatedVisibility},on:{change:function(e){var n=t.control.evaluatedVisibility,o=e.target,r=!!o.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o.checked?a<0&&t.$set(t.control,"evaluatedVisibility",n.concat([i])):a>-1&&t.$set(t.control,"evaluatedVisibility",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.control,"evaluatedVisibility",r)}}})])]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Hide condition")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.control.hideCondition,expression:"control.hideCondition"}],class:t.styles.FORM.FORM_CONTROL,domProps:{value:t.control.hideCondition},on:{input:function(e){e.target.composing||t.$set(t.control,"hideCondition",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Field Placeholder (Optional)")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.placeholderText,expression:"control.placeholderText"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.placeholderText},on:{input:function(e){e.target.composing||t.$set(t.control,"placeholderText",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Default Value (Optional)")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.defaultValue,expression:"control.defaultValue"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.defaultValue},on:{input:function(e){e.target.composing||t.$set(t.control,"defaultValue",e.target.value)}}})])])},z=[],Y=n("ee28"),G={name:"ControlBasicInformation",mixins:[c["a"]],components:{SidebarToggleableContainer:H},data:function(){return{doctypeFields:[]}},props:{control:Object,formData:Object},created:function(){this.control.depends=""},watch:{formData:function(t){this.getFields()}},mounted:function(){this.getFields()},methods:{getFields:function(){var t=this;if(this.formData&&this.formData.formConfig&&this.formData.formConfig.mappedDoctype.length){var e={doctype:this.formData.formConfig.mappedDoctype};Object(Y["c"])(e).then((function(e){t.doctypeFields=e.fields.map((function(t){return t.fieldname}))}))}},setField:function(t){this.$set(this.control,"mappedField",t)}}},K=G,J=Object(d["a"])(K,W,z,!1,null,"b7168f0a",null),X=J.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("SidebarToggleableContainer",{attrs:{headline:"Styling/Classes"}},[n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Container Size Class")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.control.containerClass,expression:"control.containerClass"}],class:t.styles.FORM.FORM_CONTROL,on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.control,"containerClass",e.target.multiple?n:n[0])}}},t._l(t.containerClasses,(function(e,o){return n("option",{key:e,domProps:{value:e}},[t._v(" "+t._s(o)+" ("+t._s(e)+") ")])})),0)]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Container Additional Classes")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.additionalContainerClass,expression:"control.additionalContainerClass"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.additionalContainerClass},on:{input:function(e){e.target.composing||t.$set(t.control,"additionalContainerClass",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Control Field Additional Classes")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.additionalFieldClass,expression:"control.additionalFieldClass"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.additionalFieldClass},on:{input:function(e){e.target.composing||t.$set(t.control,"additionalFieldClass",e.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Control-Label Additional Classes")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.control.additionalLabelClass,expression:"control.additionalLabelClass"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:t.control.additionalLabelClass},on:{input:function(e){e.target.composing||t.$set(t.control,"additionalLabelClass",e.target.value)}}})])])},Q=[],tt={name:"ControlStylingInformation",mixins:[c["a"]],components:{SidebarToggleableContainer:H},props:{control:Object},computed:{containerClasses:function(){return this.styles.COLUMNS}}},et=tt,nt=Object(d["a"])(et,Z,Q,!1,null,"7bfdae9a",null),ot=nt.exports,rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("SidebarToggleableContainer",{attrs:{headline:"Validation"}},[n("label",[t._v(" Validation Rules "),n("span",{staticClass:"pointer",attrs:{title:"Click this to add a new rule"},domProps:{innerHTML:t._s(t.$form.getIcon("addOutline","16px","16px","green"))},on:{click:t.addNewRule}})]),t._l(t.control.validations,(function(e,o){return n("div",{key:e.ruleType,staticClass:"list-selection"},[n("div",{staticClass:"tool-block"},[n("span",{staticClass:"pointer",attrs:{title:"Click this to remove this rule"},domProps:{innerHTML:t._s(t.$form.getIcon("close","16px","16px","red"))},on:{click:function(e){return t.removeRule(o)}}})]),n("div",{class:[t.styles.FORM.FORM_GROUP]},[n("label",[t._v("Validation Rule")]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.ruleType,expression:"addedRule.ruleType"}],class:t.styles.FORM.FORM_CONTROL,on:{change:[function(n){var o=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(e,"ruleType",n.target.multiple?o:o[0])},function(n){return t.updateDefaultErrorMessage(e)}]}},[n("option",{attrs:{selected:"",disabled:""}},[t._v("Choose a Rule")]),t._l(t.getRuleList(e.ruleType),(function(e,o){return n("option",{key:o,domProps:{value:e,textContent:t._s(e)}})}))],2),n("small",{directives:[{name:"show",rawName:"v-show",value:t.getRuleInfo(e.ruleType,"desc"),expression:"getRuleInfo(addedRule.ruleType, 'desc')"}],domProps:{textContent:t._s(t.getRuleInfo(e.ruleType,"desc"))}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.getRuleInfo(e.ruleType,"needValue"),expression:"getRuleInfo(addedRule.ruleType, 'needValue')"}],class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Rule Value")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.additionalValue,expression:"addedRule.additionalValue"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text",placeholder:t.getRuleInfo(e.ruleType,"valueInfo")},domProps:{value:e.additionalValue},on:{input:function(n){n.target.composing||t.$set(e,"additionalValue",n.target.value)}}})]),n("div",{class:t.styles.FORM.FORM_GROUP},[n("label",[t._v("Default Error Message")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.errorMessage,expression:"addedRule.errorMessage"}],class:t.styles.FORM.FORM_CONTROL,attrs:{type:"text"},domProps:{value:e.errorMessage},on:{input:function(n){n.target.composing||t.$set(e,"errorMessage",n.target.value)}}})])])}))],2)},it=[],at=(n("6762"),n("2fdb"),n("ac6a"),n("cadf"),n("456d"),n("a786")),lt={name:"ControlValidationInformation",mixins:[c["a"]],components:{SidebarToggleableContainer:H},props:{control:Object},methods:{getRuleInfo:function(t,e){return!!t&&at["a"][t][e]},updateDefaultErrorMessage:function(t){t.errorMessage=this.getRuleInfo(t.ruleType,"errorMessage")},addNewRule:function(){this.control.validations.push(new at["b"])},removeRule:function(t){this.control.validations.splice(t,1)},getRuleList:function(t){var e=this.control.validations.map((function(t){return t.ruleType})).filter((function(e){return e!==t})),n=Object.keys(at["a"]);return n.filter((function(t){return!e.includes(t)}))}},computed:{ruleList:function(){return Object.keys(at["a"])}}},st=lt,ct=Object(d["a"])(st,rt,it,!1,null,null,null),ut=ct.exports,ft={name:"SidebarControlConfiguration",components:{ControlValidationInformation:ut,ControlStylingInformation:ot,ControlBasicInformation:X,SidebarToggleableContainer:H},mixins:[c["a"],L["a"]],data:function(){return{dataKey:"control",control:null}},created:function(){this.control=o["a"].cloneDeep(this.dataPackage)},computed:{controlType:function(){return this.control.type},isValidationDisabled:function(){return!!S["a"][this.controlType].disableValidation},specificConfigurationView:function(){return S["a"][this.controlType].hasOwnProperty("configComponent")?S["a"][this.controlType]["configComponent"]:null}}},dt=ft,pt=Object(d["a"])(dt,N,j,!1,null,null,null),ht=pt.exports,mt={name:"ControlView",components:{ControlOption:M,ControlLabel:C},mixins:[c["a"]],props:{control:{type:Object,required:!0},parentId:{type:String,required:!0}},data:function(){return{isActive:!1}},methods:{deleteControl:function(){this.$formEvent.$emit(m["a"].BUILDER.CONTROL.DELETE,this.parentId,this.control.uniqueId)},openConfiguration:function(){this.isActive||this.$formEvent.$emit(m["a"].BUILDER.SIDEBAR.OPEN,this.control.uniqueId)},openedConfiguration:function(t){t===this.control.uniqueId&&(this.isActive=!0,this.renderSidebar())},renderSidebar:function(){this.$formEvent.$emit(m["a"].BUILDER.SIDEBAR.INJECT,new P["a"](this.control.uniqueId,ht,this.control))},closedConfiguration:function(){this.isActive=!1},saveConfiguration:function(t,e){this.$formEvent.$emit(m["a"].BUILDER.CONTROL.UPDATE,t,e)}},computed:{controlComponent:function(){if(!S["a"][this.control.type]||!S["a"][this.control.type].fieldComponent)throw new TypeError("Control Type Mapping failed => Can't be rendered. Reason: Your control type ".concat(this.control.type," doesn't have 'fieldComponent' property"));return S["a"][this.control.type].fieldComponent}},created:function(){this.$formEvent.$on(m["a"].BUILDER.SIDEBAR.SAVE,this.saveConfiguration),this.$formEvent.$on(m["a"].BUILDER.SIDEBAR.SAVE_AND_CLOSE,this.saveConfiguration),this.$formEvent.$on(m["a"].BUILDER.SIDEBAR.AFTER_CLOSED,this.closedConfiguration),this.$formEvent.$on(m["a"].BUILDER.SIDEBAR.OPENED,this.openedConfiguration)}},vt=mt,yt=(n("198e"),Object(d["a"])(vt,b,_,!1,null,null,null)),gt=yt.exports,bt={components:{AddRowControl:h,draggable:y.a,AddControlControl:g["a"],ControlView:gt},mixins:[c["a"]],props:{section:Object,rows:Object,controls:Object,readonly:{type:Boolean,default:!0},reference:Object},data:function(){return{}},methods:{addRow:function(){var t=_e[this.section.type].rowType,e=Object(r["c"])(t);this.$formEvent.$emit(m["a"].BUILDER.ROW.CREATE,e),this.$formEvent.$emit(m["a"].BUILDER.SECTION.ADDED_ROW,this.section.uniqueId,e.uniqueId)}},computed:{dragControlHandle:function(){return".option-control.drag-item"},dragGroup:function(){return"v-form-builder-control"},hasControl:function(){return this.section.controls.length>0},draggableClasses:function(){return[this.styles.ROW,"control-list-container",this.hasControl?"":"empty"]}}},_t={name:"NormalSectionView",mixins:[bt],data:function(){return{}}},wt=_t,Ot=Object(d["a"])(wt,i,a,!1,null,null,null),xt=Ot.exports,Et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-section"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],staticClass:"headline-block p5"},[n("h2",{class:t.section.headlineAdditionalClass,domProps:{textContent:t._s(t.section.headline)}}),n("p",{class:t.section.subHeadlineAdditionalClass,domProps:{textContent:t._s(t.section.subHeadline)}})]),n("div",{staticClass:"table-wrapper"},[n("FullTableRowView",{class:t.styles.TABLE.TABLE_CLASS,attrs:{reference:t.reference,section:t.section,readOnly:!0}})],1)])},kt=[],Ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",[n("b-table",{ref:"selectableTable",staticStyle:{width:"100%"},attrs:{"empty-text":"Items will be show here x","empty-filtered-text":"No items to show","show-empty":!0,items:t.items,striped:"",outlined:"",bordered:"","head-row-variant":"secondary","sticky-header":"62vh",responsive:"",selectable:"",small:"","select-mode":"single",hover:""},on:{"row-selected":t.onRowSelected},scopedSlots:t._u([{key:"head()",fn:function(e){return[e.label?n("span",[t._v(t._s(e.label.split("-")[1]))]):t._e()]}}])})],1),n("b-modal",{attrs:{id:"bv-modal-example","hide-footer":"",size:"xl"}},[n("FormRenderer",{attrs:{"form-configuration":t.formData},model:{value:t.formInputData,callback:function(e){t.formInputData=e},expression:"formInputData"}}),n("b-button",{staticClass:"mt-3",attrs:{variant:"primary",block:""},on:{click:function(e){return t.getSave()}}},[t._v(" Save ")])],1),n("div",{staticStyle:{width:"100%"}},[n("div",[n("b-button",{attrs:{variant:"primary",id:"show-btn",size:"sm"},on:{click:function(e){return t.$bvModal.show("bv-modal-example")}}},[t._v("Add Row")]),n("b-button",{attrs:{variant:"danger",id:"show-btn",size:"sm"},on:{click:function(e){return t.$bvModal.show("bv-modal-example")}}},[t._v("Clear ")])],1)])],1)},St=[],qt=(n("7f7f"),n("f751"),n("cf35")),Dt={name:"TableRowView",components:{AddControlControl:g["a"]},mixins:[qt["a"]],methods:{getSave:function(){var t=this,e=this.formInputData,n=!0;if(Object.keys(this.formData.controls).forEach((function(e){null!=t.formData.controls[e]&&null!=t.formData.controls[e].validations&&n&&t.formData.controls[e].validations.forEach((function(o){"required"==o.ruleType&&null==t.formInputData[e]&&(t.show_alert("Field ".concat(t.formData.controls[e].label," is required")),n=!1),"min"==o.ruleType&&"".concat(t.formInputData[e]).length<o.additionalValue&&(t.show_alert("Field ".concat(t.formData.controls[e].label," is need at least ").concat(o.additionalValue," characters")),n=!1),"max"==o.ruleType&&"".concat(t.formInputData[e]).length>o.additionalValue&&(t.show_alert("Field ".concat(t.formData.controls[e].label," can only have a max of ").concat(o.additionalValue," characters")),n=!1)}))})),n){var o=Object.assign({},e);this.items.unshift(o),this.clearData()}},setValues:function(t){this.$set(this,"formInputData",t)},clearData:function(){var t={},e=Object.keys(this.formInputData);e.forEach((function(e){t[e]=""})),this.setValues(t)},onRowSelected:function(t){alert(JSON.stringify(t))},getForm:function(t){var e=this;Object(Y["d"])({name:t}).then((function(t){var n=t.formdata,o=JSON.parse(n);e.configuration=n,e.formName=t.name,e.formData=o,e.originalConfig=o}))},saveForm:function(t){Object(Y["f"])(t).then((function(t){}))},save:function(){var t=this.formInputData;t=JSON.stringify(t);var e=this.formName,n=this.selectedDoctype,o=this.selectedDoctypeReference,r="Form Repository",i={doctype:r,form_content:t,form_name:e,reference_doctype:n,reference_doctype_id:o};this.reference&&(i.reference_doctype=this.reference.doctype,i.reference_doctype_id=this.reference.doctype_id),this.saveForm({formData:i})}},data:function(){return{items:[],formData:{formConfig:{headline:"",subHeadline:"",isShowHeadline:!1,formula:[{name:"BMI formula",description:"Calculate the BMI",formula:"[DC-Weight-00067] / ( [DC-Height-00066] * [DC-Height-00066] )",output:"DC-BMI-00068"}],renderFormTag:!1,formActionURL:"",formMethod:"POST"},sections:{"section-9eed1a21-b1c4-4c55-9012-1af4667732c4":{uniqueId:"section-9eed1a21-b1c4-4c55-9012-1af4667732c4",headline:"Patient Vitals",headlineAdditionalClass:"",subHeadline:"Sample vitals information",subHeadlineAdditionalClass:"",isShowHeadline:!0,condition:' [DC-Gender-00065] == "DC-Female-00064"',sortOrder:1,type:"normal",rows:[],controls:["DC-First Name-00061","DC-Last Name-00062","DC-Gender-00065","DC-Height-00066","DC-Weight-00067","DC-BMI-00068"]}},rows:{},controls:{"DC-First Name-00061":{uniqueId:"DC-First Name-00061",type:"input",name:"DC-First Name-00061",label:"First Name",isShowLabel:!0,placeholderText:"",containerClass:"col-md-6 md-layout-item md-size-50",additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[]},"DC-Last Name-00062":{uniqueId:"DC-Last Name-00062",type:"input",name:"DC-Last Name-00062",label:"Last Name",isShowLabel:!0,placeholderText:"",containerClass:"col-md-6 md-layout-item md-size-50",additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[]},"DC-Height-00066":{uniqueId:"DC-Height-00066",type:"input",name:"DC-Height-00066",label:"Height",subLabel:"in meters",isShowLabel:!0,placeholderText:"",containerClass:"col-md-6 md-layout-item md-size-50",additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[]},"DC-Weight-00067":{uniqueId:"DC-Weight-00067",type:"input",name:"DC-Weight-00067",label:"Weigth",subLabel:"in Kgs",isShowLabel:!0,placeholderText:"",containerClass:"col-md-6 md-layout-item md-size-50",additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[],depends:"",evaluatedVisibility:!0},"DC-BMI-00068":{uniqueId:"DC-BMI-00068",type:"input",name:"DC-BMI-00068",label:"BMI",subLabel:"In Kg/m2",isShowLabel:!0,placeholderText:"",containerClass:"col-md-6 md-layout-item md-size-50",additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[],depends:"",evaluatedVisibility:!0},"DC-Gender-00065":{uniqueId:"DC-Gender-00065",type:"radio",name:"DC-Gender-00065",label:"Gender",subLabel:"Male or Female",isShowLabel:!0,placeholderText:"",containerClass:"col-md-6 md-layout-item md-size-50",additionalContainerClass:"",additionalFieldClass:"",additionalLabelClass:"",defaultValue:"",validations:[],displayMode:"line",position:"left",items:[{text:"Male",value:"DC-Male-00063"},{text:"Female",value:"DC-Female-00064"}]}}},formInputData:{}}}},Tt=Dt,Rt=Object(d["a"])(Tt,Ct,St,!1,null,"e8a8245c",null),At=Rt.exports,Mt={name:"TableSectionView",components:{FullTableRowView:At,AddRowControl:h},mixins:[bt,c["a"]],methods:{}},Pt=Mt,Nt=Object(d["a"])(Pt,Et,kt,!1,null,"6b2db530",null),jt=Nt.exports,Lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toggleable-section"},[n("div",{staticClass:"headline-block p5"},[n("h2",{class:t.section.headlineAdditionalClass},[n("span",{staticClass:"toggle-item",domProps:{innerHTML:t._s(t.isVisible?t.iconClose:t.iconOpen)},on:{click:function(e){t.isVisible=!t.isVisible}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],domProps:{textContent:t._s(t.section.headline)}}),n("small",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],class:[t.section.subHeadlineAdditionalClass,"toggleable-sub-headline"],domProps:{textContent:t._s(t.section.subHeadline)}})])]),n("transition",{attrs:{name:"slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}]},[n("draggable",{class:t.draggableClasses,attrs:{"ghost-class":"ghost",handle:t.dragControlHandle,list:t.section.controls,group:t.dragGroup}},[t._l(t.section.controls,(function(e){return n("ControlView",{key:e,attrs:{control:t.controls[e],"parent-id":t.section.uniqueId}})})),t.hasControl?t._e():n("p",[t._v(" Droppable Zone / Controls will be showed here... ")])],2),n("AddControlControl",{attrs:{section:t.section}})],1)])],1)},It=[],Ft={name:"ToggleableSectionView",components:{AddControlControl:g["a"]},mixins:[bt,c["a"],B]},Bt=Ft,Ut=Object(d["a"])(Bt,Lt,It,!1,null,null,null),$t=Ut.exports,Vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-section"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],staticClass:"headline-block"},[n("h2",{class:t.section.headlineAdditionalClass,domProps:{textContent:t._s(t.section.headline)}}),n("p",{class:t.section.subHeadlineAdditionalClass,domProps:{textContent:t._s(t.section.subHeadline)}})]),n("div",{class:t.containerClasses},t._l(t.section.controls,(function(e){return n("ControlView",{key:e,attrs:{readonly:t.readonly,control:t.controls[e],"parent-id":t.section.uniqueId,"value-container":t.valueContainer,"validation-errors":t.validationErrors}})})),1)])},Ht=[],Wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"name"==t.control.name||t.valueContainer[t.lookUpField]==t.lookUpValue?n("div",{class:[t.control.containerClass,"control-view-wrapper",t.control.additionalContainerClass]},[n("div",{staticClass:"control-view"},[n("ControlLabel",{directives:[{name:"show",rawName:"v-show",value:t.control.isShowLabel,expression:"control.isShowLabel"}],attrs:{control:t.control}}),n(t.controlComponent,{tag:"component",class:t.validationErrorClasses,attrs:{control:t.control,readonly:t.readonly,"value-container":t.valueContainer},model:{value:t.valueContainer[t.controlName],callback:function(e){t.$set(t.valueContainer,t.controlName,e)},expression:"valueContainer[controlName]"}}),t.hasValidationError?t._l(t.validationErrorMessages,(function(e,o){return n("div",{key:o,class:t.styles.FORM.ERROR_MESSAGE,domProps:{textContent:t._s(e)}})})):t._e()],2)]):t._e()},zt=[],Yt={name:"ControlView",components:{ControlLabel:C},mixins:[c["a"]],props:{control:{type:Object,required:!0},parentId:{type:String,required:!0},valueContainer:{type:Object,required:!0},validationErrors:{type:Object,default:function(){return{}}},readonly:{type:Boolean,default:!1}},data:function(){return{isVisible:!0,lookUpField:"null",lookUpValue:null}},computed:{controlComponent:function(){if(!S["a"][this.control.type]||!S["a"][this.control.type].fieldComponent)throw new TypeError("Control Type Mapping failed => Can't be rendered. Reason: Your control type ".concat(this.control.type," doesn't have 'fieldComponent' property"));return S["a"][this.control.type].fieldComponent},controlName:function(){return this.control.name||this.control.uniqueId},hasValidationError:function(){return!!this.validationErrors[this.controlName]},validationErrorMessages:function(){return this.validationErrors[this.controlName]},validationErrorClasses:function(){var t={};return t[this.styles.FORM.ERROR_OUTLINE]=this.hasValidationError,t}}},Gt=Yt,Kt=Object(d["a"])(Gt,Wt,zt,!1,null,null,null),Jt=Kt.exports,Xt={components:{ControlView:Jt},mixins:[c["a"]],props:{section:Object,rows:Object,controls:Object,valueContainer:Object,validationErrors:Object,reference:Object,readonly:{type:Boolean,default:!1}},data:function(){return{}},methods:{},computed:{containerClasses:function(){return[this.styles.ROW,"control-list-container"]}}},Zt={name:"NormalSectionView",mixins:[Xt],data:function(){return{}}},Qt=Zt,te=Object(d["a"])(Qt,Vt,Ht,!1,null,null,null),ee=te.exports,ne=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toggleable-section"},[n("div",{staticClass:"headline-block"},[n("h2",{class:t.section.headlineAdditionalClass},[n("span",{staticClass:"toggle-item",domProps:{innerHTML:t._s(t.isVisible?t.iconClose:t.iconOpen)},on:{click:function(e){t.isVisible=!t.isVisible}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],domProps:{textContent:t._s(t.section.headline)}}),n("small",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],class:[t.section.subHeadlineAdditionalClass,"toggleable-sub-headline"],domProps:{textContent:t._s(t.section.subHeadline)}})])]),n("transition",{attrs:{name:"slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],class:t.containerClasses},t._l(t.section.controls,(function(e){return n("ControlView",{key:e,attrs:{control:t.controls[e],"parent-id":t.section.uniqueId,"value-container":t.valueContainer,"validation-errors":t.validationErrors,readonly:t.readonly}})})),1)])],1)},oe=[],re={name:"ToggleableSectionView",mixins:[Xt,B]},ie=re,ae=Object(d["a"])(ie,ne,oe,!1,null,null,null),le=ae.exports,se=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-section"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.section.isShowHeadline,expression:"section.isShowHeadline"}],staticClass:"headline-block p5"},[n("h2",{class:t.section.headlineAdditionalClass,domProps:{textContent:t._s(t.section.headline)}}),n("p",{class:t.section.subHeadlineAdditionalClass,domProps:{textContent:t._s(t.section.subHeadline)}})]),n("div",{staticClass:"table-wrapper"},[n("FullTableRowRenderView",{key:"123",attrs:{section:t.section,parent:t.parent,reference:t.reference,loaded:t.loaded,dataInput:t.dataInput,valueContainer:t.valueContainer,readOnly:t.readonly},on:{items:t.loadItems}})],1)])},ce=[],ue=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.section.sectionFormula&&t.section.sectionFormula.length?n("div",[n("b-row",{staticClass:"my-2 mx-2"},[n("b-col"),t._l(t.section.sectionFormula,(function(e){return n("div",{key:e,staticClass:"my-1 mx-1"},[e.outputField?n("b-input-group",{attrs:{prepend:e.outputField}},[e.formula?n("b-form-input",{attrs:{value:t.getFormulaValue(e.formula)}}):t._e()],1):t._e()],1)}))],2)],1):t._e(),t.formData?n("b-row"):t._e(),t.showGraph&&t.chartDataSet.length>0&&null!=t.chartDataSet[0].labels?n("b-row",[n("Chart",{attrs:{dataset:t.chartDataSet,labels:t.chartLabels}})],1):n("b-row",[n("b-table",{ref:"selectableTable",staticStyle:{width:"100%"},attrs:{"empty-text":"Items will be show here","empty-filtered-text":"No items to show","show-empty":!0,items:t.items,striped:"",outlined:"",bordered:"","head-row-variant":"secondary","sticky-header":"62vh",responsive:"",small:"",selectable:"","select-mode":"single",hover:"","foot-clone":""},on:{"row-selected":t.onRowSelected},scopedSlots:t._u([{key:"head()",fn:function(e){return[e.label?n("span",[t._v(t._s(e.label.split("-")[1]))]):t._e()]}},{key:"cell(rowId)",fn:function(e){return[t._e()]}},t.section.calculatedFields&&t.section.calculatedFields.length?{key:"foot(rowId)",fn:function(e){return[t._e(),n("span",[t._v(" Totals")])]}}:null,t.section.calculatedFields&&t.section.calculatedFields.length?{key:"foot()",fn:function(e){return[t.section.calculatedFields?n("span",[t.section.calculatedFields.split(",").includes(e.column)?n("span",{staticClass:"text-danger"},[t._v(t._s(t.items.map((function(t){return t[e.column]})).reduce((function(t,e){return t+e}),0)))]):t._e()]):t._e(),t._v(" "),n("span")]}}:null],null,!0)})],1),n("b-modal",{attrs:{id:t.tableId,"hide-footer":"",size:"xl"}},[n("FormRenderer",{attrs:{"form-configuration":t.formData},model:{value:t.formInputData,callback:function(e){t.formInputData=e},expression:"formInputData"}}),n("b-button",{staticClass:"mt-3",attrs:{variant:"primary",block:"",size:"sm"},on:{click:function(e){return t.save()}}},[t._v(" Save ")])],1),n("div",{staticStyle:{width:"100%"}},[t.readOnly||t.readonly?t._e():n("b-button",{attrs:{variant:"primary",id:"show-btn"},on:{click:function(e){return t.$bvModal.show(t.tableId)}}},[t._v("Add Row")])],1)],1)},fe=[],de=n("eb71"),pe=de["a"],he=(n("cab0"),Object(d["a"])(pe,ue,fe,!1,null,"d895f52c",null)),me=he.exports,ve={name:"TableSectionView",components:{FullTableRowRenderView:me,AddRowControl:h},mixins:[bt,c["a"],Xt],methods:{getTableData:function(){var t=this,e="Form Repository",n=this.parent,o=this.section.referenceTable,r={doctype:e,filters:{parent_repo:n,form_name:o},fields:["*"],order_by:"creation desc",page:1,start:0,limit:200};Object(Y["e"])(r).then((function(e){t.loaded=e.message.map((function(t){var e=JSON.parse(t.form_content);return e.rowId=t.name,e}))}))},loadItems:function(t){this.section.childTable=t}},props:{parent:String,dataInput:Object},data:function(){return{loaded:[]}},mounted:function(){null!=this.dataInput&&this.dataInput[this.section.referenceTable]&&(this.loaded=this.dataInput),this.parent&&this.getTableData()}},ye=ve,ge=Object(d["a"])(ye,se,ce,!1,null,"51755d70",null),be=ge.exports,_e={normal:{name:"Normal Block",description:"Normal block with a headline",value:"normal",rowType:r["b"].normal,builderView:xt,rendererView:ee},toggleable:{name:"Toggleable Block",description:"Section block with toggle (display/hide) feature",value:"toggleable",rowType:r["b"].normal,builderView:$t,rendererView:le},table:{name:"Table Block",description:"Section block built from a table with 2 column",value:"table",rowType:r["b"].tableRow,builderView:jt,rendererView:be}},we={uniqueId:"",headline:"",headlineAdditionalClass:"",subHeadline:"",subHeadlineAdditionalClass:"",isShowHeadline:!0,condition:"",tableReference:"",sortOrder:0,type:"",rows:[],controls:[],referenceTable:""};function Oe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!_e[t])throw new TypeError("Section Type: ".concat(t," doesn't exists in Vue-Form-Builder"));var n=o["a"].cloneDeep(we);return n.type=t,n.uniqueId="section-"+o["a"].getUUIDv4(),n.headline="New Section",n.subHeadline="This is the sub-headline of the new section",n.sortOrder=e,n.referenceTable=" ",n}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,o=t.length-1;o>=0;o--){var r=t[o];"."===r?t.splice(o,1):".."===r?(t.splice(o,1),n++):n&&(t.splice(o,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function o(t){"string"!==typeof t&&(t+="");var e,n=0,o=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===o&&(r=!1,o=e+1);return-1===o?"":t.slice(n,o)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],o=0;o<t.length;o++)e(t[o],o,t)&&n.push(t[o]);return n}e.resolve=function(){for(var e="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,o="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!o).join("/"),(o?"/":"")+e||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"),t||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function o(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=o(t.split("/")),i=o(n.split("/")),a=Math.min(r.length,i.length),l=a,s=0;s<a;s++)if(r[s]!==i[s]){l=s;break}var c=[];for(s=l;s<r.length;s++)c.push("..");return c=c.concat(i.slice(l)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,o=-1,r=!0,i=t.length-1;i>=1;--i)if(e=t.charCodeAt(i),47===e){if(!r){o=i;break}}else r=!1;return-1===o?n?"/":".":n&&1===o?"/":t.slice(0,o)},e.basename=function(t,e){var n=o(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,o=-1,r=!0,i=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(47!==l)-1===o&&(r=!1,o=a+1),46===l?-1===e?e=a:1!==i&&(i=1):-1!==e&&(i=-1);else if(!r){n=a+1;break}}return-1===e||-1===o||0===i||1===i&&e===o-1&&e===n+1?"":t.slice(e,o)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e39c:function(t,e,n){"use strict";var o=n("07a4")(),r=n("545e"),i=r("Object.prototype.toString"),a=function(t){return!(o&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},l=function(t){return!!a(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=l,t.exports=s?a:l},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e3e3:function(t,e,n){"use strict";var o,r="function"===typeof WeakMap&&WeakMap.prototype?WeakMap:null,i="function"===typeof WeakSet&&WeakSet.prototype?WeakSet:null;r||(o=function(t){return!1});var a=r?r.prototype.has:null,l=i?i.prototype.has:null;o||a||(o=function(t){return!1}),t.exports=o||function(t){if(!t||"object"!==typeof t)return!1;try{if(a.call(t,a),l)try{l.call(t,l)}catch(e){return!0}return t instanceof r}catch(e){}return!1}},e467:function(t,e,n){"use strict";(function(t){var o=n("c532"),r=n("7917"),i=n("4581");function a(t){return o["a"].isPlainObject(t)||o["a"].isArray(t)}function l(t){return o["a"].endsWith(t,"[]")?t.slice(0,-2):t}function s(t,e,n){return t?t.concat(e).map((function(t,e){return t=l(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}function c(t){return o["a"].isArray(t)&&!t.some(a)}const u=o["a"].toFlatObject(o["a"],{},null,(function(t){return/^is[A-Z]/.test(t)}));function f(e,n,f){if(!o["a"].isObject(e))throw new TypeError("target must be an object");n=n||new(i["a"]||FormData),f=o["a"].toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!o["a"].isUndefined(e[t])}));const d=f.metaTokens,p=f.visitor||b,h=f.dots,m=f.indexes,v=f.Blob||"undefined"!==typeof Blob&&Blob,y=v&&o["a"].isSpecCompliantForm(n);if(!o["a"].isFunction(p))throw new TypeError("visitor must be a function");function g(e){if(null===e)return"";if(o["a"].isDate(e))return e.toISOString();if(!y&&o["a"].isBlob(e))throw new r["a"]("Blob is not supported. Use a Buffer instead.");return o["a"].isArrayBuffer(e)||o["a"].isTypedArray(e)?y&&"function"===typeof Blob?new Blob([e]):t.from(e):e}function b(t,e,r){let i=t;if(t&&!r&&"object"===typeof t)if(o["a"].endsWith(e,"{}"))e=d?e:e.slice(0,-2),t=JSON.stringify(t);else if(o["a"].isArray(t)&&c(t)||(o["a"].isFileList(t)||o["a"].endsWith(e,"[]"))&&(i=o["a"].toArray(t)))return e=l(e),i.forEach((function(t,r){!o["a"].isUndefined(t)&&null!==t&&n.append(!0===m?s([e],r,h):null===m?e:e+"[]",g(t))})),!1;return!!a(t)||(n.append(s(r,e,h),g(t)),!1)}const _=[],w=Object.assign(u,{defaultVisitor:b,convertValue:g,isVisitable:a});function O(t,e){if(!o["a"].isUndefined(t)){if(-1!==_.indexOf(t))throw Error("Circular reference detected in "+e.join("."));_.push(t),o["a"].forEach(t,(function(t,r){const i=!(o["a"].isUndefined(t)||null===t)&&p.call(n,t,o["a"].isString(r)?r.trim():r,e,w);!0===i&&O(t,e?e.concat(r):[r])})),_.pop()}}if(!o["a"].isObject(e))throw new TypeError("data must be an object");return O(e),n}e["a"]=f}).call(this,n("b639").Buffer)},e4ae:function(t,e,n){var o=n("f772");t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},e53d: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)},e630:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n("774e"),r=n.n(o),i=n("db2a");function a(t,e){if(t){if("string"===typeof t)return Object(i["a"])(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?r()(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i["a"])(t,e):void 0}}},e6f3:function(t,e,n){var o=n("07e3"),r=n("36c3"),i=n("5b4e")(!1),a=n("5559")("IE_PROTO");t.exports=function(t,e){var n,l=r(t),s=0,c=[];for(n in l)n!=a&&o(l,n)&&c.push(n);while(e.length>s)o(l,n=e[s++])&&(~i(c,n)||c.push(n));return c}},e710:function(t,e,n){"use strict";var o=n("f367"),r=n("3eb1"),i=n("5708"),a=n("57ec"),l=n("1c7e"),s=r(a());o(s,{getPolyfill:a,implementation:i,shim:l}),t.exports=s},e853:function(t,e,n){var o=n("d3f4"),r=n("1169"),i=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}},eb71:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_find__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("7514"),core_js_modules_es6_array_find__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_find__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("f751"),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("cadf"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("28a5"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__),_mixins_table_view_mixin__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("cf35"),_services_frappe__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("ee28"),_views_builder_add_controls_AddControlControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("ca0c"),_views_builder_row_views_Chart__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("c5e1"),_mixins_control_field_extend_mixin__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("653e");__webpack_exports__["a"]={name:"FullTableRowRenderView",components:{AddControlControl:_views_builder_add_controls_AddControlControl__WEBPACK_IMPORTED_MODULE_9__["a"],Chart:_views_builder_row_views_Chart__WEBPACK_IMPORTED_MODULE_10__["a"]},mixins:[_mixins_table_view_mixin__WEBPACK_IMPORTED_MODULE_7__["a"],_mixins_control_field_extend_mixin__WEBPACK_IMPORTED_MODULE_11__["a"]],data:function(){return{items:[],formData:{},formInputData:{},savedItems:[],calculatedFields:[],tableFormula:[],chartDataSet:[],chartLabels:[],showGraph:!1}},created:function(){this.showGraph=this.section.showGraph,this.section.referenceTable.length&&(this.getForm(this.section.referenceTable),null!=this.dataInput&&null!=this.dataInput[this.section.referenceTable]&&(this.items=this.dataInput[this.section.referenceTable]))},props:{reference:Object,parent:String,dataInput:{type:Object,default:null},loaded:{type:Array,default:[]},readonly:{type:Boolean,default:!1},valueContainer:{type:Object,required:!1}},watch:{loaded:function(t){t.length&&(this.items=t,this.populateGraph())},valueContainer:function(){null!=this.valueContainer&&null!=this.valueContainer[this.section.referenceTable]&&(this.items=this.valueContainer[this.section.referenceTable])}},methods:{getCalculatedFields:function(){this.calculatedFields=section.calculatedFields.split(",")},getFormulaValue:function getFormulaValue(formula){var _this=this,text=formula,regex=/\[([^\][]*)]/g,results=[],m;while(m=regex.exec(text))results.push(m[1]);var operands=results,resultFormula=formula;return operands.forEach((function(t){var e="[".concat(t,"]"),n=_this.items.map((function(e){return e[t]})).reduce((function(t,e){return t+e}),0);resultFormula=resultFormula.replaceAll(e,n)})),eval(resultFormula)},getRandomInt:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},getSave:function(t){var e=this,n=this.formInputData;console.log("DATA FROM FORM"),console.log(n);var o=!0;if(Object.keys(this.formData.controls).forEach((function(t){null!=e.formData.controls[t]&&null!=e.formData.controls[t].validations&&o&&e.formData.controls[t].validations.forEach((function(n){"required"==n.ruleType&&null==e.formInputData[t]&&(e.show_alert("Field ".concat(e.formData.controls[t].label," is required")),o=!1),"min"==n.ruleType&&"".concat(e.formInputData[t]).length<n.additionalValue&&(e.show_alert("Field ".concat(e.formData.controls[t].label," is need at least ").concat(n.additionalValue," characters")),o=!1),"max"==n.ruleType&&"".concat(e.formInputData[t]).length>n.additionalValue&&(e.show_alert("Field ".concat(e.formData.controls[t].label," can only have a max of ").concat(n.additionalValue," characters")),o=!1)}))})),o){var r=Object.assign({rowId:t},n);r.rowId=t,this.items.unshift(r),this.map(),console.log({parent:this.parent,items:this.items}),this.$emit("items",{parent:this.parent,items:this.items}),this.clearData()}},setValues:function(t){this.$set(this,"formInputData",t)},clearData:function(){var t={},e=Object.keys(this.formInputData);e.forEach((function(e){t[e]=""})),this.setValues(t)},onRowSelected:function(t){var e=this;if(!(t.length<1)){var n=t.length-1;t=t[n],this.$bvModal.msgBoxConfirm("Are you sure you want to remove row ?").then((function(n){n&&(e.items=e.items.filter((function(e){return e.rowId!=t.rowId})),Object(_services_frappe__WEBPACK_IMPORTED_MODULE_8__["b"])({name:t.rowId}).then((function(t){e.show_alert("Item removed")})))})).catch((function(t){}))}},populateGraph:function(){var t=this;if(this.showGraph){this.chartLabels=this.items.map((function(e){return e["".concat(t.formData.xAxisField)]}));var e=this.formData.graphFields.split(","),n=[];e.forEach((function(e){var o={};o.name=e.split("-")[1],o.type="line",o.values=t.items.map((function(t){return t["".concat(e)]}));var r=n.find((function(t){return t.name==o.name}));null==r&&n.push(o)})),this.chartDataSet=n}},getForm:function(t){var e=this;Object(_services_frappe__WEBPACK_IMPORTED_MODULE_8__["d"])({name:t}).then((function(t){var n=t.formdata,o=JSON.parse(n);e.configuration=n,e.formName=t.name,e.formData=o,e.originalConfig=o,e.populateGraph()}))},list:function(t,e){var n=this.formData.controls[t];if(n&&("radio"==n.type||"dropDown"==n.type)&&n.items.length){var o=items.find(item.value===this.formInputData[t]),r=this.formData.controls[t].mappedField;r&&(e[r]=o.erpValue)}},map:function(){var t=this;if(this.formData.formConfig.mappedDoctype){var e=Object.keys(this.formInputData),n={};if(e.forEach((function(e){var o=t.formData.controls[e];if(!o||"radio"!==o.type&&"dropDown"!==o.type&&"checkbox"!==o.type){var r=t.formData.controls[e].mappedField;r&&(n[r]=t.formInputData[e])}else if(o.items.length){var i=o.items.find((function(n){return n.value===t.formInputData[e]})),a=t.formData.controls[e].mappedField;a&&(n[a]=i.erpValue)}})),this.section.referenceTable.length){var o=null;o=this.section.tableReference?this.section.tableReference:this.section.referenceTable.replaceAll(" ","_").toLowerCase(),this.valueContainer[o]||(this.valueContainer[o]=[]);var r=this.valueContainer[o];r.push(n),this.$set(this.valueContainer,o,r)}}},saveForm:function(t){var e=this;Object(_services_frappe__WEBPACK_IMPORTED_MODULE_8__["f"])(t).then((function(t){e.getSave(t.name),e.show_alert("Item saved "+t.name),e.savedItems.push(t.name)}))},clearSavedData:function(){},save:function(){var t=this.formInputData;t=JSON.stringify(t);var e=this.formName,n="Form Repository",o=this.parent,r={doctype:n,form_content:t,parent_repo:o,form_name:e,completion_status:"Completed",completed:1};this.reference&&(r.reference_doctype=this.reference.doctype,r.reference_doctype_id=this.reference.doctype_id),this.saveForm({formData:r})}},computed:{tableId:function(){var t="".concat(this.getRandomInt(1,3e3));return t}}}},ebd6:function(t,e,n){var o=n("cb7c"),r=n("d8e8"),i=n("2b4c")("species");t.exports=function(t,e){var n,a=o(t).constructor;return void 0===a||void 0==(n=o(a)[i])?e:r(n)}},ebfd:function(t,e,n){var o=n("62a0")("meta"),r=n("f772"),i=n("07e3"),a=n("d9f6").f,l=0,s=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return s(Object.preventExtensions({}))})),u=function(t){a(t,o,{value:{i:"O"+ ++l,w:{}}})},f=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,o)){if(!s(t))return"F";if(!e)return"E";u(t)}return t[o].i},d=function(t,e){if(!i(t,o)){if(!s(t))return!0;if(!e)return!1;u(t)}return t[o].w},p=function(t){return c&&h.NEED&&s(t)&&!i(t,o)&&u(t),t},h=t.exports={KEY:o,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},ec30:function(t,e,n){"use strict";if(n("9e1e")){var o=n("2d00"),r=n("7726"),i=n("79e5"),a=n("5ca1"),l=n("0f88"),s=n("ed0b"),c=n("9b43"),u=n("f605"),f=n("4630"),d=n("32e9"),p=n("dcbc"),h=n("4588"),m=n("9def"),v=n("09fa"),y=n("77f1"),g=n("6a99"),b=n("69a8"),_=n("23c6"),w=n("d3f4"),O=n("4bf8"),x=n("33a4"),E=n("2aeb"),k=n("38fd"),C=n("9093").f,S=n("27ee"),q=n("ca5a"),D=n("2b4c"),T=n("0a49"),R=n("c366"),A=n("ebd6"),M=n("cadf"),P=n("84f2"),N=n("5cc5"),j=n("7a56"),L=n("36bd"),I=n("ba92"),F=n("86cc"),B=n("11e9"),U=F.f,$=B.f,V=r.RangeError,H=r.TypeError,W=r.Uint8Array,z="ArrayBuffer",Y="Shared"+z,G="BYTES_PER_ELEMENT",K="prototype",J=Array[K],X=s.ArrayBuffer,Z=s.DataView,Q=T(0),tt=T(2),et=T(3),nt=T(4),ot=T(5),rt=T(6),it=R(!0),at=R(!1),lt=M.values,st=M.keys,ct=M.entries,ut=J.lastIndexOf,ft=J.reduce,dt=J.reduceRight,pt=J.join,ht=J.sort,mt=J.slice,vt=J.toString,yt=J.toLocaleString,gt=D("iterator"),bt=D("toStringTag"),_t=q("typed_constructor"),wt=q("def_constructor"),Ot=l.CONSTR,xt=l.TYPED,Et=l.VIEW,kt="Wrong length!",Ct=T(1,(function(t,e){return Rt(A(t,t[wt]),e)})),St=i((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),qt=!!W&&!!W[K].set&&i((function(){new W(1).set({})})),Dt=function(t,e){var n=h(t);if(n<0||n%e)throw V("Wrong offset!");return n},Tt=function(t){if(w(t)&&xt in t)return t;throw H(t+" is not a typed array!")},Rt=function(t,e){if(!w(t)||!(_t in t))throw H("It is not a typed array constructor!");return new t(e)},At=function(t,e){return Mt(A(t,t[wt]),e)},Mt=function(t,e){var n=0,o=e.length,r=Rt(t,o);while(o>n)r[n]=e[n++];return r},Pt=function(t,e,n){U(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,o,r,i,a,l=O(t),s=arguments.length,u=s>1?arguments[1]:void 0,f=void 0!==u,d=S(l);if(void 0!=d&&!x(d)){for(a=d.call(l),o=[],e=0;!(i=a.next()).done;e++)o.push(i.value);l=o}for(f&&s>2&&(u=c(u,arguments[2],2)),e=0,n=m(l.length),r=Rt(this,n);n>e;e++)r[e]=f?u(l[e],e):l[e];return r},jt=function(){var t=0,e=arguments.length,n=Rt(this,e);while(e>t)n[t]=arguments[t++];return n},Lt=!!W&&i((function(){yt.call(new W(1))})),It=function(){return yt.apply(Lt?mt.call(Tt(this)):Tt(this),arguments)},Ft={copyWithin:function(t,e){return I.call(Tt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Tt(this),arguments)},filter:function(t){return At(this,tt(Tt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return ot(Tt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Tt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Tt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return it(Tt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Tt(this),arguments)},lastIndexOf:function(t){return ut.apply(Tt(this),arguments)},map:function(t){return Ct(Tt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(Tt(this),arguments)},reduceRight:function(t){return dt.apply(Tt(this),arguments)},reverse:function(){var t,e=this,n=Tt(e).length,o=Math.floor(n/2),r=0;while(r<o)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return et(Tt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ht.call(Tt(this),t)},subarray:function(t,e){var n=Tt(this),o=n.length,r=y(t,o);return new(A(n,n[wt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,m((void 0===e?o:y(e,o))-r))}},Bt=function(t,e){return At(this,mt.call(Tt(this),t,e))},Ut=function(t){Tt(this);var e=Dt(arguments[1],1),n=this.length,o=O(t),r=m(o.length),i=0;if(r+e>n)throw V(kt);while(i<r)this[e+i]=o[i++]},$t={entries:function(){return ct.call(Tt(this))},keys:function(){return st.call(Tt(this))},values:function(){return lt.call(Tt(this))}},Vt=function(t,e){return w(t)&&t[xt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ht=function(t,e){return Vt(t,e=g(e,!0))?f(2,t[e]):$(t,e)},Wt=function(t,e,n){return!(Vt(t,e=g(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(t,e,n):(t[e]=n.value,t)};Ot||(B.f=Ht,F.f=Wt),a(a.S+a.F*!Ot,"Object",{getOwnPropertyDescriptor:Ht,defineProperty:Wt}),i((function(){vt.call({})}))&&(vt=yt=function(){return pt.call(this)});var zt=p({},Ft);p(zt,$t),d(zt,gt,$t.values),p(zt,{slice:Bt,set:Ut,constructor:function(){},toString:vt,toLocaleString:It}),Pt(zt,"buffer","b"),Pt(zt,"byteOffset","o"),Pt(zt,"byteLength","l"),Pt(zt,"length","e"),U(zt,bt,{get:function(){return this[xt]}}),t.exports=function(t,e,n,s){s=!!s;var c=t+(s?"Clamped":"")+"Array",f="get"+t,p="set"+t,h=r[c],y=h||{},g=h&&k(h),b=!h||!l.ABV,O={},x=h&&h[K],S=function(t,n){var o=t._d;return o.v[f](n*e+o.o,St)},q=function(t,n,o){var r=t._d;s&&(o=(o=Math.round(o))<0?0:o>255?255:255&o),r.v[p](n*e+r.o,o,St)},D=function(t,e){U(t,e,{get:function(){return S(this,e)},set:function(t){return q(this,e,t)},enumerable:!0})};b?(h=n((function(t,n,o,r){u(t,h,c,"_d");var i,a,l,s,f=0,p=0;if(w(n)){if(!(n instanceof X||(s=_(n))==z||s==Y))return xt in n?Mt(h,n):Nt.call(h,n);i=n,p=Dt(o,e);var y=n.byteLength;if(void 0===r){if(y%e)throw V(kt);if(a=y-p,a<0)throw V(kt)}else if(a=m(r)*e,a+p>y)throw V(kt);l=a/e}else l=v(n),a=l*e,i=new X(a);d(t,"_d",{b:i,o:p,l:a,e:l,v:new Z(i)});while(f<l)D(t,f++)})),x=h[K]=E(zt),d(x,"constructor",h)):i((function(){h(1)}))&&i((function(){new h(-1)}))&&N((function(t){new h,new h(null),new h(1.5),new h(t)}),!0)||(h=n((function(t,n,o,r){var i;return u(t,h,c),w(n)?n instanceof X||(i=_(n))==z||i==Y?void 0!==r?new y(n,Dt(o,e),r):void 0!==o?new y(n,Dt(o,e)):new y(n):xt in n?Mt(h,n):Nt.call(h,n):new y(v(n))})),Q(g!==Function.prototype?C(y).concat(C(g)):C(y),(function(t){t in h||d(h,t,y[t])})),h[K]=x,o||(x.constructor=h));var T=x[gt],R=!!T&&("values"==T.name||void 0==T.name),A=$t.values;d(h,_t,!0),d(x,xt,c),d(x,Et,!0),d(x,wt,h),(s?new h(1)[bt]==c:bt in x)||U(x,bt,{get:function(){return c}}),O[c]=h,a(a.G+a.W+a.F*(h!=y),O),a(a.S,c,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i((function(){y.of.call(h,1)})),c,{from:Nt,of:jt}),G in x||d(x,G,e),a(a.P,c,Ft),j(c),a(a.P+a.F*qt,c,{set:Ut}),a(a.P+a.F*!R,c,$t),o||x.toString==vt||(x.toString=vt),a(a.P+a.F*i((function(){new h(1).slice()})),c,{slice:Bt}),a(a.P+a.F*(i((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!i((function(){x.toLocaleString.call([1,2])}))),c,{toLocaleString:It}),P[c]=R?T:A,o||R||d(x,gt,A)}}else t.exports=function(){}},ed0b:function(t,e,n){"use strict";var o=n("7726"),r=n("9e1e"),i=n("2d00"),a=n("0f88"),l=n("32e9"),s=n("dcbc"),c=n("79e5"),u=n("f605"),f=n("4588"),d=n("9def"),p=n("09fa"),h=n("9093").f,m=n("86cc").f,v=n("36bd"),y=n("7f20"),g="ArrayBuffer",b="DataView",_="prototype",w="Wrong length!",O="Wrong index!",x=o[g],E=o[b],k=o.Math,C=o.RangeError,S=o.Infinity,q=x,D=k.abs,T=k.pow,R=k.floor,A=k.log,M=k.LN2,P="buffer",N="byteLength",j="byteOffset",L=r?"_b":P,I=r?"_l":N,F=r?"_o":j;function B(t,e,n){var o,r,i,a=new Array(n),l=8*n-e-1,s=(1<<l)-1,c=s>>1,u=23===e?T(2,-24)-T(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for(t=D(t),t!=t||t===S?(r=t!=t?1:0,o=s):(o=R(A(t)/M),t*(i=T(2,-o))<1&&(o--,i*=2),t+=o+c>=1?u/i:u*T(2,1-c),t*i>=2&&(o++,i/=2),o+c>=s?(r=0,o=s):o+c>=1?(r=(t*i-1)*T(2,e),o+=c):(r=t*T(2,c-1)*T(2,e),o=0));e>=8;a[f++]=255&r,r/=256,e-=8);for(o=o<<e|r,l+=e;l>0;a[f++]=255&o,o/=256,l-=8);return a[--f]|=128*d,a}function U(t,e,n){var o,r=8*n-e-1,i=(1<<r)-1,a=i>>1,l=r-7,s=n-1,c=t[s--],u=127&c;for(c>>=7;l>0;u=256*u+t[s],s--,l-=8);for(o=u&(1<<-l)-1,u>>=-l,l+=e;l>0;o=256*o+t[s],s--,l-=8);if(0===u)u=1-a;else{if(u===i)return o?NaN:c?-S:S;o+=T(2,e),u-=a}return(c?-1:1)*o*T(2,u-e)}function $(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function V(t){return[255&t]}function H(t){return[255&t,t>>8&255]}function W(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return B(t,52,8)}function Y(t){return B(t,23,4)}function G(t,e,n){m(t[_],e,{get:function(){return this[n]}})}function K(t,e,n,o){var r=+n,i=p(r);if(i+e>t[I])throw C(O);var a=t[L]._b,l=i+t[F],s=a.slice(l,l+e);return o?s:s.reverse()}function J(t,e,n,o,r,i){var a=+n,l=p(a);if(l+e>t[I])throw C(O);for(var s=t[L]._b,c=l+t[F],u=o(+r),f=0;f<e;f++)s[c+f]=u[i?f:e-f-1]}if(a.ABV){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),x.name!=g}))){x=function(t){return u(this,x),new q(p(t))};for(var X,Z=x[_]=q[_],Q=h(q),tt=0;Q.length>tt;)(X=Q[tt++])in x||l(x,X,q[X]);i||(Z.constructor=x)}var et=new E(new x(2)),nt=E[_].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||s(E[_],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else x=function(t){u(this,x,g);var e=p(t);this._b=v.call(new Array(e),0),this[I]=e},E=function(t,e,n){u(this,E,b),u(t,x,b);var o=t[I],r=f(e);if(r<0||r>o)throw C("Wrong offset!");if(n=void 0===n?o-r:d(n),r+n>o)throw C(w);this[L]=t,this[F]=r,this[I]=n},r&&(G(x,N,"_l"),G(E,P,"_b"),G(E,N,"_l"),G(E,j,"_o")),s(E[_],{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return $(K(this,4,t,arguments[1]))},getUint32:function(t){return $(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return U(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return U(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){J(this,1,t,V,e)},setUint8:function(t,e){J(this,1,t,V,e)},setInt16:function(t,e){J(this,2,t,H,e,arguments[2])},setUint16:function(t,e){J(this,2,t,H,e,arguments[2])},setInt32:function(t,e){J(this,4,t,W,e,arguments[2])},setUint32:function(t,e){J(this,4,t,W,e,arguments[2])},setFloat32:function(t,e){J(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){J(this,8,t,z,e,arguments[2])}});y(x,g),y(E,b),l(E[_],a.VIEW,!0),e[g]=x,e[b]=E},edc4:function(t,e,n){"use strict";(function(e){var o=n("bfad"),r=n("7226"),i=n("545e"),a=i("Object.prototype.toString"),l=n("07a4")(),s="undefined"===typeof globalThis?e:globalThis,c=r(),u=i("String.prototype.slice"),f={},d=n("1dd1"),p=Object.getPrototypeOf;l&&d&&p&&o(c,(function(t){if("function"===typeof s[t]){var e=new s[t];if(Symbol.toStringTag in e){var n=p(e),o=d(n,Symbol.toStringTag);if(!o){var r=p(n);o=d(r,Symbol.toStringTag)}f[t]=o.get}}}));var h=function(t){var e=!1;return o(f,(function(n,o){if(!e)try{var r=n.call(t);r===o&&(e=r)}catch(i){}})),e},m=n("f4e3");t.exports=function(t){return!!m(t)&&(l&&Symbol.toStringTag in t?h(t):u(a(t),8,-1))}}).call(this,n("c8ba"))},ee28:function(t,e,n){"use strict";n.d(e,"a",(function(){return jt})),n.d(e,"d",(function(){return It})),n.d(e,"f",(function(){return Bt})),n.d(e,"e",(function(){return Ut})),n.d(e,"c",(function(){return $t})),n.d(e,"b",(function(){return Ft}));var o={};n.r(o),n.d(o,"hasBrowserEnv",(function(){return O})),n.d(o,"hasStandardBrowserWebWorkerEnv",(function(){return E})),n.d(o,"hasStandardBrowserEnv",(function(){return x}));n("7f7f"),n("551c");var r=n("7618"),i=n("c532"),a=n("1d2b"),l=n("e467");function s(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function c(t,e){this._pairs=[],t&&Object(l["a"])(t,this,e)}const u=c.prototype;u.append=function(t,e){this._pairs.push([t,e])},u.toString=function(t){const e=t?function(e){return t.call(this,e,s)}:s;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var f=c;function d(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p(t,e,n){if(!e)return t;const o=n&&n.encode||d,r=n&&n.serialize;let a;if(a=r?r(e,n):i["a"].isURLSearchParams(e)?e.toString():new f(e,n).toString(o),a){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}class h{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){i["a"].forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var m=h,v=n("7917"),y={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g="undefined"!==typeof URLSearchParams?URLSearchParams:f,b="undefined"!==typeof FormData?FormData:null,_="undefined"!==typeof Blob?Blob:null,w={isBrowser:!0,classes:{URLSearchParams:g,FormData:b,Blob:_},protocols:["http","https","file","blob","url","data"]};const O="undefined"!==typeof window&&"undefined"!==typeof document,x=(t=>O&&["ReactNative","NativeScript","NS"].indexOf(t)<0)("undefined"!==typeof navigator&&navigator.product),E=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var k={...o,...w};function C(t,e){return Object(l["a"])(t,new k.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,o){return k.isNode&&i["a"].isBuffer(t)?(this.append(e,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function S(t){return i["a"].matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}function q(t){const e={},n=Object.keys(t);let o;const r=n.length;let i;for(o=0;o<r;o++)i=n[o],e[i]=t[i];return e}function D(t){function e(t,n,o,r){let a=t[r++];const l=Number.isFinite(+a),s=r>=t.length;if(a=!a&&i["a"].isArray(o)?o.length:a,s)return i["a"].hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!l;o[a]&&i["a"].isObject(o[a])||(o[a]=[]);const c=e(t,n,o[a],r);return c&&i["a"].isArray(o[a])&&(o[a]=q(o[a])),!l}if(i["a"].isFormData(t)&&i["a"].isFunction(t.entries)){const n={};return i["a"].forEachEntry(t,(t,o)=>{e(S(t),o,n,0)}),n}return null}var T=D;function R(t,e,n){if(i["a"].isString(t))try{return(e||JSON.parse)(t),i["a"].trim(t)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(t)}const A={transitional:y,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",o=n.indexOf("application/json")>-1,r=i["a"].isObject(t);r&&i["a"].isHTMLForm(t)&&(t=new FormData(t));const a=i["a"].isFormData(t);if(a)return o&&o?JSON.stringify(T(t)):t;if(i["a"].isArrayBuffer(t)||i["a"].isBuffer(t)||i["a"].isStream(t)||i["a"].isFile(t)||i["a"].isBlob(t))return t;if(i["a"].isArrayBufferView(t))return t.buffer;if(i["a"].isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return C(t,this.formSerializer).toString();if((s=i["a"].isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Object(l["a"])(s?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||o?(e.setContentType("application/json",!1),R(t)):t}],transformResponse:[function(t){const e=this.transitional||A.transitional,n=e&&e.forcedJSONParsing,o="json"===this.responseType;if(t&&i["a"].isString(t)&&(n&&!this.responseType||o)){const n=e&&e.silentJSONParsing,i=!n&&o;try{return JSON.parse(t)}catch(r){if(i){if("SyntaxError"===r.name)throw v["a"].from(r,v["a"].ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i["a"].forEach(["delete","get","head","post","put","patch"],t=>{A.headers[t]={}});var M=A;const P=i["a"].toObjectSet(["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"]);var N=t=>{const e={};let n,o,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),o=t.substring(r+1).trim(),!n||e[n]&&P[n]||("set-cookie"===n?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)})),e};const j=Symbol("internals");function L(t){return t&&String(t).trim().toLowerCase()}function I(t){return!1===t||null==t?t:i["a"].isArray(t)?t.map(I):String(t)}function F(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;while(o=n.exec(t))e[o[1]]=o[2];return e}const B=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function U(t,e,n,o,r){return i["a"].isFunction(o)?o.call(this,e,n):(r&&(e=n),i["a"].isString(e)?i["a"].isString(o)?-1!==e.indexOf(o):i["a"].isRegExp(o)?o.test(e):void 0:void 0)}function $(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}function V(t,e){const n=i["a"].toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+n,{value:function(t,n,r){return this[o].call(this,e,t,n,r)},configurable:!0})})}class H{constructor(t){t&&this.set(t)}set(t,e,n){const o=this;function r(t,e,n){const r=L(e);if(!r)throw new Error("header name must be a non-empty string");const a=i["a"].findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||e]=I(t))}const a=(t,e)=>i["a"].forEach(t,(t,n)=>r(t,n,e));return i["a"].isPlainObject(t)||t instanceof this.constructor?a(t,e):i["a"].isString(t)&&(t=t.trim())&&!B(t)?a(N(t),e):null!=t&&r(e,t,n),this}get(t,e){if(t=L(t),t){const n=i["a"].findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return F(t);if(i["a"].isFunction(e))return e.call(this,t,n);if(i["a"].isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=L(t),t){const n=i["a"].findKey(this,t);return!(!n||void 0===this[n]||e&&!U(this,this[n],n,e))}return!1}delete(t,e){const n=this;let o=!1;function r(t){if(t=L(t),t){const r=i["a"].findKey(n,t);!r||e&&!U(n,n[r],r,e)||(delete n[r],o=!0)}}return i["a"].isArray(t)?t.forEach(r):r(t),o}clear(t){const e=Object.keys(this);let n=e.length,o=!1;while(n--){const r=e[n];t&&!U(this,this[r],r,t,!0)||(delete this[r],o=!0)}return o}normalize(t){const e=this,n={};return i["a"].forEach(this,(o,r)=>{const a=i["a"].findKey(n,r);if(a)return e[a]=I(o),void delete e[r];const l=t?$(r):String(r).trim();l!==r&&delete e[r],e[l]=I(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return i["a"].forEach(this,(n,o)=>{null!=n&&!1!==n&&(e[o]=t&&i["a"].isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=this[j]=this[j]={accessors:{}},n=e.accessors,o=this.prototype;function r(t){const e=L(t);n[e]||(V(o,t),n[e]=!0)}return i["a"].isArray(t)?t.forEach(r):r(t),this}}H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),i["a"].reduceDescriptors(H.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),i["a"].freezeMethods(H);var W=H;function z(t,e){const n=this||M,o=e||n,r=W.from(o.headers);let a=o.data;return i["a"].forEach(t,(function(t){a=t.call(n,a,r.normalize(),e?e.status:void 0)})),r.normalize(),a}function Y(t){return!(!t||!t.__CANCEL__)}function G(t,e,n){v["a"].call(this,null==t?"canceled":t,v["a"].ERR_CANCELED,e,n),this.name="CanceledError"}i["a"].inherits(G,v["a"],{__CANCEL__:!0});var K=G,J=n("4581");function X(t,e,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(new v["a"]("Request failed with status code "+n.status,[v["a"].ERR_BAD_REQUEST,v["a"].ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}var Z=k.hasStandardBrowserEnv?{write(t,e,n,o,r,a){const l=[t+"="+encodeURIComponent(e)];i["a"].isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),i["a"].isString(o)&&l.push("path="+o),i["a"].isString(r)&&l.push("domain="+r),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Q(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function tt(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function et(t,e){return t&&!Q(e)?tt(t,e):e}var nt=k.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function o(n){let o=n;return t&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=o(window.location.href),function(t){const e=i["a"].isString(t)?o(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return function(){return!0}}();function ot(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function rt(t,e){t=t||10;const n=new Array(t),o=new Array(t);let r,i=0,a=0;return e=void 0!==e?e:1e3,function(l){const s=Date.now(),c=o[a];r||(r=s),n[i]=l,o[i]=s;let u=a,f=0;while(u!==i)f+=n[u++],u%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),s-r<e)return;const d=c&&s-c;return d?Math.round(1e3*f/d):void 0}}var it=rt;function at(t,e){let n=0;const o=it(50,250);return r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,l=i-n,s=o(l),c=i<=a;n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&c?(a-i)/s:void 0,event:r};u[e?"download":"upload"]=!0,t(u)}}const lt="undefined"!==typeof XMLHttpRequest;var st=lt&&function(t){return new Promise((function(e,n){let o=t.data;const r=W.from(t.headers).normalize();let a,l,{responseType:s,withXSRFToken:c}=t;function u(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}if(i["a"].isFormData(o))if(k.hasStandardBrowserEnv||k.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(l=r.getContentType())){const[t,...e]=l?l.split(";").map(t=>t.trim()).filter(Boolean):[];r.setContentType([t||"multipart/form-data",...e].join("; "))}let f=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(e+":"+n))}const d=et(t.baseURL,t.url);function h(){if(!f)return;const o=W.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),r=s&&"text"!==s&&"json"!==s?f.response:f.responseText,i={data:r,status:f.status,statusText:f.statusText,headers:o,config:t,request:f};X((function(t){e(t),u()}),(function(t){n(t),u()}),i),f=null}if(f.open(t.method.toUpperCase(),p(d,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(h)},f.onabort=function(){f&&(n(new v["a"]("Request aborted",v["a"].ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new v["a"]("Network Error",v["a"].ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const o=t.transitional||y;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new v["a"](e,o.clarifyTimeoutError?v["a"].ETIMEDOUT:v["a"].ECONNABORTED,t,f)),f=null},k.hasStandardBrowserEnv&&(c&&i["a"].isFunction(c)&&(c=c(t)),c||!1!==c&&nt(d))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&Z.read(t.xsrfCookieName);e&&r.set(t.xsrfHeaderName,e)}void 0===o&&r.setContentType(null),"setRequestHeader"in f&&i["a"].forEach(r.toJSON(),(function(t,e){f.setRequestHeader(e,t)})),i["a"].isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),s&&"json"!==s&&(f.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",at(t.onDownloadProgress,!0)),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",at(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{f&&(n(!e||e.type?new K(null,t,f):e),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const m=ot(d);m&&-1===k.protocols.indexOf(m)?n(new v["a"]("Unsupported protocol "+m+":",v["a"].ERR_BAD_REQUEST,t)):f.send(o||null)}))};const ct={http:J["a"],xhr:st};i["a"].forEach(ct,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}});const ut=t=>"- "+t,ft=t=>i["a"].isFunction(t)||null===t||!1===t;var dt={getAdapter:t=>{t=i["a"].isArray(t)?t:[t];const{length:e}=t;let n,o;const r={};for(let i=0;i<e;i++){let e;if(n=t[i],o=n,!ft(n)&&(o=ct[(e=String(n)).toLowerCase()],void 0===o))throw new v["a"](`Unknown adapter '${e}'`);if(o)break;r[e||"#"+i]=o}if(!o){const t=Object.entries(r).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let n=e?t.length>1?"since :\n"+t.map(ut).join("\n"):" "+ut(t[0]):"as no adapter specified";throw new v["a"]("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return o},adapters:ct};function pt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new K(null,t)}function ht(t){pt(t),t.headers=W.from(t.headers),t.data=z.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=dt.getAdapter(t.adapter||M.adapter);return e(t).then((function(e){return pt(t),e.data=z.call(t,t.transformResponse,e),e.headers=W.from(e.headers),e}),(function(e){return Y(e)||(pt(t),e&&e.response&&(e.response.data=z.call(t,t.transformResponse,e.response),e.response.headers=W.from(e.response.headers))),Promise.reject(e)}))}const mt=t=>t instanceof W?t.toJSON():t;function vt(t,e){e=e||{};const n={};function o(t,e,n){return i["a"].isPlainObject(t)&&i["a"].isPlainObject(e)?i["a"].merge.call({caseless:n},t,e):i["a"].isPlainObject(e)?i["a"].merge({},e):i["a"].isArray(e)?e.slice():e}function r(t,e,n){return i["a"].isUndefined(e)?i["a"].isUndefined(t)?void 0:o(void 0,t,n):o(t,e,n)}function a(t,e){if(!i["a"].isUndefined(e))return o(void 0,e)}function l(t,e){return i["a"].isUndefined(e)?i["a"].isUndefined(t)?void 0:o(void 0,t):o(void 0,e)}function s(n,r,i){return i in e?o(n,r):i in t?o(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(t,e)=>r(mt(t),mt(e),!0)};return i["a"].forEach(Object.keys(Object.assign({},t,e)),(function(o){const a=c[o]||r,l=a(t[o],e[o],o);i["a"].isUndefined(l)&&a!==s||(n[o]=l)})),n}const yt="1.6.2",gt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{gt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const bt={};function _t(t,e,n){if("object"!==typeof t)throw new v["a"]("options must be an object",v["a"].ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;while(r-- >0){const i=o[r],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new v["a"]("option "+i+" must be "+n,v["a"].ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new v["a"]("Unknown option "+i,v["a"].ERR_BAD_OPTION)}}gt.transitional=function(t,e,n){function o(t,e){return"[Axios v"+yt+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,i)=>{if(!1===t)throw new v["a"](o(r," has been removed"+(e?" in "+e:"")),v["a"].ERR_DEPRECATED);return e&&!bt[r]&&(bt[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,i)}};var wt={assertOptions:_t,validators:gt};const Ot=wt.validators;class xt{constructor(t){this.defaults=t,this.interceptors={request:new m,response:new m}}request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=vt(this.defaults,e);const{transitional:n,paramsSerializer:o,headers:r}=e;void 0!==n&&wt.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),null!=o&&(i["a"].isFunction(o)?e.paramsSerializer={serialize:o}:wt.assertOptions(o,{encode:Ot.function,serialize:Ot.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=r&&i["a"].merge(r.common,r[e.method]);r&&i["a"].forEach(["delete","get","head","post","put","patch","common"],t=>{delete r[t]}),e.headers=W.concat(a,r);const l=[];let s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,l.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let f,d=0;if(!s){const t=[ht.bind(this),void 0];t.unshift.apply(t,l),t.push.apply(t,c),f=t.length,u=Promise.resolve(e);while(d<f)u=u.then(t[d++],t[d++]);return u}f=l.length;let p=e;d=0;while(d<f){const t=l[d++],e=l[d++];try{p=t(p)}catch(h){e.call(this,h);break}}try{u=ht.call(this,p)}catch(h){return Promise.reject(h)}d=0,f=c.length;while(d<f)u=u.then(c[d++],c[d++]);return u}getUri(t){t=vt(this.defaults,t);const e=et(t.baseURL,t.url);return p(e,t.params,t.paramsSerializer)}}i["a"].forEach(["delete","get","head","options"],(function(t){xt.prototype[t]=function(e,n){return this.request(vt(n||{},{method:t,url:e,data:(n||{}).data}))}})),i["a"].forEach(["post","put","patch"],(function(t){function e(e){return function(n,o,r){return this.request(vt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}xt.prototype[t]=e(),xt.prototype[t+"Form"]=e(!0)}));var Et=xt;class kt{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;while(e-- >0)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const o=new Promise(t=>{n.subscribe(t),e=t}).then(t);return o.cancel=function(){n.unsubscribe(e)},o},t((function(t,o,r){n.reason||(n.reason=new K(t,o,r),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new kt((function(e){t=e}));return{token:e,cancel:t}}}var Ct=kt;function St(t){return function(e){return t.apply(null,e)}}function qt(t){return i["a"].isObject(t)&&!0===t.isAxiosError}const Dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dt).forEach(([t,e])=>{Dt[e]=t});var Tt=Dt;function Rt(t){const e=new Et(t),n=Object(a["a"])(Et.prototype.request,e);return i["a"].extend(n,Et.prototype,e,{allOwnKeys:!0}),i["a"].extend(n,e,null,{allOwnKeys:!0}),n.create=function(e){return Rt(vt(t,e))},n}const At=Rt(M);At.Axios=Et,At.CanceledError=K,At.CancelToken=Ct,At.isCancel=Y,At.VERSION=yt,At.toFormData=l["a"],At.AxiosError=v["a"],At.Cancel=At.CanceledError,At.all=function(t){return Promise.all(t)},At.spread=St,At.isAxiosError=qt,At.mergeConfig=vt,At.AxiosHeaders=W,At.formToJSON=t=>T(i["a"].isHTMLForm(t)?new FormData(t):t),At.getAdapter=dt.getAdapter,At.HttpStatusCode=Tt,At.default=At;var Mt=At,Pt=function(t){return"".concat(localStorage.getItem("appBaseUrl"),"/api/method/").concat(t)},Nt=function(t){if("object"===Object(r["a"])(t)&&null!==t)for(var e in t)"object"===Object(r["a"])(t[e])&&null!==t[e]&&(t[e]=JSON.stringify(t[e]));return t},jt=function(t){var e=t.method,n=t.args,o=void 0===n?{}:n;return new Promise((function(t,n){var r={"Content-Type":"application/json"},i=Nt(o);Mt.post(Pt(e),i,{headers:r,withCredentials:!0}).then((function(e){return t(e.data)})).catch((function(t){return n(t)}))}))},Lt=function(t){var e=t.method,n=t.args,o=void 0===n?{}:n;return new Promise((function(t,n){var r={"Content-Type":"application/json"};Mt.get(Pt(e),{headers:r,withCredentials:!0,params:o}).then((function(e){return t(e.data)})).catch((function(t){return n(t)}))}))},It=function(t){var e=t.name,n=void 0===e?"":e;return Lt({method:"clinical.api.forms.form_builder.get_form_configuration",args:{name:n}}).then((function(t){var e=t.message;return e}))},Ft=function(t){var e=t.name,n=void 0===e?"":e;return Lt({method:"clinical.api.forms.form_builder.delete_repo",args:{name:n}}).then((function(t){var e=t.message;return e}))},Bt=function(t){var e=t.formData;return jt({method:"clinical.api.forms.form_builder.save_form_data",args:{form_data:e}}).then((function(t){var e=t.message;return e}))},Ut=function(t){return jt({method:"mtrh_dev.api.supplier-portal.base.base.get_list",args:{payload:t}})},$t=function(t){return jt({method:"clinical.api.doctype.meta.get_doctype_fields",args:{payload:t}}).then((function(t){var e=t.message;return e}))}},ee8f:function(t,e,n){},f11f:function(t,e,n){"use strict";var o=n("f367"),r=n("c8ba6");t.exports=function(){var t=r();return o(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},f1ae:function(t,e,n){"use strict";var o=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?o.f(t,e,r(0,n)):t[e]=n}},f21c:function(t,e,n){},f367:function(t,e,n){"use strict";var o=n("d6c7"),r="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=Object.defineProperty,s=function(t){return"function"===typeof t&&"[object Function]"===i.call(t)},c=function(){var t={};try{for(var e in l(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(n){return!1}},u=l&&c(),f=function(t,e,n,o){(!(e in t)||s(o)&&o())&&(u?l(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},d=function(t,e){var n=arguments.length>2?arguments[2]:{},i=o(e);r&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var l=0;l<i.length;l+=1)f(t,i[l],e[i[l]],n[i[l]])};d.supportsDescriptors=!!u,t.exports=d},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f4e3:function(t,e,n){"use strict";(function(e){var o=n("bfad"),r=n("7226"),i=n("545e"),a=i("Object.prototype.toString"),l=n("07a4")(),s="undefined"===typeof globalThis?e:globalThis,c=r(),u=i("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},f=i("String.prototype.slice"),d={},p=n("1dd1"),h=Object.getPrototypeOf;l&&p&&h&&o(c,(function(t){var e=new s[t];if(Symbol.toStringTag in e){var n=h(e),o=p(n,Symbol.toStringTag);if(!o){var r=h(n);o=p(r,Symbol.toStringTag)}d[t]=o.get}}));var m=function(t){var e=!1;return o(d,(function(n,o){if(!e)try{e=n.call(t)===o}catch(r){}})),e};t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!l||!(Symbol.toStringTag in t)){var e=f(a(t),8,-1);return u(c,e)>-1}return!!p&&m(t)}}).call(this,n("c8ba"))},f605:function(t,e){t.exports=function(t,e,n,o){if(!(t instanceof e)||void 0!==o&&o in t)throw TypeError(n+": incorrect invocation!");return t}},f751:function(t,e,n){var o=n("5ca1");o(o.S+o.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f921:function(t,e,n){n("014b"),n("c207"),n("69d3"),n("765d"),t.exports=n("584a").Symbol},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var o=n("7726").document;t.exports=o&&o.documentElement},fae3:function(t,e,n){"use strict";if(n.r(e),n.d(e,"VueFormBuilderPlugin",(function(){return a["e"]})),n.d(e,"FormBuilder",(function(){return a["c"]})),n.d(e,"FormRenderer",(function(){return a["d"]})),n.d(e,"BaseControlSkeleton",(function(){return a["b"]})),n.d(e,"BaseControlConfigSkeleton",(function(){return a["a"]})),"undefined"!==typeof window){var o=window.document.currentScript,r=n("8875");o=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=n("b635")},fbdb:function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:[t.styles.CONTAINER.FLUID,"form-padding","vue-form-renderer"]},[t.formData.formConfig.renderFormTag?n("form",{attrs:{action:t.formData.formConfig.formActionURL,method:t.formData.formConfig.formMethod,id:t.formTagId},on:{submit:function(t){t.preventDefault()}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.formData.formConfig.isShowHeadline,expression:"formData.formConfig.isShowHeadline"}],staticClass:"form-headline-container"},[n("h1",{domProps:{textContent:t._s(t.formData.formConfig.headline)}}),n("p",{domProps:{textContent:t._s(t.formData.formConfig.subHeadline)}})]),t._l(t.sortedSections,(function(e){return n("SectionContainer",{key:e.uniqueId,attrs:{parent:t.parent,section:e,readonly:t.readonly,reference:t.reference,rows:t.formData.rows,controls:t.formData.controls,"value-container":t.valueContainer,dataInput:t.dataInput,"validation-errors":t.validationErrors}})}))],2):[n("div",{directives:[{name:"show",rawName:"v-show",value:t.formData.formConfig.isShowHeadline,expression:"formData.formConfig.isShowHeadline"}],staticClass:"form-headline-container"},[n("h1",{domProps:{textContent:t._s(t.formData.formConfig.headline)}}),n("p",{domProps:{textContent:t._s(t.formData.formConfig.subHeadline)}})]),t._l(t.sortedSections,(function(e){return n("SectionContainer",{key:e.uniqueId,attrs:{section:e,readonly:t.readonly,reference:t.reference,parent:t.parent,rows:t.formData.rows,controls:t.formData.controls,"value-container":t.valueContainer,"validation-errors":t.validationErrors,dataInput:t.dataInput}})}))]],2)},r=[],i=n("52d0"),a=n("b1f2"),l=n("7fae"),s={props:{formConfiguration:{type:Object,required:!0},parent:{type:String,default:"Parent"},reference:{type:Object,default:null},dataInput:{type:Array,default:null},readonly:{type:Boolean,required:!1}},watch:{formConfiguration:{deep:!0,handler:function(t){l(t,this.formData)||(this.mapping(t),this.createValueContainer(t))}}},created:function(){this.mapping(this.formConfiguration)},computed:{formTagId:function(){return a["a"].rendererFormId}}},c=n("28fe"),u=n("bcc7"),f=(n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("6b54"),n("456d"),n("7f7f"),n("768b")),d=(n("cadf"),n("ffc1"),n("ac6a"),n("d225")),p=n("b0b4"),h=n("bd86"),m=(n("a481"),n("a786")),v=function(){function t(){Object(d["a"])(this,t),Object(h["a"])(this,"hasError",!1),Object(h["a"])(this,"errorBuckets",{})}return Object(p["a"])(t,[{key:"errors",value:function(){return this.hasError}},{key:"addError",value:function(t,e){this.hasError=!0,this.errorBuckets[t]||(this.errorBuckets[t]=[]);var n=e.errorMessage||m["a"][e.ruleType].errorMessage,o=":".concat(e.ruleType);n.indexOf(o)>=0&&(n=n.replace(o,e.additionalValue)),this.errorBuckets[t].push(n)}}]),t}();function y(t){return Array.isArray(t)?t.length>0:""!==t}function g(t,e){var n=parseInt(e);return Array.isArray(t)?t.length>=n:"number"===typeof t?t>=n:t.length>=n}function b(t,e){var n=parseInt(e);return Array.isArray(t)?t.length<=n:"number"===typeof t?t<=n:t.length<=n}function _(t){var e=/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/;return e.test(t)}function w(t,e,n){return!!n[e]&&t===n[e]}function O(t,e,n,o){if("function"!==typeof o[e])return console.error("Custom Validation Closure ".concat(e," does not exists. Bypassed")),!0;var r=o[e],i=r(t,n);return!!i}function x(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=E(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function E(t,e){if(t){if("string"===typeof t)return k(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)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var C=function(){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(d["a"])(this,t),Object(h["a"])(this,"rules",null),Object(h["a"])(this,"valueContainer",null),Object(h["a"])(this,"customClosures",{}),Object(h["a"])(this,"validationResult",null),this.valueContainer=e,this.validationClosures=o,this.setRules(n)}return Object(p["a"])(t,[{key:"setRules",value:function(t){var e=this,n={};Object.entries(t).forEach((function(t){var o=Object(f["a"])(t,2),r=o[0],i=o[1],a=i.name||r;e.valueContainer.hasOwnProperty(a)&&(n[a]=i.validations)})),this.rules=n}},{key:"run",value:function(){this.validationResult=new v;for(var t=Object.keys(this.rules),e=0,n=t;e<n.length;e++){var o=n[e],r=this.valueContainer[o],i=this.rules[o]||[];if(i.length){var a,l=x(i);try{for(l.s();!(a=l.n()).done;){var s=a.value,c=this._singleRuleRun(s,r);c||this.validationResult.addError(o,s)}}catch(u){l.e(u)}finally{l.f()}}}return this.validationResult}},{key:"_singleRuleRun",value:function(t,e){switch(t.ruleType){case"required":return y(e);case"min":return g(e,t.additionalValue);case"max":return b(e,t.additionalValue);case"isEmail":return _(e);case"sameAs":return w(e,t.additionalValue,this.valueContainer);case"customClosure":return O(e,t.additionalValue,this.valueContainer,this.customClosures);default:throw new TypeError("This validation type ".concat(t.ruleType," is not supported."))}}}]),t}(),S=n("fbe6"),q=n("caca"),D={data:function(){return{validationErrors:{}}},methods:{runValidation:function(){this.$set(this,"validationErrors",{});var t=this.$form.Validation.run();if(t.errors())return this.$set(this,"validationErrors",t.errorBuckets),void(this.$form.validationErrorShowAlert&&q["a"].show(this.$form.validationErrorAlertText));this.$formEvent.$emit(S["a"].RENDERER.VALIDATION_OK,!0)}},created:function(){this.$form.Validation=new C(this.valueContainer,this.formData.controls,this.$form.validationClosures||{}),this.$formEvent.$on(S["a"].RENDERER.RUN_VALIDATION,this.runValidation)}},T=[s,i["a"],c["a"],u["a"],D],R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section-container"},[n(t.sectionViewComponent,{key:t.section.uniqueId,tag:"component",attrs:{section:t.section,rows:t.rows,readonly:t.readonly,controls:t.controls,parent:t.parent,reference:t.reference,"value-container":t.valueContainer,dataInput:t.dataInput,"validation-errors":t.validationErrors}})],1)},A=[],M=n("dd3c"),P={name:"SectionContainer",props:{section:Object,rows:Object,controls:Object,valueContainer:Object,validationErrors:Object,readonly:{type:Boolean,default:!0},reference:Object,parent:{type:String,default:"no parent"},dataInput:{type:Object,default:null}},computed:{sectionViewComponent:function(){return this.section.parent=this.parent,M["b"][this.section.type].rendererView}}},N=P,j=n("2877"),L=Object(j["a"])(N,R,A,!1,null,"386bb7b5",null),I=L.exports,F={name:"FormRenderer",components:{SectionContainer:I},mixins:T,data:function(){return{formData:null}}},B=F,U=Object(j["a"])(B,o,r,!1,null,"4f505b3b",null);e["a"]=U.exports},fbe6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={BUILDER:{SECTION:{ADDED_ROW:"builder.section.added_row",DELETE:"builder.section.delete",UPDATE:"builder.section.update",PUSH:"builder.section.push"},ROW:{CREATE:"builder.row.create",UPDATE:"builder.row.update",DELETE:"builder.row.delete"},FORMULA:{ADD:"builder.formula.add"},CONTROL:{CREATE:"builder.control.create",UPDATE:"builder.control.update",DELETE:"builder.control.delete",DELETED:"builder.control.deleted",SORT:"builder.control.delete"},SIDEBAR:{INJECT:"builder.sidebar.inject",OPEN:"builder.sidebar.open",OPENED:"builder.sidebar.opened",SAVE:"builder.sidebar.save",SAVE_AND_CLOSE:"builder.sidebar.save_and_close",AFTER_CLOSED:"builder.sidebar.after_closed"}},RENDERER:{RUN_VALIDATION:"renderer.run_validation",VALIDATION_OK:"renderer.validation_ok"}}},fd13:function(t,e,n){"use strict";var o,r="function"===typeof Map&&Map.prototype?Map:null,i="function"===typeof Set&&Set.prototype?Set:null;r||(o=function(t){return!1});var a=r?Map.prototype.has:null,l=i?Set.prototype.has:null;o||a||(o=function(t){return!1}),t.exports=o||function(t){if(!t||"object"!==typeof t)return!1;try{if(a.call(t),l)try{l.call(t)}catch(e){return!0}return t instanceof r}catch(e){}return!1}},fec5:function(t,e,n){"use strict";var o=Object.prototype.toString,r=n("5156")();if(r){var i=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,l=function(t){return"symbol"===typeof t.valueOf()&&a.test(i.call(t))};t.exports=function(t){if("symbol"===typeof t)return!0;if("[object Symbol]"!==o.call(t))return!1;try{return l(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},ffc1:function(t,e,n){var o=n("5ca1"),r=n("504c")(!0);o(o.S,"Object",{entries:function(t){return r(t)}})}})}));